IMAGE PROCESSING APPARATUS, CONTROL METHOD FOR IMAGE PROCESSING APPARATUS, PROGRAM, AND STORAGE MEDIUM

Abstract
When an original image containing a code image is lossy-compressed, the image quality of the code image is deteriorated. Thus, due to the deterioration of the image quality of the code image, information contained in the code image cannot be acquired. Thus, a portion corresponding to the code image is not lossy compressed, and the portion corresponding to the code image, which has not been subjected to lossy compression, is stored in a storage unit.
Description

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.



FIG. 1A shows an example of the related art.



FIG. 1B shows another example of the related art.



FIG. 2A shows an original image not containing a code image.



FIG. 2B shows an original image containing a code image.



FIG. 3 shows a configuration in which determination of whether or not to perform JPEG processing is performed after determination of whether or not a code image exists is performed.



FIG. 4 shows a configuration in which determination of whether or not a code image exists is performed while JPEG processing for an original image is performed.



FIG. 5A shows a configuration in which a JPEG image and a code image are stored.



FIG. 5B shows a configuration in which a JPEG image and information contained in a code image are stored.



FIG. 5C shows a configuration in which a JPEG image and a newly generated code image are stored.



FIG. 5D shows a configuration in which a code image and a JPEG image in an area other than the code image are stored.



FIG. 5E shows a configuration in which information contained in a code image and a JPEG image in an area other than the code image are stored.



FIG. 5F shows a configuration in which a new code image generated from information contained in a code image and JPEG image in an area other than the code image are stored.



FIG. 6A shows a configuration in which a code image is extracted.



FIG. 6B shows a configuration in which information acquired from a code image is stored.



FIG. 6C shows a configuration in which information is acquired from a code image and a new code image is generated from the information.



FIG. 7 shows a decompression unit and an output unit.


Claims
  • 1. An image processing apparatus comprising: a first control unit configured to lossy-compress an original image and to store the lossy-compressed original image in a storage unit; anda second control unit configured to determine whether the original image that has not been subjected to lossy compression contains a code image, to extract the code image from the original image that has not been subjected to lossy compression when it is determined that the original image that has not been subjected to lossy compression contains a code image, and to store the extracted code image in the storage unit without lossy-compressing the extracted code image,wherein in parallel to the determination performed by the second control unit as to whether the original image that has not been subjected to lossy compression contains a code image, the first control unit lossy-compresses the original image.
  • 2. The image processing apparatus according to claim 1, wherein the second control unit stores the extracted code image in the storage unit in association with the lossy-compressed original image to be stored in the storage unit.
  • 3. An image processing apparatus comprising: a first control unit configured to lossy-compress an original image and to store the lossy-compressed original image in a storage unit; anda second control unit configured to determine whether the original image that has not been subjected to lossy compression contains a code image, to acquire information from the code image contained in the original image that has not been subjected to lossy compression when it is determined that the original image that has not been subjected to lossy compression contains a code image, and to store the acquired information in the storage unit without lossy-compressing the acquired information,wherein in parallel to the determination performed by the second control unit as to whether the original image that has not been subjected to lossy compression contains a code image, the first control unit lossy-compresses the original image.
  • 4. The image processing apparatus according to claim 3, wherein the second control unit stores the acquired information in the storage unit, in association with the lossy-compressed original image to be stored in the storage unit, without lossy-compressing the acquired information.
  • 5. An image processing apparatus comprising: a first control unit configured to lossy-compress an original image and to store the lossy-compressed original image in a storage unit; anda second control unit configured to determine whether the original image that has not been subjected to lossy compression contains a code image, to acquire information by decoding the code image contained in the original image that has not been subjected to lossy compression when it is determined that the original image that has not been subjected to lossy compression contains a code image, to generate a new code image in accordance with the acquired information, and to store the generated new code image in the storage unit without lossy-compressing the generated new code image,wherein in parallel to the determination performed by the second control unit as to whether the original image that has not been subjected to lossy compression contains a code image, the first control unit lossy-compresses the original image.
  • 6. The image processing apparatus according to claim 5, wherein the second control unit stores the generated new code image in the storage unit, in association with the lossy-compressed original image to be stored in the storage unit, without lossy-compressing the generated new code image.
  • 7. A control method for an image processing apparatus, the method comprising: a first control step of lossy-compressing an original image and storing the lossy-compressed original image in a storage step; anda second control step of determining whether the original image that has not been subjected to lossy compression contains a code image, extracting the code image from the original image that has not been subjected to lossy compression when it is determined that the original image that has not been subjected to lossy compression contains a code image, and storing the extracted code image in the storage step without lossy-compressing the extracted code image,wherein in parallel to the determination performed in the second control step as to whether the original image that has not been subjected to lossy compression contains a code image, the original image is lossy-compressed in the first control step.
  • 8. The control method according to claim 7, wherein in the second control step, in association with the lossy-compressed original image to be stored in the storage step, the extracted code image is stored in the storage step.
  • 9. A computer-readable storage medium on which a program causing a computer to perform the control method set forth in claim 7 is stored.
  • 10. A control method for an image processing apparatus, the method comprising: a first control step of lossy-compressing an original image and storing the lossy-compressed original image in a storage step; anda second control step of determining whether the original image that has not been subjected to lossy compression contains a code image, acquiring information from the code image contained in the original image that has not been subjected to lossy compression when it is determined that the original image that has not been subjected to lossy compression contains a code image, and storing the acquired information in the storage step without lossy-compressing the acquired information,wherein in parallel to the determination performed in the second control step as to whether the original image that has not been subjected to lossy compression contains a code image, the original image is lossy-compressed in the first control step.
  • 11. The control method according to claim 10, wherein in the second control step, in association with the lossy-compressed original image to be stored in the storage step, the acquired information is stored in the storage step without lossy-compressing the acquired information.
  • 12. A computer-readable storage medium on which a program causing a computer to perform the control method set forth in claim 10 is stored.
  • 13. A control method for an image processing apparatus, the method comprising: a first control step of lossy-compressing an original image and storing the lossy-compressed original image in a storage step; anda second control step of determining whether the original image that has not been subjected to lossy compression contains a code image, acquiring information by decoding the code image contained in the original image that has not been subjected to lossy compression when it is determined that the original image that has not been subjected to lossy compression contains a code image, generating a new code image in accordance with the acquired information, and storing the generated new code image in the storage step without lossy-compressing the generated new code image,wherein in parallel to the determination performed in the second control step as to whether the original image that has not been subjected to lossy compression contains a code image, the original image is lossy-compressed in the first control step.
  • 14. The control method according to claim 13, wherein in the second control step, in association with the lossy-compressed original image to be stored in the storage step, the generated new code image is stored in the storage step without lossy-compressing the generated new code image.
  • 15. A computer-readable storage medium on which a program causing a computer to perform the control method set forth in claim 13 is stored.
Priority Claims (1)
Number Date Country Kind
2006-071125 Mar 2006 JP national