Summary of the invention
In view of above content, be necessary to provide a kind of method that can change the image processing apparatus and the control image processing apparatus of scanning resolution according to the white space of sweep object.
A kind of image processing apparatus is used to scan printing figure shelves, and said image processing apparatus comprises:
Scan module is used for scanning said printing figure shelves along a first direction of said printing figure shelves;
The stepping module is used at the said scan module that moves up of the second party perpendicular to said first direction;
First judge module, be used to judge said scan module said second party move up one first apart from the time bar image that obtains along said first direction scanning continuously whether be blank; And
The first scan control module, be used for when the judged result of first judge module when being, control said scan module with the said printing figure of one first resolution scan shelves.
A kind of control method; Be used to control an image processing apparatus and scan printing figure shelves; Said image processing apparatus comprises scan module and stepping module, and said scan module is used for scanning said printing figure shelves along a first direction of said printing figure shelves, and the scanning width of said scan module is not less than the width of the first direction of said printing figure shelves; Said stepping module is used at the said scan module that moves up of the second party perpendicular to said first direction, and said method comprises:
Controlling said stepping module moves said scan module and scans said printing figure shelves;
Obtain said scan module said second party move up one first apart from the time one first bar image that obtains continuously along said first direction scanning;
When judging said first bar image, control said scan module with the said printing figure of one first resolution scan shelves for blank.
Compared with prior art, the method for above-mentioned image processing apparatus and control image processing apparatus to being used different scanning resolutions by the white space of the printing figure shelves that scanned, makes scanning process become more flexible, has improved scan efficiency.
Embodiment
See also Fig. 1; Schematically show the image processing apparatus according to one embodiment of the present invention among the figure, said image processing apparatus comprises scan module 102, stepping module 104, first judge module 106, the first scan control module 108, second judge module 110 and the second scan control module 112.
Said scan module 102 is used for scanning said printing figure shelves along a first direction of said printing figure shelves, and the scanning width of said scan module is not less than the width of the first direction of said printing figure shelves.In one embodiment, said scan module 102 is an optical pickup device, for example charge-coupled device (CCD) or contact type image induction installation (CIS).Said first direction is the scanning direction of said scan module on said printing figure shelves, is generally the horizontal direction of said printing figure shelves.The resolution of said scan module 102 has been represented in a lateral direction can the images recorded fineness, generally uses DPI (Dots Per Inch) expression, promptly representes with the number of the pixel that scan image contained on the per inch length.In one embodiment, said scan module 102 writes down each color of pixel with rgb value, and said rgb value comprises the brightness value of Red Green Blue respectively.
Said stepping module 104 is used at the said scan module 102 that moves up of the second party perpendicular to said first direction.Said second direction is generally the longitudinal direction of said printing figure shelves.The stepping rate of said stepping module 104 has determined scan image resolution in a longitudinal direction, and when the stepping rate of said stepping module 104 was faster, longitudinal frame was low more, and when stepping rate was slower, longitudinal frame was high more.
Said first judge module 106, be used to judge said scan module 102 said second party move up one first apart from the time bar image that obtains along said first direction scanning continuously whether be blank.Said first distance is for judging whether an image-region is blank preset empirical value, and when required precision was higher, said first distance can be preset as smaller value; Such as 200 pixels; When required precision was low, said first distance can be preset as higher value, such as 1000 pixels.On a position, scan the image that obtains when said scan module 102 and be blank; And when the image that obtains of scanning all be blank on next continuous position; Whether the distance of judging these positions is more than or equal to said first distance; When the result when being, be regarded as white space at this apart from the image that lining scanning obtains.Writing down with rgb value in the execution mode of each color of pixel; Judge whether an image is blank; Be whether all to be 255 to distinguish, when the rgb value of a pixel is (255,255 with the three primary colors brightness value of the rgb value of each pixel of this image; 255) time, represent that this pixel is a pure white.It will be understood by those of skill in the art that visual white is not an absolute value, but a value range, in different embodiment, span size that can white is set to difference.
The said first scan control module 108, be used for when the judged result of first judge module 106 when being, control said stepping module 104 and move said scan module 102 with the said printing figure of one first resolution scan shelves with one first speed.White space is scanned with fast speeds with lower resolution, neither can reduce the picture quality of scanning, can also improve the efficient of scanning.Resolution when therefore, the speed of said first speed during greater than normal scan, said first resolution are less than normal scan.Said first resolution is less than the ultimate resolution of said scan module 102, and the ultimate resolution of said scan module 102 is the build-in attribute of said scan module 102, is subject to the optically read performance of said scan module 102.
Said second judge module 110 is used to judge whether the bar image that said scan module 102 obtains along said first direction scanning continuously is non-blank-white when said second party moves up a second distance.Said second distance is for to judge whether an image-region is the experience distance value of non-blank-white; When said scan module 102 scans the image that obtains on a position is non-blank-white; And when the image that obtains of scanning all is non-blank-white on next continuous position; Whether the distance of judging these positions when condition satisfy, judges at this image that apart from lining scanning obtain be non-blank-white zone more than or equal to said second distance.Writing down with rgb value in the execution mode of each color of pixel; Judge whether an image is non-blank-white; Be whether to comprise at least one non-pure white pixel with this image to distinguish; When having one in the three primary colors brightness value of the rgb value of a pixel at least less than 255 the time, represent that this pixel is non-pure white, the image of also having represented to comprise this pixel is a non-blank-white.
The said second scan control module 112, be used for when the judged result of second judge module 110 when being, control said stepping module 104 and move said scan module 102 with the said printing figure of one second resolution scan shelves with a second speed.For guaranteeing the picture quality of scanning, for the non-blank-white zone, should scan with slower speed with higher resolution, therefore, said second speed is less than said first speed, and said second resolution is greater than said first resolution.
See also Fig. 2; Schematically show the process that scans printing figure shelves according to the image processing apparatus of one embodiment of the present invention among the figure; Rectangle among the figure is represented the printing figure shelves that a quilt is scanned, and first direction is the scanning direction of said scan module 102, and second direction is the direct of travel that said stepping module 104 moves said scan module 102; Dash area in the rectangle is represented non-blank-white zone, the pure white Regional Representative's white space in the rectangle.Said scan module 102 moves down along second direction from the top edge of printing figure shelves under the control of said stepping module 104, and along first direction printing figure shelves is scanned simultaneously.When said scan module 102 moves to the lower limb in first non-blank-white zone; Said first judge module 106 is judged said scan module 102 and is got into a white space; This moment, said stepping module 104 was adjusted into first speed with the gait of march of said scan module 102, and the scanning resolution of said scan module 102 is adjusted into first resolution, wherein; The speed of said first speed during, said first resolution resolution during less than normal scan greater than normal scan.When said scan module 102 moves to the lower limb of first white space; Said second judge module 110 is judged said scan module 102 and is got into a non-blank-white zone; This moment, said stepping module 104 was adjusted into second speed with the gait of march of said scan module 102, and the scanning resolution of said scan module 102 is adjusted into second resolution, wherein; Said second speed is less than said first speed, and said second resolution is greater than said first resolution.
See also Fig. 3; Schematically show flow chart among the figure according to the control image processing apparatus of one embodiment of the present invention; Said image processing apparatus comprises scan module and stepping module; Said scan module is used for scanning said printing figure shelves along a first direction of said printing figure shelves; The scanning width of said scan module is not less than the width of the first direction of said printing figure shelves, and said stepping module is used for said method comprising the steps of at the said scan module that moves up of the second party perpendicular to said first direction:
Step S202 controls said stepping module and moves said scan module and scan said printing figure shelves.In one embodiment, said scan module writes down each color of pixel with rgb value, and said rgb value comprises the brightness value of Red Green Blue respectively.
Step S204, obtain said scan module said second party move up one first apart from the time bar image that obtains continuously along said first direction scanning.
Step S206 judges whether the bar image in step S204, obtain is blank, when the result when being, get into step S208, when the result when denying, return step S204.Writing down with rgb value in the execution mode of each color of pixel; Judge whether an image is blank; Be whether all to be 255 to distinguish, when the rgb value of a pixel is (255,255 with the three primary colors brightness value of the rgb value of each pixel of this image; 255) time, represent that this pixel is a pure white.It will be understood by those of skill in the art that visual white is not an absolute value, but a value range, in different embodiment, span size that can white is set to difference.
Step S208 controls said stepping module and moves said scan module with the said printing figure of one first resolution scan shelves with one first speed.The speed of said first speed during, said first resolution resolution during less than normal scan greater than normal scan.
Step S210 obtains the bar image that said scan module obtains along said first direction scanning continuously when said second party moves up a second distance.
Step S212 judges whether the bar image in step S210, obtain is non-blank-white, when the result when being, get into step S214, when the result when denying, return step S210.Writing down with rgb value in the execution mode of each color of pixel; Judge whether an image is non-blank-white; Be whether to comprise at least one non-pure white pixel with this image to distinguish; When having one in the three primary colors brightness value of the rgb value of a pixel at least less than 255 the time, represent that this pixel is non-pure white, the image of also having represented to comprise this pixel is a non-blank-white.
Step S214 controls said stepping module and moves said scan module with the said printing figure of one second resolution scan shelves with a second speed.Said second speed is less than said first speed, and said second resolution is greater than said first resolution.
To one skilled in the art, can combine the actual needs of production to make other corresponding changes or adjustment according to invention scheme of the present invention and inventive concept, and these changes and adjustment all should belong to the protection range of claim of the present invention.