Method for reproducing images and image-processing apparatus using the method
09769351 · 2017-09-19
Assignee
Inventors
- Chen-Chang Li (Toufen Township, Miaoli County, TW)
- Ching-Ching Lin (Zhubei, TW)
- Seifor Hsu (Chu-Pei, TW)
Cpc classification
H04N2201/0094
ELECTRICITY
H04N1/3873
ELECTRICITY
H04N1/3876
ELECTRICITY
International classification
Abstract
A method for reproducing images comprises the steps of: obtaining 1.sup.st to N.sup.th scan images in order, where N is a positive integer greater than 2; processing the 1.sup.st to N.sup.th scan images into 1.sup.st to N.sup.th document images and obtaining sizes of the 1.sup.st to N.sup.th document images; and performing an ordered document typesetting according to an ordered accumulated size of the 1.sup.st to N.sup.th document images to generate image data corresponding to one or multiple output pages. An image-processing apparatus is also provided. Thus, it is possible to prevent the waste of printing a small-size document image on a large-size sheet, and the user can obtain the order of documents according to the order of the output pages. So, an instinctive and environment protective copying technical solution can be provided, and an output result can be further adjusted.
Claims
1. A method for reproducing images, the method being used in an image-processing apparatus and comprising the steps of: (a) obtaining 1.sup.st to N.sup.th scan images, having different sizes of scan image areas, in order, with a scanning module of the image-processing apparatus to scan documents having different sizes of document areas, where N is a positive integer greater than 2; (b) processing the 1.sup.st to N.sup.th scan images to obtain 1.sup.st to N.sup.th document images, different sizes of document image areas, and sizes of the 1.sup.st to N.sup.th document images, with a processing module of the image-processing apparatus; (c) performing an ordered document typesetting to determine how many ordered document images of the 1.sup.st to N.sup.th document images can be arranged in one output page or each of multiple output pages in order based on a reference point at a corner of the one output page or each of the output pages according to an ordered accumulated size of the 1.sup.st to N.sup.th document images and generating image data corresponding to the one or multiple output pages, with the processing module of the image-processing apparatus; and (d) processing the image data into print data and printing the print data on one or multiple print media by a printing module of the image-processing apparatus; or outputting the image data to one or both of a storage device of the image-processing apparatus and an external device through an output module of the image-processing apparatus, wherein in the output page or one of the output pages, a straight line connected to two middle points of the ordered neighboring two different sizes of document image areas with different horizontal dimensions and different vertical dimensions is at a non-perpendicular angle relative to one of edges of the output page.
2. The method according to claim 1, wherein in the step (c), an ordered size determination is performed according to the ordered accumulated size of the 1.sup.st to N.sup.th document images and a size or sizes of the one or multiple output pages to arrange the 1.sup.st to N.sup.th document images on the one or multiple output pages in order.
3. The method according to claim 1, wherein the step (c) comprises: (c1) judging whether the 1.sup.st to n.sup.th document images can be arranged on the output page in order, where n is a positive integer greater than 1 and smaller than or equal to N; (c2) processing the 1.sup.st to (n−1).sup.th document images into first image data corresponding to the output page, and resetting N to N−(n−1) if the 1.sup.st to n.sup.th document images cannot be arranged on the output page in order; and (c3) increasing n by 1 and repeating the steps (c1) to (c2) until n is greater than N if the 1.sup.st to n.sup.th document images can be arranged on the output page in order, wherein when n is greater than N, the 1.sup.st to N.sup.th document images are processed into second image data corresponding to the output page.
4. The method according to claim 3, wherein when a total count of the first image data and the second image data is greater than or equal to 2, the step (c) further comprises: (c4) performing rotating and scaling-down operations on the first image data and the second image data to generate third image data corresponding to the output page.
5. The method according to claim 1, wherein in the step (c), the 1.sup.st to N.sup.th document images are divided into 1.sup.st to M.sup.th odd pages of document images and 1.sup.st to M.sup.th even pages of document images, an ordered size determination is performed according to an ordered accumulated size of the 1.sup.st to M.sup.th odd or even pages of document images and a size or sizes of the one or multiple output pages to arrange the 1.sup.st to M.sup.th odd pages of document images and the 1.sup.st to M.sup.th even pages of document images on front and reverse sides of the one or multiple output pages in order, respectively, wherein the 1.sup.st to M.sup.th even pages of document images are arranged on the front and reverse sides of the one or multiple output pages of the 1.sup.st to M.sup.th odd pages of document images in a back-to-back manner, respectively.
6. The method according to claim 1, wherein the step (c) comprises: (c1) dividing the 1.sup.st to N.sup.th document images into 1.sup.st to M.sup.th odd pages of document images and 1.sup.st to M.sup.th even pages of document images; (c2) judging whether the 1.sup.st to n.sup.th odd or even pages of document images can be arranged on a front side or a reverse side of the output page in order, where n is a positive integer greater than 1 and smaller than or equal to M; (c3) processing the 1.sup.st to (n−1).sup.th odd and even pages of document images into first odd and even pages of image data corresponding to the front and reverse sides of the output page, and resetting M to M−(n−1) if the 1.sup.st to n.sup.th odd or even pages of the document images cannot be arranged on the front side or the reverse side of the output page in order; and (c4) increasing n by 1 and repeating the steps (c2) to (c3) until n is greater than M if the 1.sup.st to n.sup.th odd or even pages of the document images can be arranged on the front side or the reverse side of the output page in order, wherein when n is greater than M, the 1.sup.st to M.sup.th odd and even pages of document images are processed into second odd and even pages of image data corresponding to the front and reverse sides of the output page.
7. The method according to claim 6, wherein when a total count of the first odd and even pages of image data and the second odd and even pages of image data is greater than or equal to 4, the step (c) further comprises: (c5) performing one or both of rotating and scaling-down operations on the first odd and even pages of image data and the second odd and even pages of image data to generate third odd and even pages of image data corresponding to the front and reverse sides of the output page.
8. The method according to claim 1, wherein the step (b) comprises: performing a skew correction, an edge detection and a frame addition on the 1.sup.st to N.sup.th scan images to obtain the 1.sup.st to N.sup.th document images.
9. An image-processing apparatus, comprising: a scanning module; a feeder for transporting documents past the scanning module, wherein the scanning module scans the documents, having different sizes of document areas, and obtains 1.sup.st to N.sup.th scan images, having different sizes of scan image areas, in order, where N is a positive integer greater than 2; a processing module, which is connected to the scanning module and executes the operations of: (a) processing the 1.sup.st to N.sup.th scan images to obtain 1.sup.st to N.sup.th document images, having different sizes of document image areas, and sizes of the 1.sup.st to N.sup.th document images; and (b) performing an ordered document typesetting to determine how many ordered document images of the 1.sup.st to N.sup.th document images can be arranged in one output page or each of multiple output pages in order based on a reference point at a corner of the one output page or each of the output pages according to an ordered accumulated size of the 1.sup.st to N.sup.th document images to generate image data corresponding to the one or multiple output pages; and one or both of a printing module and an output module, wherein the printing module is connected to the processing module, processes the image data into print data, and prints the print data on one or multiple print media, and the output module is connected to the processing module and outputs the image data to one or both of a storage device of the image-processing apparatus or an external device, wherein in the output page or one of the output pages, a straight line connected to two middle points of the ordered neighboring two different sizes of document image areas with different horizontal dimensions and different vertical dimensions is at a non-perpendicular angle relative to one of edges of the output page.
10. The image-processing apparatus according to claim 9, wherein the processing module performs an ordered size determination according to the ordered accumulated size of the 1.sup.st to N.sup.th document images and a size or sizes of the one or multiple output pages to arrange the 1.sup.st to N.sup.th document images on the one or multiple output pages in order.
11. The image-processing apparatus according to claim 9, wherein the operation (b) comprises: (b1) judging whether the 1.sup.st to n.sup.th document images can be arranged on the output page in order, where n is a positive integer greater than 1 and smaller than or equal to N; (b2) processing the 1.sup.st to (n−1).sup.th document images into first image data corresponding to the output page, and resetting N to N−(n−1) if the 1.sup.st to n.sup.th document images cannot be arranged on the output page in order; and (b3) increasing n by 1 and repeating the operations (b1) to (b2) until n is greater than N if the 1.sup.st to n.sup.th document images can be arranged on the output page in order, wherein when n is greater than N, the 1.sup.st to N.sup.th document images are processed into second image data corresponding to the output page.
12. The image-processing apparatus according to claim 11, wherein when a total count of the first image data and the second image data is greater than or equal to 2, the operation (b) further comprises: (b4) performing rotating and scaling-down operations on the first image data and the second image data to generate third image data corresponding to the output page.
13. The image-processing apparatus according to claim 9, wherein the processing module divides the 1.sup.st to N.sup.th document images into 1.sup.st to M.sup.th odd pages of document images and 1.sup.st to M.sup.th even pages of document images, and performs an ordered size determination according to an ordered accumulated size of the 1.sup.st to M.sup.th odd or even pages of document images and a size or sizes of the one or multiple output pages to arrange the 1.sup.st to M.sup.th odd pages of document images and the 1.sup.st to M.sup.th even pages of document images on front and reverse sides of the one or multiple output pages in order, respectively, wherein the 1.sup.st to M.sup.th even pages of document images are arranged on the front and reverse sides of the one or multiple output pages of the 1.sup.st to M.sup.th odd pages of document images in a back-to-back manner.
14. The image-processing apparatus according to claim 9, wherein the operation (b) comprises the steps of: (b1) dividing the 1.sup.st to N.sup.th document images into 1.sup.st to M.sup.th odd pages of document images and 1.sup.st to M.sup.th even pages of document images; (b2) judging whether the 1.sup.st to n.sup.th odd or even pages of document images can be arranged on a front side or a reverse side of the output page in order, where n is a positive integer greater than 1 and smaller than or equal to M; (b3) processing the 1.sup.st to (n−1).sup.th odd and even pages of document images into first odd and even pages of image data corresponding to the front and reverse sides of the output page, and resetting M to M−(n−1) if the 1.sup.st to n.sup.th odd or even pages of document images cannot be arranged on the front side or the reverse side of the output page in order; and (b4) increasing n by 1 and repeating the steps (b2) to (b3) until n is greater than M if the 1.sup.st to n.sup.th odd or even pages of document images can be arranged on the front side or the reverse side of the output page in order, wherein when n is greater than M, the 1.sup.st to M.sup.th odd and even pages of document images are processed into second odd and even pages of image data corresponding to the front and reverse sides of the output page.
15. The image-processing apparatus according to claim 14, wherein when a total count of the first odd and even pages of image data and the second odd and even pages of image data is greater than or equal to 4, the operation (b) further comprises the step of: (b5) performing one or both of rotating and scaling-down operations on the first odd and even pages of image data and the second odd and even pages of image data to generate third odd and even pages of image data corresponding to the front and reverse sides of the output page.
16. The image-processing apparatus according to claim 9, wherein the processing module comprises: a skew correcting and edge detecting unit for performing a skew correction and an edge detection on the 1.sup.st to N.sup.th scan images to obtain the 1.sup.st to N.sup.th document images.
17. The image-processing apparatus according to claim 16, wherein the processing module further comprises: an arrangement determining unit, which is electrically connected to the skew correcting and edge detecting unit, and executes the operation (b).
18. The image-processing apparatus according to claim 9, wherein the processing module comprises: a skew correcting and edge detecting unit for performing a skew correction and an edge detection on the 1.sup.st to N.sup.th scan images; a frame adding unit for adding a frame to an output of the skew correcting and edge detecting unit to obtain the 1.sup.st to N.sup.th document images; and an arrangement determining unit, which is electrically connected to the skew correcting and edge detecting unit and executes the operation (b).
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DETAILED DESCRIPTION OF THE INVENTION
(12) The present invention will be apparent from the following detailed description, which proceeds with reference to accompanying drawings.
(13)
(14)
(15) Referring to
(16) Next, in step S2, the processing module 30 performs image processing to process the 1.sup.st to N.sup.th scan images I1 to IN to obtain 1.sup.st to N.sup.th document images J1 to JN, having different sizes of document image areas, and sizes of the 1.sup.st to N.sup.th document images J1 to JN. The size comprises transversal and longitudinal dimensions. In one example, the processing module 30 comprises a skew correcting and edge detecting unit 32 for performing a skew correction and an edge detection on the 1.sup.st to N.sup.th scan images I1 to IN to obtain the 1.sup.st to N.sup.th document images J1 to A and the sizes thereof. In another example, the processing module 30 performs the edge detection and the skew correction or even a frame addition on the 1.sup.st to N.sup.th scan images I1 to IN to obtain the 1.sup.st to N.sup.th document images J1 to JN and the sizes thereof.
(17) Then, in step S3, the processing module 30 performs an ordered document typesetting or layout to determine how many ordered document images of the 1.sup.st to N.sup.th document images can be arranged in one output page or each of multiple output pages in order according to an ordered accumulated size of the 1.sup.st to N.sup.th document images J1 to A to generate image data corresponding to one or multiple output pages. In this embodiment, the processing module 30 arranges the 1.sup.st to N.sup.th document images J1 to A on one or multiple output pages OP1, OP2 (see
(18) The output page may be one surface or include front and reverse sides of a virtual print medium, and correspond to the size of the image data to be finally outputted. The unit of the size may be inch, millimeter (mm), bit, pixel or the like. The so-called accumulated size in this embodiment is directed to the accumulated width and the accumulated length of the document images J1 to JN. Upon implementation, the widths of the 1.sup.st to 2.sup.nd document images are firstly summated to obtain the accumulated width, and then whether the accumulated width is greater than the width of the output page or not is judged. If the accumulated width is not greater than the width of the output page, it represents that the 1.sup.st to 2.sup.nd document images can be arranged horizontally in parallel, and then it is further judged whether that the accumulated width of the 1.sup.st to 3.sup.rd document images is greater than the width of the output page or not, and so on; and if the accumulated width is greater than the width of the output page, it is further judged whether the accumulated length of the 1.sup.st to 2.sup.nd document images is greater than the length of the output page. If the accumulated length of the 1.sup.st to 2.sup.nd document images is greater than the length of the output page, it represents that the 1.sup.st to 2.sup.nd document images cannot be arranged horizontally, and only can be vertically arranged on different pages, and so on.
(19)
(20) If the judged result of the step S33 is affirmative, then the step S34 is executed to add 1 to n to obtain the new value of (n+1) (the programming of “n=n+1”), and then the process returns to step S32. That is the steps S33 and S36 are repeated until n is greater than N. If the judged result of the step S33 is negative, then the step S36 is executed to process the 1.sup.st to (n−1).sup.th document images J1 to Jn−1 into first image data IMD1 corresponding to the output page, then the step S37 is executed to reset N to N−(n−1), and then the process returns to the step S31.
(21) If the judged result of the step S32 is affirmative, then it represents that the N document images can be arranged on the output page. So, the step S35 is executed to process the 1.sup.st to N.sup.th document images J1 to JN into second image data IMD2 corresponding to the output page.
(22)
(23) When the front and reverse sides are scanned, the following two hardware configurations may be adopted. In the first hardware configuration, the scanning module 10 is a duplex scanning module for scanning the front and reverse sides of the documents D1 to D4 to obtain the 1.sup.st to N.sup.th scan images I1 to IN. In the second hardware configuration, the feeder 20 is a duplex feeder 20 for transporting the front and reverse sides of the documents D1 to D4 past the scanning module 10, which scans the front and reverse sides of the documents D1 to D4 to obtain the 1.sup.st to N.sup.th scan images I1 to IN.
(24) Upon typesetting, a reference point RP may be set on the output page OP1, so that the arrangement of the document images starts from this point. A spacing parameter may be set in each document image so that the neighboring document images can be separated. The image corresponding to the spacing parameter may be directly comprised in the document image, and may be a fully white image, a fully black image, an image with other colors or an image with other patterns, such as an outer frame of one single line for representing the front side image, an outer frame with dual lines for representing the reverse side image, an outer frame of one single line plus a fully white image, or the like, which does not intend to restrict the invention. Therefore, the processing module 30 may further comprise a frame adding unit 36 for adding a frame to the output of the skew correcting and edge detecting unit 32 to obtain the 1.sup.st to N.sup.th document images J1 to JN.
(25) In another embodiment, the spacing parameter may also be omitted from the output page, and be adjusted according to the count of horizontal or vertical arrangements of the document images. Of course, in still another embodiment, the spacing parameter may be omitted.
(26) The accumulated width of the document images J1 and J2 is smaller than the width of the output page OP1, so the two document images J1 and J2 may be arranged horizontally. The accumulated width of the document images J1, J2 and J3 is greater than the width of the output page OP1, so the document image J3 must be arranged below the document image J1. The accumulated width of the document images J3 and J4 is greater than the width of the output page OP1, so the document image J4 must be arranged below the document image J3, and so on. So, the output page OP1 of
(27) Although the output pages OP1 and OP2 have the same size in this embodiment, it is worth noting that the output pages OP1 and OP2 may also have different sizes in another embodiment.
(28)
(29)
(30)
(31) Referring to
(32) Upon typesetting, a reference point RPA may be set at a distance from one edge of the front side OP1A of the output page so the odd pages of image data are arranged from this point, and a reference point RPB is also set at the same distance from the edge of the reverse side OP1B of the output page opposite to the front side OP1A of the output page so that the even pages of image data are arranged from this point.
(33) Referring back to
(34) It is worth noting that the scaling-down and rotating typesetting of
(35) It is worth noting that the first and second processing modes may be present independently or concurrently. For example, the processing module may enter the first and second processing modes, wherein the first processing mode is to generate the output result according to the scan order to prevent the user from confusing the order. For example, the teacher may want to give different examination sheets to different students. On the other hand, the second processing mode is mainly to satisfy the environment protective requirement. For example, the teacher wants to keep the record regarding which examination sheets are given to which students.
(36) With the embodiments of the present invention, the judgement and comparison can be executed according to the accumulated size of the documents and the size(s) of the output page(s) to arrange the document images on one or multiple output pages in order, and to process the document images into the image data corresponding to the one or multiple output pages in order. In this manner, it is possible to prevent the waste from being caused when the small-size document image is printed on the large-size sheet, and the user may also obtain the order of documents according to the order of the output pages. So, the present invention can provide an instinctive and environment protective copying solution. Furthermore, it is also possible to judge whether the typesetting based on the size determination can be implemented or not, so that the output result can be further adjusted to achieve the copying technology further satisfying the environment protective requirement.
(37) While the present invention has been described by way of examples and in terms of preferred embodiments, it is to be understood that the present invention is not limited thereto. To the contrary, it is intended to cover various modifications. Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications.