Patent ID: 8605337

Claim:
An image scanning device comprising: a first image scanning unit that is configured to scan an image on one of surfaces of an original document conveyed along a conveying path at a predetermined first scanning position to sequentially output image data on a line-by-line basis, each line of the image data representing a line image extending in a main scanning direction that is perpendicular to a conveying direction, in which the original document is conveyed along the conveying path; a second image scanning unit that is configured to scan an image on a remaining one of the surfaces of the original document conveyed along the conveying path at a predetermined second scanning position downstream along the conveying path from the first scanning position to sequentially output image data on a line-by-line basis, each line of the image data representing a line image extending in the main scanning direction; a first storing unit that is configured to store the image data generated by the first image scanning unit; a second storing unit that is configured to store the image data generated by the second image scanning unit; a number of line determining unit that determines the number of lines of the image data that is stored in each of the first storing unit and the second storing unit; a determining unit that executes a first determination to determine whether or not the number of lines of the image data stored in the first storing unit is greater than or equal to a predetermined number to obtain a first determination result, and that executes a second determination to determine whether or not the number of lines of the image data stored in the second storing unit is greater than or equal to the predetermined number to obtain a second determination result, the determining unit executing the first determination and the second determination in alternation with each other; and a processing unit that is configured to be capable of reading out the image data on a line-by-line basis from each of the first storing unit and the second storing unit to image-process the readout data, the processing unit reading out the image data for the predetermined number of lines from the first storing unit and image-processing the readout data if the first determination result indicates that the number of lines of the image data stored in the first storing unit is greater than or equal to the predetermined number, the processing unit reading out the image data for the predetermined number of lines from the second storing unit and image-processing the readout data if the second determination result indicates that the number of lines of the image data stored in the second storing unit is greater than or equal to the predetermined number.