CPC H04N 1/00013 (2013.01) [H04N 1/0009 (2013.01); H04N 1/00037 (2013.01); H04N 1/00068 (2013.01); H04N 1/00076 (2013.01); H04N 1/00551 (2013.01); H04N 1/02815 (2013.01)] | 9 Claims |
1. An image reading apparatus comprising:
a cover configured to be openable and closable relative to a particular portion of a transport path for transporting a document;
a reading device including
a light source, and
a sensor configured to detect reflected light of light emitted toward the document from the light source and obtain a read value; and
a control device configured to control operation of the reading device,
the control device including circuitry configured to
acquire, as first data, the read value in a main scanning direction obtained through detection by the sensor with the light source turned off,
acquire, as second data, the read value in the main scanning direction obtained through detection by the sensor with the light source turned on,
calculate a first evaluation value for each of a plurality of locations in the main scanning direction of the first data based on the first data in the plurality of locations in the main scanning direction,
calculate a second evaluation value for each of a plurality of locations in the main scanning direction of the second data based on the second data in the plurality of locations in the main scanning direction,
determine an open state or a closed state of the cover based on the first evaluation value,
determine the open state or the closed state of the cover based on the second evaluation value,
when at least one of a determination result based on the first evaluation value or a determination result based on the second evaluation value indicates the open state of the cover, determine that the cover is in the open state, and
when the determination result based on the first evaluation value and the determination result based on the second evaluation value both indicate the closed state of the cover, determine that the cover is in the closed state.
|