Apparatus for synchronous measuring three dimensional parameters of maize seeds based on oblique photography

Zhu Deli,Chen Bingqi,Liang Xihuizi,Yang Yanqiu
DOI: https://doi.org/10.11975/j.issn.1002-6819.2018.04.024
2018-01-01
Abstract:It is an important and difficult problem to acquire and analyze the three-dimensional characteristics of maize seeds after the ear removal. In this study, a maize seed measuring device and the corresponding algorithm were developed based on oblique photography. The device was used to store the spatial information and the calibration data which were obtained from oblique photography. Through 2 mutually perpendicular calibration plates, the three-dimensional data were calculated based on the obtained information and data. The center of the horizontal plate was provided with a circular hole whose diameter is equal to that of the rotating disk (200 mm in the experiment). The diameter of the round hole was measured as a constant to provide for the system. It provided calibration data for measuring the length and width of maize seeds. The tangent points on the left and right sides and the 4 vertices of the square were clearly marked with red dots. The stepper motor drove the disk to rotate with the speed of 10 degrees per second. The image recording system started with the speed of 10 frames per second and the resolution of 1280×720. With the support of the device, the length, width and thickness of each maize seed were obtained by image processing algorithm. Horizontal and vertical images were taken from oblique photography images by perspective transformation; long axis and short axis of each maize seed were calculated using the diameter of the disk as the reference; the thickness of a maize seed was calculated by taking the calibration data as the reference. Pixel distance measurement method was combined with the watershed algorithm to achieve better image segmentation results. First, global threshold was used to obtain binary image. Then the distance of 2 pixels in the binary image was calculated. At last combined with the watershed algorithm, the boundary of the region was taken as the watershed. A simple and fast calculation method was designed according to the shape characteristics of maize seed to judge the seeds direction. First the centroid was calculated based on the moments of maize contour, and then the pixel whose distance from the centroid was the maximum was taken as the tip of the seed. The direction of the connection between the center and tip point was the direction of the seed. In this study, the length and width of the maize seeds were calculated based on the vertical orthographic images obtained from the perspective transform. Since the centroid position and the tip position of the maize seed contour had been calculated, the length and width of the seeds could be measured based on these data efficiently. After obtaining the back image of a seed in ROI (region of interest), the thickness was calculated based on the horizontal view from the perspective transformation. The boundary of thickness was obtained according to the horizontal cumulative distribution. An analysis and calculation triangle was established according to the location of a seed. The thickness data were mapped on the checkerboard plane, and accurate measurement results were obtained. Microsoft Visual Studio 2010 was taken as the software development tool, and OpenCV machine vision algorithm library was used to develop the experimental program. The experiment was performed with 180 maize seeds selected randomly. The root mean square errors (RMSEs) of the long axis, short axis and thickness were 1.86, 1.28 and 0.741 mm respectively. The determination coefficients of the long axis, short axis and thickness were 0.849 6, 0.869 3 and 0.846 2 respectively. The results show that this device and method can be used to measure the three-dimensional parameters of maize seeds with a relative high accuracy.
What problem does this paper attempt to address?