[go: up one dir, main page]

CN108896564A - A kind of two-sided damage testing method of corn seed based on machine vision - Google Patents

A kind of two-sided damage testing method of corn seed based on machine vision Download PDF

Info

Publication number
CN108896564A
CN108896564A CN201810778136.3A CN201810778136A CN108896564A CN 108896564 A CN108896564 A CN 108896564A CN 201810778136 A CN201810778136 A CN 201810778136A CN 108896564 A CN108896564 A CN 108896564A
Authority
CN
China
Prior art keywords
corn seed
image
machine vision
sided
corn seeds
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810778136.3A
Other languages
Chinese (zh)
Inventor
赵静
崔欣
马伟童
徐文腾
杨焕波
李志铭
孟沌超
范鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong University of Technology
Original Assignee
Shandong University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong University of Technology filed Critical Shandong University of Technology
Priority to CN201810778136.3A priority Critical patent/CN108896564A/en
Publication of CN108896564A publication Critical patent/CN108896564A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8887Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques

Landscapes

  • Chemical & Material Sciences (AREA)
  • Pathology (AREA)
  • Analytical Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biochemistry (AREA)
  • Immunology (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)

Abstract

本发明涉及机器视觉检测技术领域,具体为一种基于机器视觉的玉米种子双面破损检测方法。其过程主要包括:玉米种子双面图像的采集、图像预处理、特征值提取、利用训练好的支持向量机(SVM)判断玉米种子是否合格。其特征如下:采用一种基于机器视觉的玉米种子双面破损检测方法对玉米种子双面图像进行检测,可以全面准确的检测出破损玉米种子;用两个SVM分类器分别对玉米种子正反面图像进行破损分类,其检测结果均为‘合格’时,判断玉米种子为合格,否则为不合格。

The invention relates to the technical field of machine vision detection, in particular to a machine vision-based double-sided damage detection method for corn seeds. The process mainly includes: collection of double-sided images of corn seeds, image preprocessing, feature value extraction, and using the trained support vector machine (SVM) to judge whether the corn seeds are qualified. Its features are as follows: a machine vision-based double-sided damage detection method for corn seeds is used to detect the double-sided images of corn seeds, which can comprehensively and accurately detect damaged corn seeds; Carry out damage classification, and when the test results are all 'qualified', it is judged that the corn seeds are qualified, otherwise they are unqualified.

Description

一种基于机器视觉的玉米种子双面破损检测方法A double-sided damage detection method for corn seeds based on machine vision

技术领域technical field

本发明涉及机器视觉检测技术领域,具体为一种基于机器视觉的玉米种子双面破损检测方法。The invention relates to the technical field of machine vision detection, in particular to a method for detecting double-sided damage of corn seeds based on machine vision.

背景技术Background technique

玉米作为我国重要的粮食作物,其播种前的种子检测工作大多依赖人工完成,受个人的主观因素影响较大且效率低,无法满足市场需求。随着机器视觉检测技术逐渐成熟,其在农产品质量检测领域应用越来越广,其特点是精确、高效、无损,但在玉米种子的外观品质检测领域,尚未出现大规模商品化的双面检测装置,相关双面破损检测方法也较少,因此,本发明提出的一种基于机器视觉的玉米种子双面破损检测方法具有一定应用价值。Corn is an important food crop in my country. Most of the pre-sowing seed detection work is done manually, which is greatly affected by individual subjective factors and has low efficiency, which cannot meet market demand. With the gradual maturity of machine vision inspection technology, it is more and more widely used in the field of agricultural product quality inspection. It is characterized by accuracy, high efficiency, and non-destructive. However, in the field of appearance quality inspection of corn seeds, large-scale commercial double-sided inspection has not yet appeared. There are few related double-sided damage detection methods. Therefore, a machine vision-based double-sided damage detection method for corn seeds proposed by the present invention has certain application value.

发明内容Contents of the invention

本发明旨在提供一种基于机器视觉的玉米种子双面破损检测方法,此方法精确高效,可以实现玉米种子的双面图像的识别检测,准确判断玉米种子是否破损。The present invention aims to provide a method for detecting double-sided damage of corn seeds based on machine vision. The method is accurate and efficient, can realize the recognition and detection of double-sided images of corn seeds, and accurately judge whether the corn seeds are damaged.

为实现上述目的,本发明的解决方案如下:To achieve the above object, the solution of the present invention is as follows:

一种基于机器视觉的玉米种子双面破损检测方法,主要包含以下步骤:A method for detecting double-sided damage of corn seeds based on machine vision mainly includes the following steps:

步骤1:利用图像采集装置采集玉米种子的双面图像,其中CCD1采集玉米种子正面图像,CCD2采集玉米种子反面图像。Step 1: Use an image acquisition device to collect double-sided images of corn seeds, wherein CCD1 collects images of the front side of corn seeds, and CCD2 collects images of the back side of corn seeds.

步骤2:CCD1采集到的玉米种子正面图像通过串行接口将图像传送给计算机,计算机对图像进行预处理,去除图像中的噪声、杂质点,并将图像进行二值分割以便进行后续图像分类工作。Step 2: The frontal image of corn seeds collected by CCD1 is transmitted to the computer through the serial interface, and the computer preprocesses the image, removes noise and impurity points in the image, and performs binary segmentation on the image for subsequent image classification .

步骤3:提取已经过预处理的玉米种子正面图像的特征值参数,特征值包括:周长、面积、周长面积比、长轴长、短轴长、长宽比、圆形度、矩形度、紧凑度及7个Hu不变矩。Step 3: Extract the eigenvalue parameters of the preprocessed corn seed front image. The eigenvalues include: perimeter, area, perimeter-area ratio, major axis length, minor axis length, aspect ratio, circularity, and rectangularity , compactness and 7 Hu invariant moments.

步骤4:将正面图像特征值作为输入值输入训练好的SVM分类器1中,SVM分类器为二输出,输出为1时代表‘合格’,输出为0时代表‘不合格’。Step 4: Input the feature value of the frontal image as the input value into the trained SVM classifier 1. The SVM classifier has two outputs. When the output is 1, it means 'qualified', and when the output is 0, it means 'unqualified'.

步骤5:CCD2将采集玉米种子反面图像通过串行接口将图像传送给计算机,计算机对图像进行预处理,去除图像中噪声、杂质点、并将图像做二值分割。Step 5: CCD2 will collect the image of the reverse side of the corn seed and transmit the image to the computer through the serial interface. The computer will preprocess the image, remove noise and impurity points in the image, and perform binary segmentation on the image.

步骤6:提取玉米种子反面图像特征参数。Step 6: Extract the feature parameters of the reverse image of corn seeds.

步骤7:将反面图像特征值作为输入值输入到训练好的SVM分类器2中,输出为1时代表‘合格’,输出为0时代表‘不合格’。Step 7: Input the feature value of the negative image as the input value into the trained SVM classifier 2, when the output is 1, it means 'qualified', and when the output is 0, it means 'unqualified'.

步骤8:当SVM1和SVM2的输出值均为1时,最终判断玉米种子为‘合格’;当SVM1输出为1,SVM2输出值为0、SVM1输出值为0,SVM2输出值为1、SVM1和SVM2输出值都为0时,最终判断玉米种子为‘不合格’。Step 8: When the output values of SVM1 and SVM2 are both 1, the corn seed is finally judged to be 'qualified'; when the output of SVM1 is 1, the output value of SVM2 is 0, the output value of SVM1 is 0, the output value of SVM2 is 1, and When the output values of SVM2 are all 0, the corn seeds are finally judged as 'unqualified'.

附图说明Description of drawings

图1是本发明的图像采集装置示意图。Fig. 1 is a schematic diagram of an image acquisition device of the present invention.

图2是本发明的玉米种子双面破损检测流程图。Fig. 2 is a flow chart of double-sided damage detection of corn seeds in the present invention.

图3是本发明的SVM图像判断流程图。Fig. 3 is a flow chart of SVM image judgment in the present invention.

具体实施方式Detailed ways

下面结合附图所示的各实施方式对本发明作进一步的详细说明。The present invention will be further described in detail below in conjunction with various embodiments shown in the accompanying drawings.

参照图1,本发明的图像采集装置,其主要包括:CCD1及其遮光罩[1]、CCD2及其遮光罩[2]、图像采集区[3]、支架[4]。With reference to Fig. 1, image acquisition device of the present invention mainly comprises: CCD1 and light shield [1] thereof, CCD2 and light shield [2] thereof, image acquisition area [3], support [4].

参照图2,本发明的玉米种子双面破损检测流程图,CCD1将采集的玉米种子正面图像传给计算机,计算机依次对正面图像进行预处理、特征提取工作,将特征值输出SVM1,分类器输出量有两个,输出结果为1时为‘合格’,输出结果为0时为‘不合格’;CCD2将采集的玉米种子反面图像传给计算机,计算机依次对反面图像进行预处理、特征提取工作,将特征值输出SVM2,分类器输出量有两个,输出结果为1时为‘合格’,输出结果为0时为‘不合格’,两条工作流程主线为先进行正面图像检测,后进行反面图像检测。图像预处理包括灰度化、降噪、二值化分割、去杂质点几个基础步骤。With reference to Fig. 2, the double-sided damage detection flow chart of corn seed of the present invention, CCD1 transmits the front image of corn seed that collects to computer, and computer carries out preprocessing, feature extraction work to front image successively, with characteristic value output SVM1, classifier output There are two quantities, when the output result is 1, it is 'qualified', and when the output result is 0, it is 'unqualified'; CCD2 transmits the reverse image of corn seeds collected to the computer, and the computer performs preprocessing and feature extraction on the reverse image in turn , output the eigenvalues to SVM2, there are two classifier outputs, when the output result is 1, it is 'qualified', and when the output result is 0, it is 'unqualified', the main lines of the two workflows are to perform frontal image detection first, then Reverse image detection. Image preprocessing includes several basic steps of grayscale, noise reduction, binarization segmentation, and removal of impurities.

参照图3,本发明的SVM图像判断流程图, SVM1首先判断玉米种子正面图像,当输出值为1时,启动SVM2对玉米种子的反面图像进行合格性判断,当输出值不为1时,终止程序,判断玉米种子为‘不合格’;当SVM2的输出值为1时,则判断玉米种子为‘合格’,当SVM2的输出值不为1时,则判断玉米种子为不‘不合格’。With reference to Fig. 3, SVM image judging flow chart of the present invention, SVM1 first judges corn seed front image, when output value is 1, start SVM2 and carry out qualification judgment to the back image of corn seed, when output value is not 1, terminate The program judges the corn seeds as 'unqualified'; when the output value of SVM2 is 1, then judges the corn seeds as 'qualified'; when the output value of SVM2 is not 1, then judges the corn seeds as unqualified'.

Claims (4)

1. a kind of two-sided damage testing method of corn seed based on machine vision, process mainly include:Utilize Image Acquisition The dual-side image of device acquisition corn seed;Image is sent to computer by serial ports;Computer to image carry out gray processing, The base images pretreatments such as noise reduction, binarization segmentation, removal impure point;It is special to being carried out by pretreated corn seed image Value indicative is extracted;The characteristic value of extraction is inputted in trained SVM classifier, the input value of SVM classifier is characterized parameter, has Two output valves export and represent ' qualification ' when being 1, represent ' unqualified ' when output be 0, to realize that the damaged of corn seed is examined It surveys.
2. a kind of two-sided damage testing method of corn seed based on machine vision according to claim 1, feature exist It works in the damage testing for being able to achieve corn seed dual-side image.
3. a kind of two-sided damage testing method of corn seed based on machine vision according to claim 1, feature exist In using two SVM classifiers respectively to the progress damage testing classification of corn seed front and back sides image, job order SVM1 First front corn seed image is detected, SVM2 again detects reverse side corn seed image.
4. a kind of two-sided damage testing method of corn seed based on machine vision according to claim 1, feature exist In after SVM image judges that process starts, SVM1 first determines whether corn seed direct picture, when output valve is 1, starts SVM2 Qualification judgement is carried out to the verso images of corn seed, when output valve is not 1, terminator judges corn seed for ' no It is qualified ';When the output valve of SVM2 is 1, then judge that corn seed for ' qualification ', when the output valve of SVM2 is not 1, then judges Corn seed is not ' unqualified '.
CN201810778136.3A 2018-07-16 2018-07-16 A kind of two-sided damage testing method of corn seed based on machine vision Pending CN108896564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810778136.3A CN108896564A (en) 2018-07-16 2018-07-16 A kind of two-sided damage testing method of corn seed based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810778136.3A CN108896564A (en) 2018-07-16 2018-07-16 A kind of two-sided damage testing method of corn seed based on machine vision

Publications (1)

Publication Number Publication Date
CN108896564A true CN108896564A (en) 2018-11-27

Family

ID=64349936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810778136.3A Pending CN108896564A (en) 2018-07-16 2018-07-16 A kind of two-sided damage testing method of corn seed based on machine vision

Country Status (1)

Country Link
CN (1) CN108896564A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276881A (en) * 2019-05-10 2019-09-24 广东工业大学 A Banknote Serial Number Recognition Method Based on Convolutional Recurrent Neural Network
CN120375357A (en) * 2025-03-12 2025-07-25 赛默威(湖北)智能科技有限公司 Intelligent grain quality index detection method based on machine vision

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104084379A (en) * 2014-06-04 2014-10-08 中国农业大学 Corn-seed image carefully-choosing apparatus and usage method for apparatus
CN106607344A (en) * 2017-02-17 2017-05-03 河南省现代富博智能装备科技有限公司 Corn seed dynamic image fine selection device and method used for oriented sowing
CN108020556A (en) * 2017-11-27 2018-05-11 山东理工大学 A kind of online damage testing sorting technique of corn seed based on machine vision
CN108171693A (en) * 2017-12-27 2018-06-15 合肥市雅视智能科技有限公司 A kind of method of automatic detection poor quality mushroom
CN108204977A (en) * 2016-12-19 2018-06-26 广东技术师范学院 Corn kernel quality automatic detection device based on machine vision

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104084379A (en) * 2014-06-04 2014-10-08 中国农业大学 Corn-seed image carefully-choosing apparatus and usage method for apparatus
CN108204977A (en) * 2016-12-19 2018-06-26 广东技术师范学院 Corn kernel quality automatic detection device based on machine vision
CN106607344A (en) * 2017-02-17 2017-05-03 河南省现代富博智能装备科技有限公司 Corn seed dynamic image fine selection device and method used for oriented sowing
CN108020556A (en) * 2017-11-27 2018-05-11 山东理工大学 A kind of online damage testing sorting technique of corn seed based on machine vision
CN108171693A (en) * 2017-12-27 2018-06-15 合肥市雅视智能科技有限公司 A kind of method of automatic detection poor quality mushroom

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276881A (en) * 2019-05-10 2019-09-24 广东工业大学 A Banknote Serial Number Recognition Method Based on Convolutional Recurrent Neural Network
CN120375357A (en) * 2025-03-12 2025-07-25 赛默威(湖北)智能科技有限公司 Intelligent grain quality index detection method based on machine vision
CN120375357B (en) * 2025-03-12 2026-02-13 赛默威(湖北)智能科技有限公司 A Machine Vision-Based Intelligent Detection Method for Grain Quality Indicators

Similar Documents

Publication Publication Date Title
CN104850858B (en) A kind of injection-molded item defects detection recognition methods
CN101995223B (en) Chip appearance detection method and system
CN103984951B (en) A kind of Magnetic testing defect inspection method and system
CN110570410A (en) A detection method for automatic identification and detection of weld defects
CN111852792B (en) Fan blade defect self-diagnosis positioning method based on machine vision
CN104990892B (en) The spectrum picture Undamaged determination method for establishing model and seeds idenmtification method of seed
CN104766097B (en) Surface of aluminum plate defect classification method based on BP neural network and SVMs
CN116503402B (en) Method and device for detecting impurity content of grain shoulder
CN103778624A (en) Fabric defect detection method based on optical threshold segmentation
CN106483135A (en) Corn kernel detection and identification device and method based on machine vision under complex background
CN101424645A (en) Soldered ball surface defect detection device and method based on machine vision
CN104198497A (en) Surface defect detection method based on visual saliency map and support vector machine
CN110575973B (en) Crop seed quality detection and screening system
CN102253052A (en) Grain quality on-line detection apparatus based on field programmable gate array (FPGA), and method thereof
CN108020556A (en) A kind of online damage testing sorting technique of corn seed based on machine vision
Wah et al. Analysis on feature extraction and classification of rice kernels for Myanmar rice using image processing techniques
CN105203543A (en) Machine vision based whole case red grape fruit size grading device and method
CN110108712A (en) Multifunctional visual defect detection system
CN103983426A (en) Optical fiber defect detecting and classifying system and method based on machine vision
CN113537236A (en) Thermal diffusion effect defect quantitative identification method for infrared detection of damage of spacecraft
CN118657443A (en) A filling status monitoring system and method
CN108896564A (en) A kind of two-sided damage testing method of corn seed based on machine vision
CN201041553Y (en) Fruit quality non-destructive inspection system based on multispectral imaging technology
CN114612415A (en) Surface defect classification method based on deep residual network and multi-channel image fusion
CN113158994A (en) Method for identifying normal grains of wheat

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181127