摘要 |
An image recognition method is used to recognize objects in an image in real-time and without requiring storage of the image in an image buffer. Each object is formed from image segments. The method includes: setting a grayscale threshold value of the image; acquiring pixel values of each row sequentially in the image; determining a start point of a newly detected image segment located in a currently inspected row of the image; collecting information of the newly detected image segment point-by-point starting from the start point; determining an end point of the newly detected image segment; identifying the object to which the newly detected image segment belongs according to a spatial correlation between the newly detected image segment and a previously detected image segment in an adjacent previously inspected row of the image; and associating the collected information of the newly detected image segment with the identified object to which the newly detected image segment belongs.
|