CN109059808A - Method for measuring leaf area, system, storage medium and mobile terminal - Google Patents

Method for measuring leaf area, system, storage medium and mobile terminal Download PDF

Info

Publication number
CN109059808A
CN109059808A CN201810926020.XA CN201810926020A CN109059808A CN 109059808 A CN109059808 A CN 109059808A CN 201810926020 A CN201810926020 A CN 201810926020A CN 109059808 A CN109059808 A CN 109059808A
Authority
CN
China
Prior art keywords
image
correcting plate
blade
pixels
reference substance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810926020.XA
Other languages
Chinese (zh)
Inventor
齐龙
刘海云
马旭
邓向武
林少敏
龚浩
李帅
曹聪
袁志成
陶明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China Agricultural University
Original Assignee
South China Agricultural University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by South China Agricultural University filed Critical South China Agricultural University
Priority to CN201810926020.XA priority Critical patent/CN109059808A/en
Publication of CN109059808A publication Critical patent/CN109059808A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/28Measuring arrangements characterised by the use of optical techniques for measuring areas
    • G01B11/285Measuring arrangements characterised by the use of optical techniques for measuring areas using photoelectric detection means

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of method for measuring leaf area, system, storage medium and mobile terminals, which comprises obtains comprising the first image including correcting plate, tested blade and multiple reference substances on correcting plate;It is two regions of background and correcting plate by the first image segmentation, the correcting plate in the first image is subjected to projection transform, obtains the second image;Second image is handled, by the image data after traversal processing, obtains the sum of all pixels of the sum of all pixels of correcting plate, the sum of all pixels of each reference substance and tested blade;A reference substance with the tested immediate reference substance of blade sum of all pixels as tested blade is chosen, according to the sum of all pixels of the given area of the reference substance, the sum of all pixels of the reference substance and tested blade, obtains the area of tested blade.Present invention reduces detection times, improve measurement accuracy, can preferably be applied to blade area and measure.

Description

Method for measuring leaf area, system, storage medium and mobile terminal
Technical field
The present invention relates to a kind of method for measuring leaf area, especially a kind of method for measuring leaf area, system, storage are situated between Matter and mobile terminal belong to agriculture intelligent measurement field.
Background technique
Plant leaf blade is that plant carries out the vitals of photosynthesis synthesis of organic substance and plant carries out the main of transpiration Approach.The various parameters for studying plant leaf blade all have very growth and development, crop yield and cultivation management of plant etc. Important meaning.The size of blade area is to measure one of the index of plant photosynthetic capability, and the variation of blade area is plant again One of development index and environmental change index.Therefore accurate measurement blade area and its variation to grasp development of plants state, Solution plant to the response of environment, determine that reasonable management environment mode has great importance.
The method multiplicity of current vane area measurement, wherein blade area instrument method and image measurement method use more.At present Blade area mostly is measured using hand-held blade area instrument both at home and abroad, such blade area instrument is small and exquisite portable, but needs when measurement The speed that blade pulls out under scanning board is accurately controlled, troublesome in poeration and precision is low.And image treating mostly uses plane to sweep It retouches instrument or overlooks photographic process and obtain image, image obtains the area of blade by computer disposal.But the survey of blade area Amount is many times outer development out of office, it is desirable that can quickly complete error caused by prevent leaf abscission from shrinking, sometimes very To the measurement for needing to complete blade area on plants, these conditions use the survey of large-scale, high power consumption in field to people Measuring appratus brings inconvenience, it is difficult to complete the measurement of blade area.
Summary of the invention
The first purpose of this invention is the defect in order to solve the above-mentioned prior art, provides a kind of blade area measurement Method, this method shorten detection time, improve measurement accuracy, can preferably be applied to blade area and measure, and due to Realize that light small and exquisite, operation is simple, is not influenced by power supply, and the blade face in field is particularly adapted in mobile terminal Product measurement.
Second object of the present invention is to provide a kind of blade area measuring system.
Third object of the present invention is to provide a kind of storage medium.
Fourth object of the present invention is to provide a kind of mobile terminal.
The first purpose of this invention can be reached by adopting the following technical scheme that:
Method for measuring leaf area, the method are applied to mobile terminal, comprising:
It obtains comprising the first image including correcting plate, tested blade and multiple reference substances on correcting plate;Wherein, described The area of correcting plate is greater than the area of tested blade and reference substance, the solid colour of the reference substance and be different from correcting plate and by Survey the color of blade, the color of the color of correcting plate also different from tested blade;
It is two regions of background and correcting plate by the first image segmentation, the correcting plate in the first image is subjected to projection and is turned It changes, obtains the second image;
Second image is handled, by the image data after traversal processing, obtains the sum of all pixels, each of correcting plate The sum of all pixels of the sum of all pixels of reference substance and tested blade;
A reference substance with the tested immediate reference substance of blade sum of all pixels as tested blade is chosen, according to the ginseng The sum of all pixels for examining the given area of object, the sum of all pixels of the reference substance and tested blade obtains the area of tested blade.
Further, the correcting plate is fixed on a lower plate, and the lower plate is covered by a upper clamp plate, makes correcting plate On tested blade fix;Wherein, the color of the correcting plate is different from the color of lower plate, and upper cover plate is transparent panel.
Further, it is described by the first image segmentation be two regions of background and correcting plate, by the correction in the first image Plate carries out projection transform, obtains the second image, specifically includes:
The determining and one-to-one distortion correction point of check point on the correcting plate in the first image;Wherein, the correction Point is four vertex on correcting plate;
Virtual correcting plate is established, determination is empty correspondingly with check point, distortion correction point on the virtual correcting plate Quasi- check point, and determine each virtual check point coordinate;
By each distortion correction point coordinate and corresponding virtual check point coordinate matching, image transformation matrix is obtained, as follows:
Wherein, (x, y) is the distortion correction point coordinate on the first image, and (u, v) is the virtual correction on virtual correcting plate Point coordinate, A-H is the parameter in image transformation matrix, and λ is image scale, value 1;
The inverse matrix of first image and described image transformation matrix is carried out product calculating, obtained by the value for solving parameter A-H Second image.
Further, the check point presses identical starting with corresponding distortion correction point, corresponding virtual check point respectively Position and identical direction number.
Further, described that second image is handled, it specifically includes:
Gray processing, filtering, binaryzation, Morphological scale-space are successively carried out to the second image.
Further, gray processing processing is carried out to the second image, specifically included:
It is weighted and averaged by tri- components of RGB of weighted mean method to the second image, the second image is become into gray scale Figure.
Further, the second image after gray processing is filtered, is specifically included:
The second image after gray processing is weighted and averaged, the value of each pixel, all by the pixel itself and this Other pixel values in neighborhood of pixel points obtain after being weighted averagely.
Further, binary conversion treatment is carried out to filtered second image, specifically included:
The corresponding number of pixels of each grayscale of calculating 0~255, saves into an array, which is gray value, is protected Depositing content is current grayvalue respective number of pixels;
Calculate average gray, the background image pixels number proportion of background image;
Calculate average gray, the foreground image pixel number proportion of foreground image;
0~255 each grayscale is traversed, calculates and finds inter-class variance maximum;
When inter-class variance obtains maximum, corresponding threshold value is threshold value required by Da-Jin algorithm.
Second object of the present invention can be reached by adopting the following technical scheme that:
Blade area measuring system, the system are applied to mobile terminal, comprising:
Image collection module, for obtaining comprising including the tested blade and multiple reference substances on correcting plate, correcting plate First image;Wherein, the area of the correcting plate is greater than the area of tested blade and reference substance, the solid colour of the reference substance And it is different from the color of correcting plate and tested blade, the color of the color of correcting plate also different from tested blade;
Image correction module will be in the first image for being two regions of background and correcting plate by the first image segmentation Correcting plate carries out projection transform, obtains the second image;
Image processing module, by the image data after traversal processing, is corrected for handling the second image The sum of all pixels of the sum of all pixels of plate, the sum of all pixels of each reference substance and tested blade;
Blade area obtains module, for choosing the tested immediate reference substance of blade sum of all pixels as tested leaf The reference substance of piece is obtained according to the sum of all pixels of the given area of the reference substance, the sum of all pixels of the reference substance and tested blade To the area of tested blade.
Third object of the present invention can be reached by adopting the following technical scheme that:
Storage medium is stored with program, when described program is executed by processor, realizes above-mentioned blade area measurement side Method.
Fourth object of the present invention can be reached by adopting the following technical scheme that:
Mobile terminal, including processor and for the memory of storage processor executable program, the processor is held When the program of line storage storage, above-mentioned method for measuring leaf area is realized.
The present invention have compared with the existing technology it is following the utility model has the advantages that
1, the present invention tested blade and multiple reference substances can be arranged on a correcting plate, directly be clapped by mobile terminal It takes the photograph or obtains from the picture library of mobile terminal comprising the shooting including the tested blade and multiple reference substances on correcting plate, correcting plate Shooting image is divided into two regions of background and correcting plate by image, will be shot the correcting plate in image and is carried out projection transform, obtains To the orthograph picture of correcting plate, by handling and traverse, obtain the sum of all pixels of correcting plate, each reference substance sum of all pixels with And the sum of all pixels of tested blade can automatically select and tested blade according to the actual situation due to being provided with multiple reference substances Reference substance of the immediate reference substance of sum of all pixels as tested blade, improves measurement accuracy, and due in mobile terminal It realizes, light small and exquisite, operation is simple, is not influenced by power supply, and the blade area measurement in field is particularly adapted to.
2, correcting plate is fixed on lower plate by the present invention, and lower plate is covered by a upper clamp plate, so that tested blade be consolidated It is fixed, make tested leveling blade, do not require the camera of mobile terminal must be vertical with blade face holding when shooting leaf image, uses Family only needs taken freehand that can meet the requirements.
3, the present invention is using four vertex on correcting plate as check point, the determining and school on the correcting plate in shooting image One-to-one distortion correction point on schedule, and virtual correcting plate is established, and determining and check point, deformation on virtual correcting plate Check point virtual check point correspondingly, the orthograph picture of correcting plate is obtained by automatic identification check point, can effectively be mentioned High measurement accuracy, timeliness and saving human resources.
4, present invention reduces detection times, improve measurement accuracy, can preferably be applied to blade area and measure.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with The structure shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the method flow diagram that the blade area of the embodiment of the present invention 1 measures.
Fig. 2 is the three-dimensional structure diagram of the fixed device of blade of the embodiment of the present invention 1.
Fig. 3 is that correcting plate is fixed on the structure chart on lower clamp plate in the fixed device of blade of the embodiment of the present invention 1.
Fig. 4 is the geometric correction flow chart in the method for measuring leaf area of the embodiment of the present invention 1.
Fig. 5 is the blade area measuring system structural block diagram of the embodiment of the present invention 2.
Fig. 6 is the blade area Survey Software main interface figure that the mobile terminal of the embodiment of the present invention 4 is installed.
Fig. 7 is that the blade area Survey Software that the mobile terminal of the embodiment of the present invention 4 is installed is taken pictures surface chart.
Fig. 8 is that the blade area Survey Software that the mobile terminal of the embodiment of the present invention 4 is installed inquires picture library surface chart.
Fig. 9 be the embodiment of the present invention 4 mobile terminal install blade area Survey Software take pictures completion or selection picture Surface chart afterwards.
Figure 10 is the blade area Survey Software surface chart as the result is shown that the mobile terminal of the embodiment of the present invention 4 is installed.
Wherein, 1- upper clamp plate, 2- lower clamp plate, 3- correcting plate, 4- first handle, 5- second handle, the first reference substance of 6-, 7- Second reference substance, 8- third reference substance, 9- are tested blade.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiments of the present invention, instead of all the embodiments, based on the embodiments of the present invention, ordinary skill people Member's every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Embodiment 1:
As shown in Figure 1, present embodiments providing a kind of method for measuring leaf area, this method is applied to mobile terminal, packet Include following steps:
S1, it obtains comprising the first image including correcting plate, tested blade and multiple reference substances on correcting plate.
It is the pure white rectangular tab of 21cm × 29.7cm as correcting plate, and selection that the present embodiment, which selects a block specifications, The reference substance of three pure colors, and three reference substances are fixed on to the first surface of correcting plate, the present embodiment consolidates three reference substances It is scheduled on the left side of correcting plate first surface, shape, rule and the area of three reference substances determine, solid colour and are different from correction The color of plate and tested blade, specifically, three reference substances are rectangular tab, and area is respectively 12cm2、24cm2、42cm2, Color is black, and tested blade is placed on to the first surface of correcting plate, and tested blade is placed on correcting plate by the present embodiment The right side on one surface cannot be overlapped between tested blade and three reference substances.
In order to make tested leveling blade, preferably to measure to tested blade, the present embodiment devises a blade Fixed device, the device is as shown in Figures 2 and 3, including upper clamp plate 1, lower plate 2, above-mentioned correcting plate 3 and three above-mentioned ginsengs Object is examined, upper clamp plate 1 is transparent acrylic board, and lower plate 2 is black colour table, and upper clamp plate 1 can be opened or be closed with respect to lower plate 2 It closes, it is seen that upper clamp plate 1 and lower plate 2 constitute a fixture, it is preferable that the device further includes first handle 4 and second handle 5, first handle 4 is fixedly connected with upper clamp plate 1, and second handle 5 is fixedly connected with lower plate 2, first handle 4 and second handle 5 Hingedly, the second surface of correcting plate 3 is fixed on the upper surface of lower plate 2, and three reference substances are respectively the first reference substance 6, second Reference substance 7 and third reference substance 8 make upper clamp plate 1 and lower plate clamp fixation by sharing first handle 4 and second handle 5, To fix tested blade 9, keep tested blade 9 smooth.
The present embodiment is using HUAWEI nova mobile phone as hardware platform, using 7.0 operating system of Android as software platform, User utilizes the mobile phone taken freehand, obtains in 2 region of lower plate, includes the tested blade and three on correcting plate, correcting plate 3 The first image including a reference substance (the first reference substance 6, the second reference substance 7 and third reference substance 8), shooting angle is any, but It is noted that guaranteeing correcting plate 3, the first reference substance 6, the second reference substance 7, third reference substance 8, being tested the clear of blade 9, can make With close-perspective recording and focal length mode, after shooting, first handle 4 and second handle 5 can be separated, take out tested blade 9, shooting The first image can directly acquire, can also be first stored in the picture library of mobile phone, then be obtained by way of calling.
S2, by the first image segmentation be two regions of background and correcting plate, the correcting plate in the first image is projected Conversion, obtains the second image.
Specifically, using four vertex of correcting plate as check point, and according to check point coordinate position and its in the first figure Image conversion is carried out based on the corresponding relationship between coordinate position as in, obtains the second image, which is to correct The orthograph picture of plate, the process are geometric correction process, as shown in Figure 4, comprising the following steps:
S201, the determining and one-to-one distortion correction point of check point on the correcting plate in the first image;Wherein, described Check point is four vertex on correcting plate.
S202, virtual correcting plate is established, determination is virtual correspondingly with distortion correction point on the virtual correcting plate Check point, and determine each virtual check point coordinate.
Specifically, virtual correcting plate is the virtual orthographic projection figure of correcting plate in the first image, virtual check point and correction At one-to-one relationship, the coordinate of each virtual check point has determined that point;Wherein, the check point and corresponding distortion correction point, Virtual check point presses identical initial position and identical direction number respectively, i.e., check point with corresponding distortion correction point, virtually Check point constitutes one group of check point, then each group of check point is identically numbered.
S203, by each distortion correction point coordinate and corresponding virtual check point coordinate matching, obtain image transformation matrix.
When first image is converted to the second image, principle is: turning from a plane to the projection of another plane Changing can be indicated with one 3 × 3 image transformation matrix, following equation (1):
Wherein, (x, y) is the distortion correction point coordinate on the first image, and (u, v) is the virtual correction on virtual correcting plate Point coordinate, A-H is the parameter in image transformation matrix, and λ is image scale, and value is defaulted as 1 in solution procedure.
The inverse matrix of first image and described image transformation matrix is carried out product meter by S204, the value for solving parameter A-H It calculates, obtains the second image.
Assuming that λ=1, then equation (1) at least needs the coordinate of four pair of first image and its corresponding points on the second image It solves, obtains eight systems of linear equations, to solve eight unknown matrix parameters (A-H) in matrix, equation group has solution Condition be in four control points any three not point-blank, using the available corresponding solution of least square method, see with Lower equation (2):
Wherein, T is matrix transposition operator.
The value for solving parameter A-H, plugs these values into equation (1), by the inverse of the first image and described image transformation matrix Matrix carries out product calculating, obtains the second image.
It is appreciated that the present embodiment is using check point as the basis that the first image is just being penetrated to transformation.In method Check point is divided into three parts, first is that the check point on the correcting plate of blade to be measured is placed, second is that check point is shot into the first image Corresponding distortion correction point, coordinate position are deformed relative to check point afterwards, third is that being located at the void on virtual correcting plate Quasi- check point, virtual correcting plate here refer to establish in Android program by the virtual pattern represented by one group of numerical value, It is the virtual orthographic projection figure of correcting plate in the first image, virtual check point thereon is corresponding number of coordinates on virtual pattern Value, represented spatial position and distortion correction point are in orthogonal projection relationship, the corresponding distortion correction point of each check point With a virtual check point, become one group of check point, and has corresponding number, specific processing step are as follows: the first step, in school Determine at least four check points and its plane coordinates on positive plate, any three check points not on the same line, and by blade It is placed on correcting plate and takes pictures to obtain the first image, need to take at least four corrections not on the same line when taking pictures Point, since distortion of projection, the practical seat of check point can occur compared with actual correcting plate for the correcting plate in the first image Cursor position can also deform in the first image, become distortion correction point and have new coordinate value;Second step establishes virtual school Positive plate and determination virtual check point identical with distortion correction point quantity in the first image and its coordinate;Third step, by the first figure As the virtual check point coordinate matching on upper distortion correction point coordinate and virtual correcting plate, parameter A-H in equation (1) is solved Value substitutes into image transformation matrix;The inverse matrix of first image and image transformation matrix is carried out product and school is calculated by the 4th step The second image after just.
S3, the second image is handled, by the image data after traversal processing, obtain correcting plate sum of all pixels, The sum of all pixels of the sum of all pixels of each reference substance and tested blade.
Second image is handled, specifically: gray processing, filtering, binaryzation, morphology are successively carried out to the second image Processing.
Gray processing is carried out to the second image, specifically: by weighted mean method, by the second image, (image is cromogram Picture) become grayscale image;Wherein, weighted mean method be according to importance and other indexs, by three components with different weights into Row weighted average, the present embodiment are weighted and averaged RGB three-component and can obtain more reasonable gray level image as the following formula (3):
F (i, j)=0.30R (i, j)+0.59G (i, j)+0.11B (i, j) (3)
The second image after gray processing is filtered, using gaussian filtering, specifically: the second image is added Weight average, the value of each pixel are all weighted by the pixel itself with other pixel values in the neighborhood of pixel points flat Obtain afterwards.
To filtered second image carry out binaryzation, using Otsu threshold split plot design, specific algorithm the following steps are included:
A, the corresponding number of pixels of each grayscale of calculating 0~255, saves into an array, which is gray value, Saving content is current grayvalue respective number of pixels.
B, average gray, the background image pixels number proportion of background image are calculated.
C, average gray, the foreground image pixel number proportion of foreground image are calculated.
D, 0~255 each grayscale is traversed, calculates and finds inter-class variance maximum.
E, when inter-class variance obtains maximum, corresponding threshold value is threshold value required by Da-Jin algorithm (OTSU algorithm).
Treated image is divided into correcting plate, the first reference substance, the second reference substance, third reference substance and five, tested blade Region, by traverse five regions image data, obtain the sum of all pixels of correcting plate, the sum of all pixels of each reference substance and The sum of all pixels of tested blade.
S5, a reference substance with the tested immediate reference substance of blade sum of all pixels as tested blade is chosen, according to The sum of all pixels of the given area of the reference substance, the sum of all pixels of the reference substance and tested blade obtains the face of tested blade Product.
It is in order to improve measurement accuracy, in measurement process, if the reference substance of setting is smaller, singly that three reference substances, which are arranged, The actual size weight that a pixel represents will be high, and the pixel of reference substance is few, and the error of reference substance conversion is also bigger, If the reference substance being arranged is larger, the actual size weight that single pixel represents will be low, and the error to convert in this way is also big, only When the pixel of reference substance and the pixel number of measurement blade are closer, error is also just smaller;First reference substance, the second reference Object, third reference substance are respectively labeled as 1,2,3, and the pixel according to the sum of all pixels of obtained each reference substance and tested blade is total Number chooses a reference substance with the tested immediate reference substance of blade sum of all pixels as tested blade, and according to the reference The sum of all pixels of the given area of object, the sum of all pixels of the reference substance and tested blade is calculated tested using following formula (4) The area of blade:
Blade area=reference substance area × blade sum of all pixels/reference substance sum of all pixels (4)
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with Mobile phone is instructed to complete by program, corresponding program can be stored in a computer readable storage medium, described Storage medium, such as ROM/RAM, disk or CD.
Embodiment 2:
As shown in figure 5, present embodiments providing a kind of blade area measuring system, which is applied to mobile terminal, packet It includes image collection module, image correction module, image processing module and blade area and obtains module, the concrete function of modules It is as follows:
Described image obtains module, exists for obtaining tested blade comprising correcting plate, on correcting plate and multiple reference substances The first interior image;Wherein, the area of the correcting plate is greater than the area of tested blade and reference substance, the color of the reference substance Color that is consistent and being different from correcting plate and tested blade, color of the color also different from tested blade of correcting plate, the module Specific implementation can be found in above-described embodiment 1 step S1;
Described image correction module, for being two regions of background and correcting plate by the first image segmentation, by the first image In correcting plate carry out projection transform, obtain the second image, the step of specific implementation of the module can be found in above-described embodiment 1 S2;
Described image processing module, by the image data after traversal processing, is obtained for handling the second image The sum of all pixels of the sum of all pixels of correcting plate, the sum of all pixels of each reference substance and tested blade, the specific implementation of the module It can be found in the step S3 of above-described embodiment 1;
The blade area obtains module, for choosing a tested immediate reference substance of blade sum of all pixels as quilt The reference substance of blade is surveyed, the pixel according to the given area of the reference substance, the sum of all pixels of the reference substance and tested blade is total Number, obtains the area of tested blade, and the specific implementation of the module can be found in the step S4 of above-described embodiment 1.
It should be noted that system provided by the above embodiment is only illustrated with the division of above-mentioned each functional module Illustrate, in practical applications, can according to need and be completed by different functional modules above-mentioned function distribution, i.e., by internal junction Structure is divided into different functional modules, to complete all or part of the functions described above.
Embodiment 3:
A kind of storage medium is present embodiments provided, which is stored with one or more programs, described program quilt When processor executes, the method for measuring leaf area of above-described embodiment 1 is realized, as follows:
It obtains comprising the first image including correcting plate, tested blade and multiple reference substances on correcting plate;Wherein, described The area of correcting plate is greater than the area of tested blade and reference substance, the solid colour of the reference substance and be different from correcting plate and by Survey the color of blade, the color of the color of correcting plate also different from tested blade;
It is two regions of background and correcting plate by the first image segmentation, the correcting plate in the first image is subjected to projection and is turned It changes, obtains the second image;
Second image is handled, by the image data after traversal processing, obtains the sum of all pixels, each of correcting plate The sum of all pixels of the sum of all pixels of reference substance and tested blade;
Reference substance of the tested immediate reference substance of blade sum of all pixels as tested blade is chosen, according to the reference The sum of all pixels of the given area of object, the sum of all pixels of the reference substance and tested blade obtains the area of tested blade.
Storage medium described in the present embodiment can be the media such as ROM, RAM, disk, CD.
Embodiment 4:
A kind of mobile terminal is present embodiments provided, which includes processor and memory, and memory is stored with One or more programs realize the blade area measurement side of above-described embodiment 1 when processor executes the program of memory storage Method is as follows:
It obtains comprising the first image including correcting plate, tested blade and multiple reference substances on correcting plate;Wherein, described The area of correcting plate is greater than the area of tested blade and reference substance, the solid colour of the reference substance and be different from correcting plate and by Survey the color of blade, the color of the color of correcting plate also different from tested blade;
It is two regions of background and correcting plate by the first image segmentation, the correcting plate in the first image is subjected to projection and is turned It changes, obtains the second image;
Second image is handled, by the image data after traversal processing, obtains the sum of all pixels, each of correcting plate The sum of all pixels of the sum of all pixels of reference substance and tested blade;
Reference substance of the tested immediate reference substance of blade sum of all pixels as tested blade is chosen, according to the reference The sum of all pixels of the given area of object, the sum of all pixels of the reference substance and tested blade obtains the area of tested blade.
The mobile terminal of the present embodiment is the mobile phone based on Android platform, and being equipped with blade area Survey Software, (this is soft Part includes above procedure, is developed using Java language).
As shown in fig. 6, being that the main interface of blade area Survey Software is shown first after the starting of blade area Survey Software Main interface, there are three button assembly (Button) in main interface: taking pictures, inquire picture library, historical record, distribution form selection LinearLayout layout is three nested, the camera of hardware device can be called to carry out obtaining for image by clicking button of taking pictures It takes, after gallery button can also being inquired by click, selects the image in picture library.
As shown in fig. 7, being the interface of taking pictures of blade area Survey Software, after button is taken pictures in main interface click, jump to It takes pictures interface, after the completion of taking pictures, clicks after checking the number mark, jump to interface as the result is shown.
As shown in figure 8, being the inquiry picture library interface of blade area Survey Software, inquiry gallery button is clicked in main interface Afterwards, it shows gallery file selection interface, shows the photo files list in picture library, select picture to be processed, click mark of checking the number After knowledge, interface as the result is shown is jumped to.
As shown in figure 9, the interface after take pictures for blade area Survey Software completion or selection picture, after the completion of taking pictures or is selected After selecting photo, if not being required photo, clicks cross and identify backed off after random, required photo, clicks after checking the number mark, jump in this way Interface as the result is shown.
It as shown in Figure 10, is the interface as the result is shown of blade area Survey Software, interface includes an image as the result is shown Display component (ImageView) and a text component (TextView), distribution form select LinearLayout layout nested Two, after completing a series of images processing, blade area Survey Software carries out the calculating of blade area, blade perimeter, calculates After the completion, display is as a result, display content includes blade area, blade perimeter.
Above-mentioned check mark mark and cross are identified as mark common in existing software, and details are not described herein.
It is appreciated that mobile terminal described in the present embodiment can also be hand-held eventually for mobile phone, PDA based on iOS platform End, tablet computer or other terminal devices having a display function.
In conclusion the present invention tested blade and multiple reference substances can be arranged on a correcting plate, by mobile whole End directly shooting includes that correcting plate, the tested blade on correcting plate and multiple reference substances exist from obtaining in the picture library of mobile terminal Shooting image is divided into two regions of background and correcting plate, the correcting plate shot in image is thrown by interior shooting image Shadow conversion, obtains the orthograph picture of correcting plate, by handling and traverse, obtains the sum of all pixels of correcting plate, each reference substance The sum of all pixels of sum of all pixels and tested blade can automatically select according to the actual situation due to being provided with multiple reference substances Reference substance with the tested immediate reference substance of blade sum of all pixels as tested blade, and due to being realized in mobile terminal, Light small and exquisite, operation is simple, is not influenced by power supply, and the blade area measurement in field is particularly adapted to.
The above, only the invention patent preferred embodiment, but the scope of protection of the patent of the present invention is not limited to This, anyone skilled in the art is in the range disclosed in the invention patent, according to the present invention the skill of patent Art scheme and its inventive concept are subject to equivalent substitution or change, belong to the scope of protection of the patent of the present invention.

Claims (10)

1. method for measuring leaf area, it is characterised in that: the method is applied to mobile terminal, comprising:
It obtains comprising the first image including correcting plate, tested blade and multiple reference substances on correcting plate;Wherein, the correction The area of plate is greater than the area for being tested blade and reference substance, the solid colour of the reference substance and different from correcting plate and tested leaf The color of piece, the color of the color of correcting plate also different from tested blade;
It is two regions of background and correcting plate by the first image segmentation, the correcting plate in the first image is subjected to projection transform, is obtained To the second image;
Second image is handled, by the image data after traversal processing, obtains the sum of all pixels of correcting plate, each reference The sum of all pixels of the sum of all pixels of object and tested blade;
A reference substance with the tested immediate reference substance of blade sum of all pixels as tested blade is chosen, according to the reference substance Given area, the sum of all pixels of the reference substance and the sum of all pixels of tested blade, obtain the area of tested blade.
2. method for measuring leaf area according to claim 1, it is characterised in that: the correcting plate is fixed on a lower plate On, the lower plate is covered by a upper clamp plate, fixes the tested blade on correcting plate;Wherein, the color of the correcting plate is not It is same as the color of lower plate, upper cover plate is transparent panel.
3. method for measuring leaf area according to claim 1, it is characterised in that: it is described by the first image segmentation be background With two region of correcting plate, the correcting plate in the first image is subjected to projection transform, the second image is obtained, specifically includes:
The determining and one-to-one distortion correction point of check point on the correcting plate in the first image;Wherein, the check point is Four vertex on correcting plate;
Virtual correcting plate is established, the determining virtual school correspondingly with check point, distortion correction point on the virtual correcting plate On schedule, and each virtual check point coordinate is determined;
By each distortion correction point coordinate and corresponding virtual check point coordinate matching, image transformation matrix is obtained, as follows:
Wherein, (x, y) is the distortion correction point coordinate on the first image, and (u, v) is that the virtual check point on virtual correcting plate is sat Mark, A-H is the parameter in image transformation matrix, and λ is image scale, value 1;
The inverse matrix of first image and described image transformation matrix is carried out product calculating, obtains second by the value for solving parameter A-H Image.
4. method for measuring leaf area according to claim 1, it is characterised in that: it is described that second image is handled, It specifically includes:
Gray processing, filtering, binaryzation, Morphological scale-space are successively carried out to the second image.
5. method for measuring leaf area according to claim 4, it is characterised in that: carried out at gray processing to the second image Reason, specifically includes:
It is weighted and averaged by tri- components of RGB of weighted mean method to the second image, the second image is become into grayscale image.
6. method for measuring leaf area according to claim 4, it is characterised in that: carried out to the second image after gray processing Filtering processing, specifically includes:
The second image after gray processing is weighted and averaged, the value of each pixel, all by the pixel itself and the pixel Other pixel values in vertex neighborhood obtain after being weighted averagely.
7. method for measuring leaf area according to claim 4, it is characterised in that: carry out two to filtered second image Value processing, specifically includes:
The corresponding number of pixels of 0~255 each grayscale is calculated, is saved into an array, which is gray value, in preservation Appearance is current grayvalue respective number of pixels;
Calculate average gray, the background image pixels number proportion of background image;
Calculate average gray, the foreground image pixel number proportion of foreground image;
0~255 each grayscale is traversed, calculates and finds inter-class variance maximum;
When inter-class variance obtains maximum, corresponding threshold value is threshold value required by Da-Jin algorithm.
8. blade area measuring system, it is characterised in that: the system is applied to mobile terminal, comprising:
Image collection module, for obtaining comprising first including the tested blade and multiple reference substances on correcting plate, correcting plate Image;Wherein, the area of the correcting plate is greater than the area of tested blade and reference substance, the solid colour of the reference substance and not It is same as the color of correcting plate and tested blade, the color of the color of correcting plate also different from tested blade;
Image conversion module, for being two regions of background and correcting plate by the first image segmentation, by the correction in the first image Plate carries out projection transform, obtains the second image;
Image processing module, by the image data after traversal processing, obtains correcting plate for handling the second image The sum of all pixels of sum of all pixels, the sum of all pixels of each reference substance and tested blade;
Blade area obtains module, for choosing the tested immediate reference substance of blade sum of all pixels as tested blade Reference substance, according to the sum of all pixels of the given area of the reference substance, the sum of all pixels of the reference substance and tested blade, obtain by Survey the area of blade.
9. storage medium is stored with program, it is characterised in that: when described program is executed by processor, realize that claim 1-7 appoints Method for measuring leaf area described in one.
10. mobile terminal, including processor and for the memory of storage processor executable program, it is characterised in that: institute When stating the program of processor execution memory storage, the described in any item method for measuring leaf area of claim 1-7 are realized.
CN201810926020.XA 2018-08-15 2018-08-15 Method for measuring leaf area, system, storage medium and mobile terminal Pending CN109059808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810926020.XA CN109059808A (en) 2018-08-15 2018-08-15 Method for measuring leaf area, system, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810926020.XA CN109059808A (en) 2018-08-15 2018-08-15 Method for measuring leaf area, system, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN109059808A true CN109059808A (en) 2018-12-21

Family

ID=64683953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810926020.XA Pending CN109059808A (en) 2018-08-15 2018-08-15 Method for measuring leaf area, system, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN109059808A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110089260A (en) * 2019-04-15 2019-08-06 江苏大学 A kind of the cereal flow monitoring method and monitoring system of the defeated grain of scraper-type
CN110111382A (en) * 2019-03-21 2019-08-09 北京弘和中科健康科技发展有限公司 Irregular area area computation method, device, computer equipment and storage medium
CN110717939A (en) * 2019-09-10 2020-01-21 广东华远国土工程有限公司 Rapid assessment method for land area
CN111553943A (en) * 2020-06-09 2020-08-18 山西农业大学 Leaf area automatic measurement system based on multivariate normal distribution statistics and level set variational method
CN111623732A (en) * 2020-06-03 2020-09-04 东北林业大学 Method for measuring needle cluster ratio of coniferous forest blades
CN115439524A (en) * 2022-09-07 2022-12-06 北京爱科农科技有限公司 Blade parameter calculation method, medium, and computer device
CN115861409A (en) * 2023-02-28 2023-03-28 华南农业大学 Soybean leaf area measuring and calculating method, system, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1952599A (en) * 2005-10-20 2007-04-25 中国科学院自动化研究所 A flat leaf area nondestructive measuring system and method thereof
CN101813469A (en) * 2010-04-23 2010-08-25 中国科学院成都生物研究所 Method for measuring leaf area by manually shooting
WO2012073507A1 (en) * 2010-12-02 2012-06-07 日本電気株式会社 System, device, method and program for measurement of leaf area index
CN102506772A (en) * 2011-11-01 2012-06-20 西北农林科技大学 Method and device for quickly detecting area of leaf blade based on mobile phone
CN105136070A (en) * 2015-08-21 2015-12-09 上海植物园 Method for utilizing electronic device to measure plant leaf area
CN106468543A (en) * 2015-08-21 2017-03-01 浙江托普云农科技股份有限公司 A kind of method for measuring leaf area based on image procossing
CN106813576A (en) * 2017-01-24 2017-06-09 福建省林业科学研究院 A kind of leaf area, girth, leaf measuring method long and leaf width

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1952599A (en) * 2005-10-20 2007-04-25 中国科学院自动化研究所 A flat leaf area nondestructive measuring system and method thereof
CN101813469A (en) * 2010-04-23 2010-08-25 中国科学院成都生物研究所 Method for measuring leaf area by manually shooting
WO2012073507A1 (en) * 2010-12-02 2012-06-07 日本電気株式会社 System, device, method and program for measurement of leaf area index
CN102506772A (en) * 2011-11-01 2012-06-20 西北农林科技大学 Method and device for quickly detecting area of leaf blade based on mobile phone
CN102506772B (en) * 2011-11-01 2014-06-11 西北农林科技大学 Method and device for quickly detecting area of leaf blade based on mobile phone
CN105136070A (en) * 2015-08-21 2015-12-09 上海植物园 Method for utilizing electronic device to measure plant leaf area
CN106468543A (en) * 2015-08-21 2017-03-01 浙江托普云农科技股份有限公司 A kind of method for measuring leaf area based on image procossing
CN106813576A (en) * 2017-01-24 2017-06-09 福建省林业科学研究院 A kind of leaf area, girth, leaf measuring method long and leaf width

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
卢明等: "纱线毛羽图像的二值化处理及其Matlab实现", 《山东纺织科技》 *
张金瑞: "基于图像处理的树叶面积特征提取的研究", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *
马媛: "葡萄叶检测和面积测量方法研究", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110111382A (en) * 2019-03-21 2019-08-09 北京弘和中科健康科技发展有限公司 Irregular area area computation method, device, computer equipment and storage medium
CN110111382B (en) * 2019-03-21 2021-09-14 北京弘和中科健康科技发展有限公司 Irregular area calculation method and device, computer equipment and storage medium
CN110089260A (en) * 2019-04-15 2019-08-06 江苏大学 A kind of the cereal flow monitoring method and monitoring system of the defeated grain of scraper-type
CN110717939A (en) * 2019-09-10 2020-01-21 广东华远国土工程有限公司 Rapid assessment method for land area
CN111623732A (en) * 2020-06-03 2020-09-04 东北林业大学 Method for measuring needle cluster ratio of coniferous forest blades
CN111553943A (en) * 2020-06-09 2020-08-18 山西农业大学 Leaf area automatic measurement system based on multivariate normal distribution statistics and level set variational method
CN115439524A (en) * 2022-09-07 2022-12-06 北京爱科农科技有限公司 Blade parameter calculation method, medium, and computer device
CN115861409A (en) * 2023-02-28 2023-03-28 华南农业大学 Soybean leaf area measuring and calculating method, system, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109059808A (en) Method for measuring leaf area, system, storage medium and mobile terminal
CN102506772B (en) Method and device for quickly detecting area of leaf blade based on mobile phone
Guo et al. Crop 3D—a LiDAR based platform for 3D high-throughput crop phenotyping
Zhang et al. Natural genetic variation for growth and development revealed by high-throughput phenotyping in Arabidopsis thaliana
De Vylder et al. Rosette tracker: an open source image analysis tool for automatic quantification of genotype effects
CN104132897B (en) A kind of nitrogenous measuring method of plant leaf blade based on handheld device and device
Jiang et al. Quantitative analysis of cotton canopy size in field conditions using a consumer-grade RGB-D camera
CN108198230A (en) A kind of crop and fruit three-dimensional point cloud extraction system based on image at random
CN104052979B (en) For device and the technology of image processing
Laycock et al. Digital access to a sky century at Harvard: Initial photometry and astrometry
CN107392091A (en) A kind of agriculture artificial intelligence makees object detecting method, mobile terminal and computer-readable medium
US11435289B2 (en) Optical distortion measuring apparatus and optical distortion measuring method, image processing system, electronic apparatus and display apparatus
Kelly et al. An opinion on imaging challenges in phenotyping field crops
CN109726705B (en) Mangrove forest information extraction method and device and electronic equipment
CN108765433A (en) One kind is for carrying high-precision leafy area measurement method
Beniaich et al. Determination of vegetation cover index under different soil management systems of cover plants by using an unmanned aerial vehicle with an onboard digital photographic camera.
CN108120402A (en) A kind of method that plant leaf area is measured based on Photoshop softwares
CN110097535A (en) The nitrogenous quantity measuring method of plant leaf blade, device, computer equipment and storage medium
CN112465893A (en) Vegetation leaf area measuring method and device, terminal and storage medium
CN111222539A (en) Method for optimizing and expanding supervision classification samples based on multi-source multi-temporal remote sensing image
CN112147078A (en) Multi-source remote sensing monitoring method for crop phenotype information
CN202267464U (en) Mobile phone based device for rapidly detecting blade area
Liu et al. PocketMaize: An android-smartphone application for maize plant phenotyping
Zhihong et al. Smartphone-based visual measurement and portable instrumentation for crop seed phenotyping
CN105574516A (en) Ornamental pineapple chlorophyll detection method based on logistic regression in visible image

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181221