CN105547919B - The image measuring method of Rice gel consistency - Google Patents

The image measuring method of Rice gel consistency Download PDF

Info

Publication number
CN105547919B
CN105547919B CN201510900845.0A CN201510900845A CN105547919B CN 105547919 B CN105547919 B CN 105547919B CN 201510900845 A CN201510900845 A CN 201510900845A CN 105547919 B CN105547919 B CN 105547919B
Authority
CN
China
Prior art keywords
test tube
rice
function module
background board
scale
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
Application number
CN201510900845.0A
Other languages
Chinese (zh)
Other versions
CN105547919A (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 National Rice Research Institute
Original Assignee
China National Rice Research Institute
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 National Rice Research Institute filed Critical China National Rice Research Institute
Priority to CN201510900845.0A priority Critical patent/CN105547919B/en
Publication of CN105547919A publication Critical patent/CN105547919A/en
Application granted granted Critical
Publication of CN105547919B publication Critical patent/CN105547919B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N11/00Investigating flow properties of materials, e.g. viscosity, plasticity; Analysing materials by determining flow properties

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)

Abstract

The invention discloses a kind of image measuring methods of Rice gel consistency, include the following steps:The background board equipped with test tube placement area is made, background board is placed on levels operation platform;The test tube of rice glue is put into test tube placement area after the cooling that several are formed equipped with rice to be measured, and using taking pictures, instrument takes pictures to the test tube on background board;Utilize the gel consistence for acquired results measuring and calculating rice of taking pictures;Measuring and calculating is completed by following four function modules:Function module is 1.:Photo is converted into two-value numerical matrix;Function module is 2.:Binary numerical matrix according to function module 1. gained judges the position of each test tube in each test tube placement area;Function module is 3.:According to the position of every test tube in function module 2. each test tube placement area of gained, the virtual length for being located at each invisible spectro rice glue is calculated;Function module is 4.:According to function module 3. gained each invisible spectro rice glue virtual length according to corresponding scale calculate sample gel consistence result.

Description

The image measuring method of Rice gel consistency
Technical field
The invention belongs to field of food detection, are related to the gel consistence measuring method of rice, specially a kind of to utilize image skill The method that art measures Rice gel consistency.
Background technology
Rice is the important cereal crops in China, and with the increasingly raising of living standard, people are to the Cooking Quality of rice Requirement it is higher and higher.Gel consistence (gel consistency, GC) is the main quality index of rice.Rice flour sample is through diluted alkaline Rice glue is formed after heat gelatinization, it is total that ice-water bath rice glue after cooling makees slowly flowing extension, rice glue in horizontal positioned test tube Length is known as gel consistence, can measure and acquire.Domestic and foreign literature reports hardness phase of the size of gel consistence directly with rice It closes.Gel consistence can be divided into three classes according to rice glue length:Ebonite denseness (≤40mm), middle gel consistence (41~60mm), flexible glue are thick It spends (>=61mm).The rice of flexible glue denseness is more soft tasty, still keeps soft after cooling and is not hardened;And the rice of ebonite denseness The hardness of meal is larger, dry easy to crack, hardness bigger after cooling, and food flavor is bad.Therefore, the flexibility of gel consistence and rice, agreeable to the taste Close associations, accurate, the quick measurements of gel consistence such as property, cold meal quality have important meaning to the evaluation of rice eating-quality Justice.
As rice Ordinary fruit quality index, measure obtained official standard (GB/T 22294-2008, the GB/T of gel consistence 17891-1999) performing.In standard, the determination step of gel consistence includes the preparation of sample, prepares sample determination of moisture, is molten Solve sample, glue, measurement rice glue length etc..So far, the range estimation that gel consistence depends on testing staff entirely is measured, i.e., is placed in test tube It is lined on the horizontal platform of scale paper and stands, estimate the length from tube bottom to rice glue forward position, represented with millimeter (mm).With the side of range estimation Method measures rice glue length, mainly there is 2 points of deficiencies:First, testing staff range estimation with subjectivity estimation, as a result easily by The physiology of personnel and the influence of psychological condition, do not have objectivity, absoluteness, uniqueness;Furthermore it is being examined when batch samples are in During state, carrying out range estimation by testing staff needs to expend the long time.In nowadays this information-based, image conversion epoch, A kind of more quick, accurate, science method is badly in need of measurement of the exploitation for Rice gel consistency.
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of image measuring method of Rice gel consistency, it is contemplated that sharp With image technique it is time-consuming less, it is easy to operate the advantages of, provide a kind of fast and accurately method to substitute the mesh of current routine It surveys.The present invention does not change the pre-treatment of Rice Samples and forms the operation of rice glue, and is only for measurement rice glue length.
In order to solve the above technical problem, the present invention provides a kind of image measuring method of Rice gel consistency, including as follows Step:
1), the making of background board:
Background board is the white background board of A4 sizes, is equipped on background board and is mutually parallel and keeps 3 scales of spacing, Region between 2 adjacent scales is for putting the test tube placement area of test tube;
2), the arrangement of levels operation platform:
Above-mentioned background board is placed on levels operation platform;
Remarks explanation:Background board is generally longitudinal to be put, several background boards can be put on levels operation platform;
3), take pictures the location determination of instrument (camera or mobile phone):
It takes pictures the distance of camera lens background board at least height of 30cm (general control be 30~50cm) of instrument, and makes photographing The central point of the center point alignment white background board of the camera lens of device;
4), test tube put and the acquisition of photo:
The test tube of rice glue carries out following operate immediately after the cooling that several are formed equipped with rice to be measured:It is put into test tube Placement area, the axial line of test tube are parallel with scale;The test tube for setting two row spaced in a test tube placement area Group, the test tube in each test tube group are mutually close to and (that is, do not interspace between 2 adjacent test tubes in each test tube group);
From after cooling rice glue place at room temperature 1 it is small when after, using the instrument of taking pictures described in step 3) on background board Test tube, which is carried out at the same time, takes pictures;
5), using step 4) take pictures acquired results measuring and calculating rice gel consistence:
The measuring and calculating is completed by following four function modules:
Function module is 1.:Photo is converted into two-value numerical matrix;
Function module is 2.:According to function module 1. gained binary numerical matrix judge it is every in each test tube placement area The position of each test tube in row test tube group is (that is, including originating the position of test tube and the position of remaining test tube in each column test tube group; Remarks explanation:Starting test tube refers to the test tube that the first row (starting from top to bottom) is come in each column test tube group);
Function module is 3.:According to function module 2. gained each test tube placement area in every test tube position, according to It is secondary to calculate the virtual length for being located at each invisible spectro rice glue;
Function module is 4.:According to function module 3. gained each invisible spectro rice glue virtual length according to corresponding mark Ruler (20mm scales) calculates the gel consistence result of sample (rice to be measured).
The improvement of the image measuring method of Rice gel consistency as the present invention:
The step 1) is:
White background board is placed longitudinally, and 3 20mm black scales are printed in white background board, and scale I is located at distance white Along at 8mm on background board, scale II is located at white background board centre, and scale III is located under white background board along 8mm;
Region between scale I and scale II forms a test tube placement area (being named as test tube placement area 1), scale Region between II and scale III is another test tube placement area (being named as test tube placement area 2).
The image measuring method of Rice gel consistency as the present invention is further improved:
In the step 4):Each column test tube group in each test tube placement area at most places 8 test tubes;That is, the white back of the body Scape plate at most places 32 test tubes;
The photo size size control of shooting is 800 × 600 pixels.
The image measuring method of Rice gel consistency as the present invention is further improved:
The step 5) is specific as follows:
Function module is 1.:The photo of 800 × 600 pixels is converted into binary numerical matrix;
In this module, the computation rule in Matlab softwares is:The photo of every 800 × 600 pixels, converts thereof into The two-value numerical matrix of 800 × 600 (line numbers × columns) only has numerical value 1 and 0 that is, in matrix;Set blue rice glue portion in test tube The numerical value divided on (that is, being as shown in Figure 1 invisible spectro grey parts) and the corresponding two-value numerical matrix position of scale is 1, The numerical value of remaining part point is 0;
Function module is 2.:According to function module 1. gained binary numerical matrix judge it is every in each test tube placement area Position of the starting test tube in photo in row test tube group (can be arranged by finding each column test tube group in each test tube placement area The position of the starting test tube is determined in the upper edge of the test tube of the first row);So as to further determine that each test tube puts area The position of each test tube in each column test tube group in domain;
Remarks explanation:At room temperature, rice glue extends along the length of test tube after cooling, and the width of blue rice glue is equal to test tube Width (diameter), the upper edge position of the namely blue rice glue in the upper edge position of test tube;Since the diameter of test tube is consolidated It is fixed, and test tube is close between being in each column test tube group, i.e., the line number amount that test tube occupies in a matrix is basically identical;Therefore basis The position of test tube is originated, can further determine that the position of 32 test tubes in region.
In this module, the computation rule in Matlab softwares is:In two-value numerical matrix, the position in region 1 is the 40th Row is to 400 rows, and the position in region 2 is the 425th row to 760 rows, and the position of 3 scales is then distributed in remaining line number.Every examination Pipe occupies 35 rows in a matrix, that is, the state of test tube is showed by the numerical value of 35 rows.The 1st arranges the 1st examination in region 1 Pipe upper edge, be exactly in two-value numerical matrix the 40th row to 400 rows, the 1st row to 300 row in occur numerical value 1 for the first time Line number.Since the line number, first 35 rows expression the 1st arranges the 1st test tube and originates test tube, second 35 row table then Show that the 1st arranges the 2nd test tube, followed by the 3rd 35 row represent that the 1st arranges the 3rd test tube ..., it is determined that the 1st row 8 test tube positions.The 2nd upper edge for arranging the 1st test tube, is exactly in the 40th row to 400 in two-value numerical matrix in region 1 There is the line number of numerical value 1 for the first time into 600 row in row, the 301st row;The starting test tube of the 2nd row is found out further according to the method for the 1st row And remaining test tube position.All test tube positions in region 2 can similarly be calculated.
Function module is 3.:According to function module 2. gained each test tube placement area in every test tube position, according to It is secondary to calculate the virtual length for being located at each invisible spectro rice glue:
In every test tube, the left end and right end of laterally blue rice glue are found, calculates the virtual length of blue rice glue, The number of columns that i.e. rice glue occupies in numerical matrix;
In this module, the computation rule in Matlab softwares is:In two-value numerical matrix, corresponding 35 row of every test tube 300 row in, find occur for the first time with last numerical value 1 i-th row and jth row, then in the test tube rice glue virtual length x (with row Number is unit) calculation formula be x=j-i+1.The virtual length of all test tubes can similarly be obtained.
Function module is 4.:According to the virtual length and physical length of scale, the physical length, that is, glue for calculating blue rice glue is thick Degree, in units of millimeter mm;When instrument of taking pictures (camera or mobile phone) position fix and it is horizontal when, each scale in every photo Virtual length all same;
In this module, the computation rule in Matlab softwares is:In two-value numerical matrix, the position of scale I, II, III Respectively the 21st row to 30 rows, the 411st row to 420 rows, the 771st row to 780 rows.Referrer module 3. in, looked in position of rule To the number of columns for numerical value 1 occur, that is, the virtual length for calculating scale I, II, III is respectively y1、y2、y3.Scale I, II, III Virtual length is respectively y1、y2、y3.Rice glue physical length (being represented with y, unit mm) in region 1 is with y1And y2Average value make Gained is calculated for physical length 20mm, rice glue physical length calculation formula is y=40x/ (y1+y2);Rice glue in region 2 is actual Length is with y2And y3Average value as physical length 20mm calculate gained, rice glue physical length calculation formula be y=40x/ (y2+ y3).When the camera in this law or mobile phone location fix and it is horizontal when, y1=y2=y3, therefore the rice glue physical length in region calculates Formula is y=20x/y1
In the present invention:
Instrument of taking pictures (camera or mobile phone) is fixed on the hanging place from white background board more than 30cm by step 3), wherein The central point of heart point and background board is substantially aligned, is adjusted to level, can be just complete by the operations background board such as focusing, scaling It is placed in camera lens picture.
In step 5):The software measuring and calculating code of method, can set corresponding order composition, for calculating according to four modules The gel consistence of Rice Samples.
Test tube in the present invention, diameter 12.8mm, length 100mm.
The invention mainly relates to utilize image technique measurement rice glue length, that is, gel consistence.The method of the present invention includes implement to walk Four modules rapid and for software measuring and calculating.The implementation steps, for concrete operations condition, the flow of method;The software Four modules of measuring and calculating, for calculating and obtaining the gel consistence result of Rice Samples.
Technical solution using the present invention has following technical advantage:
1st, this technology has objectivity, absoluteness.This technology obtains from the physiology of testing staff and the influence of psychological condition The gel consistence result obtained will not bring subjective sexual deviation into.
2nd, this technology has the characteristics that quick, convenient.Present techniques apply to Rice Samples gel consistence practical measurement when, especially In the case that it is batch samples, speed and efficiency far are more than traditional ocular estimate.
Description of the drawings
The specific embodiment of the present invention is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 is the schematic diagram of the implementation steps of the image measuring method of Rice gel consistency.
A is to have made the background board finished in figure;B is the arrangement of levels operation platform and the location status and test tube of camera Display case;C is the photo that shooting obtains;D is using Matlab softwares, (is for example, inputted soft according to four function modules Part calculates code) to calculate gel consistence.
Remarks explanation:Scheme in b, figure c, the actual color of rice glue is blueness in test tube.
Fig. 2 is the photo shot during specific implementation.A is the photo of embodiment 1 in figure;B is the photo of embodiment 2.
Specific embodiment
Technical scheme is specific as follows:
First, the implementation steps of the image measuring method of Rice gel consistency:
The implementation steps of this method are specific as follows (referring to Fig. 1):
1. the making of background board:The white background board of A4 paper sizes is cut into plastics or cardboard, it is placed longitudinally, it is printed on plate Have 3 20mm black scales, 3 position of rule respectively from along (scale I) at 8mm, centre (scale II), from lower edge At 8mm (scale III).There are two the region for being used to put test tube, blank of the region 1 between scale I and scale II on plate Place, blank space of the region 2 between scale II and scale III.
2. the arrangement of levels operation platform:By background board pad on levels operation platform, longitudinally put.It can be put on levels operation platform Several background boards.
3. the location determination of instrument of taking pictures (camera or mobile phone):Camera or mobile phone are fixed on and are more than from white background board The central point of the hanging place of 30cm, central point and background board is substantially aligned, is adjusted to level, can be by the operations such as focusing, scaling So that background board is just completely disposed in camera lens picture.
4. test tube put and the acquisition of photo:Rice Samples be put into test tube (diameter 12.8mm, length 100mm) according to GB/T 22294-2008 complete the pre-treatment of sample and the formation of rice glue, and test tube is flat on background board on levels operation platform Region 1 and region 2.Test tube is laterally disposed, and test tube is parallel with the upper and lower side of background board, and test tube is without departing from regional extent.Each area Domain is parallel to put 2 row (each side the putting 1 row of medium line), and most 8 test tubes of each column (can at most put 32 examinations on background board Pipe).Test tube must be close to test tube, not interspaced.After standing 1h, press camera or mobile phone obtains photo.
5. the measuring and calculating of gel consistence result:It (can be by Matlab by four modules of the present invention for measuring and calculating Inputted in software it is customized measuring and calculating code realize), obtain photo in every test tube blue rice glue length, that is, gel consistence.
2nd, the image measuring method measuring and calculating of Rice gel consistency:
Four modules of the present invention for measuring and calculating are (using the self-defined this law measurement gel consistence of Matlab softwares Code, the measuring and calculating code are used to calculate the gel consistence of rice glue length i.e. 32 sample of 32 test tubes in photo) it is specific as follows:
Module is 1. --- and the photo size size control shot every time is unified (800 × 600 pixel), and photo is converted into counting Value matrix.
In this module, the computation rule in Matlab softwares is:The photo of every 800 × 600 pixels, converts thereof into The two-value numerical matrix of 800 × 600 (line numbers × columns) only has numerical value 1 and 0 that is, in matrix.Set blue rice glue portion in test tube The numerical value divided on two-value numerical matrix position corresponding with scale is 1, and the numerical value of rest part is 0.
Module is 2. --- position of the starting test tube (the 1st test tube of each column in each region) in photo is judged, by finding The position of the upper edge of the 1st test tube of each column in region and the definite starting test tube.Blue rice glue is extended along test tube, Width is equal to the width (diameter) of test tube, the upper edge position of the namely blue rice glue in upper edge position of test tube.Examination The diameter of pipe is fixed, and is close between test tube, i.e., the line number amount that test tube occupies in a matrix is basically identical.According to starting test tube Position further determines that the position of 32 test tubes in region.
In this module, the computation rule in Matlab softwares is:In two-value numerical matrix, the position in region 1 is the 40th Row is to 400 rows, and the position in region 2 is the 425th row to 760 rows, and the position of 3 scales is then distributed in remaining line number.Every examination Pipe occupies 35 rows in a matrix, that is, the state of test tube is showed by the numerical value of 35 rows.The 1st arranges the 1st examination in region 1 Pipe upper edge, be exactly in two-value numerical matrix the 40th row to 400 rows, the 1st row to 300 row in occur numerical value 1 for the first time Line number.Since the line number, first 35 rows expression the 1st arranges the 1st test tube and originates test tube, second 35 row table then Show that the 1st arranges the 2nd test tube, followed by the 3rd 35 row represent that the 1st arranges the 3rd test tube ..., it is determined that the 1st row 8 test tube positions.The 2nd upper edge for arranging the 1st test tube, is exactly in the 40th row to 400 in two-value numerical matrix in region 1 There is the line number of numerical value 1 for the first time into 600 row in row, the 301st row;The starting test tube of the 2nd row is found out further according to the method for the 1st row And remaining test tube position.All test tube positions in region 2 can similarly be calculated.
Module is 3. --- and in every test tube, the left end and right end of laterally blue rice glue are found, calculates blue rice glue Virtual length, i.e., the number of columns that rice glue occupies in numerical matrix.
In this module, the computation rule in Matlab softwares is:In two-value numerical matrix, corresponding 35 row of every test tube 300 row in, find occur for the first time with last numerical value 1 i-th row and jth row, then in the test tube rice glue virtual length x (with row Number is unit) calculation formula be x=j-i+1.The virtual length of all test tubes can similarly be obtained.
Module is 4. --- and according to the virtual length and physical length of scale, the physical length, that is, glue for calculating blue rice glue is thick Degree, in units of millimeter mm.When the camera in this law or mobile phone location fix and it is horizontal when, the void of each scale in every photo Quasi-length all same.
In this module, the computation rule in Matlab softwares is:In two-value numerical matrix, the position of scale I, II, III Respectively the 21st row to 30 rows, the 411st row to 420 rows, the 771st row to 780 rows.Referrer module 3. in, looked in position of rule To the number of columns for numerical value 1 occur, that is, the virtual length for calculating scale I, II, III is respectively y1、y2、y3.Rice glue in region 1 Physical length (being represented with y, unit mm) is with y1And y2Average value as physical length 20mm calculate gained, rice glue physical length Calculation formula is y=40x/ (y1+y2);Rice glue physical length in region 2 is with y2And y3Average value as physical length 20mm Gained is calculated, rice glue physical length calculation formula is y=40x/ (y2+y3).When the camera in this law or mobile phone location are fixed and water Usually, y1=y2=y3, therefore the rice glue physical length calculation formula in region is y=20x/y1
In actual use, the following is paid attention to:
1st, when detecting the gel consistence of Rice Samples, testing staff uses the image measuring method of Rice gel consistency for the first time, should It is carried out in strict accordance with five steps of implementation steps, after, background board, levels operation platform and the position of camera or mobile phone can be protected It holds constant.When testing staff is detected again, can directly carry out this law step 4,5 and obtain gel consistence result.
2nd, four function modules (code can be calculated according to software programming) of the present invention) what is finally obtained is 32 knots Fruit data.When sample tube quantity N is not up to maximum (N<32) when, have in 32 results it is N number of be more than zero gel consistence value, remain Remaining 32-N are zero.
3rd, in image measurement method implementation steps of the present invention, the making of background board is the premise and base of entire method Plinth, step 3 and step 4 are all committed steps, need strict implement.
Experiment 1, the gel consistence that 32 different cultivars Rice Samples are examined with the image measuring method in ocular estimate and the present invention (without repeating to test) compares the difference of the two result.Experimental implementation is as follows:
(1) pre-treatment of Rice Samples and the operation of formation rice glue are according to national standard (GB/T 22294-2008):It weighs 100mg Rice Samples are placed in test tube, are added in 0.025% thymol blue indicator of 0.2mL, are vibrated 5s on the oscillator, make sample Product fully soak;2mL 0.200mol/L potassium hydroxide solutions are added, and shake test tube;Test tube is put into boiling water bath, is used Glass marble covers test tube mouth, and according to boiling situation, the rice glue that control boiling is blown with hair-dryer is highly maintained at test tube length 2/3rds or so;Test tube is taken out after 8min, removes glass marble, after cooling down 5min at room temperature, then test tube is placed in ice bath Cool down 20min.That is, form positioned at invisible spectro rice glue.
Remarks explanation:Existing ocular estimate is at present:At 25 DEG C of room temperature, test tube is placed in the horizontal behaviour for being lined with scale paper Make to stand 1h on platform, range estimation rice glue length obtains gel consistence result (being shown in Table 1).
(2) in the image measuring method of Rice gel consistency after steps 1 and 2,3, the test tube in (1) is moved into background On plate, photo (see Fig. 2A) is taken to obtain after correctly being put according to step 4, gel consistence result (being shown in Table 1) is obtained finally by measuring and calculating.
The sample gel consistence result that 1, two method of table obtains
Note:Gel consistence in table from top to bottom is the result of correspondence position test tube in photo.
As shown in Table 1, the gel consistence difference that ocular estimate and image measuring method obtain respectively is respectively less than 3mm, according to standard Error is within 7mm specified in (GB/T 22294-2008), therefore image measuring method of the present invention is efficiently and accurately. The software measuring and calculating code of this law can calculate 32 gel consistences as a result, and testing staff estimates a gel consistence knot in 1 to 2 second Fruit at least needs 2 seconds, illustrates that this law can achieve the effect that quickly to measure, and the speed and efficiency of detection are higher than ocular estimate.
Experiment 2, the glue that 24 different cultivars Rice Samples are detected with the image measuring method of Rice gel consistency in the present invention Denseness (without repeating to test).Testing staff directly takes to obtain photo (see Fig. 2 B) according to the step 4 of this law, then passes through software Measuring and calculating obtains whole gel consistence results (being shown in Table 2).
24 sample gel consistence results that 2, two methods of table obtain
Note:Gel consistence in table from top to bottom is the result of correspondence position test tube in photo.
It can be obtained by table 2, there is 8 gel consistence results and 8 zeros in region 2, it is consistent with the test tube position that photo is put, Zero represents the vacant position of 8 test tubes.This calculates gel consistence result and has spent about 1 second, shows that this law is got in sample size More the characteristics of its is efficient can be embodied in the case of more.
24 samples described in this example are detected using conventional ocular estimate, gel consistence result and the present invention of gained The result of image measuring method is differed in the range of 0.4mm to 3.1mm, the requirement of " error is within 7mm " in complying with standard, It is efficiently and accurately to illustrate image measuring method of the present invention again.24 Rice Samples kinds and embodiment 1 described in this example In 32 Rice Samples kinds and differ, so as to prove the present invention method the rice of any kind is respectively provided with it is general Property.
Comparative example 1, by the " central point of camera in the implementation steps 3 of the image measuring method of Rice gel consistency of the present invention It is substantially aligned with the central point of background board " it is not required, the central point of camera deviates about 3 centimetres of background board center in this example;Its It is remaining to be equal to the present invention;32 samples in experiment 1 are detected.The image method changed and routine visual method are made in this example The sample gel consistence comparison situation obtained is shown in Table 3.
The sample gel consistence result that 3 ocular estimate of table and the image method changed obtain
It can be obtained by table 3, with there is 3 to be more than 100mm in the result obtained by the image method after change, and Rice gel consistency is most Big value is 100mm (total length of test tube), it is therefore apparent that the distortion of its end value.In 32 samples, only 3 gel consistences Gel consistence phase difference that relatively low sample is obtained with two methods and not less than 7mm, the result difference of 29 samples is then equal in addition More than 7mm, the glue for not being inconsistent in standardization the image method calculating gained after the requirement of " error is within 7mm ", that is, change is thick It is too big to spend result error.In this example negative averment implementation steps 3 " central point of camera and the central point of background board are substantially right It is together " particularly significant step, it is immutable.
Comparative example 2, by the implementation steps 4 of the image measuring method of Rice gel consistency of the present invention " test tube is laterally disposed, Test tube is parallel with the upper and lower side of background board, and test tube is without departing from regional extent " make that " upper and lower side of test tube and background board is into certain into Angle is placed in the regional extent of background board ";Remaining is equal to the present invention;32 samples in experiment 1 are detected.This The image method changed is made in example and sample gel consistence comparison situation that routine visual method is obtained is shown in Table 4.
The sample gel consistence result that 4 ocular estimate of table and the image method changed obtain
It can be obtained by table 4, the ratio that 7mm is differed by more than with the image method after change and the result obtained by routine visual method is up to 93.8%, i.e. the overwhelming majority is not inconsistent in standardization the requirement of " error is within 7mm ", illustrates that the image method after changing calculates gained Gel consistence result it is seriously relatively low.In this example negative averment implementation steps 4 " test tube is laterally disposed, test tube and background board Upper and lower side is parallel, and test tube is without departing from regional extent " it is important step of the invention, it is immutable.
Comparative example 3, will be in the implementation steps 4 of the image measuring method of Rice gel consistency of the present invention " in each column test tube group Test tube must be close to test tube, not interspaced " it is not required, it is left in each column test tube group of this example between test tube and test tube 1mm gaps;Remaining is equal to the present invention;32 samples in experiment 1 are detected.Made in this example the image method changed and The sample gel consistence comparison situation that routine visual method is obtained is shown in Table 5.
The sample gel consistence result that 5 ocular estimate of table and the image method changed obtain
It can be obtained by table 5, with the image method acquired results after change and image method acquired results of the present invention (image method in table 1 Result) compared, find region 1,2 in the first row gel consistence result all same, be due to measuring and calculating module in determine The initial position of test tube.However, it is because the gap between test tube causes to calculate partially that sample gel consistence result, which changes, below Difference, the sample gel consistence deviation more come below are bigger.Since the third line in each region, image method and conventional mesh after change Result obtained by survey method is differed more than 7mm, that is, is not inconsistent in standardization the requirement of " error is within 7mm ".Therefore, this example reverse side The important step that " test tube must be close to test tube, not interspaced " in implementation steps 4 is the present invention is demonstrated, can not be changed Become.
To sum up, the image measuring method of the Rice gel consistency of the present invention is that one kind is quick, Accurate Determining rice glue is thick The method of degree.
Finally, it should also be noted that it is listed above be only the present invention several specific embodiments.Obviously, this hair Bright to be not limited to above example, acceptable there are many deformations.Those of ordinary skill in the art can be from present disclosure All deformations for directly exporting or associating, are considered as protection scope of the present invention.

Claims (4)

1. the image measuring method of Rice gel consistency, it is characterized in that including the following steps:
1), the making of background board:
Background board is the white background board of A4 sizes, is equipped on background board and is mutually parallel and keeps 3 scales of spacing, 2 Region between adjacent scale is for putting the test tube placement area of test tube;
2), the arrangement of levels operation platform:
Above-mentioned background board is placed on levels operation platform;
3), take pictures the location determination of instrument:
It takes pictures the distance of camera lens background board at least height of 30cm of instrument, and the center point alignment white of the camera lens for the instrument that makes to take pictures The central point of background board;
4), test tube put and the acquisition of photo:
The test tube of rice glue carries out following operate immediately after the cooling that several are formed equipped with rice to be measured:Test tube is put into put Region, the axial line of test tube are parallel with scale;The test tube group for setting two row spaced in a test tube placement area, often Test tube in a test tube group is mutually close to;
From after cooling rice glue place at room temperature 1 it is small when after, using the instrument of taking pictures described in step 3) to the test tube on background board It is carried out at the same time and takes pictures;
5), using step 4) take pictures acquired results measuring and calculating rice gel consistence:
The measuring and calculating is completed by following four function modules:
Function module is 1.:Photo is converted into two-value numerical matrix;
Function module is 2.:Binary numerical matrix according to function module 1. gained judges that each column in each test tube placement area is tried The position of each test tube of Guan Zuzhong;
Function module is 3.:According to the position of every test tube in function module 2. each test tube placement area of gained, count successively Calculate the virtual length for being located at each invisible spectro rice glue;
Function module is 4.:The virtual length of each invisible spectro rice glue according to function module 3. gained is calculated according to corresponding scale Go out the gel consistence of sample.
2. the image measuring method of Rice gel consistency according to claim 1, it is characterized in that:
The step 1) is:
White background board is placed longitudinally, and 3 20mm black scales are printed in white background board, and scale I is located at apart from white background Along at 8mm on plate, scale II is located at white background board centre, and scale III is located under white background board along 8mm;
Region between scale I and scale II forms a test tube placement area, and the region between scale II and scale III is Another test tube placement area.
3. the image measuring method of Rice gel consistency according to claim 2, it is characterized in that:
In the step 4):Each column test tube group in each test tube placement area at most places 8 test tubes;
The photo size size control of shooting is 800 × 600 pixels.
4. according to the image measuring method of any Rice gel consistency of claims 1 to 3, it is characterized in that:
The step 5) is specific as follows:
Function module is 1.:The photo of 800 × 600 pixels is converted into binary numerical matrix;
Function module is 2.:According to function module 1. gained binary numerical matrix judge in each test tube placement area each column examination Position of the starting test tube of Guan Zuzhong in photo;So as to further determine that in each column test tube group in each test tube placement area Each test tube position;
Function module is 3.:According to the position of every test tube in function module 2. each test tube placement area of gained, count successively Calculate the virtual length for being located at each invisible spectro rice glue:
In every test tube, the left end and right end of horizontal rice glue are found, calculates the virtual length of rice glue, i.e., rice glue is in numerical value The number of columns occupied in matrix;
Function module is 4.:According to the virtual length and physical length of scale, the physical length i.e. gel consistence of rice glue is calculated, with millimeter Mm is unit;When instrumented site of taking pictures fix and it is horizontal when, the virtual length all same of each scale in every photo.
CN201510900845.0A 2015-12-09 2015-12-09 The image measuring method of Rice gel consistency Active CN105547919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510900845.0A CN105547919B (en) 2015-12-09 2015-12-09 The image measuring method of Rice gel consistency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510900845.0A CN105547919B (en) 2015-12-09 2015-12-09 The image measuring method of Rice gel consistency

Publications (2)

Publication Number Publication Date
CN105547919A CN105547919A (en) 2016-05-04
CN105547919B true CN105547919B (en) 2018-05-25

Family

ID=55827261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510900845.0A Active CN105547919B (en) 2015-12-09 2015-12-09 The image measuring method of Rice gel consistency

Country Status (1)

Country Link
CN (1) CN105547919B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109556992B (en) * 2018-11-27 2020-08-11 中国水稻研究所 Preparation method of rice gum consistency standard substance

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005043260A (en) * 2003-07-23 2005-02-17 Satake Corp Visual inspection device of grain of rice
CN101021488A (en) * 2007-03-06 2007-08-22 江苏大学 Method and apparatus for detecting rice damage
CN101275824A (en) * 2008-05-16 2008-10-01 中国农业大学 Method for detecting rice granule type
CN201281706Y (en) * 2008-07-03 2009-07-29 国家粮食储备局成都粮食储藏科学研究所 Box for measuring rice glue length
CN203894134U (en) * 2014-06-13 2014-10-22 中国水稻研究所 Horizontal rice glue dripping plate for gel consistency test
CN204027964U (en) * 2014-09-03 2014-12-17 广东省储备粮管理总公司东莞直属库 Paddy gel consistence analyzer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005043260A (en) * 2003-07-23 2005-02-17 Satake Corp Visual inspection device of grain of rice
CN101021488A (en) * 2007-03-06 2007-08-22 江苏大学 Method and apparatus for detecting rice damage
CN101275824A (en) * 2008-05-16 2008-10-01 中国农业大学 Method for detecting rice granule type
CN201281706Y (en) * 2008-07-03 2009-07-29 国家粮食储备局成都粮食储藏科学研究所 Box for measuring rice glue length
CN203894134U (en) * 2014-06-13 2014-10-22 中国水稻研究所 Horizontal rice glue dripping plate for gel consistency test
CN204027964U (en) * 2014-09-03 2014-12-17 广东省储备粮管理总公司东莞直属库 Paddy gel consistence analyzer

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
机器视觉在稻米粒型检测中的应用;陈建华,等;《中国水稻科学》;20071231;第21卷(第6期);669-672 *
谷物检测中机器视觉技术的应用进展;石礼娟,等;《湖北农业科学》;20090630;第48卷(第6期);1514-1518 *

Also Published As

Publication number Publication date
CN105547919A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN104188635B (en) Livestock living body measurement equipment and method
KR102015997B1 (en) Method and apparatus for evaluating cooking quality
CN100443856C (en) A flat leaf area nondestructive measuring system and method thereof
CN102494616B (en) Length measuring method based on mobile terminal
Wojtan et al. Measurement of dynamic void fractions in stratified types of flow
CN110975270A (en) Standing long jump detection method based on marks and computer vision
CN110415040A (en) A kind of method and system of the non-amount body zoarium creation based on somatic data library
CN105547919B (en) The image measuring method of Rice gel consistency
CN110264464A (en) A kind of beef cattle intramuscular fat content prediction model, its construction method and application
McGhee et al. Bra band size measurements derived from three-dimensional scans are not accurate in women with large, ptotic breasts
KR20180005016A (en) Intake calorie measurement system based on smart pad
CN111105466A (en) Calibration method of camera in CT system
CN114613491B (en) Diagnostic decision system for echocardiogram measurement results
TWI542320B (en) Human weight estimating method by using depth images and skeleton characteristic
CN101929843B (en) Device and method for automatically measuring spike length of rice
CN109938755B (en) Digital set identification-based flash fusion frequency critical value measuring method
CN111260186A (en) Exercise capacity evaluation method and system, body fat scale and mobile terminal
CN107583264A (en) A kind of physical culture sitting body anteflexion and type register for sit-ups and application method
CN210277171U (en) Health detection device with multiple sensor information fused in small biological force line station
TW201907860A (en) Vision test device and vision test method capable of automatically adjusting size of optotype including a display screen, a database module, a distance measuring module, a calculating module, and a control module
TWM630144U (en) Data integration system of body composition analyzer
CN205785454U (en) Crop kernel mass of 1000 kernel determinator
CN108108863A (en) Laboratory system allowable range of error appraisal procedure based on Quality Control data
CN105550502A (en) Data processing method based on health monitoring
CN106539583B (en) Liver fat detection device and detection method

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