JP2008203960A - Image processor, its control method, program, and printer - Google Patents
Image processor, its control method, program, and printer Download PDFInfo
- Publication number
- JP2008203960A JP2008203960A JP2007036372A JP2007036372A JP2008203960A JP 2008203960 A JP2008203960 A JP 2008203960A JP 2007036372 A JP2007036372 A JP 2007036372A JP 2007036372 A JP2007036372 A JP 2007036372A JP 2008203960 A JP2008203960 A JP 2008203960A
- Authority
- JP
- Japan
- Prior art keywords
- face
- image
- predetermined
- face area
- decoration image
- 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.)
- Withdrawn
Links
Images
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
本発明は、画像処理装置、その制御方法、プログラム及び印刷装置に関する。 The present invention relates to an image processing apparatus, a control method therefor, a program, and a printing apparatus.
従来、画像データに飾り付け画像を合成する方法が知られている。例えば、特許文献1に記載された複写装置では、原稿の画像データのうちユーザが指定する位置に、記憶媒体に保持されている飾り付け画像を合成し、新たな画像イメージを作成して印刷する。こうすることにより、他の機材に接続することなく、複写原稿に容易に画像を合成することができる。
ところで、画像データに人物の顔が含まれているときには、吹き出しや涙マークなど人物の顔に関連する飾り付け画像を合成することが考えられる。 By the way, when a person's face is included in the image data, it is conceivable to synthesize a decoration image related to the person's face such as a balloon or a tear mark.
しかしながら、特許文献1に記載された複写装置では、飾り付け画像を画像データに合成するとき、合成する位置をユーザが毎回指定しなければならず、ユーザの手間がかかるという問題点があった。
However, the copying apparatus described in
本発明は、このような課題に鑑みなされたものであり、顔に関する飾り付け画像を配置し直すというユーザの操作を減らすことができる画像処理装置、その制御方法及びその制御プログラムを提供することを目的の一つとする。また、そのような画像処理装置を備えた印刷装置を提供することを目的の一つとする。 The present invention has been made in view of such a problem, and an object of the present invention is to provide an image processing apparatus, a control method thereof, and a control program thereof that can reduce a user's operation of rearranging a decorative image related to a face. One of them. Another object is to provide a printing apparatus provided with such an image processing apparatus.
本発明は、上述の目的の少なくとも一つを達成するために以下の手段を採った。 The present invention adopts the following means in order to achieve at least one of the above objects.
本発明の画像処理装置は、
各種画像を表示可能な画像表示手段と、
顔に関する飾り付け画像である顔飾り付け画像を記憶する顔飾り付け画像記憶手段と、
顔領域に対する顔飾り付け画像の相対位置を定めた相対位置情報を記憶する相対位置情報記憶手段と、
所定の写真画像の顔領域を検出する顔領域検出手段と、
前記顔領域検出手段によって前記所定の写真画像の顔領域が検出され且つ前記顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたとき、該所定の顔飾り付け画像の相対位置情報を前記相対位置情報記憶手段から読み込み、前記相対位置情報と前記所定の写真画像の顔領域の絶対位置とに基づいて、前記所定の写真画像における該所定の顔飾り付け画像の表示位置を決定し、該表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御する制御手段と、
を備えたものである。
The image processing apparatus of the present invention
Image display means capable of displaying various images;
Face decoration image storage means for storing a face decoration image which is a decoration image related to the face;
Relative position information storage means for storing relative position information defining a relative position of the face decoration image with respect to the face area;
Face area detecting means for detecting a face area of a predetermined photographic image;
When the face area of the predetermined photographic image is detected by the face area detection means and the predetermined face decoration image is read from the face decoration image storage means, the relative position information of the predetermined face decoration image is obtained as the relative position. Reading from the information storage means, based on the relative position information and the absolute position of the face area of the predetermined photographic image, to determine the display position of the predetermined face decoration image in the predetermined photographic image, Control means for controlling the image display means so that the predetermined face decoration image is displayed;
It is equipped with.
この画像処理装置では、顔領域検出手段によって所定の写真画像の顔領域が検出され且つ顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたとき、所定の顔飾り付け画像の相対位置情報を相対位置情報記憶手段から読み込み、相対位置情報と所定の写真画像の顔領域の絶対位置とに基づいて、所定の写真画像における所定の顔飾り付け画像の表示位置を決定し、表示位置に所定の顔飾り付け画像を表示する。このように、写真画像のどこに顔領域が存在していても、その顔領域に対する顔飾り付け画像の位置は予め定められた相対位置情報に基づいて決定されるため、予め顔領域に対する顔飾り付け画像の相対位置を適切な位置に定め、この相対位置を相対位置情報として相対位置情報記憶手段に記憶しておけば、顔飾り付け画像は顔領域に対して適切な位置に配置されることになる。したがって、顔飾り付け画像を顔領域とは無関係に定めた固定位置に配置する場合に比べて、顔飾り付け画像を配置し直すというユーザの操作を減らすことができる。 In this image processing apparatus, when the face area of the predetermined photographic image is detected by the face area detection unit and the predetermined face decoration image is read from the face decoration image storage unit, the relative position information of the predetermined face decoration image is relative. Read from the position information storage means, determine the display position of the predetermined face decoration image in the predetermined photo image based on the relative position information and the absolute position of the face area of the predetermined photo image, and determine the predetermined face decoration at the display position Display an image. Thus, no matter where the face area exists in the photographic image, the position of the face decoration image with respect to the face area is determined based on the predetermined relative position information. If the relative position is set to an appropriate position and this relative position is stored as relative position information in the relative position information storage means, the face decoration image is arranged at an appropriate position with respect to the face area. Therefore, the user's operation of rearranging the face decoration image can be reduced as compared with the case where the face decoration image is arranged at a fixed position determined independently of the face area.
本発明の画像処理装置は、前記顔領域検出手段で検出された前記所定の写真画像の顔領域の前記写真画像の所定方向に対する傾き角度を算出する顔傾き角度算出手段を備え、前記制御手段は、前記顔領域検出手段によって前記所定の写真画像の顔領域が検出され且つ前記顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたとき、該所定の顔飾り付け画像の相対位置情報を前記相対位置情報記憶手段から読み込み、前記所定の写真画像の顔領域の傾き角度に基づいて該所定の顔飾り付け画像を回転させると共に、前記相対位置情報と前記所定の写真画像の顔領域の絶対位置とに基づいて前記所定の写真画像における該所定の顔飾り付け画像の表示位置を決定し、該表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御するものとしてもよい。こうすることで、写真画像の顔領域の傾き角度に応じて顔飾り付け画像を回転し直すというユーザの操作を減らすことができる。なお、ここで「所定方向に対する傾き角度」とは、何らかの基準方向に対して定めた傾き角度であり、例えば、天地方向に対する傾き角度であってもよく、水平方向に対する傾き角度であってもよい。なお、顔飾り付け画像を回転させる方法とは、例えば、顔傾き角度算出手段で算出した顔傾き角度と同じ角度だけ回転させる方法であってもよく、顔傾き角度算出手段で算出した傾き角度に所定の値を加えた角度だけ回転させる方法であってもよい。 The image processing apparatus of the present invention comprises a face inclination angle calculating means for calculating an inclination angle of the face area of the predetermined photographic image detected by the face area detecting means with respect to a predetermined direction of the photographic image, and the control means When the face area of the predetermined photographic image is detected by the face area detection means and the predetermined face decoration image is read from the face decoration image storage means, the relative position information of the predetermined face decoration image is obtained as the relative position information. Read from the position information storage means, rotate the predetermined face decoration image based on the inclination angle of the face area of the predetermined photographic image, and to the relative position information and the absolute position of the face area of the predetermined photographic image And determining the display position of the predetermined face decoration image in the predetermined photographic image based on the image table so that the predetermined face decoration image is displayed at the display position. It may be controlled means. By doing so, the user's operation of rotating the face decoration image again according to the inclination angle of the face area of the photographic image can be reduced. Here, the “inclination angle with respect to a predetermined direction” is an inclination angle determined with respect to some reference direction, and may be, for example, an inclination angle with respect to the vertical direction or an inclination angle with respect to the horizontal direction. . Note that the method of rotating the face decoration image may be, for example, a method of rotating the face decoration angle by the same angle as the face inclination angle calculated by the face inclination angle calculation means. It may be a method of rotating by an angle obtained by adding the value of.
本発明の画像処理装置は、前記所定の写真画像の顔領域の大きさを算出する顔領域面積算出手段を備え、前記制御手段は、前記顔領域検出手段によって前記所定の写真画像の顔領域が検出され且つ前記顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたとき、該所定の顔飾り付け画像の相対位置情報を前記相対位置情報記憶手段から読み込み、前記所定の写真画像の顔領域の大きさに基づいて該所定の顔飾り付け画像を表示する大きさを決定すると共に、前記相対位置情報と前記所定の写真画像の顔領域の絶対位置とに基づいて前記所定の写真画像における該所定の顔飾り付け画像の表示位置を決定し、前記表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御するものであってもよい。こうすれば、写真画像の顔領域の大きさに応じて顔飾り付け画像の大きさを変更し直すというユーザの操作を減らすことができる。なお、所定の写真の顔領域の大きさに基づいて所定の顔飾り付け画像を表示する方法とは、例えば、顔領域が大きいときには顔飾り付け画像を大きく表示する方法であってもよく、顔領域が小さいときには、顔飾り付け画像を小さく表示する方法であってもよい。 The image processing apparatus of the present invention comprises a face area area calculating means for calculating the size of the face area of the predetermined photographic image, and the control means detects the face area of the predetermined photographic image by the face area detecting means. When the detected face decoration image is read from the face decoration image storage means, the relative position information of the predetermined face decoration image is read from the relative position information storage means, and the face area of the predetermined photographic image is read. A size for displaying the predetermined face decoration image is determined based on the size, and the predetermined image image in the predetermined photographic image is determined based on the relative position information and the absolute position of the face area of the predetermined photographic image. The display position of the face decoration image may be determined, and the image display unit may be controlled so that the predetermined face decoration image is displayed at the display position. In this way, the user's operation of changing the size of the face decoration image according to the size of the face area of the photographic image can be reduced. The method for displaying the predetermined face decoration image based on the size of the face area of the predetermined photo may be, for example, a method of displaying the face decoration image large when the face area is large. When it is small, a method of displaying a face decoration image small may be used.
本発明の画像処理装置は、前記顔領域検出手段で検出された前記顔領域の数をカウントする顔領域数カウント手段を備え、前記制御手段は、前記顔領域検出手段によって前記所定の写真画像の顔領域が検出され且つ前記顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたのち、前記顔領域数カウント手段によって前記顔領域の数が2以上カウントされたとき、該所定の顔飾り付け画像の相対位置情報を前記相対位置情報記憶手段から読み込み、前記相対位置情報と前記所定の写真画像の2以上の顔領域の中から所定の規則に従って定めた顔領域の前記絶対位置とに基づいて前記所定の写真画像における該所定の顔飾り付け画像の表示位置を決定し、前記表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御するものであってもよい。こうすれば、写真画像中に複数の顔領域があるときでも、そのうちの1つの顔領域を選定し、その顔領域に顔飾り付け画像を付けるため、選定された顔領域とユーザが顔飾り付け画像を付けたいと思っていた顔領域とが一致していれば、顔飾り付け画像を配置し直すというユーザの操作を減らすことができる。なお、ここで「所定の規則」とは、検出された顔領域の1つを選定可能な規則であり、例えば、検出された顔領域のうち最も顔領域が広いものに選定するという規則であってもよく、検出された顔領域のうち写真画像の中心位置に最も近いものに選定するという規則であってもよい。 The image processing apparatus of the present invention comprises a face area number counting means for counting the number of the face areas detected by the face area detecting means, and the control means is configured to detect the predetermined photographic image by the face area detecting means. After a face area is detected and a predetermined face decoration image is read from the face decoration image storage means, when the number of face areas is counted by two or more by the face area number counting means, the predetermined face decoration image The relative position information is read from the relative position information storage means, and based on the relative position information and the absolute position of the face area determined according to a predetermined rule from two or more face areas of the predetermined photographic image. A display position of the predetermined face decoration image in a predetermined photographic image is determined, and the image display means is configured to display the predetermined face decoration image at the display position. Gosuru may be one. In this way, even when there are a plurality of face areas in the photographic image, one of the face areas is selected, and a face decoration image is attached to the face area. If the face area that the user wishes to attach matches, the user's operation of rearranging the face decoration image can be reduced. Here, the “predetermined rule” is a rule that can select one of the detected face areas, for example, a rule that selects the detected face area with the widest face area. Alternatively, the rule may be to select the detected face area closest to the center position of the photographic image.
本発明の画像処理装置は、前記顔領域検出手段で検出された前記顔領域の数が予め定めた上限値以上であるか否かを判定する顔領域数判定手段を備え、前記制御手段は、前記顔領域検出手段によって前記所定の写真画像の顔領域が検出され且つ前記顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたのち、前記顔領域数判定手段で前記顔領域の数が予め定めた上限値以上であると判定されたとき、該所定の顔飾り付け画像の表示位置を所定の固定位置に決定し、前記表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御するものであってもよい。写真画像中に予め定めた上限値以上の数の顔領域が検出されたときには、1つの顔領域を選定してもそれがユーザの意図した顔領域と一致する確率が下がり、本発明の効果が十分に得られないためである。なお、ここで「所定の固定位置」とは、予め定められた固定位置であり、例えば、写真画像の中央であってもよく、写真画像の4隅のいずれか近傍であってもよい。また、ここで、「上限値」とは、例えば値3のように予め定められた任意の値であってもよく、顔領域の数が多すぎてそのうちの1つの顔領域を顔飾り付け画像に追従させるべき顔領域として自動選定したとしても、その自動選定した顔領域と実際にユーザが顔飾り付け画像を付けたい顔領域とが一致する確率が低くなるような値であってもよい。 The image processing apparatus of the present invention comprises face area number determination means for determining whether or not the number of the face areas detected by the face area detection means is greater than or equal to a predetermined upper limit value, and the control means comprises: After the face area of the predetermined photographic image is detected by the face area detection means and the predetermined face decoration image is read from the face decoration image storage means, the number of the face areas is previously determined by the face area number determination means. When it is determined that the predetermined upper limit value is exceeded, the display position of the predetermined face decoration image is determined to be a predetermined fixed position, and the image display means is configured to display the predetermined face decoration image at the display position. It may be one that controls. When a number of face areas equal to or greater than a predetermined upper limit value are detected in a photographic image, the probability of matching one face area with the face area intended by the user is reduced, and the effect of the present invention is reduced. This is because it cannot be obtained sufficiently. Here, the “predetermined fixed position” is a predetermined fixed position, and may be, for example, the center of the photographic image or near one of the four corners of the photographic image. Here, the “upper limit value” may be an arbitrary value determined in advance, for example, a value of 3, for example, and there are too many face areas, and one face area is designated as a face decoration image. Even if the face area to be followed automatically is selected, the face area may be a value that reduces the probability that the automatically selected face area matches the face area that the user actually wants to add a face decoration image to.
本発明の印刷装置は、上述したいずれかに記載の画像処理装置と、印刷媒体への印刷を実行可能な印刷実行手段とを備えたものである。本発明の画像処理装置を搭載した印刷装置は、本発明の画像処理装置を搭載しているため顔飾り付け画像を配置し直すというユーザの操作を減らすことができるものであるから、これを搭載した印刷装置も同様の効果が得られる。 A printing apparatus according to the present invention includes any one of the above-described image processing apparatuses and a print execution unit capable of executing printing on a print medium. Since the printing apparatus equipped with the image processing apparatus of the present invention is equipped with the image processing apparatus of the present invention, it can reduce the user's operation of rearranging the face decoration image. A printing apparatus can achieve the same effect.
本発明の画像処理装置の制御方法は、
各種画像を表示可能な画像表示手段と、顔に関する飾り付け画像である顔飾り付け画像を記憶する顔飾り付け画像記憶手段と、顔領域に対する顔飾り付け画像の相対位置を定めた相対位置情報を記憶する相対位置情報記憶手段と、を備えた画像処理装置をコンピュータ・ソフトウェアで制御する制御方法であって、
(a)所定の写真画像の顔領域を検出するステップと、
(b)前記ステップ(a)で検出した顔領域に飾り付ける所定の顔飾り付け画像を前記顔飾り付け画像記憶手段から読み込み、該所定の顔飾り付け画像の相対位置情報を前記相対位置情報記憶手段から読み込み、該相対位置情報と前記所定の写真画像の顔領域の絶対位置とに基づいて、該所定の写真画像における該所定の顔飾り付け画像の表示位置を決定し、該表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御するステップと、
を含むものである。
The control method of the image processing apparatus of the present invention includes:
Image display means capable of displaying various images, face decoration image storage means for storing a face decoration image that is a face decoration image, and relative position for storing relative position information that defines the relative position of the face decoration image with respect to the face area A control method for controlling an image processing apparatus provided with information storage means by computer software,
(A) detecting a face area of a predetermined photographic image;
(B) A predetermined face decoration image to be decorated on the face area detected in the step (a) is read from the face decoration image storage means, and relative position information of the predetermined face decoration image is read from the relative position information storage means, Based on the relative position information and the absolute position of the face area of the predetermined photographic image, a display position of the predetermined face decoration image in the predetermined photographic image is determined, and the predetermined face decoration image is set at the display position. Controlling the image display means so that is displayed;
Is included.
本発明の画像処理装置の制御方法は、顔領域検出手段によって所定の写真画像の顔領域が検出され且つ顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたとき、所定の顔飾り付け画像の相対位置情報を相対位置情報記憶手段から読み込み、相対位置情報と所定の写真画像の顔領域の絶対位置とに基づいて、所定の写真画像における所定の顔飾り付け画像の表示位置を決定し、表示位置に所定の顔飾り付け画像を表示する。このように、写真画像のどこに顔領域が存在していても、その顔領域に対する顔飾り付け画像の位置は予め定められた相対位置情報に基づいて決定されるため、予め顔領域に対する顔飾り付け画像の相対位置を適切な位置に定め、この相対位置を相対位置情報として相対位置情報記憶手段に記憶しておけば、顔飾り付け画像は顔領域に対して適切な位置に配置されることになる。したがって、顔飾り付け画像を顔領域とは無関係に定めた固定位置に配置する場合に比べて、顔飾り付け画像を配置し直すというユーザの操作を減らすことができる。 According to the control method of the image processing apparatus of the present invention, when a face area of a predetermined photographic image is detected by the face area detection unit and a predetermined face decoration image is read from the face decoration image storage unit, the predetermined face decoration image is stored. The relative position information is read from the relative position information storage means, the display position of the predetermined face decoration image in the predetermined photo image is determined based on the relative position information and the absolute position of the face area of the predetermined photo image, and the display position A predetermined face decoration image is displayed on the screen. Thus, no matter where the face area exists in the photographic image, the position of the face decoration image with respect to the face area is determined based on the predetermined relative position information. If the relative position is set to an appropriate position and this relative position is stored as relative position information in the relative position information storage means, the face decoration image is arranged at an appropriate position with respect to the face area. Therefore, the user's operation of rearranging the face decoration image can be reduced as compared with the case where the face decoration image is arranged at a fixed position determined independently of the face area.
本発明の画像処理装置の制御方法において、画像処理装置の制御方法は上述したいずれかの画像処理装置が備えている各種構成を備えていてもよいし、また、上述したいずれかの画像処理装置の機能を実現するようなステップを追加してもよい。 In the control method of the image processing apparatus of the present invention, the control method of the image processing apparatus may include various configurations included in any of the above-described image processing apparatuses, or any of the above-described image processing apparatuses. Steps for realizing the functions may be added.
本発明の制御プログラムは、1又は複数のコンピュータに、画像処理装置の制御方法の各ステップを実行させるためのプログラムである。このプログラムは、コンピュータが読み取り可能な記録媒体(例えばハードディスク、ROM、FD、CD、DVDなど)に記録されていてもよいし、伝送媒体(インターネットやLANなどの通信網)を介してあるコンピュータから別のコンピュータへ配信されてもよいし、その他どのような形で授受されてもよい。このプログラムを一つのコンピュータに実行させるか又は複数のコンピュータに各ステップを分担して実行させれば、上述した制御方法と同様の効果を得ることができる。 The control program of the present invention is a program for causing one or more computers to execute the steps of the control method of the image processing apparatus. This program may be recorded on a computer-readable recording medium (for example, hard disk, ROM, FD, CD, DVD, etc.), or from a computer via a transmission medium (communication network such as the Internet or LAN). It may be distributed to another computer, or may be exchanged in any other form. If this program is executed by a single computer or each step is shared and executed by a plurality of computers, the same effect as the control method described above can be obtained.
次に、本発明の実施の形態を図面に基づいて説明する。図1は、本発明の一実施形態であるフォトプリンタ10の斜視図であり、図2は、フォトプリンタ10の構成の概略を示すブロック図である。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a perspective view of a
本実施形態のフォトプリンタ10は、図1に示すように、プリンタ本体12の前面を開閉可能な前面扉14と、プリンタ本体12の上面に設けられた操作パネル20と、プリンタ本体12の上面の奥の一辺に開閉自在に取り付けられ閉状態で操作パネル20を覆うカバー30と、プリンタ本体12に内蔵された印刷機構40(図2参照)と、フォトプリンタ10の全体の制御を司るコントローラ50(図2参照)とを備えている。なお、本実施形態では印刷媒体を「記録紙」として説明するが、材質を特定する趣旨ではなく、紙の他フィルムなど他の材質も含むものとする。
As shown in FIG. 1, the
前面扉14は、プリンタ本体12の前面を開閉するための蓋であり、図1に示すように、開状態のときには、プリンタ本体12の前面から排紙される記録紙Sを受けるための排紙トレイとして機能すると共に、プリンタ本体12の前面に設けられた各種のメモリカードスロット18をユーザが利用可能な状態となる。
The
操作パネル20は、文字や図形、記号などを表示するディスプレイ22と、このディスプレイ22の周囲に配置されたボタン群24とを備えている。ボタン群24は、図2に示すように、電源のオンオフを行うための電源ボタン24a、ディスプレイ22に表示されている画像等の表示サイズを6分割表示・15分割表示・全画面表示等に切り替えるための表示切替ボタン24b、印刷機能に関する複数の選択肢が並んだメインメニュー画面を呼び出すためのメニューボタン24c、操作を途中でキャンセルしたり記録紙Sへの印刷を途中で中断したりするためのキャンセルボタン24d、記録紙Sへの印刷実行を指示するための印刷ボタン24e、メモリカードスロット18に挿入されたメモリカードMに編集画像等を保存するための保存ボタン24f、ディスプレイ22に表示された複数の選択肢の中から所望の選択肢を選択したりカーソルを移動したりするときに操作される上下左右ボタン24g、この上下左右ボタン24gの中央に配置され上下左右ボタン24gによって選択されている選択肢に決定したことを指示するためのOKボタン24hなどで構成されている。また、図1に示すように、操作パネル20の奥には、印刷機構40の給紙口48が設けられ、この給紙口48には、ガイド幅が記録紙Sの幅に合うように左右方向にスライド操作される一対の用紙ガイド49a,49bが設けられている。
The
カバー30は、図1に示すように、プリンタ本体12の上面を覆うことのできる大きさに成形された樹脂板であり、ディスプレイ22と同じ大きさの窓34を備え、カバー支持軸32に開閉可能に取り付けられている。また、カバー30が開状態のときには、記録紙Sを印刷機構40へ供給するための給紙トレイとして利用可能である。一方、カバー30が閉状態であっても、カバー30には窓34が備えられているため、ユーザはこの窓34を介してディスプレイ22の表示内容を確認することができる。
As shown in FIG. 1, the
印刷機構40は、プリンタ本体12の内部に配置され、図2に示すように、左右方向にループ状に架け渡されたキャリッジベルト41により駆動されガイド42に沿って左右に往復するキャリッジ43と、キャリッジ43にシアン・マゼンダ・イエロー・ブラック等の各色のインクを供給するインクカートリッジ44と、各インクカートリッジ44から供給された各インクに圧力をかけてノズルから記録紙Sに向かってインクを吐出する印刷ヘッド45と、操作パネル20に形成された給紙口48から供給された記録紙Sを排紙トレイである開状態の前面扉14へ送り出す搬送ローラ46とを備えている。インクカートリッジ44は印刷機構40の下方に取り付けられており、インクカートリッジ44がキャリッジ43上に搭載されていない、いわゆるオフキャリッジタイプである。印刷ヘッド45は、ここでは圧電素子に電圧をかけることによりこの圧電素子を変形させてインクを加圧する方式を採用しているが、発熱抵抗体(例えばヒータなど)に電圧をかけインクを加熱して発生した気泡によりインクを加圧する方式を採用してもよい。
The
コントローラ50は、図2に示すように、CPU51を中心とするマイクロプロセッサとして構成されており、各種処理プログラムや各種データ、各種テーブルなどを記憶したROM52と、一時的にデータを記憶するRAM53と、電気的に書き換え可能で電源を切ってもデータは保持されるフラッシュメモリ54と、メモリカードスロット18に挿入されたメモリカードMや印刷機構40、操作パネル20と通信を可能とするインタフェース55(I/F)とを備え、これらはバス57を介して互いに信号のやり取りが可能なように接続されている。ROM52には、後述する飾り付け画像配置処理ルーチンや顔認識処理ルーチン、顔選定処理ルーチンなどが記憶されている。フラッシュメモリ54には、後述する顔飾り付け画像や飾り付け画像情報などが記憶されている。このコントローラ50は、メモリカードスロット18に挿入されたメモリカードMの画像ファイルなどを入力し、操作パネル20のボタン群24からの指令信号や印刷機構40の各部からの検出信号などを入力する。また、コントローラ50は、メモリカードMに編集画像などを保存するほか、印刷機構40の各部への制御信号や操作パネルのディスプレイ22への制御信号を出力する。
As shown in FIG. 2, the
次に、こうして構成された本実施形態のフォトプリンタ10の動作、特に顔飾り付け画像配置処理の動作について説明する。図3は、コントローラ50のCPU51により実行される飾り付け画像配置処理ルーチンの一例を表すフローチャートである。この飾り付け画像配置処理ルーチンはROM52に記憶され、CPU51により写真画像が読み込まれたときなどに繰り返し実行される。
Next, the operation of the thus configured
図3の飾り付け画像配置処理ルーチンが開始されると、CPU51は、まず、ユーザに飾り付け画像の選択を促す飾り付け画像選択画面(図4参照)をディスプレイ22に表示する(ステップS100)。これにより、ユーザは写真画像に配置する飾り付け画像を選択することができる。図4に示すように、飾り付け画像選択画面では、写真画像の縁を囲むフレームマーク81、写真画像の上側に付される垂れ幕マーク82、顔の外側に付される夢マーク83、顔の外側に付される吹き出しマーク84、目の下に付される涙マーク85、目の斜め上に付される怒りマーク86、頭の上に付される閃きマーク87、目の上に付されるメガネマーク88等が選択可能に表示されている。そして、ユーザが上下左右ボタン24gで写真画像に配置する飾り付け画像を選択し、OKボタン24hを押下すると、CPU51はフラッシュメモリ54より、ユーザが選択した飾り付け画像に対応する飾り付け画像情報(図5参照)を読み込む(ステップS110)。ここで、飾り付け画像情報とは、飾り付け画像が顔に関連する飾り付け画像(顔飾り付け画像)であるか否かを表す顔追従フラグ、顔領域の中心座標を基準とした顔飾り付け画像の相対座標(X_S_OFFSET,Y_S_OFFSET)を示すオフセット座標、顔の面積を基準とした顔飾り付け画像の相対面積を示すオフセットサイズ、顔領域の上下方向を基準とした顔飾り付け画像の相対角度を示すオフセット回転角度、顔飾り付け画像幅及び顔飾り付け画像高さなどを含む情報をいう。なお、顔追従フラグがゼロのときには顔飾り付け画像以外の飾り付け画像(例えば、フレームマーク81や垂れ幕マーク82など)であることを示し、値1のときには顔飾り付け画像(例えば、吹き出しマーク84や涙マーク85など)であることを示す。
When the decorative image arrangement processing routine of FIG. 3 is started, the
次に、CPU51は、ステップS110で読み込んだ顔追従フラグがゼロか否かを判定し(ステップS120)、顔追従フラグがゼロのときには、今回選択した飾り付け画像は顔飾り付け画像ではないため、あらかじめ定められた固定位置(本実施形態では写真画像中央位置とする)に飾り付け画像を配置し(ステップS210)、本ルーチンを終了する。一方、顔追従フラグが値1であったときには、今回選択した飾り付け画像は顔飾り付け画像であるため、後述する顔認識処理ルーチンを用いて顔領域の検出を試みる(ステップS130)。これにより、飾り付け画像が顔飾り付け画像であるときにのみ、ステップS130以下の処理を行うことになる。
Next, the
ここで、顔認識処理ルーチンについて詳しく説明する。図6は顔認識処理ルーチンの一例を表すフローチャートである。図6の顔認識処理ルーチンが実行されると、CPU51は写真画像中の顔領域の検出を試行する(ステップS300)。ここで、顔領域を検出する方法は公知技術なので、ここではその詳細な検出方法については省略するが、例えば、写真画像から肌色に指定した色と近い色を持つ画素を肌色画素の集合として抽出する方法がある。この方法は、例えば、肌色を他の色と区別するための色空間上で、予め色空間上の肌色の範囲を定め、各画素の色が定められた範囲に入っているか否かを判定することにより行われる。このとき、画像データを色相、彩度及び輝度の色空間に変換し、カラー画像の平均輝度を算出し、算出した平均輝度の所定の範囲毎に、予め肌色画素値に適切な範囲を設定して、範囲内の肌色画素値の領域を肌色画素の集合として抽出してもよい。このように、画像の平均輝度を複数の範囲に区分し、各範囲に対して肌色画素値の範囲を設定するようにすれば、画像全体が明るいか暗いかに応じて、適切な肌色画素の範囲を設定することができる。この結果、肌色画素の検出をより正確に行うことが可能である。これにより、肌色画素の集合を抽出することができる。このとき、ある程度の数(例えば10画素、または、画像全体の画素数の1%以上)以上の肌色画素が接した状態で集合している画像領域のみをして抽出してもよい。肌色画素の集合を抽出した後、CPU51は、肌色画素の集合から目及び口の抽出を行う。ここで、目及び口の位置を抽出する方法は公知技術なので、ここではその詳細な抽出方法については省略するが、例えば、検出した肌色画素の集合領域から、肌色画素の集合領域よりも輝度値の低い領域を目の領域として抽出し、抽出した両目の下側の範囲内で肌色画素の集合領域よりも輝度値の低い領域を口の領域として抽出する。このとき、ニューラルネットワークによる処理や、画像内の形状を利用した処理などの種々の処理によって抽出してもよい。なお、写真画像中の位置座標は、写真画像の左上隅を原点(0,0)とし、右方向をX座標正の方向、下方向をY座標正の方向とする(図7参照)。
Here, the face recognition processing routine will be described in detail. FIG. 6 is a flowchart showing an example of a face recognition processing routine. When the face recognition processing routine of FIG. 6 is executed, the
続いて、CPU51は、顔領域の検出を試行した結果、顔領域を検出できたか否かを判定し(ステップS310)、顔領域を検出できなかったときには、顔領域の検出に失敗したことを表すために顔検出フラグをゼロに設定し(ステップS360)、本ルーチンを終了する。なお、顔領域を検出できなかったときとは、例えば、肌色画素の集合を抽出できなかったときや肌色画素の集合を抽出した後に、目や口を抽出できなかったときなどが挙げられる。一方、CPU51は、ステップS310で顔領域を検出できたときには、顔領域の検出に成功したことを表すために顔検出フラグを値1に設定し(ステップS320)、図7に示すように、検出した写真画像の顔領域に外側から接する矩形を作成し(ステップS330)、この矩形の4隅の座標や中心座標、面積を求めてそれらをRAM53の所定領域に記憶する(ステップS340)。ここで、矩形の座標は、顔認識処理ルーチンで検出した目及び口の位置から顔領域の上下方向を判定し、顔領域の左上位置に相当する矩形の左上座標を(X_F_LT,Y_F_LT)と定める。同様に、矩形の右上座標を(X_F_RT,Y_F_RT),矩形の左下座標を(X_F_LB,Y_F_LB),矩形の右下座標を(X_F_RB,Y_F_RB)として、矩形の4隅の座標を定める。また、矩形の中心座標を(X_C、Y_C)とする。なお、本実施形態では、矩形の面積を顔領域の面積とみなす。
Subsequently, the
続いて、CPU51は、全ての顔領域についてステップS330及びステップS340の処理を実行したか否かを判定し(ステップS350)、まだそれらの処理を実行していない顔領域が残っているときには、次の顔領域についてステップS330及びステップS340の処理を実行する。一方、全ての顔領域についてステップS330及びステップS340の処理を実行したときには、本ルーチンを終了する。写真画像に複数の人物が写っているときには、ステップS300で顔領域の検出を試行したときに複数の顔領域が検出されるため、検出された全ての顔領域についてステップS330及びステップS340の処理を実行したか否かを判定する。また、顔領域が複数存在する場合には、CPU51は、各顔領域に矩形の4隅の座標や中心座標、面積を対応付けてRAM53に記憶する。
Subsequently, the
図3のフローに戻り、CPU51は、このような顔認識処理ルーチンを終了した後、顔検出フラグがゼロか値1かを判定し(ステップS140)、顔検出フラグがゼロのとき、つまり、顔領域の検出に失敗したときには、予め定められた固定位置(本実施形態では写真画像中央位置とする)に顔飾り付け画像を配置し(ステップS210)、本ルーチンを終了する。一方、顔検出フラグが値1のとき、つまり、顔領域の検出に成功したときには、続いて顔選定処理ルーチンを実行する(ステップS150)。なお、顔領域の検出に失敗したときには、顔飾り付け画像は予め定められた固定位置に配置されるため、ユーザは顔飾り付け画像を適切な位置に移動する操作を行うことになる。
Returning to the flow of FIG. 3, after completing the face recognition processing routine, the
ここで、顔選定処理ルーチンについて詳しく説明する。図8は顔選定処理ルーチンの一例を表すフローチャートである。図8の顔選定処理ルーチンが実行されると、CPU51は、顔認識処理ルーチン(ステップS130)で複数の顔領域を検出したか否かを判定し(ステップS400)、顔認識処理ルーチンで1つの顔領域のみを検出したと判定されたときには、その顔領域を追従対象の顔領域として設定し(ステップS410)、顔飾り付け画像を追従させるべき顔領域があることを表すために追従対象フラグを値1に設定し(ステップS420)、本ルーチンを終了する。ここで、追従対象の顔領域とは、今回の顔飾り付け画像を付けるために顔飾り付け画像を追従させる顔領域をいう。一方、顔認識処理ルーチンで複数の顔領域を検出したと判定されたときには、顔領域の数が上限値以上か否かを判定する(ステップS430)。ここで、上限値とは、顔領域の数が多すぎてそのうちの1つの顔領域を顔飾り付け画像に追従させるべき顔領域として自動選定したとしても、その自動選定した顔領域と実際にユーザが顔飾り付け画像を付けたい顔領域とが一致する確率が低くなるような値に設定されている。本実施形態では、この上限値を値3とした。そして、顔領域の数が上限値未満であるときには、それぞれの顔領域の面積を読み込み(ステップS440)、読み込んだ面積のうち最も大きな面積を持つ顔領域を追従対象の顔領域として設定し(ステップS450)、追従対象フラグを値1に設定し(ステップS420)、本ルーチンを終了する。一方、顔領域の数が上限値以上であったときには、追従対象の顔領域を設定したとしても、それとユーザが顔飾り付け画像と付けたい顔領域とが一致する確率が低いことから、追従対象の顔領域を設定することなく、追従対象フラグをゼロに設定し(ステップS460)、本ルーチンを終了する。
Here, the face selection processing routine will be described in detail. FIG. 8 is a flowchart showing an example of the face selection processing routine. When the face selection processing routine of FIG. 8 is executed, the
さて、図3のフローに戻り、CPU51は、顔選定処理ルーチン(ステップS150)の後、追従対象の顔領域があるか否かを追従対象フラグに基づいて判定する(ステップS160)。そして、追従対象の顔領域がなかったとき、つまり、追従対象フラグがゼロであるときには、前出の固定位置に顔飾り付け画像を配置し(ステップS210)、本ルーチンを終了する。なお、顔飾り付け画像が予め定められた固定位置に配置されるときは、ユーザは顔飾り付け画像を適切な位置に移動する操作を行うことになる。一方、追従対象の顔領域があるとき、つまり、追従対象フラグが値1であるときには、顔領域に追従する顔飾り付け画像の傾き角度を算出する(ステップS170)。具体的には、まず、矩形の左上座標の値(X_F_RT,Y_F_RT)と矩形の右下座標の値(X_F_LB,Y_F_LB)を比較し、以下の表1に示すように、それぞれの座標の値の条件式に対応する角度に顔領域傾き角度を決定する。なお、図9は顔領域傾き角度と矩形の左上座標及び右上座標との関係を表す。続いて、CPU51はRAM53より追従させる顔飾り付け画像のオフセット回転角度を読み込み、オフセット回転角度を顔領域の傾き角度に加算して顔飾り付け画像の傾き角度を算出する。これにより、顔領域が写真画像の所定方向に対して傾いていたとき、その傾き角度に合わせて顔飾り付け画像を回転することができる。なお、顔領域傾き角度、オフセット回転角度及び顔飾り付け画像傾き角度は時計回り方向を正の角度とする。
Returning to the flow of FIG. 3, after the face selection processing routine (step S150), the
次に、CPU51は、RAM53より顔領域の面積の値及びオフセットサイズの値を読み込み、読み込んだ面積の値にオフセットサイズの値を乗算して、顔飾り付け画像の大きさを算出する(ステップS180)。
Next, the
次に、CPU51は、飾り付け画像情報(図5参照)や顔飾り付け画像の傾き角度・面積に基づいて顔飾り付け画像を配置する(ステップS190)。具体的には、まず、顔領域の面積が所定のデフォルト値であるとしたときの顔飾り付け画像の左上座標(X_OFFSET,Y_OFFSET)を求める。この座標(X_OFFSET,Y_OFFSET)は、顔領域の面積がデフォルト値で且つ顔領域傾き角度が0°のときに、飾り付け画像情報に含まれるオフセット座標(X_S_OFFSET,Y_S_OFFSET)となるように決められている。そして、顔領域の面積がデフォルト値で顔領域傾き角度が90°、180°、270°のときには、座標(X_OFFSET,Y_OFFSET)はそれぞれ表2及び図9のようになる。すなわち、オフセット座標(X_S_OFFSET,Y_S_OFFSET)を顔領域傾き角度だけ回転させた座標となる。このようにして座標(X_OFFSET,Y_OFFSET)を定めたあと、顔領域の中心座標(X_F_C,Y_F_C)と先ほど求めた座標(X_OFFSET,Y_OFFSET)との距離を、デフォルト値に対する今回の顔領域の面積の比に基づいて伸縮する。そして、顔領域の中心座標(X_F_C,Y_F_C)から座標(X_OFFSET,Y_OFFSET)の方向に伸縮後の距離だけ離れた座標を、今回の顔飾り付け画像の左上座標(X_S,Y_S)とする(図7参照)。また、顔領域の面積がデフォルト値で且つ顔領域傾き角度が0°のときの顔飾り付け画像につき、その傾き角度がステップS170で算出した傾き角度になるようにすると共に、その大きさがステップS180で算出した顔飾り付け画像になるように拡大・縮小する。そうしたうえで、その顔飾り付け画像の左上隅が左上座標(X_S,Y_S)と一致するように配置する。ここで、図10は、顔領域の面積がデフォルト値のときのの各顔飾り付け画像の配置位置を示したものである。この図10には、併せて各顔飾り付け画像のオフセット座標やオフセットサイズ、オフセット回転角度も例示した。
Next, the
次に、CPU51は、配置された顔飾り付け画像の配置位置が相応しい位置であるか否かを判定し(ステップS200)、飾り付け画像の配置位置が相応しい位置であると判定したときには、本ルーチンを終了する。具体的には、配置された顔飾り付け画像の全部の領域が写真画像領域の内部に配置されているときに、飾り付け画像の配置位置が相応しい位置であると判定する。一方、CPU51が、顔飾り付け画像の配置位置が相応し位置でないと判定したときには、予め定められた固定位置に顔飾り付け画像を配置し(ステップS210)、本ルーチンを終了する。このように、写真画像のどこに顔領域が存在していても、その顔領域に対する顔飾り付け画像の位置は予め定められた顔飾り付け画像情報に基づいて決定されるため、予め顔領域に対する顔飾り付け画像の相対座標を適切な位置に定め、この相対座標を飾り付け画像情報としてフラッシュメモリ54に記憶しておけば、顔飾り付け画像は顔領域に対して適切な位置に配置されることになる。
Next, the
飾り付け画像配置処理ルーチンにより顔飾り付け画像が自動配置されたのち、ユーザは、自動配置された顔飾り付け画像を上下左右ボタン24gを用いて、必要があれば任意の場所に移動し、OKボタン24hを押下して、顔飾り付け画像の配置位置を決定する。顔飾り付け画像は顔領域に対して適切な位置に配置されているため、顔飾り付け画像を顔領域とは無関係に定めた固定位置に配置する場合に比べて、顔飾り付け画像を配置し直すというユーザの操作を減らすことができる。
After the face decoration image is automatically arranged by the decoration image arrangement processing routine, the user moves the automatically arranged face decoration image to an arbitrary position using the up / down / left /
ここで、本実施形態の構成要素と本発明の構成要素との対応関係を明らかにする。本実施形態のディスプレイ22が画像表示手段に相当し、フラッシュメモリ54が顔飾り付け画像記憶手段及び相対位置情報記憶手段に相当し、コントローラ50が制御手段、顔領域検出手段、顔傾き角度検出手段、顔領域面積算出手段及び顔領域数カウント手段に相当し、印刷機構40が印刷実行手段に相当する。また、飾り付け画像情報が相対位置情報に相当する。なお、本実施形態ではフォトプリンタ10の動作の説明をすることにより本発明の画像処理装置の制御方法の一例も明らかにしている。
Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. The
以上詳述した本実施形態のフォトプリンタ10によれば、所定の写真画像の顔領域が検出され且つフラッシュメモリ54から所定の顔飾り付け画像が読み込まれたとき、所定の顔飾り付け画像の飾り付け画像情報をROM52から読み込み、飾り付け画像情報と写真画像の顔領域の座標位置とに基づいて、写真画像における顔飾り付け画像の表示位置を決定し、表示位置に顔飾り付け画像を表示する。このため、予め顔領域に対する顔飾り付け画像の相対位置を適切な位置に定めておけば、顔飾り付け画像は顔領域に対して適切な位置に配置されることになる。したがって、顔飾り付け画像を顔領域とは無関係に定めた固定位置に配置する場合に比べて、顔飾り付け画像を配置し直すというユーザの操作を減らすことができる。
According to the
また、所定の写真画像の顔領域の傾き角度を算出し、算出した顔領域の傾き角度に基づいて所定の顔飾り付け画像を回転させて顔飾り付け画像を表示する位置を決定するため、写真画像の顔領域の傾き角度に顔飾り付け画像を回転し直すというユーザの操作を減らすことができる。 In addition, the inclination angle of the face area of the predetermined photographic image is calculated, and the position of displaying the face decoration image is determined by rotating the predetermined face decoration image based on the calculated inclination angle of the face area. The user's operation of rotating the face decoration image again to the inclination angle of the face area can be reduced.
更に、所定の写真画像の顔領域の大きさを算出し、算出した顔領域の大きさに基づいて所定の顔飾り付け画像を表示する大きさを決定するため、写真画像の顔領域の大きさに応じて顔飾り付け画像の大きさを変更し直すというユーザの操作を減らすことができる。 Further, since the size of the face area of the predetermined photographic image is calculated, and the size of displaying the predetermined face decoration image is determined based on the calculated size of the face area, the size of the face area of the photographic image is determined. Accordingly, the user's operation of changing the size of the face decoration image again can be reduced.
更にまた、所定の写真画像の顔領域の数をカウントし、カウントした顔領域の数が2以上であるときには、複数の顔領域のうち最も面積の大きな顔領域を基準として顔飾り付け画像を表示する位置を決定するため、写真画像中に複数の顔領域があるときでも、選定された顔領域とユーザが顔飾り付け画像を付けたいと思っていた顔領域とが一致していれば、顔飾り付け画像を配置し直すというユーザの操作を減らすことができる。 Furthermore, the number of face areas of a predetermined photographic image is counted, and when the number of face areas counted is 2 or more, a face decoration image is displayed based on the face area having the largest area among the plurality of face areas. To determine the position, even if there are multiple face areas in the photo image, if the selected face area matches the face area that the user wanted to attach the face decoration image to, the face decoration image The user's operation of rearranging can be reduced.
そしてまた、所定の写真画像の顔領域の数が予め定めた上限値以上のときは、1つの顔領域を自動選定しても、その顔領域とユーザの意図した顔領域とが一致する確率が低いため、顔飾り付け画像を所定の固定位置に表示する。 In addition, when the number of face areas of a predetermined photographic image is equal to or greater than a predetermined upper limit, even if one face area is automatically selected, there is a probability that the face area matches the face area intended by the user. Since it is low, the face decoration image is displayed at a predetermined fixed position.
なお、本発明は上述した実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の態様で実施し得ることはいうまでもない。 It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that the present invention can be implemented in various modes as long as it belongs to the technical scope of the present invention.
例えば、上述した実施形態では、フォトプリンタ10は印刷機構40の下部にインクカートリッジ44を装着するオフキャリッジ式の印刷機構40としたが、キャリッジ43にインクカートリッジ44を装着するオンキャリッジ式の印刷機構としてもよい。また、インクジェット方式の印刷機構としたが、電子写真方式やドットインパクト方式などのプリンタに本発明を適用してもよいし、プリンタのほかにスキャナなどの機能を併せ持つ複合機に本発明を適用してもよい。
For example, in the above-described embodiment, the
上述した実施形態では、ステップS120で顔追従フラグが値1であると判定されたときには、常に顔認識処理を行うこととしたが、必ずしもそのようにする必要はない。例えば、顔認識処理ルーチンの終了前に今回の写真画像のファイル名に対応する形式で矩形の座標等をRAM53に記憶し、顔認識処理(ステップS130)を行う前に、顔認識処理を行おうとしている写真画像に対応する形式で矩形の座標等がRAM53に記憶されているか否かを判定するステップを加え、矩形の座標等がRAM53に記憶されていると判定したときには、顔認識処理(ステップS130)を行う代わりに、その写真画像に対応する矩形の座標等をRAM53から読み取ることとしてもよい。こうすれば、一度顔認識処理を行った写真画像を再度読み込むときには、再度顔認識処理を行わなくてもよいため、処理時間を短縮することができる。
In the above-described embodiment, the face recognition process is always performed when it is determined in step S120 that the face following flag is 1, but this is not necessarily required. For example, before the end of the face recognition processing routine, rectangular coordinates and the like are stored in the
上述した実施形態では、ステップS170で矩形の左上座標の位置に従って、90°毎に顔領域の傾き角度を定めることとしたが、顔領域検出処理で検出した目及び口の位置関係から顔領域の上下方向を検出し、写真画像の上下線を基準として左右の目を結ぶ直線が時計回り方向になす角度を顔領域の傾き角度として算出してもよいし、写真画像の上下線を基準として矩形の左上座標と矩形の右上座標とを結ぶ線分が時計回り方向になす角度を顔領域の傾き角度として算出してもよい。こうすれば、90°毎に算出した場合に比べて、より細かな角度で顔領域の傾き角度を算出することができるため、より細かな角度で顔飾り付け画像を回転することができる。 In the above-described embodiment, the inclination angle of the face area is determined every 90 ° according to the position of the upper left coordinate of the rectangle in step S170. However, the face area is detected based on the positional relationship between the eyes and mouth detected by the face area detection process. The vertical direction may be detected, and the angle formed by the straight line connecting the left and right eyes with respect to the upper and lower lines of the photographic image in the clockwise direction may be calculated as the tilt angle of the face area. An angle formed by a line segment connecting the upper left coordinates of the rectangle and the upper right coordinates of the rectangle in the clockwise direction may be calculated as the inclination angle of the face area. In this way, since the tilt angle of the face area can be calculated at a finer angle than when calculated every 90 °, the face decoration image can be rotated at a finer angle.
上述した実施形態では、ステップS200で配置された顔飾り付け画像の全部の領域が写真画像領域の内部に配置されているときに、飾り付け画像の配置位置が相応しい位置であると判定することとしたが、顔飾り付け画像毎に大きさの範囲を予め定め、顔飾り付け画像の大きさが予め定められた範囲内の大きさで配置されたときに飾り付け画像の配置位置が相応しい位置であると判定するものとしてもよい。例えば、顔飾り付け画像が夢マーク83や吹き出しマーク84であるときには、顔飾り付け画像を小さく表示すると文字が書き込めず、逆に大きく表示すると不要な手書き欄が増えてしまうことになる。このようなときには、ユーザが顔飾り付け画像の大きさを操作し直す必要があるため、本発明の効果を十分に得ることができない。
In the above-described embodiment, when all the areas of the face decoration image arranged in step S200 are arranged in the photographic image area, it is determined that the arrangement position of the decoration image is an appropriate position. The size range is determined in advance for each face decoration image, and when the size of the face decoration image is arranged within the predetermined range, it is determined that the arrangement position of the decoration image is an appropriate position It is good. For example, when the face decoration image is the
上述した実施形態では、顔飾り付け画像及び飾り付け画像情報はフラッシュメモリ54に記憶されているものとしたが、メモリースティックやCD−ROMなど持ち運び可能なリムーバルディスクに記憶されていてもよい。こうすれば、ユーザは様々な顔飾り付け画像を写真画像に配置することができる。
In the embodiment described above, the face decoration image and the decoration image information are stored in the
上述した実施形態では、写真画像に顔飾り付け画像を配置することとしたが、写真画像と顔飾り付け画像を合成し記憶する画像合成手段を備えていてもよい。こうすれば、ユーザは加工した写真画像を記憶することができる。 In the embodiment described above, the face decoration image is arranged on the photographic image. However, an image composition means for combining and storing the photographic image and the face decoration image may be provided. In this way, the user can store the processed photographic image.
10 フォトプリンタ、12 プリンタ本体、14 前面扉、18 メモリカードスロット、20 操作パネル、22 ディスプレイ、24 ボタン群、24a 電源ボタン、24b 表示切替ボタン、24c メニューボタン、24d キャンセルボタン、24e 印刷ボタン、24f 保存ボタン、24g 上下左右ボタン、24h OKボタン、30 カバー、32 カバー支持軸、34 窓、40 印刷機構、41 キャリッジベルト、42 ガイド、43 キャリッジ、44 インクカートリッジ、45 印刷ヘッド、46 搬送ローラ、48 給紙口、49 用紙ガイド、50 コントローラ、51 CPU、52 ROM、53 RAM、54 フラッシュメモリ、55 I/F、57 バス、81 フレームマーク、82 垂れ幕マーク、83 夢マーク、84 吹き出しマーク、85 涙マーク、86 怒りマーク、87 閃きマーク、88 メガネマーク、S 記録紙、M メモリーカード。 10 Photo Printer, 12 Printer Body, 14 Front Door, 18 Memory Card Slot, 20 Operation Panel, 22 Display, 24 Button Group, 24a Power Button, 24b Display Switch Button, 24c Menu Button, 24d Cancel Button, 24e Print Button, 24f Save button, 24g Up / down / left / right button, 24h OK button, 30 cover, 32 cover support shaft, 34 window, 40 printing mechanism, 41 carriage belt, 42 guide, 43 carriage, 44 ink cartridge, 45 print head, 46 transport roller, 48 Paper feed port, 49 Paper guide, 50 Controller, 51 CPU, 52 ROM, 53 RAM, 54 Flash memory, 55 I / F, 57 Bus, 81 Frame mark, 82 Banner mark, 83 Yumema Click, 84 balloon mark, 85 tears mark, 86 anger mark, 87 flash mark, 88 glasses mark, S recording paper, M memory card.
Claims (8)
顔に関する飾り付け画像である顔飾り付け画像を記憶する顔飾り付け画像記憶手段と、
顔領域に対する顔飾り付け画像の相対位置を定めた相対位置情報を記憶する相対位置情報記憶手段と、
所定の写真画像の顔領域を検出する顔領域検出手段と、
前記顔領域検出手段によって前記所定の写真画像の顔領域が検出され且つ前記顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたとき、該所定の顔飾り付け画像の相対位置情報を前記相対位置情報記憶手段から読み込み、前記相対位置情報と前記所定の写真画像の顔領域の絶対位置とに基づいて、前記所定の写真画像における該所定の顔飾り付け画像の表示位置を決定し、該表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御する制御手段と、
を備えた画像処理装置。 Image display means capable of displaying various images;
Face decoration image storage means for storing a face decoration image which is a decoration image related to the face;
Relative position information storage means for storing relative position information defining the relative position of the face decoration image with respect to the face area;
Face area detecting means for detecting a face area of a predetermined photographic image;
When the face area of the predetermined photographic image is detected by the face area detecting means and the predetermined face decoration image is read from the face decoration image storage means, the relative position information of the predetermined face decoration image is obtained as the relative position. Read from the information storage means, based on the relative position information and the absolute position of the face area of the predetermined photographic image, determine the display position of the predetermined face decoration image in the predetermined photographic image, Control means for controlling the image display means so that the predetermined face decoration image is displayed;
An image processing apparatus.
前記顔領域検出手段で検出された前記所定の写真画像の顔領域の前記写真画像の所定方向に対する傾き角度を算出する顔傾き角度算出手段、
を備え、
前記制御手段は、前記顔領域検出手段によって前記所定の写真画像の顔領域が検出され且つ前記顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたとき、該所定の顔飾り付け画像の相対位置情報を前記相対位置情報記憶手段から読み込み、前記所定の写真画像の顔領域の傾き角度に基づいて該所定の顔飾り付け画像を回転させると共に、前記相対位置情報と前記所定の写真画像の顔領域の絶対位置とに基づいて前記所定の写真画像における該所定の顔飾り付け画像の表示位置を決定し、該表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御する、
画像処理装置。 The image processing apparatus according to claim 1,
A face inclination angle calculating means for calculating an inclination angle of the face area of the predetermined photographic image detected by the face area detecting means with respect to a predetermined direction of the photographic image;
With
The control means detects the relative position of the predetermined face decoration image when the face area of the predetermined photographic image is detected by the face area detection means and the predetermined face decoration image is read from the face decoration image storage means. Information is read from the relative position information storage means, the predetermined face decoration image is rotated based on the inclination angle of the face area of the predetermined photo image, and the relative position information and the face area of the predetermined photo image are Determining the display position of the predetermined face decoration image in the predetermined photographic image based on the absolute position, and controlling the image display means so that the predetermined face decoration image is displayed at the display position;
Image processing device.
前記所定の写真画像の顔領域の大きさを算出する顔領域面積算出手段、
を備え、
前記制御手段は、前記顔領域検出手段によって前記所定の写真画像の顔領域が検出され且つ前記顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたとき、該所定の顔飾り付け画像の相対位置情報を前記相対位置情報記憶手段から読み込み、前記所定の写真画像の顔領域の大きさに基づいて該所定の顔飾り付け画像を表示する大きさを決定すると共に、前記相対位置情報と前記所定の写真画像の顔領域の絶対位置とに基づいて前記所定の写真画像における該所定の顔飾り付け画像の表示位置を決定し、前記表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御する、
画像処理装置。 The image processing apparatus according to claim 1, wherein:
A face area calculation means for calculating the size of the face area of the predetermined photographic image;
With
The control means detects the relative position of the predetermined face decoration image when the face area of the predetermined photographic image is detected by the face area detection means and the predetermined face decoration image is read from the face decoration image storage means. Information is read from the relative position information storage means, the size for displaying the predetermined face decoration image is determined based on the size of the face area of the predetermined photo image, and the relative position information and the predetermined photo are determined. The display position of the predetermined face decoration image in the predetermined photographic image is determined based on the absolute position of the face area of the image, and the image display means is configured to display the predetermined face decoration image at the display position. Control,
Image processing device.
前記顔領域検出手段で検出された前記顔領域の数をカウントする顔領域数カウント手段、
を備え、
前記制御手段は、前記顔領域検出手段によって前記所定の写真画像の顔領域が検出され且つ前記顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたのち、前記顔領域数カウント手段によって前記顔領域の数が2以上カウントされたとき、該所定の顔飾り付け画像の相対位置情報を前記相対位置情報記憶手段から読み込み、前記相対位置情報と前記所定の写真画像の2以上の顔領域の中から所定の規則に従って定めた顔領域の前記絶対位置とに基づいて前記所定の写真画像における該所定の顔飾り付け画像の表示位置を決定し、前記表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御する、
画像処理装置。 The image processing apparatus according to any one of claims 1 to 3,
Face area number counting means for counting the number of face areas detected by the face area detecting means;
With
The control means detects the face area of the predetermined photographic image by the face area detection means and reads the predetermined face decoration image from the face decoration image storage means, and then counts the face by the face area number counting means. When the number of areas is counted two or more, the relative position information of the predetermined face decoration image is read from the relative position information storage means, and the relative position information and the two or more face areas of the predetermined photographic image are read out. The display position of the predetermined face decoration image in the predetermined photographic image is determined based on the absolute position of the face area determined according to a predetermined rule, and the predetermined face decoration image is displayed at the display position. Controlling the image display means;
Image processing device.
前記顔領域検出手段で検出された前記顔領域の数が予め定めた上限値以上であるか否かを判定する顔領域数判定手段、
を備え、
前記制御手段は、前記顔領域検出手段によって前記所定の写真画像の顔領域が検出され且つ前記顔飾り付け画像記憶手段から所定の顔飾り付け画像が読み込まれたのち、前記顔領域数判定手段で前記顔領域の数が予め定めた上限値以上であると判定されたとき、該所定の顔飾り付け画像の表示位置を所定の固定位置に決定し、前記表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御する、
画像処理装置。 The image processing apparatus according to any one of claims 1 to 4,
Face area number determining means for determining whether or not the number of the face areas detected by the face area detecting means is equal to or greater than a predetermined upper limit;
With
The control means detects the face area of the predetermined photographic image by the face area detection means and reads the predetermined face decoration image from the face decoration image storage means, and then determines the face area by the face area number determination means. When it is determined that the number of areas is equal to or greater than a predetermined upper limit value, the display position of the predetermined face decoration image is determined as a predetermined fixed position, and the predetermined face decoration image is displayed at the display position. Controlling the image display means,
Image processing device.
印刷媒体に印刷を実行可能な印刷実行手段と、
を備えた印刷装置。 An image processing apparatus according to claim 1;
Print execution means capable of executing printing on a print medium;
Printing device with
(a)所定の写真画像の顔領域を検出するステップと、
(b)前記ステップ(a)で検出した顔領域に飾り付ける所定の顔飾り付け画像を前記顔飾り付け画像記憶手段から読み込み、該所定の顔飾り付け画像の相対位置情報を前記相対位置情報記憶手段から読み込み、該相対位置情報と前記所定の写真画像の顔領域の絶対位置とに基づいて、該所定の写真画像における該所定の顔飾り付け画像の表示位置を決定し、該表示位置に該所定の顔飾り付け画像が表示されるよう前記画像表示手段を制御するステップと、
を含む画像処理装置の制御方法。 Image display means capable of displaying various images, face decoration image storage means for storing a face decoration image that is a face decoration image, and relative position for storing relative position information that defines the relative position of the face decoration image with respect to the face area A control method for controlling an image processing apparatus provided with information storage means by computer software,
(A) detecting a face area of a predetermined photographic image;
(B) A predetermined face decoration image to be decorated on the face area detected in the step (a) is read from the face decoration image storage means, and relative position information of the predetermined face decoration image is read from the relative position information storage means, Based on the relative position information and the absolute position of the face area of the predetermined photographic image, a display position of the predetermined face decoration image in the predetermined photographic image is determined, and the predetermined face decoration image is set at the display position. Controlling the image display means so that is displayed;
A method for controlling an image processing apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007036372A JP2008203960A (en) | 2007-02-16 | 2007-02-16 | Image processor, its control method, program, and printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007036372A JP2008203960A (en) | 2007-02-16 | 2007-02-16 | Image processor, its control method, program, and printer |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008203960A true JP2008203960A (en) | 2008-09-04 |
Family
ID=39781438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007036372A Withdrawn JP2008203960A (en) | 2007-02-16 | 2007-02-16 | Image processor, its control method, program, and printer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008203960A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9519950B2 (en) | 2013-12-20 | 2016-12-13 | Furyu Corporation | Image generating apparatus and image generating method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002077592A (en) * | 2000-04-13 | 2002-03-15 | Fuji Photo Film Co Ltd | Image processing method |
JP2005242566A (en) * | 2004-02-25 | 2005-09-08 | Canon Inc | Image composition device and method |
JP2007004677A (en) * | 2005-06-27 | 2007-01-11 | Seiko Epson Corp | Comment layout device and album making device |
-
2007
- 2007-02-16 JP JP2007036372A patent/JP2008203960A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002077592A (en) * | 2000-04-13 | 2002-03-15 | Fuji Photo Film Co Ltd | Image processing method |
JP2005242566A (en) * | 2004-02-25 | 2005-09-08 | Canon Inc | Image composition device and method |
JP2007004677A (en) * | 2005-06-27 | 2007-01-11 | Seiko Epson Corp | Comment layout device and album making device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9519950B2 (en) | 2013-12-20 | 2016-12-13 | Furyu Corporation | Image generating apparatus and image generating method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5375894B2 (en) | Nail printing apparatus and printing control method | |
JP5141742B2 (en) | Nail printing apparatus and printing control method | |
US20090051946A1 (en) | Image area selecting method | |
JP4229072B2 (en) | Image processing device, printing device | |
JP2006231651A (en) | Printing apparatus | |
JP2007065940A (en) | Image selection device and image selection means | |
US20050128510A1 (en) | Method for selecting images for action by an imaging apparatus | |
JP4924279B2 (en) | Image processing apparatus, control method thereof, and program | |
US20020001010A1 (en) | Image printing system and printing method of the same | |
JP2012027848A (en) | Print control unit, printer and printing preview method | |
JP2008203960A (en) | Image processor, its control method, program, and printer | |
JP4660075B2 (en) | Multi-function printer, label printing method, program thereof, and printing system | |
JP2009234244A (en) | Printer, its control method and program | |
JP2009164871A (en) | Image forming device, control method thereof, and program | |
JP2014019055A (en) | Printing device, and printing method | |
JP6787298B2 (en) | Image processing device | |
JP4186116B2 (en) | Image processing apparatus and method | |
JP2008242650A (en) | Image processing apparatus, method for controlling the same, and program of the same | |
JP2008122772A (en) | Image display device, image display method, and its program | |
JP4765907B2 (en) | Image processing apparatus, control method thereof, and program thereof | |
JP4858049B2 (en) | Printer, control method thereof, and program thereof | |
JP2011104879A (en) | Image forming apparatus | |
JP2011166339A (en) | Image forming apparatus and program | |
JP3314737B2 (en) | Printer | |
JP5556331B2 (en) | Image processing apparatus, image processing method, and program thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090811 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110708 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110712 |
|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20110818 |