| 注册
首页|期刊导航|智慧农业(中英文)|基于机器视觉的胡麻种子自动化考种方法

基于机器视觉的胡麻种子自动化考种方法

毛永文 韩俊英 刘成忠

智慧农业(中英文)2024,Vol.6Issue(1):135-146,12.
智慧农业(中英文)2024,Vol.6Issue(1):135-146,12.DOI:10.12133/j.smartag.SA202309011

基于机器视觉的胡麻种子自动化考种方法

Automated Flax Seeds Testing Methods Based on Machine Vision

毛永文 1韩俊英 1刘成忠1

作者信息

  • 1. 甘肃农业大学 信息科学技术学院,甘肃兰州 730000,中国
  • 折叠

摘要

Abstract

[Objective]Flax,characterized by its short growth cycle and strong adaptability,is one of the major cash crops in northern China.Due to its versatile uses and unique quality,it holds a significant position in China's oil and fiber crops.The quality of flax seeds di-rectly affects the yield of the flax plant.Seed evaluation is a crucial step in the breeding process of flax.Common parameters used in the seed evaluation process of flax include circumference,area,length axis,and 1 000-seed weight.To ensure the high-quality produc-tion of flax crops,it is of great significance to understand the phenotypic characteristics of flax seeds,select different resources as parents based on breeding objectives,and adopt other methods for the breeding,cultivation,and evaluation of seed quality and traits of flax. [Methods]In response to the high error rates and low efficiency issues observed during the automated seed testing of flax seeds,the measurement methods were explored of flax seed contours based on machine vision research.The flax seed images were prepro-cessed,and the collected color images were converted to grayscale.A filtering and smoothing process was applied to obtain binary im-ages.To address the issues of flax seed overlap and adhesion,a contour fitting image segmentation method based on fused corner fea-tures was proposed.This method incorporated adaptive threshold selection during edge detection of the image contour.Only multi-seed target areas that met certain criteria were subjected to image segmentation processing,while single-seed areas bypassed this step and were directly summarized for seed testing data.After obtaining the multi-seed adhesion target areas,the flax seeds underwent con-tour approximation,corner extraction,and contour fitting.Based on the provided image contour information,the image contour shape was approximated to another contour shape with fewer vertices,and the original contour curve was simplified to a more regular and compact line segment or polygon,minimizing computational complexity.All line shape characteristics in the image were marked as much as possible.Since the pixel intensity variations in different directions of image corners were significant,the second derivative matrix based on pixel grayscale values was used to detect image corners.Based on the contour approximation algorithm,contour cor-ner detection was performed to obtain the coordinates of each corner.The resulting contour points and corners were used as outputs to further improve the accuracy and precision of subsequent contour fitting methods,resulting in a two-dimensional discrete point datas-et of the image contour.Using the contour point dataset as an input,the geometric moments of the image contour were calculated,and the optimal solution for the ellipse parameters was obtained through numerical optimization based on the least squares method and the geometric features of the ellipse shape.Ultimately,the optimal contour was fitted to the given image,achieving the segmentation and counting of flax seed images.Meanwhile,each pixel in the digital image was a uniform small square in size and shape,so the circum-ference,area,and major and minor axes of the flax seeds could be represented by the total number of pixels occupied by the seeds in the image.The weight of a single seed could be calculated by dividing the total weight of the seeds by the total number of seeds detect-ed by the contour,thereby obtaining the weight of the individual seed and converting it accordingly.Through the pixelization of the 1 yuan and 1 jiao coins from the fifth iteration of the 2019 Renminbi,a summary of the circumference,area,major axis,minor axis,and 1 000-seed weight of the flax seeds was achieved.Additionally,based on the aforementioned method,this study designed an automat-ed real-time analysis system for flax seed testing data,realizing the automation of flax seed testing research.Experiments were con-ducted on images of flax seeds captured by an industrial camera. [Results and Discussions]The proposed automated seed identification method achieved an accuracy rate of 97.28%for statistically distinguishing different varieties of flax seeds.The average processing time for 100 seeds was 69.58 ms.Compared to the extreme ero-sion algorithm and the watershed algorithm based on distance transformation,the proposed method improved the average calculation accuracy by 19.6%over the extreme erosion algorithm and required a shorter average computation time than the direct use of the wa-tershed algorithm.Considering the practical needs of automated seed identification,this method did not employ methods such as dila-tion or erosion for image morphology processing,thereby preserving the original features of the image to the greatest extent possible.Additionally,the flax seed automated seed identification data real-time analysis system could process image information in batches.By executing data summarization functions,it automatically generated corresponding data table folders,storing the corresponding im-age data summary tables. [Conclusions]The proposed method exhibits superior computational accuracy and processing speed,with shorter operation time and robustness.It is highly adaptable and able to accurately acquire the morphological feature parameters of flax seeds in bulk,en-suring measurement errors remain within 10%,which could provide technical support for future flax seed evaluation and related in-dustrial development.

关键词

胡麻种子/机器视觉/自动化考种/图像分割/软件系统

Key words

flax seeds/machine vision/automated seed testing/image segmentation/software systems

分类

农业科技

引用本文复制引用

毛永文,韩俊英,刘成忠..基于机器视觉的胡麻种子自动化考种方法[J].智慧农业(中英文),2024,6(1):135-146,12.

基金项目

中国甘肃省高校创新基金项目(2021A-056) (2021A-056)

中国甘肃省高校产业扶持与引导项目(2021CYZC-57) Gansu Provincial University Innovation Fund Project in China(2021A-056) (2021CYZC-57)

Gansu Provincial University Industry Support and Guidance Project in China(2021CYZC-57) (2021CYZC-57)

智慧农业(中英文)

OACSTPCD

2096-8094

访问量0
|
下载量0
段落导航相关论文