CN105631874B - Utilize the method for image Segmentation Technology evaluation apple crisp slices browning degree - Google Patents
Utilize the method for image Segmentation Technology evaluation apple crisp slices browning degree Download PDFInfo
- Publication number
- CN105631874B CN105631874B CN201511001541.7A CN201511001541A CN105631874B CN 105631874 B CN105631874 B CN 105631874B CN 201511001541 A CN201511001541 A CN 201511001541A CN 105631874 B CN105631874 B CN 105631874B
- Authority
- CN
- China
- Prior art keywords
- apple
- value
- browning
- rgb
- tested
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30128—Food products
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
- Spectrometry And Color Measurement (AREA)
Abstract
本发明公开了一种利用图像分割技术评价苹果脆片褐变程度的方法,包括:采集样本苹果脆片的外表面的亮度值、红绿值和黄蓝值;将样本苹果脆片的亮度范围均分为3~7个区域,每个区域依据红绿值范围,分成3~7个色素块,每个色素块依据黄蓝值范围,分成3~7个子色素块,筛选出基准色素块,定义与基准色素块的RGB值之间的误差≤±20%的颜色区间为深度褐色区间;本发明运用颜色电子眼对苹果脆片的褐变程度进行判断,不仅可以避免主观臆断的评价,快速获得色泽评价结果,而且也可以避免采用化学方法时样品在预处理时发生氧化影响产品的真实褐变数据。
The invention discloses a method for evaluating the browning degree of apple chips by image segmentation technology, which comprises: collecting the brightness value, red-green value and yellow-blue value of the outer surface of sample apple chips; Divide into 3 to 7 areas on average, each area is divided into 3 to 7 pigment blocks according to the range of red and green values, each pigment block is divided into 3 to 7 sub-pigment blocks according to the range of yellow and blue values, and the reference pigment block is screened out. The color range whose error between the definition and the RGB value of the reference pigment block is ≤±20% is the deep brown range; the present invention uses color electronic eyes to judge the degree of browning of apple crisps, which can not only avoid subjective evaluation, but also quickly obtain Color evaluation results, and it can also avoid the actual browning data of the product affected by the oxidation of the sample during pretreatment when chemical methods are used.
Description
技术领域technical field
本发明涉及于食品检测技术领域,特别涉及一种利用图像分割技术评价苹果脆片褐变程度的方法。The invention relates to the technical field of food detection, in particular to a method for evaluating the browning degree of crisp apple chips by using image segmentation technology.
背景技术Background technique
苹果脆片既可能保持原有风味和营养成分,同时又具备口感酥脆、绿色天然,便于贮存等特点,满足了消费者对苹果脆片营养方便、天然低脂、高膳食纤维等需求。因此,苹果脆片在当今欧美等发达国家非常畅销,主要用作配餐食品、休闲食品、制作果珍果粉及速溶饮品等。然而在苹果脆片生产过程中,褐变问题制约苹果脆片加工产业的进一步发展,褐变反应不仅制约了苹果脆片商品的等级,对于苹果脆片产品的感官品质,风味和营养产生了严重影响,从而在很大程度上制约了苹果脆片加工产业的升值,给苹果脆片产业的发展带来一定的阻碍。由于苹果加工过程中不同品种间的褐变程度有所差别,因此在苹果品种选育,资源评价和工艺筛选工作中,衡量比较品种间和不同工艺条件过程中的褐变差异就显得很重要。Apple crisps can not only maintain the original flavor and nutritional content, but also have the characteristics of crisp taste, green and natural, and easy storage, which meets consumers' needs for apple crisps, which are nutritious and convenient, naturally low in fat, and high in dietary fiber. Therefore, apple chips are very popular in developed countries such as Europe and America, and are mainly used as catering food, snack food, making fruit powder and instant drinks. However, in the production process of apple crisps, the browning problem restricts the further development of the apple crisps processing industry. The browning reaction not only restricts the grade of apple crisps products, but also seriously affects the sensory quality, flavor and nutrition of apple crisps products. Influenced, thereby restricting the appreciation of the apple crisp processing industry to a large extent, and bringing certain obstacles to the development of the apple crisp industry. Due to the difference in the degree of browning among different varieties during apple processing, it is very important to measure and compare the browning differences between varieties and under different technological conditions in apple variety breeding, resource evaluation and process selection.
目前对褐变的评价方法主要有主观分级法、分光光度计法和分光测色计。主观分级法主要是通过人眼对产品表观色泽进行评价分类。这种评价方法不借助仪器,在一个统一标准的光源下放置标准参照物和产品,感官评价员根据参照物将产品根据不同褐变程度进行分级。例如苹果脆片根据褐变程度依次分为1、2、3、4级,较轻微的为1级,4级为褐变严重。分光光度计法则是将苹果脆片研磨后利用紫外分光光度计测定其420nm吸光度值(OD值),根据得到的OD值对苹果脆片褐变度进行评价,OD值越大说明苹果脆片褐变程度越大。分光光度色差计相较于传统的主观评价法和分光光度计,可以通过接触式或非接触式两种检测模式获得苹果脆片L*a*b*值进行测定,实现快速无损检测产品。At present, the evaluation methods for browning mainly include subjective grading method, spectrophotometer method and spectrophotometer. The subjective grading method is mainly to evaluate and classify the apparent color of the product through human eyes. This evaluation method does not rely on instruments, and places standard reference objects and products under a uniform standard light source. Sensory evaluators grade products according to different degrees of browning according to the reference objects. For example, apple chips are divided into grades 1, 2, 3, and 4 according to the degree of browning, with grade 1 being milder and grade 4 being severe browning. The spectrophotometer method is to measure the 420nm absorbance value (OD value) of the apple chips after being ground by a UV spectrophotometer, and evaluate the browning degree of the apple chips according to the obtained OD value. The larger the OD value, the browner the apple chips. The greater the degree of change. Compared with the traditional subjective evaluation method and spectrophotometer, the spectrophotometric color difference meter can obtain the L*a*b* value of apple chips through two detection modes of contact or non-contact for measurement, and realize rapid non-destructive testing of products.
以上三种方法均存在一些缺陷。主观评价法中对评价员素质要求高,评价员需要进行培训后才可以参与评价,且由于每个人经验和阅历不同,所以评价结果也会因人而异,很难获得统一的结果,因此缺乏客观公正和可重复性。分光光度色差计的评价过程中,需要对处理好的苹果脆片进行研磨,即使在冰浴条件下研磨也会使样品与空气接触,无法避免发生氧化导致褐变,造成实验结果不准确,实验结果重复率低,影响对苹果脆片褐变程度的准确评估。分光光度色差计可以实现无损检测苹果脆片表观色泽,并且快速获得L*a*b*值和吸收光谱,但是分光光度色差计仅能获得物料取样局部面积的平均值,物料形状也有一定限制,很难全面反应样品表观色泽分布和不同褐变程度比例。There are some defects in the above three methods. In the subjective evaluation method, the quality requirements of the evaluators are high, and the evaluators need to be trained before they can participate in the evaluation, and because each person has different experience and experience, the evaluation results will also vary from person to person, and it is difficult to obtain a unified result, so there is a lack of Objectivity and repeatability. During the evaluation process of the spectrophotometric colorimeter, it is necessary to grind the processed apple chips. Even if the grinding is done in an ice bath, the sample will be in contact with the air, which cannot avoid oxidation and browning, resulting in inaccurate experimental results. The repeatability of the results was low, which affected the accurate assessment of the degree of browning of apple crisps. The spectrophotometric color difference meter can realize the non-destructive detection of the apparent color of apple chips, and quickly obtain the L*a*b* value and absorption spectrum, but the spectrophotometric color difference meter can only obtain the average value of the sampled local area of the material, and the shape of the material is also limited , it is difficult to fully reflect the apparent color distribution of the sample and the proportion of different browning degrees.
发明内容Contents of the invention
本发明的一个目的是解决至少上述问题,并提供至少后面将说明的优点。It is an object of the present invention to solve at least the above-mentioned problems and to provide at least the advantages which will be described later.
本发明还有一个目的是提供一种利用图像分割技术评价苹果脆片褐变程度的方法,其以精密电子眼为工具,采集苹果脆片图像后,分析所得图像以对苹果脆片褐变程度进行综合评价。Another object of the present invention is to provide a method for evaluating the degree of browning of apple crisps using image segmentation technology. It uses a precision electronic eye as a tool to collect images of apple crisps and analyze the resulting images to evaluate the degree of browning of apple crisps. Overview.
为了实现根据本发明的这些目的和其它优点,提供了一种利用图像分割技术评价苹果脆片褐变程度的方法,包括:In order to realize these purposes and other advantages according to the present invention, a kind of method utilizing image segmentation technology to evaluate the degree of browning of apple chips is provided, comprising:
步骤一、制备多片样本苹果脆片,采集样本苹果脆片的外表面的亮度值、红绿值和黄蓝值;Step 1, preparing a plurality of sample apple crisps, collecting the brightness value, red-green value and yellow-blue value of the outer surface of the sample apple crisps;
步骤二、在所有样本苹果脆片的亮度值中,筛选出最大值和最小值,根据样本苹果脆片的最大亮度值和最小亮度值,组成一亮度范围,将亮度范围均分为3~7个区域,在每个区域中,根据该区域中红绿值的范围,将该区域均分成3~7个色素块,根据每个色素块中的黄蓝值的范围,将该色素块均分成3~7个子色素块,筛选出累计贡献率≥85%的子色素块,组成标准色素块,筛选出RGB值最大标准色素块,作为基准色素块,定义与基准色素块的RGB值之间的误差±≤20%的颜色区间为深度褐色区间;Step 2: Screen out the maximum and minimum values from the brightness values of all sample apple crisps, form a brightness range according to the maximum brightness value and the minimum brightness value of the sample apple chips, and divide the brightness range into 3-7 In each area, according to the range of red and green values in the area, the area is divided into 3 to 7 pigment blocks, and according to the range of yellow and blue values in each pigment block, the pigment block is evenly divided into 3 to 7 sub-pigment blocks, screen out the sub-pigment blocks with a cumulative contribution rate ≥ 85%, form a standard pigment block, screen out the standard pigment block with the largest RGB value, and use it as a reference pigment block to define the distance between the RGB value of the reference pigment block The color interval with error ±≤20% is the deep brown interval;
步骤三、采集待测苹果脆片表面的RGB值,得到多个待测RGB值,将待测RGB值与深度褐色区间的RGB值比对,Step 3: collect the RGB values on the surface of the apple chips to be tested, obtain multiple RGB values to be tested, compare the RGB values to be tested with the RGB values in the deep brown range,
若位于深度褐变区间的待测RGB所对应的面积≤待测苹果脆片的面积的5%,则判断待测苹果脆片为轻度褐变;If the area corresponding to the RGB to be tested in the deep browning interval≤5% of the area of the apple crisp to be tested, it is judged that the apple crisp to be tested is mild browning;
若位于深度褐变区间的待测RGB所对应的面积,占待测苹果脆片的面积的5%~15%,则判断待测苹果脆片为中度褐变;If the area corresponding to the RGB to be measured in the deep browning interval accounts for 5% to 15% of the area of the apple crisps to be tested, it is judged that the apple crisps to be tested are moderately browned;
若位于深度褐变区间的待测RGB所对应的面积≥待测苹果脆片的面积的15%,则判断待测苹果脆片为重度褐变。If the area corresponding to the RGB to be tested located in the deep browning interval is greater than or equal to 15% of the area of the apple crisps to be tested, it is determined that the apple crisps to be tested are severely browned.
优选的是,所述的利用图像分割技术评价苹果脆片褐变程度的方法中,所述步骤一中,制备多片样本苹果脆片,具体为:依据苹果原料的形状,将苹果切分成厚度为3~15mm的片状的苹果片。Preferably, in the method for evaluating the degree of browning of apple crisps using image segmentation technology, in the first step, preparing multiple sample apple crisps, specifically: according to the shape of the apple raw material, the apples are cut into thicknesses It is sliced apple slices of 3-15mm.
优选的是,所述的利用图像分割技术评价苹果脆片褐变程度的方法中,所述步骤一中,苹果片通过热风干燥、真空干燥、真空油炸干燥、微波干燥、真空冷冻干燥或变温压差膨化干燥,使其含水量≤7%,得到样本苹果脆片。Preferably, in the method for evaluating the degree of browning of crisp apple slices using image segmentation technology, in the first step, the apple slices are dried by hot air, vacuum drying, vacuum frying, microwave drying, vacuum freeze drying or variable temperature. Pressure difference puffing and drying to make the water content ≤ 7%, to obtain sample apple crisps.
优选的是,所述的利用图像分割技术评价苹果脆片褐变程度的方法中,所述步骤一中,苹果片在温度为50~190℃条件下干燥处理至含水量≤7%,得到样本苹果脆片。Preferably, in the method for evaluating the browning degree of crisp apple slices using image segmentation technology, in the first step, the apple slices are dried at a temperature of 50-190°C until the water content is ≤7%, and the sample is obtained Apple crisp.
优选的是,所述的利用图像分割技术评价苹果脆片褐变程度的方法中,所述步骤一中,采用颜色电子眼采集样本苹果脆片的外表面的亮度值、红绿值和黄蓝值。Preferably, in the method for evaluating the degree of browning of apple chips using image segmentation technology, in the first step, color electronic eyes are used to collect the brightness value, red-green value and yellow-blue value of the outer surface of the sample apple chips .
优选的是,所述的利用图像分割技术评价苹果脆片褐变程度的方法中,所述步骤二中,在所有样本苹果脆片的亮度值中,筛选出最大值和最小值,根据样本苹果脆片的最大亮度值和最小亮度值,组成一亮度范围,将亮度范围均分为5个区域。Preferably, in the method for evaluating the degree of browning of apple chips using image segmentation technology, in the second step, among the brightness values of all sample apple chips, the maximum value and the minimum value are screened out, according to the brightness value of the sample apple chips. The maximum luminance value and the minimum luminance value of the chips form a luminance range, and the luminance range is equally divided into 5 regions.
优选的是,所述的利用图像分割技术评价苹果脆片褐变程度的方法中,所述步骤三中,干燥待测苹果脆片至其含水量≤7%,采集待测苹果脆片的表面的RGB值。Preferably, in the method for evaluating the degree of browning of apple crisps using image segmentation technology, in the third step, the apple crisps to be tested are dried until their water content is ≤ 7%, and the surface of the apple crisps to be tested is collected. RGB value.
优选的是,所述的利用图像分割技术评价苹果脆片褐变程度的方法中,所述步骤三中,用颜色电子眼采集待测苹果脆片的表面的RGB值。Preferably, in the method for evaluating the degree of browning of apple chips using image segmentation technology, in the third step, color electronic eyes are used to collect the RGB values of the surface of the apple chips to be tested.
优选的是,所述的利用图像分割技术评价苹果脆片褐变程度的方法中,所述步骤三中,待测RGB值与深度褐色区间的RGB值比对,具体为:Preferably, in the method for evaluating the degree of browning of apple chips using image segmentation technology, in the step 3, the RGB value to be measured is compared with the RGB value of the deep brown interval, specifically:
计算待测RGB与深度褐色区间中的所有RGB值的误差,若深度褐色区间中存在一RGB值与待测RGB值的误差≤±20%,则判断该待测RGB值位于深度褐色区间;Calculate the error of all RGB values in the RGB to be measured and the depth brown interval, if there is an error between the RGB value and the RGB value to be measured in the depth brown interval ≤ ± 20%, then it is judged that the RGB value to be measured is located in the depth brown interval;
若深度褐色区间中不存在与待测RGB值的误差≤±20%的RGB值,则判断该待测RGB值不位于深度褐色区间。If there is no RGB value whose error with the RGB value to be measured is ≤±20% in the deep brown interval, it is determined that the RGB value to be measured is not located in the deep brown interval.
本发明至少包括以下有益效果:本发明中利用颜色电子眼建立的统一的客观的评价评价苹果脆片褐变度参考标准,使得检测苹果脆片更加准确;利用颜色电子眼可以及时地对苹果脆片褐变程度进行评价和分级,可以避免在制备样品和测量过程中造成进一步误差;利用颜色电子眼可以获得苹果脆片褐变程度比例,准确定量干燥苹果脆片的褐变程度。The present invention at least includes the following beneficial effects: In the present invention, the unified and objective reference standard for evaluating the browning degree of apple crisps established by using color electronic eyes makes the detection of apple crisps more accurate; the use of color electronic eyes can timely brown apple crisps Evaluation and grading of the degree of browning can avoid further errors in the process of sample preparation and measurement; the browning degree ratio of apple crisps can be obtained by using the color electronic eye, and the browning degree of dried apple crisps can be accurately quantified.
同时本发明使用的颜色电子眼市场有售,操作程序简单。此发明可以为科研工作和食品加工业的人员提供迅速的评价苹果脆片褐变程度的方法,同时也可以为褐变分级提供可靠的数据支持。At the same time, the color electronic eye used in the present invention is available in the market, and the operation procedure is simple. The invention can provide a rapid method for evaluating the browning degree of apple chips for scientific research and food processing personnel, and can also provide reliable data support for browning grading.
本发明的其它优点、目标和特征将部分通过下面的说明体现,部分还将通过对本发明的研究和实践而为本领域的技术人员所理解Other advantages, objectives and features of the present invention will partly be embodied through the following descriptions, and partly will also be understood by those skilled in the art through research and practice of the present invention
附图说明Description of drawings
图1为本发明流程图。Fig. 1 is the flow chart of the present invention.
图2为本发明实施例2中采用普通照相设备采集的鲜样本苹果片的图像。Fig. 2 is the image of the fresh sample apple slice that adopts common photographic equipment to collect in the embodiment 2 of the present invention.
图3为本发明实施例2中采用普通照相设备采集的样本苹果脆片的图像。Fig. 3 is the image of sample apple crisps collected by common photographic equipment in Example 2 of the present invention.
图4为本发明实施例2中采用颜色电子采集的鲜样本苹果片的图像。Fig. 4 is an image of fresh sample apple slices collected by color electronics in Example 2 of the present invention.
图5为本发明实施例2中采用颜色电子采集的样本苹果脆片的图像。Fig. 5 is an image of a sample apple crisp collected by color electronics in Example 2 of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明做进一步的详细说明,以令本领域技术人员参照说明书文字能够据以实施。The present invention will be further described in detail below in conjunction with the accompanying drawings, so that those skilled in the art can implement it with reference to the description.
应当理解,本文所使用的诸如“具有”、“包含”以及“包括”术语并不配出一个或多个其它元件或其组合的存在或添加。It should be understood that terms such as "having", "comprising" and "including" as used herein do not entail the presence or addition of one or more other elements or combinations thereof.
如图1所示,本发明提供一种利用图像分割技术评价苹果脆片褐变程度的方法,包括:As shown in Figure 1, the present invention provides a kind of method utilizing image segmentation technology to evaluate the degree of browning of apple chips, comprising:
步骤一、制备多片样本苹果脆片,采集样本苹果脆片的外表面的亮度值、红绿值和黄蓝值;Step 1, preparing a plurality of sample apple crisps, collecting the brightness value, red-green value and yellow-blue value of the outer surface of the sample apple crisps;
步骤二、在所有样本苹果脆片的亮度值中,筛选出最大值和最小值,根据样本苹果脆片的最大亮度值和最小亮度值,组成一亮度范围,将亮度范围均分为3~7个区域,在每个区域中,根据该区域中红绿值的范围,将该区域均分成3~7个色素块,根据每个色素块中的黄蓝值的范围,将该色素块均分成3~7个子色素块,筛选出累计贡献率≥85%的子色素块,组成标准色素块,筛选出RGB值最大标准色素块,作为基准色素块,定义与基准色素块的RGB值之间的误差≤±20%的颜色区间为深度褐色区间;Step 2: Screen out the maximum and minimum values from the brightness values of all sample apple crisps, form a brightness range according to the maximum brightness value and the minimum brightness value of the sample apple chips, and divide the brightness range into 3-7 In each area, according to the range of red and green values in the area, the area is divided into 3 to 7 pigment blocks, and according to the range of yellow and blue values in each pigment block, the pigment block is evenly divided into 3 to 7 sub-pigment blocks, screen out the sub-pigment blocks with a cumulative contribution rate ≥ 85%, form a standard pigment block, screen out the standard pigment block with the largest RGB value, and use it as a reference pigment block to define the distance between the RGB value of the reference pigment block The color interval with error ≤±20% is the deep brown interval;
步骤三、采集待测苹果脆片表面的RGB值,得到多个待测RGB值,将待测RGB值与深度褐色区间的RGB值比对,Step 3: collect the RGB values on the surface of the apple chips to be tested, obtain multiple RGB values to be tested, compare the RGB values to be tested with the RGB values in the deep brown range,
若位于深度褐变区间的待测RGB所对应的面积≤待测苹果脆片的面积的5%,则判断待测苹果脆片为轻度褐变;If the area corresponding to the RGB to be tested in the deep browning interval≤5% of the area of the apple crisp to be tested, it is judged that the apple crisp to be tested is mild browning;
若位于深度褐变区间的待测RGB所对应的面积,占待测苹果脆片的面积的5%~15%,则判断待测苹果脆片为中度褐变;If the area corresponding to the RGB to be measured in the deep browning interval accounts for 5% to 15% of the area of the apple crisps to be tested, it is judged that the apple crisps to be tested are moderately browned;
若位于深度褐变区间的待测RGB所对应的面积≥待测苹果脆片的面积的15%,则判断待测苹果脆片为重度褐变。If the area corresponding to the RGB to be tested located in the deep browning interval is greater than or equal to 15% of the area of the apple crisps to be tested, it is determined that the apple crisps to be tested are severely browned.
在一种实施方式中,在步骤一中,制备多片样本苹果脆片,具体为:依据苹果原料的形状,将苹果切分成厚度为3~15mm的片状的苹果片。In one embodiment, in step 1, preparing multiple pieces of sample apple crisps specifically includes: cutting the apples into sliced apple slices with a thickness of 3-15 mm according to the shape of the raw material of the apples.
在一种实施方式中,在步骤一中,苹果片通过热风干燥、真空干燥、真空油炸干燥、微波干燥、真空冷冻干燥或变温压差膨化干燥,使其含水量≤7%,得到样本苹果脆片。In one embodiment, in step 1, the apple slices are dried by hot air, vacuum drying, vacuum frying, microwave drying, vacuum freeze drying or variable temperature and pressure difference puffing to make the water content ≤ 7%, and the sample apples are obtained Crisp.
在一种实施方式中,在步骤一中,苹果片在温度为50~190℃条件下干燥处理至含水量≤7%,得到样本苹果脆片。In one embodiment, in step 1, the apple slices are dried at a temperature of 50-190° C. to a water content of ≤7%, to obtain sample apple crisps.
在一种实施方式中,在步骤一中,采用颜色电子眼采集样本苹果脆片的外表面的亮度值、红绿值和黄蓝值。In one embodiment, in step 1, color electronic eyes are used to collect the brightness value, red-green value and yellow-blue value of the outer surface of the sample apple crisp.
在一种实施方式中,在步骤二中,在所有样本苹果脆片的亮度值中,筛选出最大值和最小值,根据样本苹果脆片的最大亮度值和最小亮度值,组成一亮度范围,将亮度范围均分为5个区域。In one embodiment, in step 2, the maximum and minimum values are screened out from the brightness values of all sample apple crisps, and a brightness range is formed according to the maximum brightness value and the minimum brightness value of the sample apple crisps, Divide the brightness range equally into 5 zones.
在一种实施方式中,在步骤三中,干燥待测苹果脆片至其含水量≤7%,采集待测苹果脆片的表面的RGB值。In one embodiment, in step 3, the apple crisps to be tested are dried until their moisture content is ≤7%, and the RGB values of the surface of the apple crisps to be tested are collected.
在一种实施方式中,在步骤三中,用颜色电子眼采集待测苹果脆片的表面的RGB值。In one embodiment, in step 3, color electronic eyes are used to collect the RGB values of the surface of the apple chips to be tested.
在一种实施方式中,在步骤三中,待测RGB值与深度褐色区间的RGB值比对,具体为:In one embodiment, in step 3, the RGB value to be measured is compared with the RGB value in the deep brown interval, specifically:
计算待测RGB与深度褐色区间中的所有RGB值的误差,若深度褐色区间中存在一RGB值与待测RGB值的误差≤±20%,则判断该待测RGB值位于深度褐色区间;Calculate the error of all RGB values in the RGB to be measured and the depth brown interval, if there is an error between the RGB value and the RGB value to be measured in the depth brown interval ≤ ± 20%, then it is judged that the RGB value to be measured is located in the depth brown interval;
若深度褐色区间中不存在与待测RGB值的误差≤±20%的RGB值,则判断该待测RGB值不位于深度褐色区间。If there is no RGB value whose error with the RGB value to be measured is ≤±20% in the deep brown interval, it is determined that the RGB value to be measured is not located in the deep brown interval.
为了使本领域技术人员更加清楚的理解本发明的公开的技术,现结合实施例加以说明。In order to make those skilled in the art understand the disclosed technology of the present invention more clearly, it will now be described in conjunction with embodiments.
实施例1、Embodiment 1,
电子眼型号:V270,生产厂家:美国Hunterlab公司,Digieye颜色电子眼。Electronic eye model: V270, manufacturer: American Hunterlab company, Digieye color electronic eye.
随机选取富士、青龙、玉霰、斯塔克矮金、卡蒂纳和瑞林6个品种苹果为试材,每品系取6个大小均匀无病虫害的苹果,作为制备样本苹果脆片的原料,采用脉动压差闪蒸干燥,制备得到样本苹果脆片。Six varieties of apples, namely Fuji, Qinglong, Yushang, Stark's Short Gold, Katina and Ruilin, were randomly selected as test materials, and 6 apples with uniform size and no pests and diseases were taken from each variety as raw materials for preparing sample apple chips. The sample apple crisps were prepared by flash drying with pulsating pressure difference.
颜色电子眼测定:开启灯箱,相机和电脑,进行标准白板校正,校正完成后进行彩卡进行校正,校正完成后,进行光源选择,选择漫反射D65光源,进行开机预热10min,将样品放置在工作白板上,开始相机样品图像采集,当样品图像显示后,通过图像分析处理软件CIE L*a*b*获取制备样本苹果脆片L*(亮度值)、a*(红绿值)和b*(黄蓝值)等颜色评价指标。Color electronic eye measurement: Turn on the light box, camera and computer, and perform standard whiteboard calibration. After the calibration is completed, perform color card calibration. After the calibration is completed, select the light source, select the diffuse reflection D65 light source, and warm up for 10 minutes. Place the sample in the working room. On the whiteboard, start the camera sample image acquisition, when the sample image is displayed, obtain the prepared sample apple crisp L* (brightness value), a* (red and green value) and b* through the image analysis and processing software CIE L*a*b* (yellow blue value) and other color evaluation indicators.
图像分割:根据所有样本苹果脆片L*值的取值范围,将其分成5个区域(45-54,54-63,63-72,72-81,81-90),每个区域,在依据a*值进行5等分,得到5个色素块,每个色素块依据b*值进行5等分,得到5子色素块,筛选累计贡献率≥85%的子色素块,本实施例中有五个子色素块为累计贡献率≥85%,将这五个子色素块设定为标准色素块,筛选出RGB值最大标准色素块,作为基准色素块,定义与基准色素块的RGB值之间的误差≤±20%的颜色区间为深度褐色区间。Image segmentation: According to the range of L* values of all sample apple chips, it is divided into 5 regions (45-54, 54-63, 63-72, 72-81, 81-90), each region, in Carry out 5 equal divisions according to the a* value to obtain 5 pigment blocks, and each pigment block is divided into 5 equal parts according to the b* value to obtain 5 sub-pigment blocks, and screen the sub-pigment blocks with a cumulative contribution rate ≥ 85%. In this embodiment There are five sub-pigment blocks whose cumulative contribution rate is ≥85%, and these five sub-pigment blocks are set as standard pigment blocks, and the standard pigment block with the largest RGB value is screened out as the reference color block, and the difference between the RGB value of the reference color block and the reference color block is defined. The color interval with an error of ≤±20% is the deep brown interval.
再随机重新选取富士、青龙、玉霰、斯塔克矮金、卡蒂纳和瑞林6个品种苹果为试材,制备得到样本苹果脆片;将制备得到待测苹果脆片置于颜色电子眼中,图像选中,利用滤镜去除背景,采集待测苹果脆片的RGB值,通过图像分割处理和图像识别技术获得苹果脆片褐变比例,可以有效对苹果脆片褐变程度做出综合评价。Then randomly reselect 6 varieties of apples, Fuji, Qinglong, Yushang, Stark Aujin, Katina and Ruilin as test materials to prepare sample apple crisps; put the prepared apple crisps to be tested in the color electronic In the eyes, the image is selected, the background is removed by using a filter, the RGB value of the apple chips to be tested is collected, and the browning ratio of the apple chips is obtained through image segmentation processing and image recognition technology, which can effectively make a comprehensive evaluation of the browning degree of the apple chips .
表1为待测苹果脆片颜色电子眼结果Table 1 shows the results of the electronic eye for the color of apple chips to be tested
由表1可知,色差值△E最大的是卡蒂纳苹果,其位于深度褐色区间的待测RGB值所对应的面积比例占待测整个苹果脆片面积的40.06%。青龙色差值虽然不是最大的,但是其深度褐色比例却是是最大的,故而色差值并不能真实反映苹果脆片褐变程度,深度褐色区域更能较好体现苹果表观脆片程度。色差值较小的为富士和玉霰,其待测RGB值所对应的面积比例分别占待测苹果脆片面积的4.73%和10.57%,相较于其它几个品种褐变程度较低。与感官评价方法和分光色差计相比,利用本发明提供的方法评价苹果脆片表观色泽褐变程度更加精确,误差小,避免了人为评价造成的主观差异,且操作方便,易于分级。It can be seen from Table 1 that the Catina apple has the largest color difference value △E, and its area ratio corresponding to the RGB value to be tested in the deep brown range accounts for 40.06% of the area of the entire apple crisp to be tested. Although the color difference value of Qinglong is not the largest, its deep brown ratio is the largest. Therefore, the color difference value cannot truly reflect the browning degree of apple crisps, and the deep brown area can better reflect the apparent crispness of apple chips. The ones with smaller color difference values are Fuji and Yugrain. The area proportions corresponding to the measured RGB values account for 4.73% and 10.57% of the area of the tested apple chips respectively, and the browning degree is lower than that of other varieties. Compared with sensory evaluation methods and spectrocolorimeters, the method provided by the invention is more accurate in evaluating the browning degree of the apparent color of apple crisps, with small errors, avoids subjective differences caused by human evaluation, and is convenient to operate and easy to grade.
实施例2、Embodiment 2,
随机选取富士苹果为试材,取6个大小均匀无病虫害的苹果。实验以热风-脉动压差闪蒸不同干燥阶段对苹果脆片进行测定。Randomly select Fuji apples as test materials, and take 6 apples with uniform size and no pests and diseases. In the experiment, different drying stages of the hot air-pulsating pressure difference flash were used to test the apple crisps.
将苹果清洗后去皮去核,切成厚度为5mm圆片,平铺于托盘上,在热风干燥温度为70℃至苹果片湿基含水率为30%左右,置于4℃条件下均湿12小时,置于闪蒸罐中闪蒸温度为95℃,闪蒸次数为5次,抽空温度为70℃,抽空时间为1小时苹果脆片干燥阶段取样点分别为鲜样,预干燥结束后,均湿后,脉动压差闪蒸干燥结束,得到样本苹果脆片。Wash the apples, peel and core them, cut them into 5mm-thick discs, lay them flat on a tray, dry them with hot air at a temperature of 70°C until the moisture content of the apple slices is about 30%, and place them at 4°C 12 hours, placed in a flash tank, the flash temperature is 95°C, the number of flashes is 5 times, the evacuation temperature is 70°C, and the evacuation time is 1 hour. The sampling points during the drying stage of apple chips are fresh samples, and after the pre-drying is completed , after equalization, the pulsating pressure difference flash drying ends, and the sample apple crisps are obtained.
用颜色电子眼测定:开启灯箱,相机和电脑。进行标准白板校正,校正完成后进行彩卡进行校正,校正完成后,进行光源选择,选择漫反射D65光源,进行开机预热10min。将样品放置在工作白板上,开始相机样品图像采集。当样品图像显示后,通过图像分析处理软件获得CIEL*a*b*等颜色评价指标。Determination with color electronic eyes: Turn on the light box, camera and computer. Carry out standard white board calibration. After the calibration is completed, use the color card for calibration. After the calibration is completed, select the light source, select the diffuse reflection D65 light source, and start the machine to warm up for 10 minutes. Place the sample on the working whiteboard and start the camera sample image acquisition. After the sample image is displayed, color evaluation indicators such as CIEL*a*b* are obtained through image analysis and processing software.
图像分割:根据所有样本苹果脆片L*值的取值范围,将其分成5个区域(45-54,54-63,63-72,72-81,81-90),每个区域,在依据a*值进行5等分,得到5个色素块,每个色素块依据b*值进行5等分,得到5子色素块,筛选累计贡献率≥85%的子色素块,本实施例中有五个子色素块为累计贡献率≥85%,将这五个子色素块设定为标准色素块,筛选出RGB值最大标准色素块,作为基准色素块,定义与基准色素块的RGB值之间的误差≤±20%的颜色区间为深度褐色区间。Image segmentation: According to the range of L* values of all sample apple chips, it is divided into 5 regions (45-54, 54-63, 63-72, 72-81, 81-90), each region, in Carry out 5 equal divisions according to the a* value to obtain 5 pigment blocks, and each pigment block is divided into 5 equal parts according to the b* value to obtain 5 sub-pigment blocks, and screen the sub-pigment blocks with a cumulative contribution rate ≥ 85%. In this embodiment There are five sub-pigment blocks whose cumulative contribution rate is ≥85%, and these five sub-pigment blocks are set as standard pigment blocks, and the standard pigment block with the largest RGB value is screened out as the reference color block, and the difference between the RGB value of the reference color block and the reference color block is defined. The color interval with an error of ≤±20% is the deep brown interval.
再随机重新选取富士为试材,制备得到样本苹果脆片;将制备得到待测苹果脆片置于颜色电子眼中,图像选中,利用滤镜去除背景,采集待测苹果脆片的RGB值,通过图像分割处理和图像识别技术获得苹果脆片褐变比例,可以有效对苹果脆片褐变程度做出综合评价。Then randomly re-select Fuji as the test material to prepare the sample apple crisps; place the prepared apple crisps in the color electronic eye, select the image, use the filter to remove the background, collect the RGB value of the apple crisps to be tested, and pass Image segmentation processing and image recognition technology can obtain the browning ratio of apple chips, which can effectively make a comprehensive evaluation of the browning degree of apple chips.
表2为待测富士苹果脆片的颜色电子眼结果Table 2 shows the color electronic eye results of Fuji apple chips to be tested
图2和图3为普通照相设备拍摄的图片,图2为新鲜样本苹果片的图像,图3为样本苹果脆片的图像,均湿过程中苹果脆片色差值变化最大,脉动压差闪蒸干燥阶段苹果表面褐变发生最明显,所以色差值△E不能很好反应苹果脆片过程中颜色变化;由图4为颜色电子眼采集的新鲜样本苹果片,图5为颜色电子眼采集的样本苹果脆片的图像,其能清楚的采集样本苹果脆片的色差。Figure 2 and Figure 3 are pictures taken by ordinary photographic equipment. Figure 2 is the image of fresh sample apple slices, and Figure 3 is the image of sample apple crisps. The browning of the apple surface is most obvious during the steaming and drying stage, so the color difference value △E cannot well reflect the color change in the process of apple chips; Figure 4 is the fresh sample apple slices collected by the color electronic eye, and Figure 5 is the sample collected by the color electronic eye An image of an apple crisp, which can clearly capture the color difference of the sample apple crisp.
由表2可知,采用颜色电子眼图像处理技术分析后,从表中可以看出,膨化后苹果脆片位于深度褐色区间的待测RGB值所对应的面积比例占待测苹果脆片面积的4.73%,而均湿处理后待测苹果脆片中位于深度褐色区间的待测RGB值所对应的面积比占待测苹果脆片面积的0.29%。与感官评价方法和分光色差计相比,利用本发明提供的方法评价苹果脆片表观色泽褐变程度更加精确,误差小,避免了人为评价造成的主观差异,且操作方便,易于分级。It can be seen from Table 2 that after analysis by color electronic eye image processing technology, it can be seen from the table that the proportion of the area corresponding to the RGB value to be tested in the deep brown range of the puffed apple crisps accounts for 4.73% of the area of the apple crisps to be tested , and the area ratio corresponding to the RGB value to be measured in the deep brown interval in the apple crisps to be tested after the wet treatment accounts for 0.29% of the area of the apple crisps to be tested. Compared with sensory evaluation methods and spectrocolorimeters, the method provided by the invention is more accurate in evaluating the browning degree of the apparent color of apple crisps, with small errors, avoids subjective differences caused by human evaluation, and is convenient to operate and easy to grade.
尽管本发明的实施方案已公开如上,但其并不仅仅限于说明书和实施方式中所列运用,它完全可以被适用于各种适合本发明的领域,对于熟悉本领域的人员而言,可容易地实现另外的修改,因此在不背离权利要求及等同范围所限定的一般概念下,本发明并不限于特定的细节和这里示出与描述的图例。Although the embodiment of the present invention has been disclosed as above, it is not limited to the use listed in the specification and implementation, it can be applied to various fields suitable for the present invention, and it can be easily understood by those skilled in the art Therefore, the invention is not limited to the specific details and examples shown and described herein without departing from the general concept defined by the claims and their equivalents.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511001541.7A CN105631874B (en) | 2015-12-28 | 2015-12-28 | Utilize the method for image Segmentation Technology evaluation apple crisp slices browning degree |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511001541.7A CN105631874B (en) | 2015-12-28 | 2015-12-28 | Utilize the method for image Segmentation Technology evaluation apple crisp slices browning degree |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105631874A CN105631874A (en) | 2016-06-01 |
CN105631874B true CN105631874B (en) | 2018-12-07 |
Family
ID=56046760
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511001541.7A Active CN105631874B (en) | 2015-12-28 | 2015-12-28 | Utilize the method for image Segmentation Technology evaluation apple crisp slices browning degree |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105631874B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118641537B (en) * | 2024-05-20 | 2025-01-28 | 上海联豪食品有限公司 | Nondestructive testing method for steak quality based on optical detection |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103389275A (en) * | 2013-08-02 | 2013-11-13 | 中国农业科学院农产品加工研究所 | Method for measuring flesh browning degree |
CN104181111A (en) * | 2014-08-22 | 2014-12-03 | 河北省农林科学院昌黎果树研究所 | Method for evaluating browning degrees of Chinese chestnuts by using colorimeter |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6213950B2 (en) * | 2013-06-03 | 2017-10-18 | 日本電信電話株式会社 | Image processing apparatus, image processing method, and image processing program |
-
2015
- 2015-12-28 CN CN201511001541.7A patent/CN105631874B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103389275A (en) * | 2013-08-02 | 2013-11-13 | 中国农业科学院农产品加工研究所 | Method for measuring flesh browning degree |
CN104181111A (en) * | 2014-08-22 | 2014-12-03 | 河北省农林科学院昌黎果树研究所 | Method for evaluating browning degrees of Chinese chestnuts by using colorimeter |
Non-Patent Citations (2)
Title |
---|
利用数码相机测定板栗果实褐变的方法研究;张京政 等;《北方园艺》;20080430;第4卷;第56-57页 * |
苹果脆片品质评价技术现状及展望;王沛 等;《食品与发酵工业》;20100920;第36卷(第9期);第138-142页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105631874A (en) | 2016-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Salehi et al. | Modeling of moisture loss kinetics and color changes in the surface of lemon slice during the combined infrared-vacuum drying | |
Adebayo et al. | Prediction of quality attributes and ripeness classification of bananas using optical properties | |
Ma et al. | Applications of computer vision for assessing quality of agri-food products: a review of recent research advances | |
Pu et al. | Soluble solids content and pH prediction and maturity discrimination of lychee fruits using visible and near infrared hyperspectral imaging | |
Sun et al. | Simultaneous measurement of brown core and soluble solids content in pear by on-line visible and near infrared spectroscopy | |
Nagle et al. | Determination of surface color of ‘all yellow’mango cultivars using computer vision | |
Zhu et al. | Evaluation of green tea sensory quality via process characteristics and image information | |
Nguyen-Do-Trong et al. | Cross-polarized VNIR hyperspectral reflectance imaging for non-destructive quality evaluation of dried banana slices, drying process monitoring and control | |
Saldana et al. | Measurement parameter of color on yacon (Smallanthus sonchifolius) slices using a computer vision system | |
Abdollahi Moghaddam et al. | Kinetics of color and physical attributes of cookie during deep‐fat frying by image processing techniques | |
Lukinac et al. | Application of computer vision and image analysis method in cheese-quality evaluation: a review | |
Tian et al. | Non-destructive prediction of soluble solids content of pear based on fruit surface feature classification and multivariate regression analysis | |
Pedreschi et al. | Grading of potato chips according to their sensory quality determined by color | |
CN107044967B (en) | A method for rapid identification of potato raw whole flour by near-infrared spectroscopy | |
Huang et al. | Evaluating quality of tomato during storage using fusion information of computer vision and electronic nose | |
Bejo et al. | Determination of Chokanan mango sweetness ('Mangifera indica') using non-destructive image processing technique | |
Manickavasagan et al. | Non-destructive measurement of total soluble solid (TSS) content of dates using near infrared (NIR) imaging | |
CN110108649A (en) | The fast non-destructive detection method of oil crops quality based on terahertz light spectral technology | |
Xu | Electronic eye for food sensory evaluation | |
CN105631874B (en) | Utilize the method for image Segmentation Technology evaluation apple crisp slices browning degree | |
Udomkun et al. | Computer vision system (CVS) for color and surface oil measurements of durian chips during post-frying | |
Janve et al. | Sensory and quality evaluation of traditional compared with power ultrasound processed corn (Zea mays) tortilla chips | |
CN114136918A (en) | Near-infrared-based rice taste quality evaluation method | |
Xue et al. | Study of Malus Asiatica Nakai’s firmness during different shelf lives based on visible/near-infrared spectroscopy | |
Oblitas Cruz et al. | Computer vision system for the optimization of the color generated by the coffee roasting process according to time, temperature and mesh size |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |