Electronic Science and Technology ›› 2022, Vol. 35 ›› Issue (7): 32-39.doi: 10.16180/j.cnki.issn1007-7820.2022.07.006

Previous Articles     Next Articles

Crop Height Measurement Based on Ruler Image Recognition

SUN Xiang1,4,PEI Xiaofang1,2,3,ZHOU Wang4,ZHU Ping4   

  1. 1. School of Electronic & Information Engineering,Nanjing University of Information Science & Technology, Nanjing 210044,China
    2. School of Electronic & Information Engineering,Binjiang College, Nanjing University of Information Science & Technology,Wuxi 214105,China
    3. Collaborative Innovation Center of Atmospheric Environment and Equipment Technology of Jiangsu Province, Nanjing University of Information Science and Technology,Nanjing 210044,China
    4. Aerospace Newsky Technology Co.,Ltd,Wuxi 214127,China
  • Received:2021-01-17 Online:2022-07-15 Published:2022-08-16
  • Supported by:
    National Natural Science Foundation of China(61601229);Binjiang College, Nanjing University of Information Science & Technology Research Project(2019BJYNG006)


Crop height measurement is an important part of automatic crop observation, which can directly reflect the growth of crops. To solve the problem that the cost of artificial measurement of crop height is higher and the subjective influence of individual is greater, this study presents a method of measuring crop height by image processing. The ruler is placed behind the main stalk of the crop to take the photo of the ruler. The obtained images were converted to HSV color space on MATLAB to divide and filter the color blocks of the ruler. The pixel height of the color block is calculated by the connected domain analysis method. The plant height is calculated by the ratio relation between the ruler pixel height and the actual height. The shrubbery is taken as the experimental object to take photos and make measurement. Comparing the measured plant height data with manual measurement data, the results show that the measurement error is less than 0.0173 m, which meets the standard of automatic observation of plant height.

Key words: crop height, ruler, image processing, HSV, color space, image segmentation, connected domain, MATLAB

CLC Number: 

  • TP302