The image grading was achieved in six steps: image acquisition; ground color classification; defect segmentation; calyx and stem recognition; defects characterization;
and finally the fruit classification into quality classes. Both algorithms resulted in similar results (79% and 72%) for both varieties studied.