Popis: |
The production technology of Citrus in China is still at the initial stage of development, and the classification of Citrus mainly depends on manual work, which is subjective and inefficient. To solve the problem of time-consuming, laborious and low efficiency of citrus classification, this paper uses the OpenCV image processing technology, Candy edge detection operator for edge detection and DP algorithm for contour extraction to find the two points with the largest distance in the contour to achieve citrus diameter detection; The RGB color space is converted into HSV color space, and the parameters of H component are extracted to obtain the citrus coloring rate, thus realizing the citrus appearance quality grading system. The experiment proves that the accuracy of diameter detection is more than 99%, reducing the artificial classification deviation. |