Patent ID: 9679216
Date: 2017-06-13
CPC Classifications: G06K,G06T,H04N

Claim:
1. A method of assessing a resolution of an optical sensor, the method comprising: obtaining an image from the optical sensor; selecting a target area from the obtained image; thresholding the selected area to generate a binary image; tagging pixels at a center of the generated binary image; looping through remaining pixels of the generated binary image, tagging pixels that are not already tagged, are touching a tagged pixel, and are of the same color of previously tagged pixels; calculating a plurality of distances associated with each corner of the generated binary image from the corner to the nearest tagged pixel in a row or column of pixels; selecting at least two shortest distances of the calculated plurality of distances; and determining an orientation of an object defined by the tagged pixels in the generated binary image from the selected distances.