Patent ID: 7464876

Claim:
An image reading device, comprising: a reading unit that reads an object in a predetermined size based on light from the object; a scanning unit that moves the reading unit to scan the object along a scanning path; and a scan start unit configured to control the scanning unit to start scanning in response to receipt of a command for changing to a code reading mode in which a code formed by a pictoral pattern displayed on a screen of a device is read as the object; an analysis unit configured to analyze the code read by the reading unit; a repetition unit configured to control the scanning unit and the analysis unit to repetitively execute reading and analysis until the reading unit reads information representing termination of the code; and a scan prohibition unit configured to prohibit the scanning unit from moving the reading unit so as to stop scanning of the object in response to the analysis unit detecting that the reading unit has read information representing termination of the code, an inverse scanning unit configured such that if the reading unit does not finish reading of the code before the reading unit reaches an end position of a scanning range, the inverse scanning unit moves the reading unit in a direction opposite to a direction in which the reading unit is moved by the scanning unit, from the end position of the scanning range, wherein the inverse scanning unit moves the reading unit if the inverse scanning unit receives a command requesting for re-reading.