Author
Listed:
- Jiahao Li
(College of Engineering, South China Agricultural University, Guangzhou 510642, China)
- Baofeng Mai
(College of Engineering, South China Agricultural University, Guangzhou 510642, China)
- Tianhu Liu
(College of Engineering, South China Agricultural University, Guangzhou 510642, China)
- Zicheng Liu
(College of Engineering, South China Agricultural University, Guangzhou 510642, China)
- Zhaozheng Liang
(College of Engineering, South China Agricultural University, Guangzhou 510642, China)
- Shuyang Liu
(College of Agriculture, South China Agricultural University, Guangzhou 510642, China)
Abstract
In the mechanical harvesting process, pineapple fruits are prone to damage. Traditional detection methods struggle to quantitatively assess pineapple damage and often operate at slow speeds. To address these challenges, this paper proposes a pineapple mechanical damage detection method based on machine vision, which segments the damaged region and calculates its area using multiple image processing algorithms. First, both color and depth images of the damaged pineapple are captured using a RealSense depth camera, and their pixel information is aligned. Subsequently, preprocessing techniques such as grayscale conversion, contrast enhancement, and Gaussian denoising are applied to the color images to generate grayscale images with prominent damage features. Next, an image segmentation method that combines thresholding, edge detection, and morphological processing is employed to process the images and output the damage contour images with smoother boundaries. After contour-filling and isolation of the smaller connected regions, a binary image of the damaged area is generated. Finally, a calibration object with a known surface area is used to derive both the depth values and pixel area. By integrating the depth information with the pixel area of the binary image, the damaged area of the pineapple is calculated. The damage detection system was implemented in MATLAB, and the experimental results showed that compared with the actual measured damaged area, the proposed method achieved an average error of 5.67% and an area calculation accuracy of 94.33%, even under the conditions of minimal skin color differences and low image resolution. Compared to traditional manual detection, this approach increases detection speed by over 30 times.
Suggested Citation
Jiahao Li & Baofeng Mai & Tianhu Liu & Zicheng Liu & Zhaozheng Liang & Shuyang Liu, 2025.
"A Machine Vision Method for Detecting Pineapple Fruit Mechanical Damage,"
Agriculture, MDPI, vol. 15(10), pages 1-16, May.
Handle:
RePEc:gam:jagris:v:15:y:2025:i:10:p:1063-:d:1656090
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jagris:v:15:y:2025:i:10:p:1063-:d:1656090. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.