In order to remove the background from fruit images, initially an image of the background (white cardboard) was captured. By determining the R, G, and B values of all pixels in the background image, standard deviation of the images can be calculated and saved in the database. Next, the R, G, and B values of all pixels in the fruit image are found and compared with those of the background image available off-line.