Image processing apparatus and method for determining a method of cropping a document in accordance with a result of comparison of coordinates of vertices of two rectangular regions detected in a first and second detection
Disclosed is an image processing method for processing an image obtained by reading a document plate on which at least one document is placed. The method includes a first detecting step of specifying a first rectangular region including all of objects included in the image to detect the coordinates of each vertex thereof, an identifying step of identifying on each object whether it is a document item, an eliminating step of eliminating the object which is not a document item from the image, a second detecting step of specifying a second rectangular region to detect the coordinates of each vertex thereof, the region including all of the objects after elimination and having a minimum area, a comparing step of comparing the coordinates of the vertices detected in the first and second detecting steps, and a determining step of determining a method of cropping the document based on the comparison result.
Drawings
Claims6
An image processing method for processing an image obtained by reading a document plate on which at least one document is placed, comprising:
a first detecting step of specifying, by a first detecting unit, a first rectangular region including all of objects included in the image to detect the coordinates of each vertex of the first rectangular region;
an identifying step of identifying, by an identifying unit, on each of the objects whether the object corresponds to a document item serving as or included in the document placed on the document plate;
an eliminating step of eliminating, by an eliminating unit, the object, identified as a non-object that does not correspond to a document item in the identifying step, from the image;
a second detecting step of specifying, by a second detecting unit, a second rectangular region to detect the coordinates of each vertex of the second rectangular region, the second rectangular region including all of the objects in the image subjected to the eliminating step, each side of the second rectangular region being parallel to the corresponding side of the image, the second rectangular region having a minimum area;
a comparing step of comparing, by a comparing unit, the coordinates of each vertex detected in the first detecting step with the coordinates of the vertices detected in the second detecting step;
and
a determining step of determining, by a determining unit, a method of cropping the document in accordance with the result of the comparing step.
4 more elements
An image processing apparatus for processing an image obtained by reading a document plate on which at least one document is placed, the apparatus comprising:
a first detecting unit configured to specify a first rectangular region including all of objects included in the image to detect the coordinates of each vertex of the first rectangular region;
an identifying unit configured to identify on each of the objects whether the object corresponds to a document item serving as or included in the document placed on the document plate;
an eliminating unit configured to eliminate the object, identified as a non-object that does not correspond to a document item, from the image;
a second detecting unit configured to specify a second rectangular region to detect the coordinates of each vertex of the second rectangular region, the second rectangular region including all of the objects in the image subjected to the elimination, each side of the second rectangular region being parallel to the corresponding side of the image, the second rectangular region having a minimum area;
a comparing unit configured to compare the coordinates of each vertex detected by the first detecting unit with those of the vertices detected by the second detecting unit;
and
a determining unit configured to determine a method of cropping the document in accordance with the result of the comparing unit.
19 May 2031Estimated · howhide20 years from earliest known nonprovisional domestic filing plus recorded patent term adjustment, including 750 days of adjustment. Maintenance-fee lapses, terminal disclaimers and statutory extensions have not been checked. The continuity chain may be incomplete; this is not an enforceability determination.
#The present invention relates to an image processing apparatus and method for reading a document placed on an image reader, processing the read image, and outputting the processed image, and a processing program.
#FIG. 1 is a block diagram of an image reader R1 according to a first embodiment of the present invention. The image reader R1 includes an imaging lens 2, a charge-coupled device linear image sensor (CCD) 3, an amplifier 4, an analog-to-digital (A/D) converter 5, an image processing circuit 6, a buffer memory 7, an interface circuit 8, and a CPU controller 9. The image reader R1 further includes a light source driving circuit 10, a light source lamp 11, a motor driving circuit 12, a driving motor 13, a working memory 14, a gamma lookup table (LUT) 15, and an operation panel 16. The CCD 3 is a solid state image pickup device. The amplifier 4 amplifies an analog image signal output from the CCD 3. The A/D converter 5 converts the analog image signal output from the amplifier 4 into a digital image signal. The image processing circuit 6 performs image processing, such as offset correction, shading correction, digital gain adjustment, color balance adjustment, color masking conversion, and resolution conversion in the main and sub scanning directions.
#The buffer memory 7 includes a RAM and temporarily stores image data. The interface circuit 8, through which a command is transferred or image communication is performed, is connected to an external information apparatus CT1. As for the interface circuit 8, for example, an SCSI, a parallel interface, a USB interface, an IEEE 1394 interface, a LAN interface, or a wireless LAN interface is used. The CPU controller 9 controls the image reader R1 in accordance with an instruction from the external information apparatus CT1. Specifically, the CPU controller 9 controls the image processing circuit 6, the light source driving circuit 10, and the motor driving circuit 12. The light source driving circuit 10 turns on or off the light source lamp 11. The light source lamp 11 illuminates a document D1. Reflected light having an intensity according to a density on the surface of the document D1 passes through the imaging lens 2, so that an image based on the light is formed on the linear image sensor serving as the CCD 3. The motor driving circuit 12 drives the driving motor 13, such as a stepper motor, and outputs an excitation signal for the driving motor 13 in accordance with a control signal supplied from the CPU controller 9 serving as a system control unit of the image reader R1. The working memory 14 is used as a temporal working memory for image processing by the image processing circuit 6. The working memory 14 is used to correct the RGB interline offset between image signals from R, G, and B linear sensors arranged in parallel to one another with a predetermined offset on the CCD 3. The working memory 14 also temporarily stores various pieces of data for shading correction.