JP4210254B2 - Printer and printing method - Google Patents
Printer and printing method Download PDFInfo
- Publication number
- JP4210254B2 JP4210254B2 JP2004304767A JP2004304767A JP4210254B2 JP 4210254 B2 JP4210254 B2 JP 4210254B2 JP 2004304767 A JP2004304767 A JP 2004304767A JP 2004304767 A JP2004304767 A JP 2004304767A JP 4210254 B2 JP4210254 B2 JP 4210254B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- difference
- main image
- time
- shooting date
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
本発明は、デジタルカメラによって撮影された主画像、前記主画像より生成されるサムネイル画像、および、撮影日時を含む撮影情報からなる画像ファイルを読み込んで、前記主画像を印画出力するプリンタ及びプリント方法に関するものである。 The present invention relates to a printer and a printing method for reading an image file including a main image taken by a digital camera, a thumbnail image generated from the main image, and shooting information including shooting date and time, and printing the main image. It is about.
デジタルカメラによって撮影された画像を読み込んで、読み込んだ画像を印画出力するプリンタが普及している。このプリンタには、画像ファイル内にある撮影日時を画像に自動的に合成処理して撮影日時が刻印された画像を印画出力するものがある(例えば、特許文献1参照)。
ところで、デジタルカメラの中には、撮影された画像に、予め撮影日時を合成処理して記録するものがある。このようなデジタルカメラで撮影された画像を、上記特許文献1記載のプリンタで印画出力すると、撮影日時が2重記載されてしまうといった問題があった。 By the way, some digital cameras record a shooting date and time by combining the shooting date and time in advance. When an image photographed by such a digital camera is printed out by the printer described in Patent Document 1, there is a problem that the photographing date / time is described twice.
本発明は、日時の2重記載を防止することのできるプリンタを提供することを目的としている。 SUMMARY OF THE INVENTION An object of the present invention is to provide a printer that can prevent the double description of date and time.
撮影日時は、サムネイル画像には合成されないので、主画像と、サムネイル画像とを比較することによって、主画像に撮影日時が合成されているか否かを判定することができる。 Since the shooting date / time is not combined with the thumbnail image, it is possible to determine whether the shooting date / time is combined with the main image by comparing the main image with the thumbnail image.
上記原理に基づいて、本発明のプリンタは、主画像を、サムネイル画像と等しいサイズに縮小して、縮小画像を生成する画像処理手段と、前記縮小画像とサムネイル画像の画素データの差分を演算する演算手段と、前記差分の演算結果と予め設定された閾値とを比較して、主画像に撮影日時が合成処理されているか否かを判定する判定手段とを備え、主画像に撮影日時が合成処理されていると判定された場合は、主画像に撮影日時を合成処理せずに印画出力し、主画像に撮影日時が合成処理されていないと判定された場合は、主画像に撮影日時を合成処理して印画出力することを特徴としている。 Based on the above principle, the printer of the present invention reduces the main image to the same size as the thumbnail image and generates a reduced image, and calculates the difference between the pixel data of the reduced image and the thumbnail image. Computation means, and a judgment means for comparing the calculation result of the difference and a preset threshold value to determine whether or not the shooting date and time have been combined with the main image, and combining the shooting date and time with the main image If it is determined that the image has been processed, the print date is output without combining the shooting date with the main image, and if it is determined that the shooting date has not been combined with the main image, the shooting date is It is characterized by combining and outputting a print.
前記閾値の設定を変更するための設定変更手段を設けることが好ましい。 It is preferable to provide a setting changing means for changing the setting of the threshold.
前記画像処理手段は、複数のアルゴリズムを用いて前記縮小を行って、複数の縮小画像を生成し、前記判定手段は、前記複数の縮小画像と前記サムネイル画像の前記差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことが好ましい。 The image processing unit performs the reduction using a plurality of algorithms to generate a plurality of reduced images, and the determination unit is the most out of the calculation results of the differences between the plurality of reduced images and the thumbnail images. It is preferable to perform the determination based on a small difference.
前記差分演算手段は、前記縮小画像と前記サムネイル画像の画素位置をずらして前記差分の演算を繰り返して行い、前記判定手段は、複数回行った差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことが好ましい。 The difference calculation means repeatedly performs the difference calculation by shifting pixel positions of the reduced image and the thumbnail image, and the determination means determines the smallest difference among the calculation results of the difference performed a plurality of times. It is preferable to make the determination based on this.
前記画像処理手段は、前記縮小画像を回転させて複数の縮小画像を生成し、前記判定手段は、前記複数の縮小画像と前記サムネイル画像の前記差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことが好ましい。 The image processing unit rotates the reduced image to generate a plurality of reduced images, and the determination unit determines the smallest difference among the calculation results of the differences between the plurality of reduced images and the thumbnail image. It is preferable to make the determination based on this.
前記差分演算手段は、前記縮小画像と前記サムネイル画像の4隅部分の画素データの差分のみを算出することが好ましい。 Preferably, the difference calculation means calculates only a difference between pixel data at four corners of the reduced image and the thumbnail image.
前記主画像に前記撮影日時が合成処理されていると判定された場合、前記差分の演算結果から、前記差分の大きい前記主画像の部分を抽出し、この抽出した部分に文字認識処理を施す文字認識手段を設けることが好ましい。 When it is determined that the shooting date / time has been combined with the main image, a part of the main image having a large difference is extracted from the difference calculation result, and a character is subjected to character recognition processing on the extracted part. It is preferable to provide a recognition means.
前記画像処理手段は、前記主画像の複雑度を検出し、前記主画像に撮影日時を合成処理する際には、前記複雑度の検出結果に基づいて、前記複雑度の低い部分に行うことが好ましい。 The image processing means detects the complexity of the main image, and when combining the photographing date and time with the main image, the image processing means may perform on the low complexity portion based on the detection result of the complexity. preferable.
また、本発明のプリント方法は、主画像を、サムネイル画像と等しいサイズに縮小して、縮小画像を生成し、前記縮小画像とサムネイル画像の画素データの差分を演算し、前記差分の演算結果と予め設定された閾値とを比較して、主画像に撮影日時が合成処理されているか否かを判定し、主画像に撮影日時が合成処理されていると判定された場合は、主画像に撮影日時を合成処理せずに印画出力し、主画像に撮影日時が合成処理されていないと判定された場合は、主画像に撮影日時を合成処理して印画出力することを特徴としている。 Further, the printing method of the present invention reduces the main image to the same size as the thumbnail image, generates a reduced image, calculates the difference between the reduced image and the pixel data of the thumbnail image, and calculates the difference calculation result. Compared with a preset threshold value, it is determined whether or not the shooting date / time is combined with the main image. If it is determined that the shooting date / time is combined with the main image, the main image is shot. A printout is performed without combining the date and time, and when it is determined that the shooting date and time have not been combined with the main image, the shooting date and time are combined with the main image and the printout is output.
複数のアルゴリズムを用いて前記縮小を行って、複数の縮小画像を生成し、前記複数の縮小画像と前記サムネイル画像の前記差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことが好ましい。 The reduction is performed using a plurality of algorithms to generate a plurality of reduced images, and the determination is performed based on the smallest difference among the calculation results of the differences between the plurality of reduced images and the thumbnail images. It is preferable.
前記縮小画像と前記サムネイル画像の画素位置をずらして前記差分の演算を繰り返して行い、複数回行った差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことが好ましい。 Preferably, the difference calculation is repeated by shifting the pixel positions of the reduced image and the thumbnail image, and the determination is performed based on a difference calculation result that has been performed a plurality of times and having the smallest difference.
前記縮小画像を回転させて複数の縮小画像を生成し、前記複数の縮小画像と前記サムネイル画像の前記差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことが好ましい。 Preferably, the reduced image is rotated to generate a plurality of reduced images, and the determination is performed based on the smallest difference among the calculation results of the differences between the plurality of reduced images and the thumbnail images.
前記縮小画像と前記サムネイル画像の4隅部分の画素データの差分のみを算出することが好ましい。 It is preferable to calculate only a difference between pixel data at four corners of the reduced image and the thumbnail image.
前記主画像に前記撮影日時が合成処理されていると判定された場合、前記差分の演算結果から、前記差分の大きい前記主画像の部分を抽出し、この抽出した部分に文字認識処理を施すことが好ましい。 When it is determined that the shooting date and time have been combined with the main image, a portion of the main image having a large difference is extracted from the difference calculation result, and character recognition processing is performed on the extracted portion. Is preferred.
前記主画像の複雑度を検出し、前記主画像に撮影日時を合成処理する際には、前記複雑度の検出結果に基づいて、前記複雑度の低い部分に行うことが好ましい。 When detecting the complexity of the main image and compositing the shooting date and time on the main image, it is preferable to perform the processing on the low complexity portion based on the detection result of the complexity.
本発明のプリンタは、主画像と、サムネイル画像とを比較することで、主画像に予め撮影日時が合成されているか否かを判定し、撮影日時が合成済みと判定された場合は、新たに撮影日時の合成を行わないようにしたので、日時の2重記載を防止することができる。 The printer according to the present invention compares the main image with the thumbnail image to determine whether or not the shooting date / time is preliminarily combined with the main image. Since the shooting date / time is not combined, it is possible to prevent double date / time writing.
図1において、本発明を適用したプリンタ10は、本体部12と、この本体部12に接続されるモニタ14、キーボード16、マウス18から構成され、USBケーブルなどを介してデジタルカメラ20が接続可能となっている。プリンタ10は、デジタルカメラ20から画像ファイル40(図2参照)を読み込んで、画像ファイル40内の画像を記録紙21に印画出力する。
In FIG. 1, a
図2に示すように、デジタルカメラ20は、撮影毎に画像ファイル40を作製し、この画像ファイル40内に、撮影によって得られた主画像42と、この主画像42に関するタグ情報(Exifタグ)44とを格納する。タグ情報44としては、サムネイル画像46と、撮影情報とが記憶される。撮影情報には、ホワイトバランスの設定や、ストロボ発光の有無などデジタルカメラ20の設定情報や、撮影日時情報48が含まれる。
As shown in FIG. 2, the
プリンタ10は、例えば、インクジェットプリンタ、サーマルプリンタ、レーザープリンタなどであり、本体部12には、記録紙21に対し、フルカラー画像を印画する印画部50が設けられている。また、本体部12には、CPU52が設けられ、このCPU52によりプリンタ10の全体の動作が統括的に制御される。
The
CPU52には、前述の印画部50に加え、RAM54、ROM56、および入出力I/F58が、バス60を介して接続される。RAM54には、デジタルカメラ20から送信される画像ファイル40が記憶される。ROM56には、プリンタ10の起動及び制御を行うプログラムに加え、後述する判定の際に用いられる縮小アルゴリズムや閾値などが記憶されている。
In addition to the
入出力I/F58には、USBコネクタ59、及び、前述のモニタ14、キーボード16、マウス18が接続されている。USBコネクタ59は、デジタルカメラ20からの画像データの受信を媒介する。モニタ14は、主画像42やサムネイル画像46を表示がするとともに、主画像42の印画枚数や印画の実行を指示するためのプリント指示画面を表示する。キーボード16およびマウス18は、プリント指示画面での指示の入力などを行う際に操作される。
The input / output I /
CPU52は、キーボード16およびマウス18から入力されるプリント指示に応じ、印画部50を駆動制御して記録紙21への印画を行う。CPU52は、RAM54に記憶された画像ファイル40から主画像42及び撮影日時情報48を読み込んで、読み込んだ撮影日時情報48を主画像42の、例えば、右下に合成する合成処理を行う。そして、この合成処理済みの画像を記録紙に印画する。これにより、印画出力された画像には撮影日時が記載される。
The
しかし、前述のように、デジタルカメラの中には、撮影された画像に、予め撮影日時を合成処理し、合成処理済みの画像を主画像として記録するものがあり、このような主画像に対して前記合成処理を行うと、印画された画像には撮影日時が2重に記載されてしまう。このため、プリンタ10には、主画像に予め撮影日時が合成されているか否かの判定を行う判定部70が設けられている。そして、主画像に予め撮影日時が合成されていると判定された場合には、前述した撮影日時の合成処理を行わず、主画像をそのまま印画する。
However, as described above, there are digital cameras that pre-combine the captured date and time with the captured image and record the combined image as the main image. When the composition process is performed, the shooting date and time are described twice in the printed image. For this reason, the
判定部70は、画像処理回路71、差分演算回路72、判定回路73を含んで構成され、主画像42を、撮影日時の合成処理の行われないサムネイル画像46と比較することで、前記判定を行う。以下、図3に示す概念図をもとに、判定について説明する。なお、図3(A)は、主画像42に撮影日時が合成されていない場合を示し、同図(B)は、主画像42に撮影日時が合成されている場合を示している。
The determination unit 70 includes an image processing circuit 71, a difference calculation circuit 72, and a
判定においては、先ず、画像処理回路71により、主画像42をサムネイル画像46と同じサイズに縮小した比較用画像74が生成される。画像処理回路71は、ROM56に記憶された縮小アルゴリズムに基づいて主画像42を縮小することで、比較用画像74を生成し、この比較用画像74を差分演算回路72に送信する。
In the determination, first, the image processing circuit 71 generates a
差分演算回路72は、比較用画像74とサムネイル画像46との画素ごとの差分をとって、この差分からノイズを除去した差分データ76を生成する。このように生成された差分データ76には、比較用画像74とサムネイル画像46との間で、差が生じた画素の数、差が生じた画素の位置、並びに、生じた差の大きさなどを表す情報が含まれる。
The difference calculation circuit 72 takes a pixel-by-pixel difference between the
判定回路73は、差分データ76と、ROM56に記憶された閾値とを比較することによって、主画像42に撮影日時が合成されているか否かの判定を行う。閾値としては、例えば、差が生じた画素の数に関する閾値、差が生じた画素の位置に関する閾値、並びに、生じた差の大きさに関する閾値など複数の閾値が設定されている。
The
そして、判定回路73は、図3(A)に示されるように、差が生じた画素の数が設定された閾値よりも小さく、また、差が生じた画素の位置が設定された閾値の範囲を超え、画面全体に散らばっている場合には、主画像42に撮影日時が合成されていないと判定する。反対に、図3(B)に示されるように、差が生じた画素の数が設定された閾値よりも大きく、また、差が生じた画素の位置が設定された閾値の範囲内である画面の4隅部分に集中している場合には、主画像42に撮影日時が合成されていると判定する。
Then, as shown in FIG. 3A, the
以下、上記構成による本発明の作用について、図4に示すフローチャートをもとに説明する。まず、USBケーブルなどを介してプリンタ10とデジタルカメラ20とを接続し、デジタルカメラ20に記録された画像ファイル40をプリンタ10のRAM54に取り込む。画像ファイル40の取り込み後、キーボード16、または、マウス18を操作して印画指示を入力すれば、画像ファイル40内に格納された主画像42を記録紙に印画することができる。
Hereinafter, the operation of the present invention having the above configuration will be described with reference to the flowchart shown in FIG. First, the
印画の際、プリンタ10は、主画像42に予め撮影日時が合成されているか否かの判定を行う。図5に示すように、プリンタ10は、主画像42を、サムネイル画像46と同じサイズに縮小した比較用画像74を生成する。次に、比較用画像74とサムネイル画像46との差分をとってノイズを除去した差分データ76を生成する。そして、この差分データ76をROM56に記憶された閾値と比較することで、主画像42に予め撮影日時が合成されているか否かを判定する。
At the time of printing, the
判定の結果、主画像42に予め撮影日時が合成されていないと判定された場合、プリンタ10は、画像ファイル40から撮影日時情報48を読み込んで、撮影日時情報48を主画像42に合成し、この合成処理済みの画像を記録紙に印画する。反対に、主画像42に予め撮影日時が合成されていると判定された場合、プリンタ10は、前記合成処理を行わず、主画像42をそのまま印画する。
As a result of the determination, if it is determined that the shooting date / time has not been combined with the
このように、プリンタ10は、主画像42に予め撮影日時が合成されていない場合には、主画像42に撮影日時の合成処理を行うので、撮影日時の記載された画像を印画することができる。一方、主画像42に予め撮影日時が合成されている場合、撮影日時の合成を行わず、主画像42をそのまま印画出力する。このため、印画された画像に撮影日時が2重記載されてしまうといったことがない。
As described above, when the shooting date / time is not combined with the
上記実施形態では、判定の基準となる閾値が予め設定されている例で説明をしたが、この閾値をプリンタの利用者が設定するようにしてもよい。この場合、ROMから閾値を読み込んで、キーボードやマウスからの入力操作に応じ、読み込んだ閾値を変更する閾値設定部を設ける。そして、プリンタは、変更後の閾値に基づいて判定を行えばよい。こうすることによって、判定精度を自在に調節できるので便利である。 In the above-described embodiment, an example in which a threshold value used as a reference for determination is set in advance has been described. However, a user of a printer may set the threshold value. In this case, a threshold value setting unit is provided that reads a threshold value from the ROM and changes the read threshold value in accordance with an input operation from a keyboard or a mouse. Then, the printer may make a determination based on the changed threshold value. This is convenient because the determination accuracy can be freely adjusted.
なお、上記実施形態では、1種類の縮小アルゴリズムを用いる例で説明したが、本発明はこれに限定されるものではない。例えば、プリンタが比較用画像を生成する際に用いた縮小アルゴリズムが、デジタルカメラがサムネイル画像を生成する際に用いた縮小アルゴリズムと異なっていると、撮影日時が合成されているか否かに関わらず、サムネイル画像と比較用画像との間の差異が大きくなってしまい、精度の高い判定を行うことができないといった問題がある。このような問題を防止するために、複数種の縮小アルゴリズムを用いるようにしてもよい。 In the above embodiment, an example using one type of reduction algorithm has been described, but the present invention is not limited to this. For example, if the reduction algorithm used when the printer generates the comparison image is different from the reduction algorithm used when the digital camera generates the thumbnail image, regardless of whether the shooting date and time are combined or not There is a problem that the difference between the thumbnail image and the comparison image becomes large, and it is not possible to make a highly accurate determination. In order to prevent such a problem, a plurality of types of reduction algorithms may be used.
この場合、ROM56に複数種類の縮小アルゴリズムを記憶させる。そして、図6、7に示すように、判定において、画像処理回路71は、複数種類の縮小アルゴリズムにて主画像42を縮小して、複数の比較用画像94a〜94dを生成する。差分演算回路72は、これら複数の比較用画像94a〜94dのそれぞれと、サムネイル画像46との差分をとって差分データ96a〜96dを生成する。判定回路73は、これら差分データ96a〜96dのうち、最も差異の少ない比較用画像とサムネイル画像とから生成された差分データ、すなわち、差分データに含まれる画素毎の差の総和が最も小さな差分データ(最小差分データ)を、閾値と比較することで判定を行う。
In this case, the
こうすることで、プリンタ側が比較用画像を生成する際に用いる縮小アルゴリズムと、デジタルカメラ側がサムネイル画像を生成する際に用いる縮小アルゴリズムとの間の違いによる判定精度の低下を防止することができる。なお、図6以降の図面においては、上述した実施形態と同様の部材については同様の符号を付して説明をしている。 In this way, it is possible to prevent a decrease in determination accuracy due to a difference between the reduction algorithm used when the printer side generates the comparison image and the reduction algorithm used when the digital camera side generates the thumbnail image. In FIG. 6 and subsequent drawings, members similar to those in the above-described embodiment are described with the same reference numerals.
また、サムネイル画像と比較用画像との間で、例えば、画像の中心などの基準位置が異なっていると、サムネイル画像と比較用画像との間の差異が大きくなってしまい、精度の高い判定を行うことができないといった問題がある。このような問題を防止するために、比較用画像の位置をずらしながら、複数の差分データを生成してもよい。 In addition, for example, if the reference position such as the center of the image is different between the thumbnail image and the comparison image, the difference between the thumbnail image and the comparison image becomes large, and a highly accurate determination is made. There is a problem that it cannot be done. In order to prevent such a problem, a plurality of difference data may be generated while shifting the position of the comparison image.
この場合、図8、9に示すように、差分演算回路72は、比較用画像74の基準位置をずらした縮小画像124a〜124dについて、それぞれサムネイル画像46との差分をとって、複数の差分データ126a〜126dを生成する。そして、図6、7にて示した例と同様に、判定回路73は、これら差分データ126a〜126dのうち、最小差分データを、閾値と比較することで判定を行う。本例においては、サムネイル画像と比較用画像との間の位置ズレに起因する判定精度の低下を防止することができる。
In this case, as shown in FIGS. 8 and 9, the difference calculation circuit 72 takes a difference from the
さらに、サムネイル画像と比較用画像との間で、画像の向きが異なると、サムネイル画像と比較用画像との間の差異が大きくなってしまい、精度の高い判定を行うことができないといった問題がある。このような問題を防止するために、比較用画像を回転させながら、複数の差分データを生成してもよい。 Furthermore, if the image orientation is different between the thumbnail image and the comparison image, the difference between the thumbnail image and the comparison image becomes large, and there is a problem that a highly accurate determination cannot be performed. . In order to prevent such a problem, a plurality of difference data may be generated while rotating the comparison image.
この場合、図10、11に示すように、画像処理回路71は、比較用画像74を生成した後、この比較用画像74の向きを回転させた縮小画像154a〜154dを生成する。差分演算回路72は、これら複数の縮小画像154a〜154dのそれぞれと、サムネイル画像46とから差分データ156a〜156dを生成する。判定回路73は、これら差分データ156a〜156dのうち、最小差分データを、閾値と比較することで判定を行う。本例においては、サムネイル画像と比較用画像との間の向きの違いに起因する判定精度の低下を防止することができる。
In this case, as illustrated in FIGS. 10 and 11, the image processing circuit 71 generates the
なお、上記実施形態では、サムネイル画像と、比較用画像とを比較する際に1画面全体の比較を行うことで、主画像に撮影日時が合成されているか否かを判定する例で説明をしたが、本発明はこれに限定されるものではない。撮影日時の合成される位置は、画像の4隅部分である場合が多い。このため、例えば、サムネイル画像の4隅部分と、比較用画像の4隅部分との一部エリアのみを判定の対象としてもよい。 In the above-described embodiment, an example has been described in which it is determined whether or not the shooting date / time is combined with the main image by comparing the entire thumbnail image with the comparison image. However, the present invention is not limited to this. In many cases, the position where the shooting date and time are combined is the four corners of the image. Therefore, for example, only partial areas of the four corners of the thumbnail image and the four corners of the comparison image may be determined.
この場合、図12、13に示すように、差分演算回路72は、画像処理回路71によって生成された比較用画像74の4隅部分、並びに、サムネイル画像46の4隅部分をそれぞれ抽出し、各エリアごとに差分をとって、4エリア分の差分データを生成する。そして、判定回路73は、この差分データに基づいて判定を行う。このように、判定対象とするエリアを限定することで、判定時間を短縮できる。
In this case, as shown in FIGS. 12 and 13, the difference calculation circuit 72 extracts the four corner portions of the
また、上記実施形態では、差分データと閾値との比較結果のみから撮影日時が合成されているか否かの判定を行う例で説明をしたが、本発明はこれに限定されるものではない。例えば、撮影日時が合成されていると見なせる主画像の部分、すなわち、比較用画像とサムネイル画像の差異が大きい主画像の部分を文字認識し、この認識結果を判定に関与させてもよい。 In the above-described embodiment, the example in which it is determined whether or not the shooting date / time is combined based only on the comparison result between the difference data and the threshold value has been described, but the present invention is not limited to this. For example, a part of the main image that can be considered that the shooting date and time are combined, that is, a part of the main image having a large difference between the comparison image and the thumbnail image may be recognized, and the recognition result may be involved in the determination.
この場合、図14に示すように、プリンタ10に、文字認識部210を設ける。文字認識部210は、画像を解析して、予め設定された文字情報に適合するか否かを調べることで、画像に含まれる文字情報を認識する。図15に示すように、プリンタ10は、先ず、上記実施形態と同様の方法で判定を行う。そして、撮影日時が合成されていると判定された場合、文字認識部210は、比較用画像74とサムネイル画像46との間の差異が大きい主画像の部分を抽出して、この部分に含まれる文字情報を認識する。文字認識の結果、撮影日時を示す文字列が検出された場合には、撮影日時が合成されているとの判定が確定される。そして、撮影日時の合成処理を行わず、主画像42をそのまま印画出力する。文字認識の結果、撮影日時を示す文字列が検出されない場合には、撮影日時が合成されていないと再判定され、撮影日時の合成処理が行われる。こうすることで、より判定の精度を高めることができる。
In this case, a character recognition unit 210 is provided in the
なお、上記実施形態では、主画像に撮影日時が合成されていないと判定された場合には、主画像の右下に撮影日時を合成する例で説明をしたが、撮影日時の合成位置は自由に設定することができる。また、例えば、撮影日時の合成位置に主要被写体が重なってしまうと、印画された画像が見にくいものとなってしまう。このため、印画する画像に応じて、印画毎に撮影日時の合成位置を決定してもよい。 In the above embodiment, when it is determined that the shooting date / time is not combined with the main image, the shooting date / time is combined with the lower right of the main image. Can be set to Also, for example, if the main subject overlaps the position where the shooting date and time are combined, the printed image will be difficult to see. For this reason, according to the image to print, the synthetic | combination position of imaging | photography date may be determined for every printing.
この場合、図16に示すように、画像合成処理において、画像処理回路71は、主画像42を解析して、コントラスト成分を調べることで、主画像42の画面内における複雑度を検出する。画像のコントラストは、例えば、平坦な壁などの単調な画像においては低くなり、木の葉などの複雑な画像においては高くなる。画像処理回路71は、コントラストの高いエリアほど画像が複雑であると検出する。そして、プリンタ10は、この主画像42の複雑度が低いエリアに撮影日時を合成する。例えば、図17(A)に示す主画像42に対しては、同図(B)に示すように、コントラストの低い画面右上に撮影日時が合成される。
In this case, as shown in FIG. 16, in the image composition processing, the image processing circuit 71 analyzes the
なお、本例では、主画像のコントラスト成分に基づいて撮影日時の合成位置を決定したが、判定の際に生成される比較用画像のコントラスト成分に基づいて撮影日時の合成位置を決定してもよい。また、画像のコントラスト成分以外にも、画像解析を行うことで、主要被写体の位置や、背景や建物の位置を調べることが可能なので、このような画像解析結果に基づいて撮影日時が見やすくなるように合成位置を決定してもよい。 In this example, the composite position of the shooting date / time is determined based on the contrast component of the main image. However, the composite position of the shooting date / time may be determined based on the contrast component of the comparison image generated at the time of determination. Good. In addition to the contrast component of the image, it is possible to check the position of the main subject, the background, and the position of the building by performing image analysis. Alternatively, the synthesis position may be determined.
10 プリンタ
20 デジタルカメラ
40 画像ファイル
42 主画像
44 タグ情報
46 サムネイル画像
48 撮影日時情報
52 CPU
70 判定部
71 画像処理回路
72 差分演算回路
73 判定回路
74、94a〜94d 比較用画像
76、96a〜96d、126a〜126d、156a〜156d 差分データ
124a〜124d、154a〜154d 縮小画像
210 文字認識部
10
70 determination unit 71 image processing circuit 72
Claims (15)
前記主画像を、前記サムネイル画像と等しいサイズに縮小して、縮小画像を生成する画像処理手段と、
前記縮小画像と前記サムネイル画像の画素データの差分を演算する演算手段と、
前記差分の演算結果と予め設定された閾値とを比較して、前記主画像に前記撮影日時が合成処理されているか否かを判定する判定手段とを備え、
前記主画像に前記撮影日時が合成処理されていると判定された場合は、前記主画像に前記撮影日時を合成処理せずに印画出力し、
前記主画像に前記撮影日時が合成処理されていないと判定された場合は、前記主画像に前記撮影日時を合成処理して印画出力することを特徴とするプリンタ。 In a printer that reads a main image shot by a digital camera, a thumbnail image generated from the main image, and shooting information including shooting date and time and prints out the main image,
Image processing means for reducing the main image to a size equal to the thumbnail image and generating a reduced image;
A computing means for computing a difference between pixel data of the reduced image and the thumbnail image;
A determination unit that compares the calculation result of the difference with a preset threshold value and determines whether or not the shooting date / time is combined with the main image;
If it is determined that the shooting date / time is combined with the main image, the shooting date / time is printed on the main image without being combined,
When it is determined that the shooting date / time has not been combined with the main image, the shooting date / time is combined with the main image to output a print.
前記判定手段は、前記複数の縮小画像と前記サムネイル画像の前記差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことを特徴とする請求項1または2記載のプリンタ。 The image processing means performs the reduction using a plurality of algorithms to generate a plurality of reduced images,
The printer according to claim 1, wherein the determination unit performs the determination based on a calculation result of the difference between the plurality of reduced images and the thumbnail image having the smallest difference.
前記判定手段は、複数回行った差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことを特徴とする請求項1〜3いずれか1つ記載のプリンタ。 The difference calculation means repeatedly performs the difference calculation by shifting pixel positions of the reduced image and the thumbnail image,
The printer according to any one of claims 1 to 3, wherein the determination unit performs the determination based on a difference calculation result performed a plurality of times based on a difference having a smallest difference.
前記判定手段は、前記複数の縮小画像と前記サムネイル画像の前記差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことを特徴とする請求項1〜4いずれか1つ記載のプリンタ。 The image processing means rotates the reduced image to generate a plurality of reduced images;
5. The determination unit according to claim 1, wherein the determination unit performs the determination based on an operation result of the difference between the plurality of reduced images and the thumbnail image having the smallest difference. Printer.
前記主画像に撮影日時を合成処理する際には、前記複雑度の検出結果に基づいて、前記複雑度の低い部分に行うことを特徴とする請求項1〜7いずれか1つ記載のプリンタ。 The image processing means detects the complexity of the main image;
The printer according to any one of claims 1 to 7, wherein when the photographing date and time are combined with the main image, the processing is performed on the low complexity portion based on the detection result of the complexity.
前記主画像を、前記サムネイル画像と等しいサイズに縮小して、縮小画像を生成し、
前記縮小画像と前記サムネイル画像の画素データの差分を演算し、
前記差分の演算結果と予め設定された閾値とを比較して、前記主画像に前記撮影日時が合成処理されているか否かを判定し、
前記主画像に前記撮影日時が合成処理されていると判定された場合は、前記主画像に前記撮影日時を合成処理せずに印画出力し、
前記主画像に前記撮影日時が合成処理されていないと判定された場合は、前記主画像に前記撮影日時を合成処理して印画出力することを特徴とするプリント方法。 In a printing method for reading a main image shot by a digital camera, a thumbnail image generated from the main image, and an image file including shooting information including shooting date and time, and printing the main image,
Reducing the main image to a size equal to the thumbnail image to generate a reduced image;
Calculate the difference between the reduced image and the thumbnail image pixel data,
Compare the calculation result of the difference with a preset threshold value to determine whether or not the shooting date and time have been combined with the main image,
If it is determined that the shooting date / time is combined with the main image, the shooting date / time is printed on the main image without being combined,
When it is determined that the shooting date and time have not been combined with the main image, the shooting date and time are combined with the main image and printed.
前記複数の縮小画像と前記サムネイル画像の前記差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことを特徴とする請求項9記載のプリント方法。 Performing the reduction using a plurality of algorithms to generate a plurality of reduced images;
The printing method according to claim 9, wherein the determination is performed based on an operation result of the difference between the plurality of reduced images and the thumbnail image having the smallest difference.
複数回行った差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことを特徴とする請求項9または10記載のプリント方法。 Shifting the pixel positions of the reduced image and the thumbnail image and repeatedly calculating the difference,
The printing method according to claim 9 or 10, wherein the determination is performed based on a result of a difference performed a plurality of times based on a difference having a smallest difference.
前記複数の縮小画像と前記サムネイル画像の前記差分の演算結果のうち、最も差分の小さなものに基づいて前記判定を行うことを特徴とする請求項9〜11いずれか1つ記載のプリント方法。 Rotating the reduced image to generate a plurality of reduced images;
The printing method according to claim 9, wherein the determination is performed based on an operation result of the difference between the plurality of reduced images and the thumbnail image having the smallest difference.
前記主画像に撮影日時を合成処理する際には、前記複雑度の検出結果に基づいて、前記複雑度の低い部分に行うことを特徴とする請求項9〜14いずれか1つ記載のプリント方法。
Detecting the complexity of the main image;
The printing method according to claim 9, wherein when the photographing date and time are combined with the main image, the processing is performed on the low complexity portion based on the detection result of the complexity. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004304767A JP4210254B2 (en) | 2004-10-19 | 2004-10-19 | Printer and printing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004304767A JP4210254B2 (en) | 2004-10-19 | 2004-10-19 | Printer and printing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006121230A JP2006121230A (en) | 2006-05-11 |
JP4210254B2 true JP4210254B2 (en) | 2009-01-14 |
Family
ID=36538730
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004304767A Expired - Fee Related JP4210254B2 (en) | 2004-10-19 | 2004-10-19 | Printer and printing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4210254B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106475206B (en) * | 2016-12-06 | 2018-12-21 | 富耐克超硬材料股份有限公司 | The preparation method of equivalance shape superabrasive particles |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8199242B2 (en) * | 2006-03-23 | 2012-06-12 | Nikon Corporation | Camera and image processing program |
-
2004
- 2004-10-19 JP JP2004304767A patent/JP4210254B2/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106475206B (en) * | 2016-12-06 | 2018-12-21 | 富耐克超硬材料股份有限公司 | The preparation method of equivalance shape superabrasive particles |
Also Published As
Publication number | Publication date |
---|---|
JP2006121230A (en) | 2006-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7502493B2 (en) | Image processing apparatus and method and program storage medium | |
JP5058887B2 (en) | Image processing apparatus, image processing method, and program | |
JP2006350498A (en) | Image processor and image processing method and program | |
JP2007006182A (en) | Image processing apparatus and method therefor, and program | |
US20090324069A1 (en) | Image processing device, image processing method, and computer readable medium | |
JP2007189428A (en) | Apparatus and program for index image output | |
US10992837B2 (en) | Information processing apparatus, control method thereof, and storage medium | |
US8493629B2 (en) | Image processing apparatus, method, and computer program | |
JP2007066227A (en) | Image processor, processing method and program | |
US20070079256A1 (en) | Method, apparatus and program for outputting images | |
JP4210254B2 (en) | Printer and printing method | |
US8254693B2 (en) | Image processing apparatus, image processing method and program | |
JP4479396B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2009105541A (en) | Image processing apparatus, method and program | |
JP2009042989A (en) | Image processing apparatus | |
JP2007011939A (en) | Image decision device and method therefor | |
JP2005348450A (en) | Image processing method, and storage medium | |
JP2006345084A (en) | Image recorder, image recording method and program | |
JP2006309323A (en) | Image editing method and image formation apparatus | |
JP4305343B2 (en) | Image processing device | |
KR20170026999A (en) | Method for pre-processing image data, computer readable medium including set of commands for performing the same and optical object recognition appratus using the same | |
JP4586457B2 (en) | Image processing device | |
JP4995772B2 (en) | Image reproduction system and method | |
JP2002369019A (en) | Color adjustment method and device for image information | |
JP2007293475A (en) | Image recognition method, its device, and imaging apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20070105 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070228 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20081015 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20081024 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111031 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |