Patent ID: 7733394

Claim:
A portable terminal device comprising: a photography-target setting section that sets a normal photography mode for photographing an image, and an OCR function mode for photographing a character or a bar code; a display unit that displays a photographed image; a focused-state determination section configured to determine a focused state of a character or a bar code photographed in said OCR function mode, the focused-state determination section including: a focus area extraction section that extracts image signals of a predetermined area from photographed image signals, an edge enhancement processing section that enhances edges of the extracted image signals, a time integration value calculation section that calculates a time integration value of the edge-enhanced image signals in a certain period of time, and a focus state value generation section that divides the time integration value by a predetermined value and then adds an offset value; and a recognition section that recognizes the photographed character or bar code, wherein the result of recognition made by said recognition section is displayed by said display unit.