JP2017120660A - Image processing device, image processing method and computer program - Google Patents

Image processing device, image processing method and computer program Download PDF

Info

Publication number
JP2017120660A
JP2017120660A JP2017048880A JP2017048880A JP2017120660A JP 2017120660 A JP2017120660 A JP 2017120660A JP 2017048880 A JP2017048880 A JP 2017048880A JP 2017048880 A JP2017048880 A JP 2017048880A JP 2017120660 A JP2017120660 A JP 2017120660A
Authority
JP
Japan
Prior art keywords
image
cpu
face
makeup
processing
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.)
Pending
Application number
JP2017048880A
Other languages
Japanese (ja)
Inventor
秀一 末宗
Shuichi Suemune
秀一 末宗
桃子 脇田
Momoko Wakita
桃子 脇田
泰平 加藤
Taihei Kato
泰平 加藤
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.)
Make Software Co Ltd
Original Assignee
Make Software Co Ltd
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 Make Software Co Ltd filed Critical Make Software Co Ltd
Priority to JP2017048880A priority Critical patent/JP2017120660A/en
Publication of JP2017120660A publication Critical patent/JP2017120660A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing device for enabling a user to easily acquire a natural photographing result subjected to various makeup, and to provide an image processing method and a computer program.SOLUTION: The image processing device includes means for acquiring a series of a plurality of images composed of a plurality of pixels arranged in a matrix and specification means for specifying the face of a person photographed in the plurality of acquired images and the area of an organ in the face, and causes the specification means to overlap a cosmetic image being a photographic image of lips, cheeks, color contacts, eyelines or false eyelashes which are stored in advance on the area specified by the specification means. The image processing device includes overlapping means for overlapping the cosmetic image on one of a plurality of face areas specified in each one image or any of all of the plurality of face areas in the image of the plurality of images, respectively on a screen divided so as to receive respective operations from a plurality of persons.SELECTED DRAWING: Figure 36

Description

本発明は、人物であるユーザを被写体として写真撮影し、撮影結果が出力された所定のシート又はデータを得ることができる撮影遊戯機における画像処理に関し、特に、化粧が施された自然な撮影結果を容易に得ることを可能とする画像処理装置、画像処理方法及びコンピュータプログラムに関する。   The present invention relates to image processing in a shooting game machine capable of taking a photograph of a user as a subject and obtaining a predetermined sheet or data on which the shooting result is output, and in particular, a natural shooting result with makeup applied. The present invention relates to an image processing apparatus, an image processing method, and a computer program.

ユーザが自身を撮影して得られる写真シールシートを排出する装置が撮影遊戯機として提供されている。昨今の撮影遊戯機のユーザには、ユーザ自身がファッションモデル又はアーティストのように変身した写真画像をゲーム感覚で得たいという要望がある。また、実際の生活では派手過ぎてできないようなメイク、又は素材を自身で揃えることが難しいメイク等を含む多様なメイクを種々試すことを手軽に楽しみたいなどの要望がある。このような要望に対応するべく、撮影により得られた画像に対し、種々の加工等の画像処理が行なわれている。例えば、顔認識技術を用いて識別された顔、及び顔の中の目、口、鼻等の部分の大きさ等を、「なりたい顔」として求められているバランスに近づけるように変更する画像処理が行なわれる。また、得られた画像に対してユーザが選択した装飾用のスタンプ画像、ユーザが自由に描画した絵、文字等を重畳させて合成した画像を作成し出力する画像処理が行なわれる。   An apparatus for discharging a photo sticker sheet obtained by a user photographing himself / herself is provided as a photographing game machine. There is a demand for users of recent photographing amusement machines to obtain a photographic image transformed like a fashion model or an artist as if it were a game. In addition, there is a demand for easily enjoying various trials, including makeup that cannot be flashy in actual life, or makeup that makes it difficult to prepare materials by itself. In order to meet such a demand, image processing such as various processing is performed on an image obtained by photographing. For example, image processing that changes the size of the face identified using face recognition technology and the size of the face, eyes, mouth, nose, etc. so that it is close to the balance required for the face you want to be Is done. In addition, image processing is performed in which a decorative stamp image selected by the user, a picture freely drawn by the user, a character, and the like are superimposed on the obtained image to generate and output an image.

ユーザがデジタル画像内で自分自身を変身させたいと思う要望に応えるべく、顔にメイク(化粧)が施される画像処理が実施されている。撮影された画像内の人物の顔領域に対しメイクが施されたような画像処理を行なう技術に関しては、以下のような技術が提案されている。   In order to respond to a user's desire to transform himself / herself in a digital image, image processing is performed in which makeup (makeup) is applied to the face. As a technique for performing image processing such that makeup is applied to the face area of a person in a photographed image, the following techniques have been proposed.

特許文献1には撮影遊戯機に関し、化粧を施す落書きを可能とする発明が開示されている。特許文献1には、撮影により得られた画像を含む落書き用の操作画面に、落書きブラシのパターン及び色をかわいい、クール等のテーマ毎にメイクパレットとして出力し、メイクパレット内からコンセプトを選択し、選択されたテーマのパターン及び色を用いた落書きを受け付け、化粧を施した撮影結果を提供することが提案されている。   Patent Document 1 discloses an invention that enables graffiti to apply makeup on a shooting game machine. In Patent Document 1, a graffiti brush pattern and color are output as a makeup palette for each theme such as cute and cool on a graffiti operation screen including an image obtained by shooting, and a concept is selected from the makeup palette. It has been proposed to accept graffiti using a selected theme pattern and color and provide a photographed result with makeup.

特許文献2には撮影遊戯機に関し、撮影された画像内のユーザの唇の部分に口紅を塗ったように画像処理を施すことが提案されている。特に、顔の唇部分を認識して抽出した唇画像を撮影された画像に重畳し、重畳された唇画像の色又はグラデーション等の変更、一部の削除を可能とした構成とすることで、口紅を付けたように見える画像をユーザが満足する状態で提供することができる技術が提案されている。特許文献2に開示されている画像処理では更に、顔の目の虹彩部分を認識してカラーコンタクトのように色を変える画像を撮影された画像に重畳し、又は、顔の目のまつ毛部分を認識してつけまつげを付加する処理を行なうことが提案されている。   Japanese Patent Application Laid-Open No. 2004-133620 proposes to perform image processing as if a lipstick was applied to a user's lip portion in a photographed image. In particular, by superimposing the lip image extracted by recognizing the lip part of the face on the captured image, it is possible to change the color or gradation etc. of the superimposed lip image, and to delete a part of it, There has been proposed a technique that can provide an image that looks like a lipstick while the user is satisfied. In the image processing disclosed in Patent Document 2, the iris part of the face eye is recognized and an image whose color is changed like a color contact is superimposed on the captured image, or the eyelash part of the face eye is added. It has been proposed to recognize and add false eyelashes.

特許文献3には、メイクシミュレーションに係る方法が提案されている。特許文献3に開示されている方法では、ユーザ夫々の顔の中の目、鼻又は口等の各部分の画像内での位置を精度よく顔認識技術によって認識し、各部分の位置を基準にして決定される化粧領域に、ブラシによって着色描画することで自然なメイクが実現されている。   Patent Document 3 proposes a method related to makeup simulation. In the method disclosed in Patent Document 3, the position of each part such as eyes, nose or mouth in the face of each user in the image is accurately recognized by face recognition technology, and the position of each part is used as a reference. Natural makeup is realized by coloring and drawing with a brush in the makeup area determined in this way.

特開2000−069404号公報Japanese Unexamined Patent Publication No. 2000-069404 特開2014−131160号公報JP, 2014-131160, A 特開2012−113747号公報JP 2012-113747 A

特許文献1では、ユーザ自身がペン等の入力装置を用いて操作画面上の顔領域に描画操作を行なう必要があり、メイクに不慣れなユーザにとっては、どのようにパターン又は色を選択し、どのように描画したらよいかが困難である。したがって、ユーザの操作性に対する満足度、及び撮影結果の内容に対する満足度がいずれも不十分であった。   In Patent Document 1, it is necessary for the user himself to perform a drawing operation on the face area on the operation screen using an input device such as a pen. For a user who is not familiar with makeup, how to select a pattern or color, It is difficult to draw. Therefore, the satisfaction degree with respect to the user's operability and the satisfaction degree with respect to the content of the photographing result are insufficient.

特許文献2では、唇部分以外の部分に対してメイクを施したような画像とする画像処理の具体的な方法については詳細な記載はない。人物の顔の中に元々存在していたまつげの領域に基づき、まつげの太さを増減させる加工(マスカラ処理)ではなく、つけまつげ等の人物の顔の中に存在していたものではない画像を顔領域に自動的に重畳させても、ユーザ自身の顔として自然に写るように画像処理を行なうことは非常に難しい。特に、つけまつげ及びカラーコンタクト等の目及び目の周辺の領域の加工は顔の印象を大きく変えるので、加工によっては人物の顔として過度に不自然な画像となり、結果によってはユーザの満足度を低下させる虞がある。したがって特許文献2に開示されている技術を用いるとしても、唇以外の部分には従来通り、ユーザ自身が描画する処理が必要であり、メイクに不慣れなユーザが容易に満足する画像を撮影遊戯機から得ることは依然として難しい。   In Patent Document 2, there is no detailed description of a specific method of image processing for making an image in which makeup other than the lip portion is applied. Based on the area of the eyelashes that originally existed in the person's face, instead of processing to increase or decrease the thickness of the eyelashes (mascara processing), an image that was not present in the person's face such as false eyelashes Even if the image is automatically superimposed on the face area, it is very difficult to perform image processing so that the user's own face is naturally captured. In particular, the processing of the eye and the area around the eye, such as false eyelashes and color contacts, greatly changes the impression of the face. Depending on the processing, the image becomes excessively unnatural as a human face, and the user's satisfaction may be reduced depending on the result. There is a risk of causing it. Therefore, even if the technique disclosed in Patent Document 2 is used, processing other than the lips requires drawing processing by the user himself / herself as usual, and an image that is easily satisfied by a user unfamiliar with makeup is taken. It is still difficult to get from.

満足度を向上させるために、特許文献3に開示されているような技術によって、自然なメイク後の画像を作成することが期待される。しかしながら、派手なメイク、自身では実施が難しいメイク等を含む多様なメイクを種々試すことを手軽に楽しむには、特許文献3に開示されている方法ではユーザ個々の顔認識技術の精度が高過ぎ、また、精度が高過ぎるために描画する処理時間を要する可能性がある。更に、特許文献3に開示されている技術は、人物の顔の中に存在している器官及び肌の一部の形を変形させるか、一部の色を変更させるなどの処理を行なっている。つまり、人物の顔の中に元々存在していないメイク用の素材画像を顔領域に自動的に重畳させるメイクについては実現されていない。   In order to improve the degree of satisfaction, it is expected to create a natural post-makeup image by the technique disclosed in Patent Document 3. However, the accuracy of the individual face recognition technology is too high for the method disclosed in Patent Document 3 to easily enjoy various trials including glamorous makeup and makeup that is difficult to implement by itself. In addition, since the accuracy is too high, it may take a processing time for drawing. Furthermore, the technique disclosed in Patent Document 3 performs processing such as changing the shape of a part of an organ and skin existing in a person's face or changing a part of color. . In other words, makeup that automatically superimposes a makeup material image that does not originally exist in a person's face on the face area has not been realized.

本発明は斯かる事情に鑑みてなされたものであり、多様なメイクが施された自然な撮影結果をユーザが気軽に得ることが可能となる画像処理装置、画像処理方法、及びコンピュータプログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and provides an image processing apparatus, an image processing method, and a computer program that enable a user to easily obtain natural shooting results with various makeups applied. The purpose is to do.

本発明に係る画像処理装置は、マトリクス状に配列した複数の画素からなる一連の複数の画像を取得する手段と、取得された複数の画像に撮影されている人物の顔及び該顔内の器官の領域を特定する特定手段とを備え、予め記憶されているリップ、チーク、カラーコンタクト、アイライン、又はつけまつげの写真画像である化粧用画像を前記特定手段により特定された領域に重畳させる画像処理装置において、複数の人物から各々操作を受け付けるべく分別された画面上にて夫々、前記複数の画像の内の1つの画像毎に、該画像内で特定された複数の顔領域の内の1つ、及び前記複数の顔領域全ての内のいずれかに、前記化粧用画像を重畳させる重畳手段を備える。   An image processing apparatus according to the present invention includes a means for acquiring a series of a plurality of images composed of a plurality of pixels arranged in a matrix, a human face imaged in the acquired images, and an organ in the face Image processing for superimposing a prestored cosmetic image, which is a photographic image of a lip, cheek, color contact, eyeline, or false eyelash, on the area specified by the specifying means In the apparatus, one of the plurality of face regions specified in each of the plurality of images on a screen separated to receive operations from a plurality of persons. And superimposing means for superimposing the cosmetic image on any of the plurality of face regions.

本発明に係る画像処理装置は、前記重畳手段は、前記複数の画像の内の1つの画像毎に、前記化粧用画像の重畳対象として、前記画像内で特定された複数の顔領域の内の1つずつ、及び前記複数の顔領域全ての内のいずれかの選択を受け付ける選択手段を更に備える。   In the image processing apparatus according to the present invention, the superimposing unit includes, for each image among the plurality of images, a plurality of face regions specified in the image as a superimposition target of the makeup image. Selection means for accepting selection one by one and any one of all of the plurality of face regions is further provided.

本発明に係る画像処理装置は、前記分別された画面は夫々、前記化粧用画像の重畳対象とする顔領域の表示画面を含み、前記選択手段が選択される都度に、前記表示画面には、前記画像内で特定された複数の顔領域の内の顔領域を1つずつ含む画像、及び前記画像内で特定された複数の顔領域全てを含む画像が順に切り替えられて表示される。   In the image processing apparatus according to the present invention, each of the sorted screens includes a display screen of a face area to be superimposed on the makeup image, and each time the selection unit is selected, the display screen includes: An image including one face area among the plurality of face areas specified in the image and an image including all the plurality of face areas specified in the image are sequentially switched and displayed.

本発明に係る画像処理方法は、マトリクス状に配列した複数の画素からなる一連の複数の画像を取得し、取得した複数の画像に撮影されている人物の顔及び該顔内の器官の領域を特定し、予め記憶されているリップ、チーク、カラーコンタクト、アイライン、又はつけまつげの写真画像である化粧用画像を特定された領域に重畳させる画像処理方法において、複数の人物から各々操作を受け付けるべく分別された画面上にて夫々、前記複数の画像の内の1つの画像毎に、該画像内で特定された複数の顔領域の内の1つ、及び前記複数の顔領域全ての内のいずれかの選択を受け付け、選択された顔領域に前記化粧用画像を重畳させる。   An image processing method according to the present invention acquires a series of a plurality of images composed of a plurality of pixels arranged in a matrix, and identifies a human face imaged in the acquired plurality of images and an organ region within the face. In an image processing method for identifying and superimposing a pre-stored lip, cheek, color contact, eyeline, or false eyelash cosmetic image on a specified area, to receive operations from a plurality of persons. For each one of the plurality of images on the sorted screen, one of the plurality of face areas specified in the image and all of the plurality of face areas are selected. Is selected, and the makeup image is superimposed on the selected face area.

本発明に係るコンピュータプログラムは、コンピュータに、マトリクス状に配列した複数の画素からなる一連の複数の画像を取得させ、取得された複数の画像に撮影されている人物の顔及び該顔内の器官の領域を特定させ、予め記憶されているリップ、チーク、カラーコンタクト、アイライン、又はつけまつげの写真画像である化粧用画像を特定された領域に重畳させるコンピュータプログラムにおいて、前記コンピュータに、複数の人物から各々操作を受け付けるべく分別された画面上にて夫々、前記複数の画像の内の1つの画像毎に、該画像内で特定された複数の顔領域の内の1つ、及び前記複数の顔領域全ての内のいずれかに、前記化粧用画像を重畳する処理を実行させる。   A computer program according to the present invention causes a computer to acquire a series of a plurality of images composed of a plurality of pixels arranged in a matrix, and a person's face captured in the acquired images and organs in the face A computer program for identifying a region of the image and superimposing a pre-stored cosmetic image that is a photographic image of lip, cheek, color contact, eyeline, or false eyelashes on the identified region. Each of the plurality of images on one of the screens sorted to receive the operation, and one of the plurality of face regions specified in the image and the plurality of faces A process of superimposing the cosmetic image on any one of the entire regions is executed.

本発明では、ユーザを撮影して得られた画像から顔領域又は各器官の領域そのものを抽出した画像のみならず、テーマの選択に応じて予め記憶してある前記人物の顔には元々存在しない素材画像である化粧用画像を重畳するに際し、重畳される領域を、1人ずつと、全員とのいずれかとすることができる。   In the present invention, not only an image obtained by extracting a face region or each organ region itself from an image obtained by photographing a user, but also does not originally exist in the face of the person stored in advance according to a theme selection. When superimposing a makeup image, which is a material image, the region to be superimposed can be either one person or everyone.

本発明では、1人ずつ及び全員(2人であれば1人目、2人目、及び全員、3人であれば1人目、2人目、3人目及び全員)の内のいずれかを選択できる。   In the present invention, any one of one person and all persons (first person, second person, and all persons if two persons, first person, second person, third person and all persons if three persons) can be selected.

本発明では、いずれかが選択がなされる都度、重畳対象となっている顔領域を含む画像を表示する画面内で、1つずつの顔領域を含む画像、及び全員の顔領域を含む画像に順に切り替わるから、いずれの顔領域が重畳対象であるかをユーザが把握することが可能である。   In the present invention, every time one of the selections is made, an image including one face area and an image including all face areas are displayed on the screen displaying the image including the face area to be superimposed. Since the switching is performed in order, the user can grasp which face region is a superposition target.

本発明による場合、化粧用画像が重畳される領域を、1人ずつと、全員とのいずれかから選択できる。   According to the present invention, the region on which the cosmetic image is superimposed can be selected from one person or everyone.

ユーザ自身を撮影して得られた画像から抽出された領域内の大きさ又は太さ等を変更するのではなく、つけまつげのような予め記憶してあるユーザの顔には元々存在しない化粧用の素材の画像を重畳させても自然に見えるような画像を作成することは、従来では非常に困難であった。しかしながら本発明による場合、顔の中で特定される顔領域に含まれる各器官の領域の位置等を基準として化粧用素材の画像の位置、大きさ、又は角度を決定して更に変形を行なうことにより、スタンプ画像のように明らかに重畳されていることがわかるような画像ではなく、ユーザ自身が自然に写っていて、プロによってメイクを施されたファッションモデル又はアーティストを撮影したような画像の出力を実現できた。   Instead of changing the size or thickness of the area extracted from the image obtained by photographing the user himself, the cosmetic face that does not originally exist in the user's face that is stored in advance, such as false eyelashes Conventionally, it has been very difficult to create an image that looks natural even when material images are superimposed. However, according to the present invention, the position, size, or angle of the cosmetic material image is determined based on the position of each organ area included in the face area specified in the face, and further deformation is performed. This is not an image that clearly shows a superimposed image, such as a stamp image, but an image that looks like a photograph of a fashion model or artist that the user has taken naturally and has been made by a professional. Was realized.

本実施の形態における撮影遊戯機の外観を示す斜視図である。It is a perspective view which shows the external appearance of the imaging | photography game machine in this Embodiment. 本実施の形態における撮影遊戯機の構成を模式的に示すブロック図である。It is a block diagram which shows typically the structure of the imaging | photography game machine in this Embodiment. 本実施の形態の撮影遊戯機にて実行される全体処理の一例を示すフローチャートである。It is a flowchart which shows an example of the whole process performed with the imaging | photography game machine of this Embodiment. 本実施の形態の撮影遊戯機にて実行される全体処理の一例を示すフローチャートである。It is a flowchart which shows an example of the whole process performed with the imaging | photography game machine of this Embodiment. 落書き用操作画面の一例を示す説明図である。It is explanatory drawing which shows an example of the operation screen for graffiti. 手動モードの場合のメイクパレットの例を示す説明図である。It is explanatory drawing which shows the example of the makeup palette in the case of manual mode. 画像処理部のCPUによる操作を受け付ける処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence which receives operation by CPU of an image process part. メイクに係る操作及び選択を受け付ける処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence which receives operation and selection which concern on makeup. 落書き編集に係るレイヤー構造の一例を模式的に示す説明図である。It is explanatory drawing which shows typically an example of the layer structure which concerns on graffiti editing. 「リップ」用の事前処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the pre-processing for "lip". 「MAKE」の操作の受け付け中における「リップ」に係る処理手順の一例を示すフローチャートである。10 is a flowchart illustrating an example of a processing procedure related to “lip” during reception of an operation of “MAKE”. 個別/全員切替処理の一例の詳細を示すフローチャートである。It is a flowchart which shows the detail of an example of an individual / all persons switching process. 調整用画面の表示例を示す説明図である。It is explanatory drawing which shows the example of a display of the screen for adjustment. 調整用画面によって調整されるリップメイクの内容例を示す説明図である。It is explanatory drawing which shows the example of the content of the lip makeup adjusted with the screen for adjustment. 「チーク」用の事前処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the pre-processing for "teak". 「MAKE」の操作の受け付け中における「チーク」に係る処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence which concerns on "teak" during reception of operation of "MAKE". 手動モードの場合の調整用画面の表示例を示す説明図である。It is explanatory drawing which shows the example of a display of the screen for adjustment in the case of manual mode. 「カラコン」が選択されている場合のメイクパレットの表示例を示す説明図である。It is explanatory drawing which shows the example of a display of a makeup palette when "Color control" is selected. 「カラコン」用の事前処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the pre-processing for "Colorcon". 重畳用のカラコン画像を作成する過程を説明する説明図である。It is explanatory drawing explaining the process which produces the color contact image for superimposition. 「MAKE」の操作の受け付け中における「カラコン」に係る処理手順の一例を示すフローチャートである。10 is a flowchart illustrating an example of a processing procedure related to “color control” during reception of an operation of “MAKE”. 「アイライン」が選択されている場合のメイクパレットの内容例を示す説明図である。It is explanatory drawing which shows the example of the content of the makeup palette in case "eye line" is selected. 予め記憶されているアイライン画像の内容例を示す説明図である。It is explanatory drawing which shows the example of the content of the eyeline image memorize | stored beforehand. 「アイライン」用の事前処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the pre-processing for "eyeline". 重畳用のアイライン画像を作成する過程を説明する説明図である。It is explanatory drawing explaining the process which produces the eyeline image for superimposition. 「MAKE」の操作の受け付け中における「アイライン」処理に係る処理手順の一例を示すフローチャートである。10 is a flowchart illustrating an example of a processing procedure related to an “eyeline” process during reception of an operation of “MAKE”. 「つけまつげ」が選択されている場合のメイクパレットの内容例を示す説明図である。It is explanatory drawing which shows the example of the content of the makeup palette when "false eyelashes" is selected. 予め記憶されているつけまつげ画像の内容例を示す説明図である。It is explanatory drawing which shows the example of the content of the false eyelash image memorize | stored beforehand. 複数段階のつけまつげ画像を作成する処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence which produces a multi-step false eyelash image. 距離変換マスク画像の内容例を模式的に示す説明図である。It is explanatory drawing which shows typically the example of the content of a distance conversion mask image. 「つけまつげ」用の事前処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the pre-processing for "false eyelashes". 「MAKE」の操作の受け付け中における「つけまつげ」処理に係る処理手順の一例を示すフローチャートである。12 is a flowchart illustrating an example of a processing procedure related to “false eyelash” processing during reception of an operation of “MAKE”. 「ヘアカラー」が選択されている場合のメイクパレットの表示例を示す説明図である。It is explanatory drawing which shows the example of a display of a makeup palette when "hair color" is selected. 「MAKE」の操作の受け付け中における「ヘアカラー」処理に係る処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence which concerns on the "hair color" process in accepting operation of "MAKE". 「ヘアカラー」のグラデーションパターンでの描画例を模式的に示す説明図である。It is explanatory drawing which shows typically the example of drawing in the gradation pattern of "hair color". 「ワンタッチ」が選択されている場合のメイクパレットの表示例を示す説明図である。It is explanatory drawing which shows the example of a display of a makeup palette when "one touch" is selected. 「MAKE」の操作の受け付け中における「ワンタッチ」に係る処理手順の一例を示すフローチャートである。14 is a flowchart illustrating an example of a processing procedure related to “one touch” during reception of an operation of “MAKE”.

以下、本発明をその実施の形態を示す図面に基づいて具体的に説明する。   Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof.

図1は、本実施の形態における撮影遊戯機の外観を示す斜視図である。撮影遊戯機は全体として、複数のユーザが入り込むことが可能な略直方体形状の箱型の装置である。撮影遊戯機は、おおまかに撮影エリアA及び編集エリアBに分けることができ、夫々のエリアA,Bに複数の機器が設けられて構成される。   FIG. 1 is a perspective view showing an external appearance of a photographing amusement machine according to the present embodiment. A photographing amusement machine as a whole is a box-shaped device having a substantially rectangular parallelepiped shape that a plurality of users can enter. A shooting game machine can be roughly divided into a shooting area A and an editing area B, and a plurality of devices are provided in each of the areas A and B.

撮影エリアAには、事前接客部1及び撮影部2に係る機器が設けられている。事前接客部1は撮影エリアAの外側に向けて設けられているコイン投入口、タッチパネル式ディスプレイ及びスピーカ等を含んで構成されており、ユーザの撮影前のコインの投入、名前の登録等の操作を受け付ける。撮影部は、撮影エリアA内部の壁面に内側に向けて設置されているカメラ21、ディスプレイ22、照明装置群23、及びスピーカ24(図2参照)を含んで構成されており、ユーザに撮影ガイドを表示し、音声で案内しながら複数種類の画像を撮影し、撮影された画像を第1編集部3a及び第2編集部3b(図2参照)へ出力する処理を行なう。   In the shooting area A, devices related to the pre-service section 1 and the shooting section 2 are provided. The customer service section 1 includes a coin insertion slot, a touch panel display, a speaker, and the like that are provided toward the outside of the shooting area A, and operations such as inserting coins and registering a name before shooting by the user. Accept. The photographing unit is configured to include a camera 21, a display 22, a lighting device group 23, and a speaker 24 (see FIG. 2) installed inward on a wall surface inside the photographing area A. Is displayed, a plurality of types of images are photographed while being guided by voice, and the photographed images are output to the first editing unit 3a and the second editing unit 3b (see FIG. 2).

編集エリアBには、第1編集部3a、第2編集部3b及び印刷部4に係る機器が設けられている。第1編集部3a及び第2編集部3bは編集エリアBの中央部に、操作画面表示用のマルチタッチパネル式のディスプレイ30a,30b(図2参照)を夫々ユーザが操作しやすい高さに背中合わせで露出させた装置を含んで構成されている。第1編集部3a及び第2編集部3bは更にスピーカ33a,33b(図2参照)及び照明装置、並びに前記操作画面表示用のタッチペン31a,32a,31b,32b(図2参照)等を備えている。第1編集部3a及び第2編集部3bは、ユーザを撮影した撮影画像に基づく画像への落書き操作をディスプレイ30a,30b及びタッチペン31a,32a,31b,32bにて受け付け、受け付けられた操作に対応する画像処理を実行する。印刷部4は、編集エリアBの第1編集部3a,第2編集部3bを含む装置の筐体内に設けられるプリンタを含んで構成され、画像処理後の画像が印刷された写真シールシートを筐体の表面に設けられている吐出口から吐き出す。   In the editing area B, devices relating to the first editing unit 3a, the second editing unit 3b, and the printing unit 4 are provided. The first editing unit 3a and the second editing unit 3b are back-to-back at the center of the editing area B so that the user can operate the multi-touch panel displays 30a and 30b (see FIG. 2) for displaying the operation screen. Consists of an exposed device. The first editing unit 3a and the second editing unit 3b further include speakers 33a and 33b (see FIG. 2), a lighting device, and touch pens 31a, 32a, 31b and 32b (see FIG. 2) for displaying the operation screen. Yes. The first editing unit 3a and the second editing unit 3b accept a graffiti operation on an image based on a photographed image taken by the user on the displays 30a and 30b and the touch pens 31a, 32a, 31b, and 32b, and correspond to the accepted operation. The image processing to be executed is executed. The printing unit 4 includes a printer provided in the housing of the apparatus including the first editing unit 3a and the second editing unit 3b in the editing area B, and includes a photo sticker sheet on which an image after image processing is printed. It exhales from the outlet provided on the surface of the body.

図2は、本実施の形態における撮影遊戯機の構成を模式的に示すブロック図である。撮影遊戯機は、撮影エリアA及び編集エリアBにおけるユーザから視認可能な範囲に上述の事前接客部1、撮影部2、第1編集部3a、第2編集部3b及び印刷部4を備えているほか、撮影エリアA内の壁面に隠された箇所、又は編集エリアBの装置の筐体内部等のユーザから視認不可能な位置に、通信部5と制御機構とを備えている。   FIG. 2 is a block diagram schematically showing the configuration of the shooting game machine in the present embodiment. The shooting game machine includes the above-described pre-serving section 1, the shooting section 2, the first editing section 3a, the second editing section 3b, and the printing section 4 in a range that is visible to the user in the shooting area A and the editing area B. In addition, the communication unit 5 and the control mechanism are provided at a position hidden from the wall surface in the shooting area A, or at a position that cannot be seen by the user, such as inside the housing of the device in the editing area B.

通信部5は、インターネット等の外部ネットワークに接続して撮影された画像を含むデータの送受信を実現する。通信部5は制御機構に接続されており、制御機構は通信部5を介して外部ネットワーク上のサーバ装置と通信し、データの送受信を行なうことが可能である。本実施の形態における撮影遊戯機では、通信部5が撮影によって得られた画像データを撮影遊戯機のメーカが管理するサーバ装置へ送信する。これにより、ユーザはサーバ装置から自身の撮影画像を携帯電話機(スマートフォン)、タブレット、又はPC等の端末装置へダウンロードして取得することが可能である。   The communication unit 5 is connected to an external network such as the Internet and realizes transmission / reception of data including images taken. The communication unit 5 is connected to a control mechanism, and the control mechanism can communicate with a server device on an external network via the communication unit 5 to transmit and receive data. In the shooting game machine in the present embodiment, the communication unit 5 transmits the image data obtained by shooting to a server device managed by the manufacturer of the shooting game machine. Accordingly, the user can download and acquire his / her own captured image from the server device to a terminal device such as a mobile phone (smart phone), a tablet, or a PC.

制御機構は、上述した各ハードウェアを制御するPC(Personal Computer )と、各ハードウェアが接続されているバス100を含む制御基板と、各ハードウェアに電力を供給する図示しない電源部とにより構成される。PCは1つのPCで構成されてもよいが、処理を円滑化するために、事前接客部1を制御するPC、撮影部2を制御するPC、第1編集部3aを制御するPC、第2編集部3bを制御するPC、並びに印刷部4及び通信部5を制御するPC、のように制御対象毎に異なるPCを用いてもよい。なお以下の説明では第1編集部3a及び第2編集部3bにおける落書き操作に基づく画像処理について主に説明する。このため、仮想的に第1PCと第2PCとに分別して説明する。第1PCは、事前接客部1及び撮影部2における処理を制御する制御部6に対応する。第2PCは、撮影部2により得られた画像に対する所定の加工処理、第1編集部3a及び第2編集部3bによる編集の受け付け、合成等の画像処理を制御し、印刷部4における印刷出力並びに通信部5からのデータ送信を指示する画像処理部7に対応する。   The control mechanism is configured by a PC (Personal Computer) that controls each hardware described above, a control board including a bus 100 to which each hardware is connected, and a power supply unit (not shown) that supplies power to each hardware. Is done. The PC may be composed of a single PC, but in order to facilitate processing, the PC that controls the pre-serving section 1, the PC that controls the photographing section 2, the PC that controls the first editing section 3a, the second Different PCs may be used for each control target, such as a PC that controls the editing unit 3b and a PC that controls the printing unit 4 and the communication unit 5. In the following description, image processing based on graffiti operations in the first editing unit 3a and the second editing unit 3b will be mainly described. For this reason, the description will be made by virtually separating the first PC and the second PC. The first PC corresponds to the control unit 6 that controls the processes in the prior customer service unit 1 and the photographing unit 2. The second PC controls image processing such as predetermined processing for the image obtained by the photographing unit 2, acceptance of editing by the first editing unit 3a and the second editing unit 3b, synthesis, etc. This corresponds to the image processing unit 7 instructing data transmission from the communication unit 5.

制御部6は、第1PCに備えられたCPU(Central Processing Unit )60と、メモリ61と、HDD(Hard Disk Drive)62と、キャプチャ・クロマキーボード63とを含む。メモリ61はDRAM(Dynamic Random Access Memory)又はSDRAM(Synchronous DRAM)等のRAMを用い、HDD62に替えてフラッシュメモリ、又はSSD(Solid State Drive )等の他の不揮発性記憶装置を用いてもよい。   The control unit 6 includes a CPU (Central Processing Unit) 60, a memory 61, an HDD (Hard Disk Drive) 62, and a capture / chroma keyboard 63 provided in the first PC. The memory 61 may be a RAM such as a DRAM (Dynamic Random Access Memory) or an SDRAM (Synchronous DRAM), and may be a flash memory or another nonvolatile storage device such as an SSD (Solid State Drive) instead of the HDD 62.

CPU60は、HDD62に記憶されている制御プログラム6Pを読み出し、メモリ61に各種情報を読み書きしながら前記制御プログラム6Pを実行することにより、以下の各機能を実現する。   The CPU 60 reads the control program 6P stored in the HDD 62, and executes the control program 6P while reading / writing various information in the memory 61, thereby realizing the following functions.

CPU60は、事前接客部1のコイン投入口にて所定料金の投入を受け付けた場合に事前接客部1から出力される制御信号を入力し、タッチパネル式のディスプレイに操作画面を出力させ、スピーカから案内音声を出力させる。また、CPU60は、事前接客部1のディスプレイに表示されている操作画面上の操作に対応する情報を事前接客部1から入力する。具体的にはCPU60は、タッチパネル式のディスプレイ上の操作により、ユーザの名前、通信部5からの送信先アドレスに係る情報等を入力する。   The CPU 60 inputs a control signal output from the pre-service unit 1 when receiving a predetermined charge at the coin insertion slot of the pre-service unit 1, causes the touch panel display to output an operation screen, and guides from the speaker. Output audio. Further, the CPU 60 inputs information corresponding to the operation on the operation screen displayed on the display of the pre-service unit 1 from the pre-service unit 1. Specifically, the CPU 60 inputs a user name, information related to a transmission destination address from the communication unit 5, and the like by an operation on a touch panel display.

CPU60は、撮影部2にてカメラ21から得られるモニタ用の映像信号をキャプチャ・クロマキーボード63が入力するように制御し、キャプチャ・クロマキーボード63から映像信号に含まれる各フレームの画像データを取得し、取得したフレームの画像データに基づいてライブ画面用の画像の映像信号を作成し、作成した画像信号をディスプレイ22へ出力する。またCPU60は、撮影開始及び案内をユーザに通知するための撮影ガイドの画像信号をディスプレイ22へ出力し、音声信号をスピーカ24へ出力する。   The CPU 60 controls the capture unit 2 to input the monitor video signal obtained from the camera 21 to the capture / chroma keyboard 63 and acquires the image data of each frame included in the video signal from the capture / chroma keyboard 63. Then, a video signal of an image for a live screen is created based on the acquired frame image data, and the created image signal is output to the display 22. Further, the CPU 60 outputs an image signal of a shooting guide for notifying the user of shooting start and guidance to the display 22 and outputs an audio signal to the speaker 24.

CPU60は、撮影部2のカメラ21による撮影と照明装置群23によるフラッシュ点灯とを同期させて撮影を行なう。なおCPU60は、カメラ21による撮影を複数回実行する。CPU60は、撮影により得られる画像の複数の画像データをカメラ21から取得し、夫々を区別できるように識別情報を付与してHDD62に記憶すると共に、複製して画像処理部7へ出力する。   The CPU 60 performs photographing by synchronizing photographing by the camera 21 of the photographing unit 2 and flash lighting by the lighting device group 23. The CPU 60 executes photographing with the camera 21 a plurality of times. The CPU 60 acquires a plurality of image data of an image obtained by photographing from the camera 21, assigns identification information so that each can be distinguished, stores it in the HDD 62, duplicates it, and outputs it to the image processing unit 7.

HDD62は、CPU60が参照する各種情報を記憶する。HDD62は、CPU60が実行する制御プログラム6Pを予め記憶している。HDD62は、制御プログラム6Pのほかに、事前接客部1のディスプレイ及び撮影部2のディスプレイ22に表示する画像及びフォントデータ、事前接客部1のスピーカ及び撮影部2のスピーカ24から出力させる音声及び音楽等のデータを予め記憶している。また、HDD62には、撮像部2における写真撮影で得られる画像データが記憶される。   The HDD 62 stores various information referred to by the CPU 60. The HDD 62 stores a control program 6P executed by the CPU 60 in advance. In addition to the control program 6P, the HDD 62 displays images and font data to be displayed on the display of the pre-service section 1 and the display 22 of the photographing section 2, and sounds and music output from the speaker of the pre-service section 1 and the speaker 24 of the photographing section 2. Such data is stored in advance. The HDD 62 stores image data obtained by taking a picture in the imaging unit 2.

キャプチャ・クロマキーボード63は、キャプチャ機能及びクロマキー機能を有する回路基板である。キャプチャ・クロマキーボード63は、映像信号から毎秒30(29.97)枚のフレームの画像データを取得して静止画像として出力するキャプチャ機能を有する。またキャプチャ・クロマキーボード63は、静止画像から一定の範囲で所定の色調及び明度を有すると判断される画素を抽出し、抽出した画素に対してα値(透明度)を設定することにより一部の色を透明化して出力するクロマキー機能を有する。キャプチャ・クロマキーボード63は、カメラ21からのモニタ用の映像信号から順次フレームをキャプチャし、キャプチャして得られた静止画像に必要に応じてクロマキー処理を実行し、内蔵するメモリに書き込む。CPU60は、キャプチャ・クロマキーボード63内蔵のメモリから静止画像を順次読み出して、撮影部2のディスプレイ22に表示するライブ画面用の画像の画像信号を作成する。   The capture / chroma keyboard 63 is a circuit board having a capture function and a chroma key function. The capture / chroma keyboard 63 has a capture function of acquiring image data of 30 (29.97) frames per second from a video signal and outputting the image data as a still image. The capture / chroma keyboard 63 extracts pixels determined to have a predetermined color tone and brightness within a certain range from a still image, and sets an α value (transparency) for the extracted pixels. It has a chroma key function to make the color transparent and output. The capture / chroma keyboard 63 sequentially captures frames from the video signal for monitoring from the camera 21, executes chroma key processing on the still image obtained by the capture as necessary, and writes it in the built-in memory. The CPU 60 sequentially reads still images from a memory built in the capture / chroma keyboard 63 and creates an image signal of an image for a live screen to be displayed on the display 22 of the photographing unit 2.

画像処理部7は、第2PCに備えられたCPU70と、メモリ71と、HDD72と、グラフィックボード73とを備える。メモリ71は、DRAM又はSDRAM等のRAMを用いる。   The image processing unit 7 includes a CPU 70, a memory 71, an HDD 72, and a graphic board 73 provided in the second PC. The memory 71 uses a RAM such as DRAM or SDRAM.

CPU70は、HDD72に記憶されている画像処理プログラム7Pを読み出し、メモリ71に各種情報を読み書きしながら前記画像処理プログラム7Pに基づく画像処理を実行する。またCPU70は、制御部6から出力された画像データを、付与されている識別情報と共にメモリ71又はHDD72に記憶し、該画像データを基に加工処理を行なう。加工処理には、画像中の人物の顔を小顔にする加工、顔の頬部分の色味を明るくする(チーク)加工、髪に艶を出す加工、髪色を明るくする加工、目を大きくする加工、体のラインを細く見せるための加工、脚を長く見えるようにする加工等、種々の加工が含まれる。なおこれらの加工処理の内の一部では、加工具合の強弱(多少)を複数の段階に分けて実行する。CPU70は、加工の種類毎に段階数分だけ複製した画像データをメモリ71又はHDD72に記憶し、各画像データに夫々の段階で加工処理を実行し、加工後の複数の画像データをメモリ71又はHDD72に記憶する。   The CPU 70 reads the image processing program 7P stored in the HDD 72, and executes image processing based on the image processing program 7P while reading / writing various information from / to the memory 71. Further, the CPU 70 stores the image data output from the control unit 6 in the memory 71 or the HDD 72 together with the assigned identification information, and performs processing based on the image data. The processing includes processing to make the face of the person in the image a small face, brightening the color of the cheeks of the face (blushing), processing to gloss the hair, processing to brighten the hair color, large eyes Various processes are included, such as a process for making the body line appear thin, and a process for making the leg look longer. In some of these processing processes, the strength (somewhat) of the processing condition is executed in a plurality of stages. The CPU 70 stores in the memory 71 or the HDD 72 image data duplicated by the number of steps for each type of processing, executes processing on each image data in each step, and stores a plurality of processed image data in the memory 71 or Store in the HDD 72.

更にCPU70は、メモリ71又はHDD72に記憶してある撮影により得られた上述の加工処理前及び加工処理後の複数の画像データに基づき、第1編集部3a及び第2編集部3bにて落書き操作をディスプレイ30a,30b及びタッチペン31a,32a,31b,32bにて受け付ける。CPU70は、落書き機能の内の1つの機能として、画像データに基づく画像中、ユーザが撮影されている領域に対してメイクを施す機能を実現し、メイクに係る操作を受け付ける。メイクにはリップ、チーク、カラーコンタクト(以下カラコンという)、アイライン、つけまつげ、及びヘアカラーの複数種類がある。メイクに係る落書き編集処理については詳細を後述する。CPU70は、落書き操作として受け付けた操作の内容に応じて、後述する落書き用操作画面のプレビュー表示部に表示する手書き文字又はメイクを含むスタンプ等の画像データを作成してディスプレイ30a,30bへ出力する処理、更に、落書き用操作画面のプレビュー表示部に表示されている確定した編集内容に応じて合成画像データを作成する処理を実行する。CPU70は、作成された合成画像データに基づき画像を写真シールシートに印刷出力する処理、合成画像データ又は合成処理前の画像データを通信部5から外部サーバ装置へ送信する処理を実行する。   Further, the CPU 70 performs graffiti operations in the first editing unit 3a and the second editing unit 3b based on the plurality of image data before and after the above-described processing processing obtained by photographing stored in the memory 71 or the HDD 72. Is received by the displays 30a, 30b and the touch pens 31a, 32a, 31b, 32b. As one of the graffiti functions, the CPU 70 realizes a function for applying makeup to an area in which an image is taken by a user in an image based on image data, and accepts an operation related to makeup. There are several types of makeup: lip, cheek, color contact (hereinafter referred to as color contact), eyeline, false eyelashes, and hair color. Details of the graffiti editing process for makeup will be described later. The CPU 70 creates image data such as stamps including handwritten characters or makeup to be displayed on a preview display portion of a graffiti operation screen, which will be described later, and outputs the image data to the displays 30a and 30b according to the contents of the operation accepted as the graffiti operation. Processing is executed, and further, processing for creating composite image data is executed according to the confirmed editing content displayed in the preview display section of the graffiti operation screen. The CPU 70 executes processing for printing out an image on a photographic sticker sheet based on the generated composite image data, and processing for transmitting the composite image data or image data before the composite processing from the communication unit 5 to the external server device.

HDD72は、CPU70が参照する各種情報を記憶する。HDD72は、CPU70が実行する画像処理プログラム7Pを予め記憶している。またHDD72は、第1編集部3a及び第2編集部3bのディスプレイ30a,30bに表示する案内用の文字画像、合成用の素材である文字、フォントデータ又は画像、スピーカ33a,33bから出力させる音楽及び音声等のデータを予め記憶している。合成用の素材である画像の中には、上述したメイクを施す機能を実現するべくメイク用情報720が予め記憶されている。メイク用情報720には、リップパターン情報、チーク用画像、カラコン画像、アイライン画像、つけまつげ画像、及びヘアカラー用パターン情報が含まれる。メイク用情報720は書き換え可能である。また、HDD72は、受け付けた編集に基づく画像処理により得られた画像データ、合成後の画像の画像データが記憶される。   The HDD 72 stores various information referred to by the CPU 70. The HDD 72 stores an image processing program 7P executed by the CPU 70 in advance. The HDD 72 also displays guidance character images displayed on the displays 30a and 30b of the first editing unit 3a and the second editing unit 3b, characters, font data or images that are composition materials, and music to be output from the speakers 33a and 33b. In addition, data such as voice is stored in advance. In an image that is a composition material, makeup information 720 is stored in advance to realize the above-described function of applying makeup. The makeup information 720 includes lip pattern information, cheek images, colored contact images, eyeline images, false eyelash images, and hair color pattern information. The makeup information 720 can be rewritten. Further, the HDD 72 stores image data obtained by image processing based on the received editing and image data of the combined image.

グラフィックボード73は、入力した画像データ及び描画命令に基づいて画像を描画し、描画した画像の画像データを出力するハードウェアである。CPU70は、制御部6から取得して記憶した画像データに対する画像処理を、グラフィックボード73を用いて行なう。具体的には、CPU70は画像データと、目的の画像を得るための描画命令とをグラフィックボード73に与えて処理を行なわせ、描画処理によって得られた画像の画像データをグラフィックボード73内蔵のメモリから入力する。描画処理には、拡縮、回転、移動、クロマキー機能、トリミング機能、α化機能、明度又は色調等の調整機能、フィルター機能、合成機能等が含まれる。   The graphic board 73 is hardware that draws an image based on input image data and a drawing command and outputs image data of the drawn image. The CPU 70 uses the graphic board 73 to perform image processing on the image data acquired and stored from the control unit 6. Specifically, the CPU 70 gives image data and a drawing command for obtaining a target image to the graphic board 73 to perform processing, and the image data of the image obtained by the drawing processing is stored in a memory built in the graphic board 73. Enter from. The drawing processing includes enlargement / reduction, rotation, movement, chroma key function, trimming function, alpha function, adjustment function such as brightness or color tone, filter function, composition function, and the like.

図3及び図4は、本実施の形態の撮影遊戯機にて実行される全体処理の一例を示すフローチャートである。なお、制御部6にて行なわれる処理手順と、画像処理部7にて行なわれる処理手順とに分けて説明する。図3は制御部6により実行される全体処理の手順の一例を示すフローチャートである。   FIG. 3 and FIG. 4 are flowcharts showing an example of the overall processing executed in the shooting game machine of the present embodiment. The processing procedure performed by the control unit 6 and the processing procedure performed by the image processing unit 7 will be described separately. FIG. 3 is a flowchart showing an example of the procedure of the entire process executed by the control unit 6.

制御部6のCPU60は、事前接客部1にてディスプレイに、撮影遊戯機の案内を表示させると共に、スピーカから音楽及び案内音声を出力させ(ステップS101)、所定料金が投入されたか否かを判断する(ステップS102)。CPU60は、所定料金が未投入であると判断した場合(S102:NO)、処理をステップS101へ戻す。   The CPU 60 of the control unit 6 causes the pre-service unit 1 to display guidance for the shooting game machine on the display and output music and guidance voice from the speaker (step S101) to determine whether or not a predetermined fee has been inserted. (Step S102). If the CPU 60 determines that the predetermined fee has not yet been charged (S102: NO), it returns the process to step S101.

CPU60は、所定料金が投入されたと判断した場合(S102:YES)、事前接客部1のディスプレイにて、ユーザの名前の入力又は撮影モードの選択等を受け付ける(ステップS103)。CPU60は、撮影エリアAの空き状況を確認した上で、空いている場合に移動を促す案内画面を事前接客部1のディスプレイに表示させると共に、案内音声を出力させる(ステップS104)。   When the CPU 60 determines that a predetermined fee has been inserted (S102: YES), the CPU 60 accepts input of a user name or selection of a shooting mode on the display of the pre-service section 1 (step S103). After confirming the availability of the shooting area A, the CPU 60 displays a guidance screen that prompts the user to move when the shooting area A is available, and outputs a guidance voice (step S104).

CPU60は、撮影エリアA内にて撮影部2のディスプレイ22に、撮影内容の案内画面を表示させ、案内音声及びBGMをスピーカ24から出力させる(ステップS105)。更にCPU60は、カメラ21からの映像信号に基づくライブ画面をディスプレイ22に表示させる(ステップS106)。このときCPU60は、撮影開始までのカウントダウンを示す文字又は画像をディスプレイ22に表示させ、カウントダウンの音声をスピーカ24に出力させる。   The CPU 60 displays a shooting content guidance screen on the display 22 of the shooting unit 2 in the shooting area A, and outputs guidance voice and BGM from the speaker 24 (step S105). Further, the CPU 60 displays a live screen based on the video signal from the camera 21 on the display 22 (step S106). At this time, the CPU 60 causes the display 22 to display characters or images indicating the countdown until the start of shooting, and causes the speaker 24 to output the countdown sound.

CPU60は、制御部2のカメラ21及び照明装置群23を制御して1回の撮影を実行し(ステップS107)、画像データを他の撮影により得られた画像の画像データと識別可能にHDD62に記憶する(ステップS108)。CPU60は撮影を実行する都度、ディスプレイ22にプレビュー画面を表示し(ステップS109)、所定の回数の撮影が完了したか否かを判断する(ステップS110)。   The CPU 60 controls the camera 21 and the illumination device group 23 of the control unit 2 to execute one shooting (step S107), and stores the image data in the HDD 62 so that the image data can be distinguished from the image data obtained by other shooting. Store (step S108). The CPU 60 displays a preview screen on the display 22 each time shooting is performed (step S109), and determines whether or not a predetermined number of times of shooting has been completed (step S110).

所定の回数の撮影が完了していないと判断された場合(S110:NO)、CPU60は、処理をステップS107へ戻し、次の撮影を実行する。このように所定の回数の撮影を実行するに際しCPU60は撮影毎に、顔のアップの撮影とユーザの全身の撮影とを区別して実行する。CPU60は撮影毎に、アップなのか全身なのか等に応じて適切なカメラ21の傾き、画角、照明の明暗で撮影が実行されるように制御するとよい。   If it is determined that the predetermined number of times of shooting has not been completed (S110: NO), the CPU 60 returns the process to step S107 and executes the next shooting. As described above, when executing the predetermined number of times of shooting, the CPU 60 distinguishes between shooting of the face up and shooting of the whole body of the user for each shooting. The CPU 60 may perform control so that shooting is performed with appropriate tilt of the camera 21, angle of view, and brightness of lighting depending on whether it is up or whole body for each shooting.

所定の回数の撮影が完了していると判断された場合(S110:YES)、CPU60は、編集エリアBの空き状況を確認した上で、空いている場合に編集エリアBの第1編集部3a及び第2編集部3bの何れかへの移動を促す案内画面をディスプレイ22に表示させると共に、案内音声をスピーカ24から出力させ(ステップS111)、撮影エリアAにおける処理を終了する。   If it is determined that the predetermined number of times of shooting has been completed (S110: YES), the CPU 60 confirms the vacant status of the editing area B, and if it is empty, the first editing unit 3a in the editing area B In addition, a guidance screen that prompts the user to move to any one of the second editing units 3b is displayed on the display 22, and guidance voice is output from the speaker 24 (step S111), and the processing in the shooting area A is terminated.

図4は、画像処理部7により実行される全体処理の手順の一例を示すフローチャートである。なお以下の説明では、第1撮影部3a側にユーザが案内され、落書き操作が受け付けられる場合について説明する。第2撮影部3b側でも処理は同様であるため詳細な説明を省略する。   FIG. 4 is a flowchart illustrating an example of a procedure of overall processing executed by the image processing unit 7. In the following description, a case where the user is guided to the first photographing unit 3a side and a graffiti operation is accepted will be described. Since the processing is the same on the second imaging unit 3b side, detailed description thereof is omitted.

画像処理部7のCPU70は、制御部6によりHDD62に記憶された画像データを取得する(ステップS201)。ステップS201は詳細には、制御部6のCPU60がHDD62から読み出してHDD72に記憶し、画像処理部7のCPU70が読み出すことができるようにするか、又はCPU70がHDD62から画像データを直接的に読み出すかにより実現される。制御部6と画像処理部7とが異なるPCにて実現される場合、共通の記憶装置(図示せず)に画像データが書き込まれ、CPU70が読み出すことができるように構成してもよいし、通信により画像データを制御部6及び画像処理部7間で送受信することにより実現してもよい。   The CPU 70 of the image processing unit 7 acquires the image data stored in the HDD 62 by the control unit 6 (step S201). Specifically, in step S201, the CPU 60 of the control unit 6 reads from the HDD 62 and stores it in the HDD 72 so that the CPU 70 of the image processing unit 7 can read it, or the CPU 70 directly reads the image data from the HDD 62. This is realized. When the control unit 6 and the image processing unit 7 are realized by different PCs, the image data may be written to a common storage device (not shown) and read by the CPU 70. You may implement | achieve by transmitting / receiving image data between the control part 6 and the image process part 7 by communication.

CPU70は、取得した複数の画像データ毎に、1又は複数の人物被写体領域を抽出する処理を行なう(ステップS202)。ステップS202は詳細には、CPU70はグラフィックボード73を用い、複数回撮影して得られた複数の画像データに基づく画像から夫々、一定の範囲で所定の色調及び明度を有すると判断される画素を抽出し、抽出した画素以外の人物被写体を撮影した人物領域に対応する画素をα化(透明化)することによって得られるマスク画像の画像データを作成させる。CPU70は、抽出した人物被写体領域に基づいて、複数の画像データ毎に、選択されている撮影モードに対応するトリミング枠を仮に決定してトリミングを行なう(ステップS203)。ステップS203におけるトリミング枠は例えば、矩形及び円形が含まれる。   The CPU 70 performs a process of extracting one or a plurality of person subject areas for each of a plurality of acquired image data (step S202). More specifically, in step S202, the CPU 70 uses the graphic board 73 to select pixels that are determined to have a predetermined color tone and lightness within a certain range from images based on a plurality of image data obtained by photographing a plurality of times. Extraction is performed, and image data of a mask image obtained by alpha conversion (transparency) of pixels corresponding to a person region where a human subject other than the extracted pixels is photographed is created. Based on the extracted human subject area, the CPU 70 performs trimming by temporarily determining a trimming frame corresponding to the selected shooting mode for each of a plurality of image data (step S203). The trimming frame in step S203 includes, for example, a rectangle and a circle.

またCPU70は、取得した複数の画像データ別に抽出した1又は複数の人物被写体領域毎に、顔認識技術に基づいて顔領域、並びに顔領域内の目、鼻、及び口の各器官領域の特定を実行する(ステップS204)。CPU70は、ステップS204の処理を肌色検出、テンプレートマッチングなどの種々の既存技術を利用して行なえばよい。またステップS204においてCPU70は、顔領域及び器官領域を、夫々の輪郭に対応する画像中の画素の座標情報で特定する。なおステップS204における処理は、上述のステップS203の処理中にバックグラウンドで並行的に実行されるようにしてもよい。   Further, the CPU 70 specifies the face area and the eye, nose, and mouth organ areas in the face area based on the face recognition technique for each of one or a plurality of human subject areas extracted for each of the acquired plurality of image data. Execute (Step S204). The CPU 70 may perform the process of step S204 using various existing techniques such as skin color detection and template matching. In step S204, the CPU 70 specifies the face area and the organ area by the coordinate information of the pixels in the image corresponding to the respective contours. Note that the processing in step S204 may be executed in parallel in the background during the processing in step S203 described above.

次にCPU70は、複数の画像データ別に、抽出された人物被写体領域、特定された顔領域、並びに顔領域内の各器官領域に対する加工処理を実行する(ステップS205)。ステップS205にてCPU70は、複数回撮影して得られる画像データ夫々について、撮影の方法(アップ撮影又は全身撮影等)に適した加工処理を行なう。加工処理には上述したように、顔を小顔にする加工、顔の頬部分の色味を明るくする(チーク)加工、髪に艶を出す加工、髪色を明るくする加工、目を大きくする加工、体のラインを細く見せるための加工、脚を長く見せる加工等が含まれる。ただしステップS205においては加工処理全てを完了させないようにすることが望ましい。加工処理の内の一部、例えば小顔にする加工、及び目を大きくする加工については加工度合いを複数段階に分けて実行し、各段階の画像データをメモリ71又はHDD72に記憶し、第1編集部3aにおける編集を受け付けるに際し、何れの段階の加工度合いとするかの選択を受け付けることが可能なように実行しておく。ステップS205までの処理は、図3のフローチャートにおける1回目のステップS107の撮影処理の都度、各撮影に対して記憶される画像データに対してバックグラウンド的に開始され、編集エリアBへの案内画面の表示中に処理が進むように実行されてもよい。   Next, the CPU 70 performs processing on the extracted human subject area, the specified face area, and each organ area in the face area for each of a plurality of image data (step S205). In step S <b> 205, the CPU 70 performs processing suitable for the shooting method (up shooting or whole body shooting) for each of the image data obtained by shooting a plurality of times. As described above, in the processing process, the face is made small, the cheek part of the face is lightened (blush), the hair is glossed, the hair color is lightened, and the eyes are enlarged. Processing, processing to make the body line look thin, processing to make the leg look longer, etc. are included. However, it is desirable not to complete all the processing in step S205. For a part of the processing, for example, processing for making a small face and processing for enlarging the eyes, the processing degree is divided into a plurality of stages, and the image data at each stage is stored in the memory 71 or the HDD 72, and the first When accepting editing by the editing unit 3a, it is executed so as to accept selection of which level of processing level to use. The processing up to step S205 is started in the background with respect to the image data stored for each shooting at the first shooting processing in step S107 in the flowchart of FIG. It may be executed so that the process proceeds during display of.

CPU70は、ステップS205の加工処理の一部又は全部が完了した後、加工処理後の画像を含む編集案内用の画面を第1編集部3aのディスプレイ30aに表示させると共に、案内音声及び音楽をスピーカ33aから出力させる(ステップS206)。   After part or all of the processing processing in step S205 is completed, the CPU 70 displays an editing guidance screen including the processed image on the display 30a of the first editing unit 3a, and displays guidance voice and music on the speaker. 33a is output (step S206).

CPU70は、ステップS205にて複数段階の加工度合いに分けて実行した加工について、各段階の加工処理後の画像データに基づくプレビュー画像をディスプレイ30aに表示させ、何れの段階の加工度合いとするかの選択を受け付ける(ステップS207)。このときCPU70は例えば、小顔にする加工及び目を大きくする加工について夫々、各段階のプレビュー画像を並べて表示するか、スライダーコントロールをディスプレイ30aに表示し、スライダーコントロール上をタッチペン31a又は32aがスライドすることに応じてプレビュー画像が連続的に変化するように表示させ、何れかの選択を受け付ける。   The CPU 70 displays the preview image based on the image data after the processing of each step on the display 30a for the processing executed by dividing into the processing levels of a plurality of steps in step S205, and determines the processing level at which step. The selection is accepted (step S207). At this time, the CPU 70 displays, for example, the preview images of the respective stages side by side or displays the slider control on the display 30a, and the touch pen 31a or 32a slides on the slider control. In response to this, the preview image is displayed so as to change continuously, and any one of the selections is accepted.

次にCPU70は、第1編集部3aにおいて、スタンプ貼付け、文字追加、及びメイクを含む落書き操作を受け付ける(ステップS208)。落書き操作の受け付けについては詳細を後述する。更にCPU70は、合成後の撮影画像の写真シールシートにおけるレイアウト等の選択を受け付ける(ステップS209)。   Next, the CPU 70 receives a graffiti operation including stamping, character addition, and makeup in the first editing unit 3a (step S208). Details of the acceptance of the graffiti operation will be described later. Further, the CPU 70 accepts selection of a layout or the like on the photographic sticker sheet of the combined photographed image (step S209).

CPU70は、ステップS207で選択された加工の段階と、ステップS208で受け付けられた落書き操作と、ステップS209で選択されたレイアウトとに基づいて、撮影により得られた画像データに基づく画像と、ステップS208にて受け付けられて確定した落書き操作に基づく文字、画像、メイク用情報720に基づく画像等とを合成し、受け付けた選択に基づいて写真シールシートにレイアウトする合成処理を実行する(ステップS210)。   The CPU 70, based on the processing stage selected in step S207, the graffiti operation received in step S208, and the layout selected in step S209, an image based on the image data obtained by shooting, and step S208. Then, a character, an image based on the graffiti operation accepted and confirmed, an image based on the makeup information 720, and the like are synthesized, and a composition process for laying out on the photo sticker sheet is executed based on the accepted selection (step S210).

CPU70は、合成処理後の写真シールシートのプレビュー画面を第1編集部3aのディスプレイ30aに表示させる(ステップS211)。CPU70は、印刷部4のプリンタが使用中でないか否かを確認した上で、使用中でない場合に印刷部4のプリンタにて写真シールシートの印刷出力を開始させる(ステップS212)。印刷出力処理の間に、CPU70は、ユーザの携帯電話機への画像データ送信を実行するためのアドレス等の送信先情報の入力用の操作画面、又は送信する画像データの選択を受け付けるための選択画面をディスプレイ30aに表示させると共に、案内音声を出力させ(ステップS213)、ディスプレイ30aにて入力操作を受け付け(ステップS214)、入力された情報を記憶する(ステップS215)。CPU70は、記憶した情報に基づいて選択された画像データ及び送信先情報を通信部5から外部サーバ装置へ送信し(ステップS216)、ディスプレイ30aに印刷部4の前への移動を促す案内画面を表示させると共に、案内音声を出力させ(ステップS217)、処理を終了する。   The CPU 70 displays a preview screen of the photo sticker sheet after the composition processing on the display 30a of the first editing unit 3a (step S211). The CPU 70 confirms whether or not the printer of the printing unit 4 is not in use, and if it is not in use, the printer of the printing unit 4 starts to print out the photo sticker sheet (step S212). During the print output process, the CPU 70 operates an operation screen for inputting destination information such as an address for executing image data transmission to the user's mobile phone, or a selection screen for accepting selection of image data to be transmitted. Is displayed on the display 30a and a guidance voice is output (step S213), an input operation is accepted on the display 30a (step S214), and the input information is stored (step S215). The CPU 70 transmits image data and transmission destination information selected based on the stored information from the communication unit 5 to the external server device (step S216), and displays a guidance screen that prompts the display 30a to move to the front of the printing unit 4. While displaying, a guidance voice is output (step S217), and the process ends.

次に、ステップS208にて受け付けられる落書き操作について詳細を説明する。図5は、落書き用操作画面の一例を示す説明図である。第1編集部3aのディスプレイ30aに図5に示すような落書き用操作画面が表示される。ディスプレイ30aに表示されている落書き用操作画面に対し、ユーザはタッチペン31a及びタッチペン32aによって操作内容の選択、描画等の操作を行なう。なお第1編集部3aでは、複数のユーザがタッチペン31a及びタッチペン32aを使用して同時に操作することが可能である。第2編集部3bにおける落書き操作についても同様であるので以下、詳細な説明を省略する。   Next, details of the graffiti operation accepted in step S208 will be described. FIG. 5 is an explanatory diagram illustrating an example of a graffiti operation screen. A graffiti operation screen as shown in FIG. 5 is displayed on the display 30a of the first editing unit 3a. The user performs operations such as selection of operation contents and drawing with the touch pen 31a and the touch pen 32a on the operation screen for graffiti displayed on the display 30a. In the first editing unit 3a, a plurality of users can operate simultaneously using the touch pen 31a and the touch pen 32a. Since the same applies to the graffiti operation in the second editing unit 3b, detailed description will be omitted below.

図5の内容例において落書き用操作画面は、2つのタッチペン31a,32aによる操作を受け付けるために2つのプレビュー表示部301,302を有している。図5に示す例では、一方のプレビュー表示部301に矩形にトリミングされたプレビュー画像の例が表示され、他方のプレビュー表示部302に円形にトリミングされたプレビュー画像の例が表示されている。また、落書き用操作画面は、2つのプレビュー表示部301,302に対して複数の画像データに基づく複数の画像からいずれの画像の画像データを編集対象とするかを順次切り替えるための切替部3011,3021を有している。また落書き用操作画面は、手書き操作によって文字又は線を入力するためのペンの種類、太さ及び色を選択するためのペンパレット303と、予め記憶されているスタンプ画像及びメイク用の画像などの素材画像を選択するためのスタンプパレット304とを含む。スタンプパレット304は、プレビュー表示部301,302夫々に対応するように左右に配置される。なおペンパレット303及びスタンプパレット304は、一方が選択されている間は他方のパレット内の種類、太さ、及び色又は素材画像の選択が無効(非アクティブ)となるようにしてある。   In the content example of FIG. 5, the graffiti operation screen has two preview display portions 301 and 302 for accepting operations by the two touch pens 31 a and 32 a. In the example shown in FIG. 5, an example of a preview image trimmed to a rectangle is displayed on one preview display unit 301, and an example of a preview image trimmed to a circle is displayed on the other preview display unit 302. In addition, the graffiti operation screen is a switching unit 3011 for sequentially switching which image data of an image is to be edited from a plurality of images based on a plurality of image data for the two preview display units 301 and 302. 3021 is included. The graffiti operation screen includes a pen palette 303 for selecting a pen type, thickness and color for inputting characters or lines by handwriting operation, a stamp image and a makeup image stored in advance. And a stamp palette 304 for selecting a material image. The stamp palettes 304 are arranged on the left and right so as to correspond to the preview display sections 301 and 302, respectively. While one of the pen palette 303 and the stamp palette 304 is selected, the selection of the type, thickness, color, or material image in the other palette is invalid (inactive).

スタンプパレット304は、プレビュー表示部301,302に表示されている2つのプレビュー画像に対して重畳させるスタンプの素材の種類を選択するためのタブ選択部101をプレビュー表示部301,302と対応するように夫々有している。タブ選択部101には「SPECIAL」「STAMP」、「MESSAGE」、及び「MAKE」の例えば4種類のタブが選択可能に表示されている。「SPECIAL」は、撮影により得られた画像データに基づく画像に対し、撮影遊戯機の種別毎に異なる編集、又は提供期間等で異なるなどの特別な素材の選択を受け付ける画面を表示するためのタブである。「STAMP」は、予め記憶してあるイラスト等の画像を選択する画面を表示するためのタブである。「MESSAGE」は、予め記憶してある文字を含むメッセージ画像を選択する画面を表示するためのタブである。「MAKE」はHDD72に記憶されているメイク用情報720に基づく画像の選択を受け付ける画面を表示するためのタブである。   The stamp palette 304 corresponds to the preview display units 301 and 302 with the tab selection unit 101 for selecting the type of stamp material to be superimposed on the two preview images displayed on the preview display units 301 and 302. Respectively. For example, four types of tabs “SPECIAL”, “STAMP”, “MESSAGE”, and “MAKE” are selectably displayed on the tab selection unit 101. “SPECIAL” is a tab for displaying a screen for accepting selection of special materials such as different editing or provision period depending on the type of shooting game machine for an image based on image data obtained by shooting. It is. “STAMP” is a tab for displaying a screen for selecting an image such as an illustration stored in advance. “MESSAGE” is a tab for displaying a screen for selecting a message image including characters stored in advance. “MAKE” is a tab for displaying a screen for accepting selection of an image based on makeup information 720 stored in HDD 72.

図5に示す落書き用操作画面は、プレビュー表示部301,302と対応する両方のタブ選択部101で「MAKE」のタブが選択されている場合の内容例が示されている。「MAKE」のタブが選択されている場合のスタンプパレット304は、各プレビュー表示部301,302に対応するメイクパレット310を有している。   The graffiti operation screen shown in FIG. 5 shows an example of contents when the “MAKE” tab is selected in both the tab display units 101 corresponding to the preview display units 301 and 302. The stamp palette 304 when the “MAKE” tab is selected has a makeup palette 310 corresponding to each of the preview display portions 301 and 302.

メイクパレット310は上部に、メイク選択部102を含む。メイク選択部102は、メイクパレット310の上部に位置する複数のメイクの種類に応じた複数のボタンからなる。図5に示す例では、メイクの種類(対象)は「リップ」、「チーク」、「カラコン」、「アイライン」、「つけまつげ」、及び「ヘアカラー」の6種類と、6種類全てを自動的に実行する「ワンタッチ」がある。   Makeup palette 310 includes makeup selection unit 102 at the top. Makeup selection section 102 includes a plurality of buttons corresponding to a plurality of makeup types located at the top of makeup palette 310. In the example shown in FIG. 5, there are 6 types of makeup (target): “lip”, “blush”, “color control”, “eyeline”, “false eyelashes”, and “hair color”, and all 6 types are automatically selected. There is a "one touch" to be executed.

メイクパレット310はメイク選択部102よりも下方の領域に、各種類のメイクに応じた操作ボタン群を含む。メイクの操作は種類別に、自動モードと手動モードとが存在する。なお自動モードは撮像により得られた画像から顔領域の特定が成功した場合のみに操作可能であり、顔領域の特定に失敗した場合には手動モードのみとなる。図5に示す例では自動モードの場合の操作ボタン群を示している。自動モードの場合の操作ボタン群は、顔サンプル表示部103、個別選択部104、全員選択部105、顔切替部106、及びキャンバス部107を含む。   Makeup palette 310 includes a group of operation buttons corresponding to each type of makeup in a region below makeup selection unit 102. There are two types of makeup operations: automatic mode and manual mode. The automatic mode can be operated only when the face area is successfully identified from the image obtained by the imaging, and only the manual mode is obtained when the face area is unsuccessfully specified. The example shown in FIG. 5 shows a group of operation buttons in the automatic mode. The operation button group in the automatic mode includes a face sample display unit 103, an individual selection unit 104, an all-person selection unit 105, a face switching unit 106, and a canvas unit 107.

顔サンプル表示部103は、選択対象の素材のサンプル画像、又は複数の画像データ毎に特定された顔領域を含む矩形領域の画像が抽出されて表示される領域である。   The face sample display unit 103 is an area where a sample image of a material to be selected or an image of a rectangular area including a face area specified for each of a plurality of image data is extracted and displayed.

個別選択部104及び全員選択部105は、編集対象の画像として選択され、対応するプレビュー表示部301(又はプレビュー表示部302)に表示されている画像中に複数の顔領域が特定されている場合に、複数の顔領域の内の1つをメイクの対象とすることを選択するか、全員を同じメイクの対象とすることを選択するかを切り替えるためのボタンである。図5の例においてプレビュー表示部301に対応するメイクパレット310では、個別選択部104が選択され、プレビュー表示部302に対応するメイクパレット310では、全員選択部105が選択されている。   Individual selection unit 104 and all-person selection unit 105 are selected as images to be edited, and a plurality of face regions are specified in the image displayed on corresponding preview display unit 301 (or preview display unit 302). And a button for switching whether to select one of a plurality of face regions as a makeup target or to select all as a makeup target. In the example of FIG. 5, the individual selection unit 104 is selected in the makeup palette 310 corresponding to the preview display unit 301, and the everyone selection unit 105 is selected in the makeup palette 310 corresponding to the preview display unit 302.

顔切替部106は、個別選択部104が選択されている場合に、複数の顔領域からメイクの対象とする顔領域を選択するためのボタンである。個別選択部103が選択されている場合のみに選択が有効であり、全員が選択(「みんな」が選択)されている場合は無効である。対応するプレビュー表示部301(又はプレビュー表示部302)に表示されている画像中に複数の顔領域が特定されている場合にタッチペン31aによって顔切替部106が選択されたとき、顔領域が順に切り替えられ、サンプルとして顔サンプル表示部103に表示される。なお顔切替部106は、画像から1つの顔領域のみ特定された場合は無効となる。   The face switching unit 106 is a button for selecting a face region to be made from a plurality of face regions when the individual selection unit 104 is selected. The selection is valid only when the individual selection unit 103 is selected, and is invalid when all the members are selected (“everyone” is selected). When a face switching unit 106 is selected by the touch pen 31a when a plurality of face regions are specified in an image displayed on the corresponding preview display unit 301 (or preview display unit 302), the face regions are switched in order. And displayed on the face sample display unit 103 as a sample. The face switching unit 106 becomes invalid when only one face area is specified from the image.

キャンバス部107は、メイク選択部102で選択されたメイクの種類に応じた色、パターン、及び大きさを選択するためのボタン等が配置される領域である。詳細については後述する。   The canvas unit 107 is an area in which buttons for selecting a color, a pattern, and a size corresponding to the type of makeup selected by the makeup selecting unit 102 are arranged. Details will be described later.

図6は、手動モードの場合のメイクパレット310の例を示す説明図である。手動モードの場合、顔サンプル表示部103、個別選択部104、全員選択部105及び顔切替部106に代替して、素材サンプル表示部108が配置される。素材サンプル表示部108には、選択されたメイク素材のサンプルイメージ、例えば、どのような位置にメイク素材の画像を配置したらよいかを示す説明画像が表示される。   FIG. 6 is an explanatory diagram showing an example of the makeup palette 310 in the manual mode. In the manual mode, a material sample display unit 108 is arranged instead of the face sample display unit 103, the individual selection unit 104, the all-person selection unit 105, and the face switching unit 106. The material sample display unit 108 displays a sample image of the selected makeup material, for example, an explanatory image indicating where the makeup material image should be arranged.

図5及び図6に示した落書き用操作画面において操作を受け付ける全体的な処理について、フローチャートを参照して以下に説明する。図7は、画像処理部7のCPU70による操作を受け付ける処理手順の一例を示すフローチャートである。なお図7のフローチャートに示す処理手順は、図4のフローチャートに示した処理手順の内のステップS208の詳細である。以下の説明では、タッチペン31aにより、落書き用操作画面のプレビュー表示部301、プレビュー表示部301に対応するタブ選択部101及びメイクパレット310側における操作について落書き操作を受け付ける処理について説明する。タッチペン32aにより受け付けられるプレビュー表示部302側における操作についても同様であるので詳細な説明を省略する。   The overall process for accepting an operation on the graffiti operation screen shown in FIGS. 5 and 6 will be described below with reference to flowcharts. FIG. 7 is a flowchart illustrating an example of a processing procedure for accepting an operation by the CPU 70 of the image processing unit 7. Note that the processing procedure shown in the flowchart of FIG. 7 is the details of step S208 in the processing procedure shown in the flowchart of FIG. In the following description, a process of receiving a graffiti operation with the touch pen 31a for operations on the preview display unit 301 of the graffiti operation screen, the tab selection unit 101 corresponding to the preview display unit 301, and the makeup palette 310 will be described. The same applies to the operation on the preview display unit 302 side received by the touch pen 32a, and thus detailed description thereof is omitted.

CPU70は、落書き用操作画面をディスプレイ30aに表示し(ステップS301)、ペンパレット303が選択中であるか否か判断する(ステップS302)。ペンパレット303が選択中であると判断された場合(S302:YES)、CPU70はペンパレット303における選択を受け付け、タッチペン31aによる手書きの落書き操作を受け付ける(ステップS303)。   The CPU 70 displays a graffiti operation screen on the display 30a (step S301), and determines whether or not the pen palette 303 is being selected (step S302). When it is determined that the pen palette 303 is being selected (S302: YES), the CPU 70 accepts selection in the pen palette 303 and accepts a handwritten graffiti operation with the touch pen 31a (step S303).

CPU70は、時間切れになったか、又は終了指示を受け付けたかにより、落書き操作が終了したか否かを判断する(ステップS304)。落書き編集が終了していないと判断した場合(S304:NO)、処理をステップS302へ戻す。   The CPU 70 determines whether or not the graffiti operation has ended depending on whether the time has expired or an end instruction has been received (step S304). If it is determined that graffiti editing has not ended (S304: NO), the process returns to step S302.

CPU70は、ステップS302にてペンパレット303が選択中でないと判断した場合(S302:NO)、スタンプパレット304が選択されているのでタブ選択部101にて「SPECIAL」が選択されているか否かを判断する(ステップS305)。CPU70は、「SPECIAL」が選択されていると判断した場合(S305:YES)、CPU70はタブ選択部101の下方に「SPECIAL」に係る操作画面を表示し、「SPECIAL」の操作画面上の操作を受け付け(ステップS306)、処理をステップS304へ進める。   If the CPU 70 determines in step S302 that the pen palette 303 is not being selected (S302: NO), since the stamp palette 304 is selected, it is determined whether or not “SPECIAL” is selected in the tab selection unit 101. Judgment is made (step S305). When the CPU 70 determines that “SPECIAL” is selected (S305: YES), the CPU 70 displays an operation screen related to “SPECIAL” below the tab selection unit 101, and operates on the operation screen of “SPECIAL”. Is received (step S306), and the process proceeds to step S304.

ステップS305にて「SPECIAL」が選択されていないと判断された場合(S305:NO)、CPU70は、「STAMP」が選択されたか否かを判断する(ステップS307)。「STAMP」が選択されたと判断された場合(S307:YES)、CPU70はタブ選択部101の下方に「STAMP」に係る操作画面を表示し、操作画面上での操作を受け付け(ステップS308)、処理をステップS304へ進める。   If it is determined in step S305 that “SPECIAL” is not selected (S305: NO), the CPU 70 determines whether “STAMP” is selected (step S307). When it is determined that “STAMP” has been selected (S307: YES), the CPU 70 displays an operation screen related to “STAMP” below the tab selection unit 101 and accepts an operation on the operation screen (step S308). The process proceeds to step S304.

ステップS307にて「STAMP」が選択されていないと判断された場合(S307:NO)、CPU70は、「MESSAGE」が選択されたか否かを判断する(ステップS309)。「MESSAGE」が選択されたと判断された場合(S309:YES)、CPU70はタブ選択部101の下方に「MESSAGE」に係る操作画面を表示し、操作画面上での操作を受け付け(ステップS310)、処理をステップS304へ進める。   If it is determined in step S307 that “STAMP” has not been selected (S307: NO), the CPU 70 determines whether “MESSAGE” has been selected (step S309). When it is determined that “MESSAGE” has been selected (S309: YES), the CPU 70 displays an operation screen related to “MESSAGE” below the tab selection unit 101 and accepts an operation on the operation screen (step S310). The process proceeds to step S304.

ステップS309にて「MESSAGE」が選択されていないと判断された場合(S309:NO)、CPU70は、「MAKE」が選択されたか否かを判断する(ステップS311)。「MAKE」が選択されたと判断された場合(S311:YES)、CPU70はタブ選択部101の下方にメイクパレット310(「MAKE」に係る操作画面に対応)を表示し、メイクパレット310上での操作を受け付け(ステップS312)、処理をステップS304へ進める。ステップS312については詳細を後述する。   When it is determined in step S309 that “MESSAGE” has not been selected (S309: NO), the CPU 70 determines whether “MAKE” has been selected (step S311). If it is determined that “MAKE” has been selected (S311: YES), the CPU 70 displays a makeup palette 310 (corresponding to the operation screen related to “MAKE”) below the tab selection unit 101, and is displayed on the makeup palette 310. The operation is accepted (step S312), and the process proceeds to step S304. Details of step S312 will be described later.

ステップS311にて「MAKE」が選択されていないと判断された場合(S311:NO)、CPU70は処理をステップS304へ進める。   If it is determined in step S311 that “MAKE” has not been selected (S311: NO), the CPU 70 advances the process to step S304.

ステップS304にて、時間切れになったか、又は終了指示を受け付けたかにより、落書き操作が終了したと判断された場合(S304:YES)、CPU70は、図4のフローチャートに示したステップS209へ処理を戻す。   When it is determined in step S304 that the graffiti operation has ended due to time-out or an end instruction being received (S304: YES), the CPU 70 proceeds to step S209 shown in the flowchart of FIG. return.

図8は、メイクに係る操作及び選択を受け付ける処理手順の一例を示すフローチャートである。以下に示す処理手順は、図7のフローチャートに示した処理手順の内のステップS312の詳細である。   FIG. 8 is a flowchart illustrating an example of a processing procedure for receiving operations and selections related to makeup. The processing procedure shown below is the details of step S312 in the processing procedure shown in the flowchart of FIG.

CPU70は、図7のフローチャートに示した処理の内、ステップS311にて「MAKE」タブが選択された場合に初期的に、「ワンタッチ」に係る操作画面をキャンバス部107に表示し(ステップS401)、メイク選択部102にて他のメイクの種類が選択されたか否かを判断し(ステップS402)、他のメイクの種類が選択されていないと判断した場合(S402:NO)、「ワンタッチ」メイクに係る処理を実行する(ステップS403)。「ワンタッチ」メイクに係る処理の詳細については後述する。   In the process shown in the flowchart of FIG. 7, when the “MAKE” tab is selected in step S311, the CPU 70 initially displays an operation screen related to “one touch” on the canvas unit 107 (step S401). Then, it is determined whether or not another makeup type has been selected by makeup selecting section 102 (step S402). If it is determined that another makeup type has not been selected (S402: NO), “one-touch” makeup is performed. The process according to the above is executed (step S403). Details of processing related to “one-touch” makeup will be described later.

CPU70は、ステップS403の処理後、タブ選択部101にて他の落書きの種類が選択されるか、落書き編集が確定されて終了したか若しくは時間切れになったかによって、「メイク」の落書き編集受け付けを終了するか否かを判断する(ステップS404)。CPU70は「メイク」の落書き編集受け付けを終了しないと判断した場合(S404:NO)、処理をステップS402へ戻す。   After processing in step S403, the CPU 70 accepts “make-up” graffiti editing depending on whether another type of graffiti is selected by the tab selection unit 101, whether the graffiti editing has been finalized, or has expired. It is determined whether or not to end (step S404). If the CPU 70 determines that the acceptance of “make-up” graffiti editing is not completed (S404: NO), the process returns to step S402.

CPU70は、ステップS402にて「ワンタッチ」以外の他のメイクの種類が選択されたと判断した場合(S402:YES)、メイク選択部102にて「リップ」が選択されたか否かを判断する(ステップS405)。CPU70は、ステップS405にて「リップ」が選択されていると判断した場合(S405:YES)、「リップ」に係る処理を実行し(ステップS406)、ステップS404へ処理を進める。「リップ」に係る処理については詳細を後述する。   If CPU 70 determines in step S402 that a makeup type other than “one touch” has been selected (S402: YES), CPU 70 determines whether or not “lip” has been selected by makeup selector 102 (step S402). S405). If the CPU 70 determines that “lip” is selected in step S405 (S405: YES), the CPU 70 executes processing related to “lip” (step S406), and advances the processing to step S404. Details of the processing related to “lip” will be described later.

CPU70は、「リップ」が選択されていないと判断した場合(S405:NO)、「チーク」が選択されたか否かを判断する(ステップS407)。CPU70は、「チーク」が選択されていると判断した場合(S407:YES)、「チーク」に係る処理を実行し(ステップS408)、ステップS404へ処理を進める。「チーク」に係る処理については詳細を後述する。   When the CPU 70 determines that “lip” is not selected (S405: NO), the CPU 70 determines whether “teak” is selected (step S407). If the CPU 70 determines that “Cheek” is selected (S407: YES), the CPU 70 executes a process related to “Cheek” (Step S408), and advances the process to Step S404. Details of the processing related to “teak” will be described later.

CPU70は、「チーク」が選択されていないと判断した場合(S407:NO)、「カラコン」が選択されたか否かを判断する(ステップS409)。CPU70は、「カラコン」が選択されていると判断した場合(S409:YES)、「カラコン」に係る処理を実行し(ステップS410)、ステップS404へ処理を進める。「カラコン」に係る処理については詳細を後述する。   If the CPU 70 determines that “Cheek” is not selected (S407: NO), the CPU 70 determines whether “Colorcon” is selected (step S409). When the CPU 70 determines that “color control” is selected (S409: YES), the CPU 70 executes processing related to “color control” (step S410), and advances the processing to step S404. Details of the process related to “color control” will be described later.

CPU70は、「カラコン」が選択されていないと判断した場合(S409:NO)、「アイライン」が選択されたか否かを判断する(ステップS411)。CPU70は、「アイライン」が選択されていると判断した場合(S411:YES)、「アイライン」に係る処理を実行し(ステップS412)、ステップS404へ処理を進める。「アイライン」に係る処理については詳細を後述する。   If the CPU 70 determines that “color control” is not selected (S409: NO), the CPU 70 determines whether “eye line” is selected (step S411). When the CPU 70 determines that “eye line” is selected (S411: YES), the CPU 70 executes processing related to “eye line” (step S412), and proceeds to step S404. Details of the processing relating to “eyeline” will be described later.

CPU70は、「アイライン」が選択されていないと判断した場合(S411:NO)、「つけまつげ」が選択されたか否かを判断する(ステップS413)。CPU70は、「つけまつげ」が選択されていると判断した場合(S413:YES)、「つけまつげ」に係る処理を実行し(ステップS414)、ステップS404へ処理を進める。「つけまつげ」に係る処理については詳細を後述する。   When determining that “eye line” is not selected (S411: NO), the CPU 70 determines whether “false eyelashes” is selected (step S413). When the CPU 70 determines that “false eyelashes” is selected (S413: YES), the CPU 70 executes a process related to “false eyelashes” (step S414), and advances the process to step S404. Details of the processing related to “false eyelashes” will be described later.

CPU70は、「つけまつげ」が選択されていないと判断した場合(S413:NO)、「ヘアカラー」が選択されたか否かを判断する(ステップS415)。CPU70は、「ヘアカラー」が選択されていると判断した場合(S415:YES)、「ヘアカラー」に係る処理を実行し(ステップS416)、ステップS404へ処理を進める。「ヘアカラー」に係る処理については詳細を後述する。CPU70は、ステップ415にて「ヘアカラー」が選択されていないと判断した場合(S415:NO)、他のタブ等が選択されているので処理をステップS404へ進める。   When determining that “false eyelashes” has not been selected (S413: NO), the CPU 70 determines whether “hair color” has been selected (step S415). When the CPU 70 determines that “hair color” is selected (S415: YES), the CPU 70 executes processing related to “hair color” (step S416), and advances the processing to step S404. Details of the processing relating to “hair color” will be described later. If the CPU 70 determines that “hair color” is not selected in step 415 (S415: NO), the CPU 70 proceeds to step S404 because another tab is selected.

CPU70は、ステップS404にて「メイク」の落書き編集受け付けを終了すると判断した場合(S404:YES)、CPU70は、処理を図7のフローチャートに示したステップS305へ処理を戻す。   When CPU 70 determines in step S404 that graffiti editing acceptance of “make” is to be terminated (S404: YES), CPU 70 returns the process to step S305 shown in the flowchart of FIG.

次に、図8のフローチャートを参照して説明した「メイク」の落書き編集受け付けの詳細をメイクの種類別に順に説明する。なお以下に説明する複数の種類のメイクについての落書き編集は、撮影により得られた画像上に重畳される複数のレイヤーに夫々対応付けられる。図9は、落書き編集に係るレイヤー構造の一例を模式的に示す説明図である。図9に示すように、撮影により得られた画像データに基づき抽出された1又は複数の人物被写体領域を含む画像上に、6種類のメイク夫々について自動的に描画される画像用のレイヤーが重畳され、更に手動で描画されるメイクの画像のレイヤーが重畳されている。詳細には下から、リップ、チーク、カラコン、アイライン、つけまつげ2(下)、及びつけまつげ1(上)の自動描画用と、ヘアカラー以外の手動描画用、ヘアカラーの手動描画用の順で重畳されている。異なるレイヤーに対応付けて記憶される落書きは、別個に表示/非表示、削除等が可能である。   Next, details of acceptance of graffiti editing for “makeup” described with reference to the flowchart of FIG. 8 will be described in order by makeup type. Note that the doodle editing for a plurality of types of makeup described below is associated with a plurality of layers superimposed on an image obtained by shooting. FIG. 9 is an explanatory diagram schematically showing an example of a layer structure related to graffiti editing. As shown in FIG. 9, an image layer automatically drawn for each of the six types of makeup is superimposed on an image including one or more human subject areas extracted based on image data obtained by shooting. Further, a layer of a makeup image that is manually drawn is superimposed. Specifically, from the bottom, in order of automatic drawing of lip, teak, colored contact lens, eyeline, false eyelash 2 (bottom), false eyelash 1 (top), manual drawing other than hair color, and manual drawing of hair color It is superimposed. Graffiti stored in association with different layers can be displayed / hidden or deleted separately.

<1.「リップ」について>
「リップ」について図5の落書き用操作画面の内容例を参照して説明する。「リップ」は唇へ口紅又はリップグロスを塗布するメイクを施したような画像処理を行なう機能である。「リップ」の機能では唇領域を自動的に特定して化粧を施す自動モードのみが存在する。図5中のプレビュー表示部301に対応するメイクパレット310には、メイク選択部102で「リップ」が選択された場合に表示される自動モードのときのキャンバス部107の内容例が示されている。「リップ」が選択されている場合、キャンバス部107には複数種類のリップスティックに夫々対応した複数のリップ選択アイコン721、「リップ」のメイクを消去するOFFボタン723、一部を消去する消しゴム選択ボタン724が配置される。
<1. About "Lip">
“Lip” will be described with reference to the example of the operation screen for graffiti in FIG. “Lip” is a function of performing image processing such as applying makeup that applies lipstick or lip gloss to the lips. In the “lip” function, there is only an automatic mode for automatically applying makeup by specifying the lip area. A makeup palette 310 corresponding to the preview display section 301 in FIG. 5 shows an example of the contents of the canvas section 107 in the automatic mode displayed when “lip” is selected by the makeup selection section 102. . When “lip” is selected, a plurality of lip selection icons 721 respectively corresponding to a plurality of types of lipsticks, an OFF button 723 for erasing “lip” makeup, and an eraser selection for partially erasing are selected. A button 724 is arranged.

画像処理部7のHDD72に記憶されているメイク用情報720は、図5のキャンバス部107に示されている画像に対応するリップ用の色、テクスチャ及びグラデーションパターンを識別するリップパターン情報を複数種類含む。複数種類のリップパターン情報は例えば、色味の異なる複数のピンク、オレンジ、レッドなどの色情報、色情報に加えて光沢感を出すためのテクスチャ情報、更に上唇と下唇で色味又は濃淡を変化させるグラデーションパターンの情報が含まれる。テクスチャ情報は例えば、微細な粒子又は金属箔が散りばめられたような画像、又は光沢部分のパターン画像を含む。グラデーションパターンの情報は例えば、混合される複数の色の情報と、色を変化させる位置、各色の透明度等の情報を含む。   The makeup information 720 stored in the HDD 72 of the image processing unit 7 includes a plurality of types of lip pattern information for identifying lip colors, textures, and gradation patterns corresponding to the image shown in the canvas unit 107 of FIG. Including. Multiple types of lip pattern information include, for example, a plurality of color information such as pink, orange, and red with different colors, texture information for giving a glossy feeling in addition to color information, and color or shade on the upper and lower lips. Contains information on the gradation pattern to be changed. The texture information includes, for example, an image in which fine particles or metal foil is scattered, or a pattern image of a glossy portion. The information on the gradation pattern includes, for example, information on a plurality of colors to be mixed, information on a position where the color is changed, transparency of each color, and the like.

CPU70はまず、「リップ」について以下の事前処理を実行しておく。具体的にはCPU70は、図4のフローチャートに示したステップS204にて特定された1又は複数の人物の顔領域、及び口領域に基づいて、各人物用の顔領域に重畳させる唇画像を作成しておく事前処理を行なう。図10は、「リップ」用の事前処理の手順の一例を示すフローチャートである。   First, the CPU 70 executes the following pre-processing for “lip”. Specifically, the CPU 70 creates a lip image to be superimposed on each person's face area based on the face area and mouth area of one or more persons specified in step S204 shown in the flowchart of FIG. Perform pre-processing. FIG. 10 is a flowchart illustrating an example of a pre-processing procedure for “lip”.

CPU70は、複数の画像データから1つの画像データを選択し(ステップS501)、選択中の画像データにて抽出されている1又は複数の人物被写体領域の内の顔領域の中から1つの顔領域を選択する(ステップS502)。CPU70は選択した顔領域にて特定されている口領域(上唇及び下唇又は唇全体)の輪郭を特定する(ステップS503)。CPU70は、特定した輪郭に基づき唇マスク画像を作成し(ステップS504)、選択中の顔領域と対応付けてメモリ71又はHDD72に記憶する(ステップS505)。   The CPU 70 selects one image data from the plurality of image data (step S501), and one face area is selected from the face areas in the one or more person subject areas extracted from the currently selected image data. Is selected (step S502). The CPU 70 specifies the outline of the mouth area (upper lip and lower lip or the entire lip) specified in the selected face area (step S503). The CPU 70 creates a lip mask image based on the identified contour (step S504), and stores it in the memory 71 or the HDD 72 in association with the selected face area (step S505).

CPU70は、記憶した唇マスク画像に基づいてグラフィックボード73を用い、選択中の顔領域から唇領域を抽出して唇画像を作成する(ステップS506)。このときCPU70は、作成した唇画像を口領域の中心から外側へ向けて1又は複数画素分拡大しておいてもよい。異なる画素数分拡大した複数の唇画像を段階的に作成してもよい。   The CPU 70 uses the graphic board 73 based on the stored lip mask image to extract the lip region from the currently selected face region and create a lip image (step S506). At this time, the CPU 70 may enlarge the created lip image by one or more pixels from the center of the mouth area to the outside. A plurality of lip images enlarged for different numbers of pixels may be created in stages.

CPU70は、HDD72に記憶されている複数種類のリップパターン情報の内、1つのリップパターン情報を選択し(ステップS507)、選択したリップパターン情報に含まれる情報に基づく色、テクスチャ、及びグラデーションパターンによって唇画像を塗る描画処理を行なう(ステップS508)。CPU70は、処理後の唇画像を選択中の顔領域、及び選択中のリップパターン情報と対応付けてメモリ71又はHDD72に記憶する(ステップS509)。CPU70は、ステップS508及びステップS509の処理を、1つの唇画像の1つのリップパターン情報に対し、濃淡、透明度又は重畳させるテクスチャ画像の透明度等を予め記憶してある複数の段階で変更して実行し、各段階の唇画像を区別して記憶する。したがってCPU70は、複数段階全てについて処理を行なったか否か判断し(ステップS510)、未処理の段階があると判断した場合(S510:NO)、処理をステップS508へ戻して未処理の段階について処理を実行する。   The CPU 70 selects one lip pattern information from a plurality of types of lip pattern information stored in the HDD 72 (step S507), and uses the color, texture, and gradation pattern based on the information included in the selected lip pattern information. A drawing process for painting a lip image is performed (step S508). The CPU 70 stores the processed lip image in the memory 71 or the HDD 72 in association with the selected face area and the selected lip pattern information (step S509). The CPU 70 executes the processing of step S508 and step S509 by changing the density, transparency, transparency of the texture image to be superimposed, etc., for one lip pattern information of one lip image at a plurality of stages stored in advance. The lip images at each stage are distinguished and stored. Therefore, the CPU 70 determines whether or not processing has been performed for all of the plurality of stages (step S510), and if it is determined that there is an unprocessed stage (S510: NO), the process returns to step S508 to process the unprocessed stage. Execute.

CPU70は、ステップS510にて予め記憶してある複数段階全てについて処理を行なったと判断した場合(S510:YES)、全てのリップパターン情報を選択したか否かを判断する(ステップS511)。未選択のリップパターン情報が存在すると判断された場合(S511:NO)、CPU70は処理をステップS507へ戻す。   When CPU 70 determines that processing has been performed for all of the plurality of stages stored in advance in step S510 (S510: YES), CPU 70 determines whether all lip pattern information has been selected (step S511). When it is determined that unselected lip pattern information exists (S511: NO), the CPU 70 returns the process to step S507.

CPU70は、全てのリップパターン情報を選択したと判断した場合(S511:YES)、画像データ中の全ての顔領域を選択したか否かを判断する(ステップS512)。CPU70は、未選択の顔領域が存在すると判断した場合(S512:NO)、処理をステップS502へ戻す。CPU70はステップS512で全ての顔領域を選択したと判断した場合(S512:YES)、撮影回数分の全画像データを選択したか否かを判断し(ステップS513)、未選択の画像データが存在すると判断した場合(S513:NO)、処理をステップS501へ戻す。CPU70は、全画像データを選択したと判断した場合(S513:YES)、「リップ」用の事前処理を終了する。   When determining that all the lip pattern information has been selected (S511: YES), the CPU 70 determines whether all the face regions in the image data have been selected (step S512). If the CPU 70 determines that an unselected face area exists (S512: NO), the process returns to step S502. If the CPU 70 determines that all the face areas have been selected in step S512 (S512: YES), it determines whether or not all image data for the number of times of shooting has been selected (step S513), and there is unselected image data. If so (S513: NO), the process returns to step S501. If the CPU 70 determines that all image data has been selected (S513: YES), the CPU 70 finishes the “lip” pre-processing.

次に、落書き用操作画面でユーザが操作している間の「リップ」についてのリアルタイム処理について説明する。図11は、「MAKE」の操作の受け付け中における「リップ」に係る処理手順の一例を示すフローチャートである。以下に説明する処理は、図8のフローチャートのステップS406の詳細に対応する。   Next, real-time processing for “lip” while the user is operating on the operation screen for graffiti will be described. FIG. 11 is a flowchart illustrating an example of a processing procedure related to “lip” during reception of an operation of “MAKE”. The process described below corresponds to the details of step S406 in the flowchart of FIG.

CPU70はまず、自動モードのみに実行すべき個別/全員切替処理を実行する(ステップS601)。ステップS601で実行される個別/全員切替処理について説明する。図12は、個別/全員切替処理の一例の詳細を示すフローチャートである。CPU70は、個別/全員切替処理の実行がメイクに係る処理の中で初回であるか否かを判断し(ステップS3001)、初回であると判断した場合(S3001:YES)、初期的に「みんな」を選択し(ステップS3002)、特定されている全部の顔領域を含む所定範囲の画像を顔サンプル表示部103に表示する(ステップS3003)。CPU70は、顔切替部106を無効化し(ステップS3004)、次のステップS3005へ処理を進める。初回以外では、異なるメイクの種類が選択された場合でも直前に個別を選択していたのか、全員を選択していたのかを保持しておくためである。   First, the CPU 70 executes an individual / all members switching process that should be executed only in the automatic mode (step S601). The individual / all members switching process executed in step S601 will be described. FIG. 12 is a flowchart showing details of an example of the individual / all-person switching process. The CPU 70 determines whether or not the execution of the individual / all-members switching process is the first time in the process related to makeup (step S3001). "Is selected (step S3002), and an image of a predetermined range including all the specified face areas is displayed on the face sample display unit 103 (step S3003). The CPU 70 invalidates the face switching unit 106 (step S3004), and proceeds to the next step S3005. The reason is to keep whether the individual has been selected immediately before or when all the members have been selected even when a different makeup type is selected except for the first time.

ステップS3001にて初回でないと判断された場合(S3001:NO)、及びS3004の後は、CPU70は「みんな」が選択中であるか否かを判断する(ステップS3005)。「みんな」が選択中であると判断された場合(S3005:YES)、CPU70は個別選択部104により「個別」が選択されたか否かを判断する(ステップS3006)。「個別」が選択されていないと判断された場合(S3006:NO)、CPU70は、編集対象の画像データにて特定された全顔領域をメイク対象とし(ステップS3007)、個別/全員切替処理を終了し、各別のメイク編集を受け付ける処理を続行する。   When it is determined in step S3001 that it is not the first time (S3001: NO), and after S3004, the CPU 70 determines whether “everyone” is being selected (step S3005). When it is determined that “Everyone” is being selected (S3005: YES), the CPU 70 determines whether “Individual” is selected by the individual selection unit 104 (Step S3006). When it is determined that “individual” has not been selected (S3006: NO), the CPU 70 sets all the face areas specified by the image data to be edited as the makeup targets (step S3007), and performs the individual / all-person switching process. End and continue the process of accepting different makeup edits.

ステップS3006にて個別選択部104がタッチペン31aによって選択され、「個別」が選択されたと判断された場合(S3006:YES)、CPU70は顔切替部106を有効化すると共に(ステップS3008)、編集対象の画像データにて特定されている全顔領域の内の1つの顔領域を選択する(ステップS3009)。CPU70は選択された顔領域を含む画像を顔サンプル部103に表示し(ステップS3010)、選択されている顔領域をメイク対象とし(ステップS3011)、個別/全員切替処理を終了し、各別のメイク編集を受け付ける処理を続行する。   If the individual selection unit 104 is selected by the touch pen 31a in step S3006 and it is determined that “individual” is selected (S3006: YES), the CPU 70 activates the face switching unit 106 (step S3008) and edits it. One face area is selected from all the face areas specified by the image data (step S3009). The CPU 70 displays an image including the selected face area on the face sample unit 103 (step S3010), sets the selected face area as a makeup target (step S3011), ends the individual / all-person switching process, Continue processing to accept makeup edits.

ステップS3005にて「みんな」が選択中でないと判断された場合(S3005:NO)、CPU70は顔切替部106がタッチペン31aによって選択されたか否かを判断する(ステップS3012)。CPU70は、顔切替部106が選択されたと判断した場合(S3012:YES)、選択されている顔領域に対して他の顔領域を巡回的に選択し(ステップS3013)、処理をステップS3010へ進める。   When it is determined in step S3005 that “Everyone” is not selected (S3005: NO), the CPU 70 determines whether or not the face switching unit 106 is selected by the touch pen 31a (step S3012). If the CPU 70 determines that the face switching unit 106 has been selected (S3012: YES), the CPU 70 cyclically selects another face area for the selected face area (step S3013), and the process proceeds to step S3010. .

ステップS3012にて顔切替部106が選択されていないと判断された場合(S3012:NO)、全員選択部105がタッチペン31aによって選択され、「みんな」が選択されたか否かを判断する(ステップS3014)。「みんな」が選択されたと判断された場合(S3014:YES)、CPU70は特定されている全部の顔領域を含む所定範囲の画像を顔サンプル表示部103に表示し(ステップS3015)、顔切替部106を無効化して(ステップS3016)、処理をステップS3007へ進める。   If it is determined in step S3012 that the face switching unit 106 is not selected (S3012: NO), it is determined whether or not the “all” selection unit 105 is selected by the touch pen 31a and “everyone” is selected (step S3014). ). When it is determined that “Everyone” has been selected (S3014: YES), the CPU 70 displays a predetermined range of images including all the specified face areas on the face sample display unit 103 (step S3015), and a face switching unit. 106 is invalidated (step S3016), and the process proceeds to step S3007.

ステップS3014にて「みんな」が選択されていないと判断された場合(S3014:NO)、他の部分が選択されたか編集処理がなされているので、CPU70は処理を図7のフローチャートへ戻し、他の操作を受け付ける処理を続行する。   If it is determined in step S3014 that “Everyone” has not been selected (S3014: NO), the CPU 70 returns the processing to the flowchart of FIG. Continue processing to accept the operation.

このように、本実施の形態における「メイク」の落書き編集受け付けでは、メイク対象を個別/全員で切り替えることが可能である。したがって複数のユーザで複数の撮影がなされた場合に、複数回の撮影に対応する複数の画像データ毎に、全員分の顔領域に同一のメイクを施す画像処理を行なうのか、個別の顔領域に夫々異なるメイクを施す画像処理を行なうのかを、ユーザが選択することが可能である。   As described above, in the “make-up” graffiti editing acceptance in the present embodiment, the makeup object can be switched individually / all. Therefore, when a plurality of images are taken by a plurality of users, image processing for applying the same makeup to the face area for all members is performed for each of a plurality of image data corresponding to a plurality of times of shooting, or the individual face areas are The user can select whether to perform image processing for applying different makeups.

図11のフローチャートに戻り、説明を続ける。CPU70は個別/全員切替処理を行なった後、リップ選択アイコン721が選択されたか否かを判断する(ステップS602)。CPU70は、リップ選択アイコン721が選択されたと判断した場合(S602:YES)、選択されたリップ選択アイコン721に対応するリップパターン情報を識別する(ステップS603)。   Returning to the flowchart of FIG. 11, the description will be continued. After performing the individual / all members switching process, the CPU 70 determines whether or not the lip selection icon 721 has been selected (step S602). When determining that the lip selection icon 721 has been selected (S602: YES), the CPU 70 identifies lip pattern information corresponding to the selected lip selection icon 721 (step S603).

CPU70は、メイク対象の顔領域(「個別」が選択されている場合は選択中の1つの顔領域、「みんな」が選択されている場合は全顔領域)に対応付けて記憶されている各顔領域に対して位置が決定され、拡縮、回転等の変形が完了している唇画像の内、ステップS603で識別されたリップパターン情報が対応付けられている唇画像を抽出する(ステップS604)。CPU70は、抽出した唇画像の内、複数の段階の内の所定の段階(例えば中央の段階)で処理が実行された唇画像を選択し(ステップS605)、選択した唇画像を、リップの自動描画用のレイヤーにおける対応する顔領域に対応する位置に重畳させて表示する(ステップS606)。これにより、プレビュー表示部301の対応する顔領域内の唇の位置に唇画像が重畳される。   The CPU 70 stores each face area in association with the face area to be made (one face area being selected when “individual” is selected, or all face areas when “everyone” is selected). Among the lip images whose positions are determined with respect to the face area and whose deformations such as enlargement / reduction and rotation have been completed, lip images associated with the lip pattern information identified in step S603 are extracted (step S604). . The CPU 70 selects a lip image that has been processed in a predetermined stage (for example, the middle stage) among a plurality of stages from the extracted lip image (step S605), and selects the selected lip image as an automatic lip image. The image is superimposed and displayed at a position corresponding to the corresponding face area in the drawing layer (step S606). Thereby, the lip image is superimposed on the position of the lip in the corresponding face area of the preview display unit 301.

CPU70は更に、プレビュー表示部301中のメイク対象の顔領域の近傍の唇画像以外の位置に、調整用画面を更に重畳させて表示する(ステップS607)。調整用画面が重畳されるレイヤーは図9に示した各メイク用のレイヤーよりも上である。調整用画面には複数の段階を調整するためのスライダーコントロール及びOKボタンが含まれている。CPU70は、調整用画面のOKボタンが選択されたか否かを判断し(ステップS608)、OKボタンが選択された場合(S608:YES)、表示中の唇画像を確定させて記憶し(ステップS609)、調整用画面を非表示とし(ステップ610)、「リップ」処理に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   The CPU 70 further superimposes and displays the adjustment screen at a position other than the lip image near the face area to be made in the preview display unit 301 (step S607). The layer on which the adjustment screen is superimposed is above each makeup layer shown in FIG. The adjustment screen includes a slider control and an OK button for adjusting a plurality of stages. The CPU 70 determines whether or not the OK button on the adjustment screen is selected (step S608). If the OK button is selected (S608: YES), the displayed lip image is confirmed and stored (step S609). ), The adjustment screen is hidden (step 610), the processing relating to the “lip” processing is terminated, and the processing is returned to step S404 in the flowchart of FIG.

ステップS608にてOKボタンが選択されていないと判断された場合(S608:NO)、CPU70は、スライダーコントロールが選択された否かを判断する(ステップS611)。CPU70はスライダーコントロールが選択されたと判断した場合(S611:YES)、スライダーコントロールのつまみの動き、「+」「−」の選択、又は直接的に選択された段階に応じて、表示中の唇画像を他の段階(連続する段階)で処理が実行された唇画像へ差し替え(ステップS611)、処理をステップS608へ戻す。   If it is determined in step S608 that the OK button has not been selected (S608: NO), the CPU 70 determines whether or not the slider control has been selected (step S611). If the CPU 70 determines that the slider control has been selected (S611: YES), the lip image being displayed is selected according to the movement of the slider control knob, the selection of “+”, “−”, or the level selected directly. Is replaced with the lip image processed in another stage (continuous stage) (step S611), and the process returns to step S608.

ステップS611にてスライダーコントロールが選択されていないと判断した場合(S611:NO)、CPU70は調整用画面外が選択されたか否かを判断する(ステップS613)。CPU70は、調整用画面外が選択されていないと判断した場合(S613:NO)、処理をステップS608へ戻す。なお、CPU70はCANCELボタンを更に含む調整用画面を表示するようにし、OKボタン又はCANCELボタンのいずれかが選択されるまで待機するようにしてもよい。   If it is determined in step S611 that the slider control is not selected (S611: NO), the CPU 70 determines whether or not the adjustment screen is selected (step S613). If the CPU 70 determines that the outside of the adjustment screen has not been selected (S613: NO), the CPU 70 returns the process to step S608. The CPU 70 may display an adjustment screen further including a CANCEL button, and may wait until either the OK button or the CANCEL button is selected.

ステップS613にて調整用画面外が選択されたと判断した場合(S613:YES)、CPU70は表示している唇画像をキャンセル扱いとして非表示とし、更に調整用画像を非表示とし(ステップS614)、「リップ」処理に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   If it is determined in step S613 that the outside of the adjustment screen has been selected (S613: YES), the CPU 70 hides the displayed lip image as a cancel, further hides the adjustment image (step S614), The process related to the “lip” process is terminated, and the process returns to step S404 in the flowchart of FIG.

CPU70は、ステップS602にてリップ選択アイコン721が選択されていないと判断した場合(S602:NO)、OFFボタン723が選択されたか否かを判断する(ステップS615)。CPU70はOFFボタン723が選択されたと判断した場合(S615:YES)、表示している唇画像を非表示として確定を解除し(ステップS616)、「リップ」に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   If the CPU 70 determines in step S602 that the lip selection icon 721 has not been selected (S602: NO), it determines whether or not the OFF button 723 has been selected (step S615). If the CPU 70 determines that the OFF button 723 has been selected (S615: YES), the displayed lip image is not displayed and the confirmation is canceled (step S616), and the processing relating to “lip” is terminated, and FIG. The process returns to step S404 in the flowchart.

CPU70は、OFFボタン723が選択されていないと判断した場合(S615:NO)、そのまま「リップ」に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   When the CPU 70 determines that the OFF button 723 is not selected (S615: NO), the CPU 70 ends the process relating to “lip” as it is, and returns the process to step S404 in the flowchart of FIG.

なお消しゴム選択ボタン724については、CPU70は、消しゴム選択ボタン724が選択された後にタッチペン31aの接触箇所に対応する軌跡の座標情報を記憶し、記憶した座標情報に沿って、選択された太さにて唇画像の一部を非表示(透明)にすればよい。   For the eraser selection button 724, the CPU 70 stores the coordinate information of the locus corresponding to the contact location of the touch pen 31a after the eraser selection button 724 is selected, and the selected thickness is selected along the stored coordinate information. Thus, a part of the lip image may be hidden (transparent).

図13は、調整用画面の表示例を示す説明図であり、図14は、調整用画面によって調整されるリップメイクの内容例を示す説明図である。図13にはプレビュー表示部301に表示されているメイク対象の顔領域に、調整用画面305が重畳表示されていることが示されている。調整用画面305にはスライダーコントロール306、及びOKボタン307が含まれている。図14に示すように、スライダーコントロール306のつまみの位置に応じて、プレビュー表示部301に表示されているメイク対象の顔領域に重畳されている唇画像が差し替えられる。唇画像が、1つのリップパターン情報に対し、光沢感を出すテクスチャ画像の透明度等を予め記憶してある複数の段階で変更して作成されている場合、唇画像の差し替えによって光沢感の強弱が変更される。これによりユーザは、マット感のある唇から、グロスを乗せたような光沢感の唇までの間で、リップメイクの光沢感の強弱を好みに合わせて調整することができる。なお、色の濃淡を調整できるようにしてもよい。なおスライダーコントロール306ではなく、リップの光沢感の強弱を段階的に選択することが可能な他のコントロールであってもよい。   FIG. 13 is an explanatory view showing a display example of an adjustment screen, and FIG. 14 is an explanatory view showing an example of the contents of lip makeup adjusted by the adjustment screen. FIG. 13 shows that an adjustment screen 305 is superimposed and displayed on the face area to be makeup displayed on the preview display unit 301. The adjustment screen 305 includes a slider control 306 and an OK button 307. As shown in FIG. 14, the lip image superimposed on the makeup target face area displayed on the preview display unit 301 is replaced according to the position of the knob of the slider control 306. When a lip image is created by changing the transparency of a texture image that gives a glossy feeling in a plurality of stages stored in advance for one lip pattern information, the intensity of the glossiness can be reduced by replacing the lip image. Be changed. Thereby, the user can adjust the glossiness of the lip makeup according to his preference from the lips with a matte feeling to the glossy lips with gloss. Note that the color density may be adjusted. Instead of the slider control 306, another control that can select the level of glossiness of the lip stepwise may be used.

<2.「チーク」について>
「チーク」について図5の落書き用操作画面の内容例を参照して説明する。「チーク」は、頬領域への頬紅を塗布するメイクを施したような画像処理を行なう機能である。「チーク」の機能では頬領域を自動的に特定して化粧を施す自動モードと、ユーザが手動操作によって頬領域にチーク用画像を配置する手動モードとがあり、いずれか選択できる。なお顔領域及び頬領域の特定に成功している場合、初期的には自動モードが選択される。顔領域及び頬領域の特定に失敗した場合は、手動モードのみで以下に示す処理が実行される。図5中のプレビュー表示部302に対応するメイクパレット310には、メイク選択部102で「チーク」が選択された場合に表示される自動モードのときのキャンバス部107の内容例が示されている。自動モードにおけるキャンバス部107には複数種類のチークに夫々対応した複数のチーク選択アイコン731、「チーク」のメイク操作を手動モードに切り替えるための手動ボタン732、「チーク」のメイクを消去するOFFボタン733、及び一部を消去する消しゴム選択ボタン734が含まれる。
<2. About "Teak">
“Teak” will be described with reference to the example of the operation screen for graffiti in FIG. “Teak” is a function of performing image processing as if makeup was applied to apply blusher to the cheek area. The “cheek” function includes an automatic mode in which a cheek region is automatically specified and makeup is applied, and a manual mode in which the user places a cheek image in the cheek region by a manual operation. Note that when the identification of the face area and the cheek area is successful, the automatic mode is initially selected. When the identification of the face area and the cheek area fails, the following processing is executed only in the manual mode. A makeup palette 310 corresponding to the preview display section 302 in FIG. 5 shows an example of the contents of the canvas section 107 in the automatic mode displayed when “Cheek” is selected by the makeup selection section 102. . The canvas portion 107 in the automatic mode has a plurality of cheek selection icons 731 respectively corresponding to a plurality of types of cheeks, a manual button 732 for switching the “Cheek” makeup operation to the manual mode, and an OFF button for erasing the “Cheek” makeup. 733, and an eraser selection button 734 for deleting a part.

画像処理部7のHDD72に記憶されているメイク用情報720は、図5のキャンバス部107に示されている画像に対応する複数種類のチーク用画像を含む。チーク用画像は例えば、略円形、ハート形、卵形、扁平な楕円形などの形状で、ピンク、レッド、オレンジ等の異なる色で彩色されている。またチーク用画像は夫々、半透明であって更に周囲がぼかされていて顔領域上に重畳された場合に自然に見えるようにしてある。チーク用画像は各形状及び色に加え、透明でないラメ、ホログラム、ラインストーン、スタッズ、又はシール等の光輝を放つ装飾物の画像が含まれるものもある。これらの装飾用の画像によって、頬骨周辺にキラキラとした光輝を放つ細粒等を散りばめるメイクを施したような画像を顔領域に重畳させることが可能である。   The makeup information 720 stored in the HDD 72 of the image processing unit 7 includes a plurality of types of cheek images corresponding to the image shown in the canvas unit 107 of FIG. The cheek image has, for example, a substantially circular shape, a heart shape, an egg shape, a flat oval shape, etc., and is colored with different colors such as pink, red, and orange. Each of the cheek images is translucent, further blurred in the periphery, and looks natural when superimposed on the face area. In addition to each shape and color, the cheek image includes an image of a decorative object that emits glitter such as a non-transparent glitter, hologram, rhinestone, studs, or seal. With these decorative images, it is possible to superimpose on the face area an image that has been made with a sparkling glitter or the like scattered around the cheekbones.

CPU70は「チーク」について以下の事前処理を実行しておく。具体的にはCPU70は、図4のフローチャートに示したステップS204にて特定された1又は複数の人物の顔領域、各器官領域に基づいて、各人物の顔領域に重畳させるチーク用画像の色の変更、拡縮、傾きの変更等をしておく事前処理を行なう。図15は、「チーク」用の事前処理の手順の一例を示すフローチャートである。   The CPU 70 executes the following pre-processing for “teak”. Specifically, the CPU 70 determines the color of the cheek image to be superimposed on the face area of each person based on the face area and each organ area of one or more persons specified in step S204 shown in the flowchart of FIG. Pre-processing is performed to change, enlarge / reduce, change the inclination, etc. FIG. 15 is a flowchart illustrating an example of a pre-processing procedure for “teak”.

CPU70は、複数の画像データから1つの画像データを選択し(ステップS701)、選択中の画像データにて抽出されている1又は複数の人物被写体領域の内の顔領域の中から1つの顔領域を選択する(ステップS702)。CPU70は選択した顔領域にて特定されている顔の輪郭、及び各器官領域に基づき、顔領域内の所定の位置(中心を通る中心線の座標等)及びチーク領域を特定する(ステップS703)。チーク領域は、特定されている顔の輪郭、目の輪郭の下部分、及び鼻の輪郭で囲まれる左右に分かれた領域である。CPU70は、特定したチーク領域のチークマスク画像を作成し(ステップS704)、選択中の顔領域と対応付けてメモリ71又はHDD72に記憶する(ステップS705)。   The CPU 70 selects one image data from the plurality of image data (step S701), and one face area from among the face areas in one or a plurality of person subject areas extracted from the currently selected image data. Is selected (step S702). The CPU 70 specifies a predetermined position (coordinates of a center line passing through the center, etc.) and a cheek region in the face region based on the face outline specified in the selected face region and each organ region (step S703). . The cheek region is a region divided into right and left surrounded by the specified facial contour, the lower portion of the contour of the eye, and the contour of the nose. The CPU 70 creates a cheek mask image of the identified cheek area (step S704), and stores it in the memory 71 or the HDD 72 in association with the selected face area (step S705).

CPU70は、メイク用情報720中の複数種類のチーク用画像の内の1つを選択し(ステップS706)、ステップS703で特定した顔領域内の所定の位置又はチーク領域に基づいて、選択中のチーク用画像を重畳させる位置(画像内の座標)、大きさ、及び傾きを決定する(ステップS707)。CPU70は、選択中のチーク用画像を、ステップS707で決定した位置に、決定した大きさ及び傾きで配置した重畳用のチーク用画像を、選択中の顔領域と対応付けてメモリ71又はHDD72に記憶する(ステップS708)。CPU70は、ステップS708で記憶した重畳用のチーク用画像の色の濃淡又は透明度を予め記憶してある複数の段階で変更し、複数の段階の重畳用のチーク用画像を区別してメモリ71又はHDD72に記憶する(ステップS709)。   The CPU 70 selects one of a plurality of types of cheek images in the makeup information 720 (step S706), and is selected based on a predetermined position or cheek region in the face area specified in step S703. The position (coordinates in the image), size, and inclination for superimposing the cheek image are determined (step S707). The CPU 70 associates the selected cheek image in the position determined in step S707 with the determined size and inclination in the memory 71 or the HDD 72 in association with the selected face area. Store (step S708). The CPU 70 changes the shade or transparency of the color of the cheek image for superimposition stored in step S708 at a plurality of stages stored in advance, and distinguishes the cheek images for superposition at a plurality of stages to distinguish the memory 71 or the HDD 72. (Step S709).

次にCPU70は、全てのチーク用画像を選択したか否かを判断する(ステップS710)。未選択のチーク用画像が存在すると判断された場合(S710:NO)、CPU70は処理をステップS706へ戻す。   Next, the CPU 70 determines whether or not all cheek images have been selected (step S710). When it is determined that there is an unselected cheek image (S710: NO), the CPU 70 returns the process to step S706.

CPU70は、全てのチーク用画像を選択したと判断した場合(S710:YES)、画像データ中の全ての顔領域を選択したか否かを判断する(ステップS711)。CPU70は、未選択の顔領域が存在すると判断した場合(S711:NO)、処理をステップS702へ戻す。CPU70はステップS711で全ての顔領域を選択したと判断した場合(S711:YES)、撮影回数分の全画像データを選択したか否かを判断し(ステップS712)、未選択の画像データが存在すると判断した場合(S712:NO)、処理をステップS701へ戻す。CPU70は、全画像データを選択したと判断した場合(S712:YES)、「チーク」用の事前処理を終了する。このようにチーク用画像は顔領域の位置及び大きさ、前記複数の画素の配列方向に対する角度に基づき、顔領域内に収まるように変形され、決定された位置、大きさ、角度で重畳される。なおCPU70は、顔領域及び頬領域の特定に失敗した場合、図15のフローチャートに示した事前処理に係る処理は実行しない。   When determining that all the cheek images have been selected (S710: YES), the CPU 70 determines whether all the face areas in the image data have been selected (step S711). If the CPU 70 determines that there is an unselected face area (S711: NO), it returns the process to step S702. If the CPU 70 determines that all face areas have been selected in step S711 (S711: YES), the CPU 70 determines whether all image data for the number of times of shooting has been selected (step S712), and unselected image data exists. If so (S712: NO), the process returns to step S701. When the CPU 70 determines that all image data has been selected (S712: YES), the pre-processing for “teak” ends. In this way, the cheek image is deformed to fit within the face area based on the position and size of the face area and the angle with respect to the arrangement direction of the plurality of pixels, and is superimposed at the determined position, size, and angle. . If the CPU 70 fails to specify the face area and the cheek area, the CPU 70 does not execute the process related to the preliminary process shown in the flowchart of FIG.

次に、落書き用操作画面でユーザが操作している間の「チーク」についてのリアルタイム処理について説明する。図16は、「MAKE」の操作の受け付け中における「チーク」に係る処理手順の一例を示すフローチャートである。以下に説明する処理は、図8のフローチャートのステップS408の詳細に対応する。   Next, real-time processing for “teak” while the user is operating on the operation screen for graffiti will be described. FIG. 16 is a flowchart illustrating an example of a processing procedure related to “teak” during reception of an operation of “MAKE”. The process described below corresponds to the details of step S408 in the flowchart of FIG.

CPU70はまず、自動モードが選択されているか否かを判断する(ステップS801)。CPU70は、自動モードが選択されていると判断した場合(S801:YES)、図12のフローチャートに示した個別/全員切替処理を実行してメイク対象を判別する(ステップS802)。   First, the CPU 70 determines whether or not the automatic mode is selected (step S801). When it is determined that the automatic mode is selected (S801: YES), the CPU 70 executes the individual / all-person switching process shown in the flowchart of FIG. 12 to determine the makeup target (step S802).

CPU70は、チーク選択アイコン731が選択されたか否かを判断する(ステップS803)。CPU70は、チーク選択アイコン731が選択されたと判断した場合(S803:YES)、選択されたチーク選択アイコン731に対応するチーク用画像を識別する(ステップS804)。   CPU 70 determines whether cheek selection icon 731 has been selected (step S803). When determining that the cheek selection icon 731 has been selected (S803: YES), the CPU 70 identifies a cheek image corresponding to the selected cheek selection icon 731 (step S804).

CPU70は、メイク対象の顔領域(「個別」が選択されている場合は選択中の1つの顔領域、「みんな」が選択されている場合は全顔領域)に対応付けて記憶されているチーク用画像の内、ステップS804で識別されたチーク用画像に対応する重畳用のチーク用画像(位置、大きさ、角度等決定、変形、配置済み)を記憶されている中から抽出する(ステップS805)。CPU70は、抽出した重畳用のチーク用画像の内、複数の段階の内の略中央の段階で処理が実行された重畳用のチーク用画像を選択し(ステップS806)、選択した重畳用のチーク用画像を、チークの自動描画用のレイヤーにおける対応する顔領域上の対応する位置に重畳するように、チーク用マスク画像を利用して表示する(ステップS807)。これにより、プレビュー表示部302の対応する顔領域内の頬領域に重畳用のチーク用画像が重畳される。   The CPU 70 stores the cheek stored in association with the face area to be made (one face area being selected when “individual” is selected, or all face areas when “everyone” is selected). From the stored images, the superposed cheek images (position, size, angle, etc. determined, deformed and arranged) corresponding to the cheek images identified in step S804 are extracted (step S805). ). The CPU 70 selects a superposition cheek image that has been processed in a substantially central stage among the plurality of superposition cheek images (step S806), and selects the superposition cheek that has been selected. The cheek mask image is displayed using the cheek mask image so as to be superimposed on the corresponding position on the corresponding face area in the cheek automatic drawing layer (step S807). Thereby, the cheek image for superimposition is superimposed on the cheek area in the corresponding face area of the preview display unit 302.

CPU70は、レビュー表示部302中のメイク対象の顔領域の近傍のチーク領域以外の位置に、調整用画面を更に重畳させて表示する(ステップS808)。調整用画面には複数の段階間を調整するためのスライダーコントロール及びOKボタンが含まれている。CPU70は、調整用画面のOKボタンが選択されたか否かを判断し(ステップS809)、OKボタンが選択されたと判断した場合(S809:YES)、表示中の重畳用のチーク用画像を確定させて記憶し(ステップS810)、調整用画面を非表示とし(ステップS811)、「チーク」に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   The CPU 70 further superimposes and displays the adjustment screen at a position other than the cheek area near the makeup target face area in the review display unit 302 (step S808). The adjustment screen includes a slider control and an OK button for adjusting between a plurality of stages. The CPU 70 determines whether or not the OK button on the adjustment screen has been selected (step S809). If the CPU 70 determines that the OK button has been selected (S809: YES), it determines the cheek image for superimposition being displayed. (Step S810), the adjustment screen is hidden (step S811), the processing relating to “teak” is terminated, and the processing is returned to step S404 in the flowchart of FIG.

ステップS809にてOKボタンが選択されていないと判断された場合(S809:NO)、CPU70は、スライダーコントロールが選択された否かを判断する(ステップS812)。CPU70はスライダーコントロールが選択されたと判断した場合(S812:YES)、スライダーコントロールのつまみの動き、「+」「−」の選択、「+」「−」の選択、又は直接的に選択された段階に応じて、表示中の重畳用のチーク用画像を他の段階(隣接する段階の濃淡又は透明度)で処理が実行されたチーク用画像へ差し替えることで変更し(ステップS813)、処理をステップS809へ戻す。   If it is determined in step S809 that the OK button has not been selected (S809: NO), the CPU 70 determines whether or not the slider control has been selected (step S812). When the CPU 70 determines that the slider control has been selected (S812: YES), the slider control knob movement, “+”, “−” selection, “+” “−” selection, or a directly selected stage Accordingly, the superposed cheek image being displayed is changed to a cheek image that has been processed in another stage (shading or transparency of an adjacent stage) (step S813), and the process is performed in step S809. Return to.

ステップS812にてスライダーコントロールが選択されていないと判断された場合(S812:NO)、CPU70は調整用画面外が選択されたか否かを判断する(ステップS814)。CPU70は、調整用画面外が選択されていないと判断した場合(S814:NO)、処理をステップS809へ戻す。なおCPU70はCANCELボタンを更に含む調整用画面を表示するようにし、OKボタン又はCANCELボタンのいずれかのボタンが選択されるまで待機するようにしてもよい。   If it is determined in step S812 that the slider control is not selected (S812: NO), the CPU 70 determines whether or not the adjustment screen is selected (step S814). If the CPU 70 determines that the outside of the adjustment screen has not been selected (S814: NO), the process returns to step S809. The CPU 70 may display an adjustment screen that further includes a CANCEL button, and may wait until either the OK button or the CANCEL button is selected.

ステップS814にて調整用画面外が選択されたと判断された場合(S814:YES)、CPU70は、表示している重畳用のチーク用画像をキャンセル扱いとして非表示とし、更に調整用画面を非表示とし(ステップS815)、「チーク」に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   If it is determined in step S814 that the outside of the adjustment screen has been selected (S814: YES), the CPU 70 hides the displayed cheek image for superimposition as cancellation and further hides the adjustment screen. (Step S815), the process related to “teak” is terminated, and the process returns to Step S404 in the flowchart of FIG.

このように自動的にチーク用画像の位置を決定して変形したものを重畳させ、調整用画面にて複数段階への変更を受け付ける処理により、図13及び図14で示した「リップ」の調整用画面を用いた操作と同様に、「チーク」の濃淡が変更されたチーク用画像の差し替えが行なわれる。これにより、ユーザは、自動的に配置されたチーク用画像の濃淡を直感的に調整することができる。なおチーク用画像における濃淡又は透明度は、事前処理ではなく「チーク」に係る処理中のステップS813にてグラフィックボード73を使用してリアルタイムに変更して表示するようにしてもよい。なおスライダーコントロール306ではなく、チークの濃淡又は透明度を段階的に選択することが可能な他のコントロールによって変更を受け付けるようにしてもよい。   By automatically determining the position of the cheek image in this way and superimposing the deformed image and accepting the change to multiple stages on the adjustment screen, the adjustment of the “lip” shown in FIGS. 13 and 14 is performed. In the same manner as the operation using the work screen, the teak image in which the density of “teak” is changed is replaced. As a result, the user can intuitively adjust the density of the automatically arranged cheek image. Note that the density or transparency in the cheek image may be changed and displayed in real time using the graphic board 73 in step S813 during the processing related to “teak” instead of the pre-processing. Note that the change may be received not by the slider control 306 but by another control capable of selecting the shade density or transparency of the teak step by step.

CPU70は、ステップS803にてチーク選択アイコン731が選択されていないと判断した場合(S803:NO)、OFFボタン733が選択されたか否かを判断する(ステップS816)。CPU70はOFFボタン733が選択されたと判断した場合(S816:YES)、表示しているチーク用画像を非表示として確定を解除し(ステップS817)、「チーク」に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。CPU70は、ステップS816にてOFFボタン733が選択されていないと判断した場合(S816:NO)、そのまま「チーク」に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   When determining that the cheek selection icon 731 is not selected in step S803 (S803: NO), the CPU 70 determines whether the OFF button 733 is selected (step S816). When the CPU 70 determines that the OFF button 733 has been selected (S816: YES), the displayed cheek image is not displayed and the confirmation is canceled (step S817), and the processing related to “cheek” is terminated. The process returns to step S404 in the flowchart. If the CPU 70 determines in step S816 that the OFF button 733 has not been selected (S816: NO), the CPU 70 ends the process related to “teak” and returns the process to step S404 in the flowchart of FIG.

ステップS801にて、手動ボタン732が選択されたことにより手動モードが選択されていると判断された場合(S801:NO)、CPU70は図6に示した手動モードの場合のメイクパレット310にて操作を受け付ける。図6に示すように手動モードの場合、キャンバス部107には、チーク選択アイコン731、メイク操作を自動モードへ切り替えるための自動ボタン735、及び描画されたチークの一部を消去する消しゴム選択ボタン736が含まれる。ユーザは、手動モードにてチークに係るメイクの操作を行なう場合、タッチペン31aにてチーク選択アイコン731を選択し、素材サンプル表示部108の内容を確認しながら、対応するプレビュー表示部302にドラッグし、チーク用画像を重畳させたい場所でタッチペン31aをディスプレイ30aから離す。CPU70はタッチペン31aがディスプレイ30aから離れた箇所を特定し、特定した箇所の位置に選択されたチーク選択アイコン731に対応するチーク用画像を重畳させる。   If it is determined in step S801 that the manual mode is selected because the manual button 732 is selected (S801: NO), the CPU 70 operates with the makeup palette 310 in the manual mode shown in FIG. Accept. As shown in FIG. 6, in the manual mode, the canvas portion 107 has a cheek selection icon 731, an automatic button 735 for switching the makeup operation to the automatic mode, and an eraser selection button 736 for erasing a part of the drawn cheek. Is included. When performing a makeup operation related to cheek in the manual mode, the user selects the cheek selection icon 731 with the touch pen 31a and drags it to the corresponding preview display section 302 while confirming the contents of the material sample display section 108. The touch pen 31a is moved away from the display 30a at a place where the cheek image is to be superimposed. The CPU 70 identifies a location where the touch pen 31a is separated from the display 30a, and superimposes a cheek image corresponding to the selected cheek selection icon 731 on the location of the identified location.

具体的にはCPU70はチーク選択アイコン731が選択されたか否かを判断する(ステップS818)。CPU70は、手動モードにてチーク選択アイコン731が選択されたと判断した場合(S818:YES)、選択されたチーク選択アイコン731に対応するチーク用画像を識別する(ステップS819)。CPU70は、手動モードの場合の操作画面に対する上述のような手動操作を受け付け(ステップS820)、識別されているチーク用画像をHDD72のメイク用情報720から読み出し、ヘアカラー以外の手動描画用のレイヤー上で、手動操作に基づいて特定された位置に重畳するように、読み出したチーク用画像を表示する(ステップS821)。これにより、プレビュー表示部302の対応する顔領域内の頬領域に、選択されたチーク選択アイコン731に対応するチーク用画像(元の大きさ、角度)が重畳される。   Specifically, the CPU 70 determines whether or not the cheek selection icon 731 has been selected (step S818). When the CPU 70 determines that the cheek selection icon 731 has been selected in the manual mode (S818: YES), the CPU 70 identifies a cheek image corresponding to the selected cheek selection icon 731 (step S819). The CPU 70 receives the above-described manual operation on the operation screen in the manual mode (step S820), reads the identified cheek image from the makeup information 720 of the HDD 72, and manually draws a layer other than the hair color. The read cheek image is displayed so as to be superimposed on the position specified based on the manual operation (step S821). Thereby, the cheek image (original size and angle) corresponding to the selected cheek selection icon 731 is superimposed on the cheek area in the corresponding face area of the preview display unit 302.

次にCPU70は、手動操作を受け付ける場合も、調整用画面を更に重畳させて表示する(S808)。手動操作を受け付ける場合の調整用画面には、回転角度を調整するための回転ボタン(例えば一回に画面上で時計回り又は反時計回りに3度ずつ回転)、手動描画用のレイヤーに重畳させたチーク用画像の大小を調整するスライダーコントロール、濃淡を調整するためのスライダーコントロール及びOKボタンが含まれている。   Next, when accepting a manual operation, the CPU 70 further displays an adjustment screen in a superimposed manner (S808). On the adjustment screen when accepting manual operation, a rotation button for adjusting the rotation angle (for example, rotating three times clockwise or counterclockwise on the screen at a time) is superimposed on the manual drawing layer. A slider control for adjusting the size of the cheek image, a slider control for adjusting the shading, and an OK button are included.

図17は、手動モードの場合の調整用画面の表示例を示す説明図である。図17にはプレビュー表示部302に表示されているメイク対象の顔領域に重畳されて手動操作時の調整用画面308が表示されていることが示されている。手動モードにおける調整用画面が表示される際には、プレビュー表示部301内を拡大し、表示箇所を移動できるように移動ONボタン3091及び拡大表示ボタン3092が落書き用操作画面に選択可能に配置される。拡大表示ボタン3092が選択された場合、顔領域を含む部分が表示されるように、撮影により得られた画像の上部分を所定の倍率でズームアップ表示するようにするとよい。またチークに係る処理における手動操作時の調整用画面308には、上述の回転ボタン3081、大小を調整するスライダーコントロール3082、濃淡を調整するためのスライダーコントロール3083及びOKボタン307が含まれている。なお手動モードにおける調整用画面は、落書き用操作画面内のペンパレット303及びメイクパレット304と重畳しない位置に移動が可能とすることにより操作性を向上させる。ただし、プレビュー表示部301に対応する調整用画面はプレビュー表示部302側には移動できないように(逆も同様に)、移動が制限されるとよい。   FIG. 17 is an explanatory diagram illustrating a display example of the adjustment screen in the manual mode. FIG. 17 shows that an adjustment screen 308 at the time of manual operation is displayed superimposed on the makeup target face area displayed on the preview display unit 302. When the adjustment screen in the manual mode is displayed, the movement ON button 3091 and the enlargement display button 3092 are arranged to be selectable on the graffiti operation screen so that the preview display unit 301 can be enlarged and the display location can be moved. The When the enlargement display button 3092 is selected, the upper part of the image obtained by shooting may be zoomed in at a predetermined magnification so that the part including the face area is displayed. Further, the adjustment screen 308 at the time of manual operation in the processing related to cheek includes the above-described rotation button 3081, slider control 3082 for adjusting the size, slider control 3083 for adjusting the shading, and an OK button 307. Note that the adjustment screen in the manual mode can be moved to a position that does not overlap the pen palette 303 and the makeup palette 304 in the graffiti operation screen, thereby improving operability. However, the movement of the adjustment screen corresponding to the preview display unit 301 is preferably restricted so that it cannot be moved to the preview display unit 302 (and vice versa).

図16のフローチャートに戻り説明を続ける。CPU70は、図17に示したような手動用の調整用画面にてOKボタンが選択されたか否かを判断し(S809)、OKボタンが選択されたと判断した場合は(S809:YES)、表示中の重畳用のチーク用画像を確定させて記憶し(S810)、調整用画面を非表示として(S811)、「チーク」に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。また、手動モードにおける調整用画面にていずれかのスライダーコントロールが選択されたか否かを判断し(S812)、CPU70はスライダーコントロールが選択されたと判断した場合(S812:YES)、スライダーコントロールのつまみの動き、「+」「−」の選択、又は直接的に選択される段階に応じて、表示中の重畳用のチーク用画像の角度、大きさ、濃淡を変更し(S813)、処理をステップS809へ戻す。これによりユーザは、タッチペン31aのドラッグによって指定した位置に重畳されているチーク用画像の角度、サイズ、濃淡を調整用画面308にて調整することが可能である。同様にしてCPU70は、手動モードの調整用画面においても調整用画面外が選択されたと判断した場合(S814:YES)、表示しているチーク用画像をキャンセル扱いとして非表示及び調整用画面を非表示とし(S815)、「チーク」に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   Returning to the flowchart of FIG. The CPU 70 determines whether or not the OK button has been selected on the manual adjustment screen as shown in FIG. 17 (S809). If it is determined that the OK button has been selected (S809: YES), the display is performed. The cheek image for superimposition in the center is fixed and stored (S810), the adjustment screen is hidden (S811), the processing relating to “Cheek” is terminated, and the processing proceeds to step S404 in the flowchart of FIG. return. Further, it is determined whether any slider control is selected on the adjustment screen in the manual mode (S812). If the CPU 70 determines that the slider control is selected (S812: YES), the slider control knob is checked. The angle, size, and shade of the superimposed cheek image being displayed are changed according to the movement, the selection of “+”, “−”, or the stage of direct selection (S813), and the process is performed in step S809. Return to. Thus, the user can adjust the angle, size, and shade of the cheek image superimposed at the position designated by dragging the touch pen 31a on the adjustment screen 308. Similarly, if the CPU 70 determines that the outside of the adjustment screen has been selected on the adjustment screen in the manual mode (S814: YES), the displayed cheek image is treated as a cancel and the adjustment screen is not displayed. Display is made (S815), the processing relating to “teak” is terminated, and the processing is returned to step S404 in the flowchart of FIG.

CPU70は、ステップS818で手動モードの場合においてチーク選択アイコン731が選択されていないと判断した場合(S818:NO)、自動ボタン735が選択されたか否かを判断する(ステップS822)。CPU70は自動ボタン735が選択されたと判断した場合(S822:YES)、処理をステップS801へ戻し、自動モードが選択されていると判断して処理を続行する。   If the CPU 70 determines in step S818 that the cheek selection icon 731 is not selected in the manual mode (S818: NO), it determines whether or not the automatic button 735 has been selected (step S822). If the CPU 70 determines that the automatic button 735 has been selected (S822: YES), it returns the process to step S801, determines that the automatic mode has been selected, and continues the process.

CPU70は、ステップS822で自動ボタン735が選択されていないと判断した場合(S822:NO)、そのまま「チーク」に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   If the CPU 70 determines in step S822 that the automatic button 735 has not been selected (S822: NO), the CPU 70 ends the processing related to “teak” as it is, and returns the processing to step S404 in the flowchart of FIG.

このように手動モードにてチーク用画像を重畳させる場合も、プレビュー表示部302に表示される調整用画面308にて大小、角度、濃淡への変更を受け付ける処理により、ユーザは、詳細な調整を直感的に行なうことができる。また手動モードで重畳されるチーク用画像と、自動モードで重畳されるチーク用画像とが別のレイヤー上に描画されて別個に記憶されるため、重ね付けも可能である。なお、手動ボタン732が選択された場合に、自動描画用のレイヤーにおけるチーク用画像を非表示とし、手動モードで受け付けたチーク用画像のみを表示し、逆に、自動ボタン735が選択された場合に、手動描画用のレイヤーにおけるチーク用画像を非表示とするようにしていずれか一方に切り替えるようにしてもよい。   As described above, even when the cheek image is superimposed in the manual mode, the user can make detailed adjustments by the process of accepting the change to the size, angle, and shade on the adjustment screen 308 displayed on the preview display unit 302. It can be done intuitively. Further, since the cheek image superimposed in the manual mode and the cheek image superimposed in the automatic mode are drawn on different layers and stored separately, they can be superimposed. When the manual button 732 is selected, the cheek image in the automatic drawing layer is not displayed, only the cheek image received in the manual mode is displayed, and conversely, the automatic button 735 is selected. In addition, the cheek image in the manual drawing layer may be hidden and switched to either one.

なおCPU70は、自動モード時のキャンバス部107における消しゴム選択ボタン734が選択された場合、その後のタッチペン31aの軌跡を記憶し、チークの自動描画用のレイヤーにおける重畳用のチーク用画像の一部を、選択されている太さにて軌跡に沿って非表示(透明)とする。同様に、手動モード時のキャンバス部107における消しゴム選択ボタン736が選択された場合は同様の処理を、手動描画用のレイヤーに対して行なえばよい。なお手動描画用のレイヤーもメイクの種類別に分けてもよいが、本実施の形態では図9に示した通りヘアカラー以外については共通としている。したがって他のメイクに係る画像の一部を透明としないようにメイクの種類別に領域を識別しておいてもよい。   When the eraser selection button 734 in the canvas unit 107 in the automatic mode is selected, the CPU 70 stores the trajectory of the touch pen 31a and stores a part of the cheek image for superimposition on the cheek automatic drawing layer. The non-display (transparent) along the trajectory with the selected thickness. Similarly, when the eraser selection button 736 in the canvas unit 107 in the manual mode is selected, the same processing may be performed on the manual drawing layer. The manual drawing layer may be divided according to the type of makeup, but in this embodiment, the layers other than the hair color are common as shown in FIG. Therefore, the region may be identified for each type of makeup so that a part of an image related to other makeup is not transparent.

<3.「カラコン」について>
「カラコン」について画面例を参照して説明する。「カラコン」はカラコンを装着させたような画像処理を行なう機能である。「カラコン」の機能では目の領域及び虹彩の領域を自動的に特定してカラコンを画像処理で装着させる自動モードと、ユーザが手動操作によって目の領域にカラコン画像を配置する手動モードとがあり、いずれか選択できる。なお「カラコン」の機能においても目の領域及び虹彩の領域の特定に成功している場合、初期的に自動モードが選択され、特定に失敗している場合は手動モードのみで以下の処理が実行される。図18は、「カラコン」が選択されている場合のメイクパレット310の表示例を示す説明図である。図18には自動モードのときのキャンバス部107の内容例が示されている。「カラコン」が選択されている場合の自動モードにおけるキャンバス部107には複数種類のカラコンに夫々対応したカラコン選択アイコン741、手動モードへ切り替えるための手動ボタン742、「カラコン」のメイクを消去するOFFボタン743、及び一部を消去する消しゴム選択ボタン744が配置される。「カラコン」が選択されている場合の手動モードにおけるメイクパレット310の画面例については「チーク」における例(図6)と同様であるから説明を省略する。
<3. About Colorcon>
“Color control” will be described with reference to a screen example. “Color control” is a function for performing image processing as if a color control was mounted. In the “Colorcon” function, there are an automatic mode in which the eye area and iris area are automatically specified and a color contact lens is mounted by image processing, and a manual mode in which the user places a color image in the eye area by manual operation. , You can choose either. In the “Color Control” function, if the eye area and iris area are successfully identified, the automatic mode is selected initially. If the identification fails, the following processing is executed only in the manual mode. Is done. FIG. 18 is an explanatory diagram showing a display example of the makeup palette 310 when “Colorcon” is selected. FIG. 18 shows an example of the contents of the canvas unit 107 in the automatic mode. In the automatic mode when “Color control” is selected, the canvas portion 107 in the automatic mode has a color selection icon 741 corresponding to each of a plurality of types of color control, a manual button 742 for switching to the manual mode, and OFF for deleting makeup of “Color control”. A button 743 and an eraser selection button 744 for deleting a part are arranged. The screen example of the makeup palette 310 in the manual mode when “color control” is selected is the same as the example in FIG.

画像処理部7のHDD72に記憶されているメイク用情報720は、図18のキャンバス部107のカラコン選択アイコン741の画像に対応する複数種類のカラコン画像を含む。カラコン画像は例えば、褐色、灰色、緑色等の異なる色、及び異なる着色範囲のカラーコンタクトレンズの画像である。   The makeup information 720 stored in the HDD 72 of the image processing unit 7 includes a plurality of types of color contact images corresponding to the image of the color contact selection icon 741 of the canvas portion 107 in FIG. The color contact image is, for example, an image of a color contact lens having different colors such as brown, gray, and green and different coloring ranges.

CPU70は「カラコン」について以下の事前処理を実行しておく。なお以下の処理は目の領域及び虹彩の領域の特定に失敗している場合は実行されない。具体的にはCPU70は、図4のフローチャートに示したステップS204にて特定された1又は複数の人物の顔領域、目の領域に基づいて、各人物の顔領域に重畳させるカラコン画像の拡縮等をしておく事前処理を行なう。図19は、「カラコン」用の事前処理の手順の一例を示すフローチャートである。   The CPU 70 executes the following pre-processing for “Colorcon”. The following processing is not executed when the eye region and the iris region have failed to be specified. Specifically, the CPU 70 enlarges / reduces the color contact image to be superimposed on each person's face area based on the face area and eye area of one or more persons specified in step S204 shown in the flowchart of FIG. Perform pre-processing to keep FIG. 19 is a flowchart illustrating an example of a pre-processing procedure for “Colorcon”.

CPU70は、複数の画像データから1つの画像データを選択し(ステップS901)、選択中の画像データにて抽出されている1又は複数の人物被写体領域の内の顔領域の中から1つの顔領域を選択する(ステップS902)。CPU70は選択した顔領域にて特定されている目の領域に基づき、目の輪郭及び虹彩(黒目部分)の輪郭(輪郭上の複数点の座標上方)並びに虹彩領域の中心位置を特定する(ステップS903)。   The CPU 70 selects one image data from the plurality of image data (step S901), and one face area is selected from the face areas in the one or more person subject areas extracted from the currently selected image data. Is selected (step S902). Based on the eye area specified in the selected face area, the CPU 70 specifies the outline of the eye and the outline of the iris (black eye portion) (above the coordinates of a plurality of points on the outline) and the center position of the iris area (step) S903).

CPU70は、特定した輪郭に基づき、目マスク画像及び虹彩マスク画像を作成し(ステップS904)、虹彩マスク画像に基づき虹彩部分の画素の行方向における最大の大きさ及び列方向における最大の大きさを特定し(ステップS905)、特定した大きさに所定の比率を乗算して得られる円形の半径に基づき、カラコン画像の拡縮率を算出する(ステップS906)。   The CPU 70 creates an eye mask image and an iris mask image based on the specified contour (step S904), and determines the maximum size in the row direction and the maximum size in the column direction of the pixels of the iris portion based on the iris mask image. Identification (step S905), and based on a circular radius obtained by multiplying the specified size by a predetermined ratio, a scaling ratio of the color contact image is calculated (step S906).

CPU70は、メイク用情報720中の複数種類のカラコン画像の内の1つを選択し(ステップS907)、ステップS903で特定した各虹彩領域の中心位置に基づき、ステップS907で選択したカラコン画像を重畳させる位置を決定し(ステップS908)、決定した位置に配置したカラコン画像をステップS906で算出した拡縮率で拡縮し(ステップS909)、決定した位置に拡縮されて配置されたカラコン画像と、目マスク画像402とのAND演算により重畳用のカラコン画像を作成する(ステップS910)。CPU70は、選択中のカラコン画像を識別する情報と、ステップS910で作成した重畳用のカラコン画像を、選択中の顔領域と対応付けてメモリ71又はHDD72に記憶する(ステップS911)。CPU70は、ステップS911で記憶した重畳用のカラコン画像の色の濃淡又は透明度を予め記憶してある複数の段階で変更し、各段階の重畳用のカラコン画像を区別してメモリ71又はHDD72に記憶する(ステップS912)。   The CPU 70 selects one of a plurality of types of color contact images in the makeup information 720 (step S907), and superimposes the color contact images selected in step S907 based on the center position of each iris region specified in step S903. The position to be determined is determined (step S908), and the color contact image arranged at the determined position is enlarged / reduced at the enlargement / reduction ratio calculated in step S906 (step S909). A color contact image for superimposition is created by AND operation with the image 402 (step S910). The CPU 70 stores the information for identifying the currently selected colored contact image and the superimposed colored contact image created in step S910 in the memory 71 or the HDD 72 in association with the selected facial area (step S911). The CPU 70 changes the color density or transparency of the superposition color contact image stored in step S911 at a plurality of prestored stages, distinguishes the superposition color contact image at each stage, and stores it in the memory 71 or the HDD 72. (Step S912).

CPU70は、全てのカラコン画像を選択したか否かを判断する(ステップS913)。未選択のカラコン画像が存在すると判断された場合(S913:NO)、CPU70は処理をステップS907へ戻す。   The CPU 70 determines whether or not all color contact images have been selected (step S913). If it is determined that there is an unselected colored contact image (S913: NO), the CPU 70 returns the process to step S907.

CPU70は、全てのカラコン画像を選択したと判断した場合(S913:YES)、画像データ中の全ての顔領域を選択したか否かを判断する(ステップS914)。CPU70は、未選択の顔領域が存在すると判断した場合(S914:NO)、処理をステップS902へ戻す。CPU70はステップS914で全ての顔領域を選択したと判断した場合(S914:YES)、撮影回数分の全画像データを選択したか否かを判断し(ステップS915)、未選択の画像データが存在すると判断した場合(S915:NO)、処理をステップS901へ戻す。CPU70は、全画像データを選択したと判断した場合(S915:YES)、「カラコン」用の事前処理を終了する。   If the CPU 70 determines that all color contact images have been selected (S913: YES), the CPU 70 determines whether all face regions in the image data have been selected (step S914). If the CPU 70 determines that there is an unselected face area (S914: NO), the process returns to step S902. When the CPU 70 determines that all face areas have been selected in step S914 (S914: YES), it determines whether all image data for the number of times of shooting has been selected (step S915), and there is unselected image data. If so (S915: NO), the process returns to step S901. If the CPU 70 determines that all image data has been selected (S915: YES), the CPU 70 finishes the pre-processing for “color control”.

図20は、重畳用のカラコン画像を作成する過程を説明する説明図である。図20中の左上に示される顔領域から、目の輪郭画像(目マスク画像)402と、目の中の虹彩領域の輪郭画像(虹彩マスク画像)403とが作成される。虹彩マスク画像に基づき、各虹彩領域の画素の行方向における最大の大きさ(d1,d3)及び列方向における最大の大きさ(d2,d4)が特定され、特定された大きさに基づいてカラコン画像の拡縮率が算出され、拡縮されたカラコン画像401と目マスク画像402とのAND領域(ハッチング部分)が、重畳用のカラコン画像404として作成される。   FIG. 20 is an explanatory diagram for explaining a process of creating a superposed color contact image. An eye contour image (eye mask image) 402 and an iris region contour image (iris mask image) 403 in the eye are created from the face region shown at the upper left in FIG. Based on the iris mask image, the maximum size (d1, d3) in the row direction and the maximum size (d2, d4) in the column direction of the pixels of each iris region are specified, and the color control is determined based on the specified size. The enlargement / reduction ratio of the image is calculated, and an AND region (hatched portion) of the enlarged / reduced color contact image 401 and the eye mask image 402 is created as a superimposition color contact image 404.

次に落書き用操作画面でユーザが操作している間の「カラコン」についてのリアルタイム処理についてフローチャートで説明する。図21は、「MAKE」の操作の受け付け中における「カラコン」に係る処理手順の一例を示すフローチャートである。以下に説明する処理は、図8のフローチャートのステップS410の詳細に対応する。なお、図21のフローチャートに示す各処理は、図16のフローチャートの「チーク」に係る処理手順における「チーク」を「カラコン」に置換したものであるので、対応するステップ番号を付して各ステップの詳細な説明は省略する。   Next, a real-time process for “color control” while the user is operating on the operation screen for graffiti will be described with reference to a flowchart. FIG. 21 is a flowchart illustrating an example of a processing procedure related to “color control” during reception of an operation of “MAKE”. The process described below corresponds to the details of step S410 in the flowchart of FIG. Each process shown in the flowchart of FIG. 21 is obtained by replacing “Teak” in the processing procedure related to “Cheek” in the flowchart of FIG. 16 with “Colorcon”, and accordingly, assigns a corresponding step number to each step. The detailed description of is omitted.

「カラコン」についても、図13及び図14で示した「リップ」の調整用画面を用いた操作、図17に示した「チーク」の手動用の調整用画面を用いた操作と同様に、カラコン画像の濃淡及び大小の変更が行なわれる。なお「カラコン」に係る手動モード時の調整用画面には回転ボタンは含まれない。ユーザはカラコンの色又は濃淡を直感的に調整し、手動の場合においては大きさについても微調整が可能である。なおカラコン画像における濃淡又は透明度は、「カラコン」に係る処理中のステップS1013にてグラフィックボード73を使用してリアルタイムに変更して表示するようにしてもよい。   Similarly to the operation using the “lip” adjustment screen shown in FIG. 13 and FIG. 14 and the operation using the “teak” manual adjustment screen shown in FIG. The image is shaded and changed in size. Note that the rotation screen is not included in the adjustment screen in the manual mode related to “color control”. The user intuitively adjusts the color or shade of the color control, and in the case of manual operation, the size can be finely adjusted. Note that the density or transparency in the color contact image may be changed and displayed in real time using the graphic board 73 in step S1013 during the processing related to “color contact”.

消しゴム選択ボタン744についても「チーク」同様に、CPU70は、消しゴム選択ボタン744が選択された場合に、その後のタッチペン31aの軌跡を記憶し、カラコンの自動描画用のレイヤーにおける重畳用のカラコン画像の一部を、選択されている太さにて軌跡に沿って非表示(透明)にすればよい。同様に手動モードにおける消しゴム選択ボタンが選択された場合も同様の処理を、手動描画用のレイヤーに対して行なう。   Similarly to the “cheek” for the eraser selection button 744, when the eraser selection button 744 is selected, the CPU 70 stores the trajectory of the touch pen 31 a after that, and displays the superposed color control image in the layer for automatic drawing of the color control. A part may be hidden (transparent) along the trajectory with the selected thickness. Similarly, when the eraser selection button in the manual mode is selected, the same process is performed on the layer for manual drawing.

<4.「アイライン」について>
「アイライン」について画面例を参照して説明する。「アイライン」は上瞼又は下瞼の際を縁取るように線描したような画像処理を行なう機能である。「アイライン」の機能では上瞼又は下瞼の曲線を自動的に特定してアイラインを施す自動モードと、ユーザが手動操作によってアイライン画像を配置する手動モードとがあり、いずれか選択できる。なお、目の領域、上瞼又は下瞼の特定に成功している場合、初期的には自動モードが選択される。目の領域の特定に失敗している場合、手動モードのみで以下に示す処理が実行される。図22は、「アイライン」が選択されている場合のメイクパレット310の内容例を示す説明図である。図22には自動モードのときのキャンバス部107の内容例が示されている。「アイライン」が選択された場合の自動モードにおけるキャンバス部107には複数種類のアイラインに夫々対応したアイライン選択アイコン751、「アイライン」のメイク操作を手動で受け付ける手動ボタン752、「アイライン」メイクを消去するOFFボタン753、及び一部を消去する消しゴム選択ボタン754が配置される。「アイライン」が選択されている場合の手動モードにおけるメイクパレット310の画面例については「チーク」における例(図6)と同様であるから説明を省略する。
<4. About "Eyeline">
“Eyeline” will be described with reference to a screen example. “Eyeline” is a function for performing image processing such as drawing an outline of the upper eyelid or the lower eyelid. The "eyeline" function has an automatic mode that automatically identifies the eyelid or lower eyelid curve and applies the eyeline, and a manual mode in which the user places the eyeline image manually. . If the eye area, upper eyelid or lower eyelid has been successfully identified, the automatic mode is initially selected. If identification of the eye area has failed, the following processing is executed only in the manual mode. FIG. 22 is an explanatory diagram showing an example of the contents of the makeup palette 310 when “eyeline” is selected. FIG. 22 shows an example of the contents of the canvas unit 107 in the automatic mode. In the automatic mode when “eyeline” is selected, the canvas unit 107 in the automatic mode has an eyeline selection icon 751 corresponding to each of a plurality of types of eyelines, a manual button 752 for manually accepting a makeup operation of “eyeline”, and “eye” An OFF button 753 for deleting the “line” makeup and an eraser selection button 754 for deleting a part are arranged. The screen example of the makeup palette 310 in the manual mode when “eye line” is selected is the same as the example in FIG.

画像処理部7のHDD72に記憶されているメイク用情報720は、図22のキャンバス部107のアイライン選択アイコン751の画像に対応する複数種類のアイライン画像を含む。アイライン画像は、ブラウン系、ブラック系、又はピンク等の鮮色系で夫々描画された複数種類の形状のアイラインの画像と、目の周辺に散りばめられる光輝を放つ装飾の画像とを含む。図23は、予め記憶されているアイライン画像の内容例を示す説明図である。図23には、上瞼の際の全体を縁取った形状、一部を縁取った形状、目尻のみを縁取った形状のアイライン画像が示されている。また図23には、目尻上方又は目尻の下方に配置するラメ、ホログラム、ラインストーン、スタッズ、又はシール等の光輝を放つ装飾物の画像が示されている。図23に示すアイライン画像中の破線で示される曲線は、顔認識技術によって認識される目の輪郭の内、目頭(s)から目尻(e)までを結ぶ上部の輪郭、及び下部の輪郭に対応すべき曲線であり、これらはメイク用情報720内のアイライン画像に含まれている。   The makeup information 720 stored in the HDD 72 of the image processing unit 7 includes a plurality of types of eyeline images corresponding to the image of the eyeline selection icon 751 of the canvas unit 107 in FIG. The eyeline image includes a plurality of types of eyeline images drawn in a clear color system such as brown, black, or pink, and a decorative image that emits radiance scattered around the eyes. FIG. 23 is an explanatory diagram showing an example of the contents of an eyeline image stored in advance. FIG. 23 shows an eyeline image having a shape with the entire edge of the upper eyelid, a shape with a partial edge, and a shape with only the outer corner of the eye. Also, FIG. 23 shows an image of a decorative object that emits glitter such as a glitter, a hologram, a rhinestone, studs, or a seal disposed above or below the corner of the eye. The curves indicated by the broken lines in the eyeline image shown in FIG. 23 are the upper and lower contours of the eye contours recognized by the face recognition technology from the top of the eye (s) to the corner of the eye (e). The curves to be corresponded are included in the eyeline image in the makeup information 720.

CPU70は「アイライン」について以下の事前処理を実行しておく。なお以下の処理は目の領域及の特定に失敗している場合は実行されない。具体的にはCPU70は、図4のフローチャートに示したステップS204にて特定された1又は複数の人物の顔領域、各器官領域に基づいて、各人物の顔の目領域付近に重畳させるアイライン画像の拡縮、傾きの変更等をしておく事前処理を行なう。図24は、「アイライン」用の事前処理の手順の一例を示すフローチャートである。   The CPU 70 executes the following pre-processing for “eyeline”. Note that the following processing is not executed when the eye region and the region are not specified. Specifically, the CPU 70 superimposes the eyeline on the vicinity of the eye area of each person's face based on the face area and each organ area of one or more persons specified in step S204 shown in the flowchart of FIG. Pre-processing for scaling the image and changing the tilt is performed. FIG. 24 is a flowchart illustrating an example of a pre-processing procedure for “eyeline”.

CPU70は、複数の画像データから1つの画像データを選択し(ステップS1101)、選択中の画像データにて抽出されている1又は複数の人物被写体領域の内の顔領域の中から1つの顔領域を選択する(ステップS1102)。CPU70は選択した顔領域にて特定されている目の領域の輪郭を特定する(ステップS1103)。また、CPU70は、目の領域の輪郭に基づいて、目頭及び目尻の位置を特定し(ステップS1104)、目頭及び目尻間を結ぶ線分の画像の画素の配列方向に対する角度を特定する(ステップS1105)。CPU70は、目の上瞼領域のマスク画像を作成してもよい。   The CPU 70 selects one image data from the plurality of image data (step S1101), and one face area is selected from the face areas in the one or more person subject areas extracted from the currently selected image data. Is selected (step S1102). The CPU 70 specifies the outline of the eye area specified in the selected face area (step S1103). Further, the CPU 70 identifies the positions of the eyes and the corners of the eyes based on the outline of the eye region (step S1104), and identifies the angle of the image of the line segment connecting between the eyes and the corners of the eye with respect to the pixel arrangement direction (step S1105) ). The CPU 70 may create a mask image of the upper eyelid area.

CPU70は、メイク用情報720中の複数種類のアイライン画像の内の1つを選択し(ステップS1106)、選択したアイライン画像の上部又は下部の輪郭の目頭(s)又は目尻(e)をステップS1104で特定した目頭又は目尻の位置に一致させて(ステップS1107)、選択したアイライン画像の上部又は下部の輪郭の目頭(s)又は目尻(e)を結ぶ線分の角度を、ステップS1105で特定した角度と一致させる(ステップS1108)。CPU70は、アイライン画像の上部又は下部の輪郭の目頭(s)又は目尻(e)を結ぶ線分と、ステップS1104で特定した目頭及び目尻間を結ぶ線分とが一致するように、選択したアイライン画像を拡縮する(ステップS1109)。CPU70は、拡縮後のアイライン画像を微小な間隔で角度を変えて前記線分を軸として図面上の手前又は奥へ向けて三次元的に回転させたものを画像上に射影させる編集を、グラフィックボード73を利用して行ない(ステップS1110)。異なる角度で回転させた複数のアイライン画像の内、上部又は下部の曲線と、ステップS1103で特定した目の領域の輪郭との差分が最も少ないアイライン画像を選択し(ステップS1111)、選択した拡縮及び回転後のアイライン画像から、上部又は下部の輪郭に対応する曲線を消去し(ステップS1112)、消去後のアイライン画像を重畳用のアイライン画像として選択中の顔領域と対応付けてメモリ71又はHDD72に記憶する(ステップS1113)。右目及び左目の双方に対して上述の処理を行なう。また、ステップS1103にて特定されたいずれかの目領域が、ウィンクなどによって領域ではなく線分のみである場合、アイライン画像の上部の輪郭を、曲線側が目頭又は目尻よりも下方となるまで回転させて、差分が最も少ないアイライン画像を選択するとよい。   The CPU 70 selects one of a plurality of types of eyeline images in the makeup information 720 (step S1106), and selects the top (s) or corner (e) of the upper or lower contour of the selected eyeline image. The angle of the line segment connecting the top (s) or the top of the eye (e) of the upper or lower outline of the selected eyeline image is matched with the position of the top or bottom of the eye identified in step S1104 (step S1105). It is made to correspond with the angle specified by (step S1108). The CPU 70 selects the line segment connecting the top (s) or the corner of the eye (e) in the upper or lower outline of the eyeline image and the line segment connecting the head and the corner of the eye identified in step S1104. The eyeline image is enlarged or reduced (step S1109). The CPU 70 changes the angle of the eyeline image after enlargement / reduction at a minute interval and edits the image that is three-dimensionally rotated toward the front or back of the drawing with the line segment as an axis on the image, This is done using the graphic board 73 (step S1110). Among the plurality of eyeline images rotated at different angles, the eyeline image having the smallest difference between the upper or lower curve and the contour of the eye region specified in step S1103 is selected (step S1111). The curve corresponding to the upper or lower contour is erased from the scaled and rotated eyeline image (step S1112), and the erased eyeline image is associated with the face area being selected as the eyeline image for superimposition. The data is stored in the memory 71 or the HDD 72 (step S1113). The above processing is performed for both the right eye and the left eye. Also, if any eye area identified in step S1103 is only a line segment due to wink or the like, the outline of the upper part of the eyeline image is rotated until the curved side is below the eyes or corners of the eyes. Thus, it is preferable to select an eyeline image with the smallest difference.

CPU70は、ステップS1113で記憶した拡縮及び回転後の重畳用のアイライン画像の色の濃淡又は透明度を予め記憶してある複数の段階で変更し、複数の段階の重畳用のアイライン画像を区別して記憶する(ステップS1114)。   The CPU 70 changes the shade or transparency of the color of the eyeline image for superimposition after enlargement / reduction and rotation stored in step S1113 at a plurality of prestored stages, and determines the eyeline images for superposition at a plurality of stages. Separately stored (step S1114).

次にCPU70は、全てのアイライン画像を選択したか否かを判断する(ステップS1115)。未選択のアイライン画像が存在すると判断された場合(S1115:NO)、CPU70は処理をステップS1106へ戻す。   Next, the CPU 70 determines whether or not all eyeline images have been selected (step S1115). If it is determined that there is an unselected eyeline image (S1115: NO), the CPU 70 returns the process to step S1106.

CPU70は、全てのアイライン画像を選択したと判断した場合(S1115:YES)、画像データ中の全ての顔領域を選択したか否かを判断する(ステップS1116)。CPU70は、未選択の顔領域が存在すると判断した場合(S1116:NO)、処理をステップS1102へ戻す。CPU70はステップS1116で全ての顔領域を選択したと判断した場合(S1116:YES)、撮影回数分の全画像データを選択したか否かを判断し(ステップS1117)、未選択の画像データが存在すると判断した場合(S1117:NO)、処理をステップS1101へ戻す。CPU70は、全画像データを選択したと判断した場合(S1117:YES)、「アイライン」用の事前処理を終了する。   When determining that all eyeline images have been selected (S1115: YES), the CPU 70 determines whether all face regions in the image data have been selected (step S1116). If the CPU 70 determines that an unselected face area exists (S1116: NO), the process returns to step S1102. If the CPU 70 determines that all the face areas have been selected in step S1116 (S1116: YES), it determines whether or not all image data for the number of times of shooting has been selected (step S1117), and there is unselected image data. If so (S1117: NO), the process returns to step S1101. If the CPU 70 determines that all image data has been selected (S1117: YES), the pre-processing for “eyeline” is terminated.

図25は、重畳用のアイライン画像を作成する過程を説明する説明図である。図25中(A)は、太線で示されている特定された目の領域の輪郭に基づき、特定された輪郭中の目頭(S)及び目尻(E)を結ぶ線分の角度に、アイライン画像の上部の輪郭の目頭(s)及び目尻(e)を結ぶ線分の角度を一致させた際のアイライン画像(S1107、S1108)を示している。図25中(B)は、特定された目の輪郭中の目頭(S)及び目尻(E)を結ぶ線分の長さと、アイライン画像の上部の輪郭の目頭(s)及び目尻(e)を結ぶ線分の長さとを一致させるように、アイライン画像を拡大させた際のアイライン画像(S1109)を示している。図25中(C)は、(B)の拡大後に、微小な間隔で角度を変えて前記線分を軸として回転させた(S1110)アイライン画像を示している。(C)に示されているアイライン画像の内、中央の矩形で囲まれたアイライン画像が、上部又は下部の輪郭に対応する曲線と、特定された目の領域の輪郭との差分が最も少ないとして選択されている。図25中(D)は、選択された拡大回転後のアイライン画像から、上部又は下部の輪郭に対応する曲線を消去して得られるアイライン画像を示している(S1112)。なお、図25中(D)では、重畳される目の領域の輪郭を一点鎖線にて示している。   FIG. 25 is an explanatory diagram illustrating a process of creating an eyeline image for superimposition. (A) in FIG. 25 is based on the outline of the identified eye region indicated by the bold line, and the eyeline is at the angle of the line segment connecting the eye (S) and the corner of the eye (E) in the identified outline. The eyeline images (S1107, S1108) when the angles of the line segments connecting the top (s) and the corners (e) of the upper contour of the image are matched are shown. In FIG. 25, (B) shows the length of a line segment connecting the top of the eye (S) and the corner of the eye (E) in the outline of the specified eye, and the top of the eyeline image (s) and the corner of the eye (e). The eyeline image (S1109) when the eyeline image is enlarged so as to match the length of the line segment connecting the two is shown. (C) in FIG. 25 shows an eyeline image that is rotated about the line segment by changing the angle at a minute interval after the enlargement of (B) (S1110). Among the eyeline images shown in (C), the eyeline image surrounded by the center rectangle has the largest difference between the curve corresponding to the upper or lower contour and the contour of the specified eye region. Selected as less. FIG. 25D shows an eyeline image obtained by erasing a curve corresponding to the upper or lower contour from the selected eyeline image after enlargement rotation (S1112). In FIG. 25D, the outline of the eye region to be superimposed is indicated by a one-dot chain line.

このように本実施の形態では、目の領域の位置、大きさ、目尻若しくは目頭の位置に基づいて、アイライン画像の重畳位置、大きさ、角度が自動的に決定される。また、アイライン画像は装飾物の画像も含み、これらの装飾物の画像についても目の領域の位置、大きさ、目尻若しくは目頭の位置に基づいて、目尻から横へかけての領域の下方若しくは上方、又は目の下全体等、装飾の画像の重畳位置、大きさ、角度が決定される。   As described above, in the present embodiment, the superimposed position, size, and angle of the eyeline image are automatically determined based on the position and size of the eye region and the position of the corner of the eye or the eye. The eyeline image also includes an image of a decorative object, and the image of these decorative objects is also below or below the area extending from the corner of the eye to the side based on the position and size of the eye area and the position of the corner of the eye or the eye. The overlapping position, size, and angle of the decorative image such as the upper part or the entire lower part of the eye are determined.

次に、落書き用操作画面でユーザが操作している間の「アイライン」についてのリアルタイム処理についてフローチャートで説明する。図26は、「MAKE」の操作の受け付け中における「アイライン」処理に係る処理手順の一例を示すフローチャートである。図26のフローチャートに示す処理は、図8のフローチャートのステップS412の詳細に対応する。なお、図26のフローチャートに示す各処理は、図16のフローチャートの「チーク」に係る処理手順における「チーク」を「アイライン」に置換したものと同様であるので、対応するステップ番号を付して各ステップの詳細な説明は省略する。   Next, real-time processing for “eyeline” while the user is operating on the operation screen for graffiti will be described with reference to a flowchart. FIG. 26 is a flowchart illustrating an example of a processing procedure related to the “eyeline” process during the reception of the “MAKE” operation. The process shown in the flowchart of FIG. 26 corresponds to the details of step S412 of the flowchart of FIG. Each process shown in the flowchart of FIG. 26 is the same as the process procedure in which “Teak” in the process procedure related to “Cheek” in the flowchart of FIG. 16 is replaced with “Eyeline”. Detailed description of each step will be omitted.

なおアイライン画像を自動的に重畳させた場合の調整用画面によって濃淡又は色味を複数段階で変更することが可能であるが、アイラインに係る処理においては、濃淡又は色味の変更を受け付けない構成としてもよい。この場合、図24のフローチャートに示した事前処理の内、ステップS1114については省略してもよい。また、アイライン画像の手動操作を受け付ける場合の調整用画面には、回転角度を調整するための回転ボタン、左右に反転させるための反転ボタン、湾曲具合の強弱を変更して瞼に沿わすためのボタン、重畳させたアイライン画像の大小を調整するスライダーコントロール、及びOKボタンが含まれている。   The shade or color can be changed in multiple stages using the adjustment screen when the eyeline image is automatically superimposed. However, in the processing related to the eyeline, changes in shade or color are accepted. There may be no configuration. In this case, step S1114 may be omitted from the pre-processing shown in the flowchart of FIG. In addition, the adjustment screen for accepting manual operation of the eyeline image has a rotation button for adjusting the rotation angle, a reverse button for flipping left and right, and changing the strength of the curve so that it follows the heel. Button, a slider control for adjusting the size of the superimposed eyeline image, and an OK button.

また、アイラインについても手動操作に基づいて重畳されるアイライン画像と、自動的に重畳されるアイライン画像とが別のレイヤー上に描画されて別個に記憶されるため、重ね付けが可能である。なお、手動ボタン752が選択された場合に、自動描画用のレイヤーにおけるアイライン画像を非表示とし、手動操作にて受け付けたアイライン画像のみを表示し、逆に、自動ボタンが選択された場合に、手動描画用のレイヤーにおけるアイライン画像を非表示とするようにしていずれか一方に切り替えるようにしてもよい。   In addition, eyeline images that are superimposed based on manual operation and eyeline images that are automatically superimposed are drawn on different layers and stored separately, so that the eyeline can be overlaid. is there. When the manual button 752 is selected, the eyeline image in the layer for automatic drawing is not displayed, only the eyeline image received by manual operation is displayed, and conversely, the automatic button is selected. In addition, the eyeline image in the manual drawing layer may be hidden and switched to either one.

消しゴム選択ボタン754についても「リップ」同様に、CPU70は、消しゴム選択ボタン754が選択された後のタッチペン31aの軌跡を記憶し、アイラインの自動描画用のレイヤーにおける重畳用のアイライン画像の一部を、選択されている太さにて軌跡に沿って非表示(透明)とする。同様に、手動モードにおける消しゴム選択ボタンが選択された場合は同様の処理を、手動描画用のレイヤーに対して行なえばよい。   Similarly to “lip” for the eraser selection button 754, the CPU 70 stores the locus of the touch pen 31 a after the eraser selection button 754 is selected, and one eyeline image for superimposition in the layer for automatic drawing of the eyeline. The part is not displayed (transparent) along the trajectory with the selected thickness. Similarly, when the eraser selection button in the manual mode is selected, the same processing may be performed on the manual drawing layer.

このようにアイラインのメイクについて、濃淡又は色味を複数段階で変更して作成されているアイライン画像の差し替えにより、スライダーコントロールのつまみの位置に応じて濃淡又は色味が連続的に変化する。ユーザはメイク対象の顔領域が表示されているプレビュー表示部301(302)内でプレビュー画像を確認しながら、好みの濃淡又は色味のアイラインを選択することができる。   In this way, for eyeline makeup, the shade or color changes continuously according to the position of the slider control knob by replacing the eyeline image created by changing the shade or color in multiple stages. . The user can select a favorite shade or color eyeline while confirming the preview image in the preview display section 301 (302) in which the face area to be made is displayed.

<5.「つけまつげ」について>
「つけまつげ」について画面例を参照して説明する。「つけまつげ」は目につけまつげを装着させたような画像処理を行なう機能である。「つけまつげ」の機能では「アイライン」同様、上瞼又は下瞼の曲線を自動的に特定してつけまつげを施す自動モードと、ユーザが手動操作によってつけまつげ画像を配置する手動モードとがあり、いずれか選択できる。なお、目の領域、上瞼又は下瞼の特定に成功している場合、初期的には自動モードが選択される。目の領域の特定に失敗している場合、手動モードのみで以下に示す処理が実行される。図27は、「つけまつげ」が選択されている場合のメイクパレット310の内容例を示す説明図である。図27には、自動モードのときのキャンバス部107の内容例が示されている。「つけまつげ」が選択されている場合、自動モードにおけるキャンバス部107には複数種類のつけまつげに夫々対応したつけまつげ選択アイコン761、「つけまつげ」のメイク操作を手動で受け付ける手動ボタン762、「つけまつげ」メイクを消去するOFFボタン763、及び一部を消去する消しゴム選択ボタン764が配置される。「つけまつげ」が選択されている場合の手動モードにおけるメイクパレット310の画面例については「チーク」における例(図6)と同様であるから説明を省略する。
<5. About "Fake Eyelashes">
The “false eyelashes” will be described with reference to a screen example. “Fake eyelashes” is a function for performing image processing as if false eyelashes were attached to the eyes. As with the “eyeline” function, the “false eyelashes” function has an automatic mode that automatically identifies the upper eyelid or lower eyelid curve and applies false eyelashes, and a manual mode in which the user manually places false eyelash images. You can choose. If the eye area, upper eyelid or lower eyelid has been successfully identified, the automatic mode is initially selected. If identification of the eye area has failed, the following processing is executed only in the manual mode. FIG. 27 is an explanatory diagram showing an example of the contents of the makeup palette 310 when “false eyelashes” is selected. FIG. 27 shows an example of the contents of the canvas unit 107 in the automatic mode. When “false eyelashes” is selected, the canvas portion 107 in the automatic mode has false eyelash selection icons 761 corresponding to a plurality of types of false eyelashes, a manual button 762 for manually accepting a makeup operation of “false eyelashes”, and “false eyelashes” makeup. An OFF button 763 for erasing and an eraser selection button 764 for erasing a part are arranged. The screen example of the makeup palette 310 in the manual mode when “false eyelashes” is selected is the same as the example in FIG.

画像処理部7のHDD72に記憶されているメイク用情報720は、図27のキャンバス部107のつけまつげ選択アイコン761の画像に対応する複数種類のつけまつげ画像を含む。つけまつげ画像は、ブラウン系、ブラック系で描画された複数種類の形状のつけまつげ画像を含む。図28は、予め記憶されているつけまつげ画像の内容例を示す説明図である。図28には、毛束感、毛の長さ若しくは密度、毛の流れ方、又は毛の色が各々異なる複数のつけまつげ画像、上下両方用のつけまつげ画像が示されている。図25に示すつけまつげ画像は、アイライン画像同様に、破線で示される曲線によって顔認識技術によって認識される目の輪郭の内、目頭(s)から目尻(e)までを上部の輪郭、及び下部の輪郭に対応すべき曲線(破線)を含む。   The makeup information 720 stored in the HDD 72 of the image processing unit 7 includes a plurality of types of false eyelash images corresponding to the image of the false eyelash selection icon 761 of the canvas unit 107 in FIG. False eyelash images include false eyelash images of a plurality of types drawn in brown and black. FIG. 28 is an explanatory diagram showing an example of the contents of false eyelash images stored in advance. FIG. 28 shows a plurality of false eyelash images having different hair bundle feeling, hair length or density, hair flow, or hair color, and false eyelash images for both upper and lower sides. The false eyelash image shown in FIG. 25 is similar to the eyeline image, in the outline of the eye recognized by the face recognition technique by the curve shown by the broken line, the upper outline from the eye head (s) to the corner of the eye (e), and the lower part It includes a curve (broken line) that should correspond to the contour.

なおCPU70は、図28に示した複数種類のつけまつげ画像に対し、複数段階のつけまつげ画像を作成する事前処理を実行しておき、事前処理の結果をHDD72に記憶しておく。なお以下の処理は目の領域及の特定に失敗している場合は実行されない。図29は、複数段階のつけまつげ画像を作成する処理手順の一例を示すフローチャートである。   The CPU 70 executes pre-processing for creating a plurality of stages of false eyelash images for the plurality of types of false eyelash images shown in FIG. 28 and stores the result of the pre-processing in the HDD 72. Note that the following processing is not executed when the eye region and the region are not specified. FIG. 29 is a flowchart illustrating an example of a processing procedure for creating a multi-step false eyelash image.

CPU70は、複数種類のつけまつげ画像から1つを選択する(ステップS2001)。CPU70は、選択したつけまつげ画像に対しグラフィックボード73を利用して距離変換を実行し、距離変換マスク画像を取得する(ステップS2002)。   The CPU 70 selects one from a plurality of types of false eyelash images (step S2001). The CPU 70 performs distance conversion on the selected false eyelash image using the graphic board 73 to obtain a distance conversion mask image (step S2002).

ステップS2002の距離変換処理により、つけまつげ画像の画像内の各画素における背景画像からの距離、即ち輪郭からの距離が求められる。具体的にはグラフィックボード73により、モノクロームのつけまつげ画像は距離変換マスク画像に変換されて出力される。距離変換マスク画像は、輪郭からの距離が短い画素ほどα値(透明度)が最小値(0)に近く、輪郭からの距離が遠い画素ほどα値が最大値(255)に近くなる。図30は、距離変換マスク画像の内容例を模式的に示す説明図である。図30に示す内容例では、つけまつげ画像の距離変換マスク画像の一部を拡大して示している。距離変換マスク画像は、図30中の太線で示される輪郭からの距離が等しい画素が同様のα値で描画されるため、図30に示す如く、輪郭からの距離が等しい画素群の境界線が等高線のように区別できている。後述の処理では、つけまつげ画像を外側から図30に示す境界線に沿うように順に削り取るようにしてつけまつげのボリュームを複数段階に変化させたつけまつげ画像がHDD72に記憶される。   By the distance conversion process in step S2002, the distance from the background image at each pixel in the false eyelash image, that is, the distance from the contour is obtained. Specifically, the monochrome false eyelash image is converted into a distance conversion mask image by the graphic board 73 and output. In the distance conversion mask image, the α value (transparency) is closer to the minimum value (0) as the pixel is shorter from the contour, and the α value is closer to the maximum value (255) as the pixel is farther from the contour. FIG. 30 is an explanatory diagram schematically showing an example of the contents of a distance conversion mask image. In the content example shown in FIG. 30, a part of the distance conversion mask image of the false eyelash image is shown in an enlarged manner. In the distance conversion mask image, pixels having the same distance from the contour indicated by the bold line in FIG. 30 are drawn with the same α value, and therefore, as shown in FIG. They can be distinguished as contour lines. In the processing to be described later, false eyelash images in which the false eyelash image is scraped off from the outside along the boundary line shown in FIG.

図29のフローチャートに戻り説明を続ける。
CPU70は、所定のつけまつげのボリューム変更の段階数を記憶してあるHDD72から読み出し(ステップS2003)、後続の演算用変数である比率Rの初期値と、段階数に応じた比率Rの減算値とを決定する(ステップS2004)。つけまつげの距離変換マスク画像内の1つの画素について、画素値(α値)と比率Rとの乗算値に基づき、透明率を算出する(ステップS2005)。ステップS2005にてCPU70は、画素値と比率Rとを乗算して得られた値を画素値の最大値(255)に対する比率(0.0〜1.0)に変換する。CPU70は、算出した透明率で画素を描画し(ステップS2006)、選択中のつけまつげ画像の全画素についてステップS2005及びS2006の処理を実行したか否かを判断し(ステップS2007)、全画素について処理を実行していないと判断した場合(S2007:NO)、処理をステップS2005へ戻して処理を実行する。
Returning to the flowchart of FIG. 29, the description will be continued.
The CPU 70 reads out the number of stages for changing the volume of the predetermined false eyelashes from the HDD 72 (step S2003), and calculates the initial value of the ratio R, which is a subsequent calculation variable, and the subtraction value of the ratio R according to the number of stages. Is determined (step S2004). For one pixel in the false eyelash distance conversion mask image, the transparency is calculated based on the multiplication value of the pixel value (α value) and the ratio R (step S2005). In step S2005, the CPU 70 converts the value obtained by multiplying the pixel value and the ratio R into a ratio (0.0 to 1.0) with respect to the maximum value (255) of the pixel value. The CPU 70 draws pixels with the calculated transparency (step S2006), determines whether or not the processes of steps S2005 and S2006 have been executed for all the pixels of the selected false eyelash image (step S2007), and processes all the pixels. Is determined not to be executed (S2007: NO), the process returns to step S2005 to execute the process.

ステップS2007にて全画素について処理を実行したと判断した場合(S2007:YES)、描画された各画素からなる重畳用のつけまつげ画像を、現段階を識別する情報と共にHDD72に記憶する(ステップS2008)。   If it is determined in step S2007 that the process has been executed for all pixels (S2007: YES), the false eyelash image for superimposition composed of each drawn pixel is stored in the HDD 72 together with information for identifying the current stage (step S2008). .

次にCPU70は、比率Rが最小値であるか否か判断し(ステップS2009)、最小値でないと判断した場合(S2009:NO)、減算値分だけ減少させ(ステップS2010)、処理をステップS2005へ戻す。ステップS2009にて最小値であると判断された場合(S2009:YES)、CPU70は全種類のつけまつげ画像について処理を実行したか否か判断し(ステップS2011)、全種類について処理を実行していないと判断された場合(S2011:NO)、CPU70は処理をステップS2001へ戻してHDD72のメイク用情報720から他のつけまつげ画像についての処理を実行する。   Next, the CPU 70 determines whether or not the ratio R is the minimum value (step S2009). If the CPU 70 determines that the ratio R is not the minimum value (S2009: NO), the CPU 70 decreases the value by the subtraction value (step S2010), and the process proceeds to step S2005. Return to. If it is determined in step S2009 that the value is the minimum value (S2009: YES), the CPU 70 determines whether or not processing has been performed for all types of false eyelash images (step S2011), and processing has not been performed for all types. If it is determined (S2011: NO), the CPU 70 returns the process to step S2001 and executes a process for another false eyelash image from the makeup information 720 of the HDD 72.

ステップS2011にて全種類のつけまつげ画像について処理を実行したと判断した場合(S2011:YES)、複数段階のつけまつげ画像を作成する事前処理を終了する。   If it is determined in step S2011 that the processing has been executed for all types of false eyelash images (S2011: YES), the pre-processing for creating a plurality of stages of false eyelash images is terminated.

ステップS2005及びS2006の処理は、例えば比率Rが初期値の場合は、α値がnまでの部分は削られて非表示になり、初期値から複数段階減算されて比率R<初期値となった場合はα値がm(m>n)までの部分が削られて非表示になる。つまり比率Rが小さくなるほど、輪郭からの距離が遠い部分まで削られる。例えば、0〜255までのα値に対し、比率Rが6.0〜1.0まで変化する場合、比率Rが初期値6.0の場合にはα値が0〜42の外側部分が削られる(「42」は、比率R(=6.0)を乗算した場合に255を超えない最大数)。比率Rが2.0の場合にはα値が0〜127(比率R(=2.0)を乗算した場合に255を超えない最大数)の外側部分が削られ、比率R=6.0の場合よりも処理後のつけまつげ画像のボリュームは少なくなる。削られ方は、外側部分をグラデーションで透明にするので、処理後も自然なつけまつげ画像となる。このようにつけまつげの画像に予め距離変換処理を実行し、距離別に外縁部を消去したつけまつげの画像を記憶しておくことにより、ボリューム感が複数段階に異なる自然なつけまつげの画像を作成することが可能となる。   In the processing of steps S2005 and S2006, for example, when the ratio R is the initial value, the portion up to the α value n is deleted and hidden, and the ratio R <initial value is obtained by subtracting a plurality of steps from the initial value. In this case, the part up to the α value of m (m> n) is cut and hidden. In other words, the smaller the ratio R is, the more the distance from the contour is cut. For example, when the ratio R changes from 6.0 to 1.0 with respect to the α value from 0 to 255, when the ratio R is the initial value 6.0, the outer portion of the α value from 0 to 42 is reduced. (“42” is the maximum number that does not exceed 255 when multiplied by the ratio R (= 6.0)). When the ratio R is 2.0, the outer portion of the α value of 0 to 127 (the maximum number not exceeding 255 when multiplied by the ratio R (= 2.0)) is trimmed, and the ratio R = 6.0. The volume of the false eyelash image after processing is smaller than in the case of. Since the outer part is made transparent with gradation, the natural false eyelash image is obtained even after processing. By performing distance conversion processing on the false eyelash image in advance and storing the false eyelash image in which the outer edge portion is erased for each distance, it is possible to create a natural false eyelash image with different volume feelings in multiple stages. It becomes possible.

更にCPU70は、アイライン同様に、図4のフローチャートに示したステップS204にて特定された1又は複数の人物の顔領域、各器官領域特に目の領域に基づいて、各人物の顔の目領域付近に重畳させるつけまつげ画像の拡縮、傾きの変更等をしておく事前処理を行なう。図31は、「つけまつげ」用の事前処理の手順の一例を示すフローチャートである。図31のフローチャートに示す処理手順は大部分が、図24のフローチャートに示した「アイライン」に係る事前処理の手順における「アイライン」を「つけまつげ」に置換したものである。ステップS1314において、決定した位置、角度、大きさに基づいて描画した重畳用のつけまつげ画像を、複数の段階で変更するに際し、「つけまつげ」に係る処理では、図29のフローチャートに示した処理によって作成した複数段階のつけまつげ画像で描画することで変更する。他の処理手順は、図24のフローチャートにおける各ステップの「アイライン」を「つけまつげ」に置換したものであるから、対応するステップ番号を付して各ステップの詳細な説明は省略する。このように本実施の形態では目の領域の位置、大きさ、目尻若しくは目頭の位置に基づいて、つけまつげの重畳位置、大きさ、角度が決定される。   Further, the CPU 70 similarly to the eyeline, based on the face area of one or a plurality of persons specified in step S204 shown in the flowchart of FIG. Pre-processing for scaling the false eyelash image to be superimposed on the vicinity, changing the inclination, etc. is performed. FIG. 31 is a flowchart illustrating an example of a pre-processing procedure for “false eyelashes”. Most of the processing procedure shown in the flowchart of FIG. 31 is obtained by replacing “eye line” in the pre-processing procedure related to “eye line” shown in the flowchart of FIG. 24 with “false eyelashes”. In step S1314, when the false eyelash image for superimposition drawn based on the determined position, angle, and size is changed at a plurality of stages, the process related to “false eyelashes” is created by the process shown in the flowchart of FIG. This is done by drawing with multiple stages of false eyelash images. Since the other processing procedures are obtained by replacing “eye line” of each step in the flowchart of FIG. 24 with “false eyelashes”, a corresponding step number is assigned and detailed description of each step is omitted. Thus, in the present embodiment, the superimposed position, size, and angle of false eyelashes are determined based on the position and size of the eye region and the position of the corner of the eye or the eye.

次に、落書き用操作画面でユーザが操作している間の「つけまつげ」についてのリアルタイム処理についてフローチャートで説明する。図32は、「MAKE」の操作の受け付け中における「つけまつげ」処理に係る処理手順の一例を示すフローチャートである。図32のフローチャートに示す処理は、図8のフローチャートのステップS414の詳細に対応する。なお、図32のフローチャートに示す各処理は、図16のフローチャートの「チーク」に係る処理手順における「チーク」を「つけまつげ」に置換したものと同様であるので、対応するステップ番号を付して各ステップの詳細な説明は省略する。   Next, real-time processing regarding “false eyelashes” while the user is operating on the operation screen for graffiti will be described with reference to a flowchart. FIG. 32 is a flowchart illustrating an example of a processing procedure related to the “false eyelashes” process during the reception of the “MAKE” operation. The process shown in the flowchart of FIG. 32 corresponds to the details of step S414 in the flowchart of FIG. Each process shown in the flowchart of FIG. 32 is the same as the process procedure of “teak” in the flowchart of FIG. 16 replaced with “false eyelashes”, and accordingly, a corresponding step number is assigned. Detailed description of each step is omitted.

つけまつげ画像を自動的に重畳させた場合の調整用画面によってボリュームを複数段階で変更することが可能である。また、つけまつげ画像の手動モードの場合の調整用画面には、回転角度を調整するための回転ボタン、左右に反転させるための反転ボタン、湾曲具合の強弱を変更して瞼に沿わすためのボタン、重畳させたアイライン画像の大小を調整するスライダーコントロール、更にボリューム感を変更するスライダーコントロール及びOKボタンが含まれている。   It is possible to change the volume in a plurality of stages by the adjustment screen when the false eyelash image is automatically superimposed. In addition, the adjustment screen for the false eyelash image manual mode includes a rotation button for adjusting the rotation angle, a reverse button for flipping left and right, and a button for changing the strength of the curve and keeping it along the eyelids. In addition, a slider control for adjusting the size of the superimposed eyeline image, a slider control for changing the volume feeling, and an OK button are included.

つけまつげについても手動モードの場合に重畳されるつけまつげ画像と、自動モードで重畳されるつけまつげ画像とが別のレイヤー上に描画されて別個に記憶されるため、重ね付けが可能である。なお、手動ボタン762が選択された場合に、自動描画用のレイヤーにおけるつけまつげ画像を非表示とし、手動操作にて受け付けたつけまつげ画像のみを表示し、逆に、自動ボタンが選択された場合に、手動描画用のレイヤーにおけるつけまつげ画像を非表示とするようにしていずれか一方に切り替えるようにしてもよい。   As for false eyelashes, the false eyelash image to be superimposed in the manual mode and the false eyelash image to be superimposed in the automatic mode are drawn on different layers and stored separately. When the manual button 762 is selected, the false eyelash image in the layer for automatic drawing is hidden, only the false eyelash image accepted by manual operation is displayed, and conversely, when the automatic button is selected, The false eyelash image in the manual drawing layer may be hidden and switched to either one.

消しゴム選択ボタン764についても「リップ」同様に、CPU70は、消しゴム選択ボタン764が選択された後のタッチペン31aの軌跡を記憶し、つけまつげの自動描画用のレイヤーにおける重畳用のつけまつげ画像の一部を、選択されている太さにて軌跡に沿って非表示(透明)とする。同様に、手動モードにおける消しゴム選択ボタンが選択された場合は同様の処理を、手動描画用のレイヤーに対して行なえばよい。   Similarly to “lip”, the CPU 70 also stores the locus of the touch pen 31a after the eraser selection button 764 is selected, and displays a part of the false eyelash image for superimposition on the automatic drawing layer for false eyelashes. The non-display (transparent) along the trajectory with the selected thickness. Similarly, when the eraser selection button in the manual mode is selected, the same processing may be performed on the manual drawing layer.

このように、「つけまつげ」についてもメイク対象の顔領域に自動的に配置されて重畳表示されると共に調整用画面306が表示され、図29のフローチャートで示したようにボリューム感を複数段階で変更して作成されてあるつけまつげ画像の差し替えにより、スライダーコントロールのつまみの位置に応じてつけまつげのボリュームが連続的に変化する。ユーザはメイク対象の顔領域が表示されているプレビュー表示部301(302)内でプレビュー画像を確認しながら、好みのボリュームのつけまつげを選択することができる。   As described above, “false eyelashes” are also automatically arranged and superimposed on the face area to be made and the adjustment screen 306 is displayed, and the volume feeling is changed in multiple stages as shown in the flowchart of FIG. By replacing the false eyelash image created in this way, the false eyelash volume continuously changes according to the position of the slider control knob. The user can select a false eyelash with a desired volume while checking the preview image in the preview display section 301 (302) in which the face area to be made is displayed.

<6.「ヘアカラー」について>
「ヘアカラー」について画面例を参照して説明する。「ヘアカラー」は髪色を変更させたような画像を得る画像処理を行なう機能である。「ヘアカラー」の機能ではユーザの手動操作によって髪色を変化させる処理を行なう手動モードのみが存在する。図33は、「ヘアカラー」が選択されている場合のメイクパレット310の表示例を示す説明図である。図33には、手動モードにおけるキャンバス部107の内容例が示されている。「ヘアカラー」が選択されている場合のキャンバス部107には複数種類のヘアカラーに対応したヘアカラー選択アイコン771と、「ヘアカラー」のメイクを消去するOFFボタン773、一部を消去する消しゴム選択ボタン774が配置される。
<6. About “Hair Color”>
The “hair color” will be described with reference to a screen example. “Hair color” is a function of performing image processing to obtain an image in which the hair color is changed. In the “hair color” function, there is only a manual mode for performing a process of changing the hair color by a user's manual operation. FIG. 33 is an explanatory diagram showing a display example of the makeup palette 310 when “hair color” is selected. FIG. 33 shows an example of the contents of the canvas unit 107 in the manual mode. When “hair color” is selected, the canvas portion 107 has a hair color selection icon 771 corresponding to a plurality of types of hair colors, an OFF button 773 for deleting makeup of “hair color”, and an eraser for partially deleting the hair color. A selection button 774 is arranged.

画像処理部7のHDD72に記憶されているメイク用情報720は、図33のキャンバス部107に示されている画像に対応するヘアカラー用の色、テクスチャ及びグラデーションパターンを識別するヘアカラーパターン情報を複数種類含む。複数種類のヘアカラーパターン情報は例えば、ブラック、ブラウン、ブロンド、ピンク、オレンジ、ブルー、パープルなどの髪色の情報、頭頂部と毛先部とで色味又は濃淡を変化させるグラデーションパターンの情報が含まれる。グラデーションパターンの情報は例えば、混合される複数の色の情報と、色を変化させる位置、各色の透明度等の情報を含む。   The makeup information 720 stored in the HDD 72 of the image processing unit 7 includes hair color pattern information for identifying the color, texture, and gradation pattern for hair color corresponding to the image shown in the canvas unit 107 of FIG. Includes multiple types. Multiple types of hair color pattern information include, for example, information on hair colors such as black, brown, blonde, pink, orange, blue, purple, and information on gradation patterns that change the tint or shading between the top and the tip of the hair. included. The information on the gradation pattern includes, for example, information on a plurality of colors to be mixed, information on a position where the color is changed, transparency of each color, and the like.

本実施の形態では、「ヘアカラー」については1〜5の他の種類のメイクのような自動モードは実現しない。図34は、「MAKE」の操作の受け付け中における「ヘアカラー」処理に係る処理手順の一例を示すフローチャートである。以下に説明する処理は、図8のフローチャートのステップS416の詳細に対応する。   In the present embodiment, the “hair color” does not realize an automatic mode like other types of makeup 1-5. FIG. 34 is a flowchart illustrating an example of a processing procedure related to the “hair color” process during the reception of the “MAKE” operation. The process described below corresponds to the details of step S416 in the flowchart of FIG.

CPU70は、ヘアカラー選択アイコン771が選択されたか否かを判断する(ステップS1601)。CPU70は、ヘアカラー選択アイコン771が選択されたと判断した場合(S1601:YES)、選択されたヘアカラー選択アイコン771に対応するヘアカラーパターン情報を識別する(ステップS1602)。   CPU 70 determines whether hair color selection icon 771 has been selected (step S1601). When the CPU 70 determines that the hair color selection icon 771 has been selected (S1601: YES), the CPU 70 identifies hair color pattern information corresponding to the selected hair color selection icon 771 (step S1602).

CPU70は、ステップS1602で識別したヘアカラーパターン情報に基づき、描画ブラシの線種、色及び太さを決定し(ステップS1603)、タッチペン31aのプレビュー表示部301への接触を検知し(ステップS1604)、決定した線種、色及び太さの描画ブラシで接触箇所を描画する(ステップS1605)。なおステップS1605における描画は、接触箇所に対応する画素のぼかし又は輝度を上昇させるなどのフィルター処理に代替又はフィルター処理と組み合わされてもよく、ヘアカラー用の手動描画用のレイヤーにて描画される。このときステップS1602にてグラデーションパターンが識別されている場合、CPU70は、トリミング範囲内における接触箇所の位置(中央、上部、又は下部等)に応じて、グラデーションパターンに含まれる色又は透明度で描画する。   The CPU 70 determines the line type, color, and thickness of the drawing brush based on the hair color pattern information identified in step S1602 (step S1603), and detects contact of the touch pen 31a with the preview display unit 301 (step S1604). Then, the contact portion is drawn with the drawing brush having the determined line type, color, and thickness (step S1605). Note that the drawing in step S1605 may be replaced with filter processing such as blurring or increasing the brightness of the pixel corresponding to the contact location or combined with filter processing, and drawing is performed with a manual drawing layer for hair color. . At this time, if the gradation pattern is identified in step S1602, the CPU 70 draws with the color or transparency included in the gradation pattern according to the position (center, upper, lower, etc.) of the contact location in the trimming range. .

CPU70は、ステップS1605で描画されて表示中のヘアカラー画像を確定させ、表示中の画像に対応する画像データに対応付けて記憶し(ステップS1606)、他のボタン又はタブ等が選択されたか否かを判断し(ステップS1607)、選択されていないと判断した場合(S1607:NO)、処理をステップS1604へ戻し、他のボタン又はタブ等が選択されるまで描画を続行する。   The CPU 70 determines the hair color image being drawn and displayed in step S1605, stores it in association with the image data corresponding to the image being displayed (step S1606), and whether another button or tab has been selected. (S1607: NO), the process returns to step S1604, and drawing is continued until another button or tab is selected.

ステップS1607にて他のボタン又はタブ等が選択されたと判断した場合(S1607:YES)、OFFボタン773が選択されたか否かを判断する(ステップS1608)。CPU70は、OFFボタン773が選択されたと判断した場合(S1608:YES)、描画されて表示中のヘアカラー画像を非表示として確定を解除し(ステップS1609)、「ヘアカラー」処理に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   If it is determined in step S1607 that another button or tab has been selected (S1607: YES), it is determined whether or not the OFF button 773 has been selected (step S1608). If the CPU 70 determines that the OFF button 773 has been selected (S1608: YES), the hair color image that is being drawn and displayed is not displayed (step S1609), and the process related to the “hair color” process is performed. The process ends, and the process returns to step S404 in the flowchart of FIG.

CPU70は、ステップS1601にてヘアカラー選択アイコン771が選択されていないと判断した場合(S1601:NO)、処理をステップS1608へ進める。   If CPU 70 determines in step S1601 that hair color selection icon 771 is not selected (S1601: NO), the process proceeds to step S1608.

CPU70は、OFFボタン773が選択されていないと判断した場合(S1608:NO)、そのまま「ヘアカラー」処理に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   If the CPU 70 determines that the OFF button 773 has not been selected (S1608: NO), the CPU 70 ends the process relating to the “hair color” process as it is, and returns the process to step S404 in the flowchart of FIG.

なお消しゴム選択ボタン774については、CPU70は、消しゴム選択ボタン774が選択された後のタッチペン31aの軌跡を記憶し、ヘアカラー用の手動描画用のレイヤーにおけるヘアカラー画像の一部を、選択されている太さにて軌跡に沿って非表示(透明)とする。   As for the eraser selection button 774, the CPU 70 stores the locus of the touch pen 31 a after the eraser selection button 774 is selected, and a part of the hair color image in the layer for manual drawing for hair color is selected. It is not displayed (transparent) along the trajectory at a certain thickness.

図35は、「ヘアカラー」のグラデーションパターンでの描画例を模式的に示す説明図である。図35では、ヘアカラー選択アイコン771でグラデーションパターンが選択されて描画中にプレビュー表示部301に表示される画像の例を示している。図35では、頭頂部と毛先部との間で連続的に色が変化するようなパターンでヘアカラー画像が描画されている。これにより、毛先(又は根元)が明るめとなるようにカラーリングしたようなヘアカラー画像が表示される。   FIG. 35 is an explanatory diagram schematically illustrating a drawing example with a gradation pattern of “hair color”. FIG. 35 shows an example of an image displayed on the preview display unit 301 while a gradation pattern is selected with the hair color selection icon 771 and being drawn. In FIG. 35, the hair color image is drawn in a pattern in which the color continuously changes between the top and the tip of the hair. As a result, a hair color image that is colored so that the hair tips (or roots) become brighter is displayed.

なお「ヘアカラー」についても1又は複数の顔領域に基づき、CPU70が各顔領域に対応する髪範囲を精度よく特定できる場合は、自動モードを選択可能としてもよい。自動モードではCPU70は、ヘアカラー選択アイコン771に対応するヘアカラーパターンにて重畳用のヘアカラー画像の位置、大きさ、角度等を事前に決定しておき、選択されたヘアカラー選択アイコン771に対応する重畳用のヘアカラー画像を重畳させる。また、髪範囲を特定することが困難な場合、ユーザの手動操作により、図35中の太線枠のように、矩形等で髪範囲の指定を受け付け、指定された髪範囲における中央、上部、又は下部等でグラデーションを変化させ、毛先と根元とでグラデーションとなるような髪色に変化させる処理を施してもよい。   As for “hair color”, the automatic mode may be selectable when the CPU 70 can accurately specify the hair range corresponding to each face area based on one or a plurality of face areas. In the automatic mode, the CPU 70 determines in advance the position, size, angle, and the like of the hair color image for superimposition with the hair color pattern corresponding to the hair color selection icon 771, and sets the selected hair color selection icon 771. The corresponding superimposing hair color image is superimposed. Further, when it is difficult to specify the hair range, the specification of the hair range is received in a rectangular shape or the like by a user's manual operation, as shown by the thick line frame in FIG. You may perform the process which changes a gradation in a lower part etc. and changes it into the hair color which becomes a gradation by a hair tip and a root.

<7.「ワンタッチ」について>
「ワンタッチ」について画面例を参照して説明する。「ワンタッチ」の機能では顔領域、並びに唇、頬、目、及び虹彩等の各器官の領域を自動的に特定して化粧を施す自動モードのみが存在する。顔領域及び各器官の領域の特定に失敗した場合は、「ワンタッチ」機能は無効としてもよい。図36は、「ワンタッチ」が選択されている場合のメイクパレット310の表示例を示す説明図である。図33には、メイク選択部102で「ワンタッチ」が選択された場合に表示されているキャンバス部107の内容例が示されている。「ワンタッチ」が選択されている場合、キャンバス部107には複数のテーマに夫々対応したテーマ選択アイコン711及びメイクを消去するOFFボタン713が配置される。
<7. About "One Touch">
“One-touch” will be described with reference to a screen example. In the “one-touch” function, there is only an automatic mode in which makeup is performed by automatically identifying facial regions and regions of organs such as lips, cheeks, eyes, and irises. If the identification of the face area and each organ area fails, the “one touch” function may be disabled. FIG. 36 is an explanatory diagram showing a display example of the makeup palette 310 when “one touch” is selected. FIG. 33 shows an example of the content of the canvas portion 107 displayed when “one touch” is selected in the makeup selecting portion 102. When “one-touch” is selected, a theme selection icon 711 corresponding to each of a plurality of themes and an OFF button 713 for deleting makeup are arranged on the canvas unit 107.

「ワンタッチ」は、1.〜5.で説明した「ヘアカラー」以外の5つのメイクを全て自動で施した画像が得られる機能である。画像処理部7のHDD72に記憶されているメイク用情報720の内の、リップパターン情報、チーク用画像、カラコン画像、アイライン画像、及びつけまつげ画像から1つずつが、テーマ選択アイコン711に対応する複数のテーマ毎に予め対応付けてメモリ71又はHDD72に記憶されている。メイク選択部102で「ワンタッチ」が選択されている場合CPU70は、選択されたテーマに対応するメイク用情報720を用いて自動的に、メイク対象の顔領域に合わせて位置を決定し、変形して顔領域に重畳させて表示する。CPU70は、1.〜5.で説明した「ヘアカラー」以外の5つのメイクについての事前処理を行なっておく。そして、各テーマに応じて、複数段階で処理されている画像から所定の段階の画像が識別して記憶してあるとよい。例えば、図36に示すようにテーマが「CUTE」、「NATURAL」及び「COOL」である場合、「CUTE」のテーマにはピンク色の光沢感が強い段階で処理された唇画像、ピンク色の円形のチーク用画像、薄い色の重畳用のカラコン画像、ブラウン系のアイライン画像、毛束が全体的に増量されているつけまつげ画像の内の中央段階の重畳用のつけまつげ画像等が対応付けられる。   “One Touch” ~ 5. This is a function for obtaining an image in which all five makeups other than the “hair color” described in the above are automatically applied. Of the makeup information 720 stored in the HDD 72 of the image processing unit 7, one each from the lip pattern information, the cheek image, the color contact image, the eyeline image, and the false eyelash image corresponds to the theme selection icon 711. Each of the themes is stored in advance in the memory 71 or the HDD 72 in association with each other. When “one touch” is selected in makeup selecting section 102, CPU 70 automatically determines the position according to the face area to be made using the makeup information 720 corresponding to the selected theme, and deforms it. And display it superimposed on the face area. CPU 70 is: ~ 5. Pre-processing for five makeups other than the “hair color” described in the above is performed. And according to each theme, it is good to identify and memorize | store the image of a predetermined step from the image processed in multiple steps. For example, as shown in FIG. 36, when the themes are “CUTE”, “NATURAL”, and “COOL”, the “CUTE” theme includes a lip image processed in a stage with a strong pink glossiness, a pink color A circular cheek image, a light-colored superimposing color image, a brown eyeline image, a false eyelash image for superimposing at the center of the false eyelash image in which the entire hair bundle is increased, and the like are associated. .

落書き用操作画面でユーザが操作している間の「ワンタッチ」についてのリアルタイム処理について説明する。図37は、「MAKE」の操作の受け付け中における「ワンタッチ」に係る処理手順の一例を示すフローチャートである。以下に説明する処理は、図8のフローチャートのステップS403の詳細に対応する。   A real-time process for “one touch” while the user is operating on the operation screen for graffiti will be described. FIG. 37 is a flowchart illustrating an example of a processing procedure related to “one touch” during reception of an operation of “MAKE”. The process described below corresponds to the details of step S403 in the flowchart of FIG.

CPU70は、テーマ選択アイコン711が選択されたか否かを判断する(ステップS1701)。CPU70は、テーマ選択アイコン711が選択されたと判断した場合(S1701:YES)、選択されたテーマ選択アイコン711に対応するテーマに対応するメイク用情報720に基づいて事前処理された重畳用の画像を抽出し(ステップS1702)、各画像を重畳させて表示し(ステップS1703)、表示中である各重畳用のメイク用の画像を確定させて記憶し(ステップS1704)、「ワンタッチ」処理に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   The CPU 70 determines whether or not the theme selection icon 711 has been selected (step S1701). If the CPU 70 determines that the theme selection icon 711 has been selected (S1701: YES), the CPU 70 displays an image for superimposition that has been preprocessed based on the makeup information 720 corresponding to the theme corresponding to the selected theme selection icon 711. Extraction (step S1702), superimposing and displaying each image (step S1703), determining and storing each superimposing makeup image being displayed (step S1704), and processing related to the “one-touch” process And the process returns to step S404 in the flowchart of FIG.

CPU70は、テーマ選択アイコン711が選択されていないと判断した場合(S1701:NO)、OFFボタン713が選択されたか否かを判断する(ステップS1705)。CPU70はOFFボタン713が選択されたと判断した場合(S1705:YES)、表示している各重畳用の画像を非表示として確定を解除し(ステップS1706)、「ワンタッチ」に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   When determining that the theme selection icon 711 has not been selected (S1701: NO), the CPU 70 determines whether the OFF button 713 has been selected (step S1705). When the CPU 70 determines that the OFF button 713 has been selected (S1705: YES), it cancels the confirmation by making each displayed image for superimposition non-display (step S1706), and ends the process related to “one touch”. The process returns to step S404 in the flowchart of FIG.

CPU70は、OFFボタン713が選択されていないと判断した場合(S1705:NO)、そのまま「ワンタッチ」に係る処理を終了し、図8のフローチャート中のステップS404へ処理を戻す。   If the CPU 70 determines that the OFF button 713 has not been selected (S1705: NO), the CPU 70 ends the process relating to “one touch” as it is, and returns the process to step S404 in the flowchart of FIG.

このような処理により、「ワンタッチ」機能ではユーザはテーマを選択するだけで自身の顔領域上にメイク用情報720に基づくメイクの素材画像が変形されて適切な位置に重畳表示された画像を得ることができる。メイクに不慣れなユーザであっても容易にメイク操作を行なうことができる。なお「ワンタッチ」機能で変形されて配置された各種類のメイクの素材画像は、メイク選択部102で「チーク」、「カラコン」、「アイライン」又は「つけまつげ」を選択する操作がされた場合に以後、個別に別の画像に変更することができるようにしてもよい。   With such a process, in the “one touch” function, the user simply selects a theme and the makeup material image based on the makeup information 720 is deformed on his / her face region to obtain an image superimposed and displayed at an appropriate position. be able to. Even users who are unfamiliar with makeup can easily perform makeup operations. In addition, the material image of each type of makeup deformed and arranged by the “One Touch” function is used when the makeup selection unit 102 performs an operation of selecting “Cheek”, “Colorcon”, “Eyeline”, or “False Eyelash” Thereafter, it may be possible to individually change to another image.

上述した処理手順により、顔の中で特定される顔領域に含まれる各器官の領域の位置等を基準として化粧用素材の画像の位置、大きさ、又は角度を決定し、更に変形を行なうことにより、アイライン画像、つけまつげ画像のような予め記憶してある化粧用の素材の画像を重畳させてもスタンプ画像のように明らかに重畳されていることがわかるような画像ではなく、ユーザ自身が自然に写っていて、プロによってメイクを施されたファッションモデル又はアーティストを撮影したような画像の出力を実現できる。   The position, size, or angle of the image of the cosmetic material is determined based on the position of each organ area included in the face area specified in the face by the processing procedure described above, and further deformed. Thus, even if an image of a pre-stored makeup material such as an eyeline image or false eyelash image is superimposed, it is not an image that clearly shows that the image is superimposed, such as a stamp image. It is possible to output an image that looks like a photograph taken of a fashion model or artist that is reflected in nature and is made by a professional.

なお、上述のように開示された本実施の形態はすべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記した意味ではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   It should be understood that the embodiment disclosed above is illustrative in all respects and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the meanings described above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

以上の実施の形態に関し更に、以下の付記を開示する。   Further, the following supplementary notes are disclosed regarding the above embodiment.

(付記1)
マトリクス状に配列した複数の画素からなる画像を取得する手段と、取得された画像に撮影されている人物の顔及び該顔内の器官の領域を特定する特定手段とを備え、予め記憶されている化粧用画像を前記特定手段により特定された領域に重畳させる画像処理装置において、前記特定手段が特定した領域に基づき、該特定した領域に対応する化粧用画像の前記画像上の位置、大きさ、又は角度を決定する決定手段と、該決定手段が決定した大きさ又は角度に基づき、前記特定した領域に対応する化粧用画像の一部又は全部を拡縮又は回転して変形する変形手段と、前記決定手段が決定した位置に基づき、前記特定手段により特定された領域上に前記変形手段で変形された前記化粧用画像を重畳させる重畳手段とを備えることを特徴とする画像処理装置。
(Appendix 1)
A means for acquiring an image composed of a plurality of pixels arranged in a matrix, and a specifying means for specifying a human face imaged in the acquired image and an area of an organ in the face; In the image processing apparatus that superimposes the existing makeup image on the area specified by the specifying means, based on the area specified by the specifying means, the position and size of the makeup image corresponding to the specified area on the image Or a determining unit that determines an angle, and a deforming unit that deforms a part or all of a cosmetic image corresponding to the specified region by expanding or reducing or rotating based on the size or angle determined by the determining unit; An image comprising: superimposing means for superimposing the cosmetic image deformed by the deforming means on an area specified by the specifying means based on the position determined by the determining means. Management apparatus.

(付記2)
前記化粧用画像はつけまつげの画像を含み、前記決定手段は、前記特定手段が特定した目の領域の位置、大きさ、目尻若しくは目頭の位置に基づき、前記つけまつげの画像の位置、大きさ、又は角度を決定し、前記変形手段は、前記特定手段が特定した目の領域の位置、大きさ、目尻若しくは目頭の位置、又は、目尻及び目頭間を結ぶ線分の前記複数の画素の配列方向に対する角度に基づき、前記つけまつげの画像の一部を拡縮又は回転するようにしてあることを特徴とする付記1に記載の画像処理装置。
(Appendix 2)
The cosmetic image includes an image of false eyelashes, and the determining means is based on the position and size of the eye region specified by the specifying means, the position of the corner of the eye or the eye, or the position, size of the image of the false eyelash, or An angle is determined, and the deformation means is relative to the position of the eye region specified by the specifying means, the position of the corner of the eye or the eye, or the arrangement direction of the plurality of pixels of the line segment connecting the corner of the eye and the eye. The image processing apparatus according to appendix 1, wherein a part of the image of the false eyelashes is scaled or rotated based on an angle.

(付記3)
前記化粧用画像はつけまつげの画像を含み、前記段階別画像記憶手段は、前記つけまつげの画像の輪郭からの距離別に、該距離内の前記つけまつげの画像の外縁部を消去する距離変換処理を実行する手段を備え、距離別に、外縁部を消去した後のつけまつげの画像を記憶するようにしてあることを特徴とする付記1に記載の画像処理装置。
(Appendix 3)
The cosmetic image includes an image of false eyelashes, and the step-by-step image storage means executes distance conversion processing for erasing an outer edge portion of the image of the false eyelash within the distance for each distance from the contour of the image of the false eyelashes. The image processing apparatus according to appendix 1, further comprising means for storing an image of false eyelashes after the outer edge portion is erased for each distance.

(付記4)
前記化粧用画像はアイラインの画像を含み、前記決定手段は、前記特定手段が特定した目の領域の位置、大きさ、目尻若しくは目頭の位置に基づき、前記アイラインの画像の位置、大きさ、又は角度を決定し、前記変形手段は、前記特定手段が特定した目の領域の位置、大きさ、目尻若しくは目頭の位置、又は、目尻及び目頭間を結ぶ線分の前記複数の画素の配列方向に対する角度に基づき、前記アイラインの画像の一部を拡縮又は回転するようにしてあることを特徴とする付記1に記載の画像処理装置。
(Appendix 4)
The cosmetic image includes an eyeline image, and the determining means determines the position and size of the eyeline image based on the position and size of the eye area specified by the specifying means and the position of the corner of the eye or the eye. Or an angle is determined, and the deforming means is an arrangement of the plurality of pixels of the segment of the eye area specified by the specifying means, the position of the corner of the eye or the eye, or a line segment connecting the corner of the eye and the eye The image processing apparatus according to claim 1, wherein a part of the image of the eyeline is scaled or rotated based on an angle with respect to a direction.

(付記5)
前記化粧用画像は光輝を放つ装飾の画像を含み、前記決定手段は、前記特定手段が特定した目の領域の位置、大きさ、目尻若しくは目頭の位置に基づき、前記装飾の画像の位置、大きさ、及び角度を決定し、前記変形手段は、前記特定手段が特定した目の領域の位置、大きさ、目尻若しくは目頭の位置、又は、目尻及び目頭間を結ぶ線分の前記複数の画素の配列方向に対する角度に基づき、前記装飾の画像の一部を拡縮又は回転するようにしてあることを特徴とする付記1に記載の画像処理装置。
(Appendix 5)
The cosmetic image includes an image of a decoration that shines, and the determining means determines the position and size of the decoration image based on the position and size of the eye area specified by the specifying means and the position of the corner of the eye or the eye. And the deforming means determines the position of the eye region specified by the specifying means, the position of the corner of the eye or the corner of the eye, or a line segment connecting the corner of the eye and the corner of the eye. The image processing apparatus according to claim 1, wherein a part of the decoration image is scaled or rotated based on an angle with respect to the arrangement direction.

(付記6)
前記化粧用画像は頬紅の画像を含み、前記決定手段は、前記特定手段が特定した顔領域の位置及び大きさ、前記複数の画素の配列方向に対する角度に基づき、前記頬紅の画像の位置、大きさ及び角度を決定し、前記変形手段は、前記特定手段が特定した顔領域の位置及び大きさに基づき、前記頬紅の画像の一部を拡縮し、前記顔領域内に収まるように一部を削除するようにしてあることを特徴とする付記1に記載の画像処理装置。
(Appendix 6)
The makeup image includes a blusher image, and the determining means determines the position and size of the blusher image based on the position and size of the face area specified by the specifying means and the angle with respect to the arrangement direction of the plurality of pixels. The deforming means enlarges / reduces a part of the blusher image based on the position and size of the face area specified by the specifying means, and partially changes the face area to fit within the face area. The image processing apparatus according to appendix 1, wherein the image processing apparatus is deleted.

7 画像処理部
70 CPU(コンピュータ、重畳手段)
71 メモリ(記憶装置)
72 HDD(記憶装置)
720 メイク用情報(化粧用画像)
7P 画像処理プログラム
30a,30b ディスプレイ(表示手段)
301,302 プレビュー表示部(表示手段)
305 調整用画面(選択手段)
308 調整用画面(受付手段)
7 Image processing unit 70 CPU (computer, superimposing means)
71 Memory (storage device)
72 HDD (storage device)
720 Information for makeup (images for makeup)
7P image processing program 30a, 30b Display (display means)
301, 302 Preview display section (display means)
305 Adjustment screen (selection means)
308 Adjustment screen (reception means)

Claims (5)

マトリクス状に配列した複数の画素からなる一連の複数の画像を取得する手段と、取得された複数の画像に撮影されている人物の顔及び該顔内の器官の領域を特定する特定手段とを備え、予め記憶されているリップ、チーク、カラーコンタクト、アイライン、又はつけまつげの写真画像である化粧用画像を前記特定手段により特定された領域に重畳させる画像処理装置において、
複数の人物から各々操作を受け付けるべく分別された画面上にて夫々、前記複数の画像の内の1つの画像毎に、該画像内で特定された複数の顔領域の内の1つ、及び前記複数の顔領域全ての内のいずれかに、前記化粧用画像を重畳させる重畳手段
を備えることを特徴とする画像処理装置。
Means for acquiring a series of a plurality of images composed of a plurality of pixels arranged in a matrix, and specifying means for specifying a human face imaged in the acquired images and an area of an organ in the face. In an image processing apparatus comprising a cosmetic image that is a pre-stored lip, cheek, color contact, eyeline, or false eyelash photographic image on an area specified by the specifying means,
On each of the screens separated to accept operations from a plurality of persons, for each one of the plurality of images, one of a plurality of face regions specified in the image, and the An image processing apparatus comprising: a superimposing unit that superimposes the cosmetic image on any of a plurality of face regions.
前記重畳手段は、
前記複数の画像の内の1つの画像毎に、前記化粧用画像の重畳対象として、前記画像内で特定された複数の顔領域の内の1つずつ、及び前記複数の顔領域全ての内のいずれかの選択を受け付ける選択手段
を更に備えることを特徴とする請求項1に記載の画像処理装置。
The superimposing means includes
For each image of the plurality of images, one of a plurality of face regions specified in the image and one of all the plurality of face regions as a superimposition target of the makeup image. The image processing apparatus according to claim 1, further comprising selection means for accepting any selection.
前記分別された画面は夫々、前記化粧用画像の重畳対象とする顔領域の表示画面を含み、
前記選択手段が選択される都度に、前記表示画面には、前記画像内で特定された複数の顔領域の内の顔領域を1つずつ含む画像、及び前記画像内で特定された複数の顔領域全てを含む画像が順に切り替えられて表示される
ことを特徴とする請求項2に記載の画像処理装置。
Each of the sorted screens includes a display screen of a face area to be superimposed on the makeup image,
Each time the selection means is selected, the display screen includes an image including one face area among the plurality of face areas specified in the image, and a plurality of faces specified in the image. The image processing apparatus according to claim 2, wherein images including all the regions are sequentially switched and displayed.
マトリクス状に配列した複数の画素からなる一連の複数の画像を取得し、取得した複数の画像に撮影されている人物の顔及び該顔内の器官の領域を特定し、予め記憶されているリップ、チーク、カラーコンタクト、アイライン、又はつけまつげの写真画像である化粧用画像を特定された領域に重畳させる画像処理方法において、
複数の人物から各々操作を受け付けるべく分別された画面上にて夫々、前記複数の画像の内の1つの画像毎に、該画像内で特定された複数の顔領域の内の1つ、及び前記複数の顔領域全ての内のいずれかの選択を受け付け、
選択された顔領域に前記化粧用画像を重畳させる
ことを特徴とする画像処理方法。
Lips stored in advance are obtained by acquiring a series of images consisting of a plurality of pixels arranged in a matrix, identifying the face of a person and organ regions within the face captured in the acquired images In an image processing method for superimposing a cosmetic image that is a photographic image of teak, color contact, eyeline, or false eyelashes on a specified area,
On each of the screens separated to accept operations from a plurality of persons, for each one of the plurality of images, one of a plurality of face regions specified in the image, and the Accept selection of any of multiple face areas,
An image processing method comprising superimposing the makeup image on a selected face area.
コンピュータに、マトリクス状に配列した複数の画素からなる一連の複数の画像を取得させ、取得された複数の画像に撮影されている人物の顔及び該顔内の器官の領域を特定させ、予め記憶されているリップ、チーク、カラーコンタクト、アイライン、又はつけまつげの写真画像である化粧用画像を特定された領域に重畳させるコンピュータプログラムにおいて、
前記コンピュータに、
複数の人物から各々操作を受け付けるべく分別された画面上にて夫々、前記複数の画像の内の1つの画像毎に、該画像内で特定された複数の顔領域の内の1つ、及び前記複数の顔領域全ての内のいずれかに、前記化粧用画像を重畳する
処理を実行させることを特徴とするコンピュータプログラム。
A computer is made to acquire a series of a plurality of images composed of a plurality of pixels arranged in a matrix, and a human face photographed in the acquired plurality of images and a region of an organ in the face are specified and stored in advance. In a computer program for superimposing a cosmetic image, which is a photographic image of a lip, teak, color contact, eyeline, or false eyelash, on a specified area
In the computer,
On each of the screens separated to accept operations from a plurality of persons, for each one of the plurality of images, one of a plurality of face regions specified in the image, and the A computer program for executing a process of superimposing the cosmetic image on any one of a plurality of face regions.
JP2017048880A 2017-03-14 2017-03-14 Image processing device, image processing method and computer program Pending JP2017120660A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017048880A JP2017120660A (en) 2017-03-14 2017-03-14 Image processing device, image processing method and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017048880A JP2017120660A (en) 2017-03-14 2017-03-14 Image processing device, image processing method and computer program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016122018A Division JP6314322B2 (en) 2016-06-20 2016-06-20 Image processing apparatus, image processing method, and computer program

Publications (1)

Publication Number Publication Date
JP2017120660A true JP2017120660A (en) 2017-07-06

Family

ID=59272375

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017048880A Pending JP2017120660A (en) 2017-03-14 2017-03-14 Image processing device, image processing method and computer program

Country Status (1)

Country Link
JP (1) JP2017120660A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107895343A (en) * 2017-12-31 2018-04-10 广州二元科技有限公司 A kind of image processing method that rouge is quickly and easily gone up based on facial feature localization
CN112308944A (en) * 2019-07-29 2021-02-02 丽宝大数据股份有限公司 Augmented reality display method of simulated lip makeup
CN112766234A (en) * 2021-02-23 2021-05-07 北京市商汤科技开发有限公司 Image processing method and device, electronic equipment and storage medium
WO2023120525A1 (en) * 2021-12-21 2023-06-29 花王株式会社 Method for assisting with change of impression

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107895343A (en) * 2017-12-31 2018-04-10 广州二元科技有限公司 A kind of image processing method that rouge is quickly and easily gone up based on facial feature localization
CN107895343B (en) * 2017-12-31 2021-02-23 广州二元科技有限公司 Image processing method for quickly and simply blush based on facial feature positioning
CN112308944A (en) * 2019-07-29 2021-02-02 丽宝大数据股份有限公司 Augmented reality display method of simulated lip makeup
CN112766234A (en) * 2021-02-23 2021-05-07 北京市商汤科技开发有限公司 Image processing method and device, electronic equipment and storage medium
WO2023120525A1 (en) * 2021-12-21 2023-06-29 花王株式会社 Method for assisting with change of impression

Similar Documents

Publication Publication Date Title
JP6086112B2 (en) Image processing apparatus, image processing method, and computer program
JP3856211B2 (en) Image printing apparatus and method, and program
JP5418708B2 (en) Photo sealing machine, photo sealing machine processing method and program
JP6314322B2 (en) Image processing apparatus, image processing method, and computer program
US20070052726A1 (en) Method and system for likeness reconstruction
JP2017120660A (en) Image processing device, image processing method and computer program
JP4715964B2 (en) Photo sticker creation apparatus, photo sticker creation method, and program
JP5459562B2 (en) Photo seal machine, photo seal machine processing method, and program thereof
US20190066348A1 (en) Image processing system and method
JP2017147621A (en) Image processing apparatus, image processing method and computer program
JP6810336B2 (en) Photo creation game console and display method
JP6754229B2 (en) Image processing equipment and computer programs
JP5541545B1 (en) Photo sticker creation apparatus and method, and program
JP5799381B1 (en) Photography game machine and its control program
JP6477780B2 (en) Photo sticker creation apparatus, photo sticker creation method, and photo sticker creation processing program
JP2017201550A (en) Image processing apparatus, image processing method, and computer program
JP6179655B2 (en) Photography game machine, control method, and program
JP7152687B2 (en) Display control device, display control method, program
JP6124087B2 (en) Image editing apparatus and image editing method
JP2018107515A (en) Photograph formation game machine and image processing method
JP6969622B2 (en) Shooting game equipment and programs
JP6241689B2 (en) Image processing apparatus, image processing method, and program
JP2021043797A (en) Image processing device, image processing method, and image processing program
JP2019192061A (en) Photograph creation game machine, control method and program
JP6156559B2 (en) Game shooting device, game shooting method, and program