Tomato identification positioning method and system

Fecha de publicación: 20/12/2019
Fuente: Wipo tomato
The embodiment of the invention provides a tomato identification positioning method and system, and the method comprises the following steps: obtaining a to-be-detected image containing tomatoes, converting the to-be-detected image into an HSV image, carrying out the masking of the HSV image, integrating the HSV image into an RGB image, carrying out the masking, and obtaining a background-removedtomato image; cutting the red tomato image with the background removed through a watershed algorithm to obtain a tomato image after image segmentation; performing edge detection on the tomato image after image segmentation, and determining a coordinate position of the tomato in the tomato image after image segmentation; and acquiring point cloud data of the tomatoes according to the coordinate positions of the tomatoes in the tomato images after image segmentation, and determining actual positions of the tomatoes according to the point cloud data of the tomatoes. According to the method provided by the invention, the influence of uneven light, shielding of branches and leaves on fruits, shadows caused by mutual shielding among the fruits and the like on fruit identification is eliminated.