Sorting of mangoes based on internal defects such as seed weevil and spongy tissue.Image processing methods employed for sorting mangoes. Image texture analysis and special features extraction to identify the defects.User interactive menu driven software for calibration and scan settings.