Nothing Special   »   [go: up one dir, main page]

CN101271522A - A method for automatic identification of yellow-grained rice in rice - Google Patents

A method for automatic identification of yellow-grained rice in rice Download PDF

Info

Publication number
CN101271522A
CN101271522A CNA2008101120842A CN200810112084A CN101271522A CN 101271522 A CN101271522 A CN 101271522A CN A2008101120842 A CNA2008101120842 A CN A2008101120842A CN 200810112084 A CN200810112084 A CN 200810112084A CN 101271522 A CN101271522 A CN 101271522A
Authority
CN
China
Prior art keywords
rice
yellow
chromaticity
grained
threshold
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
CNA2008101120842A
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.)
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 CNA2008101120842A priority Critical patent/CN101271522A/en
Publication of CN101271522A publication Critical patent/CN101271522A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

本发明公开了属于计算机图像处理技术领域一种黄粒米自动识别的方法,包括:将米样置于图像采集器中,采集原始图像信息;读取原始图像信息,分离背景和米样;读取每粒大米的原始色度信息R、G、B值,通过理想颜色模型XYZ,将R、G、B色度值转化为均匀颜色模型色度值L*a*b*;选择判定特征色度值b*,若每粒大米的所有像素中特征色度值b*超过色度阈值,且所占比例大于面积阈值时,判定该大米为黄粒米。其中色度阈值和面积阈值由操作者根据大米的品种和产地,自行设定。本发明所述方法可以广泛应用于在稻谷现场收购与市场交易中对大米品质的检测过程,使检测快速、客观、准确。

Figure 200810112084

The invention discloses a method for automatic identification of yellow-grained rice, which belongs to the technical field of computer image processing. Take the original chromaticity information R, G, and B values of each grain of rice, and convert the R, G, and B chromaticity values into the uniform color model chromaticity value L * a * b * through the ideal color model XYZ; select the judgment feature color If the characteristic chromaticity value b * in all pixels of each grain of rice exceeds the chromaticity threshold and the proportion is greater than the area threshold, it is determined that the rice is yellow-grained rice. Among them, the chromaticity threshold and the area threshold are set by the operator according to the variety and origin of the rice. The method of the invention can be widely used in the detection process of rice quality in the on-site purchase of rice and market transactions, so that the detection is fast, objective and accurate.

Figure 200810112084

Description

一种大米中黄粒米的自动识别方法 A method for automatic identification of yellow-grained rice in rice

技术领域 technical field

本发明属于计算机图像处理技术领域,特别涉及一种大米中黄粒米的自动识别方法。The invention belongs to the technical field of computer image processing, and in particular relates to an automatic identification method for yellow-grained rice in rice.

背景技术 Background technique

黄粒米是将糙米磨成精度为国家标准一等大米时,胚乳呈黄色,与正常米粒色泽明显不同的颗粒,黄粒米重量占试样重量的百分率称为黄粒米率。国家标准GB/T 17891-1999《优质稻谷》规定黄粒米的检测按国家标准GB 1350-1999《稻谷》规定方法进行检测,而国家标准GB 1350-1999《稻谷》中并没有黄粒米检测方法的阐述,指出,黄粒米检测按国家标准GB 5496-1985《粮食、油料检验黄粒米及裂纹粒检验法》进行。Yellow-grained rice refers to grains whose endosperm is yellow when brown rice is ground into first-class rice according to the national standard, which is obviously different in color from normal rice grains. The percentage of yellow-grained rice weight in the sample weight is called yellow-grained rice rate. The national standard GB/T 17891-1999 "High Quality Paddy" stipulates that the detection of yellow-grained rice is carried out according to the method specified in the national standard GB 1350-1999 "Paddy", but there is no yellow-grained rice detection in the national standard GB 1350-1999 "Paddy" In the description of the method, it is pointed out that the detection of yellow-grained rice is carried out according to the national standard GB 5496-1985 "Inspection of Yellow-grained Rice and Cracked Grains in Grain and Oil Seeds".

国家标准GB 5496-1985《粮食、油料检验黄粒米及裂纹粒检验法》规定黄粒米检测方法为:稻谷经检验出糙率以后,将其糙米试样用小型碾米机碾磨至近似标准二等米的精度,除去糠粉,称重W,作为试样重量,再按规定拣出黄粒米,称重W1。稻谷黄粒米含量按公式计算:黄粒米(%)=(W1/W)×100%。其中黄粒米的识别方式为:分取大米试样约50g或在检验碎米的同时,按规定拣出黄粒米,其捡出的依据完全依靠人眼进行。这种方法由于检测时间长、主观性强、准确性低,可操作性、重复性差,且易受环境影响等缺陷难以满足在稻谷现场收购和市场交易中对品质检测快速、客观、准确性高的要求。The national standard GB 5496-1985 "Inspection Method for Yellow-grained Rice and Cracked Grains of Grain and Oil Plants" stipulates that the detection method of yellow-grained rice is: after the roughness of the rice is tested, the brown rice sample is ground with a small rice mill to approximately For the accuracy of standard second-class rice, remove bran powder, weigh W, and use it as the sample weight, then pick out yellow-grained rice according to regulations, and weigh W 1 . The content of yellow-grained rice in paddy is calculated according to the formula: yellow-grained rice (%)=(W 1 /W)×100%. Among them, the identification method of yellow-grained rice is: take about 50g of rice samples or sort out the yellow-grained rice according to the regulations while inspecting the broken rice. The basis for picking out is completely based on human eyes. Due to the defects of long detection time, strong subjectivity, low accuracy, poor operability and repeatability, and being easily affected by the environment, this method is difficult to meet the requirements of rapid, objective and high-accuracy quality detection in on-site rice purchases and market transactions. requirements.

针对上述问题本发明提出了基于L*a*b*颜色模型的黄粒米检测方法,将计算机图像处理技术引入稻谷质量评定,使检测技术准确、客观、可操作性强、自动化程度高。In view of the above problems, the present invention proposes a yellow-grained rice detection method based on the L * a * b * color model, and introduces computer image processing technology into rice quality evaluation, so that the detection technology is accurate, objective, operable, and highly automated.

发明内容 Contents of the invention

本发明提供了一种基于L*a*b*颜色模型的黄粒米自动识别的方法,其特征在于包括下列步骤:The invention provides a method for automatic identification of yellow-grained rice based on the L * a * b * color model, which is characterized in that it comprises the following steps:

获取米粒图像信息;Obtain the image information of rice grains;

分析米粒色度信息;Analyze the color information of rice grains;

识别黄粒米。Identify yellow grain rice.

所述获取米粒图像信息具体包括下列步骤:The described acquisition of rice grain image information specifically includes the following steps:

将一定数量的米样置于图像采集器中,采集原始图像信息;Place a certain number of rice samples in the image collector to collect the original image information;

读取原始图像信息,分割背景与米粒,并将背景色设置为与米粒颜色相区别的颜色。Read the original image information, segment the background and rice grains, and set the background color to a color that is different from the color of the rice grains.

所述米样数量为10-1000粒。The quantity of the rice sample is 10-1000 grains.

所述分割背景与米粒的方法为迭代法。The method for segmenting the background and rice grains is an iterative method.

所述迭代法具体包括下列步骤:The iterative method specifically includes the following steps:

求出图像中的最大和最小灰度值Z1和Zk,令阈值初值Tk=(Z1+Zk)/2;Calculate the maximum and minimum grayscale values Z 1 and Z k in the image, and set the threshold initial value T k =(Z 1 +Z k )/2;

根据阈值Tk将图像分割成目标和背景两部分,求出两部分的平均灰度值Z0、ZBAccording to the threshold T k, the image is divided into two parts, the target and the background, and the average gray value Z 0 and Z B of the two parts are calculated;

求出新阈值Tk+1=(Z0+ZB)/2;Calculate the new threshold T k+1 = (Z 0 +Z B )/2;

若Tk=Tk+1,则所得即为阈值,否则根据计算出的Tk值继续计算阈值,迭代计算。If T k =T k+1 , then the threshold value is obtained, otherwise, the threshold value is continuously calculated according to the calculated T k value, and the calculation is iterative.

所述分割背景与米粒时,背景颜色选择纯黑色即RGB(0,0,0)。When the background and rice grains are divided, the background color is pure black, ie RGB (0, 0, 0).

所述分析米粒色度信息的具体步骤包括:The concrete steps of described analysis rice grain chromaticity information comprise:

将原始RGB色度信息转化成L*a*b*色度信息,其中L*为明度指数,取值范围为0~100,a*为色品指数,表示颜色由深绿色到亮红色,取值范围为-120~120,b*为色品指数,表示颜色由亮蓝色到焦黄色,取值范围为-120~120;Convert the original RGB chromaticity information into L * a * b * chromaticity information, where L * is the lightness index, the value range is 0 to 100, and a * is the chromaticity index, indicating that the color is from dark green to bright red, taking The value range is -120~120, b * is the chromaticity index, which means the color is from bright blue to burnt yellow, and the value range is -120~120;

分析每粒大米中每个象素的L*a*b*色度信息,选L*a*b*色度信息中的b*作为分析黄粒米的特征色度值。Analyze the L * a * b * chromaticity information of each pixel in each grain of rice, and select b * in the L * a * b * chromaticity information as the characteristic chromaticity value for analyzing yellow-grained rice.

所述利用L*a*b*颜色模型中的特征色度值b*进行判定,由RGB颜色模型通过理想颜色模型XYZ向L*a*b*颜色模型的具体转化公式为:The characteristic chromaticity value b * in the L * a * b * color model is used to determine, and the specific conversion formula from the RGB color model to the L * a * b * color model through the ideal color model XYZ is:

X=0.4124f(R/255)+0.3576f(G/255)+0.1805f(B/255)X=0.4124f(R/255)+0.3576f(G/255)+0.1805f(B/255)

Y=0.2126f(R/255)+0.7152f(G/255)+0.0722f(B/255)Y=0.2126f(R/255)+0.7152f(G/255)+0.0722f(B/255)

Z=0.0193f(R/255)+0.1192f(G/255)+0.9505f(B/255)Z=0.0193f(R/255)+0.1192f(G/255)+0.9505f(B/255)

其中:R、G、B为所读取的米粒原始色度信息值,Among them: R, G, B are the original chromaticity information values of the rice grains read,

函数 f ( r ) = [ ( r + 0.055 ) / 1.055 ] 2.4 , r > 0.04045 r / 12.92 , r ≤ 0.04045 function f ( r ) = [ ( r + 0.055 ) / 1.055 ] 2.4 , r > 0.04045 r / 12.92 , r ≤ 0.04045

由理想XYZ颜色模型向L*a*b*颜色模型转化公式为:The conversion formula from ideal XYZ color model to L * a * b * color model is:

L*=116f(Y/Y0)-16L * =116f(Y/Y 0 )-16

a*=500[f(X/X0)-f(Y/Y0)]a * =500[f(X/X 0 )-f(Y/Y 0 )]

b*=200[f(Y/Y0)-f(Z/Z0)]b * =200[f(Y/Y 0 )-f(Z/Z 0 )]

ff (( zz )) == zz 11 // 33 ,, zz >> 0.0088560.008856 7.7877.787 zz ++ 1616 // 116116 ,, zz << 0.0088560.008856 ..

所述识别黄粒米的具体步骤包括:The concrete steps of described identifying yellow-grained rice comprise:

利用黄粒米检测软件设定判定黄粒米的色度阈值和面积阈值;Use the yellow-grained rice detection software to set the chromaticity threshold and area threshold for judging yellow-grained rice;

以L*a*b*颜色模型中b*为基础,结合色度阈值和面积阈值,判定每粒大米是否为黄粒米,将其边界画出,统计黄粒米率。Based on b * in the L * a * b * color model, combined with the chromaticity threshold and area threshold, determine whether each grain of rice is yellow-grained rice, draw its boundary, and count the rate of yellow-grained rice.

所述判断大米是否为黄粒米时,色度阈值和面积阈值由操作者根据不同的大米品种和生产地自行设置,其选择范围为色度阈值15~30;面积阈值5%~40%。When judging whether the rice is yellow-grained rice, the chromaticity threshold and the area threshold are set by the operator according to different rice varieties and production places, and the selection range is chromaticity threshold 15-30; area threshold 5%-40%.

本发明的有益效果为:利用计算机图像处理技术代替了GB/T 17891-1999《优质稻谷》规定的检测人员人眼判别法,可以快速、客观、准确地识别精米中的黄粒米,克服了现有技术方案中检测时间长、主观性强、准确性低、可操作性和重复性差等缺陷。满足了在稻谷现场收购和市场交易中对品质检测快速、客观、准确性高的要求。而且,根据本发明所述方法编制的计算机图像识别系统,还具有可同时完成垩白度、垩白粒率、整精米率、粒型和液态物质等多项指标的检测的功能,使执行国家标准中彼此相互独立的多项指标的检测,可以由一套系统一起完成,每次可最多检测1000粒大米,具有自动化程度高,操作快速、简便的特点。The beneficial effect of the present invention is: the use of computer image processing technology to replace the human eye discrimination method stipulated in GB/T 17891-1999 "High Quality Rice", can quickly, objectively and accurately identify the yellow rice in the polished rice, overcome the The existing technical solutions have defects such as long detection time, strong subjectivity, low accuracy, poor operability and repeatability. It meets the requirements of rapid, objective and accurate quality inspection in the on-site purchase of rice and market transactions. Moreover, the computer image recognition system compiled according to the method of the present invention also has the function of simultaneously completing the detection of multiple indicators such as chalkiness, chalkiness grain rate, polished rice rate, grain type and liquid substance, so that the implementation of national The detection of multiple indicators that are independent of each other in the standard can be completed by a set of systems, and a maximum of 1,000 grains of rice can be detected each time. It has the characteristics of high degree of automation, fast and easy operation.

附图说明 Description of drawings

图1是本发明的图像获取及处理装置连接示意图。Fig. 1 is a schematic diagram of the connection of the image acquisition and processing device of the present invention.

图中标号:Labels in the figure:

1-扫描仪;2-计算机;3-打印机。1-scanner; 2-computer; 3-printer.

具体实施方式 Detailed ways

下面结合附图对本发明作进一步说明:The present invention will be further described below in conjunction with accompanying drawing:

图1为本发明的图像获取及处理装置连接示意图,Fig. 1 is the connection diagram of image acquisition and processing device of the present invention,

1、利用计数板兼取样板从待测的大米批样中取约10~1000粒米样,置取样器于扫描仪1上,采集图像,存储为24位bmp格式文件。其中扫描仪1的亮度、对比度设为-15~25之间。1. Use the counting board and sampling board to take about 10 to 1000 grains of rice samples from the batch of rice samples to be tested, place the sampler on the scanner 1, collect images, and store them as 24-bit bmp format files. The brightness and contrast of the scanner 1 are set between -15 and 25.

2、在计算机2上利用黄粒米检测系统识别图像中的黄粒米,具体的是:2. Utilize the yellow-grained rice detection system to identify the yellow-grained rice in the image on the computer 2, specifically:

a)读取原始图像信息,存储每粒米粒中每个像素的色度信息,其原始色度信息为RGB颜色信息;a) read the original image information, store the chromaticity information of each pixel in each grain of rice, and its original chromaticity information is RGB color information;

b)利用迭代法分割背景和米粒,将背景设为纯黑色即RGB(0,0,0),b) Use the iterative method to segment the background and rice grains, and set the background to pure black, namely RGB (0, 0, 0),

迭代法的具体步骤是:The specific steps of the iterative method are:

(1)求出图像中的最大和最小灰度值Z1和Zk,令阈值初值Tk=(Z1+Zk)/2;(1) Calculate the maximum and minimum grayscale values Z 1 and Z k in the image, and set the threshold initial value T k = (Z 1 +Z k )/2;

(2)根据阈值Tk将图像分割成目标和背景两部分,求出两部分的平均灰度值Z0、ZB(2) Segment the image into two parts, target and background, according to the threshold T k , and calculate the average gray value Z 0 and Z B of the two parts;

(3)求出新阈值Tk+1=(Z0+ZB)/2;(3) Calculate the new threshold T k+1 = (Z 0 +Z B )/2;

(4)若Tk=Tk+1,则所得即为阈值,否则转(2),迭代计算;(4) If T k =T k+1 , the result is the threshold value, otherwise go to (2) for iterative calculation;

c)将米粒的RGB颜色信息转化成L*a*b*颜色信息,其中L*为明度指数,取值范围为0~100,a*为色品指数,表示颜色由深绿色到亮红色,取值范围为-120~120,b*为色品指数,表示颜色由亮蓝色到焦黄色,取值范围为-120~120;c) Convert the RGB color information of rice grains into L * a * b * color information, where L * is the lightness index, the value range is 0 to 100, and a * is the chromaticity index, indicating that the color is from dark green to bright red, The value range is -120~120, b * is the chromaticity index, which means the color is from bright blue to burnt yellow, and the value range is -120~120;

由RGB颜色模型通过理想颜色模型XYZ向L*a*b*颜色模型的具体转化公式为:The specific conversion formula from the RGB color model to the L * a * b * color model through the ideal color model XYZ is:

X=0.4124f(R/255)+0.3576f(G/255)+0.1805f(B/255)X=0.4124f(R/255)+0.3576f(G/255)+0.1805f(B/255)

Y=0.2126f(R/255)+0.7152f(G/255)+0.0722f(B/255)Y=0.2126f(R/255)+0.7152f(G/255)+0.0722f(B/255)

Z=0.0193f(R/255)+0.1192f(G/255)+0.9505f(B/255)Z=0.0193f(R/255)+0.1192f(G/255)+0.9505f(B/255)

其中:R、G、B为所读取的米粒原始色度信息值,Among them: R, G, B are the original chromaticity information values of the rice grains read,

函数 f ( r ) = [ ( r + 0.055 ) / 1.055 ] 2.4 , r > 0.04045 r / 12.92 , r &le; 0.04045 function f ( r ) = [ ( r + 0.055 ) / 1.055 ] 2.4 , r > 0.04045 r / 12.92 , r &le; 0.04045

由理想XYZ颜色模型向L*a*b*颜色模型转化公式为:The conversion formula from ideal XYZ color model to L * a * b * color model is:

L*=116f(Y/Y0)-16L * =116f(Y/Y 0 )-16

a*=500[f(X/X0)-f(Y/Y0)]a * =500[f(X/X 0 )-f(Y/Y 0 )]

b*=200[f(Y/Y0)-f(Z/Z0)]b * =200[f(Y/Y 0 )-f(Z/Z 0 )]

ff (( zz )) == zz 11 // 33 ,, zz >> 0.0088560.008856 7.7877.787 zz ++ 1616 // 116116 ,, zz << 0.0088560.008856 ;;

d)分析每粒米粒的L*a*b*色度信息,并选用色度值b*作为分析黄粒米的特征色度值;d) analyze the L * a * b * chromaticity information of every grain of rice, and select the chromaticity value b * as the characteristic chromaticity value of analyzing yellow-grained rice;

e)利用黄粒米检测软件设置色度阈值和面积阈值,阈值的设定由操作者根据被测米样的产地和品种设定,其选择范围为色度阈值15~30;面积阈值5%~40%;e) Use the yellow-grained rice detection software to set the chromaticity threshold and area threshold. The threshold setting is set by the operator according to the origin and variety of the rice sample to be tested. The selection range is chromaticity threshold 15-30; area threshold 5% ~40%;

f)以色度值b*为基础,结合色度阈值和面积阈值,判定每粒大米是否为黄粒米具体的判定原理为:当每粒大米中色度值b*大于色度阈值的像素超过面积阈值规定的值,则该粒大米为黄粒米。并用黄色线条画出该米粒的轮廓,同时统计黄粒米粒率;f) Based on the chromaticity value b * , combined with the chromaticity threshold and the area threshold, the specific judgment principle for judging whether each grain of rice is yellow-grained rice is: when the chromaticity value b * in each grain of rice is greater than the chromaticity threshold pixel If it exceeds the specified value of the area threshold, the grain of rice is yellow grain rice. And draw the outline of the rice grain with a yellow line, and count the yellow grain rice grain rate at the same time;

g)检测结果利用人机交互界面输出,若需要了解每粒大米的平均色度信息,或每粒米中每个像素色度信息,可通过检测界面的菜单项输入至EXCEL中进行查看;g) The detection result is output by the human-computer interaction interface. If you need to know the average chromaticity information of each grain of rice, or the chromaticity information of each pixel in each grain of rice, you can input it into EXCEL through the menu item of the detection interface for viewing;

h)在计算机2上将所得结果输出到打印机3,进行打印。h) Output the obtained result to the printer 3 on the computer 2 for printing.

以上所述的实施例,只是本发明较优选的具体实施方式,本领域的技术人员可以在所附权利要求的范围内做出各种修改。The embodiments described above are only preferred specific implementations of the present invention, and those skilled in the art can make various modifications within the scope of the appended claims.

Claims (10)

1.一种大米中黄粒米的自动识别方法,其特征在于包括下列步骤:1. an automatic identification method of yellow-grained rice in a kind of rice, it is characterized in that comprising the following steps: 获取米粒图像信息;Obtain the image information of rice grains; 分析米粒色度信息;Analyze the color information of rice grains; 识别黄粒米。Identify yellow grain rice. 2.根据权利要求1所述大米中黄粒米的自动识别方法,其特征在于,所述获取米粒图像信息具体包括下列步骤:2. according to the automatic identification method of yellow grain rice in the described rice of claim 1, it is characterized in that, described obtaining grain of rice image information specifically comprises the following steps: 将米样置于图像采集器中,采集原始图像信息;Place the rice sample in the image collector to collect the original image information; 读取原始图像信息,并将背景色设置为与米粒颜色相区别的颜色,分割背景与米粒。Read the original image information, set the background color to a color different from the color of the rice grains, and separate the background and the rice grains. 3.根据权利要求2所述大米中黄粒米的自动识别方法,其特征在于,所述米样数量为10-1000粒。3. according to the automatic identification method of yellow-grained rice in the described rice of claim 2, it is characterized in that, described rice sample quantity is 10-1000 grains. 4.根据权利要求2所述大米中黄粒米的自动识别方法,其特征在于,所述分割背景与米粒的方法为迭代法。4. according to the automatic recognition method of yellow grain rice in the described rice of claim 2, it is characterized in that, the method for described segmentation background and rice grain is an iterative method. 5.根据权利要求4所述大米中黄粒米的自动识别方法,其特征在于,所述迭代法具体包括下列步骤:5. according to the automatic identification method of yellow grain rice in the described rice of claim 4, it is characterized in that, described iterative method specifically comprises the following steps: 求出图像中的最大和最小灰度值Z1和Zk,令阈值初值Tk=(Z1+Zk)/2;Calculate the maximum and minimum grayscale values Z 1 and Z k in the image, and set the threshold initial value T k =(Z 1 +Z k )/2; 根据阈值Tk将图像分割成目标和背景两部分,求出两部分的平均灰度值Z0、ZBAccording to the threshold T k, the image is divided into two parts, the target and the background, and the average gray value Z 0 and Z B of the two parts are calculated; 求出新阈值Tk+1=(Z0+ZB)/2;Calculate the new threshold T k+1 = (Z 0 +Z B )/2; 若Tk=Tk+1,则所得即为阈值,否则根据计算出的Tk值继续计算阈值,迭代计算。If T k =T k+1 , then the threshold value is obtained, otherwise, the threshold value is continuously calculated according to the calculated T k value, and the calculation is iterative. 6.根据权利要求2所述的黄粒米自动识别的方法,其特征在于,所述分割背景与米粒时,背景颜色选择纯黑色即RGB(0,0,0)。6. The method for automatic identification of yellow-grained rice according to claim 2, characterized in that, when said segmenting the background and rice grains, the background color is selected pure black, i.e. RGB (0,0,0). 7.根据权利要求1所述大米中黄粒米的自动识别方法,其特征在于,所述分析米粒色度信息的具体步骤包括:7. according to the automatic identification method of yellow-grained rice in the described rice of claim 1, it is characterized in that, the concrete steps of described analysis rice grain chromaticity information comprise: 将原始RGB色度信息转化成L*a*b*色度信息,其中L*为明度指数,取值范围为0~100,a*为色品指数,表示颜色由深绿色到亮红色,取值范围为-120~120,b*为色品指数,表示颜色由亮蓝色到焦黄色,取值范围为-120~120;Convert the original RGB chromaticity information into L * a * b * chromaticity information, where L * is the lightness index, the value range is 0 to 100, and a * is the chromaticity index, indicating that the color is from dark green to bright red, taking The value range is -120~120, b * is the chromaticity index, which means the color is from bright blue to burnt yellow, and the value range is -120~120; 分析每粒大米中每个象素的L*a*b*色度信息,选L*a*b*色度信息中的b*作为分析黄粒米的特征色度值。Analyze the L * a * b * chromaticity information of each pixel in each grain of rice, and select b * in the L * a * b * chromaticity information as the characteristic chromaticity value for analyzing yellow-grained rice. 8.根据权利要求7所述大米中黄粒米的自动识别方法,其特征在于,所述利用L*a*b*颜色模型中的特征色度值b*进行判定,由RGB颜色模型通过理想颜色模型XYZ向L*a*b*颜色模型的具体转化公式为:8. according to the automatic identification method of yellow-grained rice in the described rice of claim 7, it is characterized in that, described utilizes the feature chromaticity value b * in the L * a * b * color model to judge, by RGB color model through ideal The specific conversion formula from color model XYZ to L * a * b * color model is: X=0.4124f(R/255)+0.3576f(G/255)+0.1805f(B/255)X=0.4124f(R/255)+0.3576f(G/255)+0.1805f(B/255) Y=0.2126f(R/255)+0.7152f(G/255)+0.0722f(B/255)Y=0.2126f(R/255)+0.7152f(G/255)+0.0722f(B/255) Z=0.0193f(R/255)+0.1192f(G/255)+0.9505f(B/255)Z=0.0193f(R/255)+0.1192f(G/255)+0.9505f(B/255) 其中:R、G、B为所读取的米粒原始色度信息值,Among them: R, G, B are the original chromaticity information values of the rice grains read, 函数 f ( r ) = [ ( r + 0.055 ) / 1.055 ] 2.4 , r > 0.04045 r / 12.92 , r &le; 0.04045 function f ( r ) = [ ( r + 0.055 ) / 1.055 ] 2.4 , r > 0.04045 r / 12.92 , r &le; 0.04045 由理想XYZ颜色模型向L*a*b*颜色模型转化公式为:The conversion formula from ideal XYZ color model to L * a * b * color model is: L*=116f(Y/Y0)-16L * =116f(Y/Y 0 )-16 a*=500[f(X/X0)-f(Y/Y0)]a * =500[f(X/X 0 )-f(Y/Y 0 )] b*=200[f(Y/Y0)-f(Z/Z0)]b * =200[f(Y/Y 0 )-f(Z/Z 0 )] ff (( zz )) == zz 11 // 33 ,, zz >> 0.0088560.008856 7.7877.787 zz ++ 1616 // 116116 ,, zz << 0.0088560.008856 .. 9.根据权利要求1所述大米中黄粒米的自动识别方法,其特征在于,所述识别黄粒米的具体步骤包括:9. according to the automatic identification method of yellow-grained rice in the described rice of claim 1, it is characterized in that, the concrete steps of described identification yellow-grained rice comprise: 利用黄粒米检测软件设定判定黄粒米的色度阈值和面积阈值;Use the yellow-grained rice detection software to set the chromaticity threshold and area threshold for judging yellow-grained rice; 以L*a*b*颜色模型中b*为基础,结合色度阈值和面积阈值,判定每粒大米是否为黄粒米,将其边界画出,统计黄粒米率。Based on b * in the L * a * b * color model, combined with the chromaticity threshold and area threshold, determine whether each grain of rice is yellow-grained rice, draw its boundary, and count the rate of yellow-grained rice. 10.根据权利要求9所述大米中黄粒米的自动识别方法,其特征在于所述判断大米是否为黄粒米时,色度阈值和面积阈值由操作者根据不同的大米品种和生产地自行设置,其选择范围为色度阈值15~30;面积阈值5%~40%。10. according to the automatic identification method of yellow-grained rice in the described rice of claim 9, it is characterized in that when said judging whether rice is yellow-grained rice, chromaticity threshold value and area threshold value are voluntarily determined by the operator according to different rice varieties and production places. Setting, the selection range is chroma threshold 15-30; area threshold 5%-40%.
CNA2008101120842A 2008-05-21 2008-05-21 A method for automatic identification of yellow-grained rice in rice Pending CN101271522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101120842A CN101271522A (en) 2008-05-21 2008-05-21 A method for automatic identification of yellow-grained rice in rice

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101120842A CN101271522A (en) 2008-05-21 2008-05-21 A method for automatic identification of yellow-grained rice in rice

Publications (1)

Publication Number Publication Date
CN101271522A true CN101271522A (en) 2008-09-24

Family

ID=40005484

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101120842A Pending CN101271522A (en) 2008-05-21 2008-05-21 A method for automatic identification of yellow-grained rice in rice

Country Status (1)

Country Link
CN (1) CN101271522A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102564993A (en) * 2011-12-31 2012-07-11 江南大学 Method for identifying rice varieties by using Fourier transform infrared spectrum and application of method
CN101788497B (en) * 2009-12-30 2013-05-29 深圳先进技术研究院 An Embedded Bean Classification System Based on Image Recognition Technology
CN103649993A (en) * 2011-06-29 2014-03-19 宝洁公司 System and method for inspecting components of hygienic articles
CN106881171A (en) * 2017-01-16 2017-06-23 国粮武汉科学研究设计院有限公司 A kind of method of the coproduction processing of rice with remained germ and many grade rice
CN108742663A (en) * 2018-04-03 2018-11-06 深圳蓝韵医学影像有限公司 Exposure dose evaluation method, device and computer readable storage medium
CN108885178A (en) * 2016-02-22 2018-11-23 株式会社佐竹 Granular appearance phase discrimination device
CN110009609A (en) * 2019-03-26 2019-07-12 江南大学 A kind of rapid detection method of yellow grain rice
CN110610183A (en) * 2018-06-15 2019-12-24 佛山市顺德区美的电热电器制造有限公司 Grain evaluation method, grain evaluation device, and storage medium
CN111435428A (en) * 2019-01-14 2020-07-21 珠海格力电器股份有限公司 Rice identification method and device based on chromaticity detection
CN111507148A (en) * 2019-12-31 2020-08-07 浙江苏泊尔家电制造有限公司 Control system and control method of rice storage device
CN111767772A (en) * 2019-11-12 2020-10-13 方勤 Customized sheep body purchasing platform, method and storage medium
CN111814808A (en) * 2020-07-17 2020-10-23 安徽萤瞳科技有限公司 Method for identifying yellowing materials for rice color sorting
CN112070741A (en) * 2020-09-07 2020-12-11 浙江师范大学 A rice chalkiness detection system based on image saliency region extraction method
CN113458013A (en) * 2021-05-13 2021-10-01 深圳市蓝际工业技术有限公司 Construction waste sorting system and method based on CCD detection and belt feeding
CN116503402A (en) * 2023-06-26 2023-07-28 中储粮成都储藏研究院有限公司 Method and device for detecting impurity content of grain shoulder

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788497B (en) * 2009-12-30 2013-05-29 深圳先进技术研究院 An Embedded Bean Classification System Based on Image Recognition Technology
CN103649993A (en) * 2011-06-29 2014-03-19 宝洁公司 System and method for inspecting components of hygienic articles
CN103649993B (en) * 2011-06-29 2016-05-11 宝洁公司 For the system and method for the article assembly that inspects the sanitary conditions
CN102564993A (en) * 2011-12-31 2012-07-11 江南大学 Method for identifying rice varieties by using Fourier transform infrared spectrum and application of method
CN102564993B (en) * 2011-12-31 2015-07-15 江南大学 Method for identifying rice varieties by using Fourier transform infrared spectrum and application of method
CN108885178A (en) * 2016-02-22 2018-11-23 株式会社佐竹 Granular appearance phase discrimination device
CN108885178B (en) * 2016-02-22 2021-12-10 株式会社佐竹 Granular object appearance phase discriminating device
CN106881171A (en) * 2017-01-16 2017-06-23 国粮武汉科学研究设计院有限公司 A kind of method of the coproduction processing of rice with remained germ and many grade rice
CN108742663A (en) * 2018-04-03 2018-11-06 深圳蓝韵医学影像有限公司 Exposure dose evaluation method, device and computer readable storage medium
CN110610183A (en) * 2018-06-15 2019-12-24 佛山市顺德区美的电热电器制造有限公司 Grain evaluation method, grain evaluation device, and storage medium
CN111435428A (en) * 2019-01-14 2020-07-21 珠海格力电器股份有限公司 Rice identification method and device based on chromaticity detection
CN111435428B (en) * 2019-01-14 2023-10-31 珠海格力电器股份有限公司 Rice identification method and device based on chromaticity detection
CN110009609B (en) * 2019-03-26 2021-03-30 江南大学 Method for rapidly detecting yellow rice
CN110009609A (en) * 2019-03-26 2019-07-12 江南大学 A kind of rapid detection method of yellow grain rice
CN111767772A (en) * 2019-11-12 2020-10-13 方勤 Customized sheep body purchasing platform, method and storage medium
CN111507148A (en) * 2019-12-31 2020-08-07 浙江苏泊尔家电制造有限公司 Control system and control method of rice storage device
CN111507148B (en) * 2019-12-31 2023-10-24 浙江苏泊尔家电制造有限公司 Control system and control method of rice storage device
CN111814808A (en) * 2020-07-17 2020-10-23 安徽萤瞳科技有限公司 Method for identifying yellowing materials for rice color sorting
CN112070741A (en) * 2020-09-07 2020-12-11 浙江师范大学 A rice chalkiness detection system based on image saliency region extraction method
CN112070741B (en) * 2020-09-07 2024-02-23 浙江师范大学 Rice chalkiness degree detecting system based on image salient region extracting method
CN113458013A (en) * 2021-05-13 2021-10-01 深圳市蓝际工业技术有限公司 Construction waste sorting system and method based on CCD detection and belt feeding
CN116503402A (en) * 2023-06-26 2023-07-28 中储粮成都储藏研究院有限公司 Method and device for detecting impurity content of grain shoulder
CN116503402B (en) * 2023-06-26 2023-09-08 中储粮成都储藏研究院有限公司 Method and device for detecting impurity content of grain shoulder

Similar Documents

Publication Publication Date Title
CN101271522A (en) A method for automatic identification of yellow-grained rice in rice
CN101701916B (en) Method for quickly identifying and distinguishing variety of corn
CN108564085B (en) A method of automatically reading the reading of a pointer-type meter
CN101275824A (en) A kind of method of rice grain shape detection
CN110782440B (en) Crop seed character measuring method
CN102288606B (en) Pollen viability measuring method based on machine vision
CN106529519A (en) Automatic number identification method and system of power pointer type instrument
CN108613989A (en) A kind of detection method of paddy unsound grain
CN114694144B (en) Intelligent identification and rating method for non-metallic inclusions in steel based on deep learning
CN111915572A (en) A deep learning-based self-adaptive gear pitting quantitative detection system and method
CN106971393A (en) The phenotype measuring method and system of a kind of corn kernel
CN103745239A (en) Forest resource measuring method based on satellite remote sensing technology
CN106483130B (en) A kind of detection method and its automatic detection device of rice disease
CN105466921A (en) Simultaneous detection method of many samples
CN102495068A (en) Method and system for detecting chalky rice on line
CN109030755A (en) The detection device and method of grain moisture content, mass of 1000 kernel and bulk density based on image processing techniques
CN113109240B (en) Method and system for determining imperfect grains of grains implemented by computer
CN110009609B (en) Method for rapidly detecting yellow rice
CN116883394A (en) Diamond quality detection method based on image data processing
CN102565044A (en) Method for detecting pesticide residue by adopting rapid-determination card on basis of image processing
CN105606610A (en) Bio-speckle technology based method for nondestructive detection of apple internal quality
CN116642841B (en) Wheat Shan Zi grain protein content detection and screening method based on imaging spectrum
CN117011269A (en) Quartz sand granularity automatic analysis system based on cloud platform
CN114708623B (en) A metal corrosion grade evaluation method based on image processing
CN116642827A (en) Large-scale fabric staining rating method and system based on hyperspectral imaging technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080924