Journal of Agricultural Science and Technology ›› 2024, Vol. 26 ›› Issue (4): 106-113.DOI: 10.13304/j.nykjdb.2022.0951

• INTELLIGENT AGRICULTURE & AGRICULTURAL MACHINERY • Previous Articles    

Rose Flower Detection and Feature Extraction Based on Machine Vision

Ruifeng LI(), Yunfu YANG, Yongfa YANG(), Yongshun YU   

  1. College of Mechanical and Transport,Southwest Forestry University,Kunming 650224,China
  • Received:2022-11-03 Accepted:2023-04-25 Online:2024-04-15 Published:2024-04-23
  • Contact: Yongfa YANG

基于机器视觉的玫瑰花检测与特征提取

李锐风(), 杨云福, 杨永发(), 于永顺   

  1. 西南林业大学机械与交通学院,昆明 650224
  • 通讯作者: 杨永发
  • 作者简介:李锐风 E-mail:liruifeng___1@126.com
  • 基金资助:
    云南省科技厅科技技术项目(202104AR040012)

Abstract:

Roses in the planting environment are closely distributed and shielded from each other. In order to accurately detect and extract the characteristics of roses, the colour and shape of roses were recognized and processed based on machine vision. Firstly, bilateral filtering was selected to denoise the rose image, and then the colour of the rose was extracted by using the hexagonal cone colour model (HSV), and a scrollbar function was created to segment the threshold of each component of the hexagonal cone colour model to determine the optimal threshold. Finally, the contour of the rose was extracted by means of morphological operation, area threshold, hole query and filling. The fitting method of the shape of the inner circle of the rose was proposed, and the center and radius of the fitting inner circle were used as the image features of the rose. The results showed that the rose colour threshold could effectively remove the images of the rose branches and leaves, and the shape fitting algorithm could effectively extract the shape features of the rose and erase the rose bud. By using this method, the recognition rate of single rose was 98.17%, that of overlapping roses with 3 or less roses was 92.67%, that of overlapping roses with 4 or more roses was 74.07%, and that of roses blocked by branches and leaves was 83.03%. This set of machine algorithm could effectively recognize and extract the characteristic values of roses in a complex planting environment, which provided important technical support for rose-picking robot.

Key words: rose, machine vision, image recognition, feature extraction

摘要:

种植环境下的玫瑰花分布紧密、互相遮挡,为准确检测并提取玫瑰花的特征,基于机器视觉对玫瑰花的颜色和形状进行识别与处理。首先选取双边滤波对玫瑰花图像去噪,然后采用六角锥体模型颜色空间(hexagonal cone colour model,HSV)提取玫瑰花颜色,创建滚动条函数对六角锥体颜色模型各分量图阈值分割从而确定最佳阈值,最后运用形态学运算、面积阈值、孔洞查询填补等方法提取玫瑰花轮廓,并提出玫瑰花内切圆形状拟合算法,将拟合内切圆的圆心和半径作为玫瑰花图像特征。结果表明,玫瑰花颜色阈值能够有效去除玫瑰花枝叶、泥土等图像,形状拟合算法能有效提取玫瑰花的形状特征,并擦除玫瑰花苞。运用该算法单朵玫瑰花识别率为98.17%,3朵及以下重叠玫瑰花的识别率为92.67%,4朵及以上重叠玫瑰花的识别率为74.07%,被枝叶遮挡的玫瑰花识别率为83.03%,该套机器算法在复杂的种植环境中能有效识别并提取玫瑰花的特征值,结果可为玫瑰花采摘机器人研究提供重要技术支撑。

关键词: 玫瑰花, 机器视觉, 图像识别, 特征提取

CLC Number: