CN101153851B - Apple detection classification method based on machine vision - Google Patents

Apple detection classification method based on machine vision Download PDF

Info

Publication number
CN101153851B
CN101153851B CN200710118974XA CN200710118974A CN101153851B CN 101153851 B CN101153851 B CN 101153851B CN 200710118974X A CN200710118974X A CN 200710118974XA CN 200710118974 A CN200710118974 A CN 200710118974A CN 101153851 B CN101153851 B CN 101153851B
Authority
CN
China
Prior art keywords
apple
image
value
area
classification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN200710118974XA
Other languages
Chinese (zh)
Other versions
CN101153851A (en
Inventor
李伟
康晴晴
荀一
张俊雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Agricultural University
Original Assignee
China Agricultural University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Agricultural University filed Critical China Agricultural University
Priority to CN200710118974XA priority Critical patent/CN101153851B/en
Publication of CN101153851A publication Critical patent/CN101153851A/en
Application granted granted Critical
Publication of CN101153851B publication Critical patent/CN101153851B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The present invention relates to an apple detection grading method based on machine vision, including the following steps: an apple rolls continuously to pass a collection zone and at least three different surface images are collected in succession so that the images cover most surface area of the apple; the area of the obtained images is taken as circular area; moreover, the mid diameter corresponding to the circular area is calculated and is taken as the size parameter of the apple; meanwhile, the average value of the surface red area proportion, the surface average chroma and the surface coloring evenness of the apple are calculated to obtain the color parameter of the apple according to the obtained images; after background segmentation, gray processing, image sharpening and filtering denoising of the obtained images, the average gradient value of the images is calculated. The method can effectively reduce imaging linear error of scanner and is fast and accurate, thereby being suitable for various types of scanners; meanwhile, with low computation complexity, the method is easy to realize and suitable to be used in quick real-time grading of apple; moreover, the method realizes detection grading of five sorts of apples, thereby having wide application range.

Description

A kind of apple detection classification method based on machine vision
Technical field
The present invention relates to a kind of method of the quality detection and classification according to fruit, relate in particular to a kind of based on machine vision effect detection stage division.
Background technology
Apple is one of the fruit the most widely that is eaten in the world, also is important foreign trade fruit simultaneously.But the back is detected, classification technique falls behind owing to pluck, and at present a lot of apples are just handled directly listing without classification after harvesting, cause grade to mix, and are very different, influenced its commodity value, particularly lack competitiveness in the international market.
Apple adopt major technique link that the back commercialization handles comprise select, clean, waxing, classification and packing etc., wherein classification is the core link during commercialization is handled.The apple classification of China at present mainly still relies on and manually finishes, and the labour who needs is many, and it is powerful to work, and the result of classification is bigger because of laborer's individual difference difference, and the consistance of classification is relatively poor, and efficient is lower.The classification that utilizes machine vision to carry out machine vision has very big advantage, can realize single standard grading to apple, perhaps simultaneously to a plurality of standards, comprising that the exterior quality such as size, color, shape, surface imperfection of fruit is disposable carries out comprehensive classification.The objectivity of classification is strong, standard is stable, high conformity, efficient height, and noncontact do not have injury, thereby has good application prospects.
The vision classification of apple mainly is to carry out Digital Image Processing by the imagery exploitation computing machine to apple, extracts the apple eigenwert, and then differentiates the grade of fruit.Thereby the calculating of apple image processing techniques and eigenwert is the core technology of most critical in the whole vision classification, is directly connected to the feasibility and the accuracy of classification.
Summary of the invention
(1) technical matters that will solve
The objective of the invention is to overcome the deficiencies in the prior art, a kind of apple detection classification method based on machine vision is provided, this method is passed through the detection to size, color and three index parameters of texture of apple, and the classification nominal value in conjunction with setting carries out classification to apple.
(2) technical scheme
At above problem, it is a kind of based on machine vision effect detection stage division that the present invention proposes, and may further comprise the steps:
A kind of apple detection classification method based on machine vision, the detected parameters that wherein said apple detects comprises size, color and the texture of apple, it is characterized in that, said method comprising the steps of:
1) make the apple continuous rolling by pickup area, and continuous acquisition at least 3 width of cloth different surfaces images, make image cover most areas of apple surface;
2) area with the image obtained in the step 1) is considered as the area of a circle, and calculates the mean diameter of this area of a circle correspondence, and this mean diameter is the size parameter of apple;
3) calculate the mean value of the surperficial red sector ratio of apple, surperficial average chrominance and surface colour uniformity coefficient respectively according to the image of obtaining in the step 1), according to the surface color characteristics of different cultivars apple to above-mentioned three mean values, after being weighted COMPREHENSIVE CALCULATING, obtain the color parameter of apple;
Wherein, above-mentioned surperficial red sector ratio is meant the ratio of the shared whole fruit face of surperficial red area of apple,
The computing formula of above-mentioned surperficial average chrominance is:
H = 1 n Σ i = 1 n H i
In the formula, the picture element number of apple in the n presentation video, H iThe chromatic value of representing each picture element,
Above-mentioned surface colour uniformity coefficient has following two kinds of computing method:
(a) certain surface colour of apple is inhomogeneous, and when color was block the distribution, at first background segment was extracted the apple target; Utilize red area different then, find appropriate threshold, extract red area, and calculate its centre of form with the R value of green area; Ask the distance L of the red area centre of form and the whole apple centre of form, utilize the L value to judge apple surface uniform coloring degree, or (b) when certain surface of same apple differs big with the another one surface color, then ask for same apple respectively and clapped in three width of cloth images average chrominance H1, H2, the H3 of apple in every width of cloth image, ask parameter value dif again, formula is as follows, so with parameter d if differentiate apple surface uniform coloring degree: dif=max (| H 1-H 2|, | H 1-H 3|, | H 2-H 3|);
Description of drawings
4) image of obtaining in the step 1) is carried out after background segment, gray processing, sharpening processing and filtering and noise reduction handle, the texture that obtains apple highlights image, then, calculates the average gradient value of this image, and this Grad is the parametric texture of apple;
Wherein, described above-mentioned average gradient value obtains by the following method:
The image mid point (x, gradient y), direction be f (x, y) in the direction of this rate of change maximum, and its mould is G (f (x, y))) then equal f (x, maximum rate of change y), promptly
G ( f ( x , y ) ) = ( ∂ f ∂ x ) 2 + ( ∂ f ∂ y ) 2
Typical case gradient algorithm: G (f (x, y))=[(f (x, y)-f (x+1, y)) 2+ (f (x, y)-f (x, y+1)) 2] 1/2Utilize typical gradient algorithm that image is carried out sharpening, calculate the Grad G (f (x of each pixel, y)), then image is carried out filtering and noise reduction, make texture highlight, after texture is clearly demonstrated, calculate the graded features value of this image: average gradient S, typical gradient algorithm is improved, obtain following gradient algorithm, G (f (x, y))=| f (x, y)-f (x+1, y) |+| f (x, y)-f (x, y+1) |, average gradient S then be Grad G (f's (x, y)) and with the ratio of apple diameter d:
S = 1 d ΣG ( f ( x , y ) )
Wherein d represents the diameter of apple;
5) one or more according in selected above-mentioned three detected parameters of the variety type of apple as the classification nominal parameters, and set corresponding classification nominal value range, after measured value and classification nominal value range compared, apple is carried out classification according to comparative result.
Preferably, the such scheme step 1) also can comprise: the original image of gathering is carried out the neighborhood filter preprocessing, extract its R channel image, it is carried out Threshold Segmentation, extract target image.
Embodiment
More preferably, in the such scheme step 3), the average chrominance maximum difference of each picture that obtains according to step 1) calculates the surface colour uniformity coefficient of apple.
(3) beneficial effect
When adopting method of the present invention that apple is carried out real-time classification, when the image resolution ratio to each apple collection was 195 * 195 pixels, hierarchical speed can reach 9 apples of per second.Can see from test findings: during for single yellow sweet apple of surface color and the comprehensive classification of Wang Lin apple, accuracy of identification reaches more than 95%, during the comprehensive classification of the red green alternate apple of surface color, identification accuracy reaches more than 91%, the computation complexity of the inventive method is low, be easy to realize, be suitable for the quick real-time grading of apple; And realized the detection classification of apple in 5, practical wide.
Fig. 1 is the apple sample that the surperficial red sector ratio of the embodiment of the invention 2 detects;
Fig. 2 is the hue distribution figure of four grades of the apple of the embodiment of the invention 2;
Fig. 3 is the accumulative total form and aspect frequency distribution plan of four grades of the apple corresponding with Fig. 2;
Fig. 4 is the process synoptic diagram that the embodiment of the invention 2 is calculated average chrominance H value;
Fig. 5 is the process synoptic diagram that the embodiment of the invention 2 detects painted inhomogeneous apple two centres of form;
Fig. 6 is the surperficial surface contrast figure that differs than Big Apple in the embodiment of the invention 2;
Fig. 7 is distinct fruit of the texture of the embodiment of the invention 3 and the not distinct fruit contrast of texture figure;
Fig. 8 is the image pretreatment process block diagram of the embodiment of the invention 3;
Fig. 9 is the image pretreating effect figure of the embodiment of the invention 3.
A kind of apple based on machine vision that the present invention proposes detects stage division and is described as follows in conjunction with the accompanying drawings and embodiments. Following embodiment only is used for explanation the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; in the situation that does not break away from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be limited by each claim.
The external sort of fruit mainly comprises: size, shape, color, texture and defect characteristic. Weight and size can reflect the size of apple. The regularity of profile directly affects the attractive in appearance of apple, and then affects the market value of apple. Color is the important indicator of the exterior quality of fruit, high-quality apple general painted evenly and also color and luster good. The maturity of color reflection apple has reflected the inner qualities such as fruit ground pol, acidity and mouthfeel, scarlet or dark red should accounting for more than 50% on the ripe Apples face indirectly. The color characteristics intrinsic according to different cultivars, the different purposes of pressing fruit take the coloring degree of pericarp as Main Basis, can be determined its selling price. Texture is the distinctive feature of quartzy Fuji, and in quartzy Fuji, the apple mouthfeel of texture distinctness is better than the feint apple of texture, and market value is also higher, is very important so carry out the texture classification. The present invention is based on machine vision and mainly three features of size, color, texture of apple have been carried out classification research.
When utilizing machine vision to carry out the classification of apple, image is 2D signal, every width of cloth image of apple only contains the visual information on the direction, and classification need to utilize the maximum fruit footpath of fruit on the three-dimensional all directions in space to represent size, a sub-picture utilize the whole surperficial colouring information of fruit comprehensively to judge the color grade of fruit, so can't comprise the required full detail of classification. The present invention gathers the cubic graph picture to each apple respectively, require the different surface of each collection, and the surface energy of gathering for three times covers more than 95% of whole fruit surface.
The specific algorithm that detects classification according to apple size, color, texture is divided into 3 embodiment, and is as follows:
Embodiment 1
Each apple does not roll through not stopping in the process of pickup area, and by continuous acquisition to 3 width of cloth different surfaces images, cover more than 90% of whole fruit face, can more intactly reflect apple surface information, and the area of apple is an apple maximum cross section area in every width of cloth image.Because apple belongs to circular fruit kind, can be similar to apple in the image and regard circle as, bring round area formula into and calculate radius r.R is an apple maximum cross section radius, and three width of cloth images of each apple are asked for three r values, asks average again, promptly obtains the mean radius R of apple.Because in the standard GB 10654-89 of fresh apple exposure draft, size represents with maximum cross-sectional area diameter, so makes R multiply by 2 to obtain apple mean diameter D, and D as the size characteristic value, improved projected area method that Here it is.Concrete grammar is as follows:
Dynamically down apple is being detected classification, each apple is at the projected image S through collected 3 width of cloth different surfaces in the process of pickup area 1, S 2And S 3Bring round area formula into and calculate radius r 1, r 2And r 3, as shown in Equation (1).
r i = s i / π , i = 1,2,3 - - - ( 1 )
r iFor the fruit radius of obtaining by three projected areas, ask mean radius R again, as formula (2), diameter D equals 2 times of R so, and replaces the apple mean diameter to differentiate the size of apple with D, and computing formula is as (3).
R = 1 3 Σ i = 1 3 r i - - - ( 2 )
D=2×R (3)
Embodiment 2
Choose a large amount of apple sample, its surface color characteristic is analyzed, obtain three surface color characteristic parameters: surperficial red sector ratio (ratio of the shared whole fruit face of surperficial red area), surperficial average chrominance, surface colour uniformity coefficient.Introduce the computing method of these three characteristic parameters below respectively.
The detection method of surface red sector ratio is as follows:
Be illustrated in figure 1 as 4 apple sample representing four grades.Utilize the HIS color model that it is carried out the color characteristics analysis.Calculation procedure is: at first, image segmentation is extracted the apple target; Then, the RGB color model is converted to the HIS color model; At last, obtain the chromatic value of each picture element in the target image, represented the colourity of four grade apple colors to distribute as shown in Figure 2 respectively.
Can get the red fuji apple chromaticity range from Fig. 2 about 0 °~100 °, with reducing of degree of staining, the form and aspect curve is offset to the right.Excellent red fuji apple chromatic value concentrates on about 0 °~25 °; First-class red fuji apple chromatic value concentrates on about 15 °~40 °; Second-class red fuji apple chromatic value concentrates on about 30 °~65 °, and the relatively dispersion that distributes; Concentrate on about 60 °~80 ° Deng outer red fuji apple chromatic value.But the hue distribution scope of each grade apple image has lap, is difficult to the form and aspect threshold value that finds differentiation at different levels.According to hue distribution Fig. 2, calculate frequency accumulative total under each hue value (frequency that promptly is not more than this chromatic value add up and), obtain corresponding form and aspect accumulative frequency and distribute as Fig. 3.As shown in Figure 3, along with apple is green by red stain, its form and aspect accumulative frequency figure obviously moves to right, and the curve steepness diminishes.So pairing accumulative frequency under the suitable hue value (being surperficial red sector ratio) as eigenwert, can come four grade distinguishings.
The detection method of surface average chrominance:
Apple surface for kinds such as yellow banana, Wang Lin is painted single, mostly is green or yellow green.The average chrominance that only needs to extract its surface color can be carried out color grading.As shown in Figure 4, under the detection of dynamic condition, obtain the apple image, again each width of cloth image is carried out image segmentation, the RGB color model is transformed into the HIS color model, the last chromatic value of under the HIS color model, obtaining each picture element in the target image, and then calculate the average chrominance value H of whole apple, suc as formula (1):
H = 1 n Σ i = 1 n H i , - - - ( 1 )
In the formula, the picture element number of apple target in the n presentation video, Hi represents the chromatic value of each picture element.
The detection method of surface colour uniformity coefficient:
A large amount of apple surface color characteristics is analyzed and can be got, and surface colour is inhomogeneous to be divided into two kinds of situations.
First kind of situation: certain surface colour of apple is inhomogeneous, and color is block and distributes, and as first apple among Fig. 5, at first background segment is extracted the apple target; Utilize red area different then, find appropriate threshold, extract red area, and calculate its centre of form with the R value of green area; Ask the distance L of the red area centre of form and the whole apple centre of form, utilize the L value to judge apple surface uniform coloring degree.As apple among Fig. 5, red area centre of form coordinate is (89,83), and whole apple centre of form coordinate is (97,86).And then to calculate 2 distances be 8.5 picture elements.
Second kind of situation: certain surface of same apple differs bigger with the another one surface color, as apple a among Fig. 6 and apple b, is the different surfaces of same apple, and obviously color distinction is very big.This problem is asked for same apple respectively and is clapped in three width of cloth images average chrominance H1, H2, the H3 of apple in every width of cloth image, asks parameter value dif again, and formula is shown in (2).And then differentiate apple surface uniform coloring degree with parameter d if.
dif=max(|H 1-H 2|,|H 1-H 3|,|H 2-H 3|) (2)
Embodiment 3
Show that as Fig. 7 apple 1 and 2 background colors are yellowish, there are a large amount of textures on the surface, taste and sweet mouthfeel, and the market price is higher, is the distinct A level fruit of texture; It is red and green that apple 3 and 4 background colors are respectively, and surface color becomes block and distributes, and mouthfeel is taken second place, and the market price is lower, is the not distinct B level fruit of texture.
For ease of the following describes, Fig. 7 on the correspondence, wherein apple 3 surfaces are almost red entirely, and apple similar with it is defined as full haw, otherwise are non-full haw.
The Flame Image Process FB(flow block) as shown in Figure 8, method is described below:
1) adopts the neighborhood filtering method that original image is removed noise, set appropriate threshold and carry out image segmentation, extract the apple target;
2) by a large amount of tests as can be known, full haw and background color are difficult to cut apart with single Color Channel, need separately it to be separated to carry out Flame Image Process.At this, be in conjunction with R and B channel information proposition separation algorithm: the average absolute D of the difference of the R value of all pixels and B value in the computed image, promptly
D = 1 N Σ i = 1 N | R - B | - - - ( 3 )
By a large amount of tests, finding the threshold value that can distinguish above two kinds of apples is 55, and the D value is full haw greater than 55, otherwise is all the other class apples.Non-full haw and full haw obtain corresponding gray-scale map according to formula L=(3.5G-1.5R-B) and L=(R-G) respectively, and wherein L is a gray-scale value.
3) because texture region is positioned at the place of gray scale sudden change, can extract with grey scale difference.Because the apple surface texture usually has any direction in piece image, therefore choose isotropic sharpening method: gradient method.As Fig. 5-3 mid point (x, gradient y), direction be f (x, y) in the direction of this rate of change maximum, and its mould is G (f (x, y))) then equal f (x, maximum rate of change y), promptly
G ( f ( x , y ) ) = ( ∂ f ∂ x ) 2 + ( ∂ f ∂ y ) 2 - - - ( 4 )
Typical case's gradient algorithm:
G(f(x,y))=[(f(x,y)-f(x+1,y)) 2+(f(x,y)-f(x,y+1)) 2] 1/2
Utilize typical gradient algorithm that image is carried out sharpening, (Grad is changed to black greater than 50 pixel for f (x, y)), setting threshold 50, and all the other points are changed to white to calculate the Grad G of each pixel.Doublely image is carried out the gradient method sharpening handle.Then image is carried out filtering and noise reduction, make texture highlight, arthmetic statement is: pixel is white in image, calculate its 8 gray values of pixel points sum sum on every side, if sum is shown as black to this pixel less than 1020 (255 * 4), otherwise display white still; Pixel is a black in image, calculates its 8 gray values of pixel points sum sum on every side, if sum is shown as white to this pixel, otherwise still shows black greater than 1785 (255 * 7).Apple 2 among Fig. 7 and apple 3 effect after above-mentioned processing is corresponding shown in Figure 9 respectively, and texture just highlights out like this.
After texture is clearly demonstrated, calculate the graded features value of this image: average gradient S.Typical gradient algorithm is improved, and raising speed obtains following gradient algorithm, suc as formula (6).Average gradient S then be Grad G (f's (x, y)) and with the ratio of apple diameter d, suc as formula (7).
G(f(x,y))=|f(x,y)-f(x+1,y)|+|f(x,y)-f(x,y+1)| (6)
S = 1 d ΣG ( f ( x , y ) ) - - - ( 7 )
Wherein d represents the diameter of apple.
At last,, choose appropriate threshold, apple is divided into distinct fruit of texture and the not distinct fruit of texture according to textural characteristics for the eigenwert average gradient.
Calculate after above three surface characteristics, obtain big or small rank, color rank and the texture rank of apple, obtain the comprehensive rank of apple again by the weighted value of various combination, finish the comprehensive classification of apple.
According to the mode of operation of above-mentioned enforcement 1,2,3, high-class product, Grade A, goods of inferior quality and the off standard of apple are represented with A, B, C and D respectively.Draw the classification accuracy of A level apple as the formula (8).
p ( A ) = Σ i = 1 5 | A i - A | n × A - - - ( 8 )
In the following formula, the apple when p (A) expression detects high-class product detects accuracy; Ai represents to test in the high-class product detection at every turn and examines the apple number; A represents manual detection high-class product apple number; N represents test number (TN); The overall classification accuracy of P representative test.
Because five kinds of apple surface feature differences, wherein quartzy Fuji surface color is red green alternate, and the color distribution complexity needs according to size, color, texture, comprehensive classification; Kudo Fuji, yellow banana and red banana need by size, color, comprehensive classification; And the Wang Lin color is single, mostly is green, only needs size classification to get final product.Five kinds of apple classification test data are as follows:
Table 1 size fractionation test findings
Figure DEST_PATH_RE-GA20185443200710118974X01D00092
Table 2 color grading test findings
Figure DEST_PATH_RE-GA20185443200710118974X01D00093
Figure DEST_PATH_RE-GA20185443200710118974X01D00101
Table 3 texture classification test result
Figure DEST_PATH_RE-GA20185443200710118974X01D00102
The comprehensive classification test findings of table 4
Figure DEST_PATH_RE-GA20185443200710118974X01D00103
The present invention is 195 * 195 pixels to the image resolution ratio of each fruit collection when the actual classification in real time that is applied to apple, and hierarchical speed can reach 9 apples of per second.Can get from test findings: 1) when yellow sweet apple that surface color is single and the comprehensive classification of Wang Lin apple, accuracy of identification reaches more than 95%.2) during the comprehensive classification of the red green alternate apple of surface color, identification accuracy reaches more than 91%.

Claims (2)

1. apple detection classification method based on machine vision, the detected parameters that wherein said apple detects comprises size, color and the texture of apple, it is characterized in that, said method comprising the steps of:
1) make the apple continuous rolling by pickup area, and continuous acquisition at least 3 width of cloth different surfaces images, make image cover most areas of apple surface;
2) area with the image obtained in the step 1) is considered as the area of a circle, and calculates the mean diameter of this area of a circle correspondence, and this mean diameter is the size parameter of apple;
3) calculate the mean value of the surperficial red sector ratio of apple, surperficial average chrominance and surface colour uniformity coefficient respectively according to the image of obtaining in the step 1), according to the surface color characteristics of different cultivars apple to above-mentioned three mean values, after being weighted COMPREHENSIVE CALCULATING, obtain the color parameter of apple;
Wherein, above-mentioned surperficial red sector ratio is meant the ratio of the shared whole fruit face of surperficial red area of apple,
The computing formula of above-mentioned surperficial average chrominance is:
Figure FSB00000011332900011
In the formula, the picture element number of apple in the n presentation video, H iThe chromatic value of representing each picture element,
Above-mentioned surface colour uniformity coefficient has following two kinds of computing method:
(a) certain surface colour of apple is inhomogeneous, and when color was block the distribution, at first background segment was extracted the apple target; Utilize red area different then, find appropriate threshold, extract red area, and calculate its centre of form with the R value of green area; Ask the distance L of the red area centre of form and the whole apple centre of form, utilize the L value to judge apple surface uniform coloring degree, or (b) when certain surface of same apple differs big with the another one surface color, then ask for same apple respectively and clapped in three width of cloth images average chrominance H of apple in every width of cloth image 1, H 2, H 3, ask parameter value dif again, formula is as follows, and then with parameter d if differentiate apple surface uniform coloring degree: dif=max (| H 1-H 2|, | H 1-H 3|, | H 2-H 3|);
4) image of obtaining in the step 1) is carried out after background segment, gray processing, sharpening processing and filtering and noise reduction handle, the texture that obtains apple highlights image, then, calculates the average gradient value of this image, and this Grad is the parametric texture of apple;
Wherein, described above-mentioned average gradient value obtains by the following method:
The image mid point (x, gradient y), direction be f (x, y) in the direction of this rate of change maximum, and its mould be G (f (x, y)) then equal f (x, maximum rate of change y), promptly
Figure FSB00000011332900021
Typical case gradient algorithm: G (f (x, y))=[(f (x, y)-f (x+1, y)) 2+ (f (x, y)-f (x, y+1)) 2] 1/2,
Utilize typical gradient algorithm that image is carried out sharpening, calculate the Grad G (f (x of each pixel, y)), then image is carried out filtering and noise reduction, make texture highlight, after texture is clearly demonstrated, calculate the graded features value of this image: average gradient S, typical gradient algorithm is improved, obtain following gradient algorithm, and G (f (x, y))=| f (x, y)-f (x+1, y) |+| f (x, y)-f (x, y+1) |, average gradient value S then be Grad G (f's (x, y)) and with the ratio of apple diameter d:
Wherein d represents the diameter of apple;
5) one or more according in selected above-mentioned three detected parameters of the variety type of apple as the classification nominal parameters, and set corresponding classification nominal value range, after measured value and classification nominal value range compared, apple is carried out classification according to comparative result.
2. apple detection classification method as claimed in claim 1 is characterized in that also comprising in described step 1): the original image of gathering is carried out the neighborhood filter preprocessing, extract its R channel image, it is carried out Threshold Segmentation, extract target image.
CN200710118974XA 2007-06-15 2007-06-15 Apple detection classification method based on machine vision Expired - Fee Related CN101153851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710118974XA CN101153851B (en) 2007-06-15 2007-06-15 Apple detection classification method based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710118974XA CN101153851B (en) 2007-06-15 2007-06-15 Apple detection classification method based on machine vision

Publications (2)

Publication Number Publication Date
CN101153851A CN101153851A (en) 2008-04-02
CN101153851B true CN101153851B (en) 2011-06-08

Family

ID=39255619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710118974XA Expired - Fee Related CN101153851B (en) 2007-06-15 2007-06-15 Apple detection classification method based on machine vision

Country Status (1)

Country Link
CN (1) CN101153851B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102680494A (en) * 2012-05-24 2012-09-19 江南大学 Real-time detecting method of metal arc plane flaw based on machine vision

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101581677B (en) * 2008-05-16 2012-10-03 深超光电(深圳)有限公司 Method for classifying grade of panel to be detected of lighting tester
CN101701916B (en) * 2009-12-01 2011-05-18 中国农业大学 Method for quickly identifying and distinguishing variety of corn
CN103185609A (en) * 2011-12-29 2013-07-03 机械科学研究总院先进制造技术研究中心 Image detecting method for grading of tomatoes
CN103471514B (en) * 2013-09-12 2016-02-03 齐鲁工业大学 A kind of garlic stage division based on machine vision and simple linear regression analysis
CN103646251B (en) * 2013-09-14 2017-05-17 江南大学 Apple postharvest field classification detection method and system based on embedded technology
CN104406928A (en) * 2014-12-01 2015-03-11 上海理工大学 Method for realizing non-destructive test of waxing kinds of apple surfaces
CN105181696A (en) * 2015-01-24 2015-12-23 无锡桑尼安科技有限公司 Detection system of tomato maturity on basis of variety identification
CN105890764B (en) * 2016-03-31 2018-01-23 杭州市农业科学研究院 The method of the resolution flower color depth based on Computer Image Processing
CN107607480B (en) * 2016-07-12 2020-03-17 湖南生物机电职业技术学院 Nondestructive testing method for effective acidity of navel orange
CN108805893A (en) * 2018-06-06 2018-11-13 甘肃农业大学 apple image segmentation method and device
CN109365323A (en) * 2018-12-03 2019-02-22 广东技术师范学院 One kind being based on RGB fruit classification method and sorter
CN109740681A (en) * 2019-01-08 2019-05-10 南方科技大学 A kind of fruit method for sorting, device, system, terminal and storage medium
CN110751687B (en) * 2019-09-17 2023-05-26 山东科技大学 Apple size grading method based on computer vision minimum and maximum circle
CN111860125A (en) * 2020-06-04 2020-10-30 南通科技职业学院 Method for identifying fruit maturity based on machine vision

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1844900A (en) * 2006-04-10 2006-10-11 浙江大学 Method and apparatus for detecting fruit surface defect based on laser image
JP4364449B2 (en) * 2001-04-04 2009-11-18 大東電材株式会社 Wire connection clamp device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4364449B2 (en) * 2001-04-04 2009-11-18 大東電材株式会社 Wire connection clamp device
CN1844900A (en) * 2006-04-10 2006-10-11 浙江大学 Method and apparatus for detecting fruit surface defect based on laser image

Non-Patent Citations (13)

* Cited by examiner, † Cited by third party
Title
.基于计算机视觉的苹果表面颜色分级技术研究.中国农业机械学会2006年学术年会论文集.2006,(2006),455-459.
.计算机视觉在瓷砖表面颜色匀度分析中的应用.中国陶瓷工业9 4.2002,9(4),33-36.
于德敏
冯斌.计算机视觉信息处理方法与水果分级检测技术研究.2002,全文. *
康晴晴
康晴晴;荀一;张俊雄;李伟;.基于计算机视觉的苹果表面颜色分级技术研究.中国农业机械学会2006年学术年会论文集.2006,(2006),455-459. *
张俊雄
戴哲敏
戴哲敏;许增朴;于德敏;王永强;.计算机视觉在瓷砖表面颜色匀度分析中的应用.中国陶瓷工业9 4.2002,9(4),33-36. *
李伟
王永强
荀一
许增朴

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102680494A (en) * 2012-05-24 2012-09-19 江南大学 Real-time detecting method of metal arc plane flaw based on machine vision

Also Published As

Publication number Publication date
CN101153851A (en) 2008-04-02

Similar Documents

Publication Publication Date Title
CN101153851B (en) Apple detection classification method based on machine vision
CN106529429B (en) A kind of skin of face analysis system based on image recognition
CN101085442B (en) Method for treating and classifying orange image based on RGB composite model
CN101701916B (en) Method for quickly identifying and distinguishing variety of corn
CN114549522A (en) Textile quality detection method based on target detection
Fashi et al. The relationship between the appearance of pomegranate fruit and color and size of arils based on image processing
Zhang et al. A transformation technique from RGB signals to the Munsell system for color analysis of tobacco leaves
CN108662977A (en) A kind of refractory brick geometric dimension measurement method
CN114897898B (en) Board quality classification method based on image processing
CN102063710A (en) Method for realizing fusion and enhancement of remote sensing image
CN109191432A (en) The remote sensing images cloud detection method of optic of filtering multi-resolution decomposition is converted based on domain
CN115331119B (en) Solid waste identification method
CN104408714B (en) A kind of heavy textile image dividing method for suppressing smothing filtering and watershed algorithm based on texture
CN101403703A (en) Real-time detection method for foreign fiber in lint
CN107657619A (en) A kind of low-light (level) Forest fire image dividing method
CN101271522A (en) Automatic recognition method for yellow-colored rice in rice
CN105894513B (en) Take the remote sensing image variation detection method and system of imaged object change in time and space into account
CN108181316A (en) A kind of bamboo strip defect detection method based on machine vision
CN108550145A (en) A kind of SAR image method for evaluating quality and device
CN107292328A (en) The remote sensing image shadow Detection extracting method and system of multiple dimensioned multiple features fusion
CN102332154A (en) Method and system for enhancing color images of cotton pseudo foreign fibers under non-uniform illumination
CN107590816A (en) A kind of Water-Body Information approximating method based on remote sensing images
CN101901482B (en) Method for judging quality effect of defogged and enhanced image
CN103528967A (en) Hyperspectral image based overripe Lonicera edulis fruit identification method
CN108460380A (en) A kind of bamboo cane method for sorting colors and system based on domain color

Legal Events

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

Granted publication date: 20110608

Termination date: 20140615

EXPY Termination of patent right or utility model