Patent ID: 8226006

Claim:
A code reader device which is configured to display a subject image captured by an image pickup device, extract image data from a code extracting area of the subject image, and decode a code included in the extracted image data, the code reader device comprising: a memory configured to store a data table indicating a relation between (i) preview image area information indicating preview image sizes and preview image areas to be displayed on a display screen, the preview image sizes indicating sizes of the preview image areas, and (ii) code extracting area information indicating code extracting areas which respectively correspond to the preview image areas and which are smaller than the respective corresponding preview image areas; an image size specifying unit configured to specify one of the preview image sizes in response to a user operation; a display unit configured to (i) read the preview image area information corresponding to the one of the preview image sizes specified by the image size specifying unit and the corresponding code extracting area information from the memory, (ii) set a preview image area on the display screen based on the read preview image area information, (iii) display the subject image captured by the image pickup device in the set preview image area, (iv) set a code extracting area in the preview image area based on the read code extracting area information, and (v) display the set code extracting area so as to be distinguishable from a remaining area of the preview image area; and a decode unit configured to extract the image data corresponding to the code extracting area displayed by the display unit from the subject image captured by the image pickup device, and decode the code included in the extracted image data.