Abstract:
Abstract: The tray-seedlings used for mechanical grafting and transplanting should be as uniform as possible, and the tray holes with either nothing or a bad seedling should be rejected. However, it is hard and costly work to pick seedlings from the tray by human choice. In order to meet the need for the tray-seedling's automatic grading before the mechanical transplanting and grafting, a new system for measuring the seedling feature was designed based on the structured-light vision technology, which could get the leaf size and the height of the seedling through on-line detection. The system was supposed to serve the seedling grading machine. Two color images of each seedling line in the tray were taken by a camera, and the one without linear light was used for identifying leaf size, with the other with linear light used for measuring seedling height. As the major background in the seedling color image, the gray of the soil was varied from its different moisture and mixing-ratio. So the calculation 2G-R-B of the chromatic component was used to distinguish the seedling leaf from the substrate, and the Otsu dynamic threshold was adopted to extract the leaf area. The huge amounts of noise pixels were still left in the binary image, because of the roseite particles appearing outstandingly bright in the soil, In order to clean the noise from the roseite, the white area in every tray hole was labeled sequentially, and counted separately. The area containing more than 4,000 pixels was considered as the seedling leaf, and if not, the area was considered as the noise, bad seedling, or non-seedling. The pixel numbers represented the seedling leaf size, according to which the tray holes with the smaller leaf or non-leaf were identified. The calibration for the linear vision system was completed through processing 20 images of the chess-shaped checkboard. The images without linear-light were used to calibrate the internal parameter, and those with linear light were used to get the external parameter of the structured-light vision unit. According to the linear structured-light vision principle, the 3D coordinate of the light-line on the seedling leaves could be obtained, when the image pixels of the light line were extracted. Besides, the XY plane of the coordinate system was built on the seedling tray, so that the seedling height was same with the coordinate value Z. The pixels of the linear light of 650nm wavelength lying in the leaf area were acquired through the threshold of Cr (97,137) and Cb (82,132), a center line of the light pixels was drawn, and then the coordinate Z of three points in the center line were measured, among which the maximal one represented the seedling height. As the result showed, this method can exactly evaluate the leaf size and the seedling height to satisfy the demand on the automatic seedling classification, and the height measure error is less than 5mm for the normally straight seedling.