JP2020074100A - Image processing device, image processing method, and program - Google Patents

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

Info

Publication number
JP2020074100A
JP2020074100A JP2019228751A JP2019228751A JP2020074100A JP 2020074100 A JP2020074100 A JP 2020074100A JP 2019228751 A JP2019228751 A JP 2019228751A JP 2019228751 A JP2019228751 A JP 2019228751A JP 2020074100 A JP2020074100 A JP 2020074100A
Authority
JP
Japan
Prior art keywords
color
whitening
image
lip
specifying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019228751A
Other languages
Japanese (ja)
Other versions
JP7015009B2 (en
Inventor
武志 佐藤
Takeshi Sato
武志 佐藤
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2019228751A priority Critical patent/JP7015009B2/en
Publication of JP2020074100A publication Critical patent/JP2020074100A/en
Application granted granted Critical
Publication of JP7015009B2 publication Critical patent/JP7015009B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

To apply appropriate whitening treatment to the entire face of a person.SOLUTION: An imaging device 1 includes an image processing unit 53, a mask image creation processing unit 54, and a color correction image creation processing unit 55. The image processing unit 53 performs a whitening process for whitening the color of a skin with respect to a face area of a person included in an image. The mask image creation processing unit 54 identifies a part to be reduced in the whitening process in the face area of the person to be subject to the whitening process. The color correction image creation processing unit 55 performs a process of reducing the whitening process on the identified part to be reduced in the whitening process.SELECTED DRAWING: Figure 7

Description

本発明は、画像処理装置、画像処理方法及びプログラムに関する。   The present invention relates to an image processing device, an image processing method, and a program.

従来より、画像内に含まれる人物の顔を白くする美白処理が利用されている。例えば、特許文献1には、美白処理の効果を容易に設定可能とする技術が開示されている。   Conventionally, whitening processing for whitening the face of a person included in an image has been used. For example, Japanese Patent Application Laid-Open No. 2004-242242 discloses a technique that enables the effect of whitening treatment to be easily set.

特開2016−012890号公報JP, 2016-012890, A

しかしながら、上述した特許文献1に開示された技術では、人物の顔に美白処理を施すことで、唇の色も薄くなってしまうという問題がある。   However, the technique disclosed in the above-mentioned Patent Document 1 has a problem that the color of the lips becomes lighter by whitening the face of the person.

本発明は、このような状況に鑑みてなされたものであり、人物の顔全体に適切な美白処理を施すことを目的とする。   The present invention has been made in view of such a situation, and an object thereof is to perform an appropriate whitening treatment on the entire face of a person.

上記目的を達成するため、本発明の一態様の画像処理装置は、
画像内に含まれる人物の顔領域に対して、肌の色を白くする美白処理を施す美白処理手段と、
前記美白処理が施される人物の顔領域内で、当該美白処理を軽減すべき部分を特定する軽減部分特定手段と、
前記特定された前記美白処理を軽減すべき部分に対して、当該美白処理を軽減する処理を施す軽減処理手段と、
を備えることを特徴とする。
In order to achieve the above object, an image processing device according to one embodiment of the present invention is
Whitening processing means for performing whitening processing for whitening the skin color for the face area of the person included in the image;
Within the face area of the person to which the whitening process is applied, a reduced portion specifying unit that specifies a portion where the whitening process should be reduced,
Reduction processing means for performing a process of reducing the whitening process on the identified part where the whitening process should be reduced,
It is characterized by including.

本発明によれば、人物の顔全体に適切な美白処理を施すことができる。   According to the present invention, an appropriate whitening process can be applied to the entire face of a person.

本発明の画像処理装置の一実施形態に係る撮像装置1のハードウェアの構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the imaging device 1 which concerns on one Embodiment of the image processing apparatus of this invention. 本実施形態における美白画像の生成を説明するための模式図である。It is a schematic diagram for explaining generation of a whitening image in the present embodiment. マスク画像の作成例を示す模式図である。It is a schematic diagram which shows the example of preparation of a mask image. 唇色レベルの重み付けの設定に係るヒストグラム及び唇色レベルの重み付けテーブルを示す図である。It is a figure which shows the histogram and the weighting table of a lip color level which concern on the setting of weighting of a lip color level. 固定マップの作成を説明するための模式図である。It is a schematic diagram for demonstrating preparation of a fixed map. V補正のLUTを示す図である。It is a figure which shows the LUT of V correction. 図1の撮像装置1の機能的構成のうち、美白画像生成処理を実行するための機能的構成を示す機能ブロック図である。It is a functional block diagram which shows the functional structure for performing whitening image generation processing among the functional structures of the imaging device 1 of FIG. 図7の機能的構成を有する図1の撮像装置1が実行する美白画像生成処理の流れを説明するフローチャートである。8 is a flowchart illustrating a flow of whitening image generation processing executed by the image pickup apparatus 1 of FIG. 1 having the functional configuration of FIG. 7. 美白画像生成処理のうち、マスク画像作成処理の流れを説明するフローチャートである。It is a flow chart explaining the flow of mask image creation processing of whitening image generation processing. 美白画像生成処理のうち、色補正画像作成処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of the color correction image creation process of the whitening image creation process.

以下、本発明の実施形態について、図面を用いて説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の画像処理装置の一実施形態に係る撮像装置1のハードウェアの構成を示すブロック図である。
撮像装置1は、例えば、デジタルカメラとして構成される。
FIG. 1 is a block diagram showing a hardware configuration of an image pickup apparatus 1 according to an embodiment of an image processing apparatus of the present invention.
The imaging device 1 is configured as a digital camera, for example.

撮像装置1は、図1に示すように、CPU(Central Processing Unit)11と、ROM(Read Only Memory)12と、RAM(Random Access Memory)13と、バス14と、入出力インターフェース15と、撮像部16と、入力部17と、出力部18と、記憶部19と、通信部20と、ドライブ21と、を備えている。   As shown in FIG. 1, the image pickup apparatus 1 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a bus 14, an input / output interface 15, and an image pickup. It includes a unit 16, an input unit 17, an output unit 18, a storage unit 19, a communication unit 20, and a drive 21.

CPU11は、ROM12に記録されているプログラム、又は、記憶部19からRAM13にロードされたプログラムに従って各種の処理を実行する。   The CPU 11 executes various processes according to the program recorded in the ROM 12 or the program loaded from the storage unit 19 into the RAM 13.

RAM13には、CPU11が各種の処理を実行する上において必要なデータ等も適宜記憶される。   The RAM 13 also stores data necessary for the CPU 11 to execute various processes.

CPU11、ROM12及びRAM13は、バス14を介して相互に接続されている。このバス14にはまた、入出力インターフェース15も接続されている。入出力インターフェース15には、撮像部16、入力部17、出力部18、記憶部19、通信部20及びドライブ21が接続されている。   The CPU 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output interface 15 is also connected to the bus 14. An imaging unit 16, an input unit 17, an output unit 18, a storage unit 19, a communication unit 20, and a drive 21 are connected to the input / output interface 15.

撮像部16は、図示はしないが、光学レンズ部と、イメージセンサと、を備えている。   Although not shown, the imaging unit 16 includes an optical lens unit and an image sensor.

光学レンズ部は、被写体を撮影するために、光を集光するレンズ、例えばフォーカスレンズやズームレンズ等で構成される。
フォーカスレンズは、イメージセンサの受光面に被写体像を結像させるレンズである。ズームレンズは、焦点距離を一定の範囲で自在に変化させるレンズである。
光学レンズ部にはまた、必要に応じて、焦点、露出、ホワイトバランス等の設定パラメータを調整する周辺回路が設けられる。
The optical lens unit is configured by a lens that condenses light, such as a focus lens and a zoom lens, in order to photograph a subject.
The focus lens is a lens that forms a subject image on the light receiving surface of the image sensor. The zoom lens is a lens that freely changes the focal length within a certain range.
The optical lens section is also provided with a peripheral circuit for adjusting setting parameters such as focus, exposure, and white balance, if necessary.

イメージセンサは、光電変換素子や、AFE(Analog Front End)等から構成される。
光電変換素子は、例えばCMOS(Complementary Metal Oxide Semiconductor)型の光電変換素子等から構成される。光電変換素子には、光学レンズ部から被写体像が入射される。そこで、光電変換素子は、被写体像を光電変換(撮像)して画像信号を一定時間蓄積し、蓄積した画像信号をアナログ信号としてAFEに順次供給する。
AFEは、このアナログの画像信号に対して、A/D(Analog/Digital)変換処理等の各種信号処理を実行する。各種信号処理によって、ディジタル信号が生成され、撮像部16の出力信号として出力される。
このような撮像部16の出力信号を撮像画像のデータとしてCPU11や図示しない画像処理部等に適宜供給される。
The image sensor includes a photoelectric conversion element, an AFE (Analog Front End), and the like.
The photoelectric conversion element is composed of, for example, a CMOS (Complementary Metal Oxide Semiconductor) type photoelectric conversion element. A subject image is incident on the photoelectric conversion element from the optical lens unit. Therefore, the photoelectric conversion element photoelectrically converts (captures) the subject image, accumulates the image signal for a predetermined time, and sequentially supplies the accumulated image signal to the AFE as an analog signal.
The AFE executes various signal processing such as A / D (Analog / Digital) conversion processing on the analog image signal. A digital signal is generated by various signal processing and is output as an output signal of the image pickup unit 16.
Such an output signal of the image pickup unit 16 is appropriately supplied to the CPU 11, an image processing unit (not shown), or the like as data of a picked-up image.

入力部17は、各種釦等で構成され、ユーザの指示操作に応じて各種情報を入力する。
出力部18は、ディスプレイやスピーカ等で構成され、画像や音声を出力する。
記憶部19は、ハードディスク或いはDRAM(Dynamic Random Access Memory)等で構成され、各種画像のデータを記憶する。
通信部20は、インターネットを含むネットワークを介して他の装置(図示せず)との間で行う通信を制御する。
The input unit 17 is configured by various buttons and the like, and inputs various information according to a user's instruction operation.
The output unit 18 includes a display, a speaker, and the like, and outputs an image and sound.
The storage unit 19 includes a hard disk, a DRAM (Dynamic Random Access Memory), or the like, and stores various image data.
The communication unit 20 controls communication with other devices (not shown) via a network including the Internet.

ドライブ21には、磁気ディスク、光ディスク、光磁気ディスク、或いは半導体メモリ等よりなる、リムーバブルメディア31が適宜装着される。ドライブ21によってリムーバブルメディア31から読み出されたプログラムは、必要に応じて記憶部19にインストールされる。また、リムーバブルメディア31は、記憶部19に記憶されている画像のデータ等の各種データも、記憶部19と同様に記憶することができる。   A removable medium 31 made up of a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is appropriately mounted on the drive 21. The program read from the removable medium 31 by the drive 21 is installed in the storage unit 19 as needed. Further, the removable medium 31 can also store various data such as image data stored in the storage unit 19 in the same manner as the storage unit 19.

このように構成される撮像装置1では、顔を撮影した画像に対して、肌に対して美白処理が施されていると共に、肌色と色相が近く美白処理によって色が薄くなる等の影響を受けた唇を適切に補正した画像(以下、「美白画像」という。)を生成することができる機能を有する。即ち、撮像装置1では、顔の肌に施された美白処理によって補正された唇の色を適切な色に補正して美白処理の効果を復元(軽減)することにより美白画像を生成する。   In the image pickup apparatus 1 configured as described above, the image of the face is subjected to the whitening process on the skin, and the skin color and the hue are close to each other. It has a function of generating an image (hereinafter, referred to as “whitening image”) in which the lips are appropriately corrected. That is, the imaging device 1 generates a whitening image by restoring (reducing) the effect of the whitening process by correcting the lip color corrected by the whitening process applied to the skin of the face to an appropriate color.

即ち、美白処理は、肌色領域に対してだけ施されるように対象箇所以外がマスクされるが、唇の色は肌色と色相が近く、肌色領域に含まれてしまうため、美白処理が施されてしまい、唇の色が薄くなる等の影響を受けてしまう。また、美白処理は、主に、彩度低減、明度アップ、青色方向への色相回転の3つの要素を補正することによって行われる。
このため、本実施形態の撮像装置1では、薄くなった唇の色に対して、3つの要素のうち、彩度低減のみを復元し、他の効果は維持するようにして、唇の色を適切な色に補正する。
That is, the whitening process is masked except for the target area so that it is applied only to the skin color region, but since the hue of the lips is close to the skin color and is included in the skin color region, the whitening process is performed. It will be affected by the color of the lips becoming lighter. The whitening process is mainly performed by correcting three elements of saturation reduction, brightness increase, and hue rotation in the blue direction.
Therefore, in the image pickup apparatus 1 according to the present embodiment, of the three elements, only the saturation reduction is restored with respect to the thinned lip color, and the other effects are maintained, and the lip color is changed. Correct to an appropriate color.

美白画像は、本実施形態においては、まず、顔全体に対して美白処理を施し、その後、美白処理の影響を受けた唇に対して別途、適切な色に再現するための色補正を行って生成される。   In the present embodiment, the whitening image is first subjected to whitening processing for the entire face, and then separately subjected to color correction for reproducing an appropriate color for the lips affected by the whitening processing. Is generated.

図2は、本実施形態における美白画像の生成を説明するための模式図である。
本実施形態の美白画像は、図2に示すように、画像全体に対して美白処理を施した画像(以下、「元画像」という。)から唇を含む領域を切り出す。そして、唇を含む領域に対して、美白処理によって薄くなってしまった唇の色を適切な色に再現するように色補正の処理を施して画像(以下、「色補正画像」という。)を作成する。色補正画像は、唇以外の画像全体に対して色補正がされているため、唇のみに色補正の効果がでるように、唇以外をマスクするマスク画像を用いて、元画像と色補正画像とをαブレンドによる画像合成をして、唇のみが色補正された画像(以下、「唇色補正画像」という。)を作成する。マスク画像は、αブレンドによる画像合成の際にα値となる。
その後、作成した唇色補正画像を元画像の切り出し位置に合成して、美白画像を生成する。
FIG. 2 is a schematic diagram for explaining generation of a whitening image in this embodiment.
As for the whitening image of the present embodiment, as shown in FIG. 2, a region including lips is cut out from an image obtained by whitening the entire image (hereinafter, referred to as “original image”). Then, an image (hereinafter referred to as a "color-corrected image") is obtained by performing color correction processing on the region including the lips so that the color of the lips that has been lightened by the whitening process is reproduced to an appropriate color. create. Since the color-corrected image is color-corrected for the entire image other than the lips, a mask image that masks the parts other than the lips is used so that the effect of the color correction is exerted only on the lips. The images are combined by α blending to create an image in which only the lips are color-corrected (hereinafter referred to as “lip color-corrected image”). The mask image becomes an α value when the images are combined by α blending.
Then, the created lip color correction image is combined with the cutout position of the original image to generate a whitening image.

[マスク画像の作成]
図3は、マスク画像の作成例を示す模式図である。
本実施形態においては、美白処理により薄くなってしまった唇部分の色を再現する補正処理を施すために、唇に相当する領域に対応したマスク画像を生成する。
マスク画像は、図3に示すように、黒い部分ほど色補正画像の合成の割合が低く、白い部分ほど色補正画像の合成の割合が高いことを示している。本実施形態においては、唇の中心部分は色補正が強く施されており、唇の外縁に近い部分は、肌との影響を少なくするために色補正が強く施されるように構成される。
[Create mask image]
FIG. 3 is a schematic diagram showing an example of creating a mask image.
In the present embodiment, a mask image corresponding to the region corresponding to the lips is generated in order to perform the correction process for reproducing the color of the lip portion that has become thin due to the whitening process.
As shown in FIG. 3, in the mask image, the black portion has a lower proportion of color-corrected image composition, and the white portion has a higher proportion of color-corrected image composition. In the present embodiment, the central portion of the lip is strongly color-corrected, and the portion near the outer edge of the lip is strongly color-corrected in order to reduce the influence on the skin.

このようなマスク画像は、まず、顔の器官の検出によって唇の位置を特定し、特定した唇の位置を含む領域におけるHSV色空間のピークとなる色相値に基づいて作成される。本実施形態の顔の器官検出では、図2に示すように、唇位置の特定等のために、少なくとも、上唇の中央の上下の2点P1,P2、下唇の中央の上下の2点P3,P4、唇の左右の端の2点P5,P6の合計6点の位置を検出する。   Such a mask image is created by first identifying the position of the lips by detecting the facial organs, and based on the hue value that is the peak of the HSV color space in the area including the identified position of the lips. In the face organ detection of the present embodiment, as shown in FIG. 2, at least two points P1 and P2 above and below the center of the upper lip and two points P3 above and below the center of the lower lip, for the purpose of specifying the lip position and the like. , P4, and two points P5 and P6 at the left and right ends of the lips, a total of 6 positions are detected.

本実施形態においては、HSV色空間のピークとなる色相値に基づいて生成されたマスク画像に、鼻等の余計な部分を排除するために、予め唇の形状を模した固定マップを合成して、最終的なマスク画像を作成する。   In the present embodiment, a fixed map simulating the shape of the lips is synthesized in advance in the mask image generated based on the peak hue value of the HSV color space in order to eliminate an unnecessary portion such as the nose. , Create the final mask image.

具体的には、本実施形態のマスク画像は、元画像から唇を含む領域を切り出した画像(以下、「切り出し画像」という。)から、HUEマップを作成し、予め作成しておいた固定マップと合成して作成される。HUEマップと固定マップの合成では、HUEマップから空間的に不要な領域を除去するために、HUEマップと固定マップの最小値をとるようにする。   Specifically, the mask image of the present embodiment creates a HUE map from an image obtained by cutting out an area including lips from the original image (hereinafter referred to as a “cutout image”), and a fixed map created in advance. It is created by combining with. In the combination of the HUE map and the fixed map, the minimum value of the HUE map and the fixed map is taken in order to remove a spatially unnecessary area from the HUE map.

[HUEマップの作成]
HUEマップは、切り出し画像において唇の色に相当する箇所を特定したマップである。HUEマップは、まず、YUV色空間の切り出し画像をHSV(色相:Hue,彩度:Saturation・Chroma,明度:Value・Lightness・Brightness)色空間に変換する。その後、ノイズを除去するために、εフィルタでぼかした上で、HSV変換後の画像を解析(HSV解析処理)する。そして、HSV解析処理の処理結果から算出した値をHUEマップのマップ値として、HUEマップを作成する。
[Creation of HUE map]
The HUE map is a map that specifies a portion corresponding to the lip color in the cutout image. The HUE map first converts the clipped image in the YUV color space into the HSV (hue: Hue, saturation: Saturation / Chroma, lightness: Value / Lightness / Brightness) color space. After that, in order to remove noise, the image is subjected to blurring with the ε filter and then the image after HSV conversion is analyzed (HSV analysis processing). Then, the HUE map is created using the value calculated from the processing result of the HSV analysis processing as the map value of the HUE map.

HSV解析処理では、各画素におけるマップ値を決定するために、唇色レベルの重み付けを設定する。唇色レベルの重み付けは、HSVのチャネル別に作成したヒストグラムに基づいて設定される。   In the HSV analysis processing, lip color level weighting is set in order to determine the map value at each pixel. The weighting of the lip color level is set based on the histogram created for each HSV channel.

図4は、唇色レベルの重み付けの設定に係るヒストグラム及び唇色レベルの重み付けテーブルを示す図である。
唇色レベルの設定では、まず、図2に示す器官検出で検出した点P1〜P6から計測領域として上下の唇の中央付近に計測領域R1,R2を設定し、各計測領域におけるHSVそれぞれのヒストグラムを作成する。なお、ヒストグラムの作成に係る唇における計測領域は、唇の色が取得可能な領域であれば、領域の数、種々の形状、位置、サイズであってもよい。
FIG. 4 is a diagram showing a histogram and a lip color level weighting table relating to setting of lip color level weighting.
In setting the lip color level, first, measurement areas R1 and R2 are set near the center of the upper and lower lips as measurement areas from the points P1 to P6 detected by the organ detection shown in FIG. 2, and the histogram of each HSV in each measurement area is set. To create. Note that the measurement area on the lips relating to the creation of the histogram may be the number of areas, various shapes, positions, and sizes as long as the lip color can be acquired.

そして、図4(a)に示すようなHSVそれぞれのヒストグラムの最頻値に対応して、図4(b)に示すように唇色レベルの重み付けテーブルが設定される。Hのチャネルの場合には、最頻値を基準にしてプラスとマイナスに均等に重み付けが振り分けられ、最頻値から離れるほど重み付けが低くなるように設定される。また、S(V)のチャネルの場合には、ヒストグラムの最頻値を上方の左端(右端)の基準にして、ピーク値に所定の幅があり、かつ、1段目よりも2段目の方が勾配が緩やかとなる2段階の傾きとなるように、重み付けが設定される。   Then, a lip color level weighting table is set as shown in FIG. 4B corresponding to the mode of each histogram of HSV as shown in FIG. 4A. In the case of the H channel, weighting is equally distributed to plus and minus with reference to the mode value, and the weighting is set to be lower as the mode value is further away. In the case of the S (V) channel, the peak value has a predetermined width with the mode of the histogram being the reference of the upper left end (right end), and the second stage is higher than the first stage. The weighting is set so that the gradient becomes two-step gradient with a gentler gradient.

その後、各画素ごとにHSVの各チャネル別に重み付けに応じて算出した唇色レベルを掛け合わせた結果をマップ値としてHUEマップを作成する。
即ち、HUEマップのマップ値は、以下の式(1)により算出される。
HUEマップのマップ値(Map)=Lh×Ls×Lv・・・(1)
なお、「Lh」はHの唇色レベルを示し、「Ls」はSの唇色レベルを示し、「Lv」はVの唇色レベルを示す。
Then, a HUE map is created with the result of multiplying the lip color level calculated according to the weighting for each HSV channel for each pixel as a map value.
That is, the map value of the HUE map is calculated by the following equation (1).
Map value of HUE map (Map) = Lh × Ls × Lv (1)
In addition, "Lh" shows the lip color level of H, "Ls" shows the lip color level of S, and "Lv" shows the lip color level of V.

[固定マップの作成]
図5は、固定マップの作成を説明するための模式図である。
[Create fixed map]
FIG. 5 is a schematic diagram for explaining the creation of a fixed map.

固定マップは、一般的な顔において唇の形を模したマップで、色補正を行うにあたり予め作成されているマップである。
固定マップは、図5(a)に示すように、データから縮小サイズのマップを展開する。
そして、図5(b)示すように、画像における唇の輪郭情報(本実施形態においては、2点P5,P6の位置)から唇の傾きの角度を算出して、当該角度に対応して固定マップを回転させる。
最後に、固定マップは、画像に対応するサイズに、リサイズして、HUEマップにおいて唇以外の部分を除去するために、HUEマップと合成されて使用される。合成に際しては、HUEマップと固定マップの最小値をとるようにする。
The fixed map is a map that imitates the shape of a lip on a general face, and is a map created in advance for color correction.
As the fixed map, as shown in FIG. 5A, a reduced size map is developed from the data.
Then, as shown in FIG. 5B, the angle of the lip inclination is calculated from the contour information of the lips in the image (the positions of the two points P5 and P6 in the present embodiment), and fixed in correspondence with the angle. Rotate the map.
Finally, the fixed map is used in combination with the HUE map to resize it to a size corresponding to the image and remove parts other than the lips in the HUE map. When combining, the minimum value of the HUE map and the fixed map is taken.

[色補正画像の作成]
色補正画像は、本実施形態においては、器官検出によって検出された左右の瞳の下方の肌領域から計測したYUV色空間のV値に応じて決定された補正強度により、切り出し画像を補正処理して作成される。なお、左右の瞳の下方の肌領域は、目の下のクマを避けた位置であり、顔において肌の色を最も表わしている位置として決定されたものであり、顔における肌の色を抽出可能な位置であれば種々の位置であってもよい。
[Create Color Corrected Image]
In the present embodiment, the color-corrected image is subjected to correction processing on the cut-out image with the correction intensity determined according to the V value of the YUV color space measured from the skin regions under the left and right pupils detected by the organ detection. Created. The skin areas below the left and right pupils are positions that avoid the bear under the eyes, and are determined as the positions that most represent the skin color on the face, and the skin color on the face can be extracted. Various positions may be used as long as they are positions.

なお、リップ等で元々の唇の色が濃い場合には、補正が効き過ぎないように、唇の画素のV値の補正を行う。
図6は、V補正のLUT(Look Up Table)を示す図である。
V補正のLUTでは、図6に示すように、唇の色が濃い部分にV補正がかかるように構成される。
If the original lip color is dark due to a lip or the like, the V value of the pixel of the lip is corrected so that the correction is not overly effective.
FIG. 6 is a diagram showing a V correction LUT (Look Up Table).
As shown in FIG. 6, the V-correction LUT is configured so that the V-correction is applied to a portion where the lip color is dark.

[唇色補正画像の作成]
唇色補正画像は、色補正画像と、切り出し画像とを、マスク画像に基づいて、αブレンドして画像合成して作成される。作成された色補正画像を元画像の切り出し位置に貼り付けて、美白画像を生成する。即ち、唇の領域のみに色補正が施され、それ以外の肌の部分は美白処理が施された色補正画像が、同一の美白処理の施された元画像に貼り付けられて美白画像が生成される。
[Create Lip Color Correction Image]
The lip color correction image is created by performing α blending of the color correction image and the cutout image based on the mask image to perform image blending. The created color-corrected image is pasted on the cutout position of the original image to generate a whitening image. That is, the color correction is applied only to the lips area, and the color-corrected image with the whitening treatment is applied to the other skin parts, and the whitening image is generated by pasting it on the original image with the same whitening treatment. To be done.

図7は、図1の撮像装置1の機能的構成のうち、美白処理を実行するための機能的構成を示す機能ブロック図である。
美白画像生成処理とは、撮影された人の顔を含む元画像に対して、美白処理を施すと共に、肌に色が近似しており美白処理の影響を受けて色が薄くなった唇を適正な色に補正して美白画像を生成する一連の処理をいう。
FIG. 7 is a functional block diagram showing a functional configuration for executing whitening processing, among the functional configurations of the image pickup apparatus 1 of FIG.
Whitening image generation processing applies whitening processing to the original image including the photographed person's face, and also makes it possible to properly treat lips whose color has become pale due to the effect of whitening processing on skin. It refers to a series of processes for generating a whitening image by correcting various colors.

美白画像生成処理を実行する場合には、図7に示すように、CPU11において、画像取得部51と、顔検出部52と、画像処理部53と、マスク画像作成処理部54と、色補正画像作成処理部55と、が機能する。   When executing the whitening image generation process, as shown in FIG. 7, in the CPU 11, the image acquisition unit 51, the face detection unit 52, the image processing unit 53, the mask image creation processing unit 54, and the color correction image. The creation processing unit 55 and functions.

また、記憶部19の一領域には、画像記憶部71と、固定マップ記憶部72と、が設定される。   Further, an image storage unit 71 and a fixed map storage unit 72 are set in one area of the storage unit 19.

画像記憶部71には、撮像部16から出力された画像のデータが記憶される。
固定マップ記憶部72には、マスク画像の作成に用いる固定マップのデータが記憶される。なお、固定マップは、データ量削減のため、唇の模した円弧形状であるため、円弧を分割して4分の1にしたデータを記憶しておくようにしてもよい。この場合、処理時に円弧となるように固定マップを展開する。
The image storage unit 71 stores image data output from the imaging unit 16.
The fixed map storage unit 72 stores fixed map data used to create a mask image. Since the fixed map has an arc shape imitating the lips in order to reduce the amount of data, the arc may be divided into quarters and data may be stored. In this case, the fixed map is developed so that it becomes a circular arc during processing.

画像取得部51は、撮像部16により撮像された画像に現像処理が行われた撮像画像のデータ、或いは画像記憶部71から処理対象となる画像のデータを取得する。   The image acquisition unit 51 acquires the data of the captured image in which the image captured by the image capturing unit 16 is subjected to the development processing, or the data of the image to be processed from the image storage unit 71.

顔検出部52は、画像から顔を検出すると共に、検出した顔において顔を構成する各器官を検出する。顔検出部52は、少なくとも、輪郭形状から、左右の瞳と、唇の器官を検出する。なお、顔検出部52は、唇に関しては、少なくとも、上唇の中央の上下の2点P1,P2、下唇の中央の上下の2点P3,P4、唇の左右の端の2点P5,P6の合計6点の位置を検出する。顔検出及び各器官の検出は、既存の顔検出技術及び器官技術の公知の技術を用いる。また、顔検出及び各器官の検出は、輝度、輪郭抽出等、HSV色空間の色情報とは異なる情報に基づく検出方法であればその検出方法は問わない。   The face detection unit 52 detects a face from the image and also detects each organ constituting the face in the detected face. The face detection unit 52 detects at least the left and right pupils and the organ of the lip from the contour shape. Regarding the lips, the face detection unit 52 has at least two upper and lower points P1 and P2 at the center of the upper lip, two upper and lower points P3 and P4 at the center of the lower lip, and two points P5 and P6 at the left and right ends of the lip. The positions of 6 points in total are detected. For face detection and detection of each organ, known techniques of existing face detection technology and organ technology are used. Further, the face detection and the detection of each organ may be any detection method as long as it is a detection method based on information different from the color information of the HSV color space, such as brightness and contour extraction.

画像処理部53は、元画像に対して各種の画像処理を実行する。
具体的には、画像処理部53は、例えば、主に、彩度低減、明度アップ、青色方向への色相回転の3点の要素の補正を行う美白処理を実行する。また、画像処理部53は、図2に示すように、元画像から唇を含む領域を切り出す。また、画像処理部53は、切り出し画像と、作成した色補正画像とを、作成したマスク画像に基づいて、αブレンドして画像合成する。その結果、唇色補正画像が作成される。また、画像処理部53は、元の切り出し位置に画像を貼り付ける。その結果、美白画像が生成される。
The image processing unit 53 executes various kinds of image processing on the original image.
Specifically, for example, the image processing unit 53 mainly performs whitening processing for correcting three elements, that is, saturation reduction, brightness increase, and hue rotation in the blue direction. Further, the image processing unit 53 cuts out a region including lips from the original image as shown in FIG. Further, the image processing unit 53 performs α blending of the cut-out image and the created color-corrected image based on the created mask image to perform image composition. As a result, a lip color corrected image is created. Further, the image processing unit 53 pastes the image at the original cutout position. As a result, a whitening image is generated.

マスク画像作成処理部54は、唇の領域のみに色補正が施された画像となるように、αブレンドに用いるマスク画像を生成する。   The mask image creation processing unit 54 generates a mask image used for α blending so that the image is color-corrected only in the lip region.

具体的には、マスク画像作成処理部54は、図3に示すように、切り出し画像のYUV色空間をHSV色空間に変換する。また、マスク画像作成処理部54は、ノイズ除去を目的としてεフィルタで画像をぼかす処理を行う。   Specifically, the mask image creation processing unit 54 converts the YUV color space of the cutout image into the HSV color space, as shown in FIG. Further, the mask image creation processing unit 54 performs a process of blurring an image with an ε filter for the purpose of removing noise.

また、マスク画像作成処理部54は、HSV解析処理を実行する。HSV解析処理では、上下の唇の中央付近に設定した計測領域R1,R2(図2参照)のHSVの各チャネルでヒストグラムを作成する(図4(a)参照)。そして、作成したヒストグラムから算出する唇色レベルの重み付けを作成する(図4(b)参照)。その後、作成した唇色レベルの重み付けに基づいて、上述した式(1)を用いて、各画素におけるHUEマップのマップ値を算出する。算出した各画素のマップ値からHUEマップを作成する。   Further, the mask image creation processing unit 54 executes HSV analysis processing. In the HSV analysis processing, a histogram is created for each HSV channel of the measurement regions R1 and R2 (see FIG. 2) set near the center of the upper and lower lips (see FIG. 4A). Then, the weighting of the lip color level calculated from the created histogram is created (see FIG. 4B). Then, based on the created weighting of the lip color level, the map value of the HUE map in each pixel is calculated using the above-mentioned formula (1). A HUE map is created from the calculated map value of each pixel.

また、マスク画像作成処理部54は、図5(a)及び図5(b)に示すように、固定マップ記憶部72に記憶される固定マップを切り出し画像の唇に対応するように角度調整及びサイズ調整を行う。   Further, as shown in FIGS. 5A and 5B, the mask image creation processing unit 54 adjusts the angle of the fixed map stored in the fixed map storage unit 72 so as to correspond to the lips of the clipped image. Adjust the size.

また、マスク画像作成処理部54は、図3に示すように、角度調整及びサイズ調整をした固定マップと作成したHUEマップとを合成する。この際、マスク画像作成処理部54は、鼻等のHUEマップから空間的な不要な領域を除去するために、HUEマップと固定マップの最小値をとるように合成する。合成の結果、マスク画像が作成される。   Further, as shown in FIG. 3, the mask image creation processing unit 54 combines the fixed map with the angle adjustment and the size adjustment with the created HUE map. At this time, the mask image creation processing unit 54 combines the HUE map and the fixed map so as to take the minimum value in order to remove a spatially unnecessary area from the HUE map such as the nose. As a result of the synthesis, a mask image is created.

色補正画像作成処理部55は、切り出し画像に対して、色補正処理を実行する。
具体的には、色補正画像作成処理部55は、検出された左右の瞳の下方の肌領域のV値を計測する。そして、色補正画像作成処理部55は、切り出し画像に対して、計測したV値に応じて、色補正を行う。その結果、切り出し画像に対して色補正がされた色補正画像が作成される。
The color correction image creation processing unit 55 executes color correction processing on the cutout image.
Specifically, the color correction image creation processing unit 55 measures the V value of the skin area below the detected left and right pupils. Then, the color correction image creation processing unit 55 performs color correction on the clipped image according to the measured V value. As a result, a color-corrected image that is color-corrected with respect to the cut-out image is created.

図8は、図7の機能的構成を有する図1の撮像装置1が実行する美白画像生成処理の流れを説明するフローチャートである。
美白画像生成処理は、ユーザによる入力部17への美白画像生成処理開始の操作により開始される。
美白画像生成処理開始の操作は、撮影指示操作であって、この撮影指示操作に応じて撮像部16により撮像された画像に、現像処理が行われた撮像画像のデータに対して、引き続き美白画像生成処理を行ってもよく、また、画像記憶部71に記憶されている撮像画像のデータを選択し、その選択された撮像画像のデータに対する美白画像生成処理開始の操作であってもよい。
FIG. 8 is a flowchart illustrating the flow of whitening image generation processing executed by the image pickup apparatus 1 of FIG. 1 having the functional configuration of FIG. 7.
The whitening image generation process is started by the user's operation of starting the whitening image generation process on the input unit 17.
The operation for starting the whitening image generation processing is a shooting instruction operation, and the image captured by the image capturing unit 16 in response to the shooting instruction operation continues to be a whitening image for the data of the captured image subjected to the development processing. The generation process may be performed, or the operation of selecting the captured image data stored in the image storage unit 71 and starting the whitening image generation process for the selected captured image data may be performed.

ステップS11において、画像取得部51は、撮像部16により撮像された画像に現像処理が行われた撮像画像のデータ、或いは画像記憶部71から処理対象となる元画像を取得する。   In step S <b> 11, the image acquisition unit 51 acquires the data of the captured image in which the image captured by the image capturing unit 16 is subjected to the development processing, or the original image to be processed from the image storage unit 71.

ステップS12において、顔検出部52は、元画像において顔検出を行い、顔が検出されたか否かを判定する。
顔が検出されなかった場合には、ステップS12においてNOと判定されて、美白画像生成処理は終了する。
顔が検出された場合には、ステップS12においてYESと判定されて、処理はステップS13に進む。
In step S12, the face detection unit 52 performs face detection in the original image and determines whether a face has been detected.
If no face is detected, NO is determined in step S12, and the whitening image generation process ends.
If a face is detected, YES is determined in step S12, and the process proceeds to step S13.

ステップS13において、画像処理部53は、元画像に対して美白処理を実行する。美白処理によって、元画像は、彩度低減、明度アップ、青色方向への色相回転されたものとなる。   In step S13, the image processing unit 53 executes whitening processing on the original image. By the whitening process, the original image has reduced saturation, increased brightness, and has its hue rotated in the blue direction.

ステップS14において、顔検出部52は、検出された顔の器官の検出を行う。その結果、少なくとも、元画像において左右の瞳と、唇の器官の位置が検出される。   In step S14, the face detection unit 52 detects the detected facial organs. As a result, at least the positions of the left and right pupils and the organ of the lip are detected in the original image.

ステップS15において、画像処理部53は、検出した唇を含む領域を切り出す。   In step S15, the image processing unit 53 cuts out a region including the detected lip.

ステップS16において、マスク画像作成処理部54は、マスク画像作成処理を実行する。マスク画像作成処理の実行の結果、αブレンド用のマスク画像が作成される。マスク画像作成処理の詳細については、後述する。   In step S16, the mask image creation processing unit 54 executes mask image creation processing. As a result of the execution of the mask image creation processing, a mask image for α blending is created. Details of the mask image creation processing will be described later.

ステップS17において、色補正画像作成処理部55は、色補正画像作成処理を実行する。色補正画像作成処理の実行の結果、切り出し画像に対して、薄くなった唇を適切な色にする色補正が行われた色補正画像が作成される。色補正画像作成処理の詳細については、後述する。   In step S17, the color correction image creation processing unit 55 executes color correction image creation processing. As a result of the execution of the color-corrected image creation processing, a color-corrected image is created in which the cut-out image is color-corrected to make the thinned lips an appropriate color. Details of the color correction image creation processing will be described later.

ステップS18において、画像処理部53は、切り出し画像と、作成した色補正画像とを、作成したマスク画像に基づいて、αブレンドして画像合成する。その結果、唇部分のみに色補正が施された唇色補正画像が作成される。   In step S18, the image processing unit 53 performs α blending on the cut-out image and the created color-corrected image based on the created mask image to perform image composition. As a result, a lip color-corrected image in which only the lip portion is color-corrected is created.

ステップS19において、画像処理部53は、唇色補正画像を元の切り出し位置に貼り付ける。その結果、肌に美白処理が施されていると共に、唇部分は適切な色に補正された美白画像が生成される。
その後、美白画像生成処理が終了する。
In step S19, the image processing unit 53 attaches the lip color corrected image to the original cutout position. As a result, a whitening image is generated in which the skin is whitened and the lips are corrected to have an appropriate color.
Then, the whitening image generation process ends.

図9は、美白画像生成処理のうち、マスク画像作成処理の流れを説明するフローチャートである。   FIG. 9 is a flowchart illustrating the flow of the mask image creation process of the whitening image creation process.

ステップS31において、マスク画像作成処理部54は、切り出し画像のYUV色空間をHSV色空間に変換する。   In step S31, the mask image creation processing unit 54 converts the YUV color space of the cutout image into the HSV color space.

ステップS32において、マスク画像作成処理部54は、εフィルタでぼかす処理を行う。   In step S32, the mask image creation processing unit 54 performs a blurring process using the ε filter.

ステップS33において、マスク画像作成処理部54は、HSV解析処理を実行する。HSV解析処理では、図2に示すように上下の唇の中央付近に設定した計測領域R1,R2のHSVの各チャネルでヒストグラムを作成する(図4(a)参照)。そして、作成したヒストグラムから算出する唇色レベルの重み付けを設定する(図4(b)参照)。唇色レベルの重み付けは、Hのチャネルの場合には、最頻値を基準にしてプラスとマイナスに均等に重み付けが振り分けられ、最頻値から離れるほど重み付けが低くなるように設定される。また、S(V)のチャネルの場合には、ヒストグラムの最頻値を上方の左端(右端)の基準にして、ピーク値に所定の幅があり、かつ、1段目よりも2段目の方が勾配が緩やかとなる2段階の傾きとなるように、重み付けが設定される。   In step S33, the mask image creation processing unit 54 executes the HSV analysis processing. In the HSV analysis process, a histogram is created for each HSV channel of the measurement regions R1 and R2 set near the center of the upper and lower lips as shown in FIG. 2 (see FIG. 4A). Then, the weighting of the lip color level calculated from the created histogram is set (see FIG. 4B). In the case of the H channel, the weighting of the lip color level is set such that the weighting is equally distributed to the plus and the minus with respect to the mode value, and the weighting becomes lower as the mode value is further away. In the case of the S (V) channel, the peak value has a predetermined width with the mode of the histogram being the reference of the upper left end (right end), and the second stage is higher than the first stage. The weighting is set so that the gradient becomes two-step gradient with a gentler gradient.

ステップS34において、マスク画像作成処理部54は、HUEマップを作成する。HUEマップにおけるマップ値は、作成した唇色レベルの重み付けに基づいて、上述した式(1)を用いて算出する。   In step S34, the mask image creation processing unit 54 creates a HUE map. The map value in the HUE map is calculated using the above-mentioned formula (1) based on the created weighting of the lip color level.

ステップS35において、マスク画像作成処理部54は、固定マップ記憶部72に記憶される固定マップを切り出し画像の唇に対応するように角度調整及びサイズ調整を行う。   In step S35, the mask image creation processing unit 54 performs angle adjustment and size adjustment so that the fixed map stored in the fixed map storage unit 72 corresponds to the lips of the clipped image.

ステップS36において、マスク画像作成処理部54は、角度調整及びサイズ調整をした固定マップと作成したHUEマップとを合成する。この際、マスク画像作成処理部54は、鼻等のHUEマップから空間的に不要な領域を除去するために、HUEマップと固定マップの最小値をとるように合成する。合成の結果、マスク画像が作成される。   In step S36, the mask image creation processing unit 54 combines the fixed map that has undergone the angle adjustment and the size adjustment with the created HUE map. At this time, the mask image creation processing unit 54 combines the HUE map and the fixed map so as to take the minimum value in order to remove a spatially unnecessary region from the HUE map such as the nose. As a result of the synthesis, a mask image is created.

図10は、美白画像生成処理のうち、色補正画像作成処理の流れを説明するフローチャートである。   FIG. 10 is a flowchart illustrating the flow of the color-corrected image creating process in the whitening image creating process.

ステップS51において、色補正画像作成処理部55は、検出された左右の瞳の下方の肌領域のV値を計測する。   In step S51, the color correction image creation processing unit 55 measures the V value of the skin area below the detected left and right pupils.

ステップS52において、色補正画像作成処理部55は、切り出し画像に対して、計測したV値に応じて、色補正を行う。その結果、切り出し画像に対して色補正がされた色補正画像が作成される。   In step S52, the color correction image creation processing unit 55 performs color correction on the cutout image according to the measured V value. As a result, a color-corrected image that is color-corrected with respect to the cut-out image is created.

種々の撮像装置では、ユーザが肌色を選択できる機能があり、例えば、顔の血色を良くする「ナチュラル」や顔の色を白くする「美白」が選択可能に構成される。ナチュラルでは、発色が良い色の再現になるので、唇の色も発色をよくすることができる。一方で美白では、肌色の彩度を薄くするので、唇色もそれに引きずられて、色が薄く血色の悪いものになってしまう。
そこで、本実施形態の撮像装置1においては、人物を撮影した画像の輪郭を検出した結果を用いて、検出した顔領域から唇領域を抽出し、唇色を鮮やかにしたり、リップを塗ったように補正したりすることができる。唇色領域の抽出はHSV色空間で表現される画像(HSV画像)を解析し、HSV画像からαブレンド用のマスク画像を作成する。補正する際は、YUV色空間で表現される画像を解析し、YUV(特にV)それぞれで補正することができる。
Various image pickup apparatuses have a function of allowing the user to select a flesh color, and for example, “natural” for improving the complexion of the face and “whitening” for whitening the face are selectable. Natural colors produce good color reproduction, and lip colors can also develop well. On the other hand, with whitening, the saturation of the skin color is lightened, and the lip color is also dragged by it, resulting in a lighter and less complexion.
Therefore, in the image pickup apparatus 1 of the present embodiment, the lip area is extracted from the detected face area by using the result of detecting the contour of the image of a person, and the lip color is made vivid or lip is applied. Can be corrected to. To extract the lip color region, an image (HSV image) expressed in the HSV color space is analyzed, and a mask image for α blending is created from the HSV image. At the time of correction, the image expressed in the YUV color space can be analyzed and corrected in each of YUV (particularly V).

以上のように構成される撮像装置1は、画像処理部53と、マスク画像作成処理部54と、色補正画像作成処理部55と、を備える。
画像処理部53は、画像内に含まれる人物の顔領域に対して、肌の色を白くする美白処理を施す。
マスク画像作成処理部54は、美白処理が施される人物の顔領域内で、当該美白処理を軽減すべき部分を特定する。
色補正画像作成処理部55は、特定された美白処理を軽減すべき部分に対して、当該美白処理を軽減する処理を施す。
これにより、撮像装置1においては、唇の色を適切に特定することができ、人物の顔領域全体に対して施す美白処理に使用することができ、人物の顔全体に適切な美白処理を施すことができる。
The imaging device 1 configured as described above includes the image processing unit 53, the mask image creation processing unit 54, and the color correction image creation processing unit 55.
The image processing unit 53 performs a whitening process for whitening the skin color on the face area of the person included in the image.
The mask image creation processing unit 54 identifies a portion in the face area of the person to which the whitening process is applied, where the whitening process should be reduced.
The color-corrected image creation processing unit 55 performs a process of reducing the whitening process on the specified portion where the whitening process should be reduced.
As a result, in the image pickup apparatus 1, the color of the lips can be appropriately specified, and the image can be used for the whitening process performed on the entire face area of the person, and the appropriate whitening process is performed on the entire face of the person. be able to.

美白処理は、複数種類の処理からなる。
マスク画像作成処理部54は、複数種類の処理からなる美白処理が施される人物の顔領域内で、複数種類の処理のうちの一部の処理の効果を軽減し、他の処理の効果を維持すべき部分を特定する。
これにより、撮像装置1においては、例えば、彩度低減、明度アップ、青色方向への色相回転の3つの要素で美白処理が行われていた場合に、彩度低減のみを復元することで、唇の色を適切に特定することができ、人物の顔領域全体に対して施す美白処理に使用することができる。
The whitening treatment consists of a plurality of types of treatment.
The mask image creation processing unit 54 reduces the effects of some of the multiple types of processing and reduces the effects of other types of processing within the face area of a person to which the whitening process including multiple types of processing is performed. Identify the parts to keep.
As a result, in the image pickup apparatus 1, for example, when the whitening process is performed with the three elements of the color saturation reduction, the lightness increase, and the hue rotation in the blue direction, only the color saturation reduction is restored, and Can be appropriately specified, and can be used for whitening treatment applied to the entire face area of a person.

また、画像処理部53は、HSV色空間の色情報に基づき、画像内の肌色部分を特定する。
また、画像処理部53は、特定された肌色部分に対して美白処理を施す。
マスク画像作成処理部54は、特定された肌色部分に含まれる部分であって、色相値が肌の色と近似する肌以外の部分を、美白処理を軽減すべき部分であると特定する。
これにより、撮像装置1においては、特定された肌色部分に含まれる部分であって、色相値が肌の色と近似する肌以外の部分を、美白処理を軽減すべき部分であると特定するため、人物の顔全体に適切な美白処理を施すことができる。
Further, the image processing unit 53 identifies the skin color portion in the image based on the color information of the HSV color space.
Further, the image processing unit 53 performs whitening processing on the specified skin color portion.
The mask image creation processing unit 54 identifies a portion included in the identified skin color portion and a portion other than the skin having a hue value similar to the skin color as a portion where the whitening process should be reduced.
Thereby, in the image pickup apparatus 1, a part included in the specified skin color part and a part other than the skin having a hue value similar to the skin color is specified as a part in which the whitening process should be reduced. , Appropriate whitening treatment can be applied to the entire face of a person.

また、撮像装置1は、HSV色空間の色情報とは異なる基準に基づき、顔の部位を特定する顔検出部52を、更に備る。
顔検出部52は、特定された顔の部位であって、HSV色空間の色情報が肌の色と近似する肌以外の部分を、美白処理を軽減すべき部分であると特定する。
これにより、撮像装置1においては、HSV色空間の色情報が肌の色と近似する肌以外の部分を、美白処理を軽減すべき部分であると特定するために、人物の顔全体に適切な美白処理を施すことができる。
Further, the image pickup apparatus 1 further includes a face detection unit 52 that specifies a face part based on a reference different from the color information of the HSV color space.
The face detection unit 52 identifies a portion of the identified face, other than the skin whose color information in the HSV color space approximates the skin color, as the portion where the whitening process should be reduced.
As a result, in the image pickup apparatus 1, in order to specify a portion other than the skin whose color information in the HSV color space approximates the skin color as a portion where the whitening process should be reduced, it is appropriate for the entire face of the person. A whitening treatment can be applied.

また、色補正画像作成処理部55は、特定された美白処理を軽減すべき部分の色の濃度をYUV色空間の色情報に基づき特定する。
色補正画像作成処理部55は、特定された濃度に応じて美白処理を軽減する処理を施す。
これにより、撮像装置1においては、唇の色を適切に特定することができ、人物の顔領域全体に対して施す美白処理に使用することができる。
In addition, the color correction image creation processing unit 55 specifies the density of the color of the specified portion where the whitening processing should be reduced based on the color information of the YUV color space.
The color correction image creation processing unit 55 performs processing for reducing the whitening processing according to the specified density.
With this, in the image pickup apparatus 1, the color of the lips can be appropriately specified, and the image can be used for the whitening process performed on the entire face area of the person.

顔検出部52は、更に、予め用意されている顔の部位の形の基準となる情報を使用して、美白処理を軽減すべき部分を特定する。
これにより、撮像装置1においては、唇の位置を適切に特定することができ、人物の顔全体に適切な美白処理を施すことができる。
The face detection unit 52 further identifies the portion where the whitening process should be reduced by using the information that is prepared in advance and serves as a reference for the shape of the face part.
As a result, in the image pickup apparatus 1, the position of the lips can be appropriately specified, and appropriate whitening processing can be performed on the entire face of the person.

マスク画像作成処理部54は、人物の顔の唇部分を、美白処理を軽減すべき部分として特定する。
人物の顔の唇部分を、美白処理を軽減すべき部分とすることで、人物の顔全体に適切な美白処理を施すことができる。
The mask image creation processing unit 54 identifies the lip portion of the person's face as the portion where the whitening process should be reduced.
By setting the lip portion of the person's face as a portion where the whitening process should be reduced, it is possible to perform appropriate whitening processing on the entire face of the person.

顔検出部52は、HSV色空間の色情報とは異なる基準に基づき、画像内に含まれる人物の顔の唇部分を特定する。
マスク画像作成処理部54は、特定された唇部分におけるHSV色空間の色情報に基づき、唇の色を特定する。
これにより、撮像装置1においては、唇の色を適切に特定することができ、人物の顔領域全体に対して施す美白処理に使用することができる。
The face detection unit 52 specifies the lip portion of the person's face included in the image based on a standard different from the color information of the HSV color space.
The mask image creation processing unit 54 identifies the lip color based on the color information of the HSV color space in the identified lip portion.
With this, in the image pickup apparatus 1, the color of the lips can be appropriately specified, and the image can be used for the whitening process performed on the entire face area of the person.

マスク画像作成処理部54は、HSV色空間において、特定された唇部分の色情報が所定の範囲で肌の色の色情報と近似する色を、唇の色として特定する。
これにより、撮像装置1においては、唇の色を適切に特定することができ、人物の顔領域全体に対して施す美白処理に使用することができる。
The mask image creation processing unit 54 specifies, in the HSV color space, a color in which the color information of the specified lip portion approximates the color information of the skin color within a predetermined range as the lip color.
With this, in the image pickup apparatus 1, the color of the lips can be appropriately specified, and the image can be used for the whitening process performed on the entire face area of the person.

マスク画像作成処理部54は、HSV色空間において、特定された唇部分の色情報の分布に基づき、唇の色を特定する。
これにより、撮像装置1においては、唇の色を適切に特定することができ、人物の顔領域全体に対して施す美白処理に使用することができる。
The mask image creation processing unit 54 specifies the lip color based on the distribution of the color information of the specified lip portion in the HSV color space.
With this, in the image pickup apparatus 1, the color of the lips can be appropriately specified, and the image can be used for the whitening process performed on the entire face area of the person.

顔検出部52は、HSV色空間の色情報とは異なる基準に基づき、唇部分を特定する。
これにより、撮像装置1においては、唇の位置を適切に特定することができ、人物の顔領域全体に対して施す美白処理に使用することができる。
The face detection unit 52 specifies the lip portion based on a standard different from the color information of the HSV color space.
As a result, in the imaging device 1, the position of the lips can be appropriately specified, and the lips can be used for the whitening process performed on the entire face area of the person.

また、画像処理部53は、特定された唇色に応じて、顔検出部52により特定された人物の顔の唇部分にYUV色空間の色情報による所定の画像処理を行う。
これにより、撮像装置1においては、唇色に応じた画像処理を行うことができる。
Further, the image processing unit 53 performs predetermined image processing on the lip portion of the face of the person identified by the face detection unit 52 based on the identified lip color using the color information in the YUV color space.
As a result, the image pickup apparatus 1 can perform image processing according to the lip color.

なお、本発明は、上述の実施形態に限定されるものではなく、本発明の目的を達成できる範囲での変形、改良等は本発明に含まれるものである。   It should be noted that the present invention is not limited to the above-described embodiments, and modifications, improvements, etc. within the scope of achieving the object of the present invention are included in the present invention.

上述の実施形態では、美白処理によって影響を受けた唇の色を適正な色に補正するように構成したがこれに限られない。特定した唇の領域に対して、唇の色を変化させるように補正してもよい。具体的には、異なるリップや口紅の色にしたり、リップ、口紅、グロス等を塗っていない唇に対して、リップ、口紅、グロス等を塗ってメイクアップしたり、血色の程度を調整したりしてもよい。この際、彩度を積極的に変化させてもよく、更に、明度や色相を変化させてもよい。   In the above-described embodiment, the lip color affected by the whitening process is corrected to an appropriate color, but the present invention is not limited to this. The specified lip region may be corrected so as to change the lip color. Specifically, you can apply different lips and lipstick colors, or apply makeup to lip without lip, lipstick, gloss, etc. by applying lip, lipstick, gloss, etc., or adjust the degree of blood color. You may. At this time, the saturation may be positively changed, and further, the brightness and the hue may be changed.

また、上述の実施形態では、唇の領域を最初に特定して、顔全体に施す美白処理の際に、肌のマスクの領域として特定した唇の領域を指定するように構成してもよい。   Further, in the above-described embodiment, the lip region may be specified first, and the lip region specified as the skin mask region may be specified during the whitening process performed on the entire face.

また、上述の実施形態では、本発明が適用される撮像装置1は、デジタルカメラを例として説明したが、特にこれに限定されない。
例えば、本発明は、美白処理機能を有する電子機器一般に適用することができる。具体的には、例えば、本発明は、ノート型のパーソナルコンピュータ、プリンタ、テレビジョン受像機、ビデオカメラ、携帯型ナビゲーション装置、携帯電話機、スマートフォン、ポータブルゲーム機等に適用可能である。
Further, in the above-described embodiment, the image pickup apparatus 1 to which the present invention is applied has been described by taking a digital camera as an example, but the present invention is not particularly limited to this.
For example, the present invention can be applied to general electronic devices having a whitening treatment function. Specifically, for example, the present invention is applicable to a notebook personal computer, a printer, a television receiver, a video camera, a portable navigation device, a mobile phone, a smartphone, a portable game machine, and the like.

上述した一連の処理は、ハードウェアにより実行させることもできるし、ソフトウェアにより実行させることもできる。
換言すると、図7の機能的構成は例示に過ぎず、特に限定されない。即ち、上述した一連の処理を全体として実行できる機能が撮像装置1に備えられていれば足り、この機能を実現するためにどのような機能ブロックを用いるのかは特に図7の例に限定されない。
また、1つの機能ブロックは、ハードウェア単体で構成してもよいし、ソフトウェア単体で構成してもよいし、それらの組み合わせで構成してもよい。
本実施形態における機能的構成は、演算処理を実行するプロセッサによって実現され、本実施形態に用いることが可能なプロセッサには、シングルプロセッサ、マルチプロセッサ及びマルチコアプロセッサ等の各種処理装置単体によって構成されるものの他、これら各種処理装置と、ASIC(Application Specific Integrated Circuit)やFPGA(Field‐Programmable Gate Array)等の処理回路とが組み合わせられたものを含む。
The series of processes described above can be executed by hardware or software.
In other words, the functional configuration of FIG. 7 is merely an example and is not particularly limited. That is, it is sufficient if the image pickup apparatus 1 has a function capable of executing the series of processes described above as a whole, and what kind of functional block is used to realize this function is not particularly limited to the example of FIG. 7.
Further, one functional block may be configured by hardware alone, software alone, or a combination thereof.
The functional configuration in the present embodiment is realized by a processor that executes arithmetic processing, and the processor that can be used in the present embodiment is configured by a single processing device such as a single processor, a multiprocessor, and a multicore processor. In addition to the above, these various processing devices are combined with a processing circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array).

一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムが、コンピュータ等にネットワークや記録媒体からインストールされる。
コンピュータは、専用のハードウェアに組み込まれているコンピュータであってもよい。また、コンピュータは、各種のプログラムをインストールすることで、各種の機能を実行することが可能なコンピュータ、例えば汎用のパーソナルコンピュータであってもよい。
When the series of processes is executed by software, the program forming the software is installed in a computer or the like from a network or a recording medium.
The computer may be a computer embedded in dedicated hardware. Further, the computer may be a computer capable of executing various functions by installing various programs, for example, a general-purpose personal computer.

このようなプログラムを含む記録媒体は、ユーザにプログラムを提供するために装置本体とは別に配布される図1のリムーバブルメディア31により構成されるだけでなく、装置本体に予め組み込まれた状態でユーザに提供される記録媒体等で構成される。リムーバブルメディア31は、例えば、磁気ディスク(フロッピディスクを含む)、光ディスク、又は光磁気ディスク等により構成される。光ディスクは、例えば、CD−ROM(Compact Disk−Read Only Memory),DVD(Digital Versatile Disk),Blu−ray(登録商標) Disc(ブルーレイディスク)等により構成される。光磁気ディスクは、MD(Mini−Disk)等により構成される。また、装置本体に予め組み込まれた状態でユーザに提供される記録媒体は、例えば、プログラムが記録されている図1のROM12や、図1の記憶部19に含まれるハードディスク等で構成される。   The recording medium containing such a program is not only configured by the removable medium 31 of FIG. 1 which is distributed separately from the apparatus main body to provide the program to the user, but is also installed in the apparatus main body in advance. It is composed of a recording medium provided to the. The removable medium 31 is composed of, for example, a magnetic disk (including a floppy disk), an optical disk, a magneto-optical disk, or the like. The optical disc includes, for example, a CD-ROM (Compact Disk-Read Only Memory), a DVD (Digital Versatile Disk), and a Blu-ray (registered trademark) Disc (Blu-ray disc). The magneto-optical disk is composed of MD (Mini-Disk) or the like. Further, the recording medium provided to the user in the state of being incorporated in the apparatus main body in advance is constituted by, for example, the ROM 12 in FIG. 1 in which the program is recorded, the hard disk included in the storage unit 19 in FIG. 1, or the like.

なお、本明細書において、記録媒体に記録されるプログラムを記述するステップは、その順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的或いは個別に実行される処理をも含むものである。   In the present specification, the steps of writing the program recorded on the recording medium are not limited to the processes performed in time series according to the order, but may be performed in parallel or individually even if they are not necessarily performed in time sequence. It also includes the processing to be executed.

以上、本発明のいくつかの実施形態について説明したが、これらの実施形態は、例示に過ぎず、本発明の技術的範囲を限定するものではない。本発明はその他の様々な実施形態を取ることが可能であり、さらに、本発明の要旨を逸脱しない範囲で、省略や置換等種々の変更を行うことができる。これら実施形態やその変形は、本明細書等に記載された発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   Although some embodiments of the present invention have been described above, these embodiments are merely examples and do not limit the technical scope of the present invention. The present invention can take various other embodiments, and various modifications such as omission and replacement can be made without departing from the gist of the present invention. These embodiments and modifications thereof are included in the scope and gist of the invention described in this specification and the like, and are also included in the invention described in the claims and the scope of equivalents thereof.

以下に、本願の出願当初の特許請求の範囲に記載された発明を付記する。
[付記1]
画像内に含まれる人物の顔領域に対して、肌の色を白くする美白処理を施す美白処理手段と、
前記美白処理が施される人物の顔領域内で、当該美白処理を軽減すべき部分を特定する軽減部分特定手段と、
前記特定された前記美白処理を軽減すべき部分に対して、当該美白処理を軽減する処理を施す軽減処理手段と、
を備えることを特徴とする画像処理装置。
[付記2]
前記美白処理は複数種類の処理からなり、
前記軽減部分特定手段は、複数種類の処理からなる美白処理が施される人物の顔領域内で、複数種類の処理のうちの一部の処理の効果を軽減し、他の処理の効果を維持すべき部分を特定する、
ことを特徴とする付記1に記載の画像処理装置。
[付記3]
HSV色空間の色情報に基づき、画像内の肌色部分を特定する肌色部分特定手段を、更に備え、
前記美白処理手段は、前記特定された肌色部分に対して美白処理を施し、
前記軽減部分特定手段は、前記特定された肌色部分に含まれる部分であって、色相値が肌の色と近似する肌以外の部分を、前記美白処理を軽減すべき部分であると特定する、
ことを特徴とする付記1又は2に記載の画像処理装置。
[付記4]
HSV色空間の色情報とは異なる基準に基づき、顔の部位を特定する部位特定手段を、更に備え、
前記部位特定手段は、前記特定された顔の部位であって、前記HSV色空間の色情報が肌の色と近似する肌以外の部分を、前記美白処理を軽減すべき部分であると特定する、
ことを特徴とする付記3に記載の画像処理装置。
[付記5]
前記特定された美白処理を軽減すべき部分の色の濃度をYUV色空間の色情報に基づき特定する濃度特定手段を、更に備え、
前記軽減処理手段は、前記特定された濃度に応じて前記美白処理を軽減する処理を施す、
ことを特徴とする付記3又は4に記載の画像処理装置。
[付記6]
前記部位特定手段は、更に、予め用意されている顔の部位の形の基準となる情報を使用して、前記美白処理を軽減すべき部分を特定する、
ことを特徴とする付記3乃至5の何れか1つに記載の画像処理装置。
[付記7]
前記軽減部分特定手段は、人物の顔の唇部分を、前記美白処理を軽減すべき部分として特定する、
ことを特徴とする付記1乃至6の何れか1つに記載の画像処理装置。
[付記8]
HSV色空間の色情報とは異なる基準に基づき、画像内に含まれる人物の顔の唇部分を特定する唇部分特定手段と、
前記特定された前記唇部分における前記HSV色空間の色情報に基づき、唇の色を特定する唇色特定手段と、
を備えることを特徴とする画像処理装置。
[付記9]
前記唇色特定手段は、前記HSV色空間において、前記特定された唇部分の色情報が所定の範囲で肌の色の色情報と近似する色を、唇の色として特定する、
ことを特徴とする付記8に記載の画像処理装置。
[付記10]
前記唇色特定手段は、前記HSV色空間において、前記特定された唇部分の色情報の分布に基づき、唇の色を特定する、
ことを特徴とする付記8又は9に記載の画像処理装置。
[付記11]
前記唇部分特定手段は、HSV色空間の色情報とは異なる基準に基づき、前記唇部分を特定する、
ことを特徴とする付記8乃至10の何れか1つに記載の画像処理装置。
[付記12]
前記特定された唇色に応じて、前記唇部分特定手段により特定された人物の顔の唇部分にYUV色空間の色情報による所定の画像処理を行う画像処理手段を、更に備える、
ことを特徴とする付記8乃至11の何れか1つに記載の画像処理装置。
[付記13]
画像内に含まれる人物の顔領域に対して、肌の色を白くする美白処理と、
前記美白処理が施される人物の顔領域内で、当該美白処理を軽減すべき部分を特定する軽減部分特定処理と、
前記特定された前記美白処理を軽減すべき部分に対して、当該美白処理を軽減する処理を施す軽減処理と、
を含むことを特徴とする画像処理方法。
[付記14]
HSV色空間の色情報とは異なる基準に基づき、画像内に含まれる人物の顔の唇部分を特定する唇部分特定処理と、
前記特定された前記唇部分におけるHSV色空間の色情報に基づき、唇の色を特定する唇色特定処理と、
を含むことを特徴とする画像処理方法。
[付記15]
コンピュータに、
画像内に含まれる人物の顔領域に対して、肌の色を白くする美白処理を施す美白処理手段、
前記美白処理が施される人物の顔領域内で、当該美白処理を軽減すべき部分を特定する軽減部分特定手段、
前記特定された前記美白処理を軽減すべき部分に対して、当該美白処理を軽減する処理を施す軽減処理手段と、
を実現させることを特徴とするプログラム。
[付記16]
コンピュータに、
HSV色空間の色情報とは異なる基準に基づき、画像内に含まれる人物の顔の唇部分を特定する唇部分特定手段、
前記特定された前記唇部分におけるHSV色空間の色情報に基づき、唇の色を特定する唇色特定手段、
を実現させることを特徴とするプログラム。
The inventions described in the claims at the time of filing the present application will be additionally described below.
[Appendix 1]
Whitening processing means for performing whitening processing for whitening the skin color for the face area of the person included in the image;
Within the face area of the person to which the whitening process is applied, a reduced portion specifying unit that specifies a portion where the whitening process should be reduced,
Reduction processing means for performing a process of reducing the whitening process on the identified part where the whitening process should be reduced,
An image processing apparatus comprising:
[Appendix 2]
The whitening treatment consists of multiple types of treatment,
The reduced portion specifying means reduces the effect of a part of the plurality of types of processing within the face area of the person to which the whitening processing including a plurality of types of processing is applied, and maintains the effects of other processing. Identify the part to be done,
The image processing device according to appendix 1, characterized in that.
[Appendix 3]
A flesh color part specifying unit for specifying a flesh color part in the image based on the color information of the HSV color space;
The whitening processing means performs whitening processing on the identified skin color portion,
The reduced portion identifying means identifies a portion included in the identified skin color portion, where the hue value is similar to the skin color, other than the skin, is a portion where the whitening process should be reduced,
The image processing device according to appendix 1 or 2, characterized in that.
[Appendix 4]
Further comprising part specifying means for specifying a face part based on a reference different from the color information of the HSV color space,
The part specifying unit specifies a part of the specified face that is other than the skin in which the color information of the HSV color space approximates the skin color, as the part in which the whitening process should be reduced. ,
The image processing device according to appendix 3, wherein.
[Appendix 5]
Further comprising density specifying means for specifying the density of the color of the specified portion to be subjected to the whitening treatment based on the color information of the YUV color space,
The reduction processing unit performs processing for reducing the whitening processing according to the specified density,
The image processing device according to supplementary note 3 or 4, characterized in that.
[Appendix 6]
The part specifying unit further specifies a part in which the whitening process should be reduced by using information that serves as a reference for the shape of a face part prepared in advance.
6. The image processing apparatus according to any one of appendices 3 to 5, characterized in that.
[Appendix 7]
The reduced portion specifying unit specifies a lip portion of a human face as a portion where the whitening process should be reduced,
7. The image processing device according to any one of appendices 1 to 6, characterized in that.
[Appendix 8]
A lip part specifying means for specifying a lip part of a person's face included in the image based on a standard different from the color information of the HSV color space;
Lip color specifying means for specifying a lip color based on the color information of the HSV color space in the specified lip portion,
An image processing apparatus comprising:
[Appendix 9]
The lip color identifying means identifies, in the HSV color space, a color in which the color information of the identified lip portion approximates to the color information of the skin color within a predetermined range, as the lip color.
The image processing device according to appendix 8, characterized in that.
[Appendix 10]
The lip color specifying means specifies a lip color based on the distribution of the color information of the specified lip portion in the HSV color space,
The image processing device according to appendix 8 or 9, characterized in that.
[Appendix 11]
The lip portion identifying means identifies the lip portion based on a criterion different from the color information of the HSV color space,
11. The image processing apparatus according to any one of appendices 8 to 10, characterized in that.
[Appendix 12]
Image processing means for performing a predetermined image processing on the lip portion of the person's face identified by the lip portion identifying means in accordance with the identified lip color, based on the color information in the YUV color space,
12. The image processing apparatus according to any one of appendices 8 to 11, characterized in that.
[Appendix 13]
Whitening processing that whitens the skin color for the face area of the person contained in the image,
Within the face area of the person to which the whitening process is applied, a reduced part specifying process for specifying a part where the whitening process should be reduced,
A reduction process for performing a process of reducing the whitening process on a portion where the identified whitening process should be reduced,
An image processing method comprising:
[Appendix 14]
A lip part specifying process for specifying a lip part of a person's face included in the image based on a criterion different from the color information of the HSV color space;
A lip color specifying process for specifying a lip color based on color information of the HSV color space in the specified lip portion;
An image processing method comprising:
[Appendix 15]
On the computer,
Whitening processing means for performing whitening processing for whitening the skin color for the face area of the person included in the image,
In the face area of the person to which the whitening process is applied, a reduced part specifying unit that specifies a part in which the whitening process should be reduced,
Reduction processing means for performing a process of reducing the whitening process on the identified part to reduce the whitening process,
A program characterized by realizing.
[Appendix 16]
On the computer,
A lip part specifying means for specifying the lip part of the person's face included in the image based on a criterion different from the color information of the HSV color space;
Lip color specifying means for specifying a lip color based on color information of the HSV color space in the specified lip portion,
A program characterized by realizing.

1・・・撮像装置,11・・・CPU,12・・・ROM,13・・・RAM,14・・・バス,15・・・入出力インターフェース,16・・・撮像部,17・・・入力部,18・・・出力部,19・・・記憶部,20・・・通信部,21・・・ドライブ,31・・・リムーバブルメディア,51・・・画像取得部,52・・・顔検出部,53・・・画像処理部,54・・・マスク画像作成処理部,55・・・色補正画像作成処理部,71・・・画像記憶部,72・・・固定マップ記憶部   1 ... Imaging device, 11 ... CPU, 12 ... ROM, 13 ... RAM, 14 ... Bus, 15 ... Input / output interface, 16 ... Imaging unit, 17 ... Input unit, 18 ... Output unit, 19 ... Storage unit, 20 ... Communication unit, 21 ... Drive, 31 ... Removable media, 51 ... Image acquisition unit, 52 ... Face Detection unit, 53 ... Image processing unit, 54 ... Mask image creation processing unit, 55 ... Color correction image creation processing unit, 71 ... Image storage unit, 72 ... Fixed map storage unit

上記目的を達成するため、本発明の一態様の画像処理装置は、
HSV色空間の色情報とは異なる基準に基づき、画像内に含まれる人物の顔の唇部分を特定する唇部分特定手段と、
前記特定された前記唇部分における前記HSV色空間の色情報に基づき、唇の色を特定する唇色特定手段と、
を備えることを特徴とする。
In order to achieve the above object, an image processing device according to one embodiment of the present invention is
A lip part specifying means for specifying a lip part of a person's face included in the image based on a standard different from the color information of the HSV color space;
Lip color specifying means for specifying a lip color based on the color information of the HSV color space in the specified lip portion,
It is characterized by including.

Claims (16)

画像内に含まれる人物の顔領域に対して、肌の色を白くする美白処理を施す美白処理手段と、
前記美白処理が施される人物の顔領域内で、当該美白処理を軽減すべき部分を特定する軽減部分特定手段と、
前記特定された前記美白処理を軽減すべき部分に対して、当該美白処理を軽減する処理を施す軽減処理手段と、
を備えることを特徴とする画像処理装置。
Whitening processing means for performing whitening processing for whitening the skin color for the face area of the person included in the image;
Within the face area of the person to which the whitening process is applied, a reduced portion specifying unit that specifies a portion where the whitening process should be reduced,
Reduction processing means for performing a process of reducing the whitening process on the identified part where the whitening process should be reduced,
An image processing apparatus comprising:
前記美白処理は複数種類の処理からなり、
前記軽減部分特定手段は、複数種類の処理からなる美白処理が施される人物の顔領域内で、複数種類の処理のうちの一部の処理の効果を軽減し、他の処理の効果を維持すべき部分を特定する、
ことを特徴とする請求項1に記載の画像処理装置。
The whitening treatment consists of multiple types of treatment,
The reduced portion specifying means reduces the effect of a part of the plurality of types of processing within the face area of the person to which the whitening processing including a plurality of types of processing is applied, and maintains the effects of other processing. Identify the part to be done,
The image processing apparatus according to claim 1, wherein:
HSV色空間の色情報に基づき、画像内の肌色部分を特定する肌色部分特定手段を、更に備え、
前記美白処理手段は、前記特定された肌色部分に対して美白処理を施し、
前記軽減部分特定手段は、前記特定された肌色部分に含まれる部分であって、色相値が肌の色と近似する肌以外の部分を、前記美白処理を軽減すべき部分であると特定する、
ことを特徴とする請求項1又は2に記載の画像処理装置。
A flesh color part specifying unit for specifying a flesh color part in the image based on the color information of the HSV color space;
The whitening processing means performs whitening processing on the identified skin color portion,
The reduced portion identifying means identifies a portion included in the identified skin color portion, where the hue value is similar to the skin color, other than the skin, is a portion where the whitening process should be reduced,
The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
HSV色空間の色情報とは異なる基準に基づき、顔の部位を特定する部位特定手段を、更に備え、
前記部位特定手段は、前記特定された顔の部位であって、前記HSV色空間の色情報が肌の色と近似する肌以外の部分を、前記美白処理を軽減すべき部分であると特定する、
ことを特徴とする請求項3に記載の画像処理装置。
Further comprising part specifying means for specifying a face part based on a reference different from the color information of the HSV color space,
The part specifying unit specifies a part of the specified face that is other than the skin in which the color information of the HSV color space approximates the skin color, as the part in which the whitening process should be reduced. ,
The image processing device according to claim 3, wherein
前記特定された美白処理を軽減すべき部分の色の濃度をYUV色空間の色情報に基づき特定する濃度特定手段を、更に備え、
前記軽減処理手段は、前記特定された濃度に応じて前記美白処理を軽減する処理を施す、
ことを特徴とする請求項3又は4に記載の画像処理装置。
Further comprising density specifying means for specifying the density of the color of the specified portion to be subjected to the whitening treatment based on the color information of the YUV color space,
The reduction processing unit performs processing for reducing the whitening processing according to the specified density,
The image processing device according to claim 3 or 4, wherein
前記部位特定手段は、更に、予め用意されている顔の部位の形の基準となる情報を使用して、前記美白処理を軽減すべき部分を特定する、
ことを特徴とする請求項3乃至5の何れか1項に記載の画像処理装置。
The part specifying unit further specifies a part in which the whitening process should be reduced by using information that serves as a reference for the shape of a face part prepared in advance.
The image processing apparatus according to any one of claims 3 to 5, characterized in that.
前記軽減部分特定手段は、人物の顔の唇部分を、前記美白処理を軽減すべき部分として特定する、
ことを特徴とする請求項1乃至6の何れか1項に記載の画像処理装置。
The reduced portion specifying unit specifies a lip portion of a human face as a portion where the whitening process should be reduced,
The image processing apparatus according to any one of claims 1 to 6, wherein
HSV色空間の色情報とは異なる基準に基づき、画像内に含まれる人物の顔の唇部分を特定する唇部分特定手段と、
前記特定された前記唇部分における前記HSV色空間の色情報に基づき、唇の色を特定する唇色特定手段と、
を備えることを特徴とする画像処理装置。
A lip part specifying means for specifying a lip part of a person's face included in the image based on a standard different from the color information of the HSV color space;
Lip color specifying means for specifying a lip color based on the color information of the HSV color space in the specified lip portion,
An image processing apparatus comprising:
前記唇色特定手段は、前記HSV色空間において、前記特定された唇部分の色情報が所定の範囲で肌の色の色情報と近似する色を、唇の色として特定する、
ことを特徴とする請求項8に記載の画像処理装置。
The lip color identifying means identifies, in the HSV color space, a color in which the color information of the identified lip portion approximates to the color information of the skin color within a predetermined range, as the lip color.
The image processing device according to claim 8, wherein
前記唇色特定手段は、前記HSV色空間において、前記特定された唇部分の色情報の分布に基づき、唇の色を特定する、
ことを特徴とする請求項8又は9に記載の画像処理装置。
The lip color specifying means specifies a lip color based on the distribution of the color information of the specified lip portion in the HSV color space,
The image processing apparatus according to claim 8 or 9, characterized in that.
前記唇部分特定手段は、HSV色空間の色情報とは異なる基準に基づき、前記唇部分を特定する、
ことを特徴とする請求項8乃至10の何れか1項に記載の画像処理装置。
The lip portion identifying means identifies the lip portion based on a criterion different from the color information of the HSV color space,
The image processing apparatus according to claim 8, wherein the image processing apparatus is an image processing apparatus.
前記特定された唇色に応じて、前記唇部分特定手段により特定された人物の顔の唇部分にYUV色空間の色情報による所定の画像処理を行う画像処理手段を、更に備える、
ことを特徴とする請求項8乃至11の何れか1項に記載の画像処理装置。
Image processing means for performing a predetermined image processing on the lip portion of the person's face identified by the lip portion identifying means in accordance with the identified lip color, based on the color information in the YUV color space,
The image processing apparatus according to any one of claims 8 to 11, characterized in that.
画像内に含まれる人物の顔領域に対して、肌の色を白くする美白処理と、
前記美白処理が施される人物の顔領域内で、当該美白処理を軽減すべき部分を特定する軽減部分特定処理と、
前記特定された前記美白処理を軽減すべき部分に対して、当該美白処理を軽減する処理を施す軽減処理と、
を含むことを特徴とする画像処理方法。
Whitening processing that whitens the skin color for the face area of the person contained in the image,
Within the face area of the person to which the whitening process is applied, a reduced part specifying process for specifying a part where the whitening process should be reduced,
A reduction process for performing a process of reducing the whitening process on a portion where the identified whitening process should be reduced,
An image processing method comprising:
HSV色空間の色情報とは異なる基準に基づき、画像内に含まれる人物の顔の唇部分を特定する唇部分特定処理と、
前記特定された前記唇部分におけるHSV色空間の色情報に基づき、唇の色を特定する唇色特定処理と、
を含むことを特徴とする画像処理方法。
A lip part specifying process for specifying a lip part of a person's face included in the image based on a criterion different from the color information of the HSV color space;
A lip color specifying process for specifying a lip color based on color information of the HSV color space in the specified lip portion;
An image processing method comprising:
コンピュータに、
画像内に含まれる人物の顔領域に対して、肌の色を白くする美白処理を施す美白処理手段、
前記美白処理が施される人物の顔領域内で、当該美白処理を軽減すべき部分を特定する軽減部分特定手段、
前記特定された前記美白処理を軽減すべき部分に対して、当該美白処理を軽減する処理を施す軽減処理手段と、
を実現させることを特徴とするプログラム。
On the computer,
Whitening processing means for performing whitening processing for whitening the skin color for the face area of the person included in the image,
In the face area of the person to which the whitening process is applied, a reduced part specifying unit that specifies a part in which the whitening process should be reduced,
Reduction processing means for performing a process of reducing the whitening process on the identified part where the whitening process should be reduced,
A program characterized by realizing.
コンピュータに、
HSV色空間の色情報とは異なる基準に基づき、画像内に含まれる人物の顔の唇部分を特定する唇部分特定手段、
前記特定された前記唇部分におけるHSV色空間の色情報に基づき、唇の色を特定する唇色特定手段、
を実現させることを特徴とするプログラム。
On the computer,
A lip part specifying means for specifying the lip part of the face of the person included in the image based on a standard different from the color information of the HSV color space;
Lip color specifying means for specifying the color of the lip based on the color information of the HSV color space in the specified lip portion,
A program characterized by realizing.
JP2019228751A 2019-12-19 2019-12-19 Image processing equipment, image processing methods and programs Active JP7015009B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019228751A JP7015009B2 (en) 2019-12-19 2019-12-19 Image processing equipment, image processing methods and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019228751A JP7015009B2 (en) 2019-12-19 2019-12-19 Image processing equipment, image processing methods and programs

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2017007758A Division JP6720882B2 (en) 2017-01-19 2017-01-19 Image processing apparatus, image processing method and program

Publications (2)

Publication Number Publication Date
JP2020074100A true JP2020074100A (en) 2020-05-14
JP7015009B2 JP7015009B2 (en) 2022-02-02

Family

ID=70610179

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019228751A Active JP7015009B2 (en) 2019-12-19 2019-12-19 Image processing equipment, image processing methods and programs

Country Status (1)

Country Link
JP (1) JP7015009B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000011145A (en) * 1998-06-18 2000-01-14 Shiseido Co Ltd Lipstick color converting system
KR20050019599A (en) * 2003-08-20 2005-03-03 한국과학기술원 lip region segmentation and feature extraction method for Speech Recognition
JP2009231877A (en) * 2008-03-19 2009-10-08 Seiko Epson Corp Image processing unit, image processing method, image processing program, and printer
CN101916566A (en) * 2010-07-09 2010-12-15 西安交通大学 Electronic larynx speech reconstructing method and system thereof
JP2012190287A (en) * 2011-03-10 2012-10-04 Omron Corp Image processing device, image processing method, and control program
WO2014167831A1 (en) * 2013-04-08 2014-10-16 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Image processing device, image processing method, and program, capable of virtual reproduction of makeup application state
JP2016170628A (en) * 2015-03-12 2016-09-23 オムロン株式会社 Image processor and image processing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000011145A (en) * 1998-06-18 2000-01-14 Shiseido Co Ltd Lipstick color converting system
KR20050019599A (en) * 2003-08-20 2005-03-03 한국과학기술원 lip region segmentation and feature extraction method for Speech Recognition
JP2009231877A (en) * 2008-03-19 2009-10-08 Seiko Epson Corp Image processing unit, image processing method, image processing program, and printer
CN101916566A (en) * 2010-07-09 2010-12-15 西安交通大学 Electronic larynx speech reconstructing method and system thereof
JP2012190287A (en) * 2011-03-10 2012-10-04 Omron Corp Image processing device, image processing method, and control program
WO2014167831A1 (en) * 2013-04-08 2014-10-16 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Image processing device, image processing method, and program, capable of virtual reproduction of makeup application state
JP2016170628A (en) * 2015-03-12 2016-09-23 オムロン株式会社 Image processor and image processing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
青木博松, 外2名: ""色分布を用いた唇領域抽出に基づく美顔補正技術"", 第17回 画像センシングシンポジウム 講演論文集, JPN6021009685, 8 June 2011 (2011-06-08), JP, pages 1 - 16, ISSN: 0004467637 *

Also Published As

Publication number Publication date
JP7015009B2 (en) 2022-02-02

Similar Documents

Publication Publication Date Title
JP7087331B2 (en) Image processing equipment, image processing methods and programs
JP6720882B2 (en) Image processing apparatus, image processing method and program
JP6421794B2 (en) Image processing apparatus, image processing method, and program
US8472713B2 (en) Image processor, image processing method, and computer-readable medium
JP6720881B2 (en) Image processing apparatus and image processing method
JP6677221B2 (en) Image processing apparatus, image processing method, and program
JP2017102642A (en) Image processor, image processing method and program
US10861140B2 (en) Image processing apparatus, image processing method, and recording medium
JP2019070872A (en) Image processing device, image processing method, and program
JP6677222B2 (en) Detection device, image processing device, detection method, and image processing method
JP2000242775A (en) Method and device for processing image, and recording medium
JP6033006B2 (en) Image processing apparatus, control method thereof, control program, and imaging apparatus
JP7015009B2 (en) Image processing equipment, image processing methods and programs
JP7318251B2 (en) Image processing device, image processing method and program
JP6795062B2 (en) Detection device, detection method and program
JP6908013B2 (en) Image processing equipment, image processing methods and programs
JP7375313B2 (en) Image processing device, image processing method, and image processing program
JP2018032442A (en) Image processor, image processing method and program
JP7400196B2 (en) Electronic devices, image processing methods, and image processing programs
JP2010199866A (en) Image processing device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200110

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200110

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210302

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210323

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210520

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210706

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210827

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211102

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211202

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20211222

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220104