CN104751199B - A kind of cotton splits bell phase automatic testing method - Google Patents
A kind of cotton splits bell phase automatic testing method Download PDFInfo
- Publication number
- CN104751199B CN104751199B CN201310749849.4A CN201310749849A CN104751199B CN 104751199 B CN104751199 B CN 104751199B CN 201310749849 A CN201310749849 A CN 201310749849A CN 104751199 B CN104751199 B CN 104751199B
- Authority
- CN
- China
- Prior art keywords
- cotton
- image
- boll
- cotton boll
- subgraph
- 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.)
- Active
Links
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
- Treatment Of Fiber Materials (AREA)
Abstract
本发明公开了一种基于图像的棉花裂铃期检测方法。包括以下步骤:(1)获取棉田图片序列中所有棉桃位置;(2)对最后一张棉田图像,在所有记录的棉桃位置进行棉桃图像分割;(3)通过分割得到的棉桃图像判断棉田是否进入裂铃期。该方法以表征棉花生长状况的重要参数作为判定依据,实时地对棉花裂铃期进行判断,检测结果准确度高。对棉花裂铃期的起始时间进行判断对分析棉花发育期与气象条件之间的关系,鉴定棉花生长的农业气象条件以及指导农民及时进行农事活动都有重要的意义。
The invention discloses an image-based cotton boll-cracking stage detection method. It includes the following steps: (1) Obtain the positions of all bolls in the cotton field picture sequence; (2) Segment the boll images at all recorded boll positions for the last cotton field image; (3) Judge whether the cotton field has entered Bell cracking period. The method takes the important parameters characterizing the growth status of cotton as the judgment basis, and judges the cotton boll splitting stage in real time, and the detection result has high accuracy. Judging the start time of cotton boll splitting stage is of great significance for analyzing the relationship between cotton development period and meteorological conditions, identifying the agrometeorological conditions for cotton growth, and guiding farmers to carry out agricultural activities in time.
Description
技术领域technical field
本发明属于数字图像处理和农业气象观测交叉的领域,具体涉及到一种棉花裂铃期自动检测方法。The invention belongs to the intersecting field of digital image processing and agricultural meteorological observation, and in particular relates to an automatic detection method for cotton boll-opening stage.
背景技术Background technique
棉花是我国主要的经济作物之一,中国的棉花产量也处于世界领先地位。棉花的裂铃期是棉花生长中的一个重要的发育期,该发育期是棉花产量品质形成的关键期,因此也是棉田管理的重要时期。在此期,棉花根系活动逐渐减弱,吸收养分的能力明显下降,生产上的重点是保根叶、防早衰、增铃重和防病虫。因此,棉花裂铃期的监测和识别就显得十分的重要。棉农可以根据棉花的生长情况及时的对棉田进行施肥及防病虫等处理,对于保障和增加棉花的总产量有着积极的意义。总而言之,棉花的裂铃期是农业气象观测的一个重要内容。Cotton is one of the main economic crops in China, and China's cotton output is also in the leading position in the world. The boll splitting period of cotton is an important developmental period in the growth of cotton. This developmental period is the key period for the formation of cotton yield and quality, so it is also an important period for cotton field management. During this period, the activity of cotton roots gradually weakens, and the ability to absorb nutrients decreases significantly. The focus of production is to preserve roots and leaves, prevent premature aging, increase boll weight, and prevent pests and diseases. Therefore, the monitoring and identification of cotton boll splitting stage is very important. Cotton farmers can timely fertilize cotton fields and prevent diseases and insect pests according to the growth of cotton, which has positive significance for ensuring and increasing the total cotton output. All in all, the cotton boll splitting period is an important part of agricultural meteorological observation.
长期以来,主要采用人工观测记录的方式对棉花发育期相关信息进行记录,观测结果由于会受到观测员主观因素的影响,导致误差比较大;与此同时,由于棉花的生长周期较长,棉花种植的范围较广,单一地利用人工进行观测的方法耗时耗力。目前尚无方法能自动观测棉花裂铃期,并进行预报。For a long time, the relevant information of the cotton development period has been recorded mainly by manual observation and recording. The observation results will be affected by the subjective factors of the observers, resulting in relatively large errors; at the same time, due to the long growth cycle of cotton, cotton planting The range is relatively wide, and the method of only using manual observation is time-consuming and labor-intensive. At present, there is no method to automatically observe and predict the cotton boll opening period.
发明内容Contents of the invention
针对现有技术的以上缺陷或改进需求,本发明提供了一种基于图像的棉花裂铃期自动识别方法,其目的在于能够利用田间实时获取的棉花数字图像准确地检测出棉花是否进入裂铃期,由此解决目前尚无自动化的技术问题。Aiming at the above defects or improvement needs of the prior art, the present invention provides an image-based method for automatic recognition of the cotton boll-opening stage, the purpose of which is to accurately detect whether cotton has entered the boll-opening stage using the cotton digital images acquired in real time in the field , thereby solving the technical problem that there is no automation at present.
为实现上述目的,按照本发明,提供了一种棉花裂铃期自动检测方法,包括以下步骤:In order to achieve the above object, according to the present invention, a kind of cotton boll-breaking stage automatic detection method is provided, comprising the following steps:
(1)获取图片中棉桃位置:采集棉田图像,并将所述图像纳入棉田图像序列;将棉田图像序列中的所有图像,按照一定步长,拆分成M×N像素子图像;对所有子图像,使用棉桃分类器判断是否包含棉桃:对于包含棉桃的子图像,记录其在原图像中的位置作为最终棉桃位置;所述棉桃分类器按照如下方法建立:选择M×N像素的图片作为训练的正负样本,其中正样本为不同姿态的棉桃图片,负样本为棉田中非棉桃图片,提取SIFT特征量,训练支持向量机,使得支持向量机假阳性率最低,从而构建棉桃分类器;(1) Obtain the position of cotton bolls in the picture: collect the cotton field image, and include the image into the cotton field image sequence; split all the images in the cotton field image sequence into M×N pixel sub-images according to a certain step size; Image, use the boll classifier to judge whether it contains bolls: for the sub-image that contains bolls, record its position in the original image as the final boll position; the boll classifier is established as follows: select a picture of M×N pixels as the training Positive and negative samples, where the positive samples are pictures of cotton bolls in different poses, and the negative samples are pictures of non-cotton bolls in the cotton field, extract SIFT feature quantities, and train support vector machines to make the support vector machine have the lowest false positive rate, thereby constructing a boll classifier;
(2)分割棉桃图像:在步骤(1)中采集的棉田图像中,获取所有最终棉桃位置的子图像,采用RGB颜色模式或HSI颜色模式转换为灰度图像,然后将灰度图像转换成连续的二值图像,采用形态学图像处理方法检测棉桃边缘,分割棉桃图像;(2) Segment the boll image: In the cotton field image collected in step (1), obtain all the sub-images of the final boll positions, convert them into grayscale images using RGB color mode or HSI color mode, and then convert the grayscale images into continuous The binary image of , using the morphological image processing method to detect the edge of the boll, and segment the boll image;
(3)判断裂铃期:对于步骤(2)分割出的棉桃图像,进行白色裂缝检测,并提取白色裂缝,根据白色裂缝的形状特征,判断是否为棉桃裂缝;如果出现棉桃裂缝则认为进入裂铃期,否则认为没有进入裂铃期。(3) Judging the boll cracking stage: For the boll image segmented in step (2), perform white crack detection and extract white cracks. According to the shape characteristics of the white cracks, judge whether it is a boll crack; if a boll crack appears, it is considered to have entered the crack. Bell period, otherwise it is considered that it has not entered the bell-splitting period.
优选地,所述棉花裂铃期自动检测方法,其所述棉桃分类器正样本为边缘轮廓清晰的、饱满的、人眼也可观察到裂铃状况的棉桃图片。Preferably, in the method for automatic detection of cotton boll splitting stage, the positive samples of the boll classifier are images of bolls with clear edges, plump bolls that can be observed by human eyes.
优选地,所述棉花裂铃期自动检测方法,对SIFT特征量进行局部约束线性编码。Preferably, the method for automatic detection of cotton boll splitting stage performs local constrained linear coding on the SIFT feature quantity.
优选地,所述棉花裂铃期自动检测方法,其步骤(1)包括以下子步骤:Preferably, the step (1) of the automatic detection method for cotton boll-breaking stage includes the following sub-steps:
(1-1)采集棉田图像,并将所述图像纳入棉田图像序列;(1-1) Collect cotton field images, and incorporate the images into the cotton field image sequence;
(1-2)粗搜索棉桃位置:(1-2) Coarse search for cotton boll position:
首先,按照一定粗搜索顺序,以粗搜索步长将棉田图像序列中的所有图像拆分成M×N像素的子图像;然后,使用棉桃分类器对拆分得到的子图像进行判断,得到每个子图像的标记值;最后,记录其标记值超过粗搜索阈值的子图像位置,作为粗搜索棉桃位置;First, according to a certain rough search order, split all the images in the cotton field image sequence into M×N pixel sub-images with a coarse search step; then, use the cotton boll classifier to judge the split sub-images, and get The tag value of each sub-image; finally, record the sub-image position whose tag value exceeds the coarse search threshold, as the coarse search boll position;
(1-3)细搜索棉桃位置(1-3) Fine search for the location of cotton bolls
首先,对于每一个粗搜索棉桃位置,将粗搜索棉桃位置附近一定大小的范围作为细搜索范围;然后,在细搜索范围内,按照一定细搜索顺序,以细搜索步长将图像拆分成M×N像素的子图像;接下来,使用棉桃分类器对拆分得到的子图像进行判断,得到每个子图像的标记值;最后,记录其标记值超过细搜索阈值的子图像位置,作为细搜索棉桃位置;First, for each coarse search boll position, a certain size range near the coarse search boll position is used as the fine search range; then, within the fine search range, according to a certain fine search sequence, the image is split into M ×N pixel sub-image; Next, use the cotton boll classifier to judge the split sub-image to obtain the tag value of each sub-image; finally, record the position of the sub-image whose tag value exceeds the fine search threshold, as the fine search boll position;
(1-4)记录并跟踪棉桃位置(1-4) Record and track boll position
对步骤(1-3)中记录的细搜索棉桃位置,采用非极大值抑制去除冗余的棉桃位置,只保留棉桃分类器标记值最大的位置作为棉桃最终位置,并记录该位置作为棉桃位置;For the finely searched boll positions recorded in step (1-3), use non-maximum value suppression to remove redundant boll positions, keep only the position with the largest boll classifier mark value as the final boll position, and record this position as the boll position ;
(1-5)获取所有棉桃位置(1-5) Get all cotton boll positions
记录序列中所有图像的棉桃位置作为最终棉桃位置,在步骤(1-1)采集的棉田图像中,选择最终棉桃位置的子图像作为后续分割棉桃处理。Record the boll position of all images in the sequence as the final boll position. In the cotton field image collected in step (1-1), select the sub-image of the final boll position as the subsequent boll segmentation process.
优选地,所述棉花裂铃期自动检测方法,其步骤(1-1)所述的棉田图像为棉田纵向前视图,其光强度和棉桃分类器训练样本相同,由不低于400万像素的相机采集,所述相机离地面高0.3米,焦距14毫米,向北设置,水平拍摄;优选图像采集时刻为20时。Preferably, the cotton field image in the step (1-1) of the automatic detection method for cotton boll splitting stage is a longitudinal front view of the cotton field, and its light intensity is the same as that of the cotton boll classifier training samples, which consists of images of no less than 4 million pixels Camera collection, the camera is 0.3 meters above the ground, with a focal length of 14 mm, set up to the north, and shoots horizontally; the preferred image collection time is 20:00.
优选地,所述棉花裂铃期自动检测方法,其步骤(1-2)所述的粗拆分顺序为从左到右,从上到下;所述粗搜索步长为30像素;所述粗搜索阈值为使得假阳性率为6%~9%的棉桃分类器阈值。Preferably, in the method for automatic detection of cotton boll-cracking stage, the order of rough splitting in step (1-2) is from left to right and from top to bottom; the rough search step is 30 pixels; the The coarse search threshold is the boll classifier threshold that makes the false positive rate 6%-9%.
优选地,所述棉花裂铃期自动检测方法,其步骤(1-3)所述的细搜索范围为粗搜索棉桃位置向右向下各扩展5像素的图像区域;所述细拆分顺序为从左到右,从上到下;所述细搜索步长为1像素;所述细搜索阈值为使得假阳性率为1%以内的棉桃分类器阈值。Preferably, in the method for automatic detection of cotton cracking and boll stage, the fine search range described in step (1-3) is an image area that expands 5 pixels from the coarse search boll position to the right and downward; the fine split sequence is From left to right, from top to bottom; the fine search step size is 1 pixel; the fine search threshold is the boll classifier threshold that makes the false positive rate within 1%.
优选地,所述棉花裂铃期自动检测方法,其步骤(2)包括以下子步骤:Preferably, the step (2) of the automatic detection method for cotton boll-breaking stage includes the following sub-steps:
(2-1)判断棉桃位置:当棉桃位置处于整幅图像上1/3的区域内,则保留RGB颜色模式的棉桃位置子图像;否则,将其转换为HSI颜色模式的棉桃位置子图像;(2-1) Determine the position of the cotton boll: when the position of the boll is within 1/3 of the entire image, keep the sub-image of the boll position in the RGB color mode; otherwise, convert it to the sub-image of the boll position in the HSI color mode;
(2-2)获取棉桃灰度图像:对于RGB颜色模式的棉桃位置子图像,选择RGB颜色模式中的绿色分量图像转换成灰度图像;对于HSI颜色模式的棉桃位置子图像,选择HSI颜色模式中的饱和度分量图像转换成灰度图像;(2-2) Obtain the grayscale image of cotton bolls: For the cotton boll position subimage in RGB color mode, select the green component image in RGB color mode to convert it into a grayscale image; for the cotton boll position subimage in HSI color mode, select HSI color mode The saturation component image in is converted into a grayscale image;
(2-3)获取棉桃二值图像:设定阈值,将棉桃位置子图像灰度图像转换成二值图像;(2-3) Obtain the binary image of cotton peach: set the threshold, convert the grayscale image of the cotton peach position sub-image into a binary image;
(2-4)获取棉桃初步分割图像:首先,将所述二值化的图像中的多个连通域中间孔洞填充,获得连通区域;然后,使用边缘检测器,对棉桃位置子图像灰度图像进行边缘检测,获得棉桃图像边缘;最后,对所述二值图像的连通区域和棉桃图像边缘进行交运算,得到棉桃初步分割图像;(2-4) Obtain a preliminary segmentation image of cotton bolls: first, fill the intermediate holes in the multiple connected domains in the binarized image to obtain connected areas; then, use an edge detector to obtain the grayscale image of the cotton boll position sub-image Carry out edge detection, obtain cotton boll image edge; Finally, carry out intersection operation to the connected area of described binary image and cotton boll image edge, obtain cotton boll preliminary segmentation image;
(2-5)获得棉桃细分割图像:对于棉桃初步分割图像,利用形态学图像处理方法进行细图像分割,最终得到棉桃分割图像。(2-5) Obtain finely segmented images of cotton bolls: For the preliminary segmented images of cotton bolls, use the morphological image processing method to perform fine image segmentation, and finally obtain the boll segmented images.
优选地,所述棉花裂铃期自动检测方法,其步骤(2-4)所述的边缘检测器为canny边缘检测器。Preferably, the edge detector in the step (2-4) of the automatic detection method for cotton boll-breaking stage is a canny edge detector.
优选地,所述棉花裂铃期自动检测方法,其步骤(3)包括以下子步骤:Preferably, the step (3) of the automatic detection method for the cotton boll stage includes the following sub-steps:
(3-1)在分割出来的棉桃内部区域中提取白色图像:在已经分割好的棉桃区域,采用环境自适应分割方法、超绿算子分割方法、基于Mean Shift的作物图像分割方法等方法,再次进行白色分割;(3-1) Extract the white image in the segmented boll internal area: in the already segmented boll area, adopt methods such as environment adaptive segmentation method, super green operator segmentation method, crop image segmentation method based on Mean Shift, etc. Carry out white segmentation again;
(3-2)检测白色裂缝:对于步骤(3-1)中分割出的白色图像,提取其最小外接矩形的长宽比或其最小外接椭圆的长短轴比,作为形状特征描述子;设置阈值,保留其形状特征描述子大于或等于阈值的白色图像作为白色裂缝;(3-2) Detect white cracks: For the white image segmented in step (3-1), extract the aspect ratio of its smallest circumscribing rectangle or the ratio of the length and short axis of its smallest circumscribing ellipse, as the shape feature descriptor; set the threshold , retaining white images whose shape feature descriptors are greater than or equal to the threshold as white cracks;
(3-3)判断棉花是否到达裂铃期:在一个棉桃位置子图像中,统计白色裂缝个数,如果白色裂缝个数大于或等于1,则判断棉田进入裂铃期;否则,对下一次拍摄的棉田图像,重复步骤(1)至步骤(3)。(3-3) Judging whether the cotton has reached the boll splitting stage: in a cotton boll position sub-image, count the number of white cracks, if the number of white cracks is greater than or equal to 1, it is judged that the cotton field has entered the boll splitting stage; otherwise, the next time For the captured cotton field image, repeat steps (1) to (3).
总体而言,通过本发明所构思的以上技术方案与现有技术相比,由于本发明自动对所采集的实时前视棉花田间图像进行图像处理,利用机器学习的方法构建棉桃分类器,并且结合裂铃期棉桃形态学特征的变化,利用颜色模式转换和形态学图像处理方法,进而判断棉花是否进入裂铃期。该方法以棉花棉桃的开裂状况作为判断依据,实时地对棉花生长期进行判断,检测结果准确率高,对棉花的农事活动具有重要的指导意义。Generally speaking, compared with the prior art, the above technical solutions conceived by the present invention, because the present invention automatically performs image processing on the collected real-time forward-looking cotton field images, utilizes the method of machine learning to construct a cotton boll classifier, and combines Changes in the morphological characteristics of cotton bolls during the boll splitting stage, using color mode conversion and morphological image processing methods, and then judging whether cotton has entered the boll splitting stage. The method uses the cracking status of cotton bolls as the judgment basis, and judges the cotton growth period in real time. The detection result has a high accuracy rate, and has important guiding significance for cotton farming activities.
同时,本发明采用SIFT特征量是图像的局部特征,其对旋转、尺度缩放、亮度变化保持不变性,对视角变化、仿射变换、噪声也保持一定程度的稳定性;不仅如此,SIFT特征独特性好,信息量丰富,适用于在海量特征数据库中进行快速、准确的匹配。At the same time, the present invention uses the SIFT feature quantity as the local feature of the image, which maintains invariance to rotation, scaling, and brightness changes, and maintains a certain degree of stability to viewing angle changes, affine transformations, and noise; not only that, the SIFT feature is unique It has good performance and rich information, and is suitable for fast and accurate matching in massive feature databases.
优选方案,选择边缘轮廓清晰的、饱满的、人眼也可观察到裂铃状况的棉桃图片作为正样本,能显著提高分类器的分类效果,从而从复杂的棉田图像中,准确的检测到棉桃位置子图像。The preferred solution is to select cotton boll images with clear edges, full bolls, and boll cracking that can be observed by human eyes as positive samples, which can significantly improve the classification effect of the classifier, so that bolls can be accurately detected from complex cotton field images position subimage.
优选方案,采用LLC编码方法,对SIFT特征进行编码,可大幅缩短棉桃检测时间。The preferred solution is to use the LLC encoding method to encode the SIFT features, which can greatly shorten the detection time of cotton bolls.
优选方案,采用粗搜索和细搜索相结合的方法,能在保证棉桃检测准确性的前提下,缩短棉桃检测时间。The optimal scheme adopts the method of combining coarse search and fine search, which can shorten the detection time of cotton bolls under the premise of ensuring the detection accuracy of bolls.
优选方案,根据棉桃位置,采用不同的颜色模式做图像处理,能最大限度地保证棉桃图像分割的准确性。The preferred solution is to use different color modes for image processing according to the position of the boll, which can ensure the accuracy of the boll image segmentation to the greatest extent.
优选方案,在棉桃内部检测白色裂缝,能避免非棉桃区域中的白色裂缝图像干扰,降低假阳性率,从而准确观测棉桃裂铃期。The preferred solution is to detect the white cracks inside the bolls, which can avoid the image interference of the white cracks in the non-boll area, reduce the false positive rate, and thus accurately observe the boll cracking stage of the bolls.
附图说明Description of drawings
图1是本发明提供的棉花裂铃期自动检测方法流程图;Fig. 1 is the cotton boll-cracking stage automatic detection method flowchart provided by the present invention;
图2是棉田2012年8月24日20点拍摄的棉花田间纵向前视图;Fig. 2 is the longitudinal front view of the cotton field taken at 20:00 on August 24, 2012;
图3是实施例2粗搜索棉桃位置图;Fig. 3 is embodiment 2 rough search cotton boll position figure;
图4是实施例2的最终棉桃位置图;Fig. 4 is the final boll position figure of embodiment 2;
图5是实施例2待分割棉桃图像;Fig. 5 is the cotton boll image to be divided in embodiment 2;
图6是在RGB颜色模式下对棉桃位置子图像处理结果图;Fig. 6 is a result figure of cotton boll position sub-image processing under RGB color mode;
图7是实施例2检测白色裂缝的结果图;Fig. 7 is the result figure that embodiment 2 detects white crack;
图8是棉田2012年8月31日20点拍摄的棉花田间纵向前视图;Fig. 8 is the longitudinal front view of the cotton field taken at 20:00 on August 31, 2012;
图9是实施例3粗搜索棉桃位置图;Fig. 9 is the coarse search cotton boll position map of embodiment 3;
图10是实施例3的最终棉桃位置图;Fig. 10 is the final boll position figure of embodiment 3;
图11是实施例3待分割棉桃图像;Fig. 11 is the cotton boll image to be divided in embodiment 3;
图12是在HSI颜色模式下对棉桃位置子图像处理结果图;Fig. 12 is the result figure of cotton boll position sub-image processing under HSI color mode;
图13是实施例2检测白色裂缝的结果图。Fig. 13 is a diagram showing the results of detecting white cracks in Example 2.
其中,图6(a)是实施例2边缘检测结果图像,图6(b)是实施例2初步分割好的棉桃图像,图6(c)是实施例2形态学腐蚀操作后的棉桃图像,图6(d)是实施例2获得最大连通域的图像,图6(e)是实施例2最终分割棉桃二值图像,图6(f)是实施例2最终分割棉桃图像;Wherein, Fig. 6 (a) is the edge detection result image of embodiment 2, Fig. 6 (b) is the cotton boll image that embodiment 2 has initially segmented, Fig. 6 (c) is the boll image after embodiment 2 morphological corrosion operation, Fig. 6 (d) is the image that embodiment 2 obtains the largest connected domain, Fig. 6 (e) is the binary image of bolls that are finally segmented in embodiment 2, and Fig. 6 (f) is the image of bolls that are finally segmented in embodiment 2;
图7(a)是实施例2白色分割结果图像,图7(b)是实施例2白色裂缝检测结果图像;Fig. 7 (a) is the white segmentation result image of embodiment 2, and Fig. 7 (b) is the white crack detection result image of embodiment 2;
图12(a)是实施例3边缘检测结果图像,图12(b)是实施例2初步分割好的棉桃图像,图12(c)是实施例3形态学腐蚀操作后的棉桃图像,图12(d)是实施例3获得最大连通域的图像,图12(e)是实施例3最终分割棉桃二值图像,图12(f)是实施例3最终分割棉桃图像;Figure 12(a) is the image of the edge detection result in Example 3, Figure 12(b) is the image of the cotton boll that has been initially segmented in Example 2, and Figure 12(c) is the image of the cotton boll after the morphological erosion operation in Example 3, Figure 12 (d) is the image of the largest connected domain obtained in embodiment 3, Fig. 12 (e) is the binary image of the final segmented boll in embodiment 3, and Fig. 12 (f) is the final segmented boll image in embodiment 3;
图13(a)是实施例3白色分割结果图像,图13(b)是实施例3白色裂缝检测结果图像。Fig. 13(a) is an image of the white segmentation result of Example 3, and Fig. 13(b) is an image of the white crack detection result of Example 3.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.
本发明提供的一种棉花裂铃期自动检测方法,包括以下步骤:A kind of cotton boll-cracking stage automatic detection method provided by the invention comprises the following steps:
(1)获取图片中棉桃位置(1) Obtain the position of cotton bolls in the picture
棉桃位置,是指包含棉桃的棉田子图像,优选为90×90的棉田子图像范围。The position of the boll refers to the sub-image of the cotton field containing the boll, preferably the range of the sub-image of the cotton field of 90×90.
(1-1)采集棉田图像(1-1) Collect images of cotton fields
本发明中所优选的棉田图像序列是每天20时(即晚上8时)的棉田纵向前视图像。图像采集要求:相机离地面高0.3米,焦距14毫米,水平拍摄方向向北,与地平线夹角为0度,分辨率不低于400万像素。由于棉花的生长需要强烈的光照,棉桃和叶片光滑的表面会产生镜面反射,会对棉桃和白色裂缝的识别造成负面的影响。因此在以固定位置和姿态拍摄的全天不同时刻的纵向前视图中,我们选择对每一天20时采集的图像进行图像处理,从而提高识别准确性,降低了棉花裂铃期识别的难度。The preferred cotton field image sequence in the present invention is the longitudinal front view image of the cotton field at 20:00 (ie 8:00 p.m.) every day. Image acquisition requirements: the camera is 0.3 meters above the ground, the focal length is 14 mm, the horizontal shooting direction is north, the angle with the horizon is 0 degrees, and the resolution is not less than 4 million pixels. Since the growth of cotton requires strong light, the smooth surface of bolls and leaves will produce specular reflections, which will negatively affect the identification of bolls and white cracks. Therefore, in the longitudinal front view taken at different times of the day at a fixed position and attitude, we chose to perform image processing on the images collected at 20:00 every day, so as to improve the recognition accuracy and reduce the difficulty of cotton boll-opening stage recognition.
将采集的棉田图像纳入棉田图像序列。The collected cotton field images are incorporated into the cotton field image sequence.
(1-2)粗搜索棉桃位置。(1-2) Coarse search for the position of cotton bolls.
首先按照一定粗搜索顺序,以粗搜索步长将棉田图像序列中的所有图像拆分成M×N像素的子图像。使用棉桃分类器对拆分得到的子图像进行判断,得到每个子图像的标记值。记录其标记值超过设置的粗搜索阈值的子图像位置,作为粗搜索棉桃位置。First, according to a certain rough search sequence, all the images in the cotton field image sequence are split into sub-images of M×N pixels with a coarse search step. Use the cotton boll classifier to judge the sub-images obtained by splitting, and obtain the tag value of each sub-image. Record the sub-image positions whose marker values exceed the set coarse search threshold as coarse search boll positions.
粗搜索顺序影响到搜索程序设计,粗搜索顺序优选从左到右,从上到下;粗搜索步长影响到棉桃搜索的时间和精度,步长越大拆分速度越快精度越低,步长越小拆分速度越慢精度越高,粗搜索步长优选30像素;粗搜索阈值,影响到粗搜索的性能,粗搜索阈值越高,特异性越高,敏感度越低,粗搜索阈值越低,特异性越低,敏感度越高,为了平衡敏感性和特异性选择,使得假阳性率为6%~9%的棉桃分类器阈值作为粗搜索阈值。假阳性率为6%~9%时的阈值均可,阈值的具体确定方式可以根据图片大小和精度需求自行调节。The rough search order affects the search program design, and the rough search order is preferably from left to right, from top to bottom; the coarse search step affects the time and accuracy of cotton boll search, the larger the step, the faster the splitting speed and the lower the accuracy. The smaller the length, the slower the splitting speed, the higher the accuracy, the coarse search step size is preferably 30 pixels; the coarse search threshold affects the performance of the coarse search, the higher the coarse search threshold, the higher the specificity, the lower the sensitivity, the coarse search threshold The lower the value, the lower the specificity and the higher the sensitivity. In order to balance the sensitivity and specificity, the boll classifier threshold with a false positive rate of 6% to 9% was selected as the coarse search threshold. The threshold can be used when the false positive rate is 6% to 9%, and the specific determination method of the threshold can be adjusted according to the image size and accuracy requirements.
(1-3)细搜索棉桃位置(1-3) Fine search for the location of cotton bolls
对于每一个粗搜索棉桃位置,将其附近一定大小的范围作为细搜索范围。在细搜索范围内,按照细搜索顺序,以细搜索步长将图像拆分成M×N像素子图像。使用棉桃分类器对拆分得到的子图像进行判断,得到每个子图像的标记值。设置细搜索阈值,记录其标记值超过细搜索阈值的子图像位置,作为细搜索棉桃位置。For each coarse search boll position, a certain size range around it is used as the fine search range. In the fine search range, according to the fine search sequence, the image is split into M×N pixel sub-images with a fine search step. Use the cotton boll classifier to judge the sub-images obtained by splitting, and obtain the tag value of each sub-image. Set a fine search threshold, and record the subimage positions whose marker values exceed the fine search threshold as the fine search boll positions.
细搜索范围,影响棉桃搜索速度,优选细搜索范围为粗搜索棉桃位置向右向下各扩展5像素的图像区域;细搜索顺序影响到搜索程序设计,细搜索顺序优选从左到右,从上到下;细搜索步长影响到棉桃搜索的时间和精度,步长越大拆分速度越快精度越低,步长越小拆分速度越慢精度越高,由于细搜索要求搜索精度较高,且搜索范围较小,因此优选细搜索步长为1像素;细搜索阈值,影响到细搜索的性能,细搜索阈值越高,特异性越高,敏感度越低,细搜索阈值越低,特异性越低,敏感度越高,为保证搜索到的棉桃为真实的棉桃,选择使得假阳性率为1%以内的棉桃分类器阈值作为细搜索阈值。使得假阳性为1%以内的棉桃分类器阈值均可,阈值的具体确定方式可以根据图片大小和精度需求自行调节。The fine search range affects the search speed of cotton bolls. The optimal fine search range is the image area that expands 5 pixels from the right to the bottom of the coarse search cotton boll position; the fine search order affects the search program design, and the fine search order is preferably from left to right, from top to bottom To the next; the fine search step length affects the time and precision of cotton boll search, the larger the step size, the faster the splitting speed, the lower the precision, the smaller the step size, the slower the splitting speed, the higher the precision, because the fine search requires higher search precision , and the search range is small, so the fine search step size is preferably 1 pixel; the fine search threshold affects the performance of the fine search, the higher the fine search threshold, the higher the specificity, the lower the sensitivity, and the lower the fine search threshold, The lower the specificity, the higher the sensitivity. In order to ensure that the searched bolls are real bolls, the boll classifier threshold that makes the false positive rate within 1% is selected as the fine search threshold. The threshold of the boll classifier that makes the false positive within 1% is acceptable, and the specific determination method of the threshold can be adjusted according to the image size and accuracy requirements.
(1-4)记录并跟踪棉桃位置。(1-4) Record and track boll positions.
由于受风向、叶片遮挡及相机抖动而引起的棉桃位置偏移的影响,也为了降低棉桃的漏检率,设置的细搜索步长不能较小,避免同一个棉桃在一幅图中被多次检测到,对细搜索的结果,采用非极大值抑制的方法去除冗余的棉桃位置,即在细搜索范围内记录的棉桃位置,只保留棉桃分类器标记值最大的位置作为棉桃最终位置,并记录该位置作为棉桃位置。Due to the impact of boll position offset caused by wind direction, leaf occlusion and camera shake, and in order to reduce the missed detection rate of bolls, the set fine search step size should not be small, so as to avoid the same boll being detected multiple times in a picture It is detected that, for the results of the fine search, the non-maximum value suppression method is used to remove redundant boll positions, that is, the boll positions recorded within the fine search range, and only the position with the largest marker value of the boll classifier is reserved as the final boll position. And record this position as the boll position.
(1-5)获取所有棉桃位置。(1-5) Get all boll positions.
记录图像序列中所有图像中的棉桃位置作为最终棉桃位置,在步骤(1-1)所采集的图像中,选择最终棉桃位置的子图像作为后续分割棉桃处理。Record the boll position in all images in the image sequence as the final boll position, and select the sub-image of the final boll position in the images collected in step (1-1) as the subsequent boll segmentation process.
由于相机是固定的,棉桃的生长状况也相对稳定,因此对于以同一个场景作为取景对象的序列图像而言,选择对已检测到的所有棉桃位置进行跟踪观测,可以更进一步确保棉桃的检测率,降低漏检率,同时可以比较全面的跟踪观测棉桃的生长发育情况,减少由于风向、叶片生长造成的遮挡以及其他因素的影响。Since the camera is fixed, the growth of bolls is relatively stable. Therefore, for a sequence of images that take the same scene as the framing object, choosing to track and observe the positions of all detected bolls can further ensure the detection rate of bolls. , reduce the missed detection rate, and can comprehensively track and observe the growth and development of cotton bolls, and reduce the influence of wind direction, shading caused by leaf growth and other factors.
所述棉桃分类器按照以下方法构建:The boll classifier is constructed according to the following method:
首先,M×N像素的图片作为训练的正负样本。其中正样本为不同姿态的棉桃图片,为了降低假阳性率,只选择边缘轮廓较为清晰的、饱满的、人眼也可观察到裂铃状况的棉桃图片,以便开裂后可观察到棉桃的裂缝;选取拍摄棉田纵向前视图中非棉桃的子图像图片作为训练的负样本。训练的正负样本要与棉桃图像相适应,能清楚完整的反映棉桃形貌,其优选图像大小90×90像素。First, M×N pixel images are used as positive and negative samples for training. Among them, the positive samples are pictures of cotton bolls in different postures. In order to reduce the false positive rate, only choose pictures of cotton bolls with clearer edge outlines, fuller, and human eyes can observe the state of boll cracking, so that the cracks of cotton bolls can be observed after cracking; Select sub-images of non-cotton bolls in the longitudinal front view of the cotton field as negative samples for training. The positive and negative samples for training should be compatible with the cotton boll image and can clearly and completely reflect the shape of the boll. The preferred image size is 90×90 pixels.
然后,提取已获得的正负样本图片中的SIFT特征量,并将SIFT特征量进行局部约束线性编码,获得输入分类器的正训练样本和负训练样本特征量。SIFT(scale invariantfeature transform)特征量,即尺度不变特征变换特征量,参见文献David G.Lowe.Objectrecognition from local scale-invariant features[C].International Conferenceon Computer Vision,Corfu,Greece,1999(9):1150-1157.和文献DavidG.Lowe.Distinctive Image Features from Scale-Invariant Keypoints[C].International Journal of Computer Vision,60,2(2004):91-110。为了提高算法的效率,采用LLC(Locality-constrained Linear Coding)即局部约束线性编码,对提取的SIFT特征进行编码,得到编码后重构的局部特征。对于特征编码,有硬投票、稀疏编码等方法,其中LLC编码是基于特征袋(bag-of-features)模型或码书(codebook)模型的一种编码特征方法,在对自然图像的分类任务中表现优异。参见文献Wang J J,Yang J C,Yu K,etal.Locality-constrained linear coding for image classification[C].IEEEConference on Computer Vision and Pattern Recognition(CVPR).2010:3360-3367。SIFT特征经由LLC编码得到的特征仅仅是局部特征,相当于是LLC编码对原始的SIFT特征进行了重构。Then, the SIFT feature quantity in the obtained positive and negative sample pictures is extracted, and the SIFT feature quantity is subjected to local constraint linear coding to obtain the positive training sample and negative training sample feature quantity input to the classifier. SIFT (scale invariant feature transform) feature quantity, that is, scale invariant feature transformation feature quantity, see the literature David G.Lowe.Object recognition from local scale-invariant features[C].International Conference on Computer Vision,Corfu,Greece,1999(9): 1150-1157. and David G. Lowe. Distinctive Image Features from Scale-Invariant Keypoints [C]. International Journal of Computer Vision, 60, 2(2004): 91-110. In order to improve the efficiency of the algorithm, LLC (Locality-constrained Linear Coding) is used to encode the extracted SIFT features to obtain the reconstructed local features after encoding. For feature coding, there are methods such as hard voting and sparse coding. Among them, LLC coding is a method of coding features based on the bag-of-features model or codebook model. In the classification task of natural images Excellent performance. See literature Wang J J, Yang J C, Yu K, et al.Locality-constrained linear coding for image classification[C].IEEEConference on Computer Vision and Pattern Recognition(CVPR).2010:3360-3367. The features obtained by SIFT features through LLC encoding are only local features, which is equivalent to the reconstruction of the original SIFT features by LLC encoding.
最后,使用支持向量机(SVM)作为分类器,选择径向基(RBF)核函数,输入正训练样本和负训练样本的特征量,对分类器进行训练,获得棉桃分类器。支持向量机SVM(SupportVector Machine)是Vapnik于1995年首先提出的。作为一种可训练的机器学习方法,SVM在解决小样本、非线性及高维模式中具有一定的优势。支持向量机方法是根据有限的样本信息在模型的复杂性和学习能力之间寻求最佳的折中,以期获得最好的推广能力(泛化能力)。由于图像的限制,所获得的多姿态的棉桃正样本个数不多,使用SVM方法进行训练可以获得合适的棉桃分类器。如果扩大正样本和负样本的容量,会得到分类效果更好的棉桃分类器。Finally, use the support vector machine (SVM) as the classifier, select the radial basis (RBF) kernel function, input the feature quantities of positive training samples and negative training samples, train the classifier, and obtain the cotton boll classifier. Support Vector Machine SVM (SupportVector Machine) was first proposed by Vapnik in 1995. As a trainable machine learning method, SVM has certain advantages in solving small sample, nonlinear and high-dimensional patterns. The support vector machine method is to seek the best compromise between the complexity of the model and the learning ability according to the limited sample information, in order to obtain the best generalization ability (generalization ability). Due to the limitation of the image, the number of positive samples of bolls with multiple poses obtained is not much, and the appropriate boll classifier can be obtained by using the SVM method for training. If the capacity of positive samples and negative samples is enlarged, a cotton boll classifier with better classification effect will be obtained.
(2)分割出棉桃图像(2) Segment the cotton boll image
步骤(1-1)获取的棉田图像中包含有天空、棉花植株、土地、杂草等丰富的内容,不同位置处生长的棉桃所处的局部环境相应的也比较复杂且不尽相同,故子图像内的环境因素还是会影响分割的效果。因此我们在不同的颜色模式中对子图像中的棉桃进行分割处理,获得棉桃图像。The cotton field image obtained in step (1-1) contains rich content such as the sky, cotton plants, land, weeds, etc. The local environment of cotton bolls grown in different locations is also relatively complex and different. The environmental factors in the image will still affect the segmentation effect. Therefore, we segment the bolls in the sub-images in different color modes to obtain boll images.
(2-1)判断棉桃的位置。(2-1) Determine the position of bolls.
将处于不同位置处的棉桃放到不同的颜色模式中进行图像处理。Put the bolls in different positions in different color modes for image processing.
如果棉桃位置处于整幅图像上1/3的区域内,则认为棉桃图像与天空接触,则就在RGB颜色模式中对棉桃位置子图像进行处理,保留RGB颜色模式的棉桃位置子图像;否则,认为棉桃图像不与天空接触,则将棉桃位置子图像从RGB颜色模式转换到HSI颜色模式进行处理,即将其转换为HSI颜色模式的棉桃位置子图像。If the boll position is in the 1/3 area of the entire image, then the boll image is considered to be in contact with the sky, and the boll position sub-image is processed in the RGB color mode, and the boll position sub-image of the RGB color mode is retained; otherwise, Considering that the boll image is not in contact with the sky, the boll position sub-image is converted from the RGB color mode to the HSI color mode for processing, that is, it is converted into the boll position sub-image of the HSI color mode.
(2-2)获取棉桃灰度图像。(2-2) Obtain the grayscale image of cotton bolls.
在RGB空间中分割出棉桃:Segment the bolls in RGB space:
将棉桃位置的矩形框内的子图像,转换到RGB颜色模式,即彩色图像转换为红、绿、蓝分量图像。为了使图像分割处理的效果达到最佳,选择RGB颜色模式中的绿色分量图像作处理,即将棉桃位置子图像RGB彩色图像转换成灰度图像。Convert the sub-image in the rectangular frame of the cotton boll position to RGB color mode, that is, convert the color image into red, green, and blue component images. In order to achieve the best effect of image segmentation processing, the green component image in the RGB color mode is selected for processing, that is, the RGB color image of the cotton peach position sub-image is converted into a grayscale image.
在HSI空间中分割出棉桃:Segment the bolls in HSI space:
将棉桃位置的矩形框内的子图像,转换到HSI颜色模式,即色度、饱和度、亮度分量图像。为了使图像分割处理的效果达到最佳,选择HSI颜色模式中的饱和度分量图像作处理,即将棉桃位置子图像彩色图像转换成灰度图像并将其进行直方图均衡化操作,获得棉桃灰度图像。Convert the sub-image within the rectangular frame of the boll position to the HSI color mode, that is, the hue, saturation, and brightness component images. In order to achieve the best effect of image segmentation processing, the saturation component image in the HSI color mode is selected for processing, that is, the color image of the sub-image of the cotton peach position is converted into a grayscale image and the histogram equalization operation is performed on it to obtain the gray level of the cotton peach image.
(2-3)获取棉桃二值图像。(2-3) Obtain the binary image of cotton bolls.
将棉桃位置子图像灰度图像,按照设定的阈值,转换成二值图像:由于我们要的到的棉桃区域是一个大的连通域,因此为了要保证棉桃连通域的完整及后续操作方便,凡是灰度值大于阈值的像素,则将该像素的灰度值变为0,否则将该像素的灰度值变为255,使得大的连通区域为白色的图像作为棉桃二值图像,否则将图像取反作为棉桃二值图像。Convert the grayscale image of the boll position sub-image into a binary image according to the set threshold: Since the boll area we want is a large connected domain, in order to ensure the integrity of the boll connected domain and the convenience of subsequent operations, For any pixel whose gray value is greater than the threshold, the gray value of the pixel is changed to 0, otherwise the gray value of the pixel is changed to 255, so that the large connected area is a white image as a cotton boll binary image, otherwise it will be The image is inverted as a binary image of cotton bolls.
(2-4)获取棉桃初步分割图像。(2-4) Obtain a preliminary segmentation image of cotton bolls.
首先,将所述二值化的图像中的多个连通域中间孔洞填充,获得连通区域;然后,使用边缘检测器,如canny边缘检测器,对棉桃位置子图像灰度图像进行边缘检测,获得棉桃图像边缘;最后,对所述二值图像的连通区域和棉桃图像边缘进行交运算,得到棉桃初步分割图像。First, fill the holes in the middle of multiple connected regions in the binarized image to obtain connected regions; then, use an edge detector, such as a canny edge detector, to perform edge detection on the grayscale image of the cotton peach position sub-image to obtain The edge of the cotton boll image; finally, the intersecting operation is performed on the connected area of the binary image and the edge of the boll image to obtain a preliminary segmentation image of the boll.
(2-5)获得棉桃细分割图像。(2-5) Obtain finely segmented images of bolls.
对于棉桃初步分割图像利用形态学图像处理方法进行细图像分割,最终得到棉桃分割图像。For the preliminary segmented image of cotton bolls, the morphological image processing method is used for fine image segmentation, and finally the segmented images of cotton bolls are obtained.
(3)判断裂铃期。(3) Judging the bell-cracking period.
(3-1)在分割出来的棉桃内部区域中提取白色图像。(3-1) Extract the white image in the segmented inner region of the boll.
在已经分割好的棉桃区域再次进行白色分割,具体的分割方法可以采用环境自适应分割方法、超绿算子分割方法、基于Mean Shift的作物图像分割方法等方法。(参见[1]Lei F.Tian.Environmentally adaptive segmentation algorithm for outdoor imagesegmentation.Computers and electronics in agriculture,1998,21:153~168);[2]D.M.Woebbecke,G.E.Meyer,K.Von Bargen,D.A.Mortensen.Color Indices for weedidentification under various soil,residue,and lightingconditions.Transactions of the ASAE,1995,38(1):259~269);[3]Zheng L,Zhang J,Wang Q.Mean-shift-based color segmentation of images containing greenvegetation.Computers and Electronics in Agriculture,2009,65:93-98.)Carry out white segmentation again in the already segmented cotton boll area. The specific segmentation methods can use the environment adaptive segmentation method, the super green operator segmentation method, the crop image segmentation method based on Mean Shift and so on. (See [1] Lei F.Tian. Environmentally adaptive segmentation algorithm for outdoor image segmentation. Computers and electronics in agriculture, 1998, 21:153~168); [2] D.M.Woebbecke, G.E.Meyer, K.Von Bargen, D.A.Mortensen. Color Indices for weed identification under various soil, residue, and lighting conditions.Transactions of the ASAE,1995,38(1):259~269); [3]Zheng L, Zhang J, Wang Q.Mean-shift-based color segmentation of images containing greenvegetation. Computers and Electronics in Agriculture, 2009, 65:93-98.)
(3-2)检测白色裂缝。(3-2) Detection of white cracks.
利用分割方法在棉桃细分割图像上进行白色检测,辅之以白色裂缝自身“狭长性”的形状特点对棉桃区域进行分割。The segmentation method is used to detect the white color on the finely segmented image of the boll, and the boll region is segmented with the help of the "long and narrow" shape characteristics of the white crack itself.
由于叶片高度反光及分割精确度的影响,白色分割操作后检测到的白色并不都是棉桃裂铃后出现的白色裂缝,因此要根据所要分割的连通域的形状特征对图像进行处理。Due to the high reflection of leaves and the influence of segmentation accuracy, the white detected after the white segmentation operation is not all the white cracks that appear after the bolls are cracked. Therefore, the image should be processed according to the shape characteristics of the connected domain to be segmented.
对于步骤(3-1)中分割出的白色图像,提取其最小外接矩形的长宽比或其最小外接椭圆的长短轴比,作为形状特征描述子;保留其形状特征描述子大于或等于所设定的阈值的白色图像作为白色裂缝。For the white image segmented in step (3-1), extract the aspect ratio of the smallest circumscribing rectangle or the ratio of the length and the short axis of the smallest circumscribing ellipse as the shape feature descriptor; keep its shape feature descriptor greater than or equal to the set A white image with a given threshold is used as a white crack.
形状特征描述子可以采用傅里叶描述子、离心率、连通域最小外接矩形(或椭圆)的长宽比(长短轴比)等等。Shape feature descriptors can use Fourier descriptors, eccentricity, the aspect ratio (ratio of long and short axes) of the smallest circumscribed rectangle (or ellipse) of the connected domain, and so on.
优选方案,依据要检测到的白色连通域(白色裂缝)的形状特征,利用白色裂缝自身“狭长性”对检测到的白色区域进行分割,对应选择的形状描述子为连通域最小外接椭圆的长短轴比,将长短轴比小于阈值的白色连通域去掉,保留长短轴比大于或等于所设定阈值的连通域。The preferred solution is to segment the detected white area according to the shape characteristics of the white connected domain (white crack) to be detected by using the "narrowness" of the white crack itself, and the corresponding selected shape descriptor is the length of the smallest circumscribed ellipse of the connected domain Axis ratio, remove the white connected domains whose long-short axis ratio is less than the threshold, and keep the connected domains whose long-short axis ratio is greater than or equal to the set threshold.
(3-3)判断棉花是否到达裂铃期。(3-3) Judging whether cotton has reached the boll splitting stage.
在得到最终分割好的白色裂缝图像之后,统计白色裂缝(白色狭长连通域)的个数。由于用于训练的每个正样本中都只包含一个棉桃,因此在使用训练后得到的分类器对图像进行检测时,每次检测到的包含有棉桃的矩形区域中棉桃的个数只有一个。一个棉桃最多会有5条裂缝,但可能由于会受到拍摄棉桃角度的影响,从图像中可以观察到的裂缝可能只有1~2条。因此,如果检测到有白色裂缝即判定棉花进入裂铃期;否则,判定棉花没有进入裂铃期。After obtaining the final segmented white crack image, count the number of white cracks (white narrow and long connected domains). Since each positive sample used for training contains only one boll, when using the classifier obtained after training to detect images, there is only one boll in the detected rectangular area containing bolls each time. There are at most 5 cracks in a boll, but due to the influence of the shooting angle of the boll, there may be only 1 or 2 cracks that can be observed from the image. Therefore, if a white crack is detected, it is judged that the cotton has entered the boll splitting stage; otherwise, it is judged that the cotton has not entered the boll splitting stage.
以下为实施例:The following are examples:
实施例1Example 1
构建棉桃分类器:Build a boll classifier:
首先,选择大小为90×90像素的图片作为训练的正负样本。其中,正样本为不同姿态的棉桃图片,棉桃图片中的棉桃边缘轮廓清晰、饱满、人眼也可观察到裂铃状况;负样本为棉田纵向前视图中非棉桃的子图像图片。First, a picture with a size of 90×90 pixels is selected as positive and negative samples for training. Among them, the positive samples are pictures of cotton bolls in different postures. The edges of the bolls in the boll pictures are clear and full, and the boll cracking can also be observed by the human eye; the negative samples are sub-image pictures of non-cotton bolls in the longitudinal front view of the cotton field.
然后,提取已获得的正负样本图片中的SIFT特征量,并将SIFT特征量进行局部约束线性(LLC)编码,获得输入分类器的正训练样本和负训练样本特征量。Then, the SIFT feature quantity in the obtained positive and negative sample pictures is extracted, and the SIFT feature quantity is subjected to local constrained linear (LLC) encoding to obtain the positive training sample and negative training sample feature quantity input to the classifier.
最后,使用支持向量机(SVM)作为分类器,选择径向基(RBF)核函数,输入正训练样本和负训练样本的特征量,对分类器进行训练,获得棉桃分类器。Finally, use the support vector machine (SVM) as the classifier, select the radial basis (RBF) kernel function, input the feature quantities of positive training samples and negative training samples, train the classifier, and obtain the cotton boll classifier.
实施例2Example 2
使用本发明提供的方法判断图2中的棉花是否进入裂铃期:Use the method provided by the invention to judge whether the cotton in Fig. 2 enters the boll splitting stage:
(1)获取图片中棉桃位置.(1) Obtain the position of cotton bolls in the picture.
(1-1)采集棉田纵向前视图图像序列。(1-1) Collect longitudinal front view image sequences of cotton fields.
相机离地面高0.3米,焦距14毫米,水平拍摄方向向北,与地平线夹角为0度,分辨率400万像素,采集20时(即晚上8时)的棉田纵向前图像,如图2所示。The camera is 0.3 meters above the ground, the focal length is 14 mm, the horizontal shooting direction is north, the angle with the horizon is 0 degrees, and the resolution is 4 million pixels. The longitudinal front image of the cotton field is collected at 20:00 (that is, 8:00 p.m.), as shown in Figure 2 Show.
(1-2)粗搜索棉桃位置。(1-2) Coarse search for the position of cotton bolls.
首先按照自上而下从左到右的顺序,以30像素为步长,将步骤(1-1)中获得的图像拆分得到90×90像素的子图像。使用实施例1中得到的棉桃分类器对所述子图像进行判断,得到每个子图像的标记值。设置粗搜索阈值为假阳性率在6%至9%时的棉桃分类器阈值。记录其标记值超过粗搜索阈值的子图像位置,作为粗搜索棉桃位置,如图3所示。Firstly, the image obtained in step (1-1) is split to obtain sub-images of 90×90 pixels according to the order from top to bottom and from left to right, with a step size of 30 pixels. The boll classifier obtained in Example 1 is used to judge the sub-images to obtain the tag value of each sub-image. Set the coarse search threshold to be the boll classifier threshold when the false positive rate is between 6% and 9%. Record the position of the sub-image whose tag value exceeds the coarse search threshold as the coarse search boll position, as shown in Figure 3.
(1-3)细搜索棉桃位置(1-3) Fine search for the location of cotton bolls
对于图3中每一个粗搜索棉桃位置,将粗搜索棉桃位置附近向右向下各扩展5像素的图像区域作为细搜索范围。在细搜索范围内,按照从左到右从上到下的顺序,以1像素步长将图像拆分成90×90像素的子图像。使用实施例1中得到的棉桃分类器对拆分得到的子图像进行判断,得到每个子图像的标记值。设置细搜索阈值为假阳性率等于1%时的棉桃分类器阈值,记录其标记值超过细搜索阈值的子图像位置,作为细搜索棉桃位置。For each coarse search boll position in Figure 3, the image area extending 5 pixels to the right and downward near the coarse search boll position is taken as the fine search range. Within the fine search range, the image is split into sub-images of 90 × 90 pixels with a step size of 1 pixel in order from left to right and top to bottom. Use the cotton boll classifier obtained in Example 1 to judge the sub-images obtained by splitting, and obtain the tag value of each sub-image. Set the fine search threshold to be the boll classifier threshold when the false positive rate is equal to 1%, and record the sub-image positions whose marker values exceed the fine search threshold as the fine search boll positions.
(1-4)记录并跟踪棉桃位置。(1-4) Record and track boll positions.
对于步骤(1-2)粗搜索得到的每一个粗搜索棉桃位置,其扩展的搜索范围内所有的细搜索棉桃位置进行极大值约束,即将其中所有的细搜索棉桃位置按照其棉桃分类器给出的标记值进行排序,只保留标记值最大的细搜索棉桃位置,作为棉桃最终位置,并记录该位置作为棉桃位置。For each coarse search boll position obtained by the coarse search in step (1-2), all the fine search boll positions within the extended search range are subject to maximum value constraints, that is, all the fine search boll positions are given according to their boll classifiers. Sort the marked values, and only retain the position of the finely searched boll with the largest marked value as the final position of the boll, and record this position as the boll position.
(1-5)获取所有棉桃位置。(1-5) Get all boll positions.
在棉田纵向前视图像中,对所记录的检测当天之前检测到的所有最终棉桃位置子图像进行后续的分割棉桃图像处理,如图4所示。In the longitudinal front-view image of the cotton field, the subsequent image processing of the segmented bolls is performed on all the final boll position sub-images detected before the recorded detection day, as shown in Figure 4.
(2)分割出棉桃图像。(2) Segment the boll image.
(2-1)判断棉桃的位置。(2-1) Determine the position of bolls.
如图5所示,其中黑框内是要检测的棉桃,棉桃位置处于整幅图像上部三分之一范围内,认为棉桃与天空接触,在RGB颜色模式对棉桃位置的子图像进行处理。As shown in Figure 5, the boll to be detected is in the black frame, and the boll position is within the upper third of the entire image. It is considered that the boll is in contact with the sky, and the sub-image of the boll position is processed in the RGB color mode.
(2-2)获取棉桃灰度图像。(2-2) Obtain the grayscale image of cotton bolls.
将棉桃位置的矩形框内的子图像,转换到RGB颜色模式,即彩色图像转换为红、绿、蓝分量图像。选择RGB颜色模式中的绿色分量图像作处理,将棉桃位置子图像RGB彩色图像转换成灰度图像。Convert the sub-image in the rectangular frame of the cotton boll position to RGB color mode, that is, convert the color image into red, green, and blue component images. Select the green component image in the RGB color mode for processing, and convert the RGB color image of the cotton peach position sub-image into a grayscale image.
(2-3)获取棉桃二值图像。(2-3) Obtain the binary image of cotton bolls.
设定阈值为240,将棉桃位置子图像灰度图像转换成二值图像:由于我们要的到的棉桃区域是一个大的连通域,因此为了要保证棉桃连通域的完整及后续操作方便,凡是灰度值大于阈值的像素,则将该像素的灰度值变为0,否则将该像素的灰度值变为255。Set the threshold to 240 to convert the grayscale image of the boll position sub-image into a binary image: Since the boll area we want is a large connected domain, in order to ensure the integrity of the boll connected domain and the convenience of subsequent operations, any If the grayscale value of the pixel is greater than the threshold, the grayscale value of the pixel is changed to 0, otherwise the grayscale value of the pixel is changed to 255.
(2-4)获取棉桃初步分割图像。(2-4) Obtain a preliminary segmentation image of cotton bolls.
将二值化的图像中的多个连通域中间的孔洞填充,从而获得大的连通区域。使用canny边缘检测器,对棉桃位置子图像灰度图像进行边缘检测,如图6(a)所示,并进行交运算,得到棉桃初步分割图像,如图6(b)所示。Fill the holes in the middle of multiple connected domains in the binarized image to obtain large connected regions. Use the canny edge detector to detect the edge of the gray image of the boll position sub-image, as shown in Figure 6(a), and perform intersection operation to obtain the preliminary segmentation image of the boll, as shown in Figure 6(b).
(2-5)获得棉桃细分割图像。(2-5) Obtain finely segmented images of bolls.
对于棉桃初步分割图像利用形态学图像处理方法进行细图像分割,最终得到棉桃分割图像。For the preliminary segmented image of cotton bolls, the morphological image processing method is used for fine image segmentation, and finally the segmented images of cotton bolls are obtained.
首先对图像进行腐蚀操作,选择3×3像素大小的矩形框作为腐蚀所用的结构元素,这是因为交运算后的图像不能很好的区分两个不同的连通域,对图像进行腐蚀操作之后,虽然会减小连通域的面积,但是可以将最大的棉桃连通域与其他的小连通域尽可能的分隔开,如图6(c)所示。First, the image is corroded, and a rectangular box with a size of 3×3 pixels is selected as the structural element used for corrosion. This is because the image after the intersection operation cannot distinguish two different connected domains well. After the image is corroded, Although the area of the connected domain will be reduced, the largest cotton boll connected domain can be separated from other small connected domains as much as possible, as shown in Figure 6(c).
然后找到对图像进行腐蚀操作后得到的最大的连通域,将整个连通域内的像素灰度值标记为0,矩形区域中的其他像素的灰度值标记为1,如图6(d)所示。Then find the largest connected domain obtained by corroding the image, mark the gray value of the pixel in the entire connected domain as 0, and mark the gray value of other pixels in the rectangular area as 1, as shown in Figure 6(d) .
接着对图像进行膨胀操作,选择4×4像素大小的矩形框作为膨胀所用的结构元素,并填补这个最大连通域中的孔洞。为了尽可能保持腐蚀和膨胀操作后的目标物体形状不变,膨胀操作所使用的结构元素要与腐蚀操作所使用的结构元素相同,选择4×4像素大小的矩形框作为腐蚀所用的结构元素,得到棉桃区域灰度值为0,矩形区域其他位置灰度值为1的二值图像,如图6(e)所示。Then, the expansion operation is performed on the image, and a rectangular box with a size of 4×4 pixels is selected as the structural element used for expansion, and the holes in the maximum connected domain are filled. In order to keep the shape of the target object after the erosion and expansion operations unchanged as much as possible, the structural elements used in the expansion operation should be the same as those used in the erosion operation, and a rectangular box with a size of 4×4 pixels is selected as the structural element used in the erosion. A binary image with a gray value of 0 in the cotton boll area and a gray value of 1 in other positions in the rectangular area is obtained, as shown in Figure 6(e).
最后,将获得的二值图像与棉桃位置子图像RGB图像的每个通道做点乘,最终获得分割好的棉桃图像,如图6(f)所示。Finally, the obtained binary image is dot-multiplied with each channel of the RGB image of the cotton boll position sub-image, and finally the segmented boll image is obtained, as shown in Figure 6(f).
(3)判断裂铃期。(3) Judging the bell-cracking period.
(3-1)在分割出来的棉桃内部区域中检测白色裂缝。(3-1) Detect white cracks in the segmented inner region of the boll.
在已经分割好的棉桃区域,采用环境自适应分割方法,再次进行白色分割,目的是为了检测并提取棉桃中的白色裂缝,分割的结果如图7(a)所示。In the already segmented cotton boll area, the environment adaptive segmentation method is used to perform white segmentation again, the purpose is to detect and extract the white cracks in the boll, and the segmentation result is shown in Figure 7(a).
(3-2)检测白色裂缝。(3-2) Detection of white cracks.
依据要检测到的白色连通域(白色裂缝)的形状特征,利用白色裂缝自身“狭长性”对检测到的白色区域进行分割,对应选择的形状描述子为连通域最小外接椭圆的长短轴比,设置阈值为5.8,将长短轴比小于阈值的白色连通域去掉,保留长短轴比大于或等于阈值的连通域。According to the shape characteristics of the white connected domain (white crack) to be detected, the detected white area is segmented by using the "narrowness" of the white crack itself, and the corresponding selected shape descriptor is the ratio of the major axis to the smallest circumscribed ellipse of the connected domain Set the threshold to 5.8, remove the white connected domains whose long-short axis ratio is less than the threshold, and keep the connected domains whose long-short axis ratio is greater than or equal to the threshold.
(3-2)判断棉花是否到达裂铃期。(3-2) Judging whether the cotton has reached the boll splitting stage.
在得到最终分割好的白色裂缝图像之后,统计白色裂缝(白色狭长连通域)的个数,如图7(b)所示。没有检测到裂缝,棉花没进入裂铃期。After the final segmented white crack image is obtained, the number of white cracks (white narrow and long connected domains) is counted, as shown in Figure 7(b). No cracks were detected and the cotton did not enter the boll stage.
实施例3Example 3
使用本发明提供的方法判断图8中的棉花是否进入裂铃期:Use the method provided by the invention to judge whether the cotton in Fig. 8 enters the boll splitting stage:
(1)获取图片中棉桃位置:(1) Obtain the position of cotton bolls in the picture:
(1-1)采集棉田图像(1-1) Collect images of cotton fields
相机离地面高0.3米,焦距14毫米,水平拍摄方向向北,与地平线夹角为0度,分辨率400万像素,采集20时(即晚上8时)的棉田纵向前图像,如图8所示。The camera is 0.3 meters above the ground, the focal length is 14 mm, the horizontal shooting direction is north, the angle with the horizon is 0 degrees, and the resolution is 4 million pixels. The longitudinal front image of the cotton field is collected at 20:00 (that is, 8:00 p.m.), as shown in Figure 8 Show.
(1-2)粗搜索棉桃位置。(1-2) Coarse search for the position of cotton bolls.
首先按照自上而下从左到右的顺序,以30像素为步长,将步骤(1-1)中获得的图像拆分得到90×90像素的子图像。使用实施例1中得到的棉桃分类器对所述子图像进行判断,得到每个子图像的标记值。设置粗搜索阈值为假阳性率等于9%时的棉桃分类器阈值。记录其标记值超过粗搜索阈值的子图像位置,作为粗搜索棉桃位置,如图9所示。Firstly, the image obtained in step (1-1) is split to obtain sub-images of 90×90 pixels in the order of top-down and left-to-right with a step size of 30 pixels. The boll classifier obtained in Example 1 is used to judge the sub-images to obtain the tag value of each sub-image. Set the coarse search threshold to be the boll classifier threshold when the false positive rate is equal to 9%. Record the position of the sub-image whose tag value exceeds the coarse search threshold as the coarse search boll position, as shown in Figure 9.
(1-3)细搜索棉桃位置(1-3) Fine search for the location of cotton bolls
对于图9中每一个粗搜索棉桃位置,将粗搜索棉桃位置附近向右向下各扩展5像素的图像区域作为细搜索范围。在细搜索范围内,按照从左到右从上到下的顺序,以1像素步长将图像拆分成90×90像素的子图像。使用实施例1中得到的棉桃分类器对拆分得到的子图像进行判断,得到每个子图像的标记值。设置细搜索阈值为假阳性率等于1%时的棉桃分类器阈值,记录其标记值超过细搜索阈值的子图像位置,作为细搜索棉桃位置。For each coarse search boll position in Fig. 9, the image area extending 5 pixels to the right and downward near the coarse search boll position is taken as the fine search range. Within the fine search range, the image is split into sub-images of 90 × 90 pixels with a step size of 1 pixel in order from left to right and top to bottom. Use the cotton boll classifier obtained in Example 1 to judge the sub-images obtained by splitting, and obtain the tag value of each sub-image. Set the fine search threshold to be the boll classifier threshold when the false positive rate is equal to 1%, and record the sub-image positions whose marker values exceed the fine search threshold as the fine search boll positions.
(1-4)记录并跟踪棉桃位置。(1-4) Record and track boll positions.
对于步骤(1-2)粗搜索得到的每一个粗搜索棉桃位置,其扩展的搜索范围内所有的细搜索棉桃位置进行极大值约束,即将其中所有的细搜索棉桃位置按照其棉桃分类器给出的标记值进行排序,只保留标记值最大的细搜索棉桃位置,作为棉桃最终位置,并记录该位置作为棉桃位置。For each coarse search boll position obtained by the coarse search in step (1-2), all the fine search boll positions within the extended search range are subject to maximum value constraints, that is, all the fine search boll positions are given according to their boll classifiers. Sort the marked values, and only retain the position of the finely searched boll with the largest marked value as the final position of the boll, and record this position as the boll position.
(1-5)获取所有棉桃位置。(1-5) Get all boll positions.
在棉田纵向前视图像中,对所记录的检测当天之前检测到的所有最终棉桃位置子图像进行后续的分割棉桃图像处理,如图10所示。In the longitudinal front-view image of the cotton field, the sub-images of all the final boll positions detected before the recorded detection day are subjected to subsequent segmentation boll image processing, as shown in Figure 10.
(2)分割出棉桃图像。(2) Segment the boll image.
(2-1)判断棉桃的位置。(2-1) Determine the position of bolls.
如图11所示,其中黑框内是待检测的棉桃,棉桃位置处于整幅图像中下部三分之二范围内,认为棉桃不与天空接触,在HSI颜色模式中对棉桃位置子图像进行处理。As shown in Figure 11, the bolls to be detected are in the black frame, and the bolls are located within the lower two-thirds of the entire image. It is considered that the bolls are not in contact with the sky, and the bolls position sub-image is processed in the HSI color mode. .
(2-2)获取棉桃灰度图像。(2-2) Obtain the grayscale image of cotton bolls.
将棉桃位置的矩形框内的子图像,转换到HSI颜色模式,即色度、饱和度、亮度分量图像。为了使图像分割处理的效果达到最佳,选择HSI颜色模式中的饱和度分量图像作处理,即将棉桃位置子图像彩色图像转换成灰度图像并将其进行直方图均衡化操作,获得棉桃灰度图像。Convert the sub-image within the rectangular frame of the boll position to the HSI color mode, that is, the hue, saturation, and brightness component images. In order to achieve the best effect of image segmentation processing, the saturation component image in the HSI color mode is selected for processing, that is, the color image of the sub-image of the cotton peach position is converted into a grayscale image and the histogram equalization operation is performed on it to obtain the gray level of the cotton peach image.
(2-3)获取棉桃二值图像。(2-3) Obtain the binary image of cotton bolls.
设定阈值为240,将棉桃位置子图像灰度图像转换成二值图像:由于我们要的到的棉桃区域是一个大的连通域,因此为了要保证棉桃连通域的完整及后续操作方便,凡是灰度值大于阈值的像素,则将该像素的灰度值变为0,否则将该像素的灰度值变为255。Set the threshold to 240 to convert the grayscale image of the boll position sub-image into a binary image: Since the boll area we want is a large connected domain, in order to ensure the integrity of the boll connected domain and the convenience of subsequent operations, any If the grayscale value of the pixel is greater than the threshold, the grayscale value of the pixel is changed to 0, otherwise the grayscale value of the pixel is changed to 255.
(2-4)获取棉桃初步分割图像。(2-4) Obtain a preliminary segmentation image of cotton bolls.
将二值化的图像中的多个连通域中间的孔洞填充,从而获得大的连通区域。使用canny边缘检测器,对棉桃位置子图像灰度图像进行边缘检测,如图12(a)所示,并进行交运算,得到棉桃初步分割图像,如图12(b)所示。Fill the holes in the middle of multiple connected domains in the binarized image to obtain large connected regions. Use the canny edge detector to detect the edge of the gray image of the boll position sub-image, as shown in Figure 12(a), and perform intersection operation to obtain the preliminary segmentation image of the boll, as shown in Figure 12(b).
(2-5)获得棉桃细分割图像。(2-5) Obtain finely segmented images of bolls.
对于棉桃初步分割图像利用形态学图像处理方法进行细图像分割,最终得到棉桃分割图像。For the preliminary segmented image of cotton bolls, the morphological image processing method is used for fine image segmentation, and finally the segmented images of cotton bolls are obtained.
首先对图像进行腐蚀操作,选择3×3像素大小的矩形框作为腐蚀所用的结构元素,这是因为交运算后的图像不能很好的区分两个不同的连通域,对图像进行腐蚀操作之后,虽然会减小连通域的面积,但是可以将最大的棉桃连通域与其他的小连通域尽可能的分隔开,如图12(c)所示。First, the image is corroded, and a rectangular box with a size of 3×3 pixels is selected as the structural element used for corrosion. This is because the image after the intersection operation cannot distinguish two different connected domains well. After the image is corroded, Although the area of the connected domain will be reduced, the largest cotton boll connected domain can be separated from other small connected domains as much as possible, as shown in Figure 12(c).
然后找到对图像进行腐蚀操作后得到的最大的连通域,将整个连通域内的像素灰度值标记为0,矩形区域中的其他像素的灰度值标记为1,如图12(d)所示。Then find the largest connected domain obtained by corroding the image, mark the gray value of the pixels in the entire connected domain as 0, and mark the gray value of other pixels in the rectangular area as 1, as shown in Figure 12(d) .
接着对图像进行膨胀操作,选择4×4像素大小的矩形框作为膨胀所用的结构元素,并填补这个最大连通域中的孔洞。为了尽可能保持腐蚀和膨胀操作后的目标物体形状不变,膨胀操作所使用的结构元素要与腐蚀操作所使用的结构元素相同,选择4×4像素大小的矩形框作为腐蚀所用的结构元素,得到棉桃区域灰度值为0,矩形区域其他位置灰度值为1的二值图像,如图12(e)所示。Then, the expansion operation is performed on the image, and a rectangular box with a size of 4×4 pixels is selected as the structural element used for expansion, and the holes in the maximum connected domain are filled. In order to keep the shape of the target object after the erosion and expansion operations unchanged as much as possible, the structural elements used in the expansion operation should be the same as those used in the erosion operation, and a rectangular box with a size of 4×4 pixels is selected as the structural element used in the erosion. A binary image with a gray value of 0 in the cotton boll area and a gray value of 1 in other positions in the rectangular area is obtained, as shown in Figure 12(e).
最后,将获得的二值图像与棉桃位置子图像RGB图像的每个通道做点乘,最终获得分割好的棉桃图像,如图12(f)所示。Finally, the obtained binary image is dot-multiplied with each channel of the RGB image of the cotton boll position sub-image, and finally the segmented boll image is obtained, as shown in Figure 12(f).
(3)判断裂铃期。(3) Judging the bell-cracking period.
(3-1)在分割出来的棉桃内部区域中检测白色裂缝。(3-1) Detect white cracks in the segmented inner region of the boll.
在已经分割好的棉桃区域,采用环境自适应分割方法,再次进行白色分割,目的是为了检测并提取棉桃中的白色裂缝,分割的结果如图13(a)所示。In the already segmented cotton boll area, the environment adaptive segmentation method is used to perform white segmentation again, the purpose is to detect and extract the white cracks in the boll, and the segmentation result is shown in Figure 13(a).
(3-2)检测白色裂缝。(3-2) Detection of white cracks.
依据要检测到的白色连通域(白色裂缝)的形状特征,利用白色裂缝自身“狭长性”对检测到的白色区域进行分割,对应选择的形状描述子为连通域最小外接椭圆的长短轴比,设置阈值为5.8,将长短轴比小于阈值的白色连通域去掉,保留长短轴比大于或等于阈值的连通域。According to the shape characteristics of the white connected domain (white crack) to be detected, the detected white area is segmented by using the "narrowness" of the white crack itself, and the corresponding selected shape descriptor is the long-short axis ratio of the smallest circumscribed ellipse of the connected domain, Set the threshold to 5.8, remove the white connected domains whose long-short axis ratio is less than the threshold, and keep the connected domains whose long-short axis ratio is greater than or equal to the threshold.
(3-2)判断棉花是否到达裂铃期。(3-2) Judging whether cotton has reached the boll splitting stage.
在得到最终分割好的白色裂缝图像之后,统计白色裂缝(白色狭长连通域)的个数,如图13(b)所示。检测到一条裂缝,棉花进入裂铃期。After the final segmented white crack image is obtained, the number of white cracks (white narrow and long connected domains) is counted, as shown in Figure 13(b). A crack is detected and the cotton enters the boll splitting stage.
本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。It is easy for those skilled in the art to understand that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, All should be included within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310749849.4A CN104751199B (en) | 2013-12-30 | 2013-12-30 | A kind of cotton splits bell phase automatic testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310749849.4A CN104751199B (en) | 2013-12-30 | 2013-12-30 | A kind of cotton splits bell phase automatic testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104751199A CN104751199A (en) | 2015-07-01 |
CN104751199B true CN104751199B (en) | 2017-11-24 |
Family
ID=53590850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310749849.4A Active CN104751199B (en) | 2013-12-30 | 2013-12-30 | A kind of cotton splits bell phase automatic testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104751199B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106097368B (en) * | 2016-06-22 | 2019-05-31 | 国家林业局北京林业机械研究所 | A kind of recognition methods in veneer crack |
CN107993243B (en) * | 2017-12-21 | 2020-06-23 | 北京林业大学 | An automatic detection method of wheat tiller number based on RGB image |
CN108520261B (en) * | 2018-03-01 | 2021-06-18 | 中国农业大学 | A kind of identification method and device of peanut kernel quantity |
CN108647652B (en) * | 2018-05-14 | 2022-07-01 | 北京工业大学 | Cotton development period automatic identification method based on image classification and target detection |
CN109270952A (en) * | 2018-09-19 | 2019-01-25 | 清远市飞凡创丰科技有限公司 | A kind of agricultural land information acquisition system and method |
CN109856144A (en) * | 2019-03-13 | 2019-06-07 | 西北农林科技大学 | A kind of Kiwi berry based on mobile phone expands fruit detection method and device |
WO2021154624A1 (en) * | 2020-01-27 | 2021-08-05 | Matthew Charles King | System and method for performing machine vision recognition of dynamic objects |
CN111627031B (en) * | 2020-05-29 | 2023-02-28 | 郑州轻工业大学 | Tile-house-shaped polygon-based crop root system phenotype analysis device and method |
CN113658143B (en) * | 2021-08-19 | 2022-10-21 | 济南大学 | Method and system for detecting trash content of mechanically-harvested seed cotton |
CN113658148B (en) * | 2021-08-23 | 2023-08-08 | 山东大学 | A central flower recognition and positioning method and system based on region attribute extraction |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102103699A (en) * | 2011-01-27 | 2011-06-22 | 华中科技大学 | Method for detecting boll opening of cotton based on image detection |
CN102636486A (en) * | 2012-03-23 | 2012-08-15 | 华中科技大学 | Method for automatically detecting three-true-leaf period of cotton |
CN102640622A (en) * | 2012-04-16 | 2012-08-22 | 中国农业大学 | Cotton picker navigation information image detection method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8737703B2 (en) * | 2008-01-16 | 2014-05-27 | The Charles Stark Draper Laboratory, Inc. | Systems and methods for detecting retinal abnormalities |
-
2013
- 2013-12-30 CN CN201310749849.4A patent/CN104751199B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102103699A (en) * | 2011-01-27 | 2011-06-22 | 华中科技大学 | Method for detecting boll opening of cotton based on image detection |
CN102636486A (en) * | 2012-03-23 | 2012-08-15 | 华中科技大学 | Method for automatically detecting three-true-leaf period of cotton |
CN102640622A (en) * | 2012-04-16 | 2012-08-22 | 中国农业大学 | Cotton picker navigation information image detection method and system |
Non-Patent Citations (1)
Title |
---|
基于红外热图像的棉花花铃期水分胁迫指数与光合参数的关系;程麒等;《新疆农业科学》;20120630;第999页-第1006页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104751199A (en) | 2015-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104751199B (en) | A kind of cotton splits bell phase automatic testing method | |
CN113392775B (en) | Sugarcane seedling automatic identification and counting method based on deep neural network | |
Chen et al. | A YOLOv3-based computer vision system for identification of tea buds and the picking point | |
Liu et al. | Small unopened cotton boll counting by detection with MRF-YOLO in the wild | |
CN103839267B (en) | Building extracting method based on morphological building indexes | |
CN105893977B (en) | A Rice Mapping Method Based on Adaptive Feature Selection | |
Shuai et al. | An improved YOLOv5-based method for multi-species tea shoot detection and picking point location in complex backgrounds | |
CN105844610B (en) | Plant leaf blade rust staining automatic checkout system based on machine vision and method | |
Zhang et al. | An algorithm for automatic identification of multiple developmental stages of rice spikes based on improved Faster R-CNN | |
CN109447945A (en) | Wheat Basic Seedling rapid counting method based on machine vision and graphics process | |
CN112069985A (en) | High-resolution field image rice ear detection and counting method based on deep learning | |
CN114708208B (en) | Machine vision-based famous tea tender bud identification and picking point positioning method | |
Wang et al. | An maize leaf segmentation algorithm based on image repairing technology | |
CN115861409B (en) | Soybean leaf area measurement method, system, computer equipment and storage medium | |
CN105844213B (en) | Green fruit recognition method | |
Gao et al. | Recognition and Detection of Greenhouse Tomatoes in Complex Environment. | |
CN110517228A (en) | Fast detection method of tree trunk image based on convolutional neural network and transfer learning | |
CN107992863B (en) | Multi-resolution grain insect variety visual identification method | |
CN104636716B (en) | Green fruit recognition methods | |
Siripattanadilok et al. | Recognition of partially occluded soft-shell mud crabs using Faster R-CNN and Grad-CAM | |
Sheng et al. | Automatic detection and counting of planthoppers on white flat plate images captured by AR glasses for planthopper field survey | |
CN109190571A (en) | A kind of detection recognition method and its device of grazing sheep feeding typical plant type | |
Zhang et al. | Optimal training strategy for high-performance detection model of multi-cultivar tea shoots based on deep learning methods | |
CN103530887B (en) | A kind of river surface image region segmentation method based on multi-feature fusion | |
Peng et al. | Detecting coffee (Coffea arabica L.) sequential flowering events based on image segmentation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201224 Address after: 430070 No.8, Ligou South Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province Patentee after: WUHAN INTELLIGENT EQUIPMENT INDUSTRIAL INSTITUTE Co.,Ltd. Patentee after: Cao Zhiguo Address before: 430074 Hubei Province, Wuhan city Hongshan District Luoyu Road No. 1037 Patentee before: HUAZHONG University OF SCIENCE AND TECHNOLOGY |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210408 Address after: 430070 room 2213, building G2, future science and Technology City, 999 Gaoxin Avenue, Donghu New Technology Development Zone, Wuhan City, Hubei Province Patentee after: Wuhan angge Ruijing Technology Co.,Ltd. Address before: 430070 No.8, Ligou South Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province Patentee before: WUHAN INTELLIGENT EQUIPMENT INDUSTRIAL INSTITUTE Co.,Ltd. Patentee before: Cao Zhiguo |
|
TR01 | Transfer of patent right |