Patent ID: 8483441
Filing Date: 2013-07-09
Classification: G06T

Abstract:
1. An image recognition method, comprising: obtaining an image corresponding to a level ruler, wherein the image comprises at least one predefined scale projected on the level ruler; determining a baseline height of a baseline mark in the level ruler according to the image; seeking positions of a top boundary and a bottom boundary of a first scale in the image from a position of the baseline mark in the image as a beginning position, wherein the predefined scale corresponds to a second scale on the level ruler; recognizing a height of the predefined scale according to a position of the predefined scale in the image, the positions of the top boundary and the bottom boundary of the first scale in the image, the baseline height of the baseline mark, and a number of numeric values between the beginning position and the top boundary of the first scale in the image; seeking a plurality of pixel rows proximate said baseline mark; selecting from said plurality of pixel rows the pixel row having the greatest distance between left and right scale boundaries in said pixel row; determining whether the level ruler is upright or inverted based on the heights of the left and right scale boundaries intersecting said selected pixel row; and when the level ruler is inverted, rotating the image by 180 degrees.