CN105547919A - Image measuring method of gel consistency of rice - Google Patents
Image measuring method of gel consistency of rice Download PDFInfo
- Publication number
- CN105547919A CN105547919A CN201510900845.0A CN201510900845A CN105547919A CN 105547919 A CN105547919 A CN 105547919A CN 201510900845 A CN201510900845 A CN 201510900845A CN 105547919 A CN105547919 A CN 105547919A
- Authority
- CN
- China
- Prior art keywords
- test tube
- rice
- functional module
- scale
- row
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N11/00—Investigating 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 an image measuring method of gel consistency of rice. The method comprises the following steps: preparing a background plate provided with a test tube placing area, and putting the background plate on a horizontal operation table; putting a plurality of test tubes containing cooled rice gel formed by to-be-measured rice in the test tube placing area; taking a picture of the test tubes on the background plate with a camera; and measuring and calculating the gel consistency of rice through using the result obtained via photographing. The measuring and calculating step is performed through the following four functional modules: a functional module (1), through which the picture is converted into a binary numerical matrix; a functional module (2), through which, position of each test tube in each test tube arrangement area is judged according to the binary numerical matrix obtained from the functional module (1); a functional module (3), through which a virtual length of rice gel in each test tube is calculated according to the position, obtained from the functional module (2), of each test tube in each test tube arrangement area; and a functional module (4), through which the gel consistency of the sample is calculated according to the virtual length, obtained from the functional module (3), of rice gel in each test tube and based on a corresponding scale.
Description
Technical field
The invention belongs to field of food detection, relate to the gel consistence measuring method of rice, be specially a kind of method utilizing image technique to measure Rice gel consistency.
Background technology
Rice is the important cereal crops of China, and along with the raising day by day of living standard, the requirement of people to the Cooking Quality of rice is more and more higher.Gel consistence (gelconsistency, GC) is the main quality index of rice.Rice powder sample forms rice glue after the hot gelatinization of diluted alkaline, and the cooled rice glue of ice-water bath slowly flows extension in the test tube of horizontal positioned, and its rice glue total length is called gel consistence, can measure and try to achieve.The size that domestic and foreign literature reports gel consistence is directly relevant to the soft durometer of rice.Gel consistence can be divided three classes according to rice glue length: ebonite denseness (≤40mm), middle gel consistence (41 ~ 60mm), flexible glue denseness (>=61mm).The rice of flexible glue denseness is comparatively soft good to eat, still keeps soft and not hardening after cooling; And the hardness of the rice of ebonite denseness is comparatively large, drying is easily split, after cooling, hardness is larger, and food flavor is not good.Therefore, the close association such as flexibility, palatability, cold meal quality of gel consistence and rice, accurate, the evaluation of Quick Measurement to rice eating-quality of gel consistence have great significance.
As rice Ordinary fruit quality index, the mensuration obtained official standard (GB/T22294-2008, GB/T17891-1999) of gel consistence is in order to perform.In standard, the determination step of gel consistence comprises the preparation of sample, prepares sample determination of moisture, sample dissolution, glue, measurement rice glue length etc.So far, measure gel consistence entirely by the range estimation of testing staff, be placed in by test tube on the horizontal stand being lined with scale paper and leave standstill, estimate the length to rice glue forward position at the bottom of pipe, represent with millimeter (mm).Measure rice glue length by the method for range estimation, mainly contain 2 deficiencies: first, the range estimation of testing staff is with the estimation of subjectivity, and result is subject to the physiology of personnel and the impact of psychological condition, does not have objectivity, absoluteness, a uniqueness; Moreover when batch samples is in inspection state, being undertaken estimating by testing staff needs to expend the long time.In nowadays these epoch that are information-based, image conversion, a kind of method urgent need that is more quick, accurate, science develops the measurement for Rice gel consistency.
Summary 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, the present invention be intended to utilize image technique consuming time less, advantage easy and simple to handle, provide a kind of method fast and accurately to substitute range estimation conventional at present.The present invention does not change the pre-treatment of Rice Samples and forms the operation of rice glue, and is only for measuring rice glue length.
In order to solve the problems of the technologies described above, the invention provides a kind of image measuring method of Rice gel consistency, comprising the steps:
1), the making of background board:
Background board is the white background plate of A4 size, and background board is provided with and is parallel to each other and keeps 3 scales of spacing, the region between 2 adjacent scales is the test tube placement area for putting test tube;
2), the layout of levels operation platform:
Above-mentioned background plate is placed on levels operation platform;
Remarks illustrate: background board is generally longitudinally to be put, and levels operation platform can put several background boards;
3), the take pictures position of instrument (camera or mobile phone) is determined:
To take pictures the height (general control is 30 ~ 50cm) of distance of camera lens background board at least 30cm of instrument, and the central point of the central point alignment white background plate of the camera lens of the instrument that makes to take pictures;
4), the putting and the acquisition of photo of test tube:
After some being equipped with the cooling that rice to be measured formed, the test tube of rice glue carries out following operation immediately: put into test tube placement area, the axial line of test tube parallels with scale; In a test tube placement area, arrange the test tube group that two row are spaced, the test tube in each test tube group is close to mutually (that is, not interspacing between 2 adjacent in each test tube group test tubes);
After rice glue at room temperature places 1 hour after cooling, utilize step 3) described in instrument of taking pictures the test tube on background board is taken pictures simultaneously;
5), utilize step 4) take pictures acquired results measuring and calculating rice gel consistence:
Described measuring and calculating is completed by following four functional modules:
Functional module is 1.: photo is converted to two-value numerical matrix;
Functional module is 2.: judge that according to the binary number value matrix of functional module 1. gained the position of each test tube in the often row test tube group in each test tube placement area (that is, comprises the often position of initial test tube and the position of all the other test tubes in row test tube group; Remarks illustrate: initial test tube refers to the test tube coming the first row (starting at from top to bottom) in every row test tube group);
Functional module is 3.: according to the position of the every root test tube in each test tube placement area of functional module 2. gained, calculate the virtual length being positioned at each invisible spectro rice glue successively;
Functional module is 4.: the virtual length according to the functional module 3. each invisible spectro rice glue of gained calculates the gel consistence result of sample (rice to be measured) according to the scale (20mm scale) of correspondence.
Improvement as the image measuring method of Rice gel consistency of the present invention:
Described step 1) be:
White background plate is longitudinally placed, and white background plate is printed on 3 20mm black scales, and scale I is positioned at along 8mm place on distance white background plate, and scale II is positioned at white background plate centre, scale III be positioned at apart under white background plate along 8mm place;
Region between scale I and scale II forms a test tube placement area (called after test tube placement area 1), between scale II and scale III region be another test tube placement area (called after test tube placement area 2).
Further improvement as the image measuring method of Rice gel consistency of the present invention:
Described step 4) in: the often row test tube group in each test tube placement area places at most 8 test tubes; That is, 32 test tubes placed at most by white background plate;
The photo size size of shooting controls to be 800 × 600 pixels.
Further improvement as the image measuring method of Rice gel consistency of the present invention:
Described step 5) specific as follows:
Functional module is 1.: convert the photo of 800 × 600 pixels to binary number value matrix;
In this module, the computation rule in Matlab software is: the photo often opening 800 × 600 pixels, converts thereof into the two-value numerical matrix of 800 × 600 (line number × columns), namely only has numerical value 1 and 0 in matrix; Numerical value in setting test tube on blue rice glue part (that is, being illustrated in figure 1 invisible spectro grey parts) and two-value numerical matrix position corresponding to scale is 1, and the numerical value of remainder is 0;
Functional module is 2.: judge the position of initial test tube in photo in the often row test tube group in each test tube placement area (come the upper edge of the test tube of the first row by finding the often row test tube group in each test tube placement area and determine the position of this initial test tube) according to the binary number value matrix of functional module 1. gained; Thus determine the position of each test tube in the often row test tube group in each test tube placement area further;
Remarks illustrate: under room temperature, and after cooling, rice glue extends along the length of test tube, and the width of blue rice glue is equal to the width of test tube (diameter), the upper edge position of test tube i.e. the upper edge position of blue rice glue; Because the diameter of test tube is fixed, and often in row test tube group test tube be close between being, namely the line number amount that occupies in a matrix of test tube is basically identical; Therefore according to the position of initial test tube, the position of 32 test tubes in region can be determined further.
In this module, the computation rule in Matlab software is: in two-value numerical matrix, the position in region 1 be the 40th row to 400 row, the position in region 2 be the 425th row to 760 row, remaining line number is then distributed with the position of 3 scales.Every root test tube occupies 35 row in a matrix, namely test tube state by 35 row numeric representation out.1st upper edge arranging the 1st test tube in region 1, be exactly in two-value numerical matrix in the 40th row to 400 row, the 1st row to 300 row first time there is the line number of numerical value 1.From this line number, first 35 row represents that the 1st arranges the 1st test tube and initial test tube, then second 35 row represent that the 1st arranges the 2nd test tube, then the 3rd 35 row then represent that the 1st arranges the 3rd test tube ... the like, determine 8 test tube positions of the 1st row.2nd upper edge arranging the 1st test tube in region 1, be exactly in two-value numerical matrix in the 40th row to 400 row, the 301st row to 600 row first time there is the line number of numerical value 1; Initial test tube and all the other test tube positions of the 2nd row is found out again according to the method for the 1st row.In like manner can calculate all test tube positions in region 2.
Functional module is 3.: according to the position of the every root test tube in each test tube placement area of functional module 2. gained, calculate the virtual length being positioned at each invisible spectro rice glue successively:
In every root test tube, find high order end and the low order end of laterally blue rice glue, calculate the virtual length of blue rice glue, be i.e. the number of columns that occupies in numerical matrix of rice glue;
In this module, computation rule in Matlab software is: in two-value numerical matrix, during 35 row 300 that every root test tube is corresponding arrange, find the i-th row and jth row that occur numerical value 1 first with last, then in this test tube, the computing formula of the virtual length x (in units of columns) of rice glue is x=j – i+1.In like manner can the virtual length of all test tubes.
Functional module is 4.: according to virtual length and the physical length of scale, calculate physical length and the gel consistence of blue rice glue, in units of millimeter mm; When instrument of taking pictures (camera or mobile phone) position fix and level time, the virtual length of often opening each scale in photo is all identical;
In this module, the computation rule in Matlab software is: in two-value numerical matrix, and the position of scale I, II, III is respectively the 21st and walks to 30 row, the 411st and walk to 420 row, the 771st and walk to 780 row.Referrer module 3. in, in position of rule, find the number of columns occurring numerical value 1, the virtual length namely calculating scale I, II, III is respectively y
1, y
2, y
3.The virtual length of scale I, II, III is respectively y
1, y
2, y
3.Rice glue physical length (representing with y, unit mm) in region 1 is with y
1and y
2mean value as physical length 20mm calculate gained, rice glue physical length computing formula is y=40x/ (y
1+ y
2); Rice glue physical length in region 2 is with y
2and y
3mean value as physical length 20mm calculate gained, rice glue physical length computing formula is y=40x/ (y
2+ y
3).When the camera in this law or mobile phone location fix and level time, y
1=y
2=y
3, therefore the rice glue physical length computing formula in region is y=20x/y
1.
In the present invention:
Step 3), instrument (camera or mobile phone) of taking pictures is fixed on from the unsettled place of white background plate more than 30cm, its central point aligns substantially with the central point of background board, is adjusted to level, makes background board just be placed in camera lens picture completely by operations such as focusing, convergent-divergents.
Step 5) in: the software measuring and calculating code of method, composition can be ordered accordingly according to four module installation, for calculating the gel consistence of Rice Samples.
Test tube in the present invention, diameter 12.8mm, length 100mm.
The present invention relates generally to and utilizes image technique to measure rice glue length and gel consistence.Method of the present invention comprises implementation step and four modules for software measuring and calculating.Described implementation step, for concrete operations condition, the flow process of method; Four modules of described software measuring and calculating, for calculating and obtaining the gel consistence result of Rice Samples.
Technical scheme of the present invention is adopted to have following technical advantage:
1, this technology has objectivity, absoluteness.The not examined physiology of personnel of this technology and the impact of psychological condition, the gel consistence result of acquisition can not bring subjectivity deviation into.
2, this technology have fast, feature easily.When this technology is applied to the practical measurement of Rice Samples gel consistence, especially when batch samples, speed and efficiency far are greater than traditional ocular estimate.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail.
Fig. 1 is the schematic diagram of the implementation step of the image measuring method of Rice gel consistency.
In figure, a has made complete background board; B is the display case of the layout of levels operation platform and the location status of camera and test tube; C is the photo that shooting obtains; D is for utilizing Matlab software, and foundation four functional modules (being such as Input Software measuring and calculating code) are to calculate gel consistence.
Remarks illustrate: in figure b, figure c, in test tube, the actual color of rice glue is blue.
The photo that Fig. 2 takes when being and specifically implementing.In figure, A is the photo of embodiment 1; B is the photo of embodiment 2.
Embodiment
Technical scheme of the present invention is specific as follows:
One, the implementation step of the image measuring method of Rice gel consistency:
The implementation step (see Fig. 1) of this method is specific as follows:
1. the making of background board: the white background plate being cut into A4 paper size with plastics or cardboard, longitudinally place, plate is printed on 3 20mm black scales, 3 position of rule respectively from along 8mm place (scale I), centre (scale II), from lower along 8mm place (scale III).Plate there are two for putting the region of test tube, the blank space of region 1 between scale I and scale II, the blank space of region 2 between scale II and scale III.
2. the layout of levels operation platform: by background board pad on levels operation platform, longitudinally puts.Levels operation platform can put several background boards.
3. the take pictures position of instrument (camera or mobile phone) is determined: camera or mobile phone are fixed on from the unsettled place of white background plate more than 30cm, its central point aligns substantially with the central point of background board, be adjusted to level, make background board just be placed in camera lens picture completely by operations such as focusing, convergent-divergents.
4. the putting and the acquisition of photo of test tube: Rice Samples puts into test tube (diameter 12.8mm, length 100mm) complete the pre-treatment of sample and the formation of rice glue according to GB/T22294-2008, test tube is flat on region 1 and the region 2 of background board on levels operation platform.Test tube is laterally placed, and test tube is parallel with the upper and lower side of background board, and test tube does not exceed regional extent.Each zones run parallel puts 2 row (each side the putting 1 row of medium line), often arranges maximum 8 test tubes (background board can put at most 32 test tubes).Test tube and test tube must be close to, and do not interspace.After leaving standstill 1h, press camera or mobile phone acquisition photo.
5. the measuring and calculating of gel consistence result: by four modules (by inputting self-defining measuring and calculating codes implement in Matlab software) for calculating of the present invention, obtains blue rice glue length and the gel consistence of every root test tube in photo.
Two, the image measuring method measuring and calculating of Rice gel consistency:
Four modules (the self-defined this law of Matlab software can be utilized to measure the code of gel consistence, and this measuring and calculating code is for calculating the rice glue length i.e. gel consistence of 32 samples of 32 test tubes in photo) for calculating of the present invention are specific as follows:
Module is 1.---and the photo size size of each shooting controls unified (800 × 600 pixel), converts photo to numerical matrix.
In this module, the computation rule in Matlab software is: the photo often opening 800 × 600 pixels, converts thereof into the two-value numerical matrix of 800 × 600 (line number × columns), namely only has numerical value 1 and 0 in matrix.Numerical value in setting test tube on blue rice glue part and two-value numerical matrix position corresponding to scale is 1, and the numerical value of remainder is 0.
Module is 2.---judge initial test tube (often arranging the 1st test tube in each region) position in photo, by finding in region the upper edge often arranging the 1st test tube and the position determining this initial test tube.Blue rice glue extends along test tube, and its width is equal to the width (diameter) of test tube, the upper edge position of test tube i.e. the upper edge position of blue rice glue.The diameter of test tube is fixed, and is close between test tube, and namely the line number amount that occupies in a matrix of test tube is basically identical.According to the position of initial test tube, determine the position of 32 test tubes in region further.
In this module, the computation rule in Matlab software is: in two-value numerical matrix, the position in region 1 be the 40th row to 400 row, the position in region 2 be the 425th row to 760 row, remaining line number is then distributed with the position of 3 scales.Every root test tube occupies 35 row in a matrix, namely test tube state by 35 row numeric representation out.1st upper edge arranging the 1st test tube in region 1, be exactly in two-value numerical matrix in the 40th row to 400 row, the 1st row to 300 row first time there is the line number of numerical value 1.From this line number, first 35 row represents that the 1st arranges the 1st test tube and initial test tube, then second 35 row represent that the 1st arranges the 2nd test tube, then the 3rd 35 row then represent that the 1st arranges the 3rd test tube ... the like, determine 8 test tube positions of the 1st row.2nd upper edge arranging the 1st test tube in region 1, be exactly in two-value numerical matrix in the 40th row to 400 row, the 301st row to 600 row first time there is the line number of numerical value 1; Initial test tube and all the other test tube positions of the 2nd row is found out again according to the method for the 1st row.In like manner can calculate all test tube positions in region 2.
Module is 3.---and in every root test tube, find high order end and the low order end of laterally blue rice glue, calculate the virtual length of blue rice glue, be i.e. the number of columns that occupies in numerical matrix of rice glue.
In this module, computation rule in Matlab software is: in two-value numerical matrix, during 35 row 300 that every root test tube is corresponding arrange, find the i-th row and jth row that occur numerical value 1 first with last, then in this test tube, the computing formula of the virtual length x (in units of columns) of rice glue is x=j – i+1.In like manner can the virtual length of all test tubes.
Module is 4.---according to virtual length and the physical length of scale, calculate physical length and the gel consistence of blue rice glue, in units of millimeter mm.When the camera in this law or mobile phone location fix and level time, the virtual length of often opening each scale in photo is all identical.
In this module, the computation rule in Matlab software is: in two-value numerical matrix, and the position of scale I, II, III is respectively the 21st and walks to 30 row, the 411st and walk to 420 row, the 771st and walk to 780 row.Referrer module 3. in, in position of rule, find the number of columns occurring numerical value 1, the virtual length namely calculating scale I, II, III is respectively y
1, y
2, y
3.Rice glue physical length (representing with y, unit mm) in region 1 is with y
1and y
2mean value as physical length 20mm calculate gained, rice glue physical length computing formula is y=40x/ (y
1+ y
2); Rice glue physical length in region 2 is with y
2and y
3mean value as physical length 20mm calculate gained, rice glue physical length computing formula is y=40x/ (y
2+ y
3).When the camera in this law or mobile phone location fix and level time, y
1=y
2=y
3, therefore the rice glue physical length computing formula in region is y=20x/y
1.
During actual use, note what time below:
1, when detecting the gel consistence of Rice Samples, testing staff uses the image measuring method of Rice gel consistency first, should carry out in strict accordance with the five steps of implementation step, after, the position of background board, levels operation platform and camera or mobile phone can remain unchanged.When testing staff detects again, the step 4 of this law, 5 and obtain gel consistence result directly can be carried out.
2, four functional modules (code can be calculated according to software programming) of the present invention) what finally obtain is 32 result datas.When sample tube quantity N does not reach maximum (N<32), have N number of gel consistence value being greater than zero in 32 results, remaining 32-N is null value.
3, in image measurement method implementation step of the present invention, the making of background board is prerequisite and the basis of whole method, and step 3 and step 4 are all committed steps, need strict implement.
Test 1, examine the gel consistence (not carrying out revision test) of 32 different cultivars Rice Samples with the image measuring method in ocular estimate and the present invention, compare the difference of both results.Experimental implementation is as follows:
(1) pre-treatment of Rice Samples and the operation of formation rice glue are according to national standard (GB/T22294-2008): take 100mg Rice Samples and be placed in vitro, add 0.2mL0.025% thymol blue indicator, vibrate 5s on the oscillator, makes sample fully wetting; Add 2mL0.200mol/L potassium hydroxide solution again, and shake test tube; Test tube is put into boiling water bath, builds test tube mouth with glass bead, according to boiling situation, blow with hair-dryer the rice glue height controlling boiling and remain on about 2/3rds of test tube length; Take out test tube after 8min, take off glass bead, at room temperature cool after 5min, then test tube is placed in ice bath cools 20min.That is, define and be positioned at invisible spectro rice glue.
Remarks illustrate: current existing ocular estimate is: at room temperature 25 DEG C, test tube is placed in be lined with scale paper levels operation platform on leave standstill 1h, range estimation rice glue length obtains gel consistence result (see table 1).
(2) in the image measuring method of Rice gel consistency after step 1,2,3, test tube in (1) is moved on background board, according to taking to obtain photo (see Fig. 2 A) after step 4 put correctly, obtain gel consistence result (see table 1) finally by measuring and calculating.
The sample gel consistence result that table 1, two methods obtain
Note: in table, gel consistence is from top to bottom the result of correspondence position test tube in photo.
As shown in Table 1, gel consistence that ocular estimate and image measuring method obtain respectively difference is all less than 3mm, and according to the error of regulation in standard (GB/T22294-2008) within 7mm, therefore image measuring method of the present invention is effective and accurately.The software measuring and calculating code of this law can calculate 32 gel consistence results in 1 to 2 second, and testing staff estimates a gel consistence result and at least needs 2 seconds, illustrates that this law can reach the effect of Quick Measurement, and the speed of its detection and efficiency are higher than ocular estimate.
Test 2, detect the gel consistence (not carrying out revision test) of 24 different cultivars Rice Samples with the image measuring method of Rice gel consistency in the present invention.Testing staff directly takes to obtain photo (see Fig. 2 B) according to the step 4 of this law, then obtains whole gel consistence result (see table 2) by software measuring and calculating.
24 sample gel consistence results that table 2, two methods obtain
Note: in table, gel consistence is from top to bottom the result of correspondence position test tube in photo.
Can be obtained by table 2, in region 2, have 8 gel consistence results and 8 null values, consistent with the test tube position that photo is put, the position of null value has represented vacant 8 test tubes.This calculates gel consistence result and has spent about 1 second, shows that this law more can embody the high feature of its efficiency when sample size is more.
Conventional ocular estimate is adopted to detect the sample of 24 described in this example, the gel consistence result of gained differs in the scope of 0.4mm to 3.1mm with the result of image measuring method of the present invention, meet the requirement of " error is within 7mm " in standard, again illustrate that image measuring method of the present invention is effective and accurately.24 Rice Samples kinds described in this example are not identical with the Rice Samples kind of 32 in embodiment 1, thus prove that the rice of method of the present invention to any kind all has versatility.
Comparative example 1, " central point of camera aligns substantially with the central point of background board " in the implementation step 3 of the image measuring method of Rice gel consistency of the present invention is not done requirement, in this example, the central point of camera departs from about 3 centimetres, background board center; All the other are equal to the present invention; In experiment 1 32 sample is detected.Sample gel consistence contrast situation that the image method that changes and routine visual method obtain has been made in table 3 in this example.
The sample gel consistence result of the image method acquisition of table 3 ocular estimate and change
Can be obtained by table 3, have 3 to be greater than 100mm with in the result of the image method gained after change, and the maximal value of Rice gel consistency be 100mm (total length of test tube), obviously, the distortion of its end value.In 32 samples, the gel consistence phase difference that sample two methods only having 3 gel consistence lower obtain is not more than 7mm, in addition the result difference of 29 samples is then all more than 7mm, do not meet the requirement of " error is within 7mm " in standard, the gel consistence result error that the image method after namely changing calculates gained is too large." central point of camera aligns substantially with the central point of background board " in this routine negative averment implementation step 3 is very important step, immutable.
Comparative example 2, " test tube is laterally placed; test tube is parallel with the upper and lower side of background board; test tube does not exceed regional extent " in the implementation step 4 of the image measuring method of Rice gel consistency of the present invention to be made into " upper and lower side of test tube and background board is at a certain angle, and the regional extent being placed in background board is interior "; All the other are equal to the present invention; In experiment 1 32 sample is detected.Sample gel consistence contrast situation that the image method that changes and routine visual method obtain has been made in table 4 in this example.
The sample gel consistence result of the image method acquisition of table 4 ocular estimate and change
Can be obtained by table 4, the ratio of 7mm is differed by more than up to 93.8% by the result of the image method after change and routine visual method gained, namely the overwhelming majority does not meet the requirement of " error is within 7mm " in standard, illustrates that the gel consistence result of the image method calculating gained after changing is seriously on the low side." test tube is laterally placed, and test tube is parallel with the upper and lower side of background board, and test tube does not exceed regional extent " in this routine negative averment implementation step 4 is important step of the present invention, immutable.
Comparative example 3, " often in row test tube group, test tube and test tube must be close to, and do not interspace " in the implementation step 4 of the image measuring method of Rice gel consistency of the present invention is not done requirement, in the often row test tube group of this example, between test tube and test tube, leave 1mm space; All the other are equal to the present invention; In experiment 1 32 sample is detected.Sample gel consistence contrast situation that the image method that changes and routine visual method obtain has been made in table 5 in this example.
The sample gel consistence result of the image method acquisition of table 5 ocular estimate and change
Can be obtained by table 5, contrast with the image method acquired results after changing and the image method acquired results of the present invention result of image method (in the table 1), finding that the gel consistence result of the first row in region 1,2 is all identical, is the reference position owing to determining test tube in measuring and calculating module.But, after sample gel consistence result change be because test tube between space cause calculation deviation, the sample gel consistence deviation more come below is larger.From the third line in each region, the image method after change differs all more than 7mm with the result of routine visual method gained, does not namely meet the requirement of " error is within 7mm " in standard.Therefore, " test tube and test tube must be close to, and do not interspace " in this routine negative averment implementation step 4 is important step of the present invention, immutable.
Generally speaking, the image measuring method of Rice gel consistency of the present invention is a kind of method of quick, Accurate Determining Rice gel consistency.
Finally, it is also to be noted that what enumerate above is only several specific embodiments of the present invention.Obviously, the invention is not restricted to above embodiment, many distortion can also be had.All distortion that those of ordinary skill in the art can directly derive from content disclosed by the invention or associate, all should think protection scope of the present invention.
Claims (4)
1. the image measuring method of Rice gel consistency, is characterized in that comprising the steps:
1), the making of background board:
Background board is the white background plate of A4 size, and background board is provided with and is parallel to each other and keeps 3 scales of spacing, the region between 2 adjacent scales is the test tube placement area for putting test tube;
2), the layout of levels operation platform:
Above-mentioned background plate is placed on levels operation platform;
3), the take pictures position of instrument is determined:
To take pictures the height of distance of camera lens background board at least 30cm of instrument, and the central point of the central point alignment white background plate of the camera lens of the instrument that makes to take pictures;
4), the putting and the acquisition of photo of test tube:
After some being equipped with the cooling that rice to be measured formed, the test tube of rice glue carries out following operation immediately: put into test tube placement area, the axial line of test tube parallels with scale; In a test tube placement area, arrange the test tube group that two row are spaced, the test tube in each test tube group is close to mutually;
After rice glue at room temperature places 1 hour after cooling, utilize step 3) described in instrument of taking pictures the test tube on background board is taken pictures simultaneously;
5), utilize step 4) take pictures acquired results measuring and calculating rice gel consistence:
Described measuring and calculating is completed by following four functional modules:
Functional module is 1.: photo is converted to two-value numerical matrix;
Functional module is 2.: the position judging each test tube in the often row test tube group in each test tube placement area according to the binary number value matrix of functional module 1. gained;
Functional module is 3.: according to the position of the every root test tube in each test tube placement area of functional module 2. gained, calculate the virtual length being positioned at each invisible spectro rice glue successively;
Functional module is 4.: the virtual length according to the functional module 3. each invisible spectro rice glue of gained calculates the gel consistence of sample according to the scale of correspondence.
2. the image measuring method of Rice gel consistency according to claim 1, is characterized in that:
Described step 1) be:
White background plate is longitudinally placed, and white background plate is printed on 3 20mm black scales, and scale I is positioned at along 8mm place on distance white background plate, and scale II is positioned at white background plate centre, scale III be positioned at apart under white background plate along 8mm place;
Region between scale I and scale II forms a test tube placement area, between scale II and scale III region be another test tube placement area.
3. the image measuring method of Rice gel consistency according to claim 2, is characterized in that:
Described step 4) in: the often row test tube group in each test tube placement area places at most 8 test tubes;
The photo size size of shooting controls to be 800 × 600 pixels.
4., according to the image measuring method of the arbitrary described Rice gel consistency of claims 1 to 3, it is characterized in that:
Described step 5) specific as follows:
Functional module is 1.: convert the photo of 800 × 600 pixels to binary number value matrix;
Functional module is 2.: judge the position of initial test tube in photo in the often row test tube group in each test tube placement area according to the binary number value matrix of functional module 1. gained; Thus determine the position of each test tube in the often row test tube group in each test tube placement area further;
Functional module is 3.: according to the position of the every root test tube in each test tube placement area of functional module 2. gained, calculate the virtual length being positioned at each invisible spectro rice glue successively:
In every root test tube, find high order end and the low order end of horizontal rice glue, calculate the virtual length of rice glue, be i.e. the number of columns that occupies in numerical matrix of rice glue;
Functional module is 4.: according to virtual length and the physical length of scale, calculates physical length and the gel consistence of rice glue, in units of millimeter mm; When instrumented site of taking pictures fix and level time, the virtual length of often opening each scale in photo is all identical.
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 true CN105547919A (en) | 2016-05-04 |
CN105547919B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109556992A (en) * | 2018-11-27 | 2019-04-02 | 中国水稻研究所 | A kind of preparation method of Rice gel consistency standard substance |
Citations (6)
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 |
-
2015
- 2015-12-09 CN CN201510900845.0A patent/CN105547919B/en active Active
Patent Citations (6)
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 (3)
Title |
---|
何学超,等: "《GB/T 22294-2008 粮油检验 大米胶稠度的测定》", 4 August 2008 * |
石礼娟,等: "谷物检测中机器视觉技术的应用进展", 《湖北农业科学》 * |
陈建华,等: "机器视觉在稻米粒型检测中的应用", 《中国水稻科学》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109556992A (en) * | 2018-11-27 | 2019-04-02 | 中国水稻研究所 | A kind of preparation method of Rice gel consistency standard substance |
Also Published As
Publication number | Publication date |
---|---|
CN105547919B (en) | 2018-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103559484B (en) | The method for quickly identifying of measuring instrument graduation mark | |
CN108844471B (en) | Measurement method and device of a kind of pair of round piece marginal trough region to center of circle development length | |
CN105946370A (en) | Laser marking device and calibration method thereof | |
CN201904067U (en) | Nonuniform point-by-point correction system for full-color LED display screen | |
CN111008614A (en) | Waterless ruler water level reading method based on video | |
CN1952599A (en) | A flat leaf area nondestructive measuring system and method thereof | |
CN101949746A (en) | Automatic calibration method of visual thermometer and automatic thermometer calibrator | |
CN106956505A (en) | Method and device for acquiring ink consumption | |
CN105547919A (en) | Image measuring method of gel consistency of rice | |
CN1987879A (en) | Automatic evaluating system and method for female body shape beauty | |
JP2016034235A (en) | pH DETERMINATION APPARATUS, pH MEASURING INSTRUMENT, pH DETERMINATION METHOD, AND pH DETERMINATION PROGRAM | |
CN104458736B (en) | A kind of device and detection method for Detecting Pesticide | |
CN204929966U (en) | A kind of device for automatic evaluation milk cow body condition mark | |
CN102419861A (en) | Color image correcting method based on topology subdivision of uniform color space | |
CN101852711B (en) | Device for automatically detecting glass capillary tube viscometer and processing method thereof | |
CN107883825A (en) | A kind of intelligent visual detection method for the slide measure zero graduation line that aligns | |
CN116070885B (en) | User course learning progress monitoring system for online learning platform | |
CN107976234A (en) | A kind of water meter meter correcting system and its correction method | |
CN107583264A (en) | A kind of physical culture sitting body anteflexion and type register for sit-ups and application method | |
CN102547372A (en) | Method for determining color lookup table parameters of liquid crystal display television and system device therefore | |
CN203323799U (en) | Device for fast measuring growth traits of fishes | |
US20230349687A1 (en) | Plant dimension measuring method | |
CN102889883B (en) | Object space attitude measurement device | |
CN201681032U (en) | Device for automatically detecting glass capillary viscosimeter | |
CN201476850U (en) | Gas meter detection system |
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 |