Patent ID: 7896253

Claim:
A method for automatically rectifying a business card presentation angle, applicable to a mobile electronic device, so as to automatically rectify the presentation angle of a business card image, the method comprising: maintaining a plurality of character pixels in the business card image; taking out a plurality of character groups from the character pixels, wherein the taking out step comprises: calculating a pitch between any two adjacent character pixels; when the pitch is smaller than a predetermined distance, arranging the adjacent character pixels into the same character group; and when the pitch is larger than the predetermined distance, arranging the adjacent character pixels into different character groups; circumscribing the character groups with a border-defining block, and drawing a first axis according to the positions of character pixels that are horizontally arranged side by side in the character groups, wherein the first axis is parallel to one side of the border-defining block; drawing a second axis according to the position of a first character pixel in each row of the character pixels in the character groups, wherein the second axis is parallel to another side of the border-defining block, and an included angle formed by the first axis and the second axis is not equal to 90° or 180°; calculating the included angle formed between the first axis and the second axis corresponding to the character groups, and adjusting the character groups according to the included angle; and when the included angle is larger than a predetermined angle, adjusting the length and width of the character groups according to a character aspect ratio, and generating a corrected business card image.