CN102938052A - Sugarcane segmentation and recognition method based on computer vision - Google Patents

Sugarcane segmentation and recognition method based on computer vision Download PDF

Info

Publication number
CN102938052A
CN102938052A CN 201110233943 CN201110233943A CN102938052A CN 102938052 A CN102938052 A CN 102938052A CN 201110233943 CN201110233943 CN 201110233943 CN 201110233943 A CN201110233943 A CN 201110233943A CN 102938052 A CN102938052 A CN 102938052A
Authority
CN
China
Prior art keywords
sugarcane
image
row piece
rugosity
segmentation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201110233943
Other languages
Chinese (zh)
Inventor
汪建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN 201110233943 priority Critical patent/CN102938052A/en
Publication of CN102938052A publication Critical patent/CN102938052A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention adopts the computer vision technology to recognize characteristics of shapes and nodes of sugarcanes for achieving growth monitoring of the sugarcanes or intelligent segmentation of sugarcane varieties containing sugarcane shoots. Firstly, sugarcane images are obtained through a digital device, hue saturation intensity (HSI) color space conversion is performed on the sugarcane images, color characteristics and threshold segmentation of an H component and an S component are combined, reverse images are segmented by threshold and calculation to obtain a composite image, the composite image is divided into 64 column areas, finally characteristic index of H parameters, S parameters, roughness ratio, white spot ratio and the like is extracted, the nodes and internode columns are classified and recognized through a support vector machine so as to complete recognition of the nodes and positions, and average recognition rate is 94.2%.

Description

A kind of sugarcane segmentation and recognition method based on computer vision
Technical field
The invention belongs to technical field of image processing, is a kind of method that the sugarcane feature is extracted and identified in conjunction with sugarcane image and computation model.
Background technology
In the growth and post-processed process of sugarcane, the cutting of growth conditions and sugarcane sugarcane bud is all manually finished for a long time, this method is by identification and the processing of computer vision technique, can identify automatically the image of sugarcane, in the sugarcane kind is processed, need the sugarcane with whole to cut into the effective sugarcane kind fragment that comprises 1~3 sugarcane bud.Also mostly at present is that manually to finish be main.For raising the efficiency, reduce labour intensity and realize becoming more meticulous of cane planting, need development can identify the intelligent shearing device of stipes and internode, and wherein most critical be identification sugarcane stipes.It is blank that at present domestic research in this field also belongs to.Close research has Liu Qingting etc. to utilize High-speed Photography Analysis blade cuts cane stalk stalk destructive process, and is external, only Iranian Moshashai K utilize the gray level image Threshold segmentation method to the sugarcane stipes identification done Primary Study, yet be in the starting stage.The research of domestic sugarcane stem image automatic identification technology there is not yet report.The present invention adopts the Segmentation of Color Image of color-based proper vector to the sugarcane Image Segmentation Using, again the stipes class that identifies is carried out cluster identification, obtains stipes number and stipes position, has obtained good effect.
Summary of the invention
A kind of sugarcane segmentation and recognition method based on computer vision is characterized in that comprising following concrete steps:
(1) obtains the sugarcane original image;
(2) with the original image denoising with from the RGB color space conversion to the HSI color space, and the H in the Selection Model and S parameter are as the sugarcane Characteristic of Image;
(3) the sugarcane image is carried out the processing of convolution;
(4) the sugarcane image is carried out the extraction of feature;
(5) the sugarcane characteristics of image being carried out model calculates and coupling;
(6) the sugarcane image of finishing feature extraction is carried out SVM identification.
Concrete process includes:
1, image obtains
Adopt CANON S80 type digital camera to take the single sugarcane coloured image of red background at testing table, the image size is the 1600*1200 pixel, the JPG form.Process software adopts VC++6.0 and M atlab7.0.First sugarcane top is peeled off before the shooting, camera lens is vertical with worktable, apart from worktable 30cm.
2, image base conditioning
The sugarcane surface color occupies whole gray level from black to white transition in the image, adopts the RGB color space to be difficult to be partitioned into desirable sugarcane profile, and the correlativity of each component space also is difficult to embody stipes and internode feature difference.Through behind a large amount of Experimental Comparisons, find to adopt the HSI space of red background effectively background and sugarcane to be distinguished.
(1) based on the color space of HSI
The HSI space is relatively more directly perceived and meet human vision property, and H, S, I represent tone, saturation degree and brightness.Spatially disperse from the gray scale that the H of HSI color space divides spirogram can see sugarcane and background area, the tone of stipes and internode has notable difference, can be used as the basis of characterization of stipes and internode; From the S component, can see the sugarcane clear-cut, the background area uniform gray level, its grey level histogram manifests bimodality, is conducive to the sugarcane profile and extracts.
(2) process of convolution
Behind the process of convolution Color Segmentation of bianry image, image is bianry image.Can find out by amplifying observation, the image after cutting apart is comprised of the zone of a large amount of, independent point and small size, can't further effectively cut apart image.Therefore, adopt process of convolution, be convenient to follow-up image processing process.Process of convolution is a kind of image linear filter method.By experiment investigation and comparison 7 types mask, determine to use at last 5 * 5 DISK mask process.
(3) Threshold segmentation
The H component can embody the minutia of sugarcane stipes, and the S component embodies the contour feature of sugarcane.Select suitable Threshold segmentation can obtain the binary map of desirable sugarcane profile and sign sugarcane stipes and internode difference; In S, the system of selection of H threshold value, respectively Otsu and artificial selection threshold value have been done comparison test, discovery Otsu auto Segmentation can not effectively be eliminated ground unrest, has large-area reflective phenomenon.And under worktable controlled condition, the histogram trough of S component appears between 0.40~0.55, threshold value is set between this can obtains desirable sugarcane boundary profile figure; In 0.4~0.6 scope, count with 0.1 interval region statistics gray level, with the segmentation threshold of corresponding gray-scale value as the S component of counting of minimum gray level in 0.1 scope.Research finds that the pixel of the overwhelming majority in the H histogram of component between gray level 0~0.04 and 0.90~1, arranges threshold value between interval 0.85~0.15, can effectively obtain the stipes feature.
3, feature extraction
Because the white point of eustipes part is counted disperse phase to evenly, the white point number in stipes zone is intensive, and diameter is larger; Be 64 row pieces zones with the composite diagram divided by column, establishing image collection is X (i, j); The coboundary of image is P t=(x t, y t), lower limb is P t=(x t, y t), k row piece rugosity is
C k = 1 10 Σ i = 10 ( k + 1 ) 10 k ( y bi - y ti )
The rugosity of each row piece (being diameter) is that the rugosity ratio is with the ratio of maximum rugosity
Figure BSA00000557308000032
By the coboundary of each row piece and lower boundary each row piece is divided 8 and wait capable piece, the ratio that the white point of center 4 row pieces is counted sum and the white point sum of its column is to distinguish ratio in 1/2, and its computing formula is
Figure BSA00000557308000033
Each row piece rugosity and its left and right sides 5 row piece distances, two row piece rugosity and average ratio be the position slightly than, its computing formula is
Figure BSA00000557308000034
4, SVM recognizer identification stipes and internode row piece
SVM is a kind of new model recognition methods, it takes into account training error and generalization ability, in solving small sample, non-linear, high dimension, local minimum isotype identification problem, show many distinctive advantages, in two quasi-mode identification problems, given training data { (x i, y i); x i∈ R Ny i=± 1}, support vector is by the definite classifying rules of f (x)
Figure BSA00000557308000035
The optimum solution of the Wo lfe primal-dual optimization problem that application Lag range multiplier method obtains
Figure BSA00000557308000036
5, cluster identification stipes number and position
The row piece that is obtained by svm classifier distributes as can be known: the stipes row piece that identifies is not unique, this and stipes have certain width to be consistent, the purpose of sugarcane stipes identification is to find cutting position to the cutting off tool of controller control, expresses with cane stalk joint number discrimination in the picture and stipes location recognition rate.Stipes is counted the number percent that discrimination is defined as from image actual stipes number in stipes number that algorithm identified goes out and figure.Be to characterize stipes location recognition rate, introduce and cut just rate concept, just cut when falling into the internode center with the tool position that rate is expressed as 100%, just cutting when cutter falls into the stipes center, rate is 0.Adopt the method for cluster can seek the stipes zone.Adopt at last the bee-line method to the cluster analysis of stipes class.
6, bee-line cluster
Bee-line method rule is: as long as the minor increment of two classes is just merged into a class with two classes less than threshold value, and definition D I, jBe ω iMinor increment in the class between all samples, i.e. D Ij=min{d UV}
D wherein UVBe ω iSample U class and ω in the class iDistance in the class between the sample V.If ω iClass is by ω m, ω nThe merging of two classes forms, then
Figure BSA00000557308000041
(U ∈ ω iClass, A ∈ ω mClass)
Figure BSA00000557308000042
(U ∈ ω iClass, B ∈ ω nClass)
Description of drawings
Fig. 1 is sugarcane feature extraction and recognition methods system
Fig. 2 is the sugarcane original image
Fig. 3 is H component image in the HSI component
Fig. 4 is the composograph of sugarcane
Embodiment
From the image that gathers, extract 50 width of cloth sugarcane picture combined training storehouses and be used for check.Process through primary image, extract 50 width of cloth images, every 64 row pieces, totally 3200 samples calculate each sample characteristics index; Through the method for artificial cognition, divide the category attribute of 3200 samples.Find in the statistics to reach 10: 1 owing to the row piece ratio of internode class in piece image and stipes class, need to extract that the suitable training sample of ratio comes training pattern between class, thus from sample, extract again whole stipes class samples and part internode class sample totally 800 set up disaggregated model.In SVM, C=20 is set, G=0.01 through cross matching.
The performing step of SVM identification:
(1) obtains the stipes class that SVM identifies, calculate the quantity Nm of stipes class row piece, take the positional distance between the stipes class row piece as characteristic parameter.
(2) the minimum threshold of distance T that cluster is set is 20~30 (row piece distances).
(3) with all stipes row piece each minute one classes, the cluster centre number is Nm.
(4) to all stipes row piece circulations, find nearest two row piece pi, pj, establish distance and be D; If D then merges pi, pj less than or equal to T, with large being included in the little class of class-mark of class-mark, otherwise D withdraws from circulation greater than T.The class number that obtains is the stipes number.

Claims (4)

1. sugarcane segmentation and recognition method based on computer vision is characterized in that comprising following concrete steps:
(1) obtains the sugarcane original image;
(2) with the original image denoising with from the RGB color space conversion to the HSI color space, and the H in the Selection Model and S parameter are as the sugarcane Characteristic of Image;
(3) the sugarcane image is carried out the processing of convolution;
(4) the sugarcane image is carried out the extraction of feature;
(5) the sugarcane characteristics of image being carried out model calculates and coupling;
(6) the sugarcane image of finishing feature extraction is carried out SVM identification.
2. a kind of sugarcane segmentation and recognition method based on computer vision according to claim 1 is characterized in that:
Image has been adopted process of convolution, so that follow-up image processing process.Process of convolution is a kind of image linear filter method.By experiment investigation and comparison 7 types mask, determine to use at last 5 * 5 DISK mask process.
3. a kind of sugarcane segmentation and recognition method based on computer vision according to claim 1 is characterized in that:
In the extraction of feature, be 64 row piece zones with the composite diagram divided by column, establishing image collection is X (i, j); The coboundary of image is P t=(x t, y t), lower limb is P t=(x t, y t), k row piece rugosity is
C k = 1 10 Σ i = 10 ( k + 1 ) 10 k ( y bi - y ti )
The rugosity of each row piece (being diameter) is that the rugosity ratio is with the ratio of maximum rugosity
By the coboundary of each row piece and lower boundary each row piece is divided 8 and wait capable piece, the ratio that the white point of center 4 row pieces is counted sum and the white point sum of its column is to distinguish ratio in 1/2, and its computing formula is
Figure FSA00000557307900013
Each row piece rugosity and its left and right sides 5 row piece distances, two row piece rugosity and average ratio be the position slightly than, its computing formula is
Figure FSA00000557307900014
4. a kind of sugarcane segmentation and recognition method based on computer vision according to claim 1 is characterized in that:
In the SVM image recognition
In the pattern recognition problem, given training data { (x i, y i); x i∈ R Ny i=± 1}, support vector is by the definite classifying rules of f (x)
Figure FSA00000557307900021
The optimum solution of the Wo lfe primal-dual optimization problem that application Lag range multiplier method obtains
Figure FSA00000557307900022
CN 201110233943 2011-08-16 2011-08-16 Sugarcane segmentation and recognition method based on computer vision Pending CN102938052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110233943 CN102938052A (en) 2011-08-16 2011-08-16 Sugarcane segmentation and recognition method based on computer vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110233943 CN102938052A (en) 2011-08-16 2011-08-16 Sugarcane segmentation and recognition method based on computer vision

Publications (1)

Publication Number Publication Date
CN102938052A true CN102938052A (en) 2013-02-20

Family

ID=47696947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110233943 Pending CN102938052A (en) 2011-08-16 2011-08-16 Sugarcane segmentation and recognition method based on computer vision

Country Status (1)

Country Link
CN (1) CN102938052A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105225228A (en) * 2015-09-08 2016-01-06 广西大学 Leifsonia image partition method under the natural background of field
CN106651779A (en) * 2016-09-09 2017-05-10 广西大学 Sugarcane cutting height detection method
CN107392890A (en) * 2017-06-20 2017-11-24 华南理工大学 A kind of FPC copper line surfaces oxidation defect detection method and its detecting system
CN107680098A (en) * 2017-11-02 2018-02-09 广西民族大学 A kind of recognition methods of sugarcane sugarcane section feature
CN112070771A (en) * 2020-07-24 2020-12-11 安徽农业大学 Adaptive threshold segmentation method and device based on HS channel and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105225228A (en) * 2015-09-08 2016-01-06 广西大学 Leifsonia image partition method under the natural background of field
CN105225228B (en) * 2015-09-08 2018-08-21 广西大学 Leifsonia image partition method under the natural background of field
CN106651779A (en) * 2016-09-09 2017-05-10 广西大学 Sugarcane cutting height detection method
CN106651779B (en) * 2016-09-09 2019-08-09 广西大学 A kind of detection method of sugarcane cutting-height
CN107392890A (en) * 2017-06-20 2017-11-24 华南理工大学 A kind of FPC copper line surfaces oxidation defect detection method and its detecting system
CN107392890B (en) * 2017-06-20 2020-05-19 华南理工大学 FPC copper wire surface oxidation defect detection method and detection system thereof
CN107680098A (en) * 2017-11-02 2018-02-09 广西民族大学 A kind of recognition methods of sugarcane sugarcane section feature
CN112070771A (en) * 2020-07-24 2020-12-11 安徽农业大学 Adaptive threshold segmentation method and device based on HS channel and storage medium
CN112070771B (en) * 2020-07-24 2022-11-01 安徽农业大学 Adaptive threshold segmentation method and device based on HS channel and storage medium

Similar Documents

Publication Publication Date Title
Jayakody et al. Microscope image based fully automated stomata detection and pore measurement method for grapevines
CN105718945B (en) Apple picking robot night image recognition method based on watershed and neural network
WO2017088365A1 (en) Skin-colour detection method and apparatus
CN102938053A (en) Sugarcane characteristic extraction and recognition method based on computer vision
CN105654099A (en) Sugarcane segmentation and identification method based on improved vision
CN108596038B (en) Method for identifying red blood cells in excrement by combining morphological segmentation and neural network
CN104408449B (en) Intelligent mobile terminal scene literal processing method
CN102915446A (en) Plant disease and pest detection method based on SVM (support vector machine) learning
CN103295013A (en) Pared area based single-image shadow detection method
CN103226088A (en) Particulate counting method and device thereof
CN103020639A (en) Method for automatically identifying and counting white blood cells
CN109523524B (en) Eye fundus image hard exudation detection method based on ensemble learning
CN107832801B (en) Model construction method for cell image classification
CN104036278A (en) Extracting method for face algorithm standard face image
CN103034838A (en) Special vehicle instrument type identification and calibration method based on image characteristics
CN109034269A (en) A kind of bollworm female male imago method of discrimination based on computer vision technique
CN109829425B (en) Farmland landscape small-scale ground feature classification method and system
CN106934455B (en) Remote sensing image optics adapter structure choosing method and system based on CNN
CN101216943B (en) A method for video moving object subdivision
CN103198479A (en) SAR image segmentation method based on semantic information classification
CN102194108A (en) Smiley face expression recognition method based on clustering linear discriminant analysis of feature selection
CN103440035A (en) Gesture recognition system in three-dimensional space and recognition method thereof
CN103177266A (en) Intelligent stock pest identification system
CN102938052A (en) Sugarcane segmentation and recognition method based on computer vision
CN110310291A (en) A kind of rice blast hierarchy system and its method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130220