A method for fruits recognition using image processing techniques