JP2010141399A - Imaging device, image processing method in the imaging device and image processing program - Google Patents

Imaging device, image processing method in the imaging device and image processing program Download PDF

Info

Publication number
JP2010141399A
JP2010141399A JP2008313212A JP2008313212A JP2010141399A JP 2010141399 A JP2010141399 A JP 2010141399A JP 2008313212 A JP2008313212 A JP 2008313212A JP 2008313212 A JP2008313212 A JP 2008313212A JP 2010141399 A JP2010141399 A JP 2010141399A
Authority
JP
Japan
Prior art keywords
image data
image
processing
small image
correction
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
JP2008313212A
Other languages
Japanese (ja)
Inventor
Shogo Shimamura
正吾 嶋村
Satoshi Miyazaki
敏 宮崎
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.)
Olympus Imaging Corp
Original Assignee
Olympus Imaging Corp
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 Olympus Imaging Corp filed Critical Olympus Imaging Corp
Priority to JP2008313212A priority Critical patent/JP2010141399A/en
Publication of JP2010141399A publication Critical patent/JP2010141399A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To display an image after correction processing without making a user be bored until the completion of correction processing for a face in image data after image pickup. <P>SOLUTION: An organ detecting section 20 detects a face in a picked-up image. A corrected main image processing section 1811 executes predetermined correction processing for a face region in the picked-up image based on a result of face detection by the organ detecting section 20. An effect image processing section 1833 applies reduction processing to the picked-up image to generate a small image before processing, executes correction processing for the face region in the small image before processing based on a result of face detection by the organ detecting section 20 to generate a processed small image. An effect processing section 211 executes effect processing using the processed small image in parallel to the corrected main image processing executed by the corrected main image processing section 1811. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、撮像装置、この撮像装置における画像処理方法および画像処理プログラムに関するものである。   The present invention relates to an imaging apparatus, an image processing method and an image processing program in the imaging apparatus.

従来から、画像中に映る人物等の顔を検出する顔検出技術が知られている。例えばデジタルカメラ等の撮像装置では、この顔検出技術を用いて被写体の顔を検出し、顔検出の結果を露出やフォーカス等の制御に利用している。   Conventionally, a face detection technique for detecting a face of a person or the like shown in an image is known. For example, in an imaging apparatus such as a digital camera, the face of the subject is detected using this face detection technology, and the result of face detection is used for controlling exposure, focus, and the like.

一方で、顔検出技術を用い、顔検出の結果をもとに被写体の顔に各種の補正処理を施す画像処理技術が種々提案されている。例えば特許文献1には、目の画像を予め登録しておき、この目の画像を用いて撮影画像中の目の領域を補正(修正)する画像処理方法が開示されている。   On the other hand, various image processing techniques for applying various correction processes to the face of a subject based on the result of face detection using a face detection technique have been proposed. For example, Patent Document 1 discloses an image processing method in which an eye image is registered in advance, and an eye region in a captured image is corrected (corrected) using the eye image.

特開2007−157176号公報JP 2007-157176 A

ところで、上記のような画像処理技術を撮像装置に適用し、人物を被写体として撮影を行った際に画像中の顔に対して補正処理を行えば、人物の表情を明るくみせたり、美しく見せるといったことが可能となる。しかしながら、これらの補正処理にはある程度の時間がかかるため、ユーザは、撮影の後、補正処理を終えるまでの間待機しなければならず、退屈であった。また、補正処理後のイメージ(仕上がり)を事前に確認することができなかった。   By applying the image processing technology as described above to an imaging device and correcting a face in an image when shooting a person as a subject, the facial expression of the person can be made brighter or beautiful. It becomes possible. However, since these correction processes take a certain amount of time, the user has to wait until the correction process is completed after shooting, which is tedious. In addition, the image (finished) after the correction process could not be confirmed in advance.

本発明は、上記に鑑みてなされたものであって、撮影の後、画像データ中の顔に対する補正処理を終えるまでの間、ユーザを退屈させることなく補正処理後のイメージを提示することができる撮像装置、撮像装置における画像処理方法および画像処理プログラムを提供することを目的とする。   The present invention has been made in view of the above, and can present an image after correction processing without boring the user until the correction processing for the face in the image data is completed after shooting. An object is to provide an imaging device, an image processing method in the imaging device, and an image processing program.

上述した課題を解決し、目的を達成するため、本発明にかかる撮像装置は、被写体像を光電変換して画像データを生成する撮像部と、前記撮像部によって生成された画像データを縮小処理した小画像データを生成する小画像生成部と、前記画像データ中および/または前記小画像生成部によって生成された小画像データ中の顔を検出する顔検出部と、前記顔検出部による顔検出結果をもとに、前記画像データ中の顔の領域に対して所定の補正処理を行った補正付き画像データを生成する補正付き本画像処理部と、前記顔検出部による顔検出結果をもとに、前記小画像データ中の顔の領域に対して前記補正処理を行った処理小画像データを生成する小画像処理部と、前記補正付き本画像処理部による処理と並行して、前記処理小画像データを用いた演出処理を行う演出処理部と、を備えることを特徴とする。   In order to solve the above-described problems and achieve the object, an imaging apparatus according to the present invention reduces an image data generated by an imaging unit that photoelectrically converts a subject image and image data generated by the imaging unit. A small image generation unit that generates small image data, a face detection unit that detects a face in the image data and / or small image data generated by the small image generation unit, and a face detection result by the face detection unit Based on the results of face detection by the main image processing unit with correction for generating corrected image data obtained by performing predetermined correction processing on a face area in the image data, and the face detection unit In addition to the processing by the small image processing unit that generates the processed small image data obtained by performing the correction processing on the face area in the small image data, and the processing by the main image processing unit with correction, the processing small image Use data A presentation processing unit which performs effect processing was, characterized in that it comprises a.

また、本発明にかかる撮像装置は、上記の発明において、前記小画像処理部は、前記小画像データ中の顔の領域に対し、前記補正処理を段階的に行って複数の段階処理小画像データを生成し、前記演出処理部は、前記演出処理として、前記複数の段階処理小画像データを動画表示する処理を行うことを特徴とする。   In the imaging device according to the present invention, in the above invention, the small image processing unit performs a plurality of step-processed small image data by performing the correction process stepwise on a face area in the small image data. And the effect processing unit performs a process of displaying the plurality of step-processed small image data as a moving image as the effect process.

また、本発明にかかる撮像装置は、上記の発明において、前記補正付き本画像処理部は、前記画像データ中の顔の領域に対して複数種類の補正処理を行い、前記小画像処理部は、前記小画像データ中の顔の領域に対して前記複数種類の補正処理を順次行い、前記複数の段階処理小画像データを生成することを特徴とする。   Further, in the imaging apparatus according to the present invention, in the above invention, the main image processing unit with correction performs a plurality of types of correction processing on a face area in the image data, and the small image processing unit includes: The plurality of types of correction processing are sequentially performed on a face area in the small image data to generate the plurality of step-processed small image data.

また、本発明にかかる撮像装置は、上記の発明において、前記演出処理部は、前記演出処理として、前記複数の段階処理小画像データのうちの少なくともいずれかの段階処理小画像データ間に所定の背景画像データを挿入して動画表示する処理を行うことを特徴とする。   Moreover, in the imaging device according to the present invention, in the above invention, the effect processing unit is configured to perform, as the effect processing, a predetermined interval between at least one of the plurality of step-processed small image data. The present invention is characterized in that processing for displaying a moving image by inserting background image data is performed.

また、本発明にかかる撮像装置は、上記の発明において、前記小画像処理部は、前記処理小画像データの大きさを変更する処理、前記処理小画像データの一部分を切り出す処理、前記処理小画像データを異なる回転量で回転させる処理および前記処理小画像データの外形形状を変更する処理の少なくともいずれかの処理を行って前記処理小画像データの形態を変更し、前記演出処理部は、前記演出処理として、前記形態が変更された前記処理小画像データを表示する処理を行うことを特徴とする。   In the imaging device according to the present invention, in the above invention, the small image processing unit includes a process of changing a size of the processed small image data, a process of cutting out a part of the processed small image data, and the processed small image. The effect processing unit changes the form of the processed small image data by performing at least one of a process of rotating data with a different rotation amount and a process of changing the outer shape of the processed small image data. As a process, a process for displaying the processed small image data whose form has been changed is performed.

また、本発明にかかる撮像装置は、上記の発明において、前記小画像処理部は、前記処理小画像データ中の顔の領域の近傍位置に所定のテンプレートを合成し、前記演出処理部は、前記演出処理として、前記所定のテンプレートが合成された前記小画像データを表示する処理を行うことを特徴とする。   In the imaging device according to the present invention, in the above invention, the small image processing unit synthesizes a predetermined template at a position near a face area in the processed small image data, and the effect processing unit As the effect process, a process of displaying the small image data synthesized with the predetermined template is performed.

また、本発明にかかる撮像装置は、上記の発明において、前記補正付き画像データと前記処理小画像データとを対応付けて記録する記録部を備えることを特徴とする。   Moreover, the imaging apparatus according to the present invention is characterized in that, in the above-described invention, the image capturing apparatus includes a recording unit that records the corrected image data and the processed small image data in association with each other.

また、本発明にかかる撮像装置は、上記の発明において、前記顔検出部は、前記小画像データ中の顔を検出し、前記補正付き本画像処理部は、前記顔検出部が前記小画像データについて行った顔検出結果をもとに前記画像データ中の対応する位置を顔の領域として特定し、特定した顔の領域に対して前記補正処理を行うことを特徴とする。   In the imaging device according to the present invention, in the above invention, the face detection unit detects a face in the small image data, and the main image processing unit with correction includes the face detection unit in the small image data. A corresponding position in the image data is specified as a face area based on the face detection result performed on the image data, and the correction process is performed on the specified face area.

また、本発明にかかる撮像装置における画像処理方法は、被写体像を光電変換して画像データを生成する撮像部を備えた撮像装置における画像処理方法であって、前記撮像部によって生成された画像データを縮小処理した小画像データを生成する小画像生成工程と、前記画像データ中および/または前記小画像生成工程で生成された小画像データ中の顔を検出する顔検出工程と、前記顔検出工程での顔検出結果をもとに、前記画像データ中の顔の領域に対して所定の補正処理を行った補正付き画像データを生成する補正付き本画像処理工程と、前記顔検出工程での顔検出結果をもとに、前記小画像データ中の顔の領域に対して前記補正処理を行った処理小画像データを生成する小画像処理工程と、前記補正付き本画像処理工程の処理と並行して、前記処理小画像データを用いた演出処理を行う演出処理工程と、を含むことを特徴とする。   An image processing method in the imaging apparatus according to the present invention is an image processing method in an imaging apparatus including an imaging unit that photoelectrically converts a subject image to generate image data, and the image data generated by the imaging unit Image generating step for generating small image data obtained by reducing the image, a face detecting step for detecting a face in the image data and / or the small image data generated in the small image generating step, and the face detecting step The corrected image processing step for generating corrected image data obtained by performing a predetermined correction process on the face area in the image data based on the face detection result in the step, and the face in the face detection step In parallel with the processing of the small image processing step of generating the processed small image data obtained by performing the correction processing on the face area in the small image data based on the detection result, and the main image processing step with correction. , Characterized in that it comprises a and a presentation processing step of performing an effect process using the processing small image data.

また、本発明にかかる画像処理プログラムは、被写体像を光電変換して画像データを生成する撮像部を備えた撮像装置のコンピュータに、前記撮像部によって生成された画像データを縮小処理した小画像データを生成する小画像生成ステップと、前記画像データ中および/または前記小画像生成ステップで生成された小画像データ中の顔を検出する顔検出ステップと、前記顔検出ステップでの顔検出結果をもとに、前記画像データ中の顔の領域に対して所定の補正処理を行った補正付き画像データを生成する補正付き本画像処理ステップと、前記顔検出ステップでの顔検出結果をもとに、前記小画像データ中の顔の領域に対して前記補正処理を行った処理小画像データを生成する小画像処理ステップと、前記補正付き本画像処理ステップの処理と並行して、前記処理小画像データを用いた演出処理を行う演出処理ステップと、を実行させることを特徴とする。   Further, the image processing program according to the present invention is a small image data obtained by reducing the image data generated by the imaging unit in a computer of an imaging apparatus including an imaging unit that photoelectrically converts a subject image to generate image data. A small image generation step for generating a face, a face detection step for detecting a face in the image data and / or the small image data generated in the small image generation step, and a face detection result in the face detection step And a main image processing step with correction for generating image data with correction obtained by performing a predetermined correction process on a face area in the image data, and a face detection result in the face detection step, A small image processing step for generating processed small image data obtained by performing the correction processing on the face area in the small image data, and a processing of the corrected main image processing step. In parallel with, characterized in that to execute the effect processing step of performing an effect process using the processing small image data.

本発明によれば、撮像部によって生成された画像データを縮小処理して小画像データを生成するとともに、この小画像データ中の顔の領域に対して補正処理を行って処理小画像データを生成することができる。そして、撮像部によって生成された画像データに対して補正処理を行って補正付き画像データを生成する処理と並行して、処理小画像データを用いた演出処理を行うことができる。したがって、撮影の後、撮影した画像中の顔に対する補正処理を終えるまでの間、ユーザを退屈させることなく補正処理後のイメージを提示することができる。   According to the present invention, the image data generated by the imaging unit is reduced to generate small image data, and correction processing is performed on the face area in the small image data to generate processed small image data. can do. In parallel with the process of performing the correction process on the image data generated by the imaging unit and generating the corrected image data, the effect process using the processed small image data can be performed. Therefore, the image after the correction processing can be presented without boring the user until the correction processing for the face in the captured image is completed after the shooting.

以下、図面を参照し、本発明の好適な実施の形態について詳細に説明する。本実施の形態では、本発明の撮像装置をデジタルカメラに適用した場合を例にとって説明する。なお、この実施の形態によって本発明が限定されるものではない。また、各図面の記載において、同一部分には同一の符号を付して示している。   DESCRIPTION OF EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. In this embodiment, a case where the imaging apparatus of the present invention is applied to a digital camera will be described as an example. Note that the present invention is not limited to the embodiments. Moreover, in description of each drawing, the same code | symbol is attached | subjected and shown to the same part.

(実施の形態)
図1は、デジタルカメラ1の背面図である。図1に示すように、デジタルカメラ1は、カメラ本体2の上面に配設された撮影タイミングを指示するためのレリーズスイッチ(シャッタースイッチ)3、カメラ本体2の背面に配設されたパワースイッチ4やメニュースイッチ5、上下左右の各方向スイッチ(上スイッチ、下スイッチ、左スイッチおよび右スイッチ)を有する十字キー6、操作内容を確定する等のためのOKスイッチ7、撮影モードと再生モードとを切り換えるための再生スイッチ8、各種画面を表示する表示部23等を備えている。パワースイッチ4は、デジタルカメラ1の電源投入/電源遮断を切り換えて入力するためのものであり、例えばスライドスイッチを用いて実現される。レリーズスイッチ3は、例えば二段階式の押下ボタンであり、半押しされるとファーストレリーズスイッチがONし、全押しされるとセカンドレリーズスイッチがONするようになっている。また、図示しないが、カメラ本体2の前面には、フラッシュや撮像レンズ等が配設されている。
(Embodiment)
FIG. 1 is a rear view of the digital camera 1. As shown in FIG. 1, the digital camera 1 includes a release switch (shutter switch) 3 for instructing photographing timing provided on the upper surface of the camera body 2, and a power switch 4 provided on the back surface of the camera body 2. And a menu switch 5, a cross key 6 having up / down / left / right direction switches (upper switch, lower switch, left switch and right switch), an OK switch 7 for confirming operation contents, a shooting mode and a playback mode. A playback switch 8 for switching, a display unit 23 for displaying various screens, and the like are provided. The power switch 4 is used for switching and inputting power on / off of the digital camera 1 and is realized by using, for example, a slide switch. The release switch 3 is, for example, a two-stage press button. When the release switch 3 is half-pressed, the first release switch is turned ON, and when the release switch 3 is fully pressed, the second release switch is turned ON. Although not shown, a flash, an imaging lens, and the like are disposed on the front surface of the camera body 2.

このデジタルカメラ1においてパワースイッチ4をスライドさせて電源投入を指示すると、デジタルカメラ1は撮影可能な状態(撮影モード)となる。撮影モードでは、撮像レンズを通して入射する被写体像が1フレーム(例えば1/30秒)毎に出力され、ライブビュー画像として表示部23にリアルタイムに表示されるようになっており、ユーザは、ライブビュー画像を見ながらレリーズスイッチ3を押下して静止画や動画の撮影を行う。一方、電源投入時、再生スイッチ8の押下操作に応じて撮影モードと再生モードとが切り換わるようになっている。この再生モードでは、ユーザは、デジタルカメラ1で撮影された静止画や動画を表示部23に表示(再生)して楽しむ。   When the power switch 4 is slid in the digital camera 1 to give an instruction to turn on the power, the digital camera 1 enters a state where it can shoot (shooting mode). In the shooting mode, a subject image incident through the imaging lens is output every frame (for example, 1/30 second) and displayed in real time on the display unit 23 as a live view image. While viewing the image, the release switch 3 is pressed to shoot a still image or a moving image. On the other hand, when the power is turned on, the shooting mode and the playback mode are switched according to the pressing operation of the playback switch 8. In this playback mode, the user enjoys displaying (playing back) still images and moving images captured by the digital camera 1 on the display unit 23.

図2は、このデジタルカメラ1のシステム構成を示すブロック図である。図2に示すように、デジタルカメラ1は、撮像素子11と、レンズ系ユニット12と、レンズ駆動回路13と、撮像回路14と、SDRAM(Synchronous Dynamic Random Access Memory)15と、AE部16と、AF部17と、画像処理部18と、顔検出部としての器官検出部20と、CPU21と、内蔵メモリ22と、表示部23と、表示駆動回路24と、通信I/F25と、操作部26と、着脱メモリ27と、電源回路28と、電池29とを備える。そして、撮像回路14、SDRAM15、AE部16、AF部17、画像処理部18、器官検出部20、CPU21、表示駆動回路24および着脱メモリ27がバス30を介して接続されて構成されている。また、撮像素子11やレンズ系ユニット12、レンズ駆動回路13、撮像回路14は、被写体像を光電変換して撮影画像の画像データを生成する撮像部10を構成する。   FIG. 2 is a block diagram showing a system configuration of the digital camera 1. As shown in FIG. 2, the digital camera 1 includes an imaging device 11, a lens system unit 12, a lens driving circuit 13, an imaging circuit 14, an SDRAM (Synchronous Dynamic Random Access Memory) 15, an AE unit 16, AF unit 17, image processing unit 18, organ detection unit 20 as a face detection unit, CPU 21, built-in memory 22, display unit 23, display drive circuit 24, communication I / F 25, and operation unit 26 A detachable memory 27, a power supply circuit 28, and a battery 29. The imaging circuit 14, SDRAM 15, AE unit 16, AF unit 17, image processing unit 18, organ detection unit 20, CPU 21, display drive circuit 24, and removable memory 27 are connected via a bus 30. Further, the image sensor 11, the lens system unit 12, the lens driving circuit 13, and the imaging circuit 14 constitute an imaging unit 10 that photoelectrically converts a subject image to generate image data of a captured image.

撮像素子11は、例えばCCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)等のイメージセンサであって、レンズ系ユニット12を通して入射する被写体像をフレーム単位で光電変換し、アナログ電気信号を出力する。レンズ系ユニット12は、AF(Auto-Focus)用レンズやズーム用レンズ等を含む撮像レンズ、絞り、シャッター等を含み、レンズ駆動回路13は、レンズ系ユニット12を駆動する。   The image pickup device 11 is an image sensor such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor), and photoelectrically converts a subject image incident through the lens system unit 12 in units of frames and outputs an analog electric signal. To do. The lens system unit 12 includes an imaging lens including an AF (Auto-Focus) lens, a zoom lens, and the like, a diaphragm, a shutter, and the like. The lens driving circuit 13 drives the lens system unit 12.

撮像回路14は、撮像素子11から出力されたアナログ電気信号に対してCDS(Correlated Double Sampling)やAGC(Automatic Gain Control)等のアナログ信号処理を行った後、デジタル電気信号に変換するとともに、このデジタル電気信号に対して画素補間処理や色補正処理等のデジタル信号処理を行い、画像データとして出力する。この画像データは、SDRAM15に一時的に記録される。   The imaging circuit 14 performs analog signal processing such as CDS (Correlated Double Sampling) and AGC (Automatic Gain Control) on the analog electrical signal output from the imaging device 11 and converts the analog electrical signal into a digital electrical signal. Digital signal processing such as pixel interpolation processing and color correction processing is performed on the digital electrical signal and output as image data. This image data is temporarily recorded in the SDRAM 15.

SDRAM15は、撮像回路14から出力される画像データや、画像処理部18による処理中の画像データ等の一時記録用に使用される。例えば、1フレーム毎に撮像回路14から出力される画像(ライブビュー画像)の画像データや、撮影タイミングで撮像回路14から出力される画像の画像データ(以下、適宜「撮影画像」という。)等が一時的に記録される。デジタルカメラ1のモードの一つである撮影モード等では、撮像素子11に結像されている被写体像が動画的にリアルタイムに表示部23に表示されるようになっており、ライブビュー画像とは、この画像のことをいう。   The SDRAM 15 is used for temporary recording of image data output from the imaging circuit 14 and image data being processed by the image processing unit 18. For example, image data of an image (live view image) output from the imaging circuit 14 for each frame, image data of an image output from the imaging circuit 14 at the shooting timing (hereinafter referred to as “captured image” as appropriate), and the like. Is temporarily recorded. In the shooting mode, which is one of the modes of the digital camera 1, the subject image formed on the image sensor 11 is displayed on the display unit 23 in a moving image in real time. What is a live view image? This is the image.

AE部16は、撮像回路14から出力された画像データをもとに、自動露出を行う。AF部17は、撮像回路14から出力された画像データをもとに、自動焦点調節を行う。   The AE unit 16 performs automatic exposure based on the image data output from the imaging circuit 14. The AF unit 17 performs automatic focus adjustment based on the image data output from the imaging circuit 14.

画像処理部18は、撮像回路14から出力された画像データに対して各種の画像処理を施すとともに、記録用や表示用等に適した画像データに変換する処理を行う。例えば、撮影画像の画像データを記録する際、あるいは記録されている画像データを表示する際等に、JPEG(Joint Photographic Experts Group)方式等に基づく画像データの圧縮処理や伸張処理を行う。また、画素数を増減させて画像データを拡縮させるリサイズ処理、画像データから一部分を切り出すトリミング処理、各画素の輝度成分や色成分を調整する明るさ調整処理や色調整処理、透明処理等、画像データに対する各種の画像処理を必要に応じて行う。例えば、画像処理部18は、小画像生成部として、生成した撮影画像を縮小して小画像(サムネイル)の画像データ(小画像データ)を生成する。   The image processing unit 18 performs various types of image processing on the image data output from the imaging circuit 14 and performs processing for converting the image data into image data suitable for recording and display. For example, when recording image data of a photographed image or displaying recorded image data, image data compression processing or decompression processing based on a JPEG (Joint Photographic Experts Group) method or the like is performed. In addition, resizing processing to increase / decrease image data by increasing / decreasing the number of pixels, trimming processing to cut out a part from the image data, brightness adjustment processing to adjust the luminance component and color component of each pixel, color adjustment processing, transparency processing, etc. Perform various image processing on data as needed. For example, as a small image generation unit, the image processing unit 18 reduces the generated captured image to generate small image (thumbnail) image data (small image data).

この画像処理部18は、補正付き本画像処理部181と、小画像処理部としての演出用画像処理部183とを含む。補正付き本画像処理部181は、撮影モードに関する設定として撮影画像中の顔を補正する補正モードが選択されている場合であって、器官検出部20によって撮影画像中の顔が検出された場合に、撮影画像に対し、顔領域を加工する補正処理を含む画像処理(補正付き本画像処理)を行う。演出用画像処理部183は、補正付き本画像処理部181が補正付き本画像処理を終えるまでの間に表示部23に表示させる演出用小画像を生成する。   The image processing unit 18 includes a main image processing unit 181 with correction and an effect image processing unit 183 as a small image processing unit. The main image processing unit 181 with correction is performed when the correction mode for correcting the face in the captured image is selected as the setting relating to the imaging mode, and when the organ detection unit 20 detects the face in the captured image. Then, image processing including correction processing for processing the face area (main image processing with correction) is performed on the captured image. The effect image processing unit 183 generates a small effect image to be displayed on the display unit 23 until the corrected main image processing unit 181 finishes the corrected main image processing.

器官検出部20は、例えば、小画像の画像データをもとに、周知技術であるパターンマッチングを適用してこの画像データ中の顔の領域(顔領域)を検出し、この顔領域の検出結果をもとに左右の目や鼻、唇等の各顔パーツを検出する。検出された人物画像中の顔領域の位置座標、各パーツの位置座標等のデータは、SDRAM15に記録される。   The organ detection unit 20 detects, for example, a face area (face area) in the image data by applying pattern matching which is a well-known technique based on the image data of the small image, and the detection result of the face area Based on the above, it detects each face part such as left and right eyes, nose and lips. Data such as the position coordinates of the face area in the detected human image and the position coordinates of each part are recorded in the SDRAM 15.

CPU21は、操作部26からの操作信号等に応じて内蔵メモリ22からカメラプログラムを読み出して実行し、デジタルカメラ1を構成する各部に対する指示やデータの転送等を行ってデジタルカメラ1の動作を統括的に制御する。このCPU21は、演出処理部211を備える。演出処理部211は、撮影の後、補正付き本画像処理部181が補正付き本画像処理を終了するまでの間、この補正付き本画像処理と並行して、演出用画像処理部183によって生成された複数の演出用小画像を表示部23に表示する演出処理を行う。   The CPU 21 reads out and executes a camera program from the built-in memory 22 in response to an operation signal from the operation unit 26, etc., and gives instructions to each unit constituting the digital camera 1, data transfer, and the like to control the operation of the digital camera 1. Control. The CPU 21 includes an effect processing unit 211. The effect processing unit 211 is generated by the effect image processing unit 183 in parallel with the main image processing with correction until the main image processing unit with correction 181 finishes the main image processing with correction after shooting. An effect process of displaying a plurality of effect small images on the display unit 23 is performed.

内蔵メモリ22は、例えばフラッシュメモリ等の電気的に書き換えが可能な不揮発性メモリであり、この内蔵メモリ22には、デジタルカメラ1を動作させ、このデジタルカメラ1が備える種々の機能を実現するための各種のカメラプログラムや、このカメラプログラムの実行中に使用されるデータ等が予め記録されている。なお、これらカメラプログラムやカメラプログラムの実行中に使用されるデータを記録する記録媒体はフラッシュメモリに限定されるものではなく、CD−ROMやDVD−ROM等の光学記録媒体、MD等の磁気記録媒体、テープ媒体、ICカードなどの半導体メモリを用いることができる。   The built-in memory 22 is an electrically rewritable nonvolatile memory such as a flash memory. For example, the built-in memory 22 operates the digital camera 1 and realizes various functions provided in the digital camera 1. The various camera programs and data used during the execution of the camera program are recorded in advance. The recording medium for recording the camera program and data used during the execution of the camera program is not limited to the flash memory, but an optical recording medium such as a CD-ROM or DVD-ROM, or a magnetic recording such as an MD. A semiconductor memory such as a medium, a tape medium, or an IC card can be used.

表示部23は、撮影画像やライブビュー画像の他、デジタルカメラ1の各種設定情報等を表示するためのものであり、LCD(Liquid Crystal Display)やELディスプレイ(Electroluminescence Display)等の表示装置で実現される。表示駆動回路24は、表示部23を駆動する。この表示部23には、撮影モード中は所定の表示フレームレートでライブビュー画像が再描画されて動画的に連続表示され、再生モード中は撮影画像が表示される。   The display unit 23 is for displaying various setting information of the digital camera 1 in addition to the captured image and the live view image, and is realized by a display device such as an LCD (Liquid Crystal Display) or an EL display (Electroluminescence Display). Is done. The display drive circuit 24 drives the display unit 23. On the display unit 23, the live view image is redrawn at a predetermined display frame rate during the shooting mode and continuously displayed as a moving image, and the shot image is displayed during the playback mode.

操作部26は、撮影タイミングの指示、補正モードを含む各種の撮影モードや再生モードといったモードの設定操作、撮影条件の設定操作等、ユーザによる各種操作を受け付けて操作信号をCPU21に通知するためのものであり、各種機能が割り当てられたボタンスイッチやスライドスイッチ、ダイヤル等で実現される。この操作部26は、図1のレリーズスイッチ3、パワースイッチ4、メニュースイッチ5、十字キー6、OKスイッチ7および再生スイッチ8を含む。   The operation unit 26 receives various operations by the user, such as an instruction for photographing timing, a setting operation for various photographing modes including a correction mode and a playback mode, and a photographing condition setting operation, and notifies the CPU 21 of an operation signal. It is realized by button switches, slide switches, dials, etc., to which various functions are assigned. The operation unit 26 includes the release switch 3, the power switch 4, the menu switch 5, the cross key 6, the OK switch 7 and the reproduction switch 8 of FIG. 1.

通信I/F25は、例えばUSB(Universal Serial Bus)等の通信規格によってデジタルカメラ1を例えばパソコン等の外部機器と接続するためのインターフェースである。   The communication I / F 25 is an interface for connecting the digital camera 1 to an external device such as a personal computer according to a communication standard such as USB (Universal Serial Bus).

着脱メモリ27は、例えばxD−ピクチャーカード(登録商標)やコンパクトフラッシュ(登録商標)カード等のデジタルカメラ1に着脱自在なメモリカードである。この着脱メモリ27には、その種類に応じた図示しない読み書き装置によって撮影画像の画像データが書き込まれ、または読み書き装置によって着脱メモリ27に記録された画像データが読み出される。   The removable memory 27 is a memory card that is detachable from the digital camera 1 such as an xD-Picture Card (registered trademark) or a Compact Flash (registered trademark) card. In the detachable memory 27, image data of a captured image is written by a read / write device (not shown) corresponding to the type, or image data recorded in the detachable memory 27 is read by the read / write device.

電源回路28は、装填されている電池29によって供給される電力を、所定の電力に変換してデジタルカメラ1の各部へと供給する。   The power supply circuit 28 converts the power supplied by the battery 29 loaded therein into predetermined power and supplies it to each part of the digital camera 1.

ここで、以上のように構成されるデジタルカメラ1の機能の一つである補正モードの概要について説明する。上記のように、本実施の形態のデジタルカメラ1は、撮影モードに関する設定として補正モードが選択されている場合に、顔領域の補正処理を含む補正付き本画像処理を行う。   Here, an outline of the correction mode, which is one of the functions of the digital camera 1 configured as described above, will be described. As described above, the digital camera 1 according to the present embodiment performs the main image processing with correction including the correction processing of the face area when the correction mode is selected as the setting related to the shooting mode.

ここで、補正処理は、人物等の被写体の顔を美しく表現するための処理であり、処理内容は特に限定されるものではないが、例としては、肌を滑らかに加工するスムージング処理や、肌を白く加工する美白処理、瞳にキャッチライトを合成するキャッチライト処理、唇の明るさや色を調整して艶感や立体感を発生させる艶処理等が挙げられる。スムージング処理では、例えば、肌の領域からシワやシミの部分を検出して周囲の肌の状態に置き換える補正を行う。美白処理では、例えば、肌の赤み部分を検出して周辺の肌の色と置き換える補正や、肌の白みを増すための補正、あるいは肌を日焼け色に補正する処理を行う。なお、例示した補正処理の他にも、例えば、目の開き具合を調整することによって目を大きく見せるような補正を行うこととしてもよい。これらの補正処理は、例えば、特開2004−180114号公報や特開2004−222118号公報、特開2004−318205号公報等に開示されている公知技術を用いることで実現できる。だたし、これらの文献に開示されている公知技術に限定されるものではなく、顔に対して行う補正処理を適宜選択的に用いることで実現できる。以下、本実施の形態では、3種類の補正処理を組み合わせて行い、例えば第1の補正処理として肌のスムージング処理を行い、第2の補正処理として肌の美白処理を行い、第3の補正処理として唇の艶処理を行う。   Here, the correction process is a process for expressing the face of a subject such as a person beautifully, and the processing content is not particularly limited, but examples include a smoothing process for smoothing the skin, Whitening processing for processing white, catchlight processing for synthesizing catchlight on the pupil, glossing processing for adjusting gloss and color of the lips by adjusting the brightness and color of the lips, and the like. In the smoothing process, for example, correction is performed by detecting a wrinkle or a spot portion from the skin region and replacing it with the surrounding skin state. In the whitening process, for example, correction for detecting a reddish portion of the skin and replacing it with the color of the surrounding skin, correction for increasing the whiteness of the skin, or processing for correcting the skin to a tan color is performed. In addition to the exemplified correction processing, for example, correction that makes the eyes look larger by adjusting the degree of opening of the eyes may be performed. These correction processes can be realized by using known techniques disclosed in, for example, Japanese Unexamined Patent Application Publication Nos. 2004-180114, 2004-222118, and 2004-318205. However, the present invention is not limited to the known techniques disclosed in these documents, and can be realized by appropriately using a correction process performed on the face. Hereinafter, in the present embodiment, three types of correction processing are performed in combination, for example, skin smoothing processing is performed as the first correction processing, skin whitening processing is performed as the second correction processing, and third correction processing is performed. As a lip gloss treatment.

ところで、撮影画像に対して上記の各補正処理を施すためには、ある程度の時間を要する。このためユーザは、補正モードを選択して撮影を行った場合、各補正処理を終えるまでの間待機しなければならず、退屈であった。そこで、本実施の形態のデジタルカメラ1は、各補正処理を含む補正付き本画像処理の実行中に、演出用小画像を表示部23に表示する演出処理を行う。より具体的にはこのとき、ユーザに対して補正付き本画像処理の過程を段階的に提示する演出処理を行う。なお、実際の撮影画像に施す各補正処理の順番は特に限定されるものではないが、補正処理の過程を提示するため、以下では、例えば第1の補正処理を第1段階の補正処理、第2の補正処理を第2段階の補正処理、第3の補正処理を最終段階の補正処理とする。   Incidentally, it takes a certain amount of time to perform the above-described correction processes on the captured image. For this reason, when the user selects the correction mode and performs shooting, the user has to wait until each correction process is completed, which is tedious. Therefore, the digital camera 1 according to the present embodiment performs an effect process for displaying the effect small image on the display unit 23 during the execution of the corrected main image process including each correction process. More specifically, at this time, an effect process for presenting the process of the main image process with correction to the user step by step is performed. Note that the order of each correction process performed on the actual captured image is not particularly limited. However, in order to present the process of the correction process, for example, the first correction process is referred to as a first-stage correction process, a first correction process, and the like. The second correction process is a second-stage correction process, and the third correction process is a final-stage correction process.

先ず、生成した撮影画像を縮小して小画像の画像データを生成する。そして、この小画像を処理前小画像として加工し、演出用小画像を複数生成する。例えば、処理前小画像中の顔領域にスムージング処理を施した第1段階処理小画像、第1段階処理小画像中の顔領域に美白処理を施した第2段階処理小画像、第2段階処理小画像中の顔領域に艶処理を施した最終処理小画像の各画像データ(段階処理小画像データ)を生成する。また、これらの各処理小画像や処理前小画像の一部分を切り出した部分画像や、これらの部分画像を所定のサイズに拡大した部分拡大画像、これらの部分拡大画像や各処理小画像、処理前小画像を所定量回転させた回転処理小画像を生成する。そして、必要に応じて各処理小画像や部分画像、回転処理小画像に予め用意される所定のテンプレートを合成し、複数の演出用小画像を得る。ここで、演出用小画像を得るための処理前小画像に対するこれらの画像処理は、撮影画像に対して各補正処理を施す場合のように時間がかからず、短時間で実現できる。また、この他に、予め演出用画像として用いる動画(アニメーション画像)や静止画の背景画像データを用意しておく。   First, the generated captured image is reduced to generate image data of a small image. Then, this small image is processed as a pre-processed small image, and a plurality of effect small images are generated. For example, a first stage processed small image obtained by performing smoothing processing on a face area in a pre-processed small image, a second stage processed small image obtained by performing whitening processing on a face area in the first stage processed small image, and a second stage processed Each image data (step-processed small image data) of the final processed small image obtained by applying the gloss process to the face area in the small image is generated. Also, a partial image obtained by cutting out a part of each of these processed small images and pre-processed small images, a partial enlarged image obtained by enlarging these partial images to a predetermined size, these partial enlarged images, each processed small image, and pre-processing A rotated small image is generated by rotating the small image by a predetermined amount. Then, as necessary, a predetermined template prepared in advance is combined with each processing small image, partial image, and rotation processing small image to obtain a plurality of effect small images. Here, the image processing for the pre-process small image for obtaining the effect small image does not take time as in the case of performing each correction process on the captured image, and can be realized in a short time. In addition to this, a moving image (animation image) or background image data of a still image used as an effect image is prepared in advance.

以上のようにして演出用小画像を生成したならば、演出用小画像の演出処理に移る。例えば先ず、各演出用小画像の表示順を設定する。そして、設定した表示順に従い、各演出用小画像を所定の表示時間毎に順次表示部23に切り換えて表示する処理を行って、スライドショーとして動画表示する。図3および図4は、演出処理の原理を説明する図である。   If the effect small image is generated as described above, the process moves to the effect processing of the effect small image. For example, first, the display order of each effect small image is set. Then, according to the set display order, each small effect image is sequentially switched to the display unit 23 for each predetermined display time and displayed, and a moving image is displayed as a slide show. 3 and 4 are diagrams illustrating the principle of the effect process.

例えば、図3の例では、撮影画像をもとに、処理前小画像と、処理前小画像の部分拡大画像と、それぞれ所定位置にテンプレートを合成した第1段階処理小画像、第2段階処理小画像および最終処理小画像の部分拡大画像とを生成する。そして、予め用意されたアニメーション画像とともに演出用小画像として用いる。   For example, in the example of FIG. 3, based on the photographed image, the pre-processing small image, the partially enlarged image of the pre-processing small image, and the first stage processing small image and the second stage processing in which the templates are respectively combined at predetermined positions. A small image and a partially enlarged image of the final processed small image are generated. And it uses as a small image for production with the animation image prepared beforehand.

具体的な演出処理としては先ず、図3(a)〜図3(c)に示すように、処理前小画像および処理前小画像の部分拡大画像を順番に表示し、被写体を段階的にズーム表示する。そして、図3(c)に示すように、補正処理の対象である被写体の顔にフォーカスマークF11,F12を表示する。次いで、図3(d)に示すように、予め用意されたアニメーション画像を表示する。そして、図3(e)に示すように、第1段階処理小画像の部分拡大画像を表示し、顔に対する第1段階の補正処理イメージを補正処理の過程としてユーザに提示する。図3(e)では、被写体の顔の近傍位置にテンプレートT11,T12を合成した第1段階処理小画像の部分拡大画像を示している。このように、処理前画像や各処理小画像にフォーカスマークF11,F12(図3(c))やテンプレートT11,T12(図3(e))を適宜合成することによって、演出効果を高めることができる。   As a specific effect process, first, as shown in FIGS. 3A to 3C, the pre-process small image and the pre-process small image are displayed in order, and the subject is zoomed in stages. indicate. Then, as shown in FIG. 3C, focus marks F11 and F12 are displayed on the face of the subject to be corrected. Next, as shown in FIG. 3D, an animation image prepared in advance is displayed. Then, as shown in FIG. 3E, a partial enlarged image of the first stage processed small image is displayed, and the first stage correction processing image for the face is presented to the user as a process of the correction processing. FIG. 3E shows a partially enlarged image of the first stage processed small image obtained by combining the templates T11 and T12 in the vicinity of the face of the subject. As described above, by appropriately combining the focus marks F11 and F12 (FIG. 3C) and the templates T11 and T12 (FIG. 3E) with the pre-processing image and each processing small image, it is possible to enhance the effect. it can.

次いで、図3(f)に示すように、再度アニメーション画像を表示した後、図3(g)に示すように、被写体の顔の近傍にテンプレートT13,T14を合成した第2段階処理小画像の部分拡大画像を表示し、顔に対する第2段階の補正処理イメージを補正処理の次の過程としてユーザに提示する。次いで、図3(h)に示すように、再度アニメーション画像を表示する。そして、図3(i)に示すように、被写体の顔の近傍にテンプレートT15,T16を合成した最終処理小画像の部分拡大画像を表示し、顔に対する最終段階の補正処理イメージ(撮影画像に対する補正付き本画像処理の仕上がりイメージ)をユーザに提示する。   Next, after the animation image is displayed again as shown in FIG. 3 (f), the second stage processed small image obtained by combining the templates T13 and T14 in the vicinity of the face of the subject as shown in FIG. 3 (g). The partially enlarged image is displayed, and the second-stage correction processing image for the face is presented to the user as the next process of the correction processing. Next, the animation image is displayed again as shown in FIG. Then, as shown in FIG. 3 (i), a partial enlarged image of the final processed small image obtained by combining the templates T15 and T16 is displayed in the vicinity of the face of the subject, and the final correction processing image for the face (correction for the captured image). The final image of the supplementary image processing) is presented to the user.

一方、図4の例では、撮影画像をもとに、処理前小画像と、処理前小画像、第1段階処理小画像、第2段階処理小画像および最終処理小画像の所定範囲を切り出した部分画像やこれらの部分画像を異なるサイズで拡大した部分拡大画像と、第2段階処理小画像の部分拡大画像を異なる回転量で回転させた回転処理小画像とを生成し、演出用小画像として用いる。   On the other hand, in the example of FIG. 4, a predetermined range of the pre-processing small image, the pre-processing small image, the first stage processing small image, the second stage processing small image, and the final processing small image is cut out based on the captured image. A partial image, a partial enlarged image obtained by enlarging these partial images with different sizes, and a rotation processed small image obtained by rotating the partial enlarged image of the second stage processed small image with different rotation amounts are generated as a small image for production. Use.

具体的な演出処理としては先ず、図4(a)〜図4(c)に示すように、処理前小画像の部分画像やこの部分画像を異なるサイズで拡大した部分拡大画像が段階的に大きくなるように順番に表示し、被写体を拡大表示する。次いで、図4(d)〜図4(i)に示すように、第1段階処理小画像の部分画像やこの部分画像を異なるサイズで拡大した部分画像が段階的に小さくなったり大きくなったりするように順番に表示することによって被写体を拡縮表示させながら、顔に対する第1段階の補正処理イメージを補正処理の過程としてユーザに提示する。   As specific effect processing, first, as shown in FIGS. 4A to 4C, a partial image of a pre-processing small image or a partial enlarged image obtained by enlarging this partial image with different sizes is enlarged stepwise. Are displayed in order, and the subject is enlarged. Next, as shown in FIGS. 4D to 4I, the partial image of the first stage processed small image and the partial image obtained by enlarging the partial image with different sizes gradually become smaller or larger. In this way, the first-stage correction processing image for the face is presented to the user as a correction processing process while the subject is enlarged and reduced by displaying in order.

次いで、図4(j)〜図4(l)に示すように、第2段階処理小画像の部分拡大画像を異なる回転量で回転させた回転処理小画像を順番に表示してモーション表示させながら、顔に対する第2段階の補正処理イメージを補正処理の過程としてユーザに提示する。そして、図4(m)に示すように、最終処理小画像の部分拡大画像を表示し、顔に対する最終段階の補正処理イメージ(仕上がりイメージ)をユーザに提示する。   Next, as shown in FIG. 4 (j) to FIG. 4 (l), while displaying the rotation processed small images obtained by rotating the partially enlarged images of the second stage processed small images with different rotation amounts in order and displaying the motion. Then, the second-stage correction processing image for the face is presented to the user as a correction processing process. Then, as shown in FIG. 4 (m), a partially enlarged image of the final processed small image is displayed, and a final corrected image (finished image) for the face is presented to the user.

このように、本実施の形態では、補正付き本画像処理が終了するまでの間、すなわち、3種類の各補正処理を施して撮影画像に対する画像処理が完了するまでの間、演出用小画像を用いた演出処理を行うことができる。したがって、ユーザは、補正処理の段階的な過程を確認しながら待機でき、退屈しない。   As described above, in this embodiment, until the main image processing with correction is completed, that is, until the image processing for the captured image is completed by performing each of the three types of correction processing, the small effect image is displayed. The used effect processing can be performed. Therefore, the user can wait while checking the stepwise process of the correction process, and is not bored.

なお、図3(a)〜(c),(e),(g),(i)や図4(a)〜(m)では、それぞれ補正処理を反映させた状態の画像を示していないが、実際には、第1段階の補正処理後の状態や第2段階の補正処理後の状態、最終段階の補正処理後の状態の画像が表示部23に表示される。   3 (a) to (c), (e), (g), (i) and FIGS. 4 (a) to (m) do not show images in a state where correction processing is reflected. Actually, an image of the state after the first stage correction process, the state after the second stage correction process, and the state after the final stage correction process is displayed on the display unit 23.

次に、デジタルカメラ1の動作について説明する。図5は、デジタルカメラ1の基本動作を示すフローチャートである。図5に示すように、デジタルカメラ1は、パワースイッチ4がスライドされて電源投入(パワースイッチON)が指示されるまで待機状態となり、パワースイッチがOFFの間は(ステップa1:No)、スリープ状態を継続して(ステップa3)、ステップa1に戻る。   Next, the operation of the digital camera 1 will be described. FIG. 5 is a flowchart showing the basic operation of the digital camera 1. As shown in FIG. 5, the digital camera 1 is in a standby state until the power switch 4 is slid and an instruction to turn on the power (power switch ON) is given, and sleep while the power switch is OFF (step a1: No). The state is continued (step a3), and the process returns to step a1.

そして、パワースイッチがONされた場合には(ステップa1:Yes)、電源回路28による各部への電源供給が開始され(ステップa5)、先ず、撮影モード設定を行う(ステップa7)。例えば、測光や露出演算に関する設定、AE/AF動作に関する設定等、撮影モードに関する各種設定を行う。本実施の形態では、このとき、撮影画像中で顔が検出された場合に顔領域を補正処理する補正モードの設定を行う。その後、測光・演算処理を行う(ステップa9)。   When the power switch is turned on (step a1: Yes), the power supply circuit 28 starts supplying power to each unit (step a5), and first, the shooting mode is set (step a7). For example, various settings relating to the shooting mode such as settings relating to photometry and exposure calculation, and settings relating to AE / AF operation are performed. In the present embodiment, at this time, a correction mode for correcting the face area when a face is detected in the captured image is set. Thereafter, photometry / calculation processing is performed (step a9).

続いて、ライブビュー画像を取り込んで表示部23に表示する(ステップa11)。ここでの処理によって、撮像素子11に結像されている被写体像の画像データがSDRAM18に一時的に記録され、ライブビュー画像として表示部23に表示される。このライブビュー画像は、所定のフレームレートで更新表示され、動画的に連続表示されるようになっている。   Subsequently, the live view image is captured and displayed on the display unit 23 (step a11). By the processing here, the image data of the subject image formed on the image sensor 11 is temporarily recorded in the SDRAM 18 and displayed on the display unit 23 as a live view image. The live view image is updated and displayed at a predetermined frame rate and is continuously displayed as a moving image.

その後は、操作入力に応じて処理を分岐する。すなわち、レリーズスイッチ3が一段階押下され、ファーストレリーズスイッチがONされた場合には(ステップa13:Yes)、撮影処理を行う(ステップa15)。ファーストレリーズスイッチがONされなければ(ステップa13:No)、ステップa17に移行する。そして、再生スイッチ8がONされた場合には(ステップa17:Yes)、再生モードとなって再生処理を行う(ステップa19)。再生スイッチ8がONされなければ(ステップa17:No)、ステップa21に移行する。そして、メニュースイッチ5がONされた場合には(ステップa21:Yes)、設定変更処理を行う(ステップa23)。例えば、CPU21が設定変更処理を開始し、設定変更画面を表示部23に表示させて各種設定メニューを提示する。そして、CPU21は、ユーザ操作によって選択された設定項目に応じた処理を行い、操作部26からの操作信号に従って各種モードの設定変更等を行うための処理を実行する。ここでの設定変更処理によって、撮影モードや再生モードに関する各種設定を変更することができ、例えば撮影モードとして、補正モードを選択するか否かの設定を変更する(切り換える)ことができる。メニュースイッチ5がONされなければ(ステップa21:No)、ステップa25に移行する。   Thereafter, the process branches according to the operation input. That is, when the release switch 3 is pressed down one step and the first release switch is turned on (step a13: Yes), a photographing process is performed (step a15). If the first release switch is not turned on (step a13: No), the process proceeds to step a17. When the regeneration switch 8 is turned on (step a17: Yes), the regeneration mode is set and the regeneration process is performed (step a19). If the regeneration switch 8 is not turned on (step a17: No), the process proceeds to step a21. When the menu switch 5 is turned on (step a21: Yes), a setting change process is performed (step a23). For example, the CPU 21 starts setting change processing, displays a setting change screen on the display unit 23, and presents various setting menus. Then, the CPU 21 performs a process according to the setting item selected by the user operation, and executes a process for changing the setting of various modes according to the operation signal from the operation unit 26. Various settings relating to the shooting mode and the playback mode can be changed by the setting change processing here. For example, the setting as to whether or not the correction mode is selected as the shooting mode can be changed (switched). If the menu switch 5 is not turned on (step a21: No), the process proceeds to step a25.

そして、パワースイッチ4がスライドされて電源遮断(パワースイッチOFF)が指示されるまでの間(ステップa25:No)、ステップa9に戻って上記した処理を行う。そして、パワースイッチ4がOFFされた場合には(ステップa25:Yes)、電源回路28による各部の電源供給が停止され(ステップa27)、基本動作を終える。   Then, until the power switch 4 is slid and the power cut-off (power switch OFF) is instructed (step a25: No), the process returns to step a9 to perform the above-described processing. When the power switch 4 is turned off (step a25: Yes), the power supply of each part by the power supply circuit 28 is stopped (step a27), and the basic operation is finished.

次に、図5に示した基本動作においてファーストレリーズスイッチがONされた場合に行う撮影処理(ステップa15)について説明する。図6は、撮影処理の詳細な処理手順を示すフローチャートである。図6に示すように、撮影処理では、先ず撮影準備動作として、AF部17がAF(自動焦点)動作を行い(ステップb1)、AE部16がAE(自動露出)動作を行う(ステップb3)。   Next, the photographing process (step a15) performed when the first release switch is turned on in the basic operation shown in FIG. 5 will be described. FIG. 6 is a flowchart showing a detailed processing procedure of the photographing process. As shown in FIG. 6, in the photographing process, first, as photographing preparation operation, the AF unit 17 performs AF (automatic focus) operation (step b1), and the AE unit 16 performs AE (automatic exposure) operation (step b3). .

その後、セカンドレリーズスイッチがONされず(ステップb5:No)、ファーストレリーズスイッチがONされたままの間は(ステップb7:Yes)、待機状態となる。ファーストレリーズスイッチがOFFされた場合には(ステップb7:No)、図5のステップa15にリターンし、その後ステップa17に移行する。   Thereafter, the second release switch is not turned on (step b5: No), and the first release switch remains on (step b7: Yes), and the standby state is entered. If the first release switch is turned off (step b7: No), the process returns to step a15 in FIG. 5, and then proceeds to step a17.

そして、レリーズスイッチ3が二段階押下され、セカンドレリーズスイッチがONされた場合には(ステップb5:Yes)、CPU21が、撮像部10を駆動して撮影時の露出を制御し(ステップb9)、画像データの読み出し処理を行う(ステップb11)。ここでの処理によって、セカンドレリーズスイッチがONされたタイミングの撮影範囲の画像が撮影画像として生成され、その画像データがSDRAM15に一時的に記録される。   When the release switch 3 is pressed in two steps and the second release switch is turned on (step b5: Yes), the CPU 21 drives the imaging unit 10 to control exposure during shooting (step b9). Image data reading processing is performed (step b11). With this processing, an image in the shooting range at the timing when the second release switch is turned on is generated as a shot image, and the image data is temporarily recorded in the SDRAM 15.

続いて、画像処理部18が、撮影画像の画像データを縮小処理して小画像の画像データを生成する(ステップb12)。そして、CPU21が、補正モードを選択した撮影モードが設定されているか否かを判定する。補正モードが選択されていなければ(ステップb13:No)、ステップb21に移り、画像処理部18が、撮影画像に対して顔を補正しない通常の画像処理を施す。そしてその後、ステップb23に移行する。一方、補正モードが選択されている場合には(ステップb13:Yes)、器官検出部20が顔検出を実行する(ステップb15)。器官検出部20は、小画像から顔領域を検出し、この顔領域の検出結果をもとに、顔領域中の各顔パーツを検出する。   Subsequently, the image processing unit 18 generates image data of a small image by reducing the image data of the captured image (Step b12). Then, the CPU 21 determines whether or not the shooting mode in which the correction mode is selected is set. If the correction mode is not selected (step b13: No), the process proceeds to step b21, and the image processing unit 18 performs normal image processing that does not correct the face on the captured image. Then, the process proceeds to step b23. On the other hand, when the correction mode is selected (step b13: Yes), the organ detection unit 20 performs face detection (step b15). The organ detection unit 20 detects a face area from the small image, and detects each face part in the face area based on the detection result of the face area.

その後、CPU21が、ステップb15の顔検出で顔を検出したか否かを判定し、検出しなかった場合には(ステップb17:No)、ステップb21に移行する。すなわち、上記したように、画像処理部18が、撮影画像に対して顔を補正しない通常の画像処理を施す。そしてその後、ステップb23に移行する。一方、顔を検出したならば(ステップb17:Yes)、補正付き画像補正処理に移り(ステップb19)、撮影画像に対して顔を補正する画像処理を施す。図7は、補正付き画像処理の詳細な処理手順を示すフローチャートである。   Thereafter, the CPU 21 determines whether or not a face has been detected by the face detection in step b15. If not (step b17: No), the CPU 21 proceeds to step b21. That is, as described above, the image processing unit 18 performs normal image processing that does not correct the face on the captured image. Then, the process proceeds to step b23. On the other hand, if a face is detected (step b17: Yes), the process proceeds to an image correction process with correction (step b19), and image processing for correcting the face is performed on the captured image. FIG. 7 is a flowchart showing a detailed processing procedure of the image processing with correction.

図7に示すように、補正付き画像処理では、先ず、画像処理部18の演出用画像処理部183が、演出用小画像を生成する(ステップc1)。例えば、演出用画像処理部183は、図6のステップb12で生成した小画像を処理前小画像とし、第1段階処理小画像、第2段階処理小画像、最終処理小画像、部分画像、部分拡大画像、回転処理小画像等を生成し、必要に応じて各画像に所定のテンプレート(図3のフォーカスマークF11,F12やテンプレートT11〜T16)を合成し、演出用小画像とする。   As shown in FIG. 7, in the image processing with correction, first, the effect image processing unit 183 of the image processing unit 18 generates an effect small image (step c1). For example, the effect image processing unit 183 sets the small image generated in step b12 in FIG. 6 as the pre-processing small image, the first stage processed small image, the second stage processed small image, the final processed small image, the partial image, and the partial image. An enlarged image, a rotation processed small image, and the like are generated, and a predetermined template (focus marks F11 and F12 and templates T11 to T16 in FIG. 3) is combined with each image as necessary to produce a small effect image.

続いて、画像処理部18の補正付き本画像処理部181が、補正付き本画像処理を開始する(ステップc3)。図8は、ここで開始される補正付き本画像処理の詳細な処理手順を示すフローチャートである。図8に示すように、本実施の形態の補正付き本画像処理では、補正付き本画像処理部181は、先ず、図6のステップb15で小画像に対して行った顔検出結果をもとに、小画像中のこれらの検出位置に対応する撮影画像中の位置を、撮影画像中での顔領域や各顔パーツの領域として特定する(ステップd1)。そして、補正付き本画像処理部181は、撮影画像に対し、第1の補正処理として例えば肌のスムージング処理を行い(ステップd2)、第2の補正処理として肌の美白処理を行い(ステップd3)、第3の補正処理として唇の艶処理を行う(ステップd4)とともに、その他の必要な画像処理を施して補正付き撮影画像を生成する。   Subsequently, the corrected main image processing unit 181 of the image processing unit 18 starts the corrected main image processing (step c3). FIG. 8 is a flowchart showing a detailed processing procedure of the main image processing with correction started here. As shown in FIG. 8, in the main image processing with correction according to the present embodiment, the main image processing unit 181 with correction first starts based on the face detection result performed on the small image in step b15 in FIG. Then, the position in the captured image corresponding to these detection positions in the small image is specified as the face area or the area of each face part in the captured image (step d1). Then, the corrected main image processing unit 181 performs, for example, a skin smoothing process as the first correction process on the captured image (step d2), and performs a skin whitening process as the second correction process (step d3). The lip gloss processing is performed as the third correction processing (step d4), and other necessary image processing is performed to generate a photographic image with correction.

そして、補正付き本画像処理部181がこの補正付き本画像処理を開始したならば、CPU21が、この補正付き本画像処理を終了するまでの間、この補正付き本画像処理と並行して、演出用画像処理部183が生成した演出用小画像や予めテンプレートとして用意される演出用画像(図3のアニメーション画像等)を用いた演出処理を行う。   Then, if the corrected main image processing unit 181 starts the corrected main image processing, the CPU 21 produces the effect in parallel with the corrected main image processing until the correction main image processing ends. The effect processing using the effect small image generated by the image processing unit 183 and the effect image (such as the animation image in FIG. 3) prepared in advance as a template is performed.

すなわち、CPU21は、演出処理に用いる各演出用小画像の表示順を設定し、図7に示すように、表示順に従って演出用小画像を順次選出する(ステップc4)。続いて、CPU21は、タイマーを起動して所定時間(表示時間)の計時を開始した後(ステップc5)、ステップc4で選出した演出用小画像を選出して表示部23に表示する演出処理を行う(ステップc7)。   In other words, the CPU 21 sets the display order of each effect small image used for effect processing, and sequentially selects the effect small images according to the display order as shown in FIG. 7 (step c4). Subsequently, the CPU 21 starts a timer and starts measuring a predetermined time (display time) (step c5), and then performs an effect process in which the effect small image selected in step c4 is selected and displayed on the display unit 23. Perform (step c7).

そして、CPU21は、タイマーの計時を監視し、所定時間を超過するまで待機状態となる。タイマーの計時が所定時間を超過した場合には(ステップc9:Yes)、CPU21は、補正付き本画像処理が終了したか否かを判定し、終了するまでの間(ステップc11:No)、ステップc4に戻って上記した処理を繰り返す。すなわち、次順の演出用小画像を選出するとともにタイマーをリセットして再度所定時間の計時を開始し、選出した演出用小画像を表示時間の間表示部23に表示する演出処理を行う。一方、補正付き本画像処理が終了した場合には(ステップc11:Yes)、図6のステップb19にリターンし、その後ステップb23に移行する。   Then, the CPU 21 monitors the time count of the timer and enters a standby state until a predetermined time is exceeded. When the time measured by the timer exceeds the predetermined time (step c9: Yes), the CPU 21 determines whether or not the main image processing with correction is finished, and until it is finished (step c11: No), the step Returning to c4, the above processing is repeated. That is, the next small effect image is selected and the timer is reset to start counting a predetermined time again, and an effect process is performed in which the selected small effect image is displayed on the display unit 23 for the display time. On the other hand, when the main image processing with correction is completed (step c11: Yes), the process returns to step b19 in FIG. 6 and then proceeds to step b23.

そして、ステップb23では、CPU21は、確認画像を表示部23に表示する処理(レックビュー)を行う。補正モードが選択されていない場合や、補正モードが選択されているものの撮影画像中で顔が検出されない場合には、通常の画像処理後の撮影画像が確認画像として表示部23に表示される。一方、補正モードが選択されており、撮影画像中で顔が検出された場合には、補正付き画像処理後の顔が補正された撮影画像が確認画像として表示部23に表示される。   In step b23, the CPU 21 performs a process (rec view) for displaying the confirmation image on the display unit 23. When the correction mode is not selected or when the correction mode is selected but no face is detected in the captured image, the captured image after normal image processing is displayed on the display unit 23 as a confirmation image. On the other hand, when the correction mode is selected and a face is detected in the captured image, the captured image with the corrected face after image processing with correction is displayed on the display unit 23 as a confirmation image.

そして、CPU21は、ステップb21の通常の画像処理後の撮影画像またはステップb19の補正付き本画像処理後の撮影画像(補正付き撮影画像)の画像データ(補正付き画像データ)を着脱メモリ27に記録する(ステップb25)。そして、図5のステップa15にリターンし、その後ステップa17に移行する。   Then, the CPU 21 records the image data (corrected image data) of the captured image after the normal image processing in step b21 or the captured image (corrected captured image) after the main image processing with correction in step b19 in the removable memory 27. (Step b25). And it returns to step a15 of FIG. 5, and transfers to step a17 after that.

ここで、撮影画像の画像データは、その小画像の画像データであるサムネイルデータと対応付けられて着脱メモリ27に記録される。また、補正付き撮影画像については、さらに、図7のステップc4〜ステップc9を繰り返すことで行った演出処理を再生するためのスライドデータを対応付けた補正付き画像ファイルとして記録される。図9は、補正付き画像ファイルのデータ構成例を示す図である。図9に示すように、補正付き画像ファイルは、ヘッダー41と、本画像データ42と、サムネイルデータ43と、スライドデータ44とを含む。本画像データ42は、補正付き撮影画像の画像データである。また、スライドデータ44は、例えば、演出処理で用いた演出用小画像をスライドショー表示するためのものであり、各演出用小画像を表示順に繋ぎあわせ、各演出用画像の表示時間を設定したスライドショーデータとして生成される。   Here, the image data of the captured image is recorded in the removable memory 27 in association with the thumbnail data that is the image data of the small image. Further, the photographic image with correction is further recorded as an image file with correction associated with slide data for reproducing the effect process performed by repeating Step c4 to Step c9 of FIG. FIG. 9 is a diagram illustrating a data configuration example of an image file with correction. As shown in FIG. 9, the image file with correction includes a header 41, main image data 42, thumbnail data 43, and slide data 44. The main image data 42 is image data of a captured image with correction. The slide data 44 is, for example, for displaying a small image for production used in the production process as a slide show. The slide images 44 connect the small images for production in the display order and set the display time of each production image. Generated as data.

なお、補正付き撮影画像と対応付けて演出用画像(スライドデータ)を記録しておかない構成としてもよい。また、補正付き撮影画像と対応付けて、補正処理を施す前の元の撮影画像(原画像)の画像データを記録しておく構成としてもよい。   In addition, it is good also as a structure which does not record the image for production (slide data) in association with the captured image with correction. Further, the image data of the original photographed image (original image) before the correction process may be recorded in association with the photographed image with correction.

次に、図5に示した基本動作において再生スイッチ8がONされた場合に行う再生処理(ステップa19)について説明する。図10は、再生処理の詳細な処理手順を示すフローチャートである。図10に示すように、再生処理では先ず、CPU21が、着脱メモリ27から撮影画像を読み込む処理を行い(ステップe1)、読み込んだ撮影画像を表示部23に表示する処理を行って再生する(ステップe3)。例えば、過去に撮影されて着脱メモリ27に記録されている撮影画像の画像データ(本画像データ)を撮影順に1枚ずつ順番に読み込んで表示する構成としてもよいし、複数の撮影画像のサムネイルデータを読み出して一覧表示する処理を行い、ユーザ操作に従って一覧の中から選択した撮影画像の画像データ(本画像データ)を表示する構成としてもよい。   Next, the reproduction process (step a19) performed when the reproduction switch 8 is turned on in the basic operation shown in FIG. FIG. 10 is a flowchart showing a detailed processing procedure of the reproduction process. As shown in FIG. 10, in the reproduction process, first, the CPU 21 performs a process of reading a photographed image from the detachable memory 27 (step e1), and performs a process of displaying the read photographed image on the display unit 23 to reproduce (step e1). e3). For example, image data (main image data) of captured images that have been captured in the past and recorded in the removable memory 27 may be sequentially read and displayed one by one in the order of capture, or thumbnail data of a plurality of captured images. It is good also as a structure which performs the process which reads and displays a list, and displays the image data (main image data) of the picked-up image selected from the list according to user operation.

続いて、例えば十字キー6がONされ、再生中の撮影画像の切り換え操作(再生切換操作)が入力された場合には(ステップe5:Yes)、CPU21は、指定された撮影画像を着脱メモリ27から読み込む処理を行い(ステップe7)、ステップe3に戻って読み込んだ撮影画像を表示部23に表示する処理(再生)を行う。   Subsequently, for example, when the cross key 6 is turned on and a switching operation (playback switching operation) of a captured image being reproduced is input (step e5: Yes), the CPU 21 removes the designated captured image from the removable memory 27. (Step e7), and the process returns to step e3 to display (read) the captured image read on the display unit 23.

また、再生中の撮影画像が顔を補正した補正付き撮影画像の場合には、例えばスライドショーの再生メニューが提示されるようになっており、例えばメニュースイッチ5や十字キー6等がONされてこのスライドショーの再生メニューが選択され、スライド再生操作が入力された場合には(ステップe9:Yes)、CPU21は、再生中の補正付き撮影画像に対応付けられたスライドデータを着脱メモリ27から読み込んで各演出用小画像を順次表示部23に表示する処理を行う(ステップe11)。これによれば、再生中の補正付き撮影画像を生成した時に行われた演出処理を再生することができるので、ユーザは、補正処理を施す前の元の撮影画像(原画像)をスライドショーによって確認することができる。   When the captured image being reproduced is a captured image with a corrected face, for example, a slide show reproduction menu is presented. For example, the menu switch 5 or the cross key 6 is turned on to display this menu. When the slide show playback menu is selected and a slide playback operation is input (step e9: Yes), the CPU 21 reads the slide data associated with the corrected captured image being played back from the removable memory 27 and reads each slide data. Processing for sequentially displaying the small images for performance on the display unit 23 is performed (step e11). According to this, since it is possible to reproduce the effect process that was performed when the captured image with correction being generated is generated, the user can confirm the original captured image (original image) before performing the correction process by a slide show. can do.

そして、再生スイッチ8が再びONされるまでの間(ステップe13:No)、ステップe5に戻って再生切換操作やスライド再生操作を受け付ける。再生スイッチ8がONされれば(ステップe13:Yes)、再生処理を終了し、図5のステップa19にリターンし、その後ステップa21に移る。これによって、デジタルカメラ1は、再生モードから撮影モードとなる。   Then, until the playback switch 8 is turned on again (step e13: No), the process returns to step e5 to accept a playback switching operation and a slide playback operation. If the regeneration switch 8 is turned on (step e13: Yes), the regeneration process is terminated, the process returns to step a19 in FIG. 5, and then proceeds to step a21. As a result, the digital camera 1 changes from the playback mode to the shooting mode.

以上説明したように、本実施の形態によれば、撮影モードに関する設定として撮影画像中の顔を補正する補正モードが選択されている場合であって、器官検出部20によって撮影画像中の顔が検出された場合に、撮影画像に対して補正付き本画像処理を行うが、この補正付き本画像処理を終了するまでの間、この補正付き本画像処理と並行して演出処理を行うことができる。具体的には、撮影画像を縮小して処理前小画像を生成し、処理前小画像にスムージング処理を施した第1段階処理小画像や第1段階処理小画像に美白処理を施した第2段階処理小画像、第2段階処理小画像に艶処理を施した最終処理小画像を生成し、これらの処理小画像や処理前小画像を用いて演出用小画像を生成することができる。そして、各演出用画像を順次表示部23に表示する演出処理を行うことができる。したがって、撮影画像中の顔に対する各補正処理を含む補正付き本画像処理を終えるまでの間、補正処理の過程を段階的に提示しながら演出表示を行うことができ、ユーザを退屈させることなく補正処理後のイメージを提示することができる。   As described above, according to the present embodiment, the correction mode for correcting the face in the photographed image is selected as the setting relating to the photographing mode, and the face in the photographed image is detected by the organ detection unit 20. When detected, the main image processing with correction is performed on the photographed image, and until the main image processing with correction is finished, the effect processing can be performed in parallel with the main image processing with correction. . Specifically, the captured image is reduced to generate a pre-processed small image, and the first-stage processed small image obtained by performing the smoothing process on the pre-processed small image or the second-stage obtained by performing the whitening process on the first-stage processed small image. It is possible to generate a final processed small image obtained by applying a gloss process to the step processed small image and the second step processed small image, and to generate a small effect image using the processed small image and the pre-processed small image. And the effect process which displays each image for an effect on the display part 23 sequentially can be performed. Therefore, until the main image processing with correction including each correction processing for the face in the photographed image is completed, the effect display can be performed while showing the process of the correction processing step by step, and the correction is performed without boring the user. An image after processing can be presented.

なお、上記した実施の形態では、第1の補正処理を肌のスムージング処理とし、第2の補正処理を肌の美白処理とし、第3の補正処理を唇の艶処理として、撮影画像を縮小処理した処理前小画像に対してこれらの補正処理を施すことによって、補正処理の処理過程を段階的にユーザに提示する演出表示を行うこととした。これに対し、適用する補正処理の組み合わせや数は適宜設定できる。そして、適用する補正処理の組み合わせや数に応じて処理前小画像に補正処理を施し、処理過程を段階的にユーザに提示する演出表示を行うことができる。   In the above-described embodiment, the first correction process is a skin smoothing process, the second correction process is a skin whitening process, the third correction process is a lip gloss process, and the captured image is reduced. By performing these correction processes on the pre-processed small image, an effect display that presents the process of the correction process step by step to the user is performed. On the other hand, the combination and number of correction processes to be applied can be set as appropriate. Then, it is possible to perform a correction process on the pre-process small image according to the combination and number of correction processes to be applied, and to perform an effect display that presents the processing process to the user step by step.

また、上記した実施の形態では、3種類の補正処理を組み合わせて行うこととし、処理前小画像に対してこれらの補正処理を順番に施した第1段階処理小画像、第2段階処理小画像および最終段階処理小画像を用い、補正処理の処理過程を段階的にユーザに提示する演出表示を行うこととした。これに対し、1つの補正処理を段階的に施すことによって、複数の段階処理小画像を生成することとしてもよい。例えば、美白処理を行う場合であれば、肌の色を段階的に白くして複数の段階処理小画像を生成することとしてもよい。そして、これらを順番に表示部23に表示する処理を行い、補正処理の処理過程を段階的にユーザに提示する演出表示を行うこととしてもよい。   In the embodiment described above, three types of correction processing are performed in combination, and the first-stage processed small image and the second-stage processed small image obtained by sequentially performing these correction processes on the pre-processed small image. The final stage processing small image is used to perform an effect display in which the correction process is presented to the user step by step. On the other hand, it is good also as producing | generating a several step process small image by performing one correction process in steps. For example, in the case of performing whitening processing, the skin color may be gradually whitened to generate a plurality of small-level processed images. And it is good also as performing the display which displays these on the display part 23 in order, and performing the effect display which shows a process of a correction process to a user in steps.

また、図3や図4に例示した演出処理は一例であって、演出処理に用いる演出用小画像の種類や組み合わせ、表示順は適宜設定することができる。また、上記した実施の形態では、各演出用小画像の表示時間を全て同じとして説明したが、例えば演出用小画像の種類等に応じて個別に設定することとしてもよい。あるいは、補正付き本画像処理で行う補正処理の種類に応じて予め補正付き本画像処理に要する処理時間を推定し、推定した処理時間に応じて各演出用小画像に表示時間を割り当てる構成としてもよい。決められた補正処理を行う場合であれば、予め推定時間を設定しておけばよい。ユーザ操作に従って補正処理を選択可能に構成する場合であれば、予め補正処理毎に推定時間を設定しておき、実際に行う補正処理に応じて処理時間を推定すればよい。   Further, the effect process illustrated in FIGS. 3 and 4 is an example, and the type, combination, and display order of effect small images used for the effect process can be set as appropriate. In the above-described embodiment, the display time of each small effect image is described as being the same. However, for example, it may be set individually according to the type of the small effect image. Alternatively, the processing time required for the main image processing with correction may be estimated in advance according to the type of correction processing performed in the main image processing with correction, and the display time may be assigned to each small effect image according to the estimated processing time. Good. If predetermined correction processing is to be performed, an estimated time may be set in advance. If the correction process can be selected according to the user operation, an estimated time is set for each correction process in advance, and the process time may be estimated in accordance with the actually performed correction process.

また、上記した実施の形態では、モーション表示の一例として、第2段階処理小画像の部分拡大画像を異なる回転量で回転させた回転処理小画像を順番に表示する例を示した(図4(j)〜図4(l))が、モーション表示はこれに限定されるものではない。例えば、各演出用画像を、所定の経路に沿って画面内で移動させてモーション表示する構成としてもよい。   In the above-described embodiment, as an example of the motion display, an example in which the rotation-processed small images obtained by rotating the partially enlarged images of the second-stage process small image with different rotation amounts are sequentially displayed (FIG. 4 ( j) to FIG. 4 (l)), the motion display is not limited to this. For example, it is good also as a structure which moves each image for production | presentation along a predetermined | prescribed path | route, and displays a motion.

また、上記した実施の形態では、処理前小画像に対して段階的に補正処理を施した第1段階処理小画像、第2段階処理小画像および最終段階処理小画像を生成し、これらの各処理小画像を用いて演出処理を行うこととしたが、これらのいずれか1つを用いて演出処理を行うこととしてもよい。   In the above-described embodiment, the first-stage processed small image, the second-stage processed small image, and the final-stage processed small image obtained by performing the correction process on the pre-processed small image in stages are generated. Although the effect process is performed using the processed small image, the effect process may be performed using any one of them.

また、上記した実施の形態では、器官検出部20が小画像の画像データに対して顔検出を行い、顔領域を検出して各顔パーツを検出することとした。そして、この顔検出結果をもとに、小画像中のこれらの検出位置に対応する撮影画像中の位置を、撮影画像中での顔領域や各顔パーツの領域として特定することとした。これによれば、サイズの小さい小画像に対して顔検出を行うので、撮影画像に対して顔検出を行う場合と比較して処理負荷を低減できる。ただし、撮影画像の画像データに対しても顔検出を行い、撮影画像中の顔領域や各顔パーツの領域を検出することとしてもよい。あるいは、撮影画像の画像データに対して行った顔検出結果をもとに、撮影画像中のこれらの検出位置に対応する小画像中の位置を、小画像中での顔領域や顔パーツの領域として特定することとしてもよい。そして、特定した顔領域や顔パーツの領域をもとに演出用小画像を生成することとしてもよい。   In the embodiment described above, the organ detection unit 20 performs face detection on the image data of the small image, detects the face area, and detects each face part. And based on this face detection result, it decided to specify the position in the picked-up image corresponding to these detection positions in a small image as a face area | region and area | region of each face part in a picked-up image. According to this, since face detection is performed on a small image having a small size, the processing load can be reduced as compared with the case where face detection is performed on a captured image. However, face detection may be performed on the image data of the photographed image to detect a face area or each face part area in the photographed image. Alternatively, based on the face detection result performed on the image data of the photographed image, the position in the small image corresponding to these detection positions in the photographed image can be changed to the face area or face part area in the small image. It may be specified as Then, a small effect image may be generated based on the specified face area or face part area.

また、上記した実施の形態では、撮影画像を縮小処理したサムネイルを小画像として用いることとしたが、小画像は、サムネイルに限定されるものではない。例えば、撮影画像をVGAサイズ(640×480画素)に縮小処理して小画像を生成することとしてもよい。また、この他、小画像のサイズは適宜設定可能であり、撮影画像よりも小さい所定のサイズに縮小処理して小画像を生成することとしてよい。   In the above-described embodiment, a thumbnail obtained by reducing a captured image is used as a small image. However, the small image is not limited to a thumbnail. For example, the captured image may be reduced to a VGA size (640 × 480 pixels) to generate a small image. In addition, the size of the small image can be set as appropriate, and the small image may be generated by performing reduction processing to a predetermined size smaller than the captured image.

また、上記した実施の形態でCPU21が行うこととして説明した処理の一部または全部を、ハードウェアで実現することもできる。一方、画像処理部18や器官検出部20等をハードウェアで実現する構成について説明したが、所定のプログラムを実行することによってソフトウェアとして実現することとしてもよい。   Further, part or all of the processing described as being performed by the CPU 21 in the above-described embodiment can be realized by hardware. On the other hand, the configuration in which the image processing unit 18, the organ detection unit 20, and the like are realized by hardware has been described, but may be realized as software by executing a predetermined program.

また、上記実施の形態では、撮像装置の具体例としてデジタルカメラを例にとって説明したが、これに限定されるものではなく、携帯電話のカメラ部やPC付属のカメラ部に適用してもよい。そして、静止画像データを加工して補正処理する場合について説明したが、補正処理の対象は静止画像データに限定されるものではなく、動画像データに対しても同様に適用できる。   In the above embodiment, a digital camera has been described as a specific example of the imaging apparatus. However, the present invention is not limited to this, and the present invention may be applied to a camera unit of a mobile phone or a camera unit attached to a PC. The case where the correction processing is performed by processing still image data has been described, but the target of the correction processing is not limited to still image data, and can be similarly applied to moving image data.

デジタルカメラの背面図である。It is a rear view of a digital camera. デジタルカメラのシステム構成を示すブロック図である。It is a block diagram which shows the system configuration | structure of a digital camera. 演出処理の原理を説明する図である。It is a figure explaining the principle of effect processing. 演出処理の原理を説明する他の図である。It is another figure explaining the principle of effect processing. デジタルカメラの基本動作を示すフローチャートである。3 is a flowchart showing basic operations of the digital camera. 撮影処理の詳細な処理手順を示すフローチャートである。It is a flowchart which shows the detailed process sequence of an imaging | photography process. 補正付き画像処理の詳細な処理手順を示すフローチャートである。It is a flowchart which shows the detailed process sequence of an image process with a correction | amendment. 補正付き本画像処理の詳細な処理手順を示すフローチャートである。It is a flowchart which shows the detailed process sequence of this image process with a correction | amendment. 補正付き画像ファイルのデータ構成例を示す図である。It is a figure which shows the data structural example of the image file with a correction | amendment. 再生処理の詳細な処理手順を示すフローチャートである。It is a flowchart which shows the detailed process sequence of a reproduction | regeneration process.

符号の説明Explanation of symbols

1 デジタルカメラ
3 レリーズスイッチ
4 パワースイッチ
5 メニュースイッチ
6 十字キー
7 OKスイッチ
8 再生スイッチ
10 撮像部
11 撮像素子
12 レンズ系ユニット
13 レンズ駆動回路
14 撮像回路
15 SDRAM
16 AE部
17 AF部
18 画像処理部
181 補正付き本画像処理部
183 演出用画像処理部
20 器官検出部
21 CPU
211 演出処理部
22 内蔵メモリ
23 表示部
24 表示駆動回路
25 通信I/F
26 操作部
27 着脱メモリ
28 電源回路
29 電池
30 バス
DESCRIPTION OF SYMBOLS 1 Digital camera 3 Release switch 4 Power switch 5 Menu switch 6 Four-way controller 7 OK switch 8 Playback switch 10 Image pick-up part 11 Image pick-up element 12 Lens system unit 13 Lens drive circuit 14 Image pick-up circuit 15 SDRAM
16 AE section 17 AF section 18 Image processing section 181 Main image processing section with correction 183 Production image processing section 20 Organ detection section 21 CPU
211 Production Processing Unit 22 Built-in Memory 23 Display Unit 24 Display Drive Circuit 25 Communication I / F
26 Operation Unit 27 Detachable Memory 28 Power Supply Circuit 29 Battery 30 Bus

Claims (10)

被写体像を光電変換して画像データを生成する撮像部と、
前記撮像部によって生成された画像データを縮小処理した小画像データを生成する小画像生成部と、
前記画像データ中および/または前記小画像生成部によって生成された小画像データ中の顔を検出する顔検出部と、
前記顔検出部による顔検出結果をもとに、前記画像データ中の顔の領域に対して所定の補正処理を行った補正付き画像データを生成する補正付き本画像処理部と、
前記顔検出部による顔検出結果をもとに、前記小画像データ中の顔の領域に対して前記補正処理を行った処理小画像データを生成する小画像処理部と、
前記補正付き本画像処理部による処理と並行して、前記処理小画像データを用いた演出処理を行う演出処理部と、
を備えることを特徴とする撮像装置。
An imaging unit that photoelectrically converts a subject image to generate image data;
A small image generation unit that generates small image data obtained by reducing the image data generated by the imaging unit;
A face detection unit for detecting a face in the image data and / or in the small image data generated by the small image generation unit;
A corrected main image processing unit that generates corrected image data obtained by performing a predetermined correction process on a face region in the image data based on a face detection result by the face detection unit;
A small image processing unit that generates processing small image data obtained by performing the correction processing on a face region in the small image data based on a face detection result by the face detection unit;
In parallel with the processing by the corrected main image processing unit, an effect processing unit that performs effect processing using the processed small image data;
An imaging apparatus comprising:
前記小画像処理部は、前記小画像データ中の顔の領域に対し、前記補正処理を段階的に行って複数の段階処理小画像データを生成し、
前記演出処理部は、前記演出処理として、前記複数の段階処理小画像データを動画表示する処理を行うことを特徴とする請求項1に記載の撮像装置。
The small image processing unit performs the correction process stepwise on the face area in the small image data to generate a plurality of step processed small image data,
The imaging apparatus according to claim 1, wherein the effect processing unit performs a process of displaying the plurality of step-processed small image data as moving images as the effect process.
前記補正付き本画像処理部は、前記画像データ中の顔の領域に対して複数種類の補正処理を行い、
前記小画像処理部は、前記小画像データ中の顔の領域に対して前記複数種類の補正処理を順次行い、前記複数の段階処理小画像データを生成することを特徴とする請求項2に記載の撮像装置。
The main image processing unit with correction performs a plurality of types of correction processing on the face area in the image data,
The small image processing unit sequentially performs the plurality of types of correction processing on a face region in the small image data to generate the plurality of step-processed small image data. Imaging device.
前記演出処理部は、前記演出処理として、前記複数の段階処理小画像データのうちの少なくともいずれかの段階処理小画像データ間に所定の背景画像データを挿入して動画表示する処理を行うことを特徴とする請求項2に記載の撮像装置。   The effect processing unit performs a process of inserting predetermined background image data between at least one of the plurality of step-processed small image data and displaying a moving image as the effect process. The imaging apparatus according to claim 2, characterized in that: 前記小画像処理部は、前記処理小画像データの大きさを変更する処理、前記処理小画像データの一部分を切り出す処理、前記処理小画像データを異なる回転量で回転させる処理および前記処理小画像データの外形形状を変更する処理の少なくともいずれかの処理を行って前記処理小画像データの形態を変更し、
前記演出処理部は、前記演出処理として、前記形態が変更された前記処理小画像データを表示する処理を行うことを特徴とする請求項1に記載の撮像装置。
The small image processing unit includes a process for changing the size of the processed small image data, a process for cutting out a part of the processed small image data, a process for rotating the processed small image data with different rotation amounts, and the processed small image data. Change the form of the processed small image data by performing at least one of the processes of changing the outer shape of
The imaging apparatus according to claim 1, wherein the effect processing unit performs a process of displaying the processed small image data in which the form has been changed as the effect process.
前記小画像処理部は、前記処理小画像データ中の顔の領域の近傍位置に所定のテンプレートを合成し、
前記演出処理部は、前記演出処理として、前記所定のテンプレートが合成された前記小画像データを表示する処理を行うことを特徴とする請求項1に記載の撮像装置。
The small image processing unit synthesizes a predetermined template at a position near the face area in the processed small image data,
The imaging apparatus according to claim 1, wherein the effect processing unit performs a process of displaying the small image data in which the predetermined template is combined as the effect process.
前記補正付き画像データと前記処理小画像データとを対応付けて記録する記録部を備えることを特徴とする請求項1に記載の撮像装置。   The imaging apparatus according to claim 1, further comprising a recording unit that records the corrected image data and the processed small image data in association with each other. 前記顔検出部は、前記小画像データ中の顔を検出し、
前記補正付き本画像処理部は、前記顔検出部が前記小画像データについて行った顔検出結果をもとに前記画像データ中の対応する位置を顔の領域として特定し、特定した顔の領域に対して前記補正処理を行うことを特徴とする請求項1に記載の撮像装置。
The face detection unit detects a face in the small image data,
The main image processing unit with correction specifies a corresponding position in the image data as a face region based on a face detection result performed on the small image data by the face detection unit, and sets the specified face region. The imaging apparatus according to claim 1, wherein the correction process is performed on the imaging apparatus.
被写体像を光電変換して画像データを生成する撮像部を備えた撮像装置における画像処理方法であって、
前記撮像部によって生成された画像データを縮小処理した小画像データを生成する小画像生成工程と、
前記画像データ中および/または前記小画像生成工程で生成された小画像データ中の顔を検出する顔検出工程と、
前記顔検出工程での顔検出結果をもとに、前記画像データ中の顔の領域に対して所定の補正処理を行った補正付き画像データを生成する補正付き本画像処理工程と、
前記顔検出工程での顔検出結果をもとに、前記小画像データ中の顔の領域に対して前記補正処理を行った処理小画像データを生成する小画像処理工程と、
前記補正付き本画像処理工程の処理と並行して、前記処理小画像データを用いた演出処理を行う演出処理工程と、
を含むことを特徴とする撮像装置における画像処理方法。
An image processing method in an imaging device including an imaging unit that photoelectrically converts a subject image to generate image data,
A small image generation step of generating small image data obtained by reducing the image data generated by the imaging unit;
A face detection step of detecting a face in the image data and / or in the small image data generated in the small image generation step;
Based on the face detection result in the face detection step, a corrected main image processing step for generating corrected image data obtained by performing a predetermined correction process on the face area in the image data;
Based on the face detection result in the face detection step, a small image processing step of generating processed small image data obtained by performing the correction processing on the face region in the small image data;
In parallel with the processing of the corrected main image processing step, the effect processing step of performing the effect processing using the processed small image data,
An image processing method in an imaging apparatus, comprising:
被写体像を光電変換して画像データを生成する撮像部を備えた撮像装置のコンピュータに、
前記撮像部によって生成された画像データを縮小処理した小画像データを生成する小画像生成ステップと、
前記画像データ中および/または前記小画像生成ステップで生成された小画像データ中の顔を検出する顔検出ステップと、
前記顔検出ステップでの顔検出結果をもとに、前記画像データ中の顔の領域に対して所定の補正処理を行った補正付き画像データを生成する補正付き本画像処理ステップと、
前記顔検出ステップでの顔検出結果をもとに、前記小画像データ中の顔の領域に対して前記補正処理を行った処理小画像データを生成する小画像処理ステップと、
前記補正付き本画像処理ステップの処理と並行して、前記処理小画像データを用いた演出処理を行う演出処理ステップと、
を実行させることを特徴とする画像処理プログラム。
In a computer of an imaging apparatus having an imaging unit that photoelectrically converts a subject image to generate image data,
A small image generation step of generating small image data obtained by reducing the image data generated by the imaging unit;
A face detection step of detecting a face in the image data and / or in the small image data generated in the small image generation step;
Based on the face detection result in the face detection step, a corrected main image processing step for generating corrected image data obtained by performing a predetermined correction process on the face area in the image data;
A small image processing step for generating processed small image data obtained by performing the correction processing on a face region in the small image data based on the face detection result in the face detecting step;
In parallel with the main image processing step with correction, an effect processing step for performing an effect process using the processed small image data;
An image processing program for executing
JP2008313212A 2008-12-09 2008-12-09 Imaging device, image processing method in the imaging device and image processing program Pending JP2010141399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008313212A JP2010141399A (en) 2008-12-09 2008-12-09 Imaging device, image processing method in the imaging device and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008313212A JP2010141399A (en) 2008-12-09 2008-12-09 Imaging device, image processing method in the imaging device and image processing program

Publications (1)

Publication Number Publication Date
JP2010141399A true JP2010141399A (en) 2010-06-24

Family

ID=42351168

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008313212A Pending JP2010141399A (en) 2008-12-09 2008-12-09 Imaging device, image processing method in the imaging device and image processing program

Country Status (1)

Country Link
JP (1) JP2010141399A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012030500A (en) * 2010-07-30 2012-02-16 Canon Inc Printing processing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012030500A (en) * 2010-07-30 2012-02-16 Canon Inc Printing processing apparatus

Similar Documents

Publication Publication Date Title
JP2010147808A (en) Imaging apparatus and image processing method in same
JP5350928B2 (en) Camera and camera control method
US8116536B2 (en) Face detection device, imaging apparatus, and face detection method
US20080050022A1 (en) Face detection device, imaging apparatus, and face detection method
US9118844B2 (en) Imaging apparatus, image processing apparatus, and imaging method for providing a special effect superimposing still image data on moving image data
JP6116299B2 (en) Imaging apparatus and control method thereof
KR20130071793A (en) Digital photographing apparatus splay apparatus and control method thereof
JP5009204B2 (en) Image capturing apparatus and image composition method in image capturing apparatus
JP2007299297A (en) Image composition device and control method thereof
CN102289785B (en) Image processing apparatus and image processing method
JP2010021795A (en) Image capturing apparatus, correction controller, correction control method, and program
JP2007158868A (en) Image processing apparatus and method thereof
JP2006352229A (en) Digital camera
JP2009081786A (en) Imaging apparatus, subject separating method, and program
JP2012257112A (en) Imaging apparatus and program
JP2011239267A (en) Imaging apparatus and image processing apparatus
JP2010141399A (en) Imaging device, image processing method in the imaging device and image processing program
JP5106364B2 (en) Camera, control method and control program
JP5083116B2 (en) Imaging apparatus, image processing method, and program
JP2008172395A (en) Imaging apparatus and image processing apparatus, method, and program
JP2014103644A (en) Imaging apparatus, image processing apparatus and color correcting method
JP6289068B2 (en) Imaging apparatus and control method thereof
JP2007251780A (en) Image reproducing device and program therefor
JP5734348B2 (en) Imaging device
JP2007124521A (en) Image processing apparatus