processed is in the L*a*b* color model. As shown in Figure 2 the image
is segmented into three clusters. The first cluster to be formed is the blue
color region. Hence for ease of segmentation a blue coin is used. The
blue coin is used for size measurement purpose. The pixels occupied
by the blue coin are used to determine the size of the fruit or vegetable
as the position of the camera is not constant. Hence by knowing the
size of the blue coin physically, a relationship with the pixel and a size
measuring unit can be determined.
As shown in Figure 3 different background had little effect on the
segmentation of the image. The different background conditions not
only refer to the background color but also to the variation in lighting.
As shown in Figure 4 various fruits and vegetables were
successfully segmented. The image only represents only few of the fruits
and vegetables. The segmented image is converted to HSV color model
for further color extraction.