1. Field of the Invention
The present invention relates to an image processing system for photographing a printed document by a mobile terminal apparatus.
2. Description of the Related Art
Owing to advancement of a digital camera technique, it is quite common that a printed document image is photographed by using a mobile terminal such as a cellular phone or the like. The mobile terminal can use an Internet environment. Thus, the photographed document image can be printed by a simple operation through a network. That is, so long as there are a mobile terminal and a print environment, the mobile terminal can be used as a simple digital multi-function apparatus. However, if the document image photographed by the mobile terminal is printed as it is, there are various problems such as a geometrical distortion and the like. Japanese Patent Application Laid-Open No. 2011-55467, for example, discloses executing an imaging process to a document image, and then printing the document image.
Some conventional printers have the Nup function (page arranging function), where images of a plurality of pages are reduced and arranged on one sheet of paper and printed in order to save sheets. For example, such printers can perform 4up printing, where images of four pages are arranged on one sheet of paper and printed. According to Japanese Patent Application Laid-Open No. 2011-55467, in the case where the user photographs one sheet of Nup document by a camera equipped for the mobile terminal and prints the photographed document, for example, a printed document image also becomes a page-arranged image (Nup image). In the case where the user feels that a resolution of the image of a portion corresponding to a specific page in the printed document image is low, the user allows the camera of the mobile terminal to approach the portion corresponding to the specific page on the document, photographs the document again, and prints the image of the portion which has been photographed again. Such a situation that the user can confirm the resolution of the image of the portion corresponding to the specific page only after such an image is printed once is troublesome to the user.
In order to solve the problems discussed above, the present invention provides an image processing apparatus comprising a scanning unit that obtains an image by scanning a document, an analyzing unit that analyzes plural portions included in the obtained image, and a displaying unit that displays plural pieces of readability information corresponding respectively to the plural portions, each piece of readability information indicating a readability of one of the plural portions, together with the obtained image on the basis of the analysis by the analyzing unit, wherein the readability is a readability of characters
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Exemplary embodiments of the invention will be described hereinbelow with reference to the drawings.
An outline of the mobile terminal according to the embodiment is illustrated in
The whole operation of the embodiment will be described. First, image data of a document photographed by the mobile terminal 101 is transmitted to the wireless router 102 by using the wireless LAN transmitting and receiving device 307. The wireless router 102 transmits the received image data to the personal computer 105 through the local area network equipment 103. The personal computer 105 transfers the received image data to the printer 104, thereby printing it. By the above operation, the image photographed by the camera by using the mobile terminal can be printed. Even if it is not printed, the image data may be stored as a file into a storage device (not shown) built in the personal computer 105. At this time, the image data may be used as a PDF file.
Subsequently, the embodiment will be described in detail with reference to a flowchart of
First, in S1001, a screen to select the number N of pages arranged on one page (hereinbelow, referred to as the number N) of a page arranged document (Nup document) to be photographed is displayed on the touch screen 201 by using the operation unit controller 309. For example, the number N is displayed as illustrated in
In S1002, camera information (image data photographed by the camera light receiving unit 203) is obtained from the camera device 308 and stored into the RAM 302. The operation unit controller 309 reads out the image data from the RAM 302 and displays onto the touch screen 201.
In S1003, the division number is discriminated by using the image data and the number N stored in the RAM 302. In the division number discrimination, how many pages (it is certainly equal to or less than N pages) in the Nup document displayed on the touch screen 201 of the mobile terminal have been displayed by the process of S1002 is discriminated. By this discrimination, into which number of pages the page should be divided when the image data is stored can be known. The pages in the Nup document which is displayed in this instance denote an image of each page arranged on one sheet of document. For example, if the whole 4up document is displayed on the touch screen 201, four pages can be photographed by the camera device 308. If the mobile terminal and the document are sufficiently away from each other in order to photograph the whole document, three or more of four edge portions of the document are displayed on the touch screen 201. The edge portions of the document mentioned here (document edge portions) denote corners of the document sheet.
As described above, the number of edge portions of the document differs in dependence on a mode in which the whole Nup document is photographed or a mode in which a part of the document (some of the pages of the document) is photographed. Therefore, in the embodiment, the number of pages in the display screen is discriminated on the basis of the number of edge portions of the document.
Subsequently, in S2002, the processing routine is branched in accordance with the number N stored in the RAM 302. If the number N is equal to 4up, the processing routine advances to S2003. In S2003, whether or not the number of detected edge portions is equal to or larger than 3 is discriminated. If it is equal to or larger than 3, 4 is substituted into a variable NUP in S2004. If three or more edge portions are not detected in S2003, S2005 follows. In S2005, whether or not the number of detected edge portions is equal to or larger than 2 is discriminated. If it is equal to 2, 2 is substituted into the variable NUP in S2006. In S2005, if the number of detected edge portions is less than 2, 1 is substituted into NUP in S2007.
Further, if the number N stored in the RAM 302 is not equal to 4up in S2002, S2008 follows and whether or not it is equal to 2up is discriminated. If it is equal to 2up, S2009 follows and whether or not the number of detected document edge portions is equal to or larger than 3 is discriminated. If it is equal to or larger than 3, 2 is substituted into the variable NUP in S2010. This is because if the whole 2up document has been photographed, the division number is equal to 2. On the other hand, if it is not equal to 2up (pages are not arranged on one page) and if only two or less edge portions have been detected in S2009, 1 is substituted into NUP in S2011. This is because in the case where the pages are not arranged on one page and the case where the half of the 2up document has been photographed, there is no need to divide the page.
By the process of S1003 mentioned above, the number of photographed pages is substituted into the variable NUP. Subsequently, in S1004, whether or not a value of NUP as a discrimination result of S1003 is equal to or larger than 2 is discriminated. If it is equal to or larger than 2, S1005 follows. In other cases, S1012 follows.
In S1005, a division area notification image (hereinbelow, referred to as a division indicator) is formed and the image data and the division indicator are combined and displayed onto the touch screen 201 of the mobile terminal. Examples of the division indicator are illustrated in
Subsequently, in S1006, a high resolution page is discriminated. In the high resolution page discrimination, to the image of each area divided by the division indicator displayed in S1005, a resolution of an image which is desirable to the printing of the image of each area is discriminated. Ordinarily, in the case where the Nup document photographed by the camera is divided and printed, an enlargement printing is performed. At this time, in the case of an image obtained by photographing a small point character from a remote place, the camera cannot resolve a line constructing the character and cannot perform the detailed printing in which the resolution of the image is high. On the other hand, in the case of a large point character, a photograph image, or a simple graphic image, the detailed printing in which the image can be sufficiently discriminated can be performed. From the above reasons, whether or not the subject image data can be beautifully printed in the enlargement printing is discriminated.
A flowchart for the high resolution page discriminating method in S1006 is illustrated in
First, in S3001, a DFT (digital Fourier transformation) process is executed to the first quadrant of the image data. Thus, a frequency component of the image data of the first quadrant is extracted. In S3002, a component of the center frequency (power is high) among the frequencies is obtained and is substituted into a variable f. In S3003, a frequency which is desirable to print a high resolution image is obtained and is assumed to be “fmax”. Since it is necessary to prepare fmax, it has been stored in the ROM 303. Since fmax varies in dependence on performance such as resolution, the number of pixels, or the like of the camera, it is necessary to previously decide its value at the time of development of the mobile terminal 101.
In S3004, a difference between fmax and f is assumed to be “delta”. Namely, a comparison is made between the frequency as required and the frequency of the image. In S3005, whether or not delta is larger than a threshold value “f_th1” is discriminated. If it is larger than f_th1, it is possible to determine that the frequency of the image data is low. In such a case, the CPU 301 decides that the first quadrant is a low frequency page. In S3006, the first quadrant is set as a low frequency page. The image of the low frequency page is, for example, such an image that a character of a large size is included. It is such an image that even in the case where the document is photographed so that the whole document is included in the photographed image, the user can relatively clearly discriminate the contents of the document.
If delta is equal to or less than f_th1 in S3005, in S3007, whether or not delta is larger than another threshold value “f_th2” smaller than f_th1 is discriminated. If it is determined that delta is larger than f_th2, there is a possibility that a high frequency image which cannot be resolved is included. In such a case, the CPU 301 decides that the first quadrant is a middle frequency page. In S3008, the first quadrant is set as a middle frequency page. The image of the middle frequency page is, for example, such an image that a character of about a middle size is included. That is, it is such an image that in the case where the document is photographed so that the whole document is contained in the photographed image, it is difficult for the user to discriminate the contents of the document in dependence on photographing conditions or the document contents. Therefore, the image of the middle frequency page is such an image that it is necessary to warn the user that there is a possibility that the high resolution detailed image cannot be printed by the printer 104. If delta is equal to or less than f_th2 in S3007, in S3009, the CPU 301 decides that the first quadrant is a high frequency page. The image of the high frequency page is, for example, such an image that a character of a very small size is included. That is, it is such an image that in the case where the document is photographed so that the whole document is contained in the photographed image, it will be more impossible for the user to discriminate the contents of the document than the image of the middle frequency page. Therefore, the image of the high frequency page is such an image that even if the image of the high frequency page is printed by the printer 104, since it is presumed that the high resolution detailed image cannot be printed, it is necessary to promote the user to approach the document and photograph it.
The processes of S3001 to S3009 are repeated with respect to the second to fourth quadrants. In the case where the image data divided into each quadrant is printed by the printer 104 as mentioned above, whether or not the high resolution detailed image can be printed is discriminated.
Returning to
In S1008, the operation unit controller 309 obtains a storing instruction from the user. If there is no storing instruction, the processing routine is returned to S1002. If the storing instruction has been input, the processing routine advances to S1009. In S1009, the image is divided in accordance with the areas divided by the division indicator in
After the division, a process such as trimming or resolution change is executed to each page by the image processing device 310 in
Subsequently, in S1010, a plurality of divided images are stored into the RAM 302. In S1011, whether or not the process is finished is discriminated. If the operation unit controller 309 received an end instruction from the user on the touch screen 201, the processing routine is finished. In the case of continuing the photographing without finishing the process, the processing routine is returned to S1002.
When NUP is equal to 1 in S1004, the processing routine advances to S1012. Since S1012 is substantially the same process as S1008, its description is omitted. Subsequently, in S1013, the new image data is compared with the old image data which has already been stored in the RAM 302 in S1010, thereby discriminating whether or not they are the same page. As a method of discriminating whether or not they are the same page, there are various methods. For example, generally, there is used a method whereby a correlation coefficient of normalized histograms of the old image data and the new image data is obtained and whether or not the correlation coefficient is close to 1 is discriminated. If it is close to 1, this means that they are the same page. If it is far from 1, this means that they are different pages. However, as a method of discriminating whether or not the images are identical, various methods have been proposed. The invention is not limited to a specific discriminating method.
In S1014, if the image data of the same page is not found in the RAM 302 as a search result of S1013, the processing routine advances to S1010. The page number is added after the stored image data and the image is added. If it is determined in S1014 that the image data has been stored as a search result of S1013, which one of the resolution of the stored image and the resolution of the new image is higher is discriminated in S1015. As a discriminating method, for example, at the time of image storage in S1010, the value of NUP is also stored as additional information and NUP of the new image is compared with NUP of the stored image. If NUP of the new image is lower, this means that the division number is small and the resolution is high. Therefore, in S1016, the stored image is replaced with an image in which a numerical value of the division number NUP is smaller than that of the stored image and stored. When the image is replaced in S1016, the header information such as a page number or the like of the image before the replacement is added to the image which is used for the replacement.
By the above process, the page-divided image data is formed in order. The images of a plurality of pages formed in the flow of
As described above, in the embodiment, when the image of the Nup document is photographed by the mobile terminal, the user can photograph and print the image at a proper resolution.
In the second embodiment, the division number discrimination in S1003 in
First, in S1001 in
Subsequently, in S1002, camera information (image data photographed and received by the camera light receiving unit 203) is obtained from the camera device 308 and stored into the RAM 302. The operation unit controller 309 reads out the image data from the RAM 302 and displays onto the touch screen 201. Further, a focal distance is obtained from the camera device 308 by using an auto-focus function of the auto-focus device 204. The focal distance is a distance between a photographing subject to be measured by the auto-focus function and a photosensing element of the camera. Therefore, a distance L (cm) between the mobile terminal and the document can be measured by using the focal distance.
The division number discriminating process of S1003 will be described with reference to a flowchart of
Subsequently, in S4002, whether or not the number N stored in the RAM 302 is equal to 4up is discriminated. If it is equal to 4up, in S4003, the distance L between the mobile terminal and the document is compared with TH1. If the distance L is larger than TH1, it is determined that the whole document has been photographed. Therefore, in S4004, 4 is substituted into the variable NUP.
In S4003, if the distance L is equal to or less than TH1, S4005 follows. In S4005, the distance L is compared with TH2. If L is larger than TH2, the camera light receiving unit 203 determines that the half of the document has been photographed. Therefore, in S4006, 2 is substituted into the variable NUP. In S4005, if L is equal to or less than TH2, since it is possible to decide that the image has been further enlarged, in S4007, 1 is substituted into the variable NUP.
In S4002, if the number N stored in the RAM 302 is not equal to 4up, S4008 follows. In S4008, whether or not N is equal to 2up is discriminated. If it is equal to 2up, in S4009, the distance L is compared with TH1. If the distance L is larger than TH1, the camera light receiving unit 203 determines that the whole document has been photographed. In S4010, 2 is substituted into NUP. When the number N stored in the RAM 302 is not equal to 2up in S4008 and when L is equal to or less than TH1 in S4009, it is determined that the image of one page has been photographed. Therefore, in S4011, 1 is substituted into the variable NUP.
Since processes in S1004 and subsequent steps are substantially the same as those in the first embodiment, their description is omitted here.
As described above, in S1003 of the second embodiment, there is no need to obtain edge portion information of the document from the image data displayed on the touch screen 201. Therefore, a high speed process can be executed as compared with the first embodiment. Further, according to the second embodiment, when the Nup document image is photographed by the mobile terminal, the user can be guided so that he can photograph the image at a proper resolution.
As described above, when the Nup document image is photographed by the mobile terminal, the user can be guided so that he can photograph the image at a proper resolution.
Embodiments of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions recorded on a storage medium (e.g., non-transitory computer-readable storage medium) to perform the functions of one or more of the above-described embodiment(s) of the present invention, and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more of a central processing unit (CPU), micro processing unit (MPU), or other circuitry, and may include a network of separate computers or separate computer processors. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2012-276770, filed Dec. 19, 2012, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2012-276770 | Dec 2012 | JP | national |