Xinjiang Agricultural Sciences ›› 2024, Vol. 61 ›› Issue (7): 1805-1813.DOI: 10.6048/j.issn.1001-4330.2024.07.029

• Prataculture·Agricultural Equipment Engineering and Mechanization·Animal Husbandry Veteri-narian • Previous Articles     Next Articles

Research on recognition and localization of unordered stacked watermelons based on machine vision

WU Fengyang1,2(), HUANG Wenqian2(), TIAN Xi2, YANG Yulin2   

  1. 1. College of Mechanical and Electrical Engineering, Xinjiang Agricultural University, Urumqi 830052, China
    2. Intelligent Equipment Technology Research Center of Beijing Academy of Agricultural and Forestry Sciences/National Agricultural Intelligent Equipment Engineering Technology Research Center, Beijing 100097, China
  • Received:2023-12-11 Online:2024-07-20 Published:2024-09-04
  • Correspondence author: HUANG Wenqian
  • Supported by:
    The national key research and development plan project "Research and development of mobile fruit quality intelligent perception equipment and key link robots"(2022YFD2002202);Special Fund Project for National Watermelon Industry Technology System(CARS-25-07);Beijing Academy of Agricultural and Forestry Sciences Innovation Special Emerging Discipline Intersection Project"esearch and Development of Non destructive Testing Technology and Equipment for Watermelon Quality"(KJCX20230206)

基于机器视觉的无序堆放西瓜识别与定位技术

吴风扬1,2(), 黄文倩2(), 田喜2, 杨育霖2   

  1. 1.新疆农业大学机电工程学院,乌鲁木齐 830052
    2.北京市农林科学院智能装备技术研究中心/国家农业智能装备工程技术研究中心,北京 100097
  • 通讯作者: 黄文倩
  • 作者简介:吴风扬(1999-),男,湖北黄石人,硕士研究生,研究方向为机器视觉,(E-mail)1519100570@qq.com
  • 基金资助:
    国家重点研发计划项目“移动式果品品质智能感知设备与关键环节机器人研发”(2022YFD2002202);国家西甜瓜产业技术体系专项资金项目(CARS-25-07);北京市农林科学院创新专项新兴学科交叉项目“西甜瓜品质无损检测技术与装备研发”(KJCX20230206)

Abstract:

【Objective】To study a watermelon recognition and positioning technology based on machine vision to meet the automation requirements of watermelon handling equipment. 【Methods】2D image data and 3D point cloud data of watermelon were collected and the OpenCV function library was called to segment the two-dimensional image of watermelon and extract the outer contour of the watermelon; The 3D point cloud data was preprocessed using the PCL function and perform graphic feature matching with the 2D image to extract the centroid points of the top layer watermelon.【Results】The validation test results showed that the total recognition rate of the number of watermelons in a single round was 97.62%, the correct recognition rate was 95.58%, and the centroid recognition rate was 92.72%. The total recognition rate of 20 rounds of testing was 98.02%, the total correct recognition rate was 96.53%, the total centroid recognition rate was 94.17%, and the error rate between the total centroid number and the total number of watermelons was 2.36%; The total time for watermelon image processing was 101.8 seconds, which improved the efficiency by 77.8%.【Conclusion】The watermelon recognition and positioning method proposed in this article has high recognition rate and low error rate, which can provide technical support and algorithm reference for the visual part of automatic handling equipment.

Key words: watermelon; identification and positioning; centroid extraction; image processing; point cloud; OpenCV; PCL

摘要:

【目的】研究一种基于机器视觉的西瓜识别与定位技术,满足西瓜搬运设备的自动化要求,为自动搬运设备的视觉部分提供技术支持。【方法】采集西瓜的二维图像数据与三维点云数据。调用OpenCV函数库分割西瓜二维图像,提取出西瓜的外轮廓;采用PCL函数对三维点云数据进行预处理,并与二维图像作图形特征匹配,提取出顶层西瓜的质心点。【结果】单轮次的西瓜轮廓总识别率为97.62%,正确识别率为95.58%,质心识别率为92.72%。20轮测试的总轮廓识别率为98.02%,总正确识别率为96.53%,总质心识别率为94.17%,总质心个数和总西瓜个数之间的误差率为2.36%;西瓜图像处理的总用时为101.8s,效率提高了77.8%。【结论】基于机器视觉的西瓜识别与定位技术识别率较高且误差率较低。

关键词: 西瓜, 识别与定位, 质心提取, 图像处理, 点云, OpenCV, PCL

CLC Number: