Patent ID: 8401335

Claim:
A method for outputting consecutive characters in a video-recording mode, comprising: recording the object by a camera along a direction to obtain a first image and a second image, wherein the second image is the next image of the first image; performing an edge detection on the first image and the second image, further comprises; converting the grey scale data of the pixels of the image and the second image as follows: Edge( P (i,j) )=Diff( P (i,j−1) ,P (i,j+1) )+Diff( P (i+1,j−1), P (i−,j+1) )+Diff( P (i+1,j), P (i,j−1) )+Diff( P (i+1,j+1)), P (i−1,j−1) ); wherein i, j, X, Y represent positive integers, and Edge(P (i,j) ) represents the grey scale data after the edge detection; wherein Diff(P X ,P Y )=abs[(P X (G)−P Y (R))×(P Y (G)−P X (B)×(P X (B)−P Y (R))], and the abs is an absolute value function, P X (G) is the green grey scale value of the pixel X, P Y (R) is the red grey scale value of the pixel Y, and P Y (G) is the green grey scale value of the pixel Y, P X (B) is the blue grey scale value of the pixel X, P Y (R) is the red grey scale value of the pixel Y. comparing the first image with the second image to obtain a third image which is an overlapping part of the first image and the second image; removing the third image from the second image to generate a fourth image; merging the fourth image with the first image to generate a fifth image; and performing an optical character recognition (OCR) on the fifth image, to output the characters in the fifth image.