1. Technical Field
The present invention relates to a technique for processing image data for printing.
2. Related Art
Current printers typically have a direct printing feature, i.e., a function of printing without the use of a personal computer. Such a printer generates print data using supplied image data and prints an image on a print medium on the basis of the print data.
With the aim of improving the image quality of a printed image, a current printer analyzes image data, corrects the image data on the basis of the result of the analysis, and generates print data using the corrected image data (see, for example, JP-A-6-169395 and JP-A-2002-344989).
Unfortunately, analyzing image data takes a relatively long time. Therefore, the time required for generation of print data, more specifically, the time between provision of image data and generation of print data is undesirably long.
This problem becomes noticeable as the image quality of a printed image is improved.
This problem arises not only when print data is generated in a printer that has the direct printing feature but also when a personal computer generates print data. In other words, the time required for generation of print data is also long when a personal computer analyzes image data, corrects image data on the basis of the analysis, and generates print data using the corrected image data.
An advantage of some aspects of the invention is that it provides a technique capable of reducing the time required for generation of print data.
A first aspect of the invention provides an image processing apparatus for printing including an analysis unit, a correction unit, a print-data generating unit, and a storage unit. When first analysis data corresponding to target image data has been generated, the analysis unit does not perform analysis processing on the target image data. When first analysis data corresponding to the target image data has not been generated, the analysis unit performs analysis processing on the target image data and generates second analysis data. The correction unit corrects the target image data using the first or second analysis data corresponding to the target image data and generates corrected image data. The print-data generating unit generates print data using the corrected image data. The storage unit stores the second analysis data in association with the corresponding target image data.
For this apparatus, when first analysis data corresponding to target image data has been generated, analysis processing does not have to be performed on the target image data; when first analysis data corresponding to the target image data has not been generated, analysis processing is performed on the target image data, and second analysis data is generated. Since the second analysis data is stored in association with the corresponding target image data, in the case in which print data is generated using that print data again, the second analysis data can be used as first analysis data. As a result, the time required for generation of print data can be reduced.
In the apparatus, preferably, the storage unit may store the second analysis data in association with the corresponding target image data into a destination storage medium outside the image processing apparatus.
The storage of second analysis data into a destination storage medium allows the second analysis data to be used afterwards.
In the apparatus, the target image data may be read from a source storage medium outside the image processing apparatus. The destination storage medium may be different from the source storage medium. The storage unit may store the corresponding target image data together with the second analysis data into the destination storage medium.
The storage of both second analysis data and corresponding target image data into a destination storage medium allows the second analysis data to be used afterwards in the same or a different apparatus.
In the apparatus, the storage unit may store the second analysis data in a state of being contained in an analysis file different from an image file that contains the corresponding target image data.
In the apparatus, the second analysis data may be constituted by a plurality of pieces of second analysis data and the target image data may be constituted by a plurality of pieces of target image data, and the analysis file may contain the plurality of pieces of second analysis data corresponding to the plurality of pieces of target image data.
In the apparatus, the storage unit may store the second analysis data in a state of being contained in an image file that contains the corresponding target image data.
Therefore, second analysis data can be easily associated with corresponding target image data.
In the apparatus, the target image data may be read from a source storage medium outside the image processing apparatus. The destination storage medium may be the same as the source storage medium.
The invention can be made in various forms. Examples of the various forms include a printing apparatus, a method for processing image data, a computer program for performing functions of the apparatus or the method, a storage medium that stores the computer program, and a data signal that includes the computer program and that is embodied in a carrier wave.
The invention will be described with reference to the accompanying drawings, wherein like numbers reference like elements.
Embodiments of the invention will now be described with reference to the accompanying drawings in the following order.
A-1 Structure of Printer
A-2 Processing in Printer
A-3 Use of Analysis Data
A-1 Structure of Printer
The I/F unit 290 includes a plurality of interfaces. For example, the I/F unit 290 includes a card slot 291 for accommodating a memory card, such as a flash memory, a USB terminal 292 for connecting to a USB cable, and a CD drive 293 for accommodating a CD-R or other media. The I/F unit 290 also includes a print input terminal 298 for connecting to a personal computer PC to receive print data from the personal computer PC.
Hereinafter, among storage media outside the printer (external storage medium) connected to the printer 200 via the I/F unit 290, an external storage medium used as a source from which information is to be read is sometimes referred to as “source storage medium”, and an external storage medium used as a destination at which information is to be stored is sometimes referred to as “destination storage medium”.
The internal memory 220 (
The processor 222 includes a reading unit 232, an image analysis unit 234, an image correction unit 236, a print-data generating unit 238, and a storage unit 240.
The reading unit 232 has a function of reading image data and analysis data from a source storage medium (e.g., memory card) via the I/F unit 290. Specifically, when analysis data is stored in a source storage medium, the reading unit 232 reads both image data and analysis data, whereas, when analysis data is not stored in a source storage medium, the reading unit 232 reads only image data.
As will be described below, in this embodiment, metadata including one or more pieces of analysis data (group of analysis data) corresponding to one or more pieces of image data is read from a source storage medium. Each analysis data is generated by performing analysis processing on corresponding image data, and indicates the result of the analysis for the corresponding image data.
Hereinafter, image data that has been subjected to analysis processing and whose corresponding analysis data is present is sometimes referred to as “first-type image data”, and image data that has not been subjected to analysis processing and whose corresponding analysis data is not present is sometimes referred to as “second-type image data”.
The image analysis unit 234 has a function of performing analysis processing on image data selected as image data to be printed (a print target) and generating analysis data indicating the result of the analysis. Specifically, for first-type image data, the image analysis unit 234 does not perform analysis processing on the image data. For second-type image data, the image analysis unit 234 analyzes the image data and generates analysis data corresponding thereto.
The image correction unit 236 has a function of performing correction processing on image data using analysis data and generating corrected image data. Specifically, for first-type image data, the image correction unit 236 corrects the image data using existing analysis data (first analysis data). For second-type image data, the image correction unit 236 corrects the image data using analysis data (second analysis data) newly generated by the image analysis unit 234.
The print-data generating unit 238 generates print data using corrected image data generated by the image correction unit 236. Specifically, the print-data generating unit 238 first performs color conversion on corrected image data (RGB data) and generates color-converted image data (CMYK data). Then, the print-data generating unit 238 performs halftone processing on the color-converted image data and generates dot data (print data) indicating the formed state of dots.
The storage unit 240 has a function of storing image data and analysis data into a destination storage medium (e.g., CD-R). Specifically, when image data selected as image data to be stored (a storing target) is second-type image data and second analysis data has been generated by the image analysis unit 234, the storage unit 240 stores the image data and the second analysis data into the destination storage medium such that both the image data and the second analysis data are associated with each other. When image data selected as a storing target is second-type image data and second analysis data has not been generated by the image analysis unit 234, the storage unit 240 stores only the image data into the destination storage medium. When image data selected as a storing target is first-type image data, the storage unit 240 stores the image data and first analysis data into the destination storage medium such that the image data and the first analysis data are associated with each other. In this embodiment, the association of image data and analysis data is realized by providing the analysis data with identifying information (e.g., data name) for identifying corresponding image data.
As will be described below, in this embodiment, metadata including one or more pieces of first or second analysis data (group of analysis data) corresponding to one or more pieces of image data is generated, and the generated metadata is stored into the destination storage medium.
The internal memory 220 (
In this embodiment, the processor 222 in the printer 200 can receive print data from the personal computer PC via the print input terminal 298. At this time, the processor 222 can cause the print unit 280 to perform printing using the print data.
A-2 Processing in Printer
A-2-1 Reading Processing
In step S102, the processor 222 detects a source storage medium supplied from a user via the I/F unit 290. Here, as the source storage medium, a memory card inserted into the card slot 291 after being detached from a digital camera is assumed.
In step S104, the reading unit 232 determines whether image data is present in the source storage medium. The determination can be performed by, for example, causing the reading unit 232 to refer to directory information in the source storage medium and to check whether the directory information includes a data name that has a specific filename extension (e.g., .jpg). If, in step S104, the image data is not present in the source storage medium, processing shown in
In step S106, the reading unit 232 reads a plurality of image data from the source storage medium and stores the plurality of image data into the storage region 224.
In step S108, the reading unit 232 determines whether metadata (group of analysis data) is present in the source storage medium. The determination can be performed by, for example, causing the reading unit 232 to refer to directory information in the source storage medium and to check whether the directory information includes a data name that has a specific filename extension (e.g., .mf). If, in step S108, the image data is not present in the source storage medium, processing shown in
In step S110, the reading unit 232 reads the metadata (group of analysis data) from the source storage medium. At this time, the image analysis unit 234 registers a plurality of first analysis data contained in the metadata corresponding to the plurality of image data into an analysis table TB within the storage region 224.
Here, it is assumed that a plurality of image data is present in the source storage medium and metadata (group of analysis data) is not present therein. That is, it is assumed that a plurality of second-type image data is present in the source storage medium. In this case, processing of step S110 is not performed. A case in which processing of step S110 is performed will be described below.
A-2-2 Generation of Print Data
In step S122, the processor 222 causes a user to select print-target image data. Specifically, the processor 222 causes the display unit 260 to display a list of a plurality of image data stored in the storage region 224 in response to an instruction from the user. The display unit 260 displays a plurality of thumbnail images corresponding to the plurality of image data. The user views data on the display unit 260 and selects print-target image data. At this time, the processor 222 reads from the storage region 224 the selected print-target image data.
In step S124, the processor 222 determines whether the analysis table TB has analysis data corresponding to the print-target image data. The determination can be performed by, for example, checking whether the analysis table TB has the name of the print-target image data. If, in step S124, the analysis table TB has the analysis data, i.e., if the print-target image data is first-type image data, the processing proceeds to step S126. If, in step S124, the analysis table TB does not have the analysis data, i.e., if the print-target image data is second-type image data, the processing proceeds to step S128.
In step S126, the processor 222 reads from the analysis table TB analysis data (first analysis data) corresponding to the print-target image data (first-type image data).
In step S128, the image analysis unit 234 analyzes the print-target image data (second-type image data). Then, the image analysis unit 234 registers analysis data (second analysis data) into the analysis table TB.
In step S130, the image correction unit 236 corrects the print-target image data and generates corrected image data. Specifically, when the print-target image data is first-type image data, the image correction unit 236 corrects the image data using the analysis data read in step S126 (first analysis data). When the print-target image data is second-type image data, the image correction unit 236 corrects the image data using the analysis data generated in step S128 (second analysis data).
In step S132, the print-data generating unit 238 generates print data using the corrected image data generated in step S130. Then, the processor 222 supplies the print data to the print unit 280, and the print unit 280 prints information on the basis of the print data.
If, in step S122, a plurality of image data is selected as a print target, the plurality of image data is subjected to processing of steps S124 to S132.
As described above, since it is assumed that processing of step S110 shown in
As is evident from
As is apparent from the foregoing, in this embodiment, in step S128, the image analysis unit 234 performs, on image data, analysis processing for obtaining analysis data that includes the “face area” information, the “average luminance of face area” information, and the “red eye” information. Then, the image analysis unit 234 associates the image data and the obtained analysis data by registering the data name of the image data and the obtained analysis data into the analysis table TB.
In this embodiment, in step S130, the image correction unit 236 corrects each image data using analysis data that is registered in the analysis table TB and that corresponds to the image data. For example, if the value of the “average luminance of face area” information is smaller than a predetermined value, the image correction unit 236 increases the pixel value of each of pixels constituting a face area (skin-tone area) within a rectangular region defined by the “face area” information. If the value of the “red eye” information is a value that indicates the presence of the red-eye effect (i.e., 1), the image correction unit 236 changes the pixel value of each of pixels constituting an eye area (red-eye area) within a rectangular region defined by the “red eye” information.
In this embodiment, analysis processing and correction processing relating to the brightness of a face and the red-eye effect are performed. However, in place of or in addition to such processing, analysis processing and correction processing relating to, for example, the vibrancy of green of plants, blue of the sky and the sea, softness, and sharpness may be performed.
As described above, when print-target image data is first-type image data, the image analysis unit 234 does not have to perform analysis processing. When print-target image data is second-type image data, the image analysis unit 234 can perform analysis processing. That is, since analysis processing can be omitted when print-target image data is first-type image data, the time required for analysis processing can be reduced, compared with a case in which analysis processing is performed on print-target image data at every time. As a result, the time required for generation of print data can be reduced, while at the same time an image can be printed with improved image quality by the use of analysis data.
A-2-3 Storing Processing
In step S202, the processor 222 causes a user to select storing-target image data. Specifically, the processor 222 causes the display unit 260 to display a list of a plurality of image data stored in the storage region 224 in response to an instruction from the user, as in step S122 (
In step S202, the user provides the I/F unit 290 with a destination storage medium and designates the destination storage medium as a storage destination. In this embodiment, as the destination storage medium, a CD-R inserted in the CD drive 293 is assumed.
In step S204, the storage unit 240 determines whether the analysis table TB has analysis data corresponding to the storing-target image data. The determination can be performed by, for example, checking whether the analysis table TB has the name of the storing-target image data. For a first case, in which the analysis table TB has the analysis data, the processing proceeds to step S206. The first case includes a case in which the storing-target image data is first-type image data and another case in which the storing-target image data is second-type image data, the image data is selected as a print target, and analysis data corresponding to the image data is generated in step S128. For a second case, in which the analysis table TB does not have analysis data, the processing proceeds to step S208. The second case includes a case in which the storing-target image data is second-type image data, the image data is not selected as a print target, and analysis data corresponding to the image data is not generated in step S128.
In step S206, the storage unit 240 generates storage data (analysis data) corresponding to the storing-target image data using the first or second analysis data that is registered in the analysis table TB and that corresponds to the storing-target image data. The storage data will be described below.
In step S208, the storage unit 240 stores the storing-target image data into the destination storage medium via the I/F unit 290.
In step S210, the storage unit 240 determines whether storing of all image data selected in step S202 is completed. If storing of all selected image data is not completed, the processing returns to step S204, and processing of steps S204 to S210 is repeated. If storing of all selected image data is completed, the processing proceeds to step S212.
In step S212, the storage unit 240 generates a single piece of metadata including one or more pieces of storage data (analysis data) that are generated in step S206 and that correspond to one or more pieces of storing-target image data. Then, the storage unit 240 stores the metadata into the destination storage medium.
As is evident from comparison of
As shown in
The element Ec includes an element of “mpv:LastURL” and an element of “nmf:Metadata”. The “mpv:LastURL” element describes the name of image data (e.g., DSC00002.JPG). The “nmf:Metadata” element includes two elements of “Properties”, an element of “BASIC_IMAGE PARAM”, and an element of “epiad:Properties”.
The content of the “epiad:Properties” element is generated on the basis of analysis data shown in
The “epiad:Properties” element includes an element of “epiad:apf_face” and an element of “epiad:apf_redeye”. The content of the “epiad:apf_face” element indicates the “face area” information and the “average luminance of face area” information shown in
The first “Properties” element included in the “nmf:Metadata” element describes a character string entered by a user (“family”). The second “Properties” element describes the date and time of generation of image data (“2005/12/09T10:53:19Z”). The “BASIC_IMAGE_PARAM” element included in the “nmf:Metadata” element describes the size of image data (1600*1200). The content of each of the two “Properties” elements and the “BASIC_IMAGE_PARAM” element is described on the basis of additional information corresponding to image data. Specifically, image data is typically stored in the exchangeable image file format (Exif). An Exif file has a structure based on an image data format standard for digital cameras (Exif). The Exif specifications are defined by the Japan Electronics and Information Technology Industries Association (JEITA). An Exif file has an image-data storage region for storing image data and an additional-information storage region for storing additional information for the image data. The additional information can include a character string entered by a user, the date and time of generation of image data captured by a digital camera during image capturing, the size of image data, and conditions of image capturing. In this embodiment, on this additional information, the contents of the two “Properties” elements and the “BASIC_IMAGE_PARAM” element are described.
A-3 Use of Analysis Data
A-3-1 First Usage
As described with reference to
As described above, in this embodiment, since second analysis data is stored in the analysis table TB in association with image data selected as a print target, when the image data is selected as a print target again afterwards, the second analysis data can be used as first analysis data. As a result, the time required for generation of print data can be reduced.
A-3-2 Second Usage
As described with reference to FIGS. 5 to 7, in this embodiment, image data and metadata are stored in a destination storage medium (CD-R). Therefore, the destination storage medium can be used as the above-described source storage medium. In this case, second analysis data included in metadata stored in the destination storage medium is treated as first analysis data, and corresponding image data is treated as first-type image data.
When a destination storage medium is used as a source storage medium, the same reading processing as in
In this case, the same printing processing as in
As described above, in this embodiment, since second analysis data is stored into a destination storage medium in association with corresponding image data, the destination storage medium can be used as a source storage medium. Therefore, if the image data is selected as a print data again, the second analysis data can be used as first analysis data. As a result, the time required for generation of print data can be reduced. A destination storage medium may be used as a source storage medium in the printer 200. Alternatively, a destination storage medium may be used as a source storage medium in a different printer or personal computer that can generate print data using analysis data.
The personal computer (hereinafter, sometimes referred to simply as “computer”) 300 includes a CPU 310, an internal memory 320 (e.g., ROM and RAM), an external storage 350 (e.g., hard disk), a display unit 360, an operation unit 370 (e.g., mouse and keyboard), and an interface (I/F) unit 390.
The I/F unit 390 includes a plurality of interfaces, as in the I/F unit 290 in the printer 200. For example, the I/F unit 390 includes a card slot 391, a USB terminal 392, and a CD drive 393. The I/F unit 390 also includes a print output terminal 398 for connecting to the printer 200 to supply print data to the printer 200.
The internal memory 320 contains a computer program that functions as a processor 322, as in the internal memory 220 shown in
The processor 322 in the personal computer 300 can perform the same processing as in the processor 222 in the printer 200 according to the first embodiment. Specifically, the reading unit 332 reads image data from a source storage medium (e.g., flash memory). The image analysis unit 334 analyzes the image data and generates analysis data. The image correction unit 336 corrects the image data using the analysis data and generates corrected image data. The print-data generating unit 338 generates print data using the corrected image data. The storage unit 340 stores the storing-target image data and metadata including the corresponding analysis data into a destination storage medium (e.g., CD-R). The processor 322 in the personal computer 300 can supply print data to the printer 200 via the print output terminal 398. At this time, the processor 222 in the printer 200 can receive the print data and cause the print unit 280 to perform printing.
Steps S302 to S312 shown in
The performance of processing of step S320 generates a plurality of analysis data corresponding to all a plurality of storing-target image data selected in step S302. Therefore, metadata generated in step S312 includes the plurality of analysis data corresponding to the plurality of storing-target image data.
That is, in the first embodiment (
When the destination storage medium is used as a source storage medium in the printer 200 or the personal computer 300, since analysis data for each image data exists, the time required for analysis can be omitted.
The invention is not limited to the embodiments described above and can be made in various forms without departing from the sprit and scope thereof. For example, the following modification can be made.
(1) In the above embodiments, in step S104 in
(2) In the above embodiments, a source storage medium and a destination storage medium are different. However, they may be the same. That is, metadata may be stored in a source storage medium. In this case, since image data is present in a destination storage medium, storing processing of image data is omitted. Specifically, processing of step S208 in
(3) In the above embodiments, when the analysis table TB has already-existing first analysis data and newly generated second analysis data, metadata including both the first analysis data and the second analysis data is stored into a destination storage medium. However, in place of this, metadata including only second analysis data may be stored into a destination storage medium. In this case, the analysis table TB further registers a flag that indicates whether analysis data is second analysis data newly generated by the image analysis unit, and metadata is generated by the use of the flag.
Generally, at least second analysis data is stored in a destination storage medium in association with corresponding image data.
(4) In the above embodiments, a single piece of metadata including a plurality of analysis data corresponding to a plurality of image data is generated. However, in place of this, a single piece of metadata may be generated for each image data such that the single piece of metadata includes only a single piece of analysis data corresponding to a single piece of image data.
In the above embodiments, analysis data is contained in an analysis file (i.e., metadata) that is different from an image file that contains image data. However, in place of this, analysis data may be contained in an image file that contains image data. Specifically, as described above, image data is typically stored in Exif format. An Exif file has an image-data storage region for storing image data and an additional-information storage region. Analysis data is stored in a makernote area, which is assigned to maker information, within the additional-information storage region. This enables the analysis data to be easily associated with corresponding image data.
(5) In the above embodiments, part of a structure realized by hardware can be replaced with software. Conversely, part of a structure realized by software can be replaced with hardware.
The disclosure of Japanese Patent Application No. 2006-063474 filed Mar. 9, 2006 including specification, drawings and claims is incorporated herein by reference in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2006-063474 | Mar 2006 | JP | national |