Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Plant Sci.

Sec. Sustainable and Intelligent Phytoprotection

Volume 16 - 2025 | doi: 10.3389/fpls.2025.1654143

External Defect Detection of Orah mandarin Based on a Non-Brightness Correction Algorithm

Provisionally accepted
  • Guangxi Normal University, Guilin, China

The final, formatted version of the article will be published soon.

External defect detection is a crucial step in Orah mandarin citrus grading. However, in existing defect detection algorithms by image processing, Orah mandarin surfaces exhibit characteristics such as higher brightness at the center, lower brightness at the edges, and uneven brightness distribution in images. Although traditional brightness correction algorithms can solve these issues, they suffer from limitations including prolonged processing time, high computational complexity, and elevated false detection rates. To address these shortcomings, this work proposes a non-brightness correction algorithm to enhance the speed and accuracy of Orah mandarin external defect detection. The proposed algorithm divides Orah mandarin images into multiple equal-sized regions and performs threshold segmentation sequentially using a sliding window matching the region size. A sliding window size of 100 × 100 pixels was chosen because it offers a balanced trade-off between detection precision and computational efficiency, allowing the algorithm to detect both large and subtle defects effectively while maintaining fast processing speed. First, the histogram statistical method categorizes the current sliding window region into three types, and a dedicated defect detection algorithm applies adaptive thresholding to each type. Next, the threshold-segmented regions are merged, while the fruit stem area is excluded by combining circularity and hue features. Finally, morphological operations eliminate noise to obtain complete defect segmentation results. Experimental results demonstrate that with a sliding window size of 100 × 100 pixels, the algorithm achieves rapid external defect detection at 85.3 ms per fruit and a 97.5% defect recognition rate, offering a novel approach for fruit surface defect detection. This performance is consistent across different defect types, though the algorithm performed best for point-like defects, such as thrips scarring and canker spots, where clear, localized defects were more easily detected. For blocky rot defects, such as sunburn, the algorithm exhibited a slightly lower recognition rate, particularly in areas where the defect was less distinct and more integrated with the fruit's surface. These findings suggest that the algorithm is effective for a range of defect types but may require further refinement to handle more complex or overlapping defects.

Keywords: Defect detection, non-brightness correction, sliding window, Histogram statistics, Morphological operations

Received: 27 Jun 2025; Accepted: 26 Aug 2025.

Copyright: © 2025 Li, Jiang, Fu and Qin. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Xiaoxiao Jiang, Guangxi Normal University, Guilin, China

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.