CN112102258A - Air-suction type seeder seeding detection method based on machine vision - Google Patents

Air-suction type seeder seeding detection method based on machine vision Download PDF

Info

Publication number
CN112102258A
CN112102258A CN202010869573.3A CN202010869573A CN112102258A CN 112102258 A CN112102258 A CN 112102258A CN 202010869573 A CN202010869573 A CN 202010869573A CN 112102258 A CN112102258 A CN 112102258A
Authority
CN
China
Prior art keywords
pulse
seeder
suction
points
picture
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
CN202010869573.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.)
Wuxi Kalman Navigation Technology Co ltd
Original Assignee
Wuxi Kalman Navigation Technology Co ltd
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 Wuxi Kalman Navigation Technology Co ltd filed Critical Wuxi Kalman Navigation Technology Co ltd
Priority to CN202010869573.3A priority Critical patent/CN112102258A/en
Publication of CN112102258A publication Critical patent/CN112102258A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration by the use of histogram techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component

Abstract

The invention relates to a sowing machine sowing inspection method, in particular to a machine vision-based air-suction type sowing machine sowing inspection method. The method comprises the steps of acquiring pictures simultaneously containing a suction hole and a process groove of a seeder by a camera; calibrating the position of the process tank in the picture; secondly, when the seeder works, determining whether new suction holes appear according to the gray value distribution of the sampling point set, and recording the new suction holes as a pulse when the new suction holes appear; then, cutting, histogram equalization and self-adaptive thresholding operations are carried out on the picture to obtain a binary image; then, judging whether the suction hole is a cavity or not according to the binary image; then, marking pictures with different colors according to whether the suction holes are cavities or not and displaying the pictures; and finally, calculating the miss-seeding rate. The detection method is not easily influenced by the environment, is not easy to generate misjudgment, and has higher correctness and better intuition of the detection result.

Description

Air-suction type seeder seeding detection method based on machine vision
Technical Field
The invention relates to a sowing machine sowing inspection method, in particular to a machine vision-based air-suction type sowing machine sowing inspection method.
Background
For the air-suction type seeder, the miss-seeding rate is an important parameter, and how to carry out seed sowing detection and count the miss-seeding rate is an important proposition. At present, in an existing air-suction type seeder system, sensors such as eddy current sensors, photoelectric sensors and infrared sensors are generally used for detecting seed leakage, the precision of the mode is influenced by the environment, misjudgment is easy to occur, the correctness of a detection result is low, and the intuitiveness is poor.
Disclosure of Invention
The invention aims to solve the technical problem of providing a machine vision-based air-aspiration seeder seeding detection method, which is not easily influenced by environment and is not easy to generate misjudgment, and has higher correctness of detection results and better intuition.
In order to solve the problems, the following technical scheme is provided:
the invention relates to a machine vision-based air-suction seeder seeding detection method, which is characterized by comprising the following steps:
step 1, a camera is installed on the seeder, and the camera can acquire pictures containing the suction hole and the process groove of the seeder.
Step 2, calibrating the position of the process tank in the picture to obtain a sampling point set { P }i}, sample point PiThe coordinates x, y of (a) represent the pixel coordinates in the picture.
Step 3, the seeder works, the suction holes and the process grooves rotate along with the seeding disc of the seeder, and the { P is set according to the sampling pointsiDetermining whether a new suction hole appears according to the gray value distribution, and recording as a pulse when the new suction hole appears, wherein the method specifically comprises the following steps:
step 301, convert the picture into a grayscale Igrey
Step 302, each sampling point Pi(xi,yi) Can correspond to a gray scale image IgreyGray value G of one pointiThen get the gray value set { G }iIn which Gi(xi,yi)=Igrey(x=xi,y=yi)。
Step 303, set of sampling points { P }iDividing the process into a set of points (P) which are positioned in the process tank and have low gray valueinAnd a set of points outside the process tank with high gray scale values PoutI.e. that
if Gi≤Ttr Pi∈{Pin}
if Gi>Ttr Pi∈{Pout}
Wherein, TtrIs a preset threshold value to distinguish between high and low gray values.
Step 304, initially setting a pulse state SpulseFalse and a hole state SemptyWhen { P ═ FalseinThe number of points is greater than lambdanPWhen it is, let SpulseTrue, then { P }outThe number of points is greater than gamma NPWhen it is, let SpulseFalse and the number of pulses NpuslePlus one, if the suction hole is judged to be a cavity at the moment, the number of the cavities is NemptyAdd one, namely
St.Spulse=False,Sempty=False,Npulse=0,Nempty=0
if Spulse=False and Nin>λNP
{Spulse=True
if Spulse=True and Nout>γNP
Figure BDA0002654314760000021
Wherein N isin、Nout、NPAre respectively a set of points { Pin}、{Pout}、{PiThe number of the middle points, λ and γ are two preset thresholds.
Step 4, performing cutting, histogram equalization and adaptive thresholding operations on the picture to obtain a binary image, specifically comprising the following steps:
when S ispulseTrue and { P ═ PinThe number of points is greater than lambdanPTo gray scale image IgreyCutting to obtain an interested area IROIThen histogram equalization is carried out to obtain an image I with enhanced contrasthistFinally, self-adaptive thresholding operation is carried out to obtain a binary image Ibin
I.e. IROI=Rect(Igrey),Ihist=equalizeHist(IROI),Ibin=adaptiveThreshold(Ihist)。
When S ispulseTrue and { P ═ PinThe number of points is less than lambdanPThen, the process returns to step 301.
Step 5, according to the binary image IbinAnd determining whether the suction hole is a hole, namely:
if sum(Ibin)>Te
Sempty=True
wherein, sum (I)bin) Is IbinPixel sum of (1), TeThe threshold is preset to determine whether the hole is present.
Step 6, marking pictures with different colors according to whether the suction holes are cavities or not and displaying the outer disc
Step 7, according to the pulse number NpulseAnd number of holes NemptyCalculating the rate rho of missed seeding by the formula
Figure BDA0002654314760000031
And 8, repeating the steps 3 to 7 until the air-suction seeder stops operating, and finishing the seeding detection of the operation of the air-suction seeder.
In the step 2, the position of the process tank in the picture is calibrated manually.
By adopting the scheme, the method has the following advantages:
the invention discloses a machine vision-based air-suction seeder seeding detection method, which adopts a camera to acquire pictures simultaneously containing a suction hole and a process groove of a seeder; calibrating the position of the process tank in the picture; secondly, when the seeder works, determining whether new suction holes appear according to the gray value distribution of the sampling point set, and recording the new suction holes as a pulse when the new suction holes appear; then, cutting, histogram equalization and self-adaptive thresholding operations are carried out on the picture to obtain a binary image; then, judging whether the suction hole is a cavity or not according to the binary image; then, marking pictures with different colors according to whether the suction holes are cavities or not and displaying the pictures; and finally, calculating the miss-seeding rate. The detection method is based on machine vision, is less influenced by the environment, and is not easy to generate misjudgment, so that the correctness of the detection result is greatly improved. And whether the suction holes are holes or not is marked with pictures in different colors and displayed, so that the intuitiveness is better.
Drawings
FIG. 1 is a schematic structural diagram of a seeding tray in the sowing detection method of the air-suction seeder based on machine vision;
FIG. 2 is an enlarged schematic view of a camera capturing picture in the sowing detection method of the air-suction seeder based on machine vision;
fig. 3 is a flow chart of a software program of the air-suction type seeder seeding detection method based on machine vision.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1 to 3, the machine vision-based air-suction seeder seeding detection method of the present invention includes the following steps:
step 1, a camera is installed on the seeder, and the camera can acquire a picture 5 containing the suction hole 2 of the seeder and the process groove 1. The seeding disc 3 of seeder is located the outer dish 4 of seeder, and outer dish 4 is as the background of seeding disc 3, for the convenient colour of distinguishing picture 5, and the seeder outer dish 4 is black.
Step 2, manually calibrating the position of the process tank 1 in the picture 5 to obtain a sampling point set { P }i}, sample point PiThe coordinates x, y of (a) represent the pixel coordinates in the picture 5.
Step 3, the seeder works, the suction holes 2 and the process grooves 1 rotate along with the seeding tray 3 of the seeder, and the { P is set according to the sampling pointsiDetermining whether a new suction hole 2 appears according to the gray value distribution, and recording the new suction hole 2 as a pulse when the new suction hole appears, wherein the method specifically comprises the following steps:
step 301, convert picture 5 into grayscale Igrey
Step 302, each sampling point Pi(xi,yi) Can correspond to a gray scale image IgreyGray value G of one pointiThen get the gray value set { G }iIn which Gi(xi,yi)=Igrey(x=xi,y=yi)。
Step 303, set of sampling points { P }iIs divided into a point set P which is positioned in the process tank 1 and has low gray valueinAnd a set of points (P) outside the process tank 1 with high gray scale valuesoutI.e. that
if Gi≤Ttr Pi∈{Pin}
if Gi>Ttr Pi∈{Pout}
Wherein, TtrIs a preset threshold value to distinguish between high and low gray values.
Step 304, initially setting a pulse state SpulseFalse and a hole state SemptyWhen { P ═ FalseinThe number of points is greater than lambdanPWhen it is, let SpulseTrue, then { P }outThe number of points is greater than gamma NPWhen it is, let SpulseFalse and the number of pulses NpuslePlus one, if the suction hole 2 is judged to be a cavity at the moment, the number of the cavities N isemptyAdd one, namely
St.Spulse=False,Sempty=False,Npulse=0,Nempty=0
if Spulse=False and Nin>λNP
{Spulse=True
if Spulse=True and Nout>γNP
Figure BDA0002654314760000041
Wherein N isin、Nout、NPAre respectively a set of points { Pin}、{Pout}、{PiThe number of the middle points, λ and γ are two preset thresholds.
Step 4, performing cutting, histogram equalization and adaptive thresholding operations on the picture 5 to obtain a binary image, specifically:
when S ispulseTrue and { P ═ PinThe number of points is greater than lambdanPTo gray scale image IgreyCutting to obtain an interested area IROIThen histogram equalization is carried out to obtain an image I with enhanced contrasthistFinally, self-adaptive thresholding operation is carried out to obtain a binary image Ibin
I.e. IROI=Rect(Igrey),Ihist=equalizeHist(IROI),Ibin=adaptiveThreshold(Ihist);
When S ispulseTrue and { P ═ PinThe number of points is less than lambdanpThen, the process returns to step 301.
Step 5, according to the binary image IbinAnd whether the suction hole 2 is a hole, namely:
if sum(Ibin)>Te
Sempty=True
wherein, sum (I)bin) Is IbinPixel sum of (1), TeThe threshold is preset to determine whether the hole is present.
And 6, marking the picture 5 with different colors according to whether the suction hole 2 is a cavity or not and displaying the picture.
Step 7, according to the pulse number NpulseAnd number of holes NemptyCalculating the rate rho of missed seeding by the formula
Figure BDA0002654314760000051
And 8, repeating the steps 3 to 7 until the air-suction seeder stops operating, and finishing the seeding detection of the operation of the air-suction seeder.
The Rect, equalizehost and adaptiveThreshold are all common algorithms for image processing, and corresponding implementations can be found in a relevant library.
The air-suction seeder seeding detection method based on machine vision marks air holes with different colors according to whether the air holes are holes, and simultaneously directly displays pictures, so that the intuition is strong. Moreover, the influence of the environment is small, and misjudgment is not easy to generate, so that the correctness of the detection result is greatly improved.

Claims (2)

1. A machine vision-based sowing detection method for an air-suction type seeder is characterized by comprising the following steps:
step 1, mounting a camera on a seeder, wherein the camera can acquire pictures simultaneously including a suction hole and a process groove of the seeder;
step 2, calibrating the position of the process tank in the picture to obtain a sampling point set { P }i}, sample point PiThe coordinates x, y of (a) represent the pixel coordinates in the picture;
step 3, the seeder works, the suction holes and the process grooves rotate along with the seeding disc of the seeder, and the { P is set according to the sampling pointsiDetermining whether a new suction hole appears according to the gray value distribution, and recording as a pulse when the new suction hole appears, wherein the method specifically comprises the following steps:
step 301, convert the picture into a grayscale Igrey
Step 302, each sampling point Pi(xi,yi) Can be used forCorresponding gray scale map IgreyGray value G of one pointiThen get the gray value set { G }iIn which Gi(xi,yi)=Igrey(x=xi,y=yi);
Step 303, set of sampling points { P }iDividing the process into a set of points (P) which are positioned in the process tank and have low gray valueinAnd a set of points outside the process tank with high gray scale values PoutI.e. that
if Gi≤Ttr Pi∈{Pin}
if Gi>Ttr Pi∈{Pout}
Wherein, TtrA preset threshold value is set so as to distinguish the gray value;
step 304, initially setting a pulse state SpulseFalse and a hole state SemptyWhen { P ═ FalseinThe number of points is greater than lambdanPWhen it is, let SpulseTrue, then { P }outThe number of points is greater than gamma NPWhen it is, let SpulseFalse and the number of pulses NpuslePlus one, if the suction hole is judged to be a cavity at the moment, the number of the cavities is NemptyAdd one, namely
St.Spulse=False,Sempty=False,Npulse=0,Nempty=0
if Spulse=False and Nin>λNP
{Spulse=True
if Spulse=True and Nout>γNP
Figure FDA0002654314750000011
Wherein N isin、Nout、NPAre respectively a set of points { Pin}、{Pout}、{PiThe number of the middle points, lambda and gamma are two preset thresholds;
step 4, performing cutting, histogram equalization and adaptive thresholding operations on the picture to obtain a binary image, specifically comprising the following steps:
when S ispulseTrue and { P ═ PinThe number of points is greater than lambdanpTo gray scale image IgreyCutting to obtain an interested area IROIThen histogram equalization is carried out to obtain an image I with enhanced contrasthistFinally, self-adaptive thresholding operation is carried out to obtain a binary image Ibin
I.e. IROI=Rect(Igrey),Ihist=equalizeHist(IROI),Ibin=adaptiveThreshold(Ihist);
When S ispulseTrue and { P ═ PinThe number of points is less than lambdanpIf yes, go back to step 301;
step 5, according to the binary image IbinAnd determining whether the suction hole is a hole, namely:
if sum(Ibin)>Te
Sempty=True
wherein, sum (I)bin) Is IbinPixel sum of (1), TeA preset threshold value for judging whether the hole exists or not;
step 6, marking pictures with different colors according to whether the suction holes are cavities or not and displaying the pictures;
step 7, according to the pulse number NpulsAnd number of holes NemptyCalculating the rate rho of missed seeding by the formula
Figure FDA0002654314750000021
And 8, repeating the steps 3 to 7 until the air-suction seeder stops operating, and finishing the seeding detection of the operation of the air-suction seeder.
2. The machine vision-based air-suction seeder seeding detection method according to claim 1, wherein in the step 2, the position of the process groove in the picture is manually calibrated.
CN202010869573.3A 2020-08-28 2020-08-28 Air-suction type seeder seeding detection method based on machine vision Pending CN112102258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010869573.3A CN112102258A (en) 2020-08-28 2020-08-28 Air-suction type seeder seeding detection method based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010869573.3A CN112102258A (en) 2020-08-28 2020-08-28 Air-suction type seeder seeding detection method based on machine vision

Publications (1)

Publication Number Publication Date
CN112102258A true CN112102258A (en) 2020-12-18

Family

ID=73756616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010869573.3A Pending CN112102258A (en) 2020-08-28 2020-08-28 Air-suction type seeder seeding detection method based on machine vision

Country Status (1)

Country Link
CN (1) CN112102258A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308184A (en) * 2008-06-13 2008-11-19 深圳创维-Rgb电子有限公司 Method and system for analyzing and detecting inserting element using image
JP2010171571A (en) * 2009-01-21 2010-08-05 Mitsubishi Electric Corp Image processor, image processing method, and image display device
CN104392430A (en) * 2014-10-22 2015-03-04 华南农业大学 Machine vision-based super hybrid rice bunch seeding quantity detection method and device
WO2017215241A1 (en) * 2016-06-16 2017-12-21 广州视源电子科技股份有限公司 Circuit board element missing detection method and system
CN107527066A (en) * 2017-07-26 2017-12-29 华南农业大学 One kind is based on Embedded hybrid paddy rice sowing performance detecting system and detection method
CN110400290A (en) * 2019-07-02 2019-11-01 广州大学 A kind of detection method, device and the storage medium of solar battery sheet color difference
CN111091520A (en) * 2018-10-24 2020-05-01 杨晨曦 Precision detection method for sowing performance parameters of hybrid rice bowl body tray

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308184A (en) * 2008-06-13 2008-11-19 深圳创维-Rgb电子有限公司 Method and system for analyzing and detecting inserting element using image
JP2010171571A (en) * 2009-01-21 2010-08-05 Mitsubishi Electric Corp Image processor, image processing method, and image display device
CN104392430A (en) * 2014-10-22 2015-03-04 华南农业大学 Machine vision-based super hybrid rice bunch seeding quantity detection method and device
WO2017215241A1 (en) * 2016-06-16 2017-12-21 广州视源电子科技股份有限公司 Circuit board element missing detection method and system
CN107527066A (en) * 2017-07-26 2017-12-29 华南农业大学 One kind is based on Embedded hybrid paddy rice sowing performance detecting system and detection method
CN111091520A (en) * 2018-10-24 2020-05-01 杨晨曦 Precision detection method for sowing performance parameters of hybrid rice bowl body tray
CN110400290A (en) * 2019-07-02 2019-11-01 广州大学 A kind of detection method, device and the storage medium of solar battery sheet color difference

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
谭穗妍: "《基于机器视觉和 BP 神经网络的超级杂交稻穴播量检测》", 《农业工程学报》, vol. 30, no. 21, 30 November 2014 (2014-11-30) *
齐龙: "《基于机器视觉的超级稻秧盘育秧播种空穴检测技术》", 《农业工程学报》, no. 02, 28 February 2009 (2009-02-28) *

Similar Documents

Publication Publication Date Title
JP7148581B2 (en) Colony contrast collection
JP7149360B2 (en) Method and system for automated microbial colony counting from samples streaked onto plates
EP2681715B1 (en) Method and software for analysing microbial growth
US8073236B2 (en) System and method for detecting blemishes on image sensor package
CN110930427B (en) Image segmentation method, device and storage medium based on semantic contour information
US20170011512A1 (en) Cell recognition device, method, and program
CN114627089A (en) Defect identification method, defect identification device, computer equipment and computer readable storage medium
CN114549441A (en) Sucker defect detection method based on image processing
CN116721391A (en) Method for detecting separation effect of raw oil based on computer vision
CN116630332B (en) PVC plastic pipe orifice defect detection method based on image processing
CN113484867A (en) Imaging sonar-based fish school density detection method in closed space
CN112102258A (en) Air-suction type seeder seeding detection method based on machine vision
CN116402822B (en) Concrete structure image detection method and device, electronic equipment and storage medium
CN117330582A (en) Polymer PE film surface crystal point detecting system
JP2022514427A (en) Systems and methods for monitoring bacterial growth of bacterial colonies and predicting colony biomass
CN116152220A (en) Seed counting and size measuring method based on machine vision
CN111105394B (en) Method and device for detecting characteristic information of luminous pellets
CN103593667A (en) Rapid image foreign matter identification method based on set connectivity principle
CN110458042A (en) A kind of number of probes detection method in fluorescence CTC
CN110458840B (en) Method, system and terminal equipment for reducing panel defect over-detection rate
CN110766687B (en) Brucella detection device, computer equipment and storage medium
CN110517614B (en) Method for detecting bad conductive particles of liquid crystal module
JP2018021817A (en) Inspection device and inspection method
CN117197123A (en) Fish shoal counting method based on dynamic visual image multi-mode fusion
CN116626071A (en) Plastic film defect detection system

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