CN110458882A - A kind of fruit phenotype test method based on computer vision - Google Patents
A kind of fruit phenotype test method based on computer vision Download PDFInfo
- Publication number
- CN110458882A CN110458882A CN201910761060.8A CN201910761060A CN110458882A CN 110458882 A CN110458882 A CN 110458882A CN 201910761060 A CN201910761060 A CN 201910761060A CN 110458882 A CN110458882 A CN 110458882A
- Authority
- CN
- China
- Prior art keywords
- fruit
- color
- computer vision
- method based
- test method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30181—Earth observation
- G06T2207/30188—Vegetation; Agriculture
Abstract
The present invention relates to a kind of fruit phenotype test method based on computer vision, includes the following steps: that fruit is fixed on survey production accessory plate using fixator and take pictures;Carry out binary conversion treatment, edge detection and outer profile confirmation;The minimum external matrix comprising characteristic image is obtained by PYTHON OPENCV algorithm, obtains the length and diameter of fruit using MINAREARECT algorithm;It is compared by dividing fruit colour generation region and standard color card, finds consistent colour atla, the color value that each region colour atla obtains is reverted into the divided each region of fruit, restore the tested true color of fruit.A kind of fruit phenotype test method based on computer vision, solves deficiency existing for labor measurement and Instrument measuring in previous fruit phenotype test, it can accomplish measurement rapidly and efficiently, the accuracy rate for measuring fruit length, diameter and color is high, provides accurate data information to survey to produce to analyze.
Description
Technical field
The present invention relates to a kind of fruit phenotype test methods based on computer vision, belong to image recognition technology neck
Domain.
Background technique
As people's quality of the life constantly improves, to fruit (such as corncob, wheatear, apple, banana)
Quality and output demand are higher and higher, and it is an important link, fruit phenotype that fruit, which surveys production, during plant production
Length, diameter, the color of middle fruit are to survey index important in production.At this stage, fruit, which is surveyed, produces in the process by artificial complete
At fruit phenotype test, great work intensity, working efficiency are low, measurement error rate is high;Fruit table is carried out by instrument
Type measurement, accuracy is more manually obviously improved, but minute is long, in addition because by light, irradiating angle etc. it is extraneous because
Element influences, and the fruit color of measurement also has certain error.Currently, this status can be changed by lacking a method.
Summary of the invention
The present invention to solve the above-mentioned problems, provides a kind of fruit phenotype test side based on computer vision
Method includes the following steps:
Step 1, fruit is taken pictures: fruit being fixed on survey production accessory plate and is taken pictures, fruit is obtained
Image;It includes measured zone and standard color card region that wherein the survey, which produces accessory plate, and the fruit is fixed on the survey
Measure region;
Step 2, binary conversion treatment: 0 or 255 is set by the gray value of the pixel of the fruit image of step 1, is made
It obtains entire fruit image and black and white effect is presented;
Step 3, the fruit image after step 2 binary conversion treatment edge detection: is subjected to edge detection;
Step 4, outer profile confirms: after the edge detection of step 3, the outer profile of fruit in two-dimensional surface is extracted,
The vertical and horizontal line of measurement plate, scale and fruit plane outer profile are only showed in final image;
Step 5, length and diameter measures: the fruit characteristic image that step 4 generates is calculated by PYTHON OPENCV
Method obtains the minimum external matrix comprising characteristic image, and MINAREARECT algorithm is used to obtain fruit length and diameter;
Step 6, color region divides: the fruit characteristic image that step 1 generates is divided into multiple color regions, this
A little color regions are used for the comparison of next step, and color region division is finer, and measurement result is more accurate;
Step 7, colour measurement: each field color that step 3 is divided is compared with standard color card, finds consistent colour atla,
The color value that each region colour atla obtains is reverted into the divided each region of fruit, each colour atla can mark exclusion any
The actual color value of colour atla after interference, because under the influence of the extraneous factors such as intensity of illumination, lighting angle direction, shooting distance,
The color value of reaction and difference is actually had existed, and obtain colour atla label color value, can obtain that be tested fruit phenotype true
Real color.
Further, it is magnetic panel that the survey, which produces accessory plate material,.
Further, the measured zone is by the vertical intertexture component units lattice matrix of several horizontal lines and vertical line, and each
Cell has scale.
Further, the minimum scale value of the horizontal line and vertical line is 2.5 pixels.
It further, further include fixator, the fixator magnetic produces auxiliary plate top surface in the survey.
3. beneficial effect
In conclusion the beneficial effects of the invention are that:
(1) the present invention provides a kind of fruit phenotype test method based on computer vision, the method is by survey
It produces accessory plate to be measured fruit phenotype, image procossing is carried out by series of computation machine vision technique, is passed through
PYTHON OPENCV algorithm obtains the minimum external matrix comprising characteristic image can using function MINAREARECT algorithm
Accurately obtain the length and diameter of fruit;
(2) present invention is compared by dividing fruit colour generation region and standard color card, excludes external interference factor, reduction
The actual color of fruit phenotype.A kind of fruit phenotype test method based on computer vision, solves previous plant
Deficiency present in the measurement of object fruit phenotype can accomplish that measurement rapidly and efficiently, measurement accuracy rate are high, provide to survey to produce to analyze
Accurate data information.
Detailed description of the invention
Fig. 1 is that survey of the invention produces accessory plate schematic diagram;
Fig. 2 is measurement flow chart of the invention;
Fig. 3 is the fruit length of fruit phenotype of the present invention, diameter algorithm schematic diagram.
Figure label: 1-, which is surveyed, produces accessory plate;2- measurement plate;3- standard color card;4- fixator.
Specific embodiment
The present invention will be further described combined with specific embodiments below, but the present invention should not be limited by the examples.
Embodiment: for using corncob as tested fruit
It refers to shown in attached drawing 1 to attached drawing 3, a kind of fruit phenotype test method based on computer vision, including
Following steps:
Step 1, corncob to be measured is put in the measured zone 2 surveyed and produce accessory plate 1, is being measured if you need to stablize corncob
The fixator 4 is mounted in measured zone 2 by 2 position of region, corncob is then inserted into 4 top of fixator, so
It takes pictures afterwards to corncob, obtains corncob image;
Step 2, binary conversion treatment: setting 0 or 255 for the gray value of the pixel of the corncob image of step 1, so that
Black and white effect is presented in entire corncob image;
Step 3, the corncob image after step 2 binary conversion treatment edge detection: is subjected to edge detection;
Step 4, outer profile confirms: after the edge detection of step 3, extracting the outer profile of corncob in two-dimensional surface, In
The vertical and horizontal line of measurement plate, scale and corncob plane outer profile are only showed in final image;
Step 5, the corncob characteristic image that step 4 generates corncob length and measuring diameter: is passed through into PYTHON
OPENCV algorithm obtain include characteristic image minimum external matrix, using MINAREARECT algorithm obtain corncob length with
Diameter;
Step 6, color region divides: the corncob characteristic image that step 1 generates is divided into multiple color regions;
Step 7, corncob colour measurement: each field color that step 3 is divided is compared with standard color card, is found consistent
The color value that each region colour atla obtains is reverted to the divided each region of corncob, shows the true face of corncob by colour atla
Color.
Although the present invention has been disclosed in the preferred embodiment as above, it is not intended to limit the invention, any to be familiar with this
The people of technology can do various changes and modification, therefore protection of the invention without departing from the spirit and scope of the present invention
Range should subject to the definition of the claims.
Claims (5)
1. a kind of fruit phenotype test method based on computer vision, which comprises the steps of:
Step 1, fruit is taken pictures: fruit being fixed on survey production accessory plate and is taken pictures, fruit image is obtained;
It includes measured zone and standard color card region that wherein the survey, which produces accessory plate, and the fruit is fixed on the measurement zone
Domain;
Step 2, binary conversion treatment: 0 or 255 is set by the gray value of the pixel of the fruit image of step 1, so that whole
Black and white effect is presented in a fruit image;
Step 3, the fruit image after step 2 binary conversion treatment edge detection: is subjected to edge detection;
Step 4, outer profile confirms: after the edge detection of step 3, the outer profile of fruit in two-dimensional surface is extracted, most
The vertical and horizontal line of measurement plate, scale and fruit plane outer profile are only showed in whole image;
Step 5, length and diameter measures: the fruit characteristic image that step 4 generates is obtained by PYTHON OPENCV algorithm
The minimum external matrix comprising characteristic image is taken, obtains fruit length and diameter using MINAREARECT algorithm;
Step 6, color region divides: the fruit characteristic image that step 1 generates is divided into multiple color regions;
Step 7, colour measurement: each field color that step 3 is divided is compared with standard color card, finds consistent colour atla, will be each
The color value that region colour atla obtains reverts to the divided each region of fruit, shows the true face of tested fruit
Color.
2. a kind of fruit phenotype test method based on computer vision according to claim 1, it is characterised in that:
It is magnetic panel that the survey, which produces accessory plate material,.
3. a kind of fruit phenotype test method based on computer vision according to claim 1, it is characterised in that:
The measured zone is by the vertical intertexture component units lattice matrix of several horizontal lines and vertical line, and each cell has scale.
4. a kind of fruit phenotype test method based on computer vision according to claim 3, it is characterised in that:
The minimum scale value of the horizontal line and vertical line is 2.5 pixels.
5. a kind of fruit phenotype test method based on computer vision according to claim 2, it is characterised in that:
It further include fixator, the fixator magnetic produces auxiliary plate top surface in the survey.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910761060.8A CN110458882A (en) | 2019-08-17 | 2019-08-17 | A kind of fruit phenotype test method based on computer vision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910761060.8A CN110458882A (en) | 2019-08-17 | 2019-08-17 | A kind of fruit phenotype test method based on computer vision |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110458882A true CN110458882A (en) | 2019-11-15 |
Family
ID=68487308
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910761060.8A Pending CN110458882A (en) | 2019-08-17 | 2019-08-17 | A kind of fruit phenotype test method based on computer vision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110458882A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112839216A (en) * | 2021-01-13 | 2021-05-25 | 合肥埃科光电科技有限公司 | Image color correction method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105091849A (en) * | 2014-05-05 | 2015-11-25 | 南京理工大学 | Optical axis nonlinear binocular range finding method |
CN106895772A (en) * | 2015-12-20 | 2017-06-27 | 杨宗保 | Expansion link magnetic bracing wire container deformation measurement sheathing tool |
CN108024107A (en) * | 2017-12-06 | 2018-05-11 | 广东欧珀移动通信有限公司 | Image processing method, device, electronic equipment and computer-readable recording medium |
US20180240228A1 (en) * | 2017-02-23 | 2018-08-23 | Jonathan A. Jackson | Selective Plant Detection and Treatment Using Green Luminance Photometric Machine Vision Scan with Real Time Chromaticity Operations and Image Parameter Floors for Low Processing Load |
CN109146978A (en) * | 2018-07-25 | 2019-01-04 | 南京富锐光电科技有限公司 | A kind of high speed camera image deformation calibrating installation and method |
CN109242791A (en) * | 2018-08-22 | 2019-01-18 | 东北农业大学 | A kind of batch restorative procedure for damaged plant leaf blade |
-
2019
- 2019-08-17 CN CN201910761060.8A patent/CN110458882A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105091849A (en) * | 2014-05-05 | 2015-11-25 | 南京理工大学 | Optical axis nonlinear binocular range finding method |
CN106895772A (en) * | 2015-12-20 | 2017-06-27 | 杨宗保 | Expansion link magnetic bracing wire container deformation measurement sheathing tool |
US20180240228A1 (en) * | 2017-02-23 | 2018-08-23 | Jonathan A. Jackson | Selective Plant Detection and Treatment Using Green Luminance Photometric Machine Vision Scan with Real Time Chromaticity Operations and Image Parameter Floors for Low Processing Load |
CN108024107A (en) * | 2017-12-06 | 2018-05-11 | 广东欧珀移动通信有限公司 | Image processing method, device, electronic equipment and computer-readable recording medium |
CN109146978A (en) * | 2018-07-25 | 2019-01-04 | 南京富锐光电科技有限公司 | A kind of high speed camera image deformation calibrating installation and method |
CN109242791A (en) * | 2018-08-22 | 2019-01-18 | 东北农业大学 | A kind of batch restorative procedure for damaged plant leaf blade |
Non-Patent Citations (3)
Title |
---|
于向阳: "机器视觉在仪表监控识别系统中的应用", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 * |
崔世钢等: "基于Lab颜色空间和遗传算法的苦苣菜叶片病斑分割", 《天津职业技术师范大学学报》 * |
肖志涛等: "深度约束的零件尺寸测量系统标定方法", 《红外与激光工程》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112839216A (en) * | 2021-01-13 | 2021-05-25 | 合肥埃科光电科技有限公司 | Image color correction method and device |
CN112839216B (en) * | 2021-01-13 | 2022-07-19 | 合肥埃科光电科技股份有限公司 | Image color correction method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109284718B (en) | Inspection robot-oriented variable-view-angle multi-instrument simultaneous identification method | |
CN103499303B (en) | A kind of wool fineness method for automatic measurement | |
CN109993154B (en) | Intelligent identification method for single-pointer sulfur hexafluoride instrument of transformer substation | |
CN104122271A (en) | Automated optical inspection (AOI)-based bullet apparent defect detection method | |
CN105241638A (en) | Vision-based quick LED module brightness uniformity detection method | |
CN104537651B (en) | Proportion detecting method and system for cracks in road surface image | |
KR20100015628A (en) | Lumber inspection method, device and program | |
CN109409290B (en) | Thermometer verification reading automatic identification system and method | |
CN105404869A (en) | Computer vision based fruit shape grading method | |
WO2023168972A1 (en) | Linear array camera-based copper surface defect detection method and apparatus | |
CN109872309A (en) | Detection system, method, apparatus and computer readable storage medium | |
CN106855951A (en) | A kind of grain kind quality detecting method based on computer vision | |
CN108416766A (en) | Bilateral incidence type light guide plate defective vision detection method | |
CN103645573A (en) | Liquid crystal display (LCD) detection method and system based on machine vision | |
CN106501272B (en) | Machine vision soldering tin positioning detection system | |
CN109978940A (en) | A kind of SAB air bag size vision measuring method | |
CN106937109B (en) | The method that low cost judges resolution ratio of camera head level | |
CN114119526A (en) | Steel plate surface defect detection and identification system and method based on machine vision | |
CN116309191B (en) | Intelligent gas inspection display method based on image enhancement | |
CN106709529B (en) | Visual detection method for photovoltaic cell color difference classification | |
CN106845545A (en) | Image-recognizing method and device in digital electric measuring instrument automatic calibrator | |
CN104749801B (en) | High Precision Automatic optical detecting method and system | |
CN110688996A (en) | Embedded automatic ruler reading device and method based on visual sensing | |
CN110766683B (en) | Pearl finish grade detection method and system | |
CN109241948A (en) | A kind of NC cutting tool visual identity method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20191115 |