Patent ID: 8254682

Claim:
A pattern detecting method for determining a pattern to which an area in an image corresponds, the pattern detecting method comprising: examining how a first plurality of pixels of a first pixel line in the image change; examining how a second plurality of pixels of a second pixel line in the image change; generating at least one flag set indicating the changing of the first plurality of pixels and the second plurality of pixels, wherein the flag set includes a plurality of flags, generating at least one flag set comprising the steps of: calculating first differences between the first plurality of pixels and a first constant value sequentially; calculating second differences between the second plurality of pixels and a second constant value sequentially; and generating the flag set according to the first and second differences; comparing the flag set with predetermined combinations corresponding to more than two candidate patterns to generate a comparing result; and determining the pattern to which the image area corresponds to according to the comparing result, where the pattern is one of the candidate patterns; wherein the first pixel line and the second pixel line correspond to the image area.