[go: up one dir, main page]

CN1207683C - Ordered picture splicing method in seed grain-space detection - Google Patents

Ordered picture splicing method in seed grain-space detection Download PDF

Info

Publication number
CN1207683C
CN1207683C CNB021493634A CN02149363A CN1207683C CN 1207683 C CN1207683 C CN 1207683C CN B021493634 A CNB021493634 A CN B021493634A CN 02149363 A CN02149363 A CN 02149363A CN 1207683 C CN1207683 C CN 1207683C
Authority
CN
China
Prior art keywords
image
mark
seed
seeds
adhesive tape
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.)
Expired - Fee Related
Application number
CNB021493634A
Other languages
Chinese (zh)
Other versions
CN1405717A (en
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.)
China Agricultural University
Original Assignee
China Agricultural University
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 China Agricultural University filed Critical China Agricultural University
Priority to CNB021493634A priority Critical patent/CN1207683C/en
Publication of CN1405717A publication Critical patent/CN1405717A/en
Application granted granted Critical
Publication of CN1207683C publication Critical patent/CN1207683C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The present invention relates to a method for detecting grain spaces of seeds, particularly to a method for splitting sequential images in the detection of grain spaces of seeds. The method for splitting sequential images in the detection of grain spaces of seeds is characterized in that the method comprises the following steps that (1), a plurality of marks with different sizes and the same interval are made on a recording adhesive tape; (2), a first complete mark of the overlapping region of two adjacent images of the sequential images acquired by a computer is used as a reference so as to find the form center of the first complete mark; (3), pixels of the former image are taken up to the form center of the first complete mark of the image overlapping region; (4), pixels of the latter image are taken from the form center of the same mark of the image overlapping region; (5), in the two adjacent images, grain spaces of adjacent seeds which are not in the overlapping region are the sum of horizontal distance between seeds in the first image and the center form of the image mark, and horizontal distance between the form center of the image mark in the second image and seeds in the image.

Description

种子粒距检测中序列图像拼接方法Sequence Image Mosaic Method in Seed Distance Detection

技术领域technical field

本发明涉及一种种子粒距检测方法,特别是种子粒距检测中序列图像的拼接方法。The invention relates to a method for detecting the distance between seeds, in particular to a splicing method for sequence images in the detection of the distance between seeds.

背景技术Background technique

基于图像处理与分析的检测技术是集计算机技术、图像技术、自动控制技术为一体的综合检测方法,具有直接、快速、真实、可靠的特点,是一种非接触式的直接检测方法。随着图像处理技术的专业化和计算机性能价格比的提高,这一技术在农业工程领域得到广泛的应用。The detection technology based on image processing and analysis is a comprehensive detection method integrating computer technology, image technology and automatic control technology. It has the characteristics of direct, fast, real and reliable, and is a non-contact direct detection method. With the specialization of image processing technology and the improvement of computer performance and price ratio, this technology has been widely used in the field of agricultural engineering.

种子粒距的检测是进行精密播种机性能检测的关键步骤,目前国内外的种子粒距检测主要以光电检测手段为主,通过记录两粒种子落下的时间间隔和地轮前进的速度来计算种子的间距。其方法属于间接检测不能直接反映种子的实际间距。The detection of seed particle distance is a key step in the performance detection of precision seeders. At present, the detection of seed particle distance at home and abroad is mainly based on photoelectric detection methods. The seed is calculated by recording the time interval between two seeds falling and the speed of the ground wheel. Pitch. Its method belongs to indirect detection and cannot directly reflect the actual spacing of seeds.

发明内容Contents of the invention

本发明的目的在于提供一种基于图像处理和分析技术的种子粒距检测方法,该方法可以实现三个播种单体同时试验,缩短试验时间;对测量的数据进行即时处理,给出精密播种机的合格指数、重播指数、漏播指数等性能指标,自动绘出粒距分布直方图。The object of the present invention is to provide a kind of seed particle distance detection method based on image processing and analysis technology, this method can realize three sowing single monomer test at the same time, shorten test time; The measured data is processed in real time, and a precision seeder is given. The qualified index, replay index, missed seed index and other performance indicators can automatically draw the particle distance distribution histogram.

种子粒距检测中序列图像拼接方法,其特点在于:The sequence image mosaic method in the detection of seed particle distance is characterized in that:

该方法包括如下步骤:The method comprises the steps of:

(1)在记录胶带上作若干个等距离的大小相间的标记;(1) Make several equidistant and alternate marks on the recording tape;

(2)以计算机所采集的序列图像的两帧相邻图像的重叠区域的第一个完整标记为准找到其形心;(2) Find its centroid as the criterion of the first complete mark in the overlapping area of two frames of adjacent images of the sequence images collected by the computer;

(3)前一帧图像中的像素取到该图像重叠区域的第一个完整标记的形心止;(3) The pixels in the previous frame image are taken to the centroid of the first complete mark in the overlapping area of the image;

(4)后一帧图像中的像素从该图像重叠区域的相同标记的形心开始取;(4) The pixels in the next frame image start to get from the centroid of the same mark in the image overlap region;

(5)两帧相邻图像中不在重叠区域的相邻种子的粒距为第一帧图像中的种子到该图像标记的形心的水平距离与第二帧图像中图像标记的形心与该图像中种子的水平距离之和。(5) The grain distance of adjacent seeds that are not in the overlapping area in two adjacent images is the horizontal distance from the seed in the first frame image to the centroid of the image mark and the centroid of the image mark in the second frame image and the The sum of the horizontal distances of the seeds in the image.

本方法是基于图像处理和分析技术的种子粒距检测方法,研究了检测试验台以不同速度运行时精密播种机排种情况动态检测技术,实现了三个播种单体同时试验,大大缩短了试验时间。通过对所采集的序列图像的处理和分析,利用基于标记的图像匹配技术,实现了多个种子间距的测量。并对测量的数据进行即时处理,给出精密播种机的合格指数、重播指数、漏播指数等性能指标,自动绘出粒距分布直方图。This method is a seed distance detection method based on image processing and analysis technology. It studies the dynamic detection technology of precision seeder seeding when the detection test bench is running at different speeds, and realizes the simultaneous test of three sowing units, which greatly shortens the test time. time. Through the processing and analysis of the collected sequence images, the measurement of the distance between multiple seeds is realized by using the marker-based image matching technology. And the measured data is processed in real time, and performance indicators such as the qualified index, reseeding index, and missed seeding index of the precision seeder are given, and the histogram of the particle distance distribution is automatically drawn.

附图说明Description of drawings

图1为本发明试验系统结构框图Fig. 1 is a structural block diagram of the test system of the present invention

图2为本发明摄像头与图像卡的连接示意图Fig. 2 is the connection schematic diagram of camera head and image card of the present invention

图3为本发明原始采集图像Fig. 3 is the original collection image of the present invention

图4为本发明阈值化后图像Fig. 4 is the image after thresholding of the present invention

图5为本发明图像拼接原理Fig. 5 is the image splicing principle of the present invention

图6为本发明粒距分布直方图Fig. 6 is a histogram of particle distance distribution of the present invention

具体实施方式Detailed ways

请参考图1,种子粒距检测原理是:播种机或播种单体(排种器)静止安装在橡胶带上方,在调速电机拖动下,橡胶带相对播种机作水平运动。试验时,种箱内的种子经排种器、排种管掉落在胶带上(胶带上涂有润滑油,以将种子粘住,使其与胶带不发生相对位移),胶带在通过CCD测量系统摄像头时,实时采集一定幅面内的图像,经图像卡分割、转换,使计算机进行分析、计算、处理,从而实施对种子粒距或单位距离内的种子粒数的测量。给定播种机播种均匀性的评价结果。系统程序同时对传送带速度与图像测距速度实施协调控制。Please refer to Figure 1, the principle of seed particle distance detection is: the planter or the sowing unit (seeding device) is statically installed above the rubber belt, and the rubber belt moves horizontally relative to the planter under the drag of the speed-regulating motor. During the test, the seeds in the seed box fell on the tape through the seed meter and the seed pipe (the tape is coated with lubricating oil to stick the seeds so that there is no relative displacement between the tape and the tape), and the tape is measured by the CCD. When using the system camera, the images in a certain format are collected in real time, and the images are divided and converted by the image card, so that the computer can analyze, calculate and process, so as to measure the distance between seeds or the number of seeds within a unit distance. The evaluation results of the seeding uniformity of the given seeder. The system program implements coordinated control on the conveyor belt speed and image ranging speed at the same time.

本检测系统模块的组成:The composition of the detection system module:

1、控制指令模块:主要设备顺序开关控制,橡胶带移动速度,排种器转速指令控制。1. Control command module: main equipment sequence switch control, rubber belt moving speed, seed meter speed command control.

2、图像采集模块:根据所指定的胶带速度,权衡重叠区域的大小以及测量精度,将序列图像采集计算机的图像缓存区。2. Image acquisition module: according to the specified tape speed, the size of the overlapping area and the measurement accuracy are weighed, and the sequence image is acquired in the image buffer area of the computer.

3、图像预整分割模块:对图像处理,将种子和背景分开,并对挤挨种子进行识别。3. Image pre-segmentation module: process the image, separate the seeds from the background, and identify the squeezed seeds.

4、数据分析、计算模块:计算种子的间距或一定长度区间内种子的个数。根据种子粒距检测要求分析各种性能参数。4. Data analysis and calculation module: calculate the distance between seeds or the number of seeds within a certain length interval. Analyze various performance parameters according to the requirements of the seed distance detection.

5、后处理模块:将试验结果存入数据库,根据要求生成试验结果报表并打印。5. Post-processing module: store the test results in the database, generate test result reports and print them as required.

6、系统自动控制模块:接收中心计算机发出的指令,完成整个系统的各部分协调控制。6. System automatic control module: receive instructions from the central computer, and complete the coordinated control of all parts of the entire system.

系统硬件结构:System hardware structure:

测量系统要同时进行三个播种单体的试验,完成三行种子粒距的检测,因此选用了一块支持RGB三分量视频信号独立采集的彩色图像卡,将3个同步的黑白独立视频源作为图像卡的3个标准R、G、B分量输入,按照8×3=24位方式完成数据的存储。The measurement system needs to test three sowing monomers at the same time and complete the detection of the distance between three rows of seeds. Therefore, a color image card that supports independent acquisition of RGB three-component video signals is selected, and three synchronized black and white independent video sources are used as images. The three standard R, G, and B component inputs of the card complete data storage according to 8×3=24 bits.

·彩色图像采集卡:OK_RGB10;·Color image acquisition card: OK_RGB10;

·CCD黑白工业摄像机:WAT-505EX;· CCD black and white industrial camera: WAT-505EX;

·一分四视频分配器一台·One to four video splitter

·镜头:SE1614(16mm,1/10000s);Lens: SE1614 (16mm, 1/10000s);

·计算机:联想奔月2000 PIII 933。·Computer: Lenovo Benyue 2000 PIII 933.

图2为本发明摄像头和图像卡的连接示意图。Fig. 2 is a schematic diagram of the connection between the camera and the image card of the present invention.

图像采集与分析:Image acquisition and analysis:

图像采集:Image Acquisition:

该检测系统是一个动态的测量系统。试验时,胶带速度分别为0.5m/s、1m/s、1.5m/s、2m/s、2.5m/s、3m/s。为了使序列图像前后两帧之间重叠的尽可能少,又不影响拼接的精度,解决动态图像采集是必须解决的问题。The detection system is a dynamic measurement system. During the test, the tape speeds are 0.5m/s, 1m/s, 1.5m/s, 2m/s, 2.5m/s, 3m/s respectively. In order to minimize the overlap between the two frames before and after the sequence image without affecting the accuracy of splicing, it is necessary to solve the problem of dynamic image acquisition.

摄像机获取图像形成视频信号是用扫描的方式逐行顺序进行的。隔行扫描分奇偶两场进行,奇场的扫描线均匀的插在偶场相邻扫描线中间。奇偶两场合为一帧。当胶带线速度最高为3m/s时,一般的摄像机40ms采一帧,这个期间目标将移动3×40=120mm,在采集的图像中种子成为一个变形的长条,将严重影响到以后的图像处理与分析。本系统采用带电子快门的摄像头,通过缩短曝光时间排除由于运动所带来的图像模糊。The camera acquires images and forms video signals in a scanning manner, line by line. The interlaced scan is divided into two fields, odd and even, and the scan lines of the odd field are evenly inserted between the adjacent scan lines of the even field. Odd and even occasions are one frame. When the linear speed of the tape is up to 3m/s, the general camera takes 40ms to capture a frame. During this period, the target will move 3×40=120mm. In the collected image, the seed becomes a deformed strip, which will seriously affect the future image. processing and analysis. This system uses a camera with an electronic shutter to eliminate image blur caused by motion by shortening the exposure time.

摄像头采集的图像分奇偶场,奇场、偶场之间的时间间隔是20ms,由奇偶两场图像组成的一帧图像里,同一个目标体却有两个像,具体采用哪个像作为种子,是无法判别的。OK_RGB10图像采集卡可采集单场、单帧、间隔几帧、连续帧等,精确到场,利用图像卡的这个特性,采用逐场采集顺序存放图像,处理的时候以场为单位,这样就可以保证一粒种子在一帧图像里只有一个像。The images collected by the camera are divided into odd and even fields. The time interval between the odd and even fields is 20ms. In one frame of images composed of the odd and even images, there are two images of the same target. Which image is used as the seed? is indistinguishable. The OK_RGB10 image acquisition card can capture single field, single frame, several frames at intervals, continuous frames, etc., accurate to the scene. Using this feature of the image card, the image is stored in the order of field-by-field acquisition, and the field is used as the unit for processing, so that it can be guaranteed One seed has only one image in one frame of image.

由于摄像头采集图像的速度为25帧/s,胶带移动的最快速度为3m/s,拍摄一帧图像的时间里,胶带移过120mm。如果按摄像头固有的频率拍摄,前后两帧图像之间将有大量的冗余信息。利用OK-RGB10图像采集卡提供的帧间隔设置函数okSetCaptureParam(hBoard,CAPTURE_INTERVAL,INTERVAL),根据不同的速度设置不同的帧间隔,以能达到减小数据量,同时保证能实现前后两帧图像正确拼接的目的。帧间隔的计算公式如下:Since the image acquisition speed of the camera is 25 frames/s, the maximum speed of tape movement is 3m/s, and the tape moves through 120mm during the time of capturing one frame of image. If you shoot at the inherent frequency of the camera, there will be a lot of redundant information between the two frames of images. Use the frame interval setting function okSetCaptureParam(hBoard, CAPTURE_INTERVAL, INTERVAL) provided by the OK-RGB10 image acquisition card to set different frame intervals according to different speeds, so as to reduce the amount of data and ensure the correct splicing of the two frames before and after the goal of. The formula for calculating the frame interval is as follows:

INTERVAL = 200 V × 20 - 1 , 其中INTERVAL——帧间隔,V——胶带速度 INTERVAL = 200 V × 20 - 1 , Among them, INTERVAL——frame interval, V——tape speed

种子分离:Seed separation:

本系统采用了图像阈值化分割法来实现背景和种子的分离。像素的灰度值大于阈值的为种子,小于阈值的为背景。基于采集的图像有固定的光源照明,采集环境也不发生变化,因此采用了固定的阈值,根据多次实验的结果,阈值设为50达到了很好的效果。如图3为采集的原始图像,图4为二阈值化后的图像。This system uses image thresholding segmentation method to realize the separation of background and seeds. Pixels whose gray values are greater than the threshold are the seeds, and those whose gray values are less than the threshold are the background. Based on the fact that the collected image has a fixed light source and the collection environment does not change, a fixed threshold is adopted. According to the results of many experiments, the threshold is set to 50 to achieve a good effect. Figure 3 is the original image collected, and Figure 4 is the image after two thresholding.

图3、图4中,黑色部分为背景,最亮的点为绿色通道,最暗的点为蓝色通道,亮度居中的为红色通道。图象上方大小相间的点为标记,标记位于绿色通道。In Figure 3 and Figure 4, the black part is the background, the brightest point is the green channel, the darkest point is the blue channel, and the brightness is in the middle is the red channel. The dots of different sizes on the top of the image are markers, and the markers are located in the green channel.

可以看出阈值化后的图像种,背景和种子已经完全分离开来,图像上方大小相间的点为图像拼接标记,中部红绿蓝三种颜色的大区域分别为三个播种单体播出的种子,这里采用为了方便手工测量采用纸片代替种子。It can be seen that in the image after thresholding, the background and seeds have been completely separated. The dots above the image are image splicing marks, and the large areas of red, green and blue in the middle are broadcast by three sowing units. Seeds, here, for the convenience of manual measurement, paper chips are used instead of seeds.

为了识别不同的种子需要对上图中连通的区域进行标记。将不同的区域赋予不同的标记就达到了种子识别的目的。这里采用了像素标记的方法:对图像进行从左到右从上到下进行四连通扫描(扫描区域不包括标记区),假如当前像素的灰度值为0,就移到下一个扫描位置。假如当前像素的灰度值为255,检查它左边和上边的两个近邻像素(根据所采用的扫描次序,当扫描到达当前像素时这两个近邻像素已被处理过了)。需要考虑四种情况:(1)它们的灰度值都为0,给当前像素一个新的标记;(2)只有一个灰度值为255,就把该像素的标记赋给当前像素;(3)它们的灰度值都为255且具有相同的标记,就把该标记赋给当前像素;(4)它们的灰度值都为255且具有不同的标记,就将其中的一个标记赋给当前像素,并做记号表明这两个标记等价[2][3]。最后重新扫描图像,将每个标记用它所在等价对的标记代替。红绿蓝三个通道分别进行扫描,每个通道的种子自为一组,与其他通道无关。In order to identify different seeds, it is necessary to mark the connected regions in the above figure. Assigning different marks to different regions achieves the purpose of seed identification. Here, the method of pixel marking is adopted: the image is scanned from left to right and from top to bottom (the scanning area does not include the marking area), and if the gray value of the current pixel is 0, move to the next scanning position. If the grayscale value of the current pixel is 255, check its two neighbors to the left and above (according to the scan order used, these two neighbors have been processed when the scan reaches the current pixel). Four situations need to be considered: (1) their gray values are all 0, and a new mark is given to the current pixel; (2) only one gray value is 255, and the mark of the pixel is assigned to the current pixel; (3 ) their gray value is 255 and have the same mark, just assign this mark to the current pixel; (4) their gray value is 255 and have different marks, just assign one of the marks to the current pixel pixels, and make a notation indicating that the two notations are equivalent [2][3] . Finally the image is rescanned, replacing each marker with the marker of its equivalent pair. The three channels of red, green and blue are scanned separately, and the seeds of each channel are a group of their own, which has nothing to do with other channels.

种子中心的确定:Determination of the seed center:

在进行了种子的标记以后,标记一样的像素就认为属于同一个种子。对于不同的区域,只要求出它的形心,就把该点作为种子的中心。我们只关心两粒种子在播行中心线的投影距离,所以只要求出这个方向的坐标即可。以图像的左上角作为坐标原点,向右为X轴正向,向下为Y轴正向,每粒种子中心的X坐标即为所求,其计算公式如下[4]After the seeds are marked, pixels with the same mark are considered to belong to the same seed. For different regions, only its centroid is required, and this point is taken as the center of the seed. We only care about the projection distance of the two seeds on the center line of the broadcast, so we only need to find the coordinates in this direction. Take the upper left corner of the image as the coordinate origin, the right direction is the positive direction of the X axis, and the downward direction is the positive direction of the Y axis. The X coordinate of the center of each seed is the desired one. The calculation formula is as follows [4] :

x ‾ = Σ t = 0 n - 1 Σ j = 0 m - 1 jB [ i , j ] A 其中 A = Σ i = 0 n - 1 Σ j = 0 m - 1 B [ i , j ] , B[I,j]为该点的标 x ‾ = Σ t = 0 no - 1 Σ j = 0 m - 1 jB [ i , j ] A in A = Σ i = 0 no - 1 Σ j = 0 m - 1 B [ i , j ] , B[I, j] is the label of the point

记值record value

对于不同的分别进行上述运算就得到所有种子的形心的X坐标值。The X coordinate values of the centroids of all the seeds are obtained by performing the above operations on different ones respectively.

序列图像拼接原理:Sequence image stitching principle:

由于该检测系统为动态实时检测,其传送带速度在0.5m/s---3m/s范围内无级变速,检测试验台为16m长、1.97m宽,同时完成三台播种机(播种单体)播种精度的实时检测,每个播种机播种250粒,其粒间距分别为30mm——150mm不等,其传送带移动的长度为7500mm-----37500mm,如果以一帧图像的取像范围为270mm长×250mm宽,采集图像数为30幅——150幅,为了使序列图像前后两帧之间重叠的尽可能少,又不影响拼接的精度,解决动态图像采集与序列图像拼接问题成为关键。Since the detection system is dynamic and real-time detection, the speed of the conveyor belt is continuously variable within the range of 0.5m/s---3m/s, and the detection test bench is 16m long and 1.97m wide. ) real-time detection of seeding accuracy, each seeder sows 250 grains, the distance between the grains is 30mm-150mm, and the moving length of the conveyor belt is 7500mm--37500mm, if the imaging range of one frame image It is 270mm long x 250mm wide, and the number of collected images is 30-150. In order to make the overlap between the two frames before and after the sequence image as little as possible without affecting the accuracy of splicing, solving the problem of dynamic image collection and sequence image splicing becomes The essential.

序列图像检测的一个关键问题就是图像之间的拼接,图像匹配是否准确对测量的精度有着重要的影响。本系统采用了在胶带上作标记,并用此标记作为前后图像两帧图像匹配的标准的方法。这样做是基于以下原理的:A key issue in sequence image detection is the stitching between images, and whether the image matching is accurate has an important impact on the accuracy of the measurement. This system adopts the method of marking on the adhesive tape and using this mark as the standard method for matching the two frames of images before and after. This is done on the basis of the following principles:

图5(a)所示是计算机所采集的两帧相邻图像,要实现边界两粒种子间距的测量,即如图5(b)一样将两帧图像拼接起来,但这样计算量相当大,因为要搬动大量的像素,算法也比较繁杂。如图5(c)分别在两帧图中以标记为准找到标记的中心,在第一帧图中像素取到此就结束,在第二帧图中从标记的中心开始取像素,相当于将两帧图像拼接起来,免去了图像拼接要做的大量搬动像素的工作,而且达到了图像拼接的效果。为求L,可分别测出L1和L2,得到L=L1+L2。对于条播机,同样取一定的距离来测量该区段内的种子粒数,对于边界的重合部分,只要两帧图像以同样的标记为准即可。Figure 5(a) shows two frames of adjacent images collected by the computer. To measure the distance between two seeds at the boundary, the two frames of images are stitched together as in Figure 5(b), but the amount of calculation is quite large. Because a large number of pixels need to be moved, the algorithm is also complicated. As shown in Figure 5(c), the center of the mark is found in the two frames of the picture respectively based on the mark. In the first frame, the pixel acquisition ends here, and in the second frame, the pixel is taken from the center of the mark, which is equivalent to Stitching two frames of images saves a lot of work of moving pixels for image stitching, and achieves the effect of image stitching. In order to find L, L1 and L2 can be measured respectively, and L=L1+L2 can be obtained. For the drill, a certain distance is also taken to measure the number of seeds in the section. For the overlapping part of the boundary, as long as the two frames of images are subject to the same mark.

图像重叠区域依据采集时设置的帧间隔而定,其计算公式如下:The image overlapping area depends on the frame interval set during acquisition, and its calculation formula is as follows:

图像与前一帧图像的重叠区域:[0,(270-(INTERVAL+1)×20×V)×768÷270]The overlapping area between the image and the previous frame image: [0, (270-(INTERVAL+1)×20×V)×768÷270]

图像与后一帧图像的重叠区域:[768-(270-(INTERVAL+1)×20×V)×768÷270,768]The overlapping area between the image and the next frame image: [768-(270-(INTERVAL+1)×20×V)×768÷270, 768]

程序实现算法:Program implementation algorithm:

a、找到上一帧图像中重叠区域的第一个完整标记a. Find the first complete marker of the overlapping area in the previous frame image

b、找到下一帧图像中重叠区域的第一个完整标记b. Find the first complete marker in the overlapping area in the next image frame

c、判断两个标记大小是否一致c. Determine whether the sizes of the two marks are consistent

d、如果一致就认为标记匹配d. If consistent, the tag is considered to match

e、如果不一致,就取上一帧或下一帧的第二个标记进行匹配,直到匹配好为止。在上述标记匹配的算法中考虑了胶带速度的影响,只要胶带速度变化引起的在20ms内胶带移动的距离变化不超过一个标记间距,上述算法都是有效的。e. If they are inconsistent, take the second mark of the previous frame or the next frame to match until the match is complete. The influence of the tape speed is considered in the above mark matching algorithm, as long as the change of the tape moving distance within 20 ms caused by the change of the tape speed does not exceed one mark interval, the above algorithm is valid.

测量结果:Measurement result:

表1截取了一部分在胶带速度为0.5m/s时的一组测量使用本系统所测量的结果与手工测量值。我们使用该系统对同一组种子进行了两次实验,以便对使用本系统进行检测的结果一致性进行对比。Table 1 intercepts a part of a group of measurements when the tape speed is 0.5m/s, using the results measured by this system and manual measurement values. We used this system to conduct two experiments on the same set of seeds in order to compare the consistency of the detection results using this system.

本次实验的合格指数为72.0,重播指数为17.89,漏播指数为10.53,平均值为0.98,标准差为0.23。从表1中可以看出,本系统的测量结果与手工测量结果有很好的一致性,偏差在±2mm之内,符合播种机性能试验检测要求。而且进一步发现使用本系统进行的两次对比实验,结果的一致性也较好。所绘直方图6与测量结果与种子的实际分布完全一致。     手工测量结果(mm)  本系统测量结果1(mm) 偏差(mm) 本系统测量结果2(mm) 偏差(mm)     26.90     27.07     -0.17     27.07     -0.17     91.00     90.352     0.65     90.352     0.65     120.90     120.586     0.31     120.938     -0.04     7.50     6.68     0.82     7.031     0.47     124.80     124.102     0.70     124.102     0.70     115.50     115.313     0.19     115.313     0.19     73.00     73.477     -0.48     73.125     -0.13     54.80     53.789     1.01     54.141     0.66     45.50     45.352     0.15     45.352     0.15     90.50     90.352     0.15     90     0.50 The qualified index of this experiment is 72.0, the replay index is 17.89, the missed broadcast index is 10.53, the average value is 0.98, and the standard deviation is 0.23. It can be seen from Table 1 that the measurement results of this system are in good agreement with the manual measurement results, and the deviation is within ±2mm, which meets the requirements of the seeder performance test. Moreover, it is further found that the consistency of the results of the two comparative experiments carried out using this system is also good. The drawn histogram 6 is completely consistent with the measured results and the actual distribution of seeds. Manual measurement result(mm) The measurement result of this system 1 (mm) Deviation(mm) The measurement result of this system 2 (mm) Deviation(mm) 26.90 27.07 -0.17 27.07 -0.17 91.00 90.352 0.65 90.352 0.65 120.90 120.586 0.31 120.938 -0.04 7.50 6.68 0.82 7.031 0.47 124.80 124.102 0.70 124.102 0.70 115.50 115.313 0.19 115.313 0.19 73.00 73.477 -0.48 73.125 -0.13 54.80 53.789 1.01 54.141 0.66 45.50 45.352 0.15 45.352 0.15 90.50 90.352 0.15 90 0.50

Claims (1)

1, a kind of seed grain sequence image joining method in detect is characterized in that: this method comprises the steps:
(1) on the record adhesive tape, makes the alternate mark of several equidistant sizes, the static adhesive tape top that is installed in of seeder or planter, drag down at buncher, the relative seeder of adhesive tape moves horizontally, and the seed of planting in the case drops on adhesive tape through feed mechanism for seed, discharging tube, scribble lubricating oil on the adhesive tape, so that seed is clung, make itself and adhesive tape that relative displacement not take place, adhesive tape is by the measuring system camera time, camera and image card cooperate, in real time images acquired;
(2) adopt the image threshold split plot design to realize separating of background and seed, the gray-scale value of pixel is a seed greater than threshold value, and less than threshold value is background;
(3) adopt the method for element marking that mark is carried out in the zone that is communicated with among the figure, give different marks to discern different seeds different zones; Image is from left to right carried out four from top to bottom be communicated with scanning, scanning area does not comprise the mark zone, is 0 as the gray-scale value of current pixel, just moves on to next scanning position; Gray-scale value as current pixel is 255, checks two neighbour's pixels of its left side and top, comprises that four kinds of their gray-scale values of situation: A. all are 0, gives new mark of current pixel; B. having only a gray-scale value is 255, just the mark of this pixel is composed to current pixel; C. their gray-scale value all is 255 and has identical mark, just this mark is composed to current pixel; D. their gray-scale value all is 255 and has different marks, just one of them mark is composed to current pixel, and marking shows this two mark equivalences; Rescan image at last, each mark is replaced with the of equal value right mark in its place;
(4) pixel that mark is the same belongs to same grain seed, obtaining the center of its centre of form as seed for different zones, as true origin, is to the right the X-axis forward with the image upper left corner, be the Y-axis forward downwards, the X coordinate Calculation formula that calculates each kind subcenter is as follows:
x ‾ = Σ i = 0 n - 1 Σ j = 0 m - 1 jB [ i , j ] A
Wherein A = Σ i = 0 n - 1 Σ j = 0 m - 1 B [ i , j ] , B[i, j] be the mark value of this point;
(5) centre of form of getting first complete mark in this doubling of the image zone of the pixel in the former frame image is ended;
(6) pixel in one two field picture of back begins to get from the centre of form of the same tag in this doubling of the image zone;
In (7) the two frame adjacent images not at the grain of the adjacent seed of overlapping region apart from the horizontal range sum that is seed in the centre of form of the seed image tagged in the horizontal range of the centre of form of this image tagged and second two field picture in first two field picture and this image;
The frame period that described doubling of the image zone is provided with when gathering and deciding, its computing formula is as follows:
The overlapping region of image and former frame image:
[0,(270-(INTERVAL+1)*20*V)*768/270]
The overlapping region of image and back one two field picture:
[768-(270-(INTERVAL+1)*20*V)*768/270,768]
Wherein: INTERVAL is a frame period, and V is the adhesive tape travelling speed
The program implementation algorithm:
A finds first complete mark of overlapping region in the previous frame image;
B finds first complete mark of overlapping region in the next frame image;
C judges whether two mark size are consistent;
If the d unanimity is just thought indicia matched;
If e is inconsistent, second mark just getting previous frame or next frame mates, till matching.
CNB021493634A 2002-11-13 2002-11-13 Ordered picture splicing method in seed grain-space detection Expired - Fee Related CN1207683C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021493634A CN1207683C (en) 2002-11-13 2002-11-13 Ordered picture splicing method in seed grain-space detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021493634A CN1207683C (en) 2002-11-13 2002-11-13 Ordered picture splicing method in seed grain-space detection

Publications (2)

Publication Number Publication Date
CN1405717A CN1405717A (en) 2003-03-26
CN1207683C true CN1207683C (en) 2005-06-22

Family

ID=4751667

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021493634A Expired - Fee Related CN1207683C (en) 2002-11-13 2002-11-13 Ordered picture splicing method in seed grain-space detection

Country Status (1)

Country Link
CN (1) CN1207683C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1308888C (en) * 2004-09-01 2007-04-04 中国农业大学 Grain image three channel dynamic collecting method
JP5434621B2 (en) * 2010-01-19 2014-03-05 ソニー株式会社 Information processing apparatus, information processing method, and program thereof
US9930826B2 (en) * 2015-06-15 2018-04-03 Robert Craig McCloskey Data acquisition system for a seed planter
CN108982136A (en) * 2018-05-23 2018-12-11 安徽农业大学 A kind of system and method for seed sowing device performance detection
CN109592342B (en) * 2018-11-15 2021-05-18 华南智能机器人创新研究院 Visual cylindrical material conveying method
CN112699337B (en) * 2019-10-22 2022-07-29 北京易真学思教育科技有限公司 Equation correction method, electronic device and computer storage medium
CN113706468B (en) * 2021-07-27 2024-09-13 河北光兴半导体技术有限公司 Glass defect detection method based on BP neural network
CN114088591B (en) * 2021-12-06 2024-05-10 上海易清智觉自动化科技有限公司 Fine particle size detection device and method

Also Published As

Publication number Publication date
CN1405717A (en) 2003-03-26

Similar Documents

Publication Publication Date Title
CN112204615B (en) Fluorescence image registration method, gene sequencer, system and storage medium
US8660350B2 (en) Image segmentation devices and methods based on sequential frame image of static scene
CN101226108B (en) Method for testing droplet distribution consistency degree
CN118470016B (en) Visual inspection system for appearance defects of workpiece based on image processing
CN104867159A (en) Stain detection and classification method and device for sensor of digital camera
CN104616275A (en) Defect detecting method and defect detecting device
CN104318543A (en) Board metering method and device based on image processing method
CN1207683C (en) Ordered picture splicing method in seed grain-space detection
CN113657339A (en) A machine vision-based meter pointer counting reading method and medium
CN110889807B (en) Image processing method for channel type X-ray security inspection equipment
CN108182682A (en) A kind of detection method based on Computer Image Processing and pattern-recognition
CN105405145B (en) A Particle Counting Method Based on Image Segmentation Technology
CN105027732B (en) The method and system of corn ear test
CN101246554A (en) Multi-object Image Segmentation Method Based on Pixel Labeling
CN108471497A (en) A kind of ship target real-time detection method based on monopod video camera
CN1710606A (en) Non-contact vision paper-counting method and machine thereof
CN111583341B (en) Cloud deck camera shift detection method
CN1595058A (en) Method for improving laser measuring accuracy in image processing
CN109978916A (en) Vibe moving target detecting method based on gray level image characteristic matching
CN118392884B (en) Food package virtual seal detection method and device
CN205537520U (en) Strip recognition of code distancer table
CN119722545A (en) Low-illumination vehicle image enhancement method based on multispectral fusion and deep learning
CN109919863B (en) Full-automatic colony counter, system and colony counting method thereof
CN106546196A (en) A kind of optical axis real-time calibration method and system
CN103383729B (en) The localization method of rank arrangement target and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee