JP2011008643A - Image creation device, print sticker manufacturing method, program and storage medium - Google Patents

Image creation device, print sticker manufacturing method, program and storage medium Download PDF

Info

Publication number
JP2011008643A
JP2011008643A JP2009153042A JP2009153042A JP2011008643A JP 2011008643 A JP2011008643 A JP 2011008643A JP 2009153042 A JP2009153042 A JP 2009153042A JP 2009153042 A JP2009153042 A JP 2009153042A JP 2011008643 A JP2011008643 A JP 2011008643A
Authority
JP
Japan
Prior art keywords
eyelash
image
display
color
printing
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.)
Granted
Application number
JP2009153042A
Other languages
Japanese (ja)
Other versions
JP4833322B2 (en
Inventor
Naoki Matsuno
直樹 松野
Madoka Yuki
まどか 結城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bandai Namco Entertainment Inc
Original Assignee
Namco Bandai Games Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Namco Bandai Games Inc filed Critical Namco Bandai Games Inc
Priority to JP2009153042A priority Critical patent/JP4833322B2/en
Priority to CN201010216241.1A priority patent/CN101938591B/en
Publication of JP2011008643A publication Critical patent/JP2011008643A/en
Application granted granted Critical
Publication of JP4833322B2 publication Critical patent/JP4833322B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)
  • Cameras Adapted For Combination With Other Photographic Or Optical Apparatuses (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform effective image processing on eyes of a subject by a method different from correction of skin color.SOLUTION: In the sticker printer, a face image of a user is captured by use of a camera. The eyes of the user is detected from the captured face image. Fitting processing is performed on the detected eyes to fit an eyelash texture to the detected eyes, to identify an eyelash drawing position of the user in the captured image. A predetermined eyelash image color is added to the identified eyelash drawing position, to generate a display image with an eyelash image, to be displayed on a display 1002.

Description

本発明は、カメラと表示装置とを備えた画像生成装置等に関する。   The present invention relates to an image generation device including a camera and a display device.

カメラを制御してユーザを撮影し、撮影画像を補正する等する画像生成装置が知られている。なかでも、ユーザをカメラで撮影して撮影画像をディスプレイに表示させるとともに、シール紙に撮影画像を印刷するシールプリント機や写真シール作成装置などと呼ばれる装置は手軽に写真シールが得られることから人気がある。特に、明度補正を行う等して肌の色を奇麗にみせたり、髪にウィッグをつけたり、目のサイズを変えるなどといった機能を有する装置は女子学生に好評である。例えば、特許文献1には、撮影した被写体の目の周辺部分を認識して、明度補正を行ってくっきりさせる装置が記載されている。   2. Description of the Related Art Image generation apparatuses that control a camera to photograph a user and correct a captured image are known. Of these, devices such as sticker printing machines and photo sticker creation devices that print images on sticker paper while the user takes a picture with a camera and displays the shot image are popular because they can easily obtain photo stickers. There is. In particular, an apparatus having functions such as performing lightness correction to show the skin color beautifully, putting wigs on the hair, and changing the size of the eyes is popular with female students. For example, Patent Document 1 describes an apparatus that recognizes a peripheral portion of an eye of a photographed subject and sharpens it by performing brightness correction.

特開2006−228036号公報JP 2006-228036 A

以上の課題を解決するための第1の形態は、
カメラ(例えば図1のカメラ1001)と表示装置(例えば図1のディスプレイ1002)とを備えた画像生成装置(例えば図1のシールプリント機1000)であって、
前記カメラを制御してユーザを撮影する撮影制御手段(例えば図13の撮影制御部1211;図15のステップB1)と、
前記カメラにより撮影された撮影画像において睫毛描画位置を特定する睫毛描画位置特定手段(例えば図13の睫毛描画処理部1213;図15のステップB7、図16のステップC1)と、
前記撮影画像中の前記睫毛描画位置特定手段により特定された睫毛描画位置に所与の睫毛画像を描画する睫毛描画手段(例えば図13の睫毛描画処理部1213;図15のステップB7及びB9、図16のステップC5〜C21)と、
前記睫毛描画手段により前記睫毛画像が描画された撮影画像を前記表示装置に表示させる表示制御手段(例えば図13の撮影制御部1211;図15のステップB13)と、
を備えた画像生成装置である。
The first form for solving the above problems is:
An image generation apparatus (for example, a sticker printing machine 1000 in FIG. 1) including a camera (for example, the camera 1001 in FIG. 1) and a display device (for example, the display 1002 in FIG. 1),
Shooting control means (for example, shooting control unit 1211 in FIG. 13; step B1 in FIG. 15) for shooting the user by controlling the camera;
Eyelash drawing position specifying means (for example, eyelash drawing processing unit 1213 in FIG. 13; step B7 in FIG. 15, step C1 in FIG. 16) for specifying the eyelash drawing position in the photographed image taken by the camera;
Eyelash drawing means for drawing a given eyelash image at the eyelash drawing position specified by the eyelash drawing position specifying means in the photographed image (for example, the eyelash drawing processing unit 1213 in FIG. 13; steps B7 and B9 in FIG. 15, FIG. 16 steps C5 to C21),
Display control means (for example, the imaging control unit 1211 in FIG. 13; step B13 in FIG. 15) for causing the display device to display a captured image in which the eyelash image is drawn by the eyelash drawing means;
Is an image generating apparatus.

また、他の形態として、
カメラを制御してユーザを撮影する撮影制御ステップ(例えば図15のステップB1)と、
前記カメラにより撮影された撮影画像において睫毛描画位置を特定する睫毛描画位置特定ステップ(例えば図15のステップB7、図16のステップC1)と、
前記撮影画像中の前記睫毛描画位置特定ステップにおいて特定された睫毛描画位置に所与の睫毛画像を描画する睫毛描画ステップ(例えば図15のステップB7及びB9、図16のステップC5〜C21)と、
前記睫毛描画ステップにおいて前記睫毛画像が描画された撮影画像を前記表示装置に表示させる表示制御ステップ(例えば図15のステップB13)と、
前記睫毛画像が描画された前記撮影画像を前記印刷装置で印刷させる印刷制御ステップと(例えば図14のステップA7)、
を含むプリントシール製造方法を構成してもよい。
As another form,
A shooting control step (for example, step B1 in FIG. 15) for controlling the camera and shooting the user;
An eyelash drawing position specifying step (for example, step B7 in FIG. 15 and step C1 in FIG. 16) for specifying an eyelash drawing position in a photographed image taken by the camera;
An eyelash drawing step (for example, steps B7 and B9 in FIG. 15 and steps C5 to C21 in FIG. 16) for drawing a given eyelash image at the eyelash drawing position specified in the eyelash drawing position specifying step in the captured image;
A display control step (for example, step B13 in FIG. 15) for causing the display device to display a captured image in which the eyelash image is drawn in the eyelash drawing step;
A printing control step of printing the photographed image on which the eyelash image is drawn by the printing apparatus (for example, step A7 in FIG. 14);
You may comprise the print sticker manufacturing method containing these.

また、他の形態として、
カメラと表示装置とを備えた装置に内蔵されたコンピュータを、
前記カメラを制御してユーザを撮影する撮影制御手段、
前記カメラにより撮影された撮影画像において睫毛描画位置を特定する睫毛描画位置特定手段、
前記撮影画像中の前記睫毛描画位置特定手段により特定された睫毛描画位置に所与の睫毛画像を描画する睫毛描画手段、
前記睫毛描画手段により前記睫毛画像が描画された撮影画像を前記表示装置に表示させる表示制御手段、
として機能させるためのプログラム(例えば図13のシール作成プログラム1701)を構成してもよい。さらには、当該プログラムを記憶したコンピュータ読み取り可能な記憶媒体(例えば図13の記憶部1700)を構成することも可能である。
As another form,
A computer built in a device equipped with a camera and a display device,
Photographing control means for controlling the camera and photographing the user;
Eyelash drawing position specifying means for specifying the eyelash drawing position in the photographed image taken by the camera;
Eyelash drawing means for drawing a given eyelash image at the eyelash drawing position specified by the eyelash drawing position specifying means in the captured image;
Display control means for displaying on the display device a photographed image in which the eyelash image is drawn by the eyelash drawing means;
A program (for example, a seal creation program 1701 in FIG. 13) may be configured. Furthermore, it is also possible to configure a computer-readable storage medium (for example, the storage unit 1700 in FIG. 13) that stores the program.

この第1の形態等によれば、カメラにより撮影された撮影画像において睫毛描画位置を特定し、その睫毛描画位置に睫毛画像を描画する。睫毛画像を描画することによってマスカラのような効果や、つけ睫毛のような効果が発揮される。これにより、肌の色の補正とは違った効果を目の部分に施すことができる。   According to the first embodiment and the like, the eyelash drawing position is specified in the photographed image taken by the camera, and the eyelash image is drawn at the eyelash drawing position. By drawing an eyelash image, an effect like a mascara or an effect like a false eyelash is exhibited. Thereby, an effect different from the correction of the skin color can be applied to the eye part.

また、第2の形態として、第1の形態の画像生成装置を、
前記睫毛描画手段が、
前記睫毛描画位置特定手段により特定された睫毛描画位置に基づいて、前記撮影画像中の前記睫毛画像の描画対象画素を判定する描画対象画素判定手段(例えば図13の睫毛描画処理部1213;図16のステップC11)と、
前記描画対象画素の色が、前記睫毛画像の色の着色を許容する条件として予め定められた色条件を満たす場合に、当該描画対象画素に前記睫毛画像の色を着色する着色手段(例えば図13の睫毛描画処理部1213;図16のステップC15、C17;Yes→ステップC19)と、
を有するように構成してもよい。
As a second form, the image generation apparatus of the first form is
The eyelash drawing means
Drawing target pixel determining means for determining a drawing target pixel of the eyelash image in the photographed image based on the eyelash drawing position specified by the eyelash drawing position specifying means (for example, the eyelash drawing processing unit 1213 in FIG. 13; FIG. 16). Step C11),
When the color of the drawing target pixel satisfies a predetermined color condition as a condition for allowing coloring of the color of the eyelash image, a coloring unit (for example, FIG. 13) colors the color of the eyelash image on the drawing target pixel. Eyelash drawing processing unit 1213; Steps C15 and C17 in FIG. 16; Yes → Step C19),
You may comprise so that it may have.

この第2の形態によれば、特定された睫毛描画位置に基づいて、睫毛画像の描画対象画素が判定され、その画素の色が睫毛画像の色の着色を許容する色条件を満たす場合に、睫毛画像の色が着色される。これにより、白目の部分から睫毛が生えてしまっているような画像や、目にかかって撮影された髪の毛の上(手前)に睫毛が描画されて髪の毛と睫毛との前後位置関係が矛盾する画像といった違和感のある画像となることを防止できる。色条件としては、例えば第3の形態として、肌の色を判別するための色条件が少なくとも設定されているようにすると好適である。肌の色を判別するための色条件は、例えば、予め肌の色として取り得る色範囲(RGB値の範囲)を設定することとしてもよいし、撮影画像中のユーザの目の周辺の色からサンプリング/平均した色を中心とする所定の色範囲を設定することとしてもよい。   According to this second aspect, when the pixel to be drawn of the eyelash image is determined based on the specified eyelash drawing position and the color of the pixel satisfies a color condition that allows coloring of the color of the eyelash image, The color of the eyelash image is colored. As a result, the image of eyelashes growing from the white of the eye, or the image of eyelashes drawn on the front (front) of the hair taken with the eyes and the front-rear positional relationship between the hair and the eyelashes contradicts each other It is possible to prevent the image from becoming uncomfortable. As the color condition, for example, as the third embodiment, it is preferable that at least a color condition for determining the skin color is set. The color condition for discriminating the skin color may be, for example, setting a color range (RGB value range) that can be taken as the skin color in advance, or from the color around the user's eyes in the captured image. A predetermined color range centered on the sampled / averaged color may be set.

また、第4の形態として、第1の形態の画像生成装置において、
前記睫毛描画手段が、
前記睫毛描画位置特定手段により特定された睫毛描画位置に基づいて、前記撮影画像中の前記睫毛画像の描画対象画素を判定する描画対象画素判定手段(例えば図13の睫毛描画処理部1213)と、
前記描画対象画素の色が、前記睫毛画像の色の着色を許容しない条件として予め定められた色条件を満たさない場合に当該描画対象画素に前記睫毛画像の色を着色する着色手段(例えば図13の睫毛描画処理部1213)と、
を有するように構成してもよい。
Further, as a fourth form, in the image generation apparatus of the first form,
The eyelash drawing means
Drawing target pixel determining means (for example, eyelash drawing processing unit 1213 in FIG. 13) for determining a drawing target pixel of the eyelash image in the photographed image based on the eyelash drawing position specified by the eyelash drawing position specifying means;
When the color of the drawing target pixel does not satisfy a predetermined color condition as a condition that does not allow coloring of the color of the eyelash image, a coloring unit (for example, FIG. 13) colors the color of the eyelash image on the drawing target pixel. Eyelash drawing processing unit 1213),
You may comprise so that it may have.

この第4の形態の場合も第2の形態と同様の作用効果が発揮される。この第4の形態の色条件としては、例えば第5の形態として、白目部分を判別するための色条件が少なくとも設定されているようにすると好適である。白目部分を判別するための色条件は、例えば、予め白目の色として取り得る範囲(RGB値の範囲)を設定することとしてもよいし、撮影画像中のユーザの白目の部分からサンプリング/平均した色を中心とする所定の色範囲を設定することとしてもよい。   In the case of the fourth embodiment, the same effect as that of the second embodiment is exhibited. As the color condition of the fourth mode, for example, as the fifth mode, it is preferable that at least a color condition for discriminating a white-eye portion is set. The color condition for discriminating the white-eye portion may be set, for example, in advance as a range (RGB value range) that can be taken as the white-eye color, or sampled / averaged from the white-eye portion of the user in the captured image A predetermined color range centered on the color may be set.

また、第6の形態として、第1〜第5の何れかの形態の画像生成装置において、
印刷装置(例えば図1の印刷装置1008)と、
前記睫毛画像が描画された前記撮影画像を前記印刷装置で印刷させる印刷制御手段(例えば図13の印刷制御部1217)と、
を更に備え、
前記表示装置の表示画面は前記印刷装置で印刷される印刷用紙の大きさより大きな画面であり、
前記睫毛画像には、印刷用睫毛画像(例えば図12の印刷用睫毛テクスチャ)と、前記印刷用睫毛画像よりも各繊毛の太さが細く、及び/又は、前記印刷用睫毛画像よりも繊毛の密度が低く、描かれた表示用睫毛画像(例えば図12の表示用睫毛テクスチャ)とがあり、
前記睫毛描画手段が、
前記撮影画像に前記表示用睫毛画像を描画する表示用睫毛描画手段(例えば図13の睫毛描画処理部1213;図15のステップB7)と、
前記撮影画像に前記印刷用睫毛画像を描画する印刷用睫毛描画手段(例えば図13の睫毛描画処理部1213;図18のステップE3)と、
を有し、
前記表示制御手段が、前記表示用睫毛描画手段により前記表示用睫毛画像が描画された撮影画像を前記表示装置に表示させ、
前記印刷制御手段が、前記印刷用睫毛描画手段により前記印刷用睫毛画像が描画された撮影画像を前記印刷装置で印刷させる、
画像生成装置を構成してもよい。
Further, as a sixth mode, in the image generation device according to any one of the first to fifth modes,
A printing device (eg, the printing device 1008 of FIG. 1);
Print control means (for example, the print control unit 1217 in FIG. 13) that causes the printing apparatus to print the captured image on which the eyelash image is drawn;
Further comprising
The display screen of the display device is a screen larger than the size of the printing paper printed by the printing device,
The eyelash image includes a printing eyelash image (for example, the printing eyelash texture of FIG. 12), and each cilia is thinner than the printing eyelash image, and / or has a cilia more than the printing eyelash image. The density is low, and there is a drawn display eyelash image (for example, the display eyelash texture of FIG. 12),
The eyelash drawing means
Display eyelash drawing means for drawing the display eyelash image on the captured image (for example, eyelash drawing processing unit 1213 in FIG. 13; step B7 in FIG. 15);
Printing eyelash drawing means for drawing the printing eyelash image on the photographed image (for example, the eyelash drawing processing unit 1213 in FIG. 13; step E3 in FIG. 18);
Have
The display control means causes the display device to display a captured image in which the display eyelash image is drawn by the display eyelash drawing means;
The printing control means causes the printing apparatus to print a captured image in which the printing eyelash image is drawn by the printing eyelash drawing means;
An image generation apparatus may be configured.

この第6の形態によれば、表示装置の表示画面は印刷装置で印刷される印刷用紙の大きさより大きな画面である。そのため、撮影されたユーザの顔画像の大きさは、印刷用紙で見るよりも、表示装置で見た方が大きい。一方、睫毛画像には、印刷用睫毛画像と、印刷用睫毛画像よりも各繊毛の太さが細く、及び/又は、前記印刷用睫毛画像よりも繊毛の密度が低く、描かれた表示用睫毛画像とがあり、表示されるのは表示用睫毛画像が描画された画像であり、印刷されるのは印刷用睫毛画像が描画された画像である。   According to the sixth embodiment, the display screen of the display device is a screen larger than the size of the printing paper printed by the printing device. Therefore, the size of the photographed user's face image is larger on the display device than on the printing paper. On the other hand, the eyelash image includes a printing eyelash image, and the thickness of each cilia is smaller than that of the printing eyelash image, and / or the density of the cilia is lower than that of the printing eyelash image, and the display eyelash drawn. There is an image, and what is displayed is an image in which a display eyelash image is drawn, and what is printed is an image in which a print eyelash image is drawn.

もし仮に、印刷用睫毛画像の各繊毛の太さ及び密度を、表示用睫毛画像に合わせて同一にした場合には、表示された顔画像では睫毛の太さ/密度が適切に見えるが、印刷された顔画像では細く/密度が低く見える。逆に、表示用睫毛画像の各繊毛の太さ及び密度を、印刷用睫毛画像に合わせて同一にした場合には、印刷された顔画像では睫毛の太さ/密度が適切に見えるが、表示された顔画像では太く/密度が高く見える。表示装置の表示画面が印刷用紙の大きさより大きいため、表示される顔画像の大きさと印刷される顔画像の大きさとが異なるからである。本形態によれば、このような違和感が生じることがない。   If the thickness and density of each cilia in the print eyelash image are the same to match the display eyelash image, the thickness / density of the eyelashes appears to be appropriate in the displayed face image. The face image that appears is thin / low density. Conversely, if the thickness and density of each cilia in the display eyelash image are the same as the print eyelash image, the thickness / density of the eyelashes appears appropriate in the printed face image. The face image is thicker / higher in density. This is because the display screen of the display device is larger than the size of the printing paper, so that the size of the displayed face image is different from the size of the printed face image. According to this embodiment, such a sense of incongruity does not occur.

また、第7の形態として、第6の形態の画像生成装置において、
前記表示装置の表示画面に対するユーザの消去軌跡(例えば図12の消去操作軌跡)の入力操作に従って、前記表示装置に表示制御された撮影画像から前記表示用睫毛画像を部分的に消去する表示用睫毛部分消去手段(例えば図13の画像編集部1215;図17のステップD11)と、
前記消去軌跡に従って、前記印刷用睫毛画像が描画された撮影画像から前記印刷用睫毛画像を部分的に消去する印刷用睫毛部分消去手段(例えば図13の睫毛描画処理部1213;図19のステップF17)と、
を更に備え、
前記印刷制御手段が、前記印刷用睫毛部分消去手段により部分的に前記印刷用睫毛画像が消去された撮影画像を前記印刷装置で印刷させる、
画像生成装置を構成してもよい。
Further, as a seventh form, in the image generation apparatus of the sixth form,
Display eyelashes that partially erase the display eyelash image from the captured image controlled to be displayed on the display device in accordance with a user's input operation of an erase locus (for example, the erase operation locus in FIG. 12) on the display screen of the display device. Partial erasing means (for example, the image editing unit 1215 in FIG. 13; step D11 in FIG. 17);
In accordance with the erasing locus, a printing eyelash part erasing unit (for example, the eyelash drawing processing unit 1213 in FIG. 13; step F17 in FIG. 19) for partially erasing the printing eyelash image from the photographed image on which the printing eyelash image is drawn. )When,
Further comprising
The printing control means causes the printing apparatus to print a captured image in which the printing eyelash image is partially erased by the printing eyelash part erasing means;
An image generation apparatus may be configured.

この第7の形態によれば、ユーザは、表示装置の表示画面に対する消去軌跡の入力操作によって、撮影画像に描画された表示用睫毛画像を部分的に消去することが可能となる。一方、印刷される印刷用睫毛画像についても、ユーザが表示用睫毛画像に対して入力操作した消去軌跡に従って、部分的な消去が実行される。従って、ユーザが行った表示用睫毛画像に対する消去操作を、印刷用睫毛画像に対しても反映することができる。   According to the seventh aspect, the user can partially erase the display eyelash image drawn on the photographed image by an input operation of an erasing locus on the display screen of the display device. On the other hand, the printed eyelash image to be printed is also partially erased in accordance with the erase trajectory input by the user to the display eyelash image. Therefore, the erasing operation for the display eyelash image performed by the user can be reflected on the print eyelash image.

また、第8の形態として、第1〜第7の何れかの形態の画像生成装置において、
前記睫毛描画位置特定手段が、前記睫毛描画位置として前記撮影画像中のユーザのアイライン部分(例えば図24のアイラインEL)を特定し、
予め定められた睫毛パターン画像を、前記アイライン部分の形状に合致させるように変形させて前記睫毛画像を生成する睫毛画像生成手段(例えば図13の睫毛描画処理部1213)を更に備えた、
画像生成装置を構成してもよい。
Further, as an eighth aspect, in the image generation apparatus according to any one of the first to seventh aspects,
The eyelash drawing position specifying means specifies the user's eyeline part (for example, eyeline EL in FIG. 24) in the captured image as the eyelash drawing position,
It further comprises eyelash image generation means (for example, eyelash drawing processing unit 1213 in FIG. 13) for generating the eyelash image by deforming a predetermined eyelash pattern image so as to match the shape of the eyeline part.
An image generation apparatus may be configured.

この第8の形態によれば、睫毛パターン画像が予め定められ、その睫毛パターン画像を、撮影画像中のユーザのアイライン部分の形状に合致させるように変形することで睫毛画像が生成される。これにより、睫毛パターン画像を類型化することが可能となる。例えば、繊毛の描画位置が異なる睫毛パターン画像(例えば目頭から目尻にかけて満遍なく繊毛を描いた睫毛パターン画像と、目尻寄りだけに繊毛を描いた睫毛パターン画像)や、繊毛の長さや密度を変えた睫毛パターン画像といった具合に、種類別に睫毛パターン画像を用意する。ユーザにより好みの種類の睫毛パターン画像が選択されれば、そのユーザのアイライン部分の形状に応じた適切な睫毛画像が生成されることとなる。   According to the eighth embodiment, the eyelash pattern image is determined in advance, and the eyelash pattern image is generated by deforming the eyelash pattern image so as to match the shape of the user's eyeline portion in the captured image. Thereby, it becomes possible to classify the eyelash pattern image. For example, eyelash pattern images with different cilia drawing positions (for example, an eyelash pattern image in which cilia are uniformly drawn from the top of the eye to the corner of the eye and an eyelash pattern image in which the cilia is drawn only near the corner of the eye), and eyelashes with different cilia length and density The eyelash pattern image is prepared for each type, such as a pattern image. If the user selects a desired type of eyelash pattern image, an appropriate eyelash image corresponding to the shape of the user's eyeline portion is generated.

この場合、第9の形態として、前記睫毛画像生成手段が、前記アイライン部分の長さに応じて前記睫毛パターン画像を拡縮して前記睫毛画像を生成するようにするとより好適である。   In this case, as a ninth mode, it is more preferable that the eyelash image generation unit generates the eyelash image by scaling the eyelash pattern image according to the length of the eyeline portion.

また、第10の形態として、第1〜第9の何れかの形態の画像生成装置において、
前記撮影画像中の前記ユーザの目の縦横比率又はその度合を判定する縦横比判定手段を更に備え、
前記睫毛描画手段は、前記縦横比判定手段の判定結果に基づいて繊毛の長短及び/又は密度を可変させて睫毛画像を描画する、
画像生成装置を構成することとしてもよい。
Further, as a tenth aspect, in the image generation apparatus according to any one of the first to ninth aspects,
Aspect ratio determining means for determining the aspect ratio or degree of the eyes of the user in the captured image,
The eyelash drawing means draws an eyelash image by varying the length and / or density of cilia based on the determination result of the aspect ratio determination means.
An image generation apparatus may be configured.

この第10の形態によれば、目が細いユーザに対しては短めの睫毛を、目が大きいユーザに対しては長めの睫毛を描くといった具合に、目の横方向の長さに対する縦方向の長さの割合の違い(いわゆる目の細さ・大きさ)に応じて、繊毛の長短や密度の異なる睫毛画像を描画することができる。   According to the tenth aspect, the eyelashes are drawn in a vertical direction with respect to the lateral length of the eyes, such as drawing short eyelashes for users with thin eyes and drawing long eyelashes for users with large eyes. According to the difference in length ratio (so-called fineness / size of eyes), it is possible to draw eyelash images having different lengths and densities of cilia.

また、第11の形態として、第1〜第10の何れかの形態の画像生成装置において、
前記睫毛描画位置特定手段により特定された前記睫毛描画位置及びその近傍位置の色に基づいて、前記睫毛画像の色を決定する睫毛色決定手段(例えば図13の睫毛描画処理部1213)を更に備え、
前記睫毛画像生成手段が、前記睫毛色決定手段により決定された色で前記睫毛画像を描画する、
画像生成装置を構成してもよい。
Further, as an eleventh aspect, in the image generation apparatus according to any one of the first to tenth aspects,
The eyelash color determining means (for example, the eyelash drawing processing unit 1213 in FIG. 13) further determines the color of the eyelash image based on the color of the eyelash drawing position specified by the eyelash drawing position specifying means and the color in the vicinity thereof. ,
The eyelash image generation means draws the eyelash image in the color determined by the eyelash color determination means;
An image generation apparatus may be configured.

この第11の形態によれば、睫毛描画位置及びその近傍位置の色に基づいて、睫毛画像の色が決定されるため、より違和感のない睫毛画像とすることが可能となる。具体的には、例えば、睫毛描画位置やその近傍の暗色系の色(明度が所定の暗色条件を満たす色)を抽出し、その平均色を睫毛画像の色とする方法等が考えられる。   According to the eleventh aspect, since the color of the eyelash image is determined based on the eyelash drawing position and the color in the vicinity of the eyelash drawing position, it is possible to obtain an eyelash image with a more uncomfortable feeling. Specifically, for example, a method of extracting a dark color color (a color whose brightness satisfies a predetermined dark color condition) in the vicinity of the eyelash drawing position and the vicinity thereof, and setting the average color as the color of the eyelash image is conceivable.

シールプリント機の概略構成図。1 is a schematic configuration diagram of a seal printing machine. シールプリント機の表示画面の一例を示す図。The figure which shows an example of the display screen of a sticker printing machine. シールプリント機の表示画面の一例を示す図。The figure which shows an example of the display screen of a sticker printing machine. シールプリント機の表示画面の一例を示す図。The figure which shows an example of the display screen of a sticker printing machine. 画像生成で使用するレイヤーの説明図。Explanatory drawing of the layer used by image generation. フィッティング処理の説明図。Explanatory drawing of a fitting process. 睫毛の描画画像の一例を示す図。The figure which shows an example of the drawing image of eyelashes. 睫毛の描画画像の失敗例を示す図。The figure which shows the example of failure of the drawing image of eyelashes. 睫毛の描画画像の失敗例を示す図。The figure which shows the example of failure of the drawing image of eyelashes. 落書き用画面の一例を示す図。The figure which shows an example of the screen for graffiti. 睫毛の消去操作の一例を示す図。The figure which shows an example of erase operation of eyelashes. 表示用睫毛テクスチャと印刷用睫毛テクスチャの説明図。Explanatory drawing of the eyelash texture for a display, and the eyelash texture for printing. シールプリント機の機能構成を示すブロック図。The block diagram which shows the function structure of a sticker printing machine. シール作成処理の流れを示すフローチャート。The flowchart which shows the flow of a sticker creation process. 撮影時処理の流れを示すフローチャート。The flowchart which shows the flow of a process at the time of imaging | photography. 表示用睫毛描画処理の流れを示すフローチャート。The flowchart which shows the flow of the eyelash drawing process for a display. 画像編集処理の流れを示すフローチャート。The flowchart which shows the flow of an image editing process. 印刷時処理の流れを示すフローチャート。The flowchart which shows the flow of the process at the time of printing. 印刷用睫毛描画処理の流れを示すフローチャート。The flowchart which shows the flow of the eyelash drawing process for printing. 携帯型ゲーム装置の概略外観図。1 is a schematic external view of a portable game device. 携帯型ゲーム装置の表示画面の一例を示す図。The figure which shows an example of the display screen of a portable game device. 携帯型ゲーム装置の表示画面の一例を示す図。The figure which shows an example of the display screen of a portable game device. 携帯型ゲーム装置の表示画面の一例を示す図。The figure which shows an example of the display screen of a portable game device. 睫毛描画処理の変形例の説明図。Explanatory drawing of the modification of an eyelash drawing process. 変形例における落書き時画面の一例を示す図。The figure which shows an example of the screen at the time of graffiti in a modification. 変形例における落書き時画面の一例を示す図。The figure which shows an example of the screen at the time of graffiti in a modification. 睫毛テクスチャの変形例を示す図。The figure which shows the modification of an eyelash texture.

以下、図面を参照して、本発明の好適な実施形態を説明する。尚、以下では、本発明を画像生成装置の一種であるシールプリント機に適用した場合を例に挙げて説明するが、本発明の適用可能な実施形態がこれに限定されるものではない。   Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. In the following, a case where the present invention is applied to a seal printing machine, which is a kind of image generation apparatus, will be described as an example. However, embodiments to which the present invention can be applied are not limited thereto.

1.概略構成
図1は、本実施形態におけるシールプリント機1000の外観を示す概略構成図である。シールプリント機1000は、画像生成装置の一種である。ユーザの身長より高い高さの筐体の正面に、撮影用のカメラ1001と、ディスプレイ1002と、スピーカ1003と、ユーザの携帯電話機と赤外線通信を行うための赤外線通信部1004と、ゲーム対価であるコインを投入するためのコイン投入口1005と、作成したシール紙を払い出すためのシール払出口1006とが設けられている。
1. Schematic Configuration FIG. 1 is a schematic configuration diagram showing the appearance of a sticker printing machine 1000 according to this embodiment. The sticker printing machine 1000 is a kind of image generation apparatus. On the front of the casing having a height higher than the height of the user, a camera 1001, a display 1002, a speaker 1003, an infrared communication unit 1004 for performing infrared communication with the user's mobile phone, and game consideration. A coin insertion slot 1005 for inserting coins and a sticker outlet 1006 for paying out the created sticker paper are provided.

カメラ1001は、CCD型やCMOS型といった撮像素子を有する電子スチルカメラであり、筐体の正面に立ったユーザを正面方向から撮影し得る位置に設けられている。   The camera 1001 is an electronic still camera having an image sensor such as a CCD type or a CMOS type, and is provided at a position where a user standing in front of the housing can be photographed from the front direction.

ディスプレイ1002は、ユーザの腰から胸元の高さに、表示面がユーザに対してほぼ正対するように設けられている。また、ディスプレイ1002には、表示領域全体に亘ってタッチパネルが一体的に形成されている。タッチパネルは、感圧式や光学式、静電式、電磁誘導式等の検出原理によって、タッチ操作位置を、例えばディスプレイ1002を構成するドット単位で検出する。ユーザは、付属のタッチペン1007や手指等によるディスプレイ1002上のタッチ操作によって、各種の操作入力を行うことができる。   The display 1002 is provided from the user's waist to the chest level so that the display surface faces the user. In addition, a touch panel is integrally formed on the display 1002 over the entire display area. The touch panel detects the touch operation position in units of dots constituting the display 1002, for example, based on a detection principle such as a pressure-sensitive type, an optical type, an electrostatic type, or an electromagnetic induction type. The user can perform various operation inputs by touch operations on the display 1002 with the attached touch pen 1007 or fingers.

また、シールプリント機1000の内部には、CPUやROM、RAM、ICメモリ等が実装されたシステム基板1009や、画像をシール紙に印刷する印刷装置1008等が備えられている。システム基板1009に実装されているCPUは、ICメモリ等から読み出したプログラムやデータ、タッチパネルからの操作信号等に基づいて種々の処理を実行し、各種画面の画像信号及び各種音声の音信号を生成する。そして、生成した画像信号をディスプレイ1002に出力して該当する表示画面を表示させるとともに、音信号をスピーカ1003に出力して該当する音声を出力させる。   The sticker printing machine 1000 includes a system board 1009 on which a CPU, a ROM, a RAM, an IC memory, and the like are mounted, a printing device 1008 that prints an image on sticker paper, and the like. The CPU mounted on the system board 1009 executes various processes based on programs and data read from the IC memory and the like, operation signals from the touch panel, etc., and generates image signals for various screens and sound signals for various sounds. To do. Then, the generated image signal is output to the display 1002 to display a corresponding display screen, and the sound signal is output to the speaker 1003 to output the corresponding sound.

シールプリント機1000では、カメラ1001による撮影画像を所定のシール紙に印刷した写真シールが作成される。本実施形態で特徴的であることの1つは、撮影画像中のユーザの睫毛部分に自動的に睫毛画像が描画されて、シール紙に印刷されることである。   In the sticker printing machine 1000, a photo sticker in which an image taken by the camera 1001 is printed on a predetermined sticker paper is created. One of the features of the present embodiment is that the eyelash image is automatically drawn on the eyelash portion of the user in the captured image and printed on the sticker paper.

2.写真シール作成の原理
次に、シールプリント機1000における写真シール作成の原理について説明する。先ず、ユーザは、シールプリント機1000において、所定量の硬貨(コイン)をコイン投入口1005に投入する。すると、シールプリント機1000は、図2に示すような表示画面10をディスプレイ1002に表示させる。
2. Next, the principle of creating a photo sticker in the stick printing machine 1000 will be described. First, the user inserts a predetermined amount of coins (coins) into the coin insertion slot 1005 in the sticker printing machine 1000. Then, the sticker printing machine 1000 displays a display screen 10 as shown in FIG.

表示画面10は、撮影画像に睫毛を描画するか否かをユーザに選択させるための画面である。「まつげを付けますか?」というメッセージとともに、「Yes」と「No」の2つのアイコンが表示されている。ユーザは、タッチペン1007を用いて、まつげを付けることを希望する場合には「Yes」、まつげを付けることを希望しない場合には「No」のアイコンをそれぞれタッチする。   The display screen 10 is a screen for allowing the user to select whether or not to draw eyelashes on the captured image. Two icons, “Yes” and “No”, are displayed along with a message “Do you want to add eyelashes?”. Using the touch pen 1007, the user touches the “Yes” icon when he / she wishes to attach eyelashes, and the “No” icon when he / she does not wish to attach eyelashes.

タッチペン1007により「Yes」のアイコンがタッチされたことを検出すると、シールプリント機1000は、図3に示すような表示画面20をディスプレイ1002に表示させる。表示画面20は、撮影画像に睫毛を描画するモードである睫毛モードをユーザに選択させるための画面である。「まつげモードを選んでね」というメッセージとともに、「ドールアイ」と「エレガントアイ」の2つのアイコンが表示されている。   When it is detected that the “Yes” icon is touched with the touch pen 1007, the sticker printing machine 1000 displays a display screen 20 as shown in FIG. 3 on the display 1002. The display screen 20 is a screen for allowing the user to select an eyelash mode that is a mode for drawing eyelashes on a captured image. Two icons, “Doll Eye” and “Elegant Eye” are displayed along with the message “Choose Eyelash Mode”.

「ドールアイ」は、撮影画像中のユーザの黒目(瞳)付近に、他の部分よりも繊毛が長く、密度の濃い睫毛を描画するためのモードである。一方、「エレガントアイ」は、撮影画像中のユーザの目尻付近に、他の部分よりも繊毛が長く、密度の濃い睫毛を付加するためのモードである。   “Doll eye” is a mode for drawing eyelashes having a cilia that is longer and denser than other parts near the user's black eye (pupil) in the captured image. On the other hand, the “elegant eye” is a mode for adding eyelashes having cilia that are longer and denser than the other parts near the user's eyes in the captured image.

タッチペン1007により、表示画面20の何れかのアイコンがタッチされたことを検出すると、シールプリント機1000は、図4に示すような表示画面30をディスプレイ1002に表示させる。表示画面30は、撮影画像に付加する睫毛のボリュームをユーザに選択させるための画面である。「まつげのボリュームを選んでね」というメッセージとともに、「スタンダードボリューム」と「ハイパーボリューム」の2つのアイコンが表示されている。   When it is detected that any icon on the display screen 20 is touched with the touch pen 1007, the sticker printing machine 1000 displays the display screen 30 as shown in FIG. The display screen 30 is a screen for allowing the user to select the eyelash volume to be added to the captured image. Two icons, “Standard Volume” and “Hyper Volume”, are displayed along with the message “Choose the eyelash volume”.

「スタンダードボリューム」が選択された場合は、あたかもマスカラが塗られたかのような、自然なボリューム感のある睫毛が撮影画像に描画される。一方、「ハイパーボリューム」が選択された場合は、あたかもつけ睫毛をつけたかのような、長くてボリュームのある睫毛が撮影画像に描画される。   When “standard volume” is selected, the eyelashes with a natural volume feeling are drawn on the photographed image as if mascara was applied. On the other hand, when “hypervolume” is selected, long and lashed eyelashes are drawn on the photographed image as if they were put on.

タッチペン1007により、表示画面30の何れかのアイコンがタッチされたことを検出すると、シールプリント機1000は、撮影モードへと移行して撮影時処理を行う。撮影時処理では、シールプリント機1000は、シャッタータイミング(撮影タイミング)を示す所定のカウントダウンを行った後、カメラ1001による撮影を実行し、そのときのファインダ画像を撮影画像として保存する。そして、撮影が終了すると、シールプリント機1000は、撮影画像に睫毛を描画する睫毛描画処理を行う。   When it is detected that any icon on the display screen 30 is touched with the touch pen 1007, the sticker printing machine 1000 shifts to the shooting mode and performs processing at the time of shooting. In the photographing process, the sticker printing machine 1000 performs photographing by the camera 1001 after performing a predetermined countdown indicating shutter timing (photographing timing), and stores the finder image at that time as a photographed image. When shooting is finished, the sticker printing machine 1000 performs eyelash drawing processing for drawing eyelashes on the shot image.

本実施形態では、シールプリント機1000は、3つのレイヤーを用いて画像生成を行う。具体的には、図5に示すように、撮影画像が描画される基礎レイヤーと、睫毛画像が描画される睫毛レイヤーと、落書き画像が描画される落書きレイヤーとの3つのレイヤーを奥側から順に重畳的に配置して使用し、画像生成を行う。各レイヤーともに撮影画像と同じ大きさであり、基礎レイヤーには全面に撮影画像が描画されることとなる。   In the present embodiment, the seal printing machine 1000 generates an image using three layers. Specifically, as shown in FIG. 5, the three layers of the basic layer on which the photographed image is drawn, the eyelash layer on which the eyelash image is drawn, and the graffiti layer on which the graffiti image is drawn are sequentially arranged from the back side. The images are generated by using them in a superimposed manner. Each layer has the same size as the photographed image, and the photographed image is drawn on the entire surface of the base layer.

基礎レイヤーの各画素には、撮影により得られたユーザ画像の色を表すRGB値が格納されることで撮影画像が描画される。睫毛レイヤーの各画素には、描画する睫毛画像の色(以下、「睫毛画像色」と称す。)を表すRGB値が格納されることで睫毛画像が描画される。描画されていない画素は無色透明を表す値が格納される。落書きレイヤーの各画素には、後述する落書き処理において着色された色を表すRGB値が格納されることで、ユーザの好みの落書きが描画される。落書きレイヤーも睫毛レイヤーと同様、描画されていない画素は無色透明を表す値が格納される。   In each pixel of the base layer, an RGB value representing the color of the user image obtained by shooting is stored, so that a shot image is drawn. In each pixel of the eyelash layer, an RGB value representing the color of the eyelash image to be drawn (hereinafter referred to as “the eyelash image color”) is stored, whereby the eyelash image is drawn. A value representing colorless and transparent is stored in a pixel that is not drawn. Each pixel of the graffiti layer stores an RGB value representing a color colored in a graffiti process, which will be described later, so that a graffiti desired by the user is drawn. Similarly to the eyelash layer, the graffiti layer stores a value indicating colorless and transparent for pixels not drawn.

また、本実施形態では、睫毛レイヤーには、表示用睫毛レイヤーと、印刷用睫毛レイヤーとの2種類がある。詳細は後述するが、ディスプレイ1002の大きさが、印刷されるシール紙或いはシール紙に印刷される1つの写真よりも大きいため、表示用睫毛レイヤーと印刷用睫毛レイヤーとでは、描画する睫毛の繊毛の太さ及び密度を変えているのである。   In the present embodiment, there are two types of eyelash layers: a display eyelash layer and a printing eyelash layer. Although details will be described later, since the size of the display 1002 is larger than the printed sticker paper or one photo printed on the sticker paper, the display eyelash layer and the print eyelash layer use the eyelash cilia to be drawn. The thickness and density of the are changed.

図6は、睫毛の描画処理を説明するための図である。
最初に、顔認識処理を行って、撮影画像の中から目を検出する。具体的には、例えば、辞書データとなる多数の顔画像を用意しておき、公知のパターンマッチング技術を利用して顔認識を行ったり、各画素の色情報をもとに白目部分の輪郭抽出を行う等として、目の輪郭を抽出して目の部分を認識する。この目の画像部分の検出処理自体は、公知の処理を利用することとしてよい。本実施形態では、図6に示したように、目の画像部分を目頭「A」、目尻「B」を左右の端点とする8角形の領域で検出することとして説明する。目頭「A」から目の頂点「C」を経由して目尻「B」に至るラインが目の上側のアイラインであり、その反対側が下側のアイラインである。目の画像部分の検出は、アイライン部分の検出とも言え、睫毛を描画する位置(睫毛描画位置)を特定するための処理である。また、本実施形態で「アイライン」という場合は基本的に上側のアイラインを指すこととして説明する。
尚、本実施形態では、目の検出に失敗した場合は、睫毛を描画する処理は行わない。
FIG. 6 is a diagram for explaining eyelash drawing processing.
First, face recognition processing is performed to detect eyes from the captured image. Specifically, for example, a large number of face images serving as dictionary data are prepared and face recognition is performed using a known pattern matching technique, or the contour extraction of the white eye portion is performed based on the color information of each pixel. For example, the eye contour is extracted to recognize the eye portion. The eye part image detection process itself may use a known process. In the present embodiment, as shown in FIG. 6, description will be made on the assumption that the image portion of the eye is detected in an octagonal region with the corner of the eye “A” and the corner of the eye “B” as left and right end points. A line from the top of the eye “A” to the corner of the eye “B” via the vertex “C” of the eye is the upper eyeline, and the opposite side is the lower eyeline. The detection of the eye image part can be called the detection of the eyeline part, and is a process for specifying the position for drawing the eyelashes (the eyelash drawing position). Further, in the present embodiment, the term “eye line” is basically described as indicating the upper eye line.
In the present embodiment, when eye detection fails, the process of drawing eyelashes is not performed.

一方、睫毛テクスチャとして、睫毛モード及び睫毛ボリュームに応じた睫毛テクスチャを用意する。本実施形態では、睫毛モードとして「ドールアイ」及び「エレガントアイ」の2種類、睫毛ボリュームとして「スタンダードボリューム」及び「ハイパーボリューム」の2種類が存在する。よって、右目用と左目用とのそれぞれについて、睫毛モードと睫毛ボリュームの組合せである4種類の睫毛テクスチャが予め用意されている。   On the other hand, the eyelash texture corresponding to the eyelash mode and the eyelash volume is prepared as the eyelash texture. In the present embodiment, there are two types of “doll eye” and “elegant eye” as the eyelash mode, and two types of “standard volume” and “hyper volume” as the eyelash volume. Therefore, four types of eyelash textures, which are combinations of the eyelash mode and the eyelash volume, are prepared in advance for each of the right eye and the left eye.

ドールアイ用の睫毛テクスチャには、ユーザの黒目付近に長く濃い睫毛が描画されるように、黒目寄りの位置の繊毛が他の位置の繊毛よりも長く太く描かれている。一方、エレガントアイ用の睫毛テクスチャには、ユーザの目尻付近に長く濃い睫毛が描画されるように、目尻寄りの位置の繊毛が他の位置の繊毛よりも長く太く描かれている。また、スタンダードボリューム用の睫毛テクスチャと比べて、ハイパーボリューム用の睫毛テクスチャの方が、各繊毛の長さが長く、繊毛全体の密度が高く描かれている。   In the eyelash texture for the doll eye, the cilia near the black eyes are drawn thicker and longer than the other cilia so that long dark eyelashes are drawn near the user's black eyes. On the other hand, in the eyelash texture for the elegant eye, the cilia near the corner of the eye is drawn longer and thicker than the cilia at other positions so that long and dark eyelashes are drawn near the user's corner. In addition, in comparison with the standard volume eyelash texture, the hypervolume eyelash texture is drawn with a longer length of each cilia and a higher density of the entire cilia.

各睫毛テクスチャは、描かれている睫毛の種類は違えども、テクスチャ自体のサイズは全て同じである。また、各睫毛テクスチャには、それぞれ3箇所のフィッティングポイント「X」〜「Z」が設定されており、これもテクスチャのu−v座標上、同一の位置に設定されている。フィッティングポイントは、検出された目の形状に睫毛画像を合わせる(フィッティングさせる)ための制御点である。フィッティングポイント「X」は、目頭「A」の位置にフィッティングさせるための制御点であり、フィッティングポイント「Y」は、目尻「B」にフィッティングさせるための制御点である。また、フィッティングポイント「Z」は、目の頂点「C」にフィッティングさせるための制御点である。
なお、図6を参照して右目についてのみ図示・説明したが、左目についても同様である。
Each eyelash texture has the same size, although the type of eyelashes drawn is different. Further, three fitting points “X” to “Z” are set in each eyelash texture, and these are also set at the same position on the uv coordinates of the texture. The fitting point is a control point for matching (fitting) the eyelash image to the detected eye shape. The fitting point “X” is a control point for fitting to the position of the eye head “A”, and the fitting point “Y” is a control point for fitting the eye corner “B”. The fitting point “Z” is a control point for fitting to the vertex “C” of the eye.
Although only the right eye is illustrated and described with reference to FIG. 6, the same applies to the left eye.

シールプリント機1000は、4種類の睫毛テクスチャの中から、ユーザにより選択された「睫毛モード」と「睫毛ボリューム」とに対応する睫毛テクスチャを選択する。そして、選択した睫毛テクスチャの各フィッティングポイント「X」〜「Z」それぞれの相対位置関係を、検出した目の画像部分の頂点「A」〜「C」の相対位置関係と一致させるように、睫毛テクスチャの縦及び横方向のサイズを拡縮する。   The seal printing machine 1000 selects the eyelash texture corresponding to the “lash mode” and the “lash volume” selected by the user from the four types of eyelash textures. Then, to match the relative positional relationship of each fitting point “X” to “Z” of the selected eyelash texture with the relative positional relationship of the vertices “A” to “C” of the detected image portion of the eye, Scale the vertical and horizontal size of the texture.

さらに、睫毛テクスチャをフィッティングポイント「X」を基点として回転させることで、フィッティングポイント「X」〜「Z」の絶対位置関係(角度θ)を、検出した目の画像部分の頂点「A」〜「C」の絶対位置関係(角度θ)と一致させる。この結果、フィッティングポイント「X」〜「Z」が、目の画像部分の頂点「A」〜「C」それぞれに対応するよう調整され、テクスチャマッピングの準備が整ったこととなる。   Further, by rotating the eyelash texture with the fitting point “X” as a base point, the absolute positional relationship (angle θ) of the fitting points “X” to “Z” is determined from the vertices “A” to “A” of the detected image portion of the eye. The absolute positional relationship (angle θ) of “C” is matched. As a result, the fitting points “X” to “Z” are adjusted to correspond to the vertices “A” to “C” of the image portion of the eye, and texture mapping is ready.

フィッティング処理を行った後、睫毛テクスチャを表示用睫毛レイヤーにマッピング(描画)することで、図7に示すように、目のアイライン部分に睫毛が描画された画像が生成される。但し、睫毛テクスチャに描画されている睫毛に係る全て画素の色を表示用睫毛レイヤーに描画するわけではない。具体的に説明する。   After performing the fitting process, the eyelash texture is mapped (drawn) to the display eyelash layer, thereby generating an image in which eyelashes are drawn on the eyeline part of the eye as shown in FIG. However, the colors of all pixels related to the eyelashes drawn on the eyelash texture are not drawn on the display eyelash layer. This will be specifically described.

まず、睫毛画像の着色対象とする画素(以下、「睫毛描画対象画素」という。)を判定する。具体的には、睫毛テクスチャを表示用睫毛レイヤーに投影した場合に、睫毛テクスチャの睫毛の繊毛部分に対応する位置の画素を、睫毛描画対象画素と判定する。尚、理解の混乱を避けるために、睫毛描画対象画素は、睫毛レイヤー中の画素として説明するが、3つのレイヤーを重ねて1つの合成画像となるため、睫毛描画対象画素は、3つのレイヤーに共通する、合成画像における画素とも言える。   First, a pixel to be colored in the eyelash image (hereinafter, referred to as “lash drawing target pixel”) is determined. Specifically, when the eyelash texture is projected onto the display eyelash layer, the pixel at the position corresponding to the cilia portion of the eyelash of the eyelash texture is determined as the eyelash drawing target pixel. In order to avoid confusion, the eyelash drawing target pixel is described as a pixel in the eyelash layer. However, since the three layers are overlapped to form one composite image, the eyelash drawing target pixel is divided into three layers. It can be said that it is a common pixel in a composite image.

そして、表示用睫毛レイヤーの各睫毛描画対象画素それぞれに無条件に睫毛画像を描画するとする。すると、適切な位置に睫毛が描画されない場合が生じる。例えば、図8,図9がその一例である。図8では、目の画像部分が正確に検出されなかったため、或いは8角形の粗い認識であったために、本来の目の画像部分よりも細く(狭く)検出され、白目や黒目の部分に睫毛が描画されている。これでは、白目や黒目の部分から睫毛が生えているかのような不自然な画像となってしまう。   The eyelash image is unconditionally drawn on each eyelash drawing target pixel of the display eyelash layer. Then, the eyelash may not be drawn at an appropriate position. For example, FIG. 8 and FIG. 9 are examples. In FIG. 8, the eye image portion was not accurately detected or the octagon was roughly recognized, so that the eye portion was detected to be narrower (narrower) than the original eye image portion, and eyelashes were observed in the white and black eye portions. Has been drawn. This results in an unnatural image as if eyelashes are growing from the white or black eyes.

また、図9では、髪の毛の上に睫毛が描画されている。撮影画像において、ユーザの目の一部に髪の毛がかかっており、目にかかっている髪の毛の部分も含めて目の画像部分が検出された結果、髪の毛の上に睫毛が描画されてしまったのである。この場合、髪の毛と睫毛との前後位置関係が矛盾する違和感のある画像となってしまう。   In FIG. 9, eyelashes are drawn on the hair. In the captured image, the user's eyes are covered with hair, and as a result of detecting the image portion of the eyes including the portion of the hair that is in the eyes, the eyelashes are drawn on the hair. is there. In this case, an image with a sense of incongruity in which the front-rear positional relationship between the hair and the eyelashes contradicts each other.

このような問題に対処するため、本実施形態では、撮影画像に含まれる各睫毛描画対象画素それぞれについて、当該画素の色が、睫毛の描画を許容する色条件として予め定められた肌色相当色条件を満たすか否かを判定する。肌色相当色条件は、肌色若しくは肌色に近い色(以下、「肌色相当色」という。)として予め定められた色値(RGB値)の条件である。人によって肌の色が異なったり、同一人であっても肌の色が部分的に異なることがあるため、肌色相当色にはある程度の幅を持たせることが適切である。顔認識処理において撮影した被写体(ユーザ)の肌色を検出し、その肌色を中心とする一定の色幅を肌色相当色条件として設定することとしてもよい。   In order to deal with such a problem, in the present embodiment, for each eyelash drawing target pixel included in the photographed image, the color of the pixel is a skin color equivalent color condition that is predetermined as a color condition that allows drawing of eyelashes. It is determined whether or not the above is satisfied. The skin color equivalent color condition is a condition of a color value (RGB value) predetermined as a skin color or a color close to the skin color (hereinafter referred to as “skin color equivalent color”). Since the skin color varies from person to person, or even from the same person, the skin color may differ partially, it is appropriate to give the skin color equivalent color a certain range. The skin color of the subject (user) photographed in the face recognition process may be detected, and a certain color width centered on the skin color may be set as the skin color equivalent color condition.

そして、表示用睫毛レイヤーに含まれる各睫毛描画対象画素のうち、対応する基礎レイヤーの画素の色が肌色相当色条件を満たす画素にのみ、睫毛の色(以下、「睫毛画像色」という。)を着色する。すなわち、睫毛テクスチャに描かれている睫毛の画像部分のみをマスク的に利用し、所定の色(例えば黒色)を睫毛画像色として着色する。尚、この睫毛画像色は、例えば顔認識処理において目の画像部分と検出された目の輪郭近傍の暗色(例えば明度が所定の暗色条件を満たす色)の平均色としてもよいし、顔認識処理で髪の毛の画像部分と判断された部分の色と同色或いは若干明度を補正した色を睫毛画像色としてもよい。勿論、睫毛テクスチャに予め彩色しておいた色を用いることとしてもよい。
これにより、肌色相当色条件を満たさない画素には睫毛画像色が着色されない。そのため、肌色相当色以外の色、例えば白目部分の白色や、髪の毛等の黒色の部分には睫毛が描画されないことになり、図8や図9に示したような不自然な画像が生成されることが防止される。
The eyelash color (hereinafter referred to as “the eyelash image color”) is only the pixel in which the color of the corresponding base layer pixel satisfies the skin color equivalent color condition among the target eyelash drawing target pixels included in the display eyelash layer. Coloring. In other words, only the image portion of the eyelash drawn on the eyelash texture is used as a mask, and a predetermined color (for example, black) is colored as the eyelash image color. The eyelash image color may be, for example, an average color of a dark color (for example, a color whose brightness satisfies a predetermined dark color condition) near the eye image portion detected in the face recognition process or the face recognition process. Thus, the color of the portion determined to be the image portion of the hair may be the same color as the color of the portion, or a color with a slight lightness correction may be used as the eyelash image color. Of course, it is good also as using the color previously colored for the eyelash texture.
As a result, the eyelash image color is not colored in pixels that do not satisfy the skin color equivalent color condition. Therefore, the eyelashes are not drawn in a color other than the skin color equivalent color, for example, white in the white eye part or black part such as hair, and an unnatural image as shown in FIGS. 8 and 9 is generated. It is prevented.

睫毛描画処理を終了すると、シールプリント機1000は、基礎レイヤーの撮影画像と、表示用睫毛レイヤーの睫毛画像と、落書きレイヤーの落書き画像とをこの順に奥側から重ねるようにして合成する。そして、シールプリント機1000は、ユーザが落書き操作を行うための落書き時画面をディスプレイ1002に表示させる。   When the eyelash drawing process is completed, the seal printing machine 1000 combines the captured image of the basic layer, the eyelash image of the display eyelash layer, and the graffiti image of the graffiti layer in this order so as to overlap each other. Then, the sticker printing machine 1000 causes the display 1002 to display a graffiti screen for the user to perform a graffiti operation.

図10は、落書き時画面の一例を示す図である。落書き時画面には、基礎レイヤーと表示用睫毛レイヤーと落書きレイヤーとを重ねた画像(以下、「表示用合成画像」という。)40と、現在選択されている落書きツール50と、落書きツールの変更ボタン62と、落書きの終了を指示する終了ボタン64とが表示される。   FIG. 10 is a diagram illustrating an example of a graffiti screen. On the graffiti screen, an image (hereinafter referred to as “display composite image”) 40 in which a basic layer, a display eyelash layer, and a graffiti layer are superimposed, a currently selected graffiti tool 50, and a change of the graffiti tool A button 62 and an end button 64 for instructing the end of the graffiti are displayed.

落書きツール50は、表示用合成画像40に落書きを行うためのツールであり、変更ボタン62により、ペン色やペン先を変更するツールやスタンプツール等の他のツールに変更可能である。図10において現在選択されている落書きツール50には、ペンツール51と消しゴムツール52とが含まれる。ペンツール51は、表示用合成画像40において自由に線画を描くことのできるペンのツールであり、ペンの太さ別に4種類のアイコンが選択可能に表示されている。   The scribble tool 50 is a tool for scribbling the composite image 40 for display, and can be changed to another tool such as a tool for changing the pen color or the pen tip or a stamp tool by a change button 62. The graffiti tool 50 currently selected in FIG. 10 includes a pen tool 51 and an eraser tool 52. The pen tool 51 is a pen tool that can freely draw a line drawing in the composite image for display 40, and displays four types of icons according to the pen thickness.

ユーザはタッチペン1007を用いてペンツール51内の任意の太さのアイコンにタッチ操作した後、表示用合成画像40においてタッチペン1007を摺動させることで、その軌跡に沿って所定の色(例えば黒色)を着色することができる。内部的な処理としては、タッチペン1007による着色操作軌跡に従って、3層のレイヤーのうちの落書きレイヤーに、ペンツール51の色に対応するRGB値を格納することになる。   The user touches an icon of an arbitrary thickness in the pen tool 51 using the touch pen 1007, and then slides the touch pen 1007 on the composite image for display 40, thereby a predetermined color (for example, black) along the locus. Can be colored. As an internal process, RGB values corresponding to the color of the pen tool 51 are stored in the graffiti layer of the three layers according to the coloring operation locus by the touch pen 1007.

また、消しゴムツール52にも4種類の太さが用意されている。本実施形態において特徴的であることの1つは、消しゴムツール52を用いた画像の消去操作は、落書きレイヤーのみならず、表示用睫毛レイヤーにも及ぶ点である。   The eraser tool 52 is also provided with four types of thickness. One characteristic of the present embodiment is that the image erasing operation using the eraser tool 52 extends not only to the graffiti layer but also to the display eyelash layer.

すなわち、ユーザはタッチペン1007を用いて消しゴムツール52内の任意の太さのアイコンにタッチ操作した後、表示用合成画像40においてタッチペン1007を摺動させることで、その軌跡部分に着色されている色を無色透明にすることができる。但し、撮影画像が描画されている基礎レイヤーには消しゴムツールによる消去操作が及ばない。あくまで撮影画像に対する落書きであるからである。しかし、消去操作は、落書き用レイヤーだけでなく、表示用睫毛レイヤーにも及ぶ。睫毛描画処理により描画された睫毛は、一種の「落書き」として扱い、ユーザの希望により消去することを可能としたのである。図11に示すように、描画された睫毛の画像に対してユーザが消去操作をすることで、睫毛画像のうち、消去操作軌跡の部分が消去される。内部的な処理としては、タッチペン1007による消去操作軌跡を記憶し、表示用睫毛レイヤー及び落書きレイヤー上の消去操作軌跡の部分の色情報を無色透明の色情報に変更する。消去操作軌跡は印刷時処理においても利用するため記憶しておく。   That is, the user touches an icon of an arbitrary thickness in the eraser tool 52 using the touch pen 1007, and then slides the touch pen 1007 on the display composite image 40, thereby coloring the locus portion. Can be made colorless and transparent. However, the erase operation with the eraser tool does not reach the base layer on which the photographed image is drawn. This is because it is a graffiti for the photographed image. However, the erase operation extends not only to the graffiti layer but also to the display eyelash layer. The eyelashes drawn by the eyelash drawing process are treated as a kind of “doodle” and can be erased at the request of the user. As shown in FIG. 11, when the user performs an erasing operation on the drawn eyelash image, the portion of the erasing operation locus in the eyelash image is erased. As an internal process, an erase operation locus by the touch pen 1007 is stored, and the color information of the erase operation locus on the display eyelash layer and the graffiti layer is changed to colorless and transparent color information. The erasing operation trajectory is stored for use in printing processing.

落書きが終了すると、シールプリント機1000は、印刷時処理を行い、印刷用合成画像を生成してシール紙への印刷を行う。   When the graffiti ends, the sticker printing machine 1000 performs a printing process, generates a print composite image, and prints on the sticker paper.

図12は、本実施形態における印刷用合成画像の生成の原理の説明図である。
睫毛テクスチャには、「睫毛モード」と「睫毛ボリューム」との組合せによる4種類が存在することを説明した。しかし更に、その4種類の睫毛テクスチャそれぞれには、表示用と印刷用との2タイプがある。表示用と印刷用の睫毛テクスチャで異なるのは、全体的な各繊毛の太さと密度である。フィッティングポイントは共通位置に定められている。表示用の睫毛テクスチャは、印刷用の睫毛テクスチャに比べて、各繊毛の太さが細く、密度が低く描かれている。
FIG. 12 is an explanatory diagram of the principle of generating a print composite image in the present embodiment.
It has been explained that there are four types of eyelash textures, which are combinations of “lash mode” and “lash volume”. However, each of the four types of eyelash texture has two types: display and printing. The difference between the display and printing eyelash texture is the overall thickness and density of each cilia. The fitting point is set at a common position. In the eyelash texture for display, the thickness of each cilia is thinner and the density is lower than that of the eyelash texture for printing.

その理由は、シールプリント機1000のディスプレイ1002は、印刷されるシール紙の大きさよりも十分に大きな画面となっているからである。すなわち、ディスプレイ1002に表示されるユーザの顔画像の大きさが、シール紙に印刷される顔画像よりも十分に大きいからである。   The reason is that the display 1002 of the sticker printing machine 1000 has a screen sufficiently larger than the size of the sticker paper to be printed. That is, the size of the user's face image displayed on the display 1002 is sufficiently larger than the face image printed on the sticker paper.

仮に、印刷用の睫毛テクスチャに描かれた各繊毛の太さ及び密度を、表示用の睫毛テクスチャに合わせて同一にした場合には、ディスプレイ1002に表示されている顔画像では睫毛の太さ/密度が適切に見えるが、シール紙に印刷された顔画像では細く/密度が低く見える。逆に、表示用の睫毛テクスチャに描かれた各繊毛の太さ及び密度を、印刷用の睫毛テクスチャに合わせて同一にした場合には、シール紙に印刷された顔画像では睫毛の太さ/密度が適切に見えるが、ディスプレイ1002に表示されている顔画像では太く/密度が高く見える。   If the thickness and density of each cilia drawn on the printing eyelash texture are the same according to the display eyelash texture, the facial image displayed on the display 1002 has the thickness / The density looks good, but it looks fine / low in the face image printed on sticker paper. On the contrary, when the thickness and density of each cilia drawn on the display eyelash texture are the same in accordance with the print eyelash texture, the face image printed on the sticker paper has a thickness / Although the density looks appropriate, the face image displayed on the display 1002 appears thicker / higher in density.

このことを考慮して、表示用の睫毛テクスチャについては、印刷用の睫毛テクスチャに比べて、各繊毛の太さを細く、密度を低くして描かれているのである。上述した表示用睫毛レイヤーに描かれる睫毛は、表示用の睫毛テクスチャに基づく睫毛画像である。   In consideration of this, the eyelash texture for display is drawn with the thickness of each cilia thinner and the density lower than the eyelash texture for printing. The eyelashes drawn on the display eyelash layer described above are eyelash images based on the display eyelash texture.

尚、表示用睫毛テクスチャと印刷用睫毛テクスチャとの違いを、繊毛の太さと密度の両方の違いとしてもよいし、繊毛の太さと密度の何れか一方の違いとしてもよい。すなわち、繊毛の密度は同じで、各繊毛の太さが表示用睫毛テクスチャの方が細くなるようにしてもよいし、各繊毛の太さは同じで、繊毛の密度が表示用睫毛テクスチャの方が低くなるようにしてもよい。   The difference between the display eyelash texture and the print eyelash texture may be the difference between both the thickness and density of the cilia, or the difference between either the thickness and density of the cilia. That is, the density of the cilia may be the same, and the thickness of each cilia may be thinner in the display eyelash texture, or the thickness of each cilia is the same and the density of the cilia is in the direction of the display eyelash texture. May be lowered.

印刷用合成画像は、撮影画像が描画された基礎レイヤーと、印刷用睫毛テクスチャに基づいて睫毛画像が描画された印刷用睫毛レイヤーと、落書きレイヤーとがこの順番に奥側から重ねた画像である。印刷用睫毛レイヤーへの睫毛画像の描画は次のように行われる。すなわち、図6を参照して説明したフィッティング処理で実行された縦横方向の拡縮率と回転角θとを印刷用睫毛テクスチャに施す。そして、上述した睫毛描画処理と同様、印刷用の睫毛テクスチャを印刷用睫毛レイヤーに投影した場合に、印刷用睫毛テクスチャの睫毛の繊毛部分に対応する位置の画素を睫毛描画対象画素とし、その睫毛描画対象画素のうちの、対応する基礎レイヤーの画素の色が肌色相当色条件を満たす画素に睫毛画像色を着色する。   The composite image for printing is an image in which the basic layer on which the photographed image is drawn, the printing eyelash layer on which the eyelash image is drawn based on the printing eyelash texture, and the graffiti layer are overlapped in this order from the back side. . Drawing of the eyelash image on the eyelash layer for printing is performed as follows. That is, the vertical / horizontal expansion / contraction ratio and the rotation angle θ executed in the fitting process described with reference to FIG. 6 are applied to the printing eyelash texture. Similarly to the eyelash drawing process described above, when the printing eyelash texture is projected onto the printing eyelash layer, the pixel corresponding to the cilia portion of the eyelash texture of the printing eyelash texture is set as the eyelash drawing target pixel, and the eyelash Among the drawing target pixels, the eyelash image color is colored to a pixel whose corresponding base layer pixel color condition satisfies the skin color equivalent color condition.

また、更に、印刷用睫毛レイヤーのうち、落書き時画面において操作入力された消去操作軌跡の部分の色情報を無色透明に変更する(図12参照)。これにより、表示用睫毛レイヤーを印刷用睫毛レイヤーに差し替えることによっても、かつて操作入力した消去操作がそのまま反映されることとなる。
次いで、基礎レイヤーと、印刷用睫毛レイヤーと、落書きレイヤーとをこの順に奥側から重ねることで、印刷用合成画像を生成する。
Further, in the printing eyelash layer, the color information of the portion of the erasing operation trajectory input on the graffiti screen is changed to colorless and transparent (see FIG. 12). As a result, even if the display eyelash layer is replaced with the printing eyelash layer, the erase operation once input by the operation is reflected as it is.
Next, the base layer, the printing eyelash layer, and the graffiti layer are stacked in this order from the back side to generate a printing composite image.

3.機能構成
図13は、シールプリント機1000の内部構成を示すブロック図である。シールプリント機1000は、操作入力部1100と、処理部1200と、画像表示部1330と、音出力部1340と、通信部1400と、撮影部1500と、印刷部1600と、排出機構1620と、記憶部1700とを備えて構成される。
3. Functional Configuration FIG. 13 is a block diagram showing an internal configuration of the sticker printing machine 1000. The sticker printing machine 1000 includes an operation input unit 1100, a processing unit 1200, an image display unit 1330, a sound output unit 1340, a communication unit 1400, a photographing unit 1500, a printing unit 1600, a discharge mechanism 1620, and a storage. Part 1700.

操作入力部1100は、ユーザによる操作指示を受け付け、操作に応じた操作信号を処理部1200に出力する。図1では、ディスプレイ1002に一体的に形成されるタッチパネルがこれに相当する。   The operation input unit 1100 receives an operation instruction from the user, and outputs an operation signal corresponding to the operation to the processing unit 1200. In FIG. 1, a touch panel formed integrally with the display 1002 corresponds to this.

処理部1200は、シールプリント機1000全体の制御や画像生成、音生成等の各種演算処理を行う。この機能は、例えばCPU(CISC型やRISC型)、ASIC(ゲートアレイ等)等の演算装置やその制御プログラムにより実現される。図1では、システム基板1009に搭載されたCPUがこれに該当する。   The processing unit 1200 performs various arithmetic processes such as control of the entire seal printing machine 1000, image generation, and sound generation. This function is realized by, for example, an arithmetic device such as a CPU (CISC type or RISC type), an ASIC (gate array or the like), or a control program thereof. In FIG. 1, the CPU mounted on the system board 1009 corresponds to this.

また、処理部1200には、写真シール100の作成にかかる処理を行うシール作成処理部1210と、画像表示部1330の画像表示を制御する表示制御部1230と、効果音やBGM等の各種音声の音信号を生成する音生成部1240とを含んでいる。   The processing unit 1200 includes a seal creation processing unit 1210 that performs processing related to creation of the photo sticker 100, a display control unit 1230 that controls image display of the image display unit 1330, and various sound such as sound effects and BGM. And a sound generation unit 1240 for generating a sound signal.

シール作成処理部1210は、撮影制御部1211と、睫毛描画処理部1213と、画像編集部1215と、印刷制御部1217とを含み、写真シールの作成にかかる各種処理を行う。   The seal creation processing unit 1210 includes an imaging control unit 1211, an eyelash drawing processing unit 1213, an image editing unit 1215, and a print control unit 1217, and performs various processes related to creation of a photo sticker.

撮影制御部1211は、撮影部1500によるユーザ(被写体)の撮影(撮像)を制御する。具体的には、シャッタータイミングを指示するカウントダウン等を行った後、該シャッタータイミングで撮影部1500に撮影を実行させる。そして、撮影制御部1211は、撮影部1500による撮影画像のデータを撮影画像データ1731として記憶部1700に記憶させる。   The shooting control unit 1211 controls shooting (imaging) of the user (subject) by the shooting unit 1500. Specifically, after performing a countdown for instructing the shutter timing, the photographing unit 1500 performs photographing at the shutter timing. Then, the shooting control unit 1211 causes the storage unit 1700 to store the data of the image taken by the shooting unit 1500 as the shot image data 1731.

睫毛描画処理部1213は、撮影制御部1211により撮影された撮影画像に対して、表示用睫毛テクスチャを、ユーザの目の画像部分にフィッティングさせるフィッティング処理を行う。そして、表示用睫毛レイヤーの睫毛描画対象画素に睫毛画像色を着色することで、表示用睫毛レイヤーに睫毛を描画する。また、睫毛描画処理部1213は、印刷用睫毛テクスチャを、先のフィッティング処理で実行したフィッティングデータ1741に基づいて、同様にフィッティング処理を行って、印刷用睫毛レイヤーの睫毛描画対象画素に睫毛画像色を着色することで、印刷用睫毛レイヤーに睫毛を描画する。   The eyelash drawing processing unit 1213 performs a fitting process on the captured image captured by the imaging control unit 1211 to fit the display eyelash texture to the image portion of the user's eyes. Then, the eyelash is drawn on the display eyelash layer by coloring the eyelash image color to the eyelash drawing target pixel of the display eyelash layer. In addition, the eyelash drawing processing unit 1213 performs a fitting process on the printing eyelash texture in the same manner based on the fitting data 1741 executed in the previous fitting process, and applies an eyelash image color to the eyelash drawing target pixel of the printing eyelash layer. By coloring the eyelashes, the eyelashes are drawn on the printing eyelash layer.

表示用睫毛テクスチャデータ1721には、「睫毛モード」と「睫毛ボリューム」との組合せによる4種類の表示用の睫毛テクスチャが格納される。印刷用睫毛テクスチャデータ1723は、同じく、「睫毛モード」と「睫毛ボリューム」との組合せによる4種類の印刷用の睫毛テクスチャが格納される。   The display eyelash texture data 1721 stores four types of eyelash textures for display by a combination of “lash mode” and “lash volume”. Similarly, the printing eyelash texture data 1723 stores four types of printing eyelash textures based on a combination of “lash mode” and “lash volume”.

画像編集部1215は、基礎レイヤーと、表示用睫毛レイヤーと、印刷用睫毛レイヤーと、落書きレイヤーとを管理し、表示用合成画像を生成して表示用合成画像データ1737として記憶部1700に記憶させる。   The image editing unit 1215 manages the basic layer, the display eyelash layer, the print eyelash layer, and the graffiti layer, generates a display composite image, and stores the composite image for display in the storage unit 1700 as the display composite image data 1737. .

また、画像編集部1215は、落書き時画面を画像表示部1330に表示させて落書き処理を行い、ペンツールを用いたユーザの着色操作軌跡に従って、落書き用レイヤーに色を着色する。また、消しゴムツールを用いた消去操作軌跡に従って、表示用睫毛レイヤー及び落書きレイヤーから色を消去する。このときの消去操作軌跡は、消去操作軌跡データ1743として記憶される。   Further, the image editing unit 1215 displays a graffiti screen on the image display unit 1330 to perform a graffiti process, and colors the graffiti layer according to the user's coloring operation locus using the pen tool. In addition, the color is erased from the display eyelash layer and the graffiti layer according to the erase operation locus using the eraser tool. The erase operation locus at this time is stored as erase operation locus data 1743.

印刷制御部1217は、印刷用合成画像を生成して、単位シール画像を生成する。そして、生成した単位シール画像を所定サイズに配置構成した画像を印刷部1600に印刷させるように制御する。   The print control unit 1217 generates a composite image for printing and generates a unit seal image. Then, control is performed so that the printing unit 1600 prints an image in which the generated unit seal image is arranged and configured in a predetermined size.

画像表示部1330は、例えばCRT、LCD、ELD、PDP、HMD等のハードウェアによって実現されるディスプレイであって、図1では、ディスプレイ1002がこれに相当する。   The image display unit 1330 is a display realized by hardware such as CRT, LCD, ELD, PDP, and HMD, for example, and the display 1002 corresponds to this in FIG.

音生成部1240は、効果音やBGM等の各種音声を生成し、生成した音声の音信号を音出力部1340に出力する。音出力部1340は、音生成部1240からの音信号に基づく音声を出力する。この機能は、例えばスピーカ等によって実現される。図1では、スピーカ1003がこれに該当する。   The sound generation unit 1240 generates various sounds such as sound effects and BGM, and outputs a sound signal of the generated sound to the sound output unit 1340. The sound output unit 1340 outputs sound based on the sound signal from the sound generation unit 1240. This function is realized by, for example, a speaker. In FIG. 1, the speaker 1003 corresponds to this.

通信部1400は、携帯電話機等の外部機器と通信接続し、当該外部機器との間でデータの送受信を行う。この機能は、例えば無線LAN、IrDA、Bluetooth(登録商標)等の無線通信規格に準拠した無線通信モジュールによって実現される。図1では、赤外線通信部1004がこれに相当する。   The communication unit 1400 communicates with an external device such as a mobile phone and transmits / receives data to / from the external device. This function is realized by a wireless communication module conforming to a wireless communication standard such as a wireless LAN, IrDA, Bluetooth (registered trademark), or the like. In FIG. 1, the infrared communication unit 1004 corresponds to this.

撮影部1500は、撮影制御部1211の制御に従って撮影を行い、撮影した画像データを処理部1200に出力する。この機能は、撮影レンズや、撮影レンズを通過した入射光をデジタル信号に変換するCCDやCMOS等の撮像素子で実現される。図1では、カメラ1001がこれに相当する。   The imaging unit 1500 performs imaging in accordance with the control of the imaging control unit 1211 and outputs the captured image data to the processing unit 1200. This function is realized by a photographing lens or an image sensor such as a CCD or CMOS that converts incident light that has passed through the photographing lens into a digital signal. In FIG. 1, the camera 1001 corresponds to this.

印刷部1600は、印刷制御部1215の制御に従って、所定の用紙(シール紙)への印刷を実行する。この機能は、例えば、インクジェット式プリンタやレーザプリンタ、昇華型プリンタ、熱転写型プリンタ、溶融型プリンタ、サーマルプリンタ、印画紙プリンタ、インスタントフィルムプリンタ等の印刷装置や給紙装置、それらのドライバ回路等によって実現される。図1では、印刷装置1008がこれに相当する。   The printing unit 1600 executes printing on a predetermined sheet (sticker sheet) according to the control of the print control unit 1215. This function is achieved by, for example, an ink jet printer, a laser printer, a sublimation printer, a thermal transfer printer, a fusion printer, a thermal printer, a photographic paper printer, an instant film printer, or a printing device or a paper feeding device, or a driver circuit thereof. Realized. In FIG. 1, the printing apparatus 1008 corresponds to this.

排出機構1620は、印刷部1600により印刷画像が印刷されたシール紙を、写真シール100として、シール払出口1006からシールプリント機1000の外部に排出させる搬送機構である。   The discharge mechanism 1620 is a transport mechanism that discharges the sticker sheet on which the print image is printed by the printing unit 1600 as a photo sticker 100 from the sticker outlet 1006 to the outside of the sticker printing machine 1000.

記憶部1700は、処理部1200にシールプリント機1000を統合的に制御させるための各種機能を実現するためのシステムプログラムやデータ等を記憶するとともに、処理部1200の作業領域として用いられ、処理部1200が各種プログラムに従って実行した演算結果や操作入力部1100から入力される入力データ等を一時的に記憶する。この機能は、例えば各種ICメモリやハードディスク、CD−ROM、DVD、MO、RAM、VRAM等によって実現される。図1では、システム基板1009に搭載されたICメモリがこれに該当する。   The storage unit 1700 stores system programs and data for realizing various functions for causing the processing unit 1200 to control the seal printing machine 1000 in an integrated manner, and is used as a work area of the processing unit 1200. Calculation results executed by the 1200 according to various programs, input data input from the operation input unit 1100, and the like are temporarily stored. This function is realized by, for example, various IC memories, hard disks, CD-ROMs, DVDs, MOs, RAMs, VRAMs, and the like. In FIG. 1, the IC memory mounted on the system board 1009 corresponds to this.

また、記憶部1700は、プログラムとして、処理部1200をシール作成処理部1210として機能させるためのシール作成プログラム1701を記憶している。また、記憶部1700は、予め用意されたデータとして、表示用睫毛テクスチャデータ1721と、印刷用睫毛テクスチャデータ1723と、落書きツールデータ1725とを記憶している。また、随時更新されるデータとして、撮影画像データ1731と、基礎レイヤーデータ1732と、表示用睫毛レイヤーデータ1733と、印刷用睫毛レイヤーデータ1734と、落書きレイヤーデータ1735と、表示用合成画像データ1737と、印刷用合成画像データ1739と、フィッティングデータ1741と、消去操作軌跡データ1743とを記憶している。   Further, the storage unit 1700 stores a seal creation program 1701 for causing the processing unit 1200 to function as the seal creation processing unit 1210 as a program. The storage unit 1700 stores display eyelash texture data 1721, printing eyelash texture data 1723, and graffiti tool data 1725 as data prepared in advance. As updated data at any time, captured image data 1731, basic layer data 1732, display eyelash layer data 1733, print eyelash layer data 1734, graffiti layer data 1735, display composite image data 1737, , Print composite image data 1739, fitting data 1741, and erasing operation trajectory data 1743 are stored.

4.処理の流れ
図14は、シール作成処理部1210が記憶部1700のシール作成プログラム1701を読み出して実行することで、シールプリント機1000において実行されるシール作成処理の流れを示すフローチャートである。この処理は、シールプリント機1000において所定量のコインがコイン投入口1005に投入されたことが確認されると開始される。
4). Processing Flow FIG. 14 is a flowchart showing a flow of a sticker creation process executed in the sticker printing machine 1000 when the sticker creation processing unit 1210 reads and executes the sticker creation program 1701 in the storage unit 1700. This process is started when it is confirmed in the seal printing machine 1000 that a predetermined amount of coins has been inserted into the coin insertion slot 1005.

先ず、シールプリント機1000において、シール作成処理部1210は、図2〜図4に示した表示画面W10〜W30を画像表示部1330に表示させ、操作入力部1100からのユーザの操作入力に従って、睫毛描画有無、睫毛モード及び睫毛ボリュームをそれぞれ設定する(ステップA1)。その後、撮影制御部1211は、撮影時処理を行う(ステップA3)。   First, in the sticker printing machine 1000, the sticker creation processing unit 1210 displays the display screens W10 to W30 illustrated in FIGS. 2 to 4 on the image display unit 1330, and in accordance with a user operation input from the operation input unit 1100, the eyelashes Drawing presence / absence, eyelash mode and eyelash volume are set (step A1). Thereafter, the shooting control unit 1211 performs a shooting process (step A3).

図15は、撮影時処理の流れを示すフローチャートである。
先ず、撮影制御部1211は、撮影を開始する(ステップB1)。すなわち、カウントダウンを行った後のシャッタータイミングで撮影部1500に撮影を実行させ、撮影画像を撮影画像データ1731として記憶部1700に記憶させる。シール作成処理部1210は、この撮影画像を基礎レイヤーに貼り付け(描画)たデータを基礎レイヤーデータ1732として記憶部1700に記憶する。
FIG. 15 is a flowchart showing the flow of processing during shooting.
First, the shooting control unit 1211 starts shooting (step B1). That is, the photographing unit 1500 performs photographing at the shutter timing after the countdown is performed, and the photographed image is stored in the storage unit 1700 as photographed image data 1731. The seal creation processing unit 1210 stores data obtained by pasting (drawing) the captured image on the base layer in the storage unit 1700 as base layer data 1732.

撮影制御部1211は、撮影が終了すると(ステップB3;Yes)、睫毛の描画が有りであるか否かを判定する(ステップB5)。すなわち、ステップA1においてユーザの操作入力に従って、睫毛の描画を有りに設定したか否かを判定する。そして、睫毛の描画が有りであると判定した場合は(ステップB5;Yes)、睫毛描画処理部1213は、表示用睫毛描画処理を実行する(ステップB7)。   When shooting is finished (step B3; Yes), the shooting control unit 1211 determines whether or not drawing of eyelashes is present (step B5). That is, in step A1, it is determined whether or not the drawing of eyelashes is set according to the user's operation input. If it is determined that there is eyelash drawing (step B5; Yes), the eyelash drawing processing unit 1213 executes display eyelash drawing processing (step B7).

図16は、睫毛描画処理の流れを示すフローチャートである。
先ず、睫毛描画処理部1213は、目検出処理を行う(ステップC1)。すなわち、撮影画像中から目の画像部分の検出を試みる。
FIG. 16 is a flowchart showing the flow of eyelash drawing processing.
First, the eyelash drawing processing unit 1213 performs eye detection processing (step C1). That is, it tries to detect the image portion of the eye from the captured image.

睫毛描画処理部1213は、目の検出に成功したならば(ステップC3;Yes)、記憶部1700に記憶された表示用睫毛テクスチャデータ1721から、ステップA1においてユーザにより選択された睫毛モード及び睫毛ボリュームに応じた表示用睫毛テクスチャを読み出す(ステップC5)。   If the eyelash drawing processing unit 1213 succeeds in detecting the eye (step C3; Yes), the eyelash mode and eyelash volume selected by the user in step A1 from the display eyelash texture data 1721 stored in the storage unit 1700. The eyelash texture for display corresponding to is read (step C5).

そして、睫毛描画処理部1213は、表示用睫毛テクスチャについてフィッティング処理を行う(ステップC7)。具体的には、表示用睫毛テクスチャに予め定められたフィッティングポイント「X」〜「Z」の位置関係を、ステップC1で検出された目の特徴点「A」〜「C」それぞれに一致するように、表示用睫毛テクスチャの拡大/縮小制御と、表示用睫毛テクスチャの回転制御とを行う。   Then, the eyelash drawing processing unit 1213 performs a fitting process on the display eyelash texture (step C7). Specifically, the positional relationship between the fitting points “X” to “Z” predetermined in the display eyelash texture is made to match each of the eye feature points “A” to “C” detected in Step C1. In addition, enlargement / reduction control of the display eyelash texture and rotation control of the display eyelash texture are performed.

その後、睫毛描画処理部1213は、表示用睫毛テクスチャの拡大/縮小率及び回転角をフィッティングデータ1741として記憶部に記憶させる(ステップC9)。そして、睫毛描画処理部1213は、睫毛描画対象画素の判定処理を行う(ステップC11)。具体的には、表示用睫毛レイヤーの中から、フィッティングされた睫毛テクスチャの睫毛の着色部分に対応する画素を選択して、睫毛描画対象画素とする。   Thereafter, the eyelash drawing processing unit 1213 stores the enlargement / reduction ratio and the rotation angle of the display eyelash texture as fitting data 1741 in the storage unit (step C9). Then, the eyelash drawing processing unit 1213 performs a process of determining the eyelash drawing target pixel (step C11). Specifically, a pixel corresponding to the colored portion of the eyelash texture of the fitted eyelash texture is selected from the display eyelash layer, and is set as the eyelash drawing target pixel.

次いで、睫毛描画処理部1213は、ステップC11で判定した各睫毛描画対象画素についてループAの処理を実行する(ステップC13〜C21)。ループAの処理では、睫毛描画処理部1213は、当該睫毛描画対象画素に対して、着色許可条件判定処理を行う(ステップC15)。すなわち、当該睫毛描画対象画素に対応する基礎レイヤーの画素の色が、予め定められた肌色相当色であるか否かを判定し、肌色相当色であると判定した場合は、当該睫毛描画対象画素は着色許可条件を満たすと判定する。   Next, the eyelash drawing processing unit 1213 executes the process of Loop A for each eyelash drawing target pixel determined in step C11 (steps C13 to C21). In the process of Loop A, the eyelash drawing processing unit 1213 performs a coloring permission condition determination process on the eyelash drawing target pixel (step C15). That is, it is determined whether or not the color of the pixel of the base layer corresponding to the eyelash drawing target pixel is a predetermined skin color equivalent color. Is determined to satisfy the coloring permission condition.

そして、睫毛描画処理部1213は、当該睫毛描画対象画素が着色許可条件を満たすと判定したならば(ステップC17;Yes)、当該睫毛描画対象画素に睫毛画像色を着色して(ステップC19)、次の睫毛描画対象画素へと処理を移行する。また、当該睫毛描画対象画素が着色許可条件を満たさないと判定したならば(ステップC17;No)、睫毛描画処理部1213は、ステップC19を行わずに、次の睫毛描画対象画素へと処理を移行する。   If the eyelash drawing processing unit 1213 determines that the eyelash drawing target pixel satisfies the coloring permission condition (step C17; Yes), the eyelash drawing target pixel is colored with the eyelash image color (step C19). The processing shifts to the next eyelash drawing target pixel. Moreover, if it determines with the said eyelash drawing object pixel not satisfy | filling coloring permission conditions (step C17; No), the eyelash drawing process part 1213 will process to the next eyelash drawing object pixel, without performing step C19. Transition.

全ての睫毛描画対象画素について処理を行った後、睫毛描画処理部1213は、ループAの処理を終了し(ステップC21)、表示用睫毛描画処理を終了する。また、ステップC3において目の検出に失敗したと判定した場合には(ステップC3;No)、睫毛描画処理部1213は、表示用睫毛描画処理を終了する。   After processing all the eyelash drawing target pixels, the eyelash drawing processing unit 1213 ends the process of loop A (step C21), and ends the display eyelash drawing processing. If it is determined in step C3 that eye detection has failed (step C3; No), the eyelash drawing processing unit 1213 ends the display eyelash drawing processing.

図15の撮影時処理に戻って、表示用睫毛描画処理を行った後、シール作成処理部1210は、基礎レイヤーと、表示用睫毛レイヤーと、落書きレイヤーとを重ねた画像を表示用合成画像とする(ステップB9)。尚、この段階では落書きレイヤーは何も描画されていない無色透明のレイヤーである。また、ステップB5において睫毛の描画が「無し」であると判定した場合は(ステップB5;No)、撮影制御部1211は、基礎レイヤーと落書きレイヤーとを重ねて表示用合成画像とする(ステップB11)。   Returning to the processing at the time of shooting in FIG. 15, after performing the display eyelash drawing process, the seal creation processing unit 1210 displays an image obtained by superimposing the base layer, the display eyelash layer, and the graffiti layer as a display composite image. (Step B9). At this stage, the graffiti layer is a colorless and transparent layer on which nothing is drawn. If it is determined in step B5 that the drawing of the eyelashes is “none” (step B5; No), the imaging control unit 1211 superimposes the basic layer and the graffiti layer to form a composite image for display (step B11). ).

ステップB9又はB11の処理の後、シール作成処理部1210は、表示用合成画像を画像表示部1330に表示させる(ステップB13)。そして、シール作成処理部1210は、ユーザの操作入力に従って、表示用合成画像がOKであるか否かを判定し(ステップB15)、OKであると判定した場合は(ステップB15;Yes)、撮影時処理を終了する。また、表示用合成画像がNGであると判定した場合は(ステップB15;No)、ステップB1に戻り、撮影時処理を再実行する。   After the process of step B9 or B11, the seal creation processing unit 1210 displays the display composite image on the image display unit 1330 (step B13). Then, the seal creation processing unit 1210 determines whether or not the composite image for display is OK according to the user's operation input (Step B15). If it is determined that the display composite image is OK (Step B15; Yes), photographing End time processing. When it is determined that the composite image for display is NG (step B15; No), the process returns to step B1 and the photographing process is executed again.

図14のシール作成処理に戻って、撮影時処理を行った後、画像編集部1215は、画像編集処理を行う(ステップA5)。   Returning to the seal creation process of FIG. 14, after performing the photographing process, the image editing unit 1215 performs the image editing process (step A5).

図17は、画像編集処理の流れを示すフローチャートである。
先ず、画像編集部1215は、表示用合成画像や、落書き用ツール等を配置した落書き時画面を画像表示部1330に表示させる(ステップD1)。
FIG. 17 is a flowchart showing the flow of image editing processing.
First, the image editing unit 1215 causes the image display unit 1330 to display a graffiti screen on which a display composite image, a graffiti tool, and the like are arranged (step D1).

次いで、画像編集部1215は、ユーザによりペンツール51が選択されたか否かを判定し(ステップD3)、選択されたと判定した場合は(ステップD3;Yes)、ペンツールの着色操作軌跡に従って、落書きレイヤーに色を着色する(ステップD5)。   Next, the image editing unit 1215 determines whether or not the pen tool 51 has been selected by the user (step D3). If it is determined that the pen tool 51 has been selected (step D3; Yes), the image editing unit 1215 sets the graffiti layer according to the pen tool coloring operation locus. A color is colored (step D5).

その後、画像編集部1215は、ユーザにより消しゴムツール52が選択されたか否かを判定し(ステップD7)、選択されたと判定した場合は(ステップD7;Yes)、ユーザの消去操作に応じた消去操作軌跡を、消去操作軌跡データ1743として記憶部1700に記憶させる(ステップD9)。そして、当該消去操作軌跡に従って、表示用睫毛レイヤー及び落書きレイヤーから、当該消去操作軌跡部分の色を消去する(ステップD11)。すなわち、着色されていた色情報を無色透明に変更する。   Thereafter, the image editing unit 1215 determines whether or not the eraser tool 52 has been selected by the user (step D7). If it is determined that the eraser tool 52 has been selected (step D7; Yes), an erasing operation corresponding to the user's erasing operation is performed. The trajectory is stored in the storage unit 1700 as erase operation trajectory data 1743 (step D9). Then, according to the erase operation locus, the color of the erase operation locus portion is erased from the display eyelash layer and the graffiti layer (step D11). That is, the colored color information is changed to colorless and transparent.

そして、画像編集部1215は、落書きを終了するか否かを判定し(ステップD13)、まだ終了しないと判定した場合は(ステップD13;No)、ステップD3に戻る。また、落書きを終了すると判定した場合は(ステップD13;Yes)、画像編集処理を終了する。   Then, the image editing unit 1215 determines whether or not to end the graffiti (step D13), and when it is determined that the graffiti is not yet ended (step D13; No), the process returns to step D3. If it is determined that the graffiti is to be terminated (step D13; Yes), the image editing process is terminated.

図14のシール作成処理に戻って、画像編集処理を行った後、印刷制御部1217は、印刷時処理を行う(ステップA7)。   Returning to the seal creation process of FIG. 14, after performing the image editing process, the print control unit 1217 performs a printing process (step A7).

図18は、印刷時処理の流れを示すフローチャートである。
先ず、印刷制御部1217は、睫毛の印刷が有りであるか否かを判定し(ステップE1)、有りであると判定した場合は(ステップE1;Yes)、睫毛描画処理部1213は、印刷用睫毛描画処理を行う(ステップE3)。
FIG. 18 is a flowchart showing the flow of processing during printing.
First, the print control unit 1217 determines whether or not eyelash printing is present (step E1). When it is determined that there is presence (step E1; Yes), the eyelash drawing processing unit 1213 performs printing. An eyelash drawing process is performed (step E3).

図19は、印刷用睫毛描画処理の流れを示すフローチャートである。
先ず、睫毛描画処理部1213は、記憶部1700に記憶された印刷用睫毛テクスチャデータ1723から、ステップA1でユーザに選択された睫毛モード及び睫毛ボリュームに応じた睫毛テクスチャを読み出す(ステップF1)。
FIG. 19 is a flowchart showing the flow of the printing eyelash drawing process.
First, the eyelash drawing processing unit 1213 reads the eyelash texture corresponding to the eyelash mode and the eyelash volume selected by the user in step A1 from the printing eyelash texture data 1723 stored in the storage unit 1700 (step F1).

その後、睫毛描画処理部1213は、記憶部1700に記憶されたフィッティングデータ1741を読み出す(ステップF3)。そして、睫毛描画処理部1213は、睫毛描画対象画素を判定する(ステップF5)。具体的には、印刷用睫毛レイヤーの中から、フィッティングされた睫毛テクスチャの睫毛の着色部分に対応する画素を検出して、睫毛描画対象画素と判定する。   Thereafter, the eyelash drawing processing unit 1213 reads the fitting data 1741 stored in the storage unit 1700 (step F3). Then, the eyelash drawing processing unit 1213 determines the eyelash drawing target pixel (step F5). Specifically, the pixel corresponding to the colored portion of the eyelash texture of the fitted eyelash texture is detected from the printing eyelash layer, and determined as the eyelash drawing target pixel.

そして、睫毛描画処理部1213は、各描画対象画素それぞれについて、ループBの処理を実行する(ステップF7〜15)。ループBの処理では、睫毛描画処理部1213は、当該睫毛描画対象画素に対して、着色許可条件判定処理を行う(ステップF9)。すなわち、当該睫毛描画対象画素に対応する基礎レイヤーの画素の色が、予め定められた肌色相当色であるか否かを判定し、肌色相当色であると判定した場合は、当該睫毛描画対象画素は着色許可条件を満たすと判定する。   Then, the eyelash drawing processing unit 1213 executes the process of loop B for each drawing target pixel (steps F7 to F15). In the process of Loop B, the eyelash drawing processing unit 1213 performs a coloring permission condition determination process on the eyelash drawing target pixel (step F9). That is, it is determined whether or not the color of the pixel of the base layer corresponding to the eyelash drawing target pixel is a predetermined skin color equivalent color. Is determined to satisfy the coloring permission condition.

そして、睫毛描画処理部1213は、当該睫毛描画対象画素が着色許可条件を満たすと判定したならば(ステップF11;Yes)、当該睫毛描画対象画素に睫毛画像色を着色して(ステップF13)、次の睫毛描画対象画素へと処理を移行する。また、当該睫毛描画対象画素が着色許可条件を満たさないと判定したならば(ステップF11;No)、睫毛描画処理部1213は、ステップF13の処理を行わずに、次の睫毛描画対象画素へと処理を移行する。   When the eyelash drawing processing unit 1213 determines that the eyelash drawing target pixel satisfies the coloring permission condition (step F11; Yes), the eyelash drawing target pixel is colored with the eyelash image color (step F13). The processing shifts to the next eyelash drawing target pixel. If it is determined that the eyelash drawing target pixel does not satisfy the coloring permission condition (step F11; No), the eyelash drawing processing unit 1213 proceeds to the next eyelash drawing target pixel without performing the process of step F13. Migrate processing.

全ての睫毛描画対象画素について処理を行った後、睫毛描画処理部1213は、ループBの処理を終了する(ステップF15)。その後、睫毛描画処理部1213は、消去操作軌跡データ1743に記憶された消去操作軌跡に従って、印刷用睫毛レイヤーから睫毛画像色を消去する(ステップF17)。そして、睫毛描画処理部1213は、印刷用睫毛描画処理を終了する。   After processing all the eyelash drawing target pixels, the eyelash drawing processing unit 1213 ends the process of loop B (step F15). Thereafter, the eyelash drawing processing unit 1213 erases the eyelash image color from the printing eyelash layer according to the erase operation locus stored in the erase operation locus data 1743 (step F17). Then, the eyelash drawing processing unit 1213 ends the printing eyelash drawing process.

図18の印刷時処理に戻って、印刷用睫毛描画処理を行った後、印刷制御部1217は、基礎レイヤーと、印刷用睫毛レイヤーと、落書きレイヤーとを重ねて印刷用合成画像生成し、記憶部1700に記憶させる(ステップE5)。   Returning to the processing at the time of printing in FIG. 18, after performing the printing eyelash drawing process, the print control unit 1217 generates a print composite image by superimposing the basic layer, the printing eyelash layer, and the graffiti layer, and stores them. The data is stored in the unit 1700 (step E5).

また、ステップE1において睫毛の印刷が「無し」であると判定した場合は(ステップE1;No)、印刷制御部1217は、基礎レイヤーと、落書きレイヤーとを重ねて印刷用合成画像を生成し、記憶部1700に記憶させる(ステップE7)。   If it is determined in step E1 that the printing of the eyelashes is “none” (step E1; No), the print control unit 1217 generates a composite image for printing by superimposing the basic layer and the graffiti layer, The data is stored in the storage unit 1700 (step E7).

ステップE5又はE7の処理の後、印刷制御部1217は、印刷用合成画像を所定の配置構成で並べてシール画像を生成して印刷部1600に印刷させる(ステップE11)。そして、印刷制御部1217は、印刷時処理を終了する。   After the process of step E5 or E7, the print control unit 1217 generates a seal image by arranging the print composite images in a predetermined arrangement configuration and causes the printing unit 1600 to print them (step E11). Then, the print control unit 1217 ends the printing process.

図14のシール作成処理に戻って、印刷時処理を終了すると、シール作成処理部1210は、排出機構1620に、生成された写真シール100をシール払出口1006からシールプリント機1000の外部に排出させる(ステップA9)。以上の処理を行うと、シール作成処理は終了となる。   Returning to the sticker creation process of FIG. 14, when the printing process is completed, the sticker creation processing unit 1210 causes the discharge mechanism 1620 to discharge the generated photo sticker 100 from the sticker outlet 1006 to the outside of the sticker printing machine 1000. (Step A9). When the above processing is performed, the seal creation processing ends.

5.作用効果
シールプリント機1000において、カメラ1001を用いてユーザの顔画像が撮影される。そして、撮影された顔画像の中からユーザの目を検出する処理が行われ、検出された目に対して睫毛テクスチャをフィッティングさせるフィッティング処理が行われることで、撮影画像中のユーザの睫毛描画位置が特定される。そして、特定された睫毛描画位置に所定の睫毛画像色が着色されることで、睫毛画像が描画された表示用画像が生成されて、ディスプレイ1002に表示される。
5. Operation In the sticker printing machine 1000, a face image of the user is taken using the camera 1001. Then, processing for detecting the user's eyes from the captured face image is performed, and fitting processing for fitting the eyelash texture to the detected eyes is performed, so that the user's eyelash drawing position in the captured image Is identified. Then, a predetermined eyelash image color is colored at the specified eyelash drawing position, whereby a display image on which the eyelash image is drawn is generated and displayed on the display 1002.

本実施形態では、マスカラのような効果を発揮させる睫毛テクスチャや、つけ睫毛のような効果を発揮させる睫毛テクスチャといった複数種類の睫毛テクスチャが予め用意され、ユーザの選択指示操作に従って選択された睫毛テクスチャを用いて睫毛画像が描画される。従って、マスカラやつけ睫毛のような、肌の色の補正とは違った効果を目の部分に施すことができる。   In the present embodiment, a plurality of types of eyelash textures such as an eyelash texture that exerts an effect like a mascara and an eyelash texture that exerts an effect like a false eyelash are prepared in advance, and the eyelash texture selected according to a user's selection instruction operation An eyelash image is drawn using. Therefore, an effect different from the correction of the skin color, such as mascara and false eyelashes, can be applied to the eyes.

また、睫毛画像色の着色対象とする睫毛描画対象画素それぞれについて、当該睫毛描画対象画素が所定の着色許可条件を満たすか否かを判定する処理が行われる。着色許可条件は、例えば当該睫毛描画対象画素の色が肌色相当色であることである。そして、着色許可条件を満たす睫毛描画対象画素には睫毛画像色が着色されるが、着色許可条件を満たさない睫毛描画対象画素には睫毛画像色が着色されない。   Further, for each eyelash drawing target pixel to be colored with the eyelash image color, a process of determining whether or not the eyelash drawing target pixel satisfies a predetermined coloring permission condition is performed. The coloring permission condition is, for example, that the color of the eyelash drawing target pixel is a skin color equivalent color. Then, the eyelash drawing target pixel that satisfies the coloring permission condition is colored with the eyelash image color, but the eyelash drawing target pixel that does not satisfy the coloring permission condition is not colored.

ユーザの目の形状によっては、睫毛テクスチャのフィッティング処理を行った場合に、睫毛の描画部分が目の中に入り込んでしまう場合がある。この場合、当該部分に睫毛画像色を着色すると、白目や黒目の部分から睫毛が生えているかのような違和感のある画像が生成される。その点、肌色相当色の画素のみを対象として睫毛画像色を着色することで、白目部分や黒目部分には睫毛画像色が着色されず、自然な印象の画像を生成することができる。   Depending on the shape of the user's eyes, when the eyelash texture fitting process is performed, the eyelash drawing portion may enter the eye. In this case, when the eyelash image color is colored in the portion, an image having a sense of incongruity as if eyelashes are growing from the white or black eye portion is generated. In this regard, by coloring the eyelash image color only for pixels corresponding to the skin color, the eyelash image color is not colored in the white eye portion and the black eye portion, and an image with a natural impression can be generated.

また、本実施形態では、ディスプレイ1002に表示させる表示用睫毛と、写真シールに印刷する印刷用睫毛との種類を変えて、睫毛画像の描画処理を行う。具体的には、各繊毛の太さが細く、密度が低い表示用睫毛テクスチャと、各繊毛の太さが太く、密度が高い印刷用睫毛テクスチャとの2種類の睫毛テクスチャとを用いる。これは、ディスプレイ1002の大きさが写真シールの大きさよりも大きいため、ディスプレイ1002に表示される顔画像の大きさと写真シールに印刷される顔画像の大きさとが異なることを考慮したためである。   In this embodiment, the eyelash image drawing process is performed by changing the types of the display eyelashes to be displayed on the display 1002 and the printing eyelashes to be printed on the photo sticker. Specifically, two types of eyelash textures are used: a display eyelash texture in which the thickness of each cilia is thin and the density is low, and a printing eyelash texture in which the thickness of each cilia is thick and the density is high. This is because the size of the display 1002 is larger than the size of the photo sticker, so that the size of the face image displayed on the display 1002 is different from the size of the face image printed on the photo sticker.

さらに、本実施形態では、落書き用の画像に対する落書き時において、消しゴムツールを用いて、描画された睫毛を消すことを可能にしている。内部的には、タッチペン1007を用いたディスプレイ1002に対する消去軌跡の入力操作に従って、表示用画像から睫毛画像色を消去する。これにより、ユーザは、ディスプレイ1002に対する消去軌跡の入力操作によって、撮影画像に描画された表示用の睫毛画像を部分的に消去することができる。   Furthermore, in the present embodiment, it is possible to erase the drawn eyelashes by using an eraser tool at the time of graffiti on the image for graffiti. Internally, the eyelash image color is erased from the display image in accordance with the erase locus input operation on the display 1002 using the touch pen 1007. Thus, the user can partially erase the display eyelash image drawn on the photographed image by an input operation of the erasure locus on the display 1002.

例えば、男女のカップルが撮影を行った場合、上述した実施形態の処理では、女性の目ばかりでなく、男性の目にも睫毛が描画されることになる。しかし、男性にとってみれば、自身の顔画像に睫毛が描画されることを希望しない場合がある。その場合には、男性は、自身の顔画像に描画された睫毛を落書きの際に消すことができる。また、女性の立場としては、自身の顔画像をより綺麗に見せるため、描画された睫毛に修正を加えたい場合がある。このような場合にも、女性は、落書きの際に睫毛の微調整を行うことができる。   For example, when a couple of men and women have taken pictures, eyelashes are drawn not only on the eyes of women but also on the eyes of men in the processing of the above-described embodiment. However, for men, there are cases in which it is not desired that eyelashes be drawn on their own face images. In that case, the male can erase the eyelashes drawn on his / her face image at the time of graffiti. In addition, as a woman's standpoint, there is a case where it is desired to correct the drawn eyelashes in order to make his / her face image appear more beautiful. Even in such a case, the woman can finely adjust the eyelashes during graffiti.

また、本実施形態では、落書き時に消しゴムツールを用いた睫毛の消去操作軌跡を記憶しておき、印刷用画像に対する睫毛の描画処理において、記憶しておいた消去操作軌跡に従って睫毛画像色を消去する。これにより、ユーザが落書き時に行った表示用睫毛画像に対する消去操作を、印刷用睫毛画像に対しても反映することができる。   Further, in the present embodiment, the eyelash erasing operation trajectory using the eraser tool at the time of graffiti is stored, and the eyelash image color is erased according to the stored erasing operation trajectory in the process of drawing the eyelash on the print image. . Thereby, the erasing operation on the display eyelash image performed by the user at the time of graffiti can be reflected also on the print eyelash image.

6.変形例
尚、本発明の適用可能な実施形態は、上述の実施形態に限定されることなく、本発明の趣旨を逸脱しない範囲で適宜変更可能なのは勿論である。
6). Modifications Note that embodiments to which the present invention can be applied are not limited to the above-described embodiments, and it is needless to say that the embodiments can be appropriately changed without departing from the spirit of the present invention.

6−1.画像生成装置
上述した実施形態では、画像生成装置の一種であるシールプリント機に本発明を適用した場合を例に挙げて説明したが、本発明を適用可能な画像生成装置はこれに限られるわけではない。例えば、画像生成装置の一種である携帯型ゲーム装置に本発明を適用することも可能である。
6-1. In the above-described embodiment, the case where the present invention is applied to a sticker printing machine, which is a kind of image generating apparatus, has been described as an example. However, the image generating apparatus to which the present invention can be applied is not limited thereto. is not. For example, the present invention can be applied to a portable game device which is a kind of image generation device.

図20は、携帯型ゲーム装置1800の構成を示す概略外観図である。携帯型ゲーム装置1800は、プレーヤがゲーム操作を入力するための方向入力キー1802及びボタンスイッチ1804と、第1液晶ディスプレイ1806と、第2液晶ディスプレイ1808と、スピーカ1810と、制御ユニット1850とを、ヒンジ1814で開閉自在なフリップフロップ型の装置本体1801に備えている。そして、第1液晶ディスプレイ1806及び第2液晶ディスプレイ1808の表示面上には、スタイラスペン1816などで触れることによって表示画面の任意位置を接触入力することのできるタッチパネル1807、1809がそれぞれ装着されている。   FIG. 20 is a schematic external view showing the configuration of the portable game apparatus 1800. The portable game apparatus 1800 includes a direction input key 1802 and a button switch 1804 for a player to input a game operation, a first liquid crystal display 1806, a second liquid crystal display 1808, a speaker 1810, and a control unit 1850. A flip-flop type apparatus main body 1801 that can be opened and closed by a hinge 1814 is provided. Touch panels 1807 and 1809 are provided on the display surfaces of the first liquid crystal display 1806 and the second liquid crystal display 1808. The touch panels 1807 and 1809 can touch and input arbitrary positions on the display screen by touching with a stylus pen 1816 or the like. .

また、装置本体1801には、コンピュータ読み取り可能な記憶媒体であるメモリカード1840からデータを読み書きできるメモリカード読取装置1818が備えられている。メモリカード1840は、上述したプリントシール機1000の記憶部1700の機能をなす記憶部である。   In addition, the apparatus main body 1801 is provided with a memory card reader 1818 that can read and write data from a memory card 1840 that is a computer-readable storage medium. The memory card 1840 is a storage unit that functions as the storage unit 1700 of the print sealer 1000 described above.

また、ヒンジ1814には、デジタル式の撮影部の一種であるイメージセンサモジュール1830が搭載されている。そして、ボタンスイッチ1804の所定スイッチにシャッター等の機能割り当て、ユーザが自身の顔画像を撮影することで、デジタルイメージデータをディスプレイ1806,1808に表示させることができる。   In addition, an image sensor module 1830 which is a kind of digital photographing unit is mounted on the hinge 1814. Then, a function such as a shutter is assigned to a predetermined switch of the button switch 1804, and the user captures his / her face image, whereby digital image data can be displayed on the displays 1806 and 1808.

イメージセンサモジュール1830によりユーザの顔画像が撮影されると、制御ユニット1850は、上述した実施形態と同様に、睫毛描画処理を行って撮影画像に睫毛を描画する。すなわち、撮影画像中から目を検出する処理を行うとともに、睫毛テクスチャのフィッティング処理及び睫毛画像色の着色処理を行って、睫毛が描画された表示用画像を生成する。図21〜図23に、携帯型ゲーム装置1800に表示される表示画面の一例を示す。また、携帯型ゲーム装置1800には印刷装置が備わっていない。そのため、上述したシール作成処理から印刷時処理を省略したプログラムがメモリカード1840に記憶されることとなる。   When a face image of the user is captured by the image sensor module 1830, the control unit 1850 performs eyelash drawing processing to draw eyelashes on the captured image, as in the above-described embodiment. That is, a process for detecting eyes from the captured image is performed, and a fitting process for eyelash texture and a coloring process for eyelash image color are performed to generate a display image in which eyelashes are drawn. FIGS. 21 to 23 show examples of display screens displayed on the portable game apparatus 1800. In addition, the portable game device 1800 is not provided with a printing device. Therefore, a program in which the printing process is omitted from the above-described seal creation process is stored in the memory card 1840.

6−2.色条件
上述した実施形態では、睫毛描画対象画素それぞれについて、当該睫毛描画対象画素が睫毛画像色の着色を許容する条件として予め定められた色条件を満たすか否かを判定し、当該色条件を満たす場合に睫毛画像色を着色するものとして説明した。具体的には、当該画素の色が肌色相当色であるか否かを判定し、肌色相当色である場合に、当該睫毛描画対象画素に睫毛画像色を着色するものとして説明した。
6-2. In the above-described embodiment, for each eyelash drawing target pixel, it is determined whether or not the eyelash drawing target pixel satisfies a predetermined color condition as a condition for allowing coloring of the eyelash image color. It has been described that the eyelash image color is colored when it is satisfied. Specifically, it is determined whether or not the color of the pixel is a skin color equivalent color, and when the color is a skin color equivalent color, the eyelash drawing target pixel is colored with the eyelash image color.

この処理を次のようにしてもよい。すなわち、睫毛描画対象画素それぞれについて、当該睫毛描画対象画素が睫毛画像色の着色を許容しない条件として予め定められた色条件を満たすか否かを判定し、当該色条件を満たさない場合に睫毛画像色を着色する。この場合の色条件としては、睫毛描画対象画素の色が白色又はそれに近い色(白色相当色)であることや、黒色又はそれに近い色(黒色相当色)であることとすることができる。このような処理を行うことで、白目部分や黒目部分に睫毛が描画されたり、目に髪の毛がかかっている場合に髪の毛の上から睫毛が描画されるといったことを防止することができる。   This processing may be performed as follows. That is, for each eyelash drawing target pixel, it is determined whether or not the eyelash drawing target pixel satisfies a predetermined color condition as a condition that does not allow coloring of the eyelash image color. Color the color. The color condition in this case can be that the color of the eyelash drawing target pixel is white or a color close to it (white equivalent color), or black or a color close to it (black equivalent color). By performing such a process, it is possible to prevent eyelashes from being drawn in the white-eye portion and the black-eye portion, and eyelashes from being drawn over the hair when the eyes are covered with hair.

6−3.睫毛画像の生成
上述した実施形態では、撮影画像中のユーザの目を検出する(アイライン部分を検出する)処理を行い、検出した目に対して睫毛テクスチャのフィッティング処理を行うことで、ユーザの睫毛描画位置を特定した。この方法の他に、撮影画像中のユーザのアイライン部分の曲線形状を解析して、その形状に直接合致させるように睫毛を描画することも可能である。
6-3. Generation of eyelash image In the above-described embodiment, a process of detecting the eye of the user in the captured image (detecting an eyeline portion) is performed, and a process of fitting the eyelash texture is performed on the detected eye. The eyelash drawing position was specified. In addition to this method, it is also possible to analyze the curve shape of the user's eyeline portion in the captured image and draw the eyelashes so as to directly match the shape.

図24は、この場合における睫毛の描画処理の説明図である。
上述した実施形態では、睫毛テクスチャとして、繊毛が湾曲状に配列された睫毛テクスチャを使用したが、ここでは繊毛が直線上に配列された睫毛テクスチャを使用する。睫毛テクスチャには、右下部にフィッティングポイント「X」が、左下部にフィッティングポイント「Y」がそれぞれ設定されている。
FIG. 24 is an explanatory diagram of eyelash drawing processing in this case.
In the embodiment described above, the eyelash texture in which the cilia are arranged in a curved shape is used as the eyelash texture, but here, the eyelash texture in which the cilia are arranged in a straight line is used. In the eyelash texture, a fitting point “X” is set at the lower right and a fitting point “Y” is set at the lower left.

先ず、撮影画像中からアイラインELの曲線形状を解析する処理を行う。具体的には、例えば、撮影画像の明度を上げるトーンカーブ処理や、撮影画像を先鋭化させるアンシャープマスク処理といった画像処理を行う。そして、処理後の撮影画像に対して、例えば微分フィルタを利用した公知のエッジ検出処理を行うことで、撮影画像中からアイラインELの曲線そのものを検出し、睫毛描画位置を特定する。   First, processing for analyzing the curve shape of the eyeline EL from the captured image is performed. Specifically, for example, image processing such as tone curve processing for increasing the brightness of a captured image and unsharp mask processing for sharpening the captured image is performed. Then, a known edge detection process using, for example, a differential filter is performed on the photographed image after processing, thereby detecting the eyeline EL curve itself from the photographed image and specifying the eyelash drawing position.

アイラインELの曲線を検出したら、アイラインELの右端点「A」にフィッティングポイント「X」を、アイラインELの左端点「B」にフィッティングポイント「Y」をそれぞれ一致させるとともに、検出した曲線形状に沿った曲線を睫毛テクスチャ上に定義する。そして、定義した曲線上の睫毛テクスチャの座標に基づいて、睫毛テクスチャをアイラインELにテクスチャマッピングさせる。睫毛テクスチャの睫毛の着色部分に相当する画素に睫毛画像色を着色することで、図24に示すようにアイラインELの曲線に沿って睫毛が描画された画像を取得することができる。   When the eyeline EL curve is detected, the fitting point “X” is matched with the right end point “A” of the eyeline EL, the fitting point “Y” is matched with the left end point “B” of the eyeline EL, and the detected curve is detected. A curve along the shape is defined on the eyelash texture. Then, the eyelash texture is texture-mapped to the eyeline EL based on the coordinates of the eyelash texture on the defined curve. By coloring the eyelash image color to the pixel corresponding to the colored portion of the eyelash of the eyelash texture, an image in which the eyelash is drawn along the curve of the eyeline EL as shown in FIG. 24 can be acquired.

6−4.睫毛画像色
上述した実施形態では、睫毛画像色を予め定められた色(例えば黒色)として睫毛画像を描画するものとして説明したが、撮影画像に基づいて睫毛画像色を決定して、睫毛画像を描画することにしてもよい。
6-4. Eyelash image color In the above-described embodiment, the eyelash image color has been described as the eyelash image color drawn in advance (for example, black). However, the eyelash image color is determined based on the photographed image, and the eyelash image color is determined. You may decide to draw.

具体的には、撮影画像中から検出した目の画像部分の境界や、図24で特定したアイラインELの曲線位置の近傍の画素の中から、暗色系の色、例えば黒色又は黒色に近い色(以下、「黒色相当色」という。)の画素を抽出する。そして、抽出した画素の色の平均色を算出して睫毛画像色に決定し、当該睫毛画像色を用いて睫毛の着色を行う。   Specifically, a dark color, for example, black or a color close to black, is selected from the boundaries of the image portion of the eye detected from the captured image and the pixels near the curve position of the eyeline EL specified in FIG. (Hereinafter referred to as “black equivalent color”) pixels are extracted. Then, an average color of the extracted pixel colors is calculated and determined as an eyelash image color, and the eyelash is colored using the eyelash image color.

また、睫毛画像色をユーザの髪の毛の色に基づいて決定してもよい。具体的には、撮影画像中から髪の画像部分を認識し、髪の画像部分に含まれる各画素の色の平均色を算出して睫毛画像色に決定する。   Further, the eyelash image color may be determined based on the color of the user's hair. Specifically, the hair image portion is recognized from the photographed image, and the average color of each pixel included in the hair image portion is calculated to determine the eyelash image color.

尚、上述した処理で求めた平均色で睫毛の着色を行った場合に、睫毛画像の明度が低くなることを防止するため、平均色に対して明度補正を行って、平均色よりも若干明るく補正された色を睫毛画像色としてもよい。   In addition, in order to prevent the brightness of the eyelash image from being lowered when the eyelash is colored with the average color obtained by the above-described processing, the brightness correction is performed on the average color, so that it is slightly brighter than the average color. The corrected color may be the eyelash image color.

6−5.落書きモードでの睫毛の追加
撮影時に表示用画像をディスプレイ1002に表示させる時点では睫毛を描画せずに、画像編集時にユーザにより睫毛の追加指示がなされた時点で睫毛を描画することにしてもよい。この場合は、撮影時処理において表示用睫毛描画処理を行わずに、画像編集処理においてユーザにより睫毛を描画する指示操作がなされたことを検出すると、表示用睫毛描画処理を行い、表示用合成画像を生成して、ディスプレイ1002に表示させる。
6-5. Addition of eyelashes in graffiti mode The eyelashes may not be drawn when the display image is displayed on the display 1002 at the time of shooting, but may be drawn when the user gives an instruction to add eyelashes when editing the image. . In this case, if it is detected that the user has performed an instruction operation for drawing eyelashes in the image editing process without performing the display eyelash drawing process in the photographing process, the display eyelash drawing process is performed, and the display composite image is displayed. Is generated and displayed on the display 1002.

図25及び図26は、落書き時にディスプレイ1002に表示される落書き時画面の一例を示す図である。図25に示すように、落書き時画面の右下部にまつげ追加ボタン70を設け、このボタンに対してタッチ操作がなされた場合に、図26に示すように、睫毛が描画された画像がディスプレイ1002に表示される。   25 and 26 are diagrams illustrating an example of a graffiti screen displayed on the display 1002 during graffiti. As shown in FIG. 25, an eyelash addition button 70 is provided in the lower right part of the screen at the time of graffiti. When a touch operation is performed on this button, as shown in FIG. Is displayed.

6−6.消しゴムツール
消しゴムツールは、落書きレイヤーと表示用睫毛レイヤーの2つのレイヤーに共通的に用いられることとして説明したが、落書きレイヤー用の消しゴムツールと、睫毛レイヤー用の消しゴムツールとを別々に用意・使用可能としてもよい。その場合には、描画された睫毛のみを編集することが可能となる。
6-6. Eraser tool The eraser tool has been described as being commonly used for the graffiti layer and the display eyelash layer, but the eraser tool for the graffiti layer and the eraser tool for the eyelash layer are prepared and used separately. It may be possible. In that case, it is possible to edit only the drawn eyelashes.

6−7.目の大きさに応じた睫毛テクスチャ
睫毛テクスチャは、「睫毛モード」と「睫毛ボリューム」との組合せ4種類に対応した睫毛テクスチャが、表示用と、印刷用との2タイプずつ用意されていることとして説明した。しかし、ユーザの目の大きさは様々であるため、更に、細い目のユーザと、大きな目のユーザといった目の大きさ(縦横比率)に応じて、繊毛の長さ/密度が異なる睫毛テクスチャを用いることとしてもよい。
6-7. Eyelash texture according to the eye size The eyelash texture must be prepared for two types of eyelash textures for display and for printing, corresponding to the four combinations of “lash mode” and “lash volume”. As explained. However, since the size of the user's eyes varies, the eyelash texture having a different cilia length / density according to the size (height / width ratio) of a user with a small eye and a user with a large eye It may be used.

具体的には、目の画像部分を検出した際に、目頭「A」〜目尻「B」までの長さと、その線分に対する目の頂点「C」までの距離(垂線の長さ)との比率に応じて、目の縦横比率を判定する。そして、縦横比率に応じて、目の大きさ(目の縦横比率の度合い)を、「細め」、「ふつう」、「大きめ」の度合いに分ける。一方、「細め」、「ふつう」、「大きめ」のそれぞれの度合いに応じて、「細め」から「大きめ」になるにつれて繊毛の長さを長く、密度を濃くした睫毛テクスチャを予め用意しておく。例えば、繊毛の長さのみを可変した場合の睫毛テクスチャの例を図27に示す。そして、判定した目の大きさの度合いに応じた睫毛テクスチャを使用することとする。すなわち、表示用の睫毛テクスチャには、更に、「細め」、「ふつう」、「大きめ」の3タイプの睫毛テクスチャが、「睫毛モード」と「睫毛ボリューム」との組合せ4種類に対応して用意されることとなる。印刷用の睫毛テクスチャも同様である。   Specifically, when an eye image portion is detected, the length from the top of the eye “A” to the bottom of the eye “B” and the distance to the vertex “C” of the eye with respect to the line segment (length of the perpendicular) The aspect ratio of the eyes is determined according to the ratio. Then, according to the aspect ratio, the size of the eyes (degrees of the aspect ratio of the eyes) is divided into “thin”, “normal”, and “large” degrees. On the other hand, depending on the degree of “thin”, “normal”, and “large”, prepare the eyelash texture in which the length of the cilia becomes longer and the density is increased from “thin” to “large” . For example, FIG. 27 shows an example of the eyelash texture when only the length of the cilia is varied. The eyelash texture corresponding to the determined degree of eye size is used. In other words, for the display eyelash texture, three types of “narrow”, “normal”, and “large” eyelash textures are prepared corresponding to four combinations of “lash mode” and “lash volume”. Will be. The same applies to the eyelash texture for printing.

また、「6−3.睫毛画像の生成」欄で説明した図24の睫毛テクスチャを用いる場合には、縦方向に拡縮することで、繊毛の長さを可変することができる。このため、ユーザの目の大きさを判定した後に、その判定結果に応じて睫毛テクスチャを縦方向に拡縮することで、繊毛の長さを可変することができる。   In addition, when the eyelash texture of FIG. 24 described in the section “6-3. Generation of eyelash image” is used, the length of the cilia can be varied by scaling in the vertical direction. For this reason, after determining the size of the user's eyes, the length of the cilia can be varied by scaling the eyelash texture in the vertical direction according to the determination result.

1000 シールプリント機
1001 カメラ
1002 ディスプレイ
1003 スピーカ
1004 赤外線通信部
1005 コイン投入口
1006 シール払出口
1007 タッチペン
1008 印刷装置
1009 システム基板
1100 操作入力部
1200 処理部
1210 シール作成処理部
1211 撮影制御部
1213 睫毛描画処理部
1215 画像編集部
1217 印刷制御部
1230 表示制御部
1240 音生成部
1330 画像表示部
1340 音出力部
1400 通信部
1500 撮影部
1600 印刷部
1620 排出機構
1700 記憶部
DESCRIPTION OF SYMBOLS 1000 Seal printing machine 1001 Camera 1002 Display 1003 Speaker 1004 Infrared communication part 1005 Coin insertion slot 1006 Seal discharge outlet 1007 Touch pen 1008 Printing apparatus 1009 System board 1100 Operation input part 1200 Processing part 1210 Sticker production process part 1211 Shooting control part 1213 Eyelash drawing process Unit 1215 image editing unit 1217 print control unit 1230 display control unit 1240 sound generation unit 1330 image display unit 1340 sound output unit 1400 communication unit 1500 photographing unit 1600 printing unit 1620 discharge mechanism 1700 storage unit

Claims (14)

カメラと表示装置とを備えた画像生成装置であって、
前記カメラを制御してユーザを撮影する撮影制御手段と、
前記カメラにより撮影された撮影画像において睫毛描画位置を特定する睫毛描画位置特定手段と、
前記睫毛描画位置特定手段により特定された睫毛描画位置に所与の睫毛画像を描画する睫毛描画手段と、
前記睫毛描画手段により前記睫毛画像が描画された撮影画像を前記表示装置に表示させる表示制御手段と、
を備えた画像生成装置。
An image generation device including a camera and a display device,
Photographing control means for controlling the camera to photograph the user;
Eyelash drawing position specifying means for specifying the eyelash drawing position in a photographed image taken by the camera;
Eyelash drawing means for drawing a given eyelash image at the eyelash drawing position specified by the eyelash drawing position specifying means;
Display control means for displaying on the display device a captured image in which the eyelash image is drawn by the eyelash drawing means;
An image generation apparatus comprising:
前記睫毛描画手段は、
前記睫毛描画位置特定手段により特定された睫毛描画位置に基づいて、前記撮影画像中の前記睫毛画像の描画対象画素を判定する描画対象画素判定手段と、
前記描画対象画素の色が、前記睫毛画像の色の着色を許容する条件として予め定められた色条件を満たす場合に当該描画対象画素に前記睫毛画像の色を着色する着色手段と、
を有する請求項1に記載の画像生成装置。
The eyelash drawing means includes
Drawing target pixel determining means for determining a drawing target pixel of the eyelash image in the captured image based on the eyelash drawing position specified by the eyelash drawing position specifying means;
A coloring means for coloring the drawing target pixel with the color of the eyelash image when the color of the drawing target pixel satisfies a predetermined color condition as a condition for allowing coloring of the color of the eyelash image;
The image generation apparatus according to claim 1, comprising:
前記色条件には、肌の色を判別するための色条件が少なくとも設定されている請求項2に記載の画像生成装置。   The image generation apparatus according to claim 2, wherein at least a color condition for determining a skin color is set in the color condition. 前記睫毛描画手段は、
前記睫毛描画位置特定手段により特定された睫毛描画位置に基づいて、前記撮影画像中の前記睫毛画像の描画対象画素を判定する描画対象画素判定手段と、
前記描画対象画素の色が、前記睫毛画像の色の着色を許容しない条件として予め定められた色条件を満たさない場合に当該描画対象画素に前記睫毛画像の色を着色する着色手段と、
を有する請求項1に記載の画像生成装置。
The eyelash drawing means includes
Drawing target pixel determining means for determining a drawing target pixel of the eyelash image in the captured image based on the eyelash drawing position specified by the eyelash drawing position specifying means;
Coloring means for coloring the color of the eyelash image to the pixel to be drawn when the color of the pixel to be drawn does not satisfy a predetermined color condition as a condition not allowing the coloration of the color of the eyelash image;
The image generation apparatus according to claim 1, comprising:
前記色条件には、白目部分を判別するための色条件が少なくとも設定されている請求項4に記載の画像生成装置。   The image generation apparatus according to claim 4, wherein at least a color condition for determining a white-eye portion is set in the color condition. 印刷装置と、
前記睫毛画像が描画された前記撮影画像を前記印刷装置で印刷させる印刷制御手段と、
を更に備え、
前記表示装置の表示画面は前記印刷装置で印刷される印刷用紙の大きさより大きな画面であり、
前記睫毛画像には、印刷用睫毛画像と、前記印刷用睫毛画像よりも各繊毛の太さが細く、及び/又は、前記印刷用睫毛画像よりも繊毛の密度が低く、描かれた表示用睫毛画像とがあり、
前記睫毛描画手段は、
前記撮影画像に前記表示用睫毛画像を描画する表示用睫毛描画手段と、
前記撮影画像に前記印刷用睫毛画像を描画する印刷用睫毛描画手段と、
を有し、
前記表示制御手段は、前記表示用睫毛描画手段により前記表示用睫毛画像が描画された撮影画像を前記表示装置に表示させ、
前記印刷制御手段は、前記印刷用睫毛描画手段により前記印刷用睫毛画像が描画された撮影画像を前記印刷装置で印刷させる、
請求項1〜5の何れか一項に記載の画像生成装置。
A printing device;
Print control means for printing the photographed image on which the eyelash image is drawn by the printing device;
Further comprising
The display screen of the display device is a screen larger than the size of the printing paper printed by the printing device,
The eyelash image includes a printed eyelash image, and the thickness of each cilia is narrower than that of the printing eyelash image, and / or the density of the cilia is lower than that of the printing eyelash image, and the display eyelash drawn. There is an image,
The eyelash drawing means includes
Display eyelash drawing means for drawing the display eyelash image on the captured image;
A printing eyelash drawing means for drawing the printing eyelash image on the photographed image;
Have
The display control means causes the display device to display a captured image in which the display eyelash image is drawn by the display eyelash drawing means,
The printing control unit causes the printing apparatus to print a captured image in which the printing eyelash image is drawn by the printing eyelash drawing unit;
The image generation apparatus as described in any one of Claims 1-5.
前記表示装置の表示画面に対するユーザの消去軌跡の入力操作に従って、前記表示装置に表示制御された撮影画像から前記表示用睫毛画像を部分的に消去する表示用睫毛部分消去手段と、
前記消去軌跡に従って、前記印刷用睫毛画像が描画された撮影画像から前記印刷用睫毛画像を部分的に消去する印刷用睫毛部分消去手段と、
を更に備え、
前記印刷制御手段は、前記印刷用睫毛部分消去手段により部分的に前記印刷用睫毛画像が消去された撮影画像を前記印刷装置で印刷させる、
請求項6に記載の画像生成装置。
Display eyelash part erasing means for partially erasing the display eyelash image from the captured image controlled to be displayed on the display device according to an input operation of the user's erasing locus on the display screen of the display device;
A printing eyelash part erasing unit for partially erasing the printing eyelash image from a photographed image on which the printing eyelash image is drawn according to the erasing locus;
Further comprising
The printing control means causes the printing apparatus to print a photographed image in which the printing eyelash image is partially erased by the printing eyelash part erasing means.
The image generation apparatus according to claim 6.
前記睫毛描画位置特定手段は、前記睫毛描画位置として前記撮影画像中のユーザのアイライン部分を特定し、
予め定められた睫毛パターン画像を、前記アイライン部分の形状に合致させるように変形させて前記睫毛画像を生成する睫毛画像生成手段を更に備えた、
請求項1〜7の何れか一項に記載の画像生成装置。
The eyelash drawing position specifying means specifies the user's eyeline part in the captured image as the eyelash drawing position,
Further comprising eyelash image generation means for generating the eyelash image by deforming a predetermined eyelash pattern image so as to match the shape of the eyeline part,
The image generation apparatus as described in any one of Claims 1-7.
前記睫毛画像生成手段は、前記アイライン部分の長さに応じて前記睫毛パターン画像を拡縮して前記睫毛画像を生成する、
請求項8に記載の画像生成装置。
The eyelash image generation means generates the eyelash image by scaling the eyelash pattern image according to the length of the eyeline part.
The image generation apparatus according to claim 8.
前記撮影画像中の前記ユーザの目の縦横比率又はその度合を判定する縦横比判定手段を更に備え、
前記睫毛描画手段は、前記縦横比判定手段の判定結果に基づいて繊毛の長短及び/又は密度を可変させて睫毛画像を描画する、
請求項1〜9の何れか一項に記載の画像生成装置。
Aspect ratio determining means for determining the aspect ratio or degree of the eyes of the user in the captured image,
The eyelash drawing means draws an eyelash image by varying the length and / or density of cilia based on the determination result of the aspect ratio determination means.
The image generation apparatus as described in any one of Claims 1-9.
前記睫毛描画位置特定手段により特定された前記睫毛描画位置及びその近傍位置の色に基づいて、前記睫毛画像の色を決定する睫毛色決定手段を更に備え、
前記睫毛画像生成手段は、前記睫毛色決定手段により決定された色で前記睫毛画像を描画する、
請求項1〜10の何れか一項に記載の画像生成装置。
Further comprising eyelash color determining means for determining the color of the eyelash image based on the color of the eyelash drawing position specified by the eyelash drawing position specifying means and the vicinity thereof,
The eyelash image generation means draws the eyelash image with the color determined by the eyelash color determination means.
The image generation apparatus as described in any one of Claims 1-10.
カメラを制御してユーザを撮影する撮影制御ステップと、
前記カメラにより撮影された撮影画像において睫毛描画位置を特定する睫毛描画位置特定ステップと、
前記撮影画像中の前記睫毛描画位置特定ステップにおいて特定された睫毛描画位置に所与の睫毛画像を描画する睫毛描画ステップと、
前記睫毛描画ステップにおいて前記睫毛画像が描画された撮影画像を前記表示装置に表示させる表示制御ステップと、
前記睫毛画像が描画された前記撮影画像を前記印刷装置で印刷させる印刷制御ステップと、
を含むプリントシール製造方法。
A shooting control step for shooting the user by controlling the camera;
An eyelash drawing position specifying step for specifying an eyelash drawing position in a captured image taken by the camera;
An eyelash drawing step of drawing a given eyelash image at the eyelash drawing position specified in the eyelash drawing position specifying step in the captured image;
A display control step of causing the display device to display a captured image in which the eyelash image is drawn in the eyelash drawing step;
A printing control step of causing the printing device to print the captured image on which the eyelash image is drawn; and
A method for producing a print sticker.
カメラと表示装置とを備えた装置に内蔵されたコンピュータを、
前記カメラを制御してユーザを撮影する撮影制御手段、
前記カメラにより撮影された撮影画像において睫毛描画位置を特定する睫毛描画位置特定手段、
前記撮影画像中の前記睫毛描画位置特定手段により特定された睫毛描画位置に所与の睫毛画像を描画する睫毛描画手段、
前記睫毛描画手段により前記睫毛画像が描画された撮影画像を前記表示装置に表示させる表示制御手段、
として機能させるためのプログラム。
A computer built in a device equipped with a camera and a display device,
Photographing control means for controlling the camera and photographing the user;
Eyelash drawing position specifying means for specifying the eyelash drawing position in the photographed image taken by the camera;
Eyelash drawing means for drawing a given eyelash image at the eyelash drawing position specified by the eyelash drawing position specifying means in the captured image;
Display control means for displaying on the display device a photographed image in which the eyelash image is drawn by the eyelash drawing means;
Program to function as.
請求項13に記載のプログラムを記憶したコンピュータ読み取り可能な記憶媒体。   A computer-readable storage medium storing the program according to claim 13.
JP2009153042A 2009-06-26 2009-06-26 Image generating apparatus and print sticker manufacturing method Expired - Fee Related JP4833322B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2009153042A JP4833322B2 (en) 2009-06-26 2009-06-26 Image generating apparatus and print sticker manufacturing method
CN201010216241.1A CN101938591B (en) 2009-06-26 2010-06-28 Image generating device and label making method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009153042A JP4833322B2 (en) 2009-06-26 2009-06-26 Image generating apparatus and print sticker manufacturing method

Publications (2)

Publication Number Publication Date
JP2011008643A true JP2011008643A (en) 2011-01-13
JP4833322B2 JP4833322B2 (en) 2011-12-07

Family

ID=43391704

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009153042A Expired - Fee Related JP4833322B2 (en) 2009-06-26 2009-06-26 Image generating apparatus and print sticker manufacturing method

Country Status (2)

Country Link
JP (1) JP4833322B2 (en)
CN (1) CN101938591B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015122741A (en) * 2013-11-21 2015-07-02 フリュー株式会社 Photo sticker generation apparatus, image processing method, and program
EP2955693A1 (en) 2014-06-09 2015-12-16 Panasonic Intellectual Property Management Co., Ltd. Wrinkle detection apparatus and wrinkle detection method
EP2955663A2 (en) 2014-06-09 2015-12-16 Panasonic Intellectual Property Management Co., Ltd. Wrinkle detection apparatus and wrinkle detection method
US9501689B2 (en) 2014-03-13 2016-11-22 Panasonic Intellectual Property Management Co., Ltd. Image processing apparatus and image processing method
JP2021039654A (en) * 2019-09-05 2021-03-11 フリュー株式会社 Image processing device, image processing method, and program
JP2021082939A (en) * 2019-11-19 2021-05-27 株式会社アクセル Design support device, design support method, and program

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102809987A (en) * 2011-06-01 2012-12-05 康准电子科技(昆山)有限公司 Handheld computer
CN107291346B (en) * 2016-04-12 2021-07-06 北京三星通信技术研究有限公司 Terminal device and method and device for processing drawing content of terminal device
CN109426767A (en) * 2017-08-24 2019-03-05 丽宝大数据股份有限公司 Informer describes guidance device and its method
CN108898649A (en) * 2018-06-15 2018-11-27 Oppo广东移动通信有限公司 Image processing method and device
CN109165571B (en) * 2018-08-03 2020-04-24 北京字节跳动网络技术有限公司 Method and apparatus for inserting image

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004001495A (en) * 2003-04-22 2004-01-08 Casio Comput Co Ltd Printer
JP2005092588A (en) * 2003-09-18 2005-04-07 Hitachi Software Eng Co Ltd Composite image print device and image editing method
JP2006079619A (en) * 2004-09-07 2006-03-23 L'oreal Sa Method and device for generating synthesized image of at least one fringe of lash
JP2006293421A (en) * 2005-04-05 2006-10-26 Omron Entertainment Kk Photographic sticker making device and method, and program
JP2007213623A (en) * 2002-07-08 2007-08-23 Toshiba Corp Virtual makeup device and method therefor
JP2009064423A (en) * 2007-08-10 2009-03-26 Shiseido Co Ltd Makeup simulation system, makeup simulation device, makeup simulation method, and makeup simulation program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7773091B2 (en) * 2004-09-07 2010-08-10 L'oreal Method and device for generating a synthesized image of at least one fringe of lashes

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007213623A (en) * 2002-07-08 2007-08-23 Toshiba Corp Virtual makeup device and method therefor
JP2004001495A (en) * 2003-04-22 2004-01-08 Casio Comput Co Ltd Printer
JP2005092588A (en) * 2003-09-18 2005-04-07 Hitachi Software Eng Co Ltd Composite image print device and image editing method
JP2006079619A (en) * 2004-09-07 2006-03-23 L'oreal Sa Method and device for generating synthesized image of at least one fringe of lash
JP2006293421A (en) * 2005-04-05 2006-10-26 Omron Entertainment Kk Photographic sticker making device and method, and program
JP2009064423A (en) * 2007-08-10 2009-03-26 Shiseido Co Ltd Makeup simulation system, makeup simulation device, makeup simulation method, and makeup simulation program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015122741A (en) * 2013-11-21 2015-07-02 フリュー株式会社 Photo sticker generation apparatus, image processing method, and program
US9501689B2 (en) 2014-03-13 2016-11-22 Panasonic Intellectual Property Management Co., Ltd. Image processing apparatus and image processing method
EP2955693A1 (en) 2014-06-09 2015-12-16 Panasonic Intellectual Property Management Co., Ltd. Wrinkle detection apparatus and wrinkle detection method
EP2955663A2 (en) 2014-06-09 2015-12-16 Panasonic Intellectual Property Management Co., Ltd. Wrinkle detection apparatus and wrinkle detection method
US9443131B2 (en) 2014-06-09 2016-09-13 Panasonic Intellectual Property Management Co., Ltd. Wrinkle detection apparatus and wrinkle detection method
US9782119B2 (en) 2014-06-09 2017-10-10 Panasonic Intellectual Property Management Co., Ltd. Wrinkle detection apparatus and wrinkle detection method
JP2021039654A (en) * 2019-09-05 2021-03-11 フリュー株式会社 Image processing device, image processing method, and program
JP2021082939A (en) * 2019-11-19 2021-05-27 株式会社アクセル Design support device, design support method, and program
JP7025040B2 (en) 2019-11-19 2022-02-24 株式会社アクセル Design support equipment, design support methods, and programs

Also Published As

Publication number Publication date
CN101938591B (en) 2014-10-08
CN101938591A (en) 2011-01-05
JP4833322B2 (en) 2011-12-07

Similar Documents

Publication Publication Date Title
JP4833322B2 (en) Image generating apparatus and print sticker manufacturing method
JP3856211B2 (en) Image printing apparatus and method, and program
JP5418708B2 (en) Photo sealing machine, photo sealing machine processing method and program
US9519950B2 (en) Image generating apparatus and image generating method
JP2012014680A (en) Information processing program, information processor, information processing system and information processing method
JP5229910B2 (en) Image processing apparatus, image output apparatus, image processing method, and computer program
JP5782873B2 (en) Game shooting device, game shooting method and program
JP6206707B2 (en) Imaging apparatus and display control method
JP2005092588A (en) Composite image print device and image editing method
JP2012034242A (en) Imaging apparatus, program, information storage medium and imaging method
JP6754229B2 (en) Image processing equipment and computer programs
JP5750961B2 (en) Game shooting device, game shooting method, and program
JP2013243466A (en) Imaging apparatus for game, imaging method for game, and program
JP5541545B1 (en) Photo sticker creation apparatus and method, and program
JP2012169987A (en) Automatic photograph making device
JP3859693B1 (en) Automatic photography apparatus and method
JP6245529B2 (en) Game shooting device, game shooting method and program
JP2018029343A (en) Image processing apparatus, image processing method, and program
JP5483136B1 (en) Imaging apparatus and display control method
JP5527460B2 (en) Game shooting device, game shooting method and computer program
JP2018107515A (en) Photograph formation game machine and image processing method
JP2011164141A (en) Automatic photograph producing device
JP5657942B2 (en) Imaging apparatus, program, information storage medium, and imaging method
JP6156559B2 (en) Game shooting device, game shooting method, and program
JP5887752B2 (en) Photography game device, photography game method, and photography game program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110405

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110426

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110623

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110712

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110819

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: 20110920

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: 20110921

R150 Certificate of patent or registration of utility model

Ref document number: 4833322

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140930

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140930

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees