JP5441656B2 - Image processing apparatus, image processing method, and program - Google Patents

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

Info

Publication number
JP5441656B2
JP5441656B2 JP2009281522A JP2009281522A JP5441656B2 JP 5441656 B2 JP5441656 B2 JP 5441656B2 JP 2009281522 A JP2009281522 A JP 2009281522A JP 2009281522 A JP2009281522 A JP 2009281522A JP 5441656 B2 JP5441656 B2 JP 5441656B2
Authority
JP
Japan
Prior art keywords
scene
determination result
count
set value
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009281522A
Other languages
Japanese (ja)
Other versions
JP2011124845A (en
Inventor
真也 瓜阪
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2009281522A priority Critical patent/JP5441656B2/en
Publication of JP2011124845A publication Critical patent/JP2011124845A/en
Application granted granted Critical
Publication of JP5441656B2 publication Critical patent/JP5441656B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)

Description

本発明は、デジタルスチルカメラやデジタルビデオカメラ等の画像処理装置、画像処理方法及びプログラムに関し、特に、現在の撮影状態の検出結果からシーン判定を行い、判定されたシーンに基づき画像補正等の画像処理を行う画像処理装置、画像処理方法及びプログラムに関する。 The present invention relates to an image processing apparatus , an image processing method, and a program such as a digital still camera and a digital video camera. The present invention relates to an image processing apparatus that performs processing, an image processing method, and a program.

従来、この種の画像処理装置では、撮影するシーンごとに適正な画質補正が異なるため、画像中に含まれる色情報や輝度情報を解析して撮影シーンを自動的に判定し、判定結果に応じて画質補正を行うものが提案されている(特許文献1)。   Conventionally, in this type of image processing apparatus, the appropriate image quality correction varies depending on the scene to be shot. Therefore, the shooting scene is automatically determined by analyzing the color information and luminance information included in the image, and depending on the determination result. A device that performs image quality correction has been proposed (Patent Document 1).

例えば、「青空」のシーンだと判定されると、青空と思われる領域のノイズ除去レベルを強く設定し、青空の彩度が映えるように目標輝度を設定する画質補正および撮影制御が行われる。「夕景」のシーンだと判定されると、夕景と思われる領域のノイズ除去レベルを強くし、画像全体の目標輝度を低く抑えるように画質補正および撮影制御が行われる。「夜景」のシーンだと判定されると、ノイズを抑制して露光時間を長くするように画質補正および撮影制御が行われる。   For example, when it is determined that the scene is “blue sky”, image quality correction and shooting control are performed in which the noise removal level of an area considered to be blue sky is set strongly and the target luminance is set so that the saturation of the blue sky is reflected. If it is determined that the scene is an “evening scene”, image quality correction and shooting control are performed so as to increase the noise removal level of the area considered to be an evening scene and to keep the target luminance of the entire image low. If it is determined that the scene is a “night scene”, image quality correction and shooting control are performed so as to suppress the noise and increase the exposure time.

また、「青空」や「夜景」などの背景シーンに関する背景判定結果と、被写体が近い(「マクロ」)のか、あるいは被写体が「人物」であるのかなどの主被写体シーンに関する被写体判定結果とを組み合わせて、1つのシーン判定とする技術も提案されている。   Also, combining background judgment results for background scenes such as “blue sky” and “night view” with subject judgment results for main subject scenes such as whether the subject is close (“macro”) or the subject is “person” A technique for determining one scene has also been proposed.

例えば、青空をバックにした人物を撮影しようとすると、背景判定結果は「青空」、被写体判定結果は「人物」であるとし、上述した青空と判定されたときの制御に加え、人物の肌色と思われる領域のノイズ除去レベルを強く設定する。そして、顔領域の輝度の重み付けを大きくして、顔領域の輝度がより優先的に目標輝度に近づくように画質補正および撮影制御を行う。   For example, when shooting a person against a blue sky, the background determination result is “blue sky” and the subject determination result is “person”. In addition to the control when the blue sky is determined as described above, Set the noise reduction level of the area you think is strong. Then, the weighting of the brightness of the face area is increased, and image quality correction and shooting control are performed so that the brightness of the face area approaches the target brightness more preferentially.

また、青空をバックとして近接した被写体の撮影を行うと、背景判定結果は「青空」、被写体判定結果は「マクロ」であるとし、上述した青空と判定されたときの制御に加え、手ぶれ補償の対象とする画像のシフト幅を広げるよう撮影制御を行う。   In addition, when shooting a close subject with a blue sky as the background, the background determination result is “blue sky” and the subject determination result is “macro”. In addition to the control when the blue sky is determined as described above, camera shake compensation is performed. Shooting control is performed to widen the shift range of the target image.

つまり、同じ「青空」の背景判定結果が得られた場合であっても、被写体判定結果が「人物」とされた場合、「マクロ」とされた場合、あるいは、「人物」とも「マクロ」ともされなかった場合とで、撮影制御や画質補正に用いるパラメータを変更している。   That is, even if the same “blue sky” background determination result is obtained, the subject determination result is “person”, “macro”, or “person” or “macro”. The parameters used for shooting control and image quality correction are changed depending on the case where it is not performed.

特開2009−116691号公報JP 2009-116691 A

上述した従来のシーン判定では、その場面に応じた画質補正や撮影制御を行うことができるが、頻繁にシーンの判定結果が変化してしまうと、撮影制御や画質補正に用いるパラメータが変動して画像(特に動画)が見にくくなる可能性がある。   In the conventional scene determination described above, image quality correction and shooting control according to the scene can be performed. However, if the scene determination result changes frequently, parameters used for shooting control and image quality correction change. Images (especially moving images) may be difficult to see.

また、上述した従来のシーン判定では、「マクロ」や「人物」に関する被写体判定結果と、「青空」や「夜景」などの背景判定結果を組み合わせることで、不都合が生じる場合がある。   In addition, in the conventional scene determination described above, there may be inconveniences by combining the subject determination result regarding “macro” or “person” with the background determination result such as “blue sky” or “night view”.

例えば、背景判定結果として「夕景」が選択された場合、上述したように、夕景の雰囲気を強調するために、夕景と思われる領域のノイズ除去レベルを強くし、画像全体の目標輝度を低く抑えるように画質補正および撮影制御が行われる。   For example, when “evening scene” is selected as the background determination result, as described above, in order to emphasize the atmosphere of the evening scene, the noise removal level of the area considered to be the evening scene is increased, and the target luminance of the entire image is reduced. Thus, image quality correction and shooting control are performed.

反対に、被写体判定結果として「人物」が検出されると、人物の顔の輝度を明るくするための画質補正および撮影制御が行われる。つまり、人物の顔が暗ければ、この顔が明るくなるように画像全体の輝度を調整する画質補正および撮影制御が行われる。   On the other hand, when “person” is detected as the subject determination result, image quality correction and shooting control for increasing the brightness of the face of the person are performed. That is, if the face of a person is dark, image quality correction and shooting control are performed to adjust the brightness of the entire image so that the face becomes bright.

このため、夕景をバックにした人物を撮影しようとすると、背景判定結果に応じて画像全体の目標輝度を抑えようとするのに対し、被写体判定結果に応じて画像全体の目標輝度を上げようとする不具合が生じる。   For this reason, when trying to shoot a person with a sunset background, the target luminance of the entire image is suppressed according to the background determination result, whereas the target luminance of the entire image is increased according to the subject determination result. A malfunction occurs.

また、例えば、赤い壁やオブジェが多く、かつ、全体的に暗い店内で人物を撮影する場合、「夕景」以外の背景判定結果と、「暗い(屋内)」という背景判定結果とが、入れ替わりやすい状況になることが考えられる。   Also, for example, when a person is photographed in a shop with many red walls and objects and is generally dark, the background determination result other than “evening scene” and the background determination result “dark (indoor)” are easily interchanged. The situation can be considered.

このとき、「暗い(屋内)」という背景判定結果が得られた場合には、被写体判定として「人物」の有無の判定が行われることもある。このため、被写体自体はあまり変化してしないにも関わらず、「夕景」と「暗い(屋内)+人物」という相容れないシーン判定結果が入れ替わる状況が生じてしまう。その結果、同じ状況下であるにも関わらず、画質補正や撮影制御の内容が大きく変化してしまうことを繰り返すおそれがある。   At this time, if a background determination result of “dark (indoor)” is obtained, the presence / absence of “person” may be determined as subject determination. For this reason, although the subject itself has not changed much, a situation occurs in which the incompatible scene determination results of “evening scene” and “dark (indoor) + person” are interchanged. As a result, there is a possibility that the contents of the image quality correction and the shooting control are greatly changed despite the same situation.

そこで、本発明は、相容れないシーン間で判定結果が頻繁に変化するのを回避して、シーン判定の安定性を向上させることができる画像処理装置、画像処理方法及びプログラムを提供することを目的とする。 Accordingly, the present invention is incompatible scene between the determination result to avoid frequent changes, the scene determination stability image processing apparatus that can be improved, and aims to provide an image processing method and program And

上記目的を達成するために、本発明の画像処理装置は、撮像手段により撮像された画像の第1のシーンについて判定を行うものであって、前記第1のシーンに含まれるシーンのそれぞれに対して、シーンの条件を連続して満たした回数をカウントし、前記カウントが設定値に達した場合に、前記第1のシーンの判定結果を前記カウントが設定値に達したシーンに切り替える第1の判定処理手段と、前記撮像手段により撮像された画像の第2のシーンについて判定を行うものであって、前記第2のシーンに含まれるシーンのそれぞれに対して、シーンの条件を連続して満たした回数をカウントし、前記カウントが設定値に達した場合に、前記第2のシーンの判定結果を前記カウントが設定値に達したシーンに切り替える第2の判定処理手段と、前記第1の判定処理手段により得られる判定結果及び前記第2の判定処理手段により得られる判定結果に基づいて、前記撮像手段により撮像された画像に対して画像処理を行う画像処理部を制御する制御手段と、を備え、前記2の判定処理手段が、前記第2のシーンに含まれる特定のシーンの条件を満たすと判断した、あるいは、前記第2のシーンに含まれる特定のシーンのカウントが前記設定値よりも小さな所定値に達したと判断した場合に、前記第1の判定処理手段は、前記第1のシーンに含まれるシーンのカウントをリセットすることを特徴とする。 In order to achieve the above object, an image processing apparatus according to the present invention performs a determination on a first scene of an image captured by an imaging unit, and each scene included in the first scene is determined. The number of times the scene condition is continuously satisfied is counted, and when the count reaches a set value, the determination result of the first scene is switched to the scene where the count has reached the set value. A determination processing unit and a second scene of the image captured by the imaging unit are determined, and the scene condition is continuously satisfied for each of the scenes included in the second scene. A second determination processing means for switching the determination result of the second scene to a scene where the count has reached the set value when the count reaches a set value; Based on the determination result obtained by the first determination processing unit and the determination result obtained by the second determination processing unit, an image processing unit that performs image processing on the image captured by the imaging unit is controlled. Control means, wherein the second determination processing means determines that a condition of a specific scene included in the second scene is satisfied, or counts a specific scene included in the second scene Is determined to have reached a predetermined value smaller than the set value, the first determination processing unit resets the count of scenes included in the first scene.

本発明によれば、相容れないシーン間で判定結果が頻繁に変化するのを回避して、シーン判定の安定性を向上させることができる。   According to the present invention, it is possible to avoid frequent changes in determination results between incompatible scenes, and to improve the stability of scene determination.

本発明の画像処理装置の実施形態の一例に係る撮像装置の概観を示す斜視図である。1 is a perspective view illustrating an overview of an imaging apparatus according to an example of an embodiment of an image processing apparatus of the present invention. 撮像装置の制御系を説明するための概略ブロック図である。It is a schematic block diagram for demonstrating the control system of an imaging device. カメラ制御部による背景判定処理について説明するためのフローチャート図である。It is a flowchart for demonstrating the background determination process by a camera control part. カメラ制御部による背景判定結果の切り替え処理について説明するためのフローチャート図である。It is a flowchart figure for demonstrating the switching process of the background determination result by a camera control part. カメラ制御部による被写体判定処理について説明するためのフローチャート図である。It is a flowchart for demonstrating the object determination process by a camera control part. カメラ制御部によるシーン判定処理について説明するためのフローチャート図である。It is a flowchart for demonstrating the scene determination process by a camera control part. 背景判定結果と被写体判定結果の組み合わせ例を示す図である。It is a figure which shows the example of a combination of a background determination result and a subject determination result.

以下、本発明の実施形態の一例を図面を参照して説明する。   Hereinafter, an example of an embodiment of the present invention will be described with reference to the drawings.

図1は、本発明の画像処理装置の実施形態の一例に係る撮像装置の概観を示す斜視図である。   FIG. 1 is a perspective view showing an overview of an imaging apparatus according to an example of an embodiment of an image processing apparatus of the present invention.

図1に示すように、本実施形態の撮像装置120は、前面部にレンズ部121が配置され、背面部に電子式ビューファインダ(EVF)123及び動画撮影の開始および終了を指示するための操作スイッチである動画用トリガースイッチ124が配置されている。撮像装置120の上面部には、撮影時の音声を記録するマイク122及び静止画撮影の開始および終了を指示するための操作スイッチである静止画用トリガースイッチ125が配置されている。   As shown in FIG. 1, the imaging apparatus 120 according to the present embodiment includes a lens unit 121 disposed on the front surface, and an operation for instructing the start and end of the electronic viewfinder (EVF) 123 and moving image shooting on the rear surface. A moving image trigger switch 124 as a switch is arranged. On the upper surface of the imaging device 120, a microphone 122 that records sound at the time of shooting and a still image trigger switch 125 that is an operation switch for instructing start and end of still image shooting are arranged.

また、撮像装置120のレンズ部121側から見て左側の側面部には、モードダイヤル126が配置され、右側の側面部には、操作スイッチ群127、表示部128、再生音声を出力するスピーカ129、バッテリ130(着脱可能)が配置されている。   In addition, a mode dial 126 is disposed on the left side as viewed from the lens unit 121 side of the imaging device 120, and an operation switch group 127, a display unit 128, and a speaker 129 for outputting reproduced sound are provided on the right side. A battery 130 (detachable) is arranged.

操作スイッチ群127には、ホワイトバランスモードを入力するためのキー、その他のメニュー操作や再生操作等のためのキーが配置されている。表示部128は、液晶パネル等で構成され、電子式ビューファインダ123と同様に、カメラ撮影時には被写体像の確認、再生時には再生画像の表示等に使用される。また、表示部128は、撮像装置120の本体に対して開閉可能、かつ開状態で回転可能に支持されている。   The operation switch group 127 includes keys for inputting a white balance mode, and other keys for menu operation, reproduction operation, and the like. The display unit 128 is configured by a liquid crystal panel or the like, and is used for confirming a subject image when photographing with a camera and displaying a reproduced image during reproduction, as with the electronic viewfinder 123. The display unit 128 is supported so as to be openable and closable with respect to the main body of the imaging device 120 and to be rotatable in the open state.

図2は、撮像装置120の制御系を説明するための概略ブロック図である。   FIG. 2 is a schematic block diagram for explaining a control system of the imaging apparatus 120.

図2において、図1のレンズ部121を構成するレンズ101の像面側には、絞り102が配置されている。レンズ101及び絞り102を通過した被写体光は、CCDセンサやCMOSセンサ等の撮像素子105に結像して光電変換され、画像信号として信号処理部112の画像処理部108に出力される。   In FIG. 2, a diaphragm 102 is disposed on the image plane side of the lens 101 constituting the lens unit 121 of FIG. The subject light that has passed through the lens 101 and the diaphragm 102 forms an image on the image sensor 105 such as a CCD sensor or a CMOS sensor, undergoes photoelectric conversion, and is output to the image processing unit 108 of the signal processing unit 112 as an image signal.

画像処理部108は、撮像素子105から取得した画像信号に対してホワイトバランス補正処理、ノイズ除去処理、エッジ強調処理、彩度補正処理、ガンマ補正処理等を施した後、表示部128、情報検出部110或いは記録媒体117に出力する。記録媒体117としては、例えば、磁気テープ、DVDディスクあるいはメモリカード等がある。   The image processing unit 108 performs white balance correction processing, noise removal processing, edge enhancement processing, saturation correction processing, gamma correction processing, and the like on the image signal acquired from the image sensor 105, and then displays the information on the display unit 128. Output to the unit 110 or the recording medium 117. Examples of the recording medium 117 include a magnetic tape, a DVD disk, or a memory card.

情報検出部110は、画像処理部108から取得した画像データに対して輝度、色、フォーカス、被写体距離、防振、顔等のカメラ情報を検出し、検出結果をカメラ制御部111に出力する。   The information detection unit 110 detects camera information such as luminance, color, focus, subject distance, image stabilization, and face from the image data acquired from the image processing unit 108 and outputs the detection result to the camera control unit 111.

なお、顔の検出処理として、公知の方法、例えば、画像データで表される各画素の階調色から肌色領域を抽出し、予め記録した顔の輪郭プレートとのマッチング度で顔を検出する方法がある。また、周知のパターン認識技術を用いて、目、鼻、口等の顔の特徴点を抽出することで顔を検出する方法等があるが、特に限定されない。   As a face detection process, a known method, for example, a method of extracting a skin color region from the gradation color of each pixel represented by image data and detecting the face with a matching degree with a face contour plate recorded in advance. There is. In addition, there is a method for detecting a face by extracting feature points of a face such as eyes, nose, and mouth using a known pattern recognition technique, but the method is not particularly limited.

カメラ制御部111は、情報検出部110から取得した、輝度、色、フォーカス、被写体距離、防振、顔等のカメラ情報の検出結果に基づき、背景判定処理および被写体判定処理を行い、背景判定と被写体判定との組み合わせにより、撮影シーンを判定する。また、カメラ制御部111は、判定したシーンに基づき、ホワイトバランス補正値、ノイズ除去レベル、エッジ強調値、彩度補正レベル、及びガンマ補正値の少なくともいずれかを算出する。   The camera control unit 111 performs background determination processing and subject determination processing based on detection results of camera information such as luminance, color, focus, subject distance, image stabilization, and face acquired from the information detection unit 110, and performs background determination and A shooting scene is determined by a combination with subject determination. The camera control unit 111 calculates at least one of a white balance correction value, a noise removal level, an edge enhancement value, a saturation correction level, and a gamma correction value based on the determined scene.

そして、カメラ制御部111は、算出したホワイトバランス補正値を用いて、画像を撮影するためのホワイトバランス制御を行い、画像のホワイトバランスが適正になるように画像処理部108を制御する。また、カメラ制御部111は、算出したノイズ除去レベル、エッジ強調値を用いて、画像のノイズを抑圧するとともに輪郭強調を行い、画像の解像感が適正になるように画像処理部108を制御する。   Then, the camera control unit 111 performs white balance control for capturing an image using the calculated white balance correction value, and controls the image processing unit 108 so that the white balance of the image becomes appropriate. In addition, the camera control unit 111 controls the image processing unit 108 so as to suppress image noise and perform edge enhancement using the calculated noise removal level and edge enhancement value so that the sense of resolution of the image becomes appropriate. To do.

更に、カメラ制御部111は、算出したガンマ補正値を用いて、画像の階調性、コントラストが適正になるように画像処理部108を制御する。なお、カメラ制御部111による背景判定処理、被写体判定処理、シーン判定処理については、後述する。   Furthermore, the camera control unit 111 uses the calculated gamma correction value to control the image processing unit 108 so that the gradation and contrast of the image are appropriate. Note that background determination processing, subject determination processing, and scene determination processing by the camera control unit 111 will be described later.

また、カメラ制御部111は、センサ駆動部106を介して撮像素子105の電荷の蓄積、読み出しなどの制御を行い、レンズ駆動部103を介してレンズ101のフォーカス、ズームなどの制御を行う。   Further, the camera control unit 111 performs control such as charge accumulation and reading of the image sensor 105 via the sensor driving unit 106, and performs control such as focusing and zooming of the lens 101 via the lens driving unit 103.

また、カメラ制御部111は、撮像素子105で撮像された画像データから求められる被写体の輝度情報を用いて、絞り駆動部104を介して絞り102の制御を行い、また、センサ駆動部106を介してシャッタ速度の制御を行うことで、露出制御を行う。更に、カメラ制御部111は、レンズ駆動部103を介してレンズ101を駆動するか、或いは信号処理部112を制御することで、撮影時の手ぶれを補正する。   The camera control unit 111 controls the aperture 102 via the aperture drive unit 104 using the luminance information of the subject obtained from the image data captured by the image sensor 105, and also uses the sensor drive unit 106. The exposure is controlled by controlling the shutter speed. Further, the camera control unit 111 corrects camera shake during shooting by driving the lens 101 via the lens driving unit 103 or by controlling the signal processing unit 112.

次に、図3を参照して、カメラ制御部111による背景判定処理について説明する。図3での各処理は、不図示のROM等の記憶手段に記憶されたプログラムがRAMにロードされて、カメラ制御部111のCPU等により実行される。   Next, background determination processing by the camera control unit 111 will be described with reference to FIG. Each process in FIG. 3 is executed by the CPU or the like of the camera control unit 111 by loading a program stored in a storage unit such as a ROM (not shown) into the RAM.

ステップS301では、カメラ制御部111は、情報検出部110から取得した被写体の輝度値(BV値)が予め設定された閾値Th1を超えるか否かを判断する。   In step S301, the camera control unit 111 determines whether or not the luminance value (BV value) of the subject acquired from the information detection unit 110 exceeds a preset threshold value Th1.

そして、カメラ制御部111は、輝度値(BV値)が閾値Th1を超える場合は、ステップS307に進み、輝度値(BV値)が閾値Th1以下の場合は、ステップS302に進む。   If the luminance value (BV value) exceeds the threshold value Th1, the camera control unit 111 proceeds to step S307. If the luminance value (BV value) is equal to or less than the threshold value Th1, the camera control unit 111 proceeds to step S302.

ステップS302では、カメラ制御部111は、画像全体から作成した輝度ヒストグラムが所定の条件を満たすか否かを判断することで夜景か否かを判定する。   In step S <b> 302, the camera control unit 111 determines whether or not it is a night scene by determining whether or not a luminance histogram created from the entire image satisfies a predetermined condition.

そして、カメラ制御部111は、夜景と判定した場合は、ステップS304で背景判定結果を「夜景」とし、夜景でないと判定した場合は、ステップS303に進む。   If the camera control unit 111 determines that the scene is a night view, the background determination result is “night scene” in step S304. If the camera control unit 111 determines that the scene is not a night scene, the process proceeds to step S303.

ステップS303では、カメラ制御部111は、局部的に輝度の高い領域が存在するか否かを判断することでスポットライトか否かを判定する。   In step S <b> 303, the camera control unit 111 determines whether or not the spotlight is a local light by determining whether or not there is a region with high brightness.

そして、カメラ制御部111は、スポットライトであると判定した場合は、ステップS305で背景判定結果を「スポットライト」とし、スポットライトでないと判定した場合は、ステップS306で背景判定結果を「暗い(屋内)」とする。   If the camera control unit 111 determines that the light is a spotlight, the background determination result is “spotlight” in step S305. If the camera control unit 111 determines that the light is not a spotlight, the background determination result is “dark” in step S306. Indoor) ”.

一方、ステップS307では、カメラ制御部111は、赤色成分領域および輝度値が閾値以下である暗部領域が、画像上で所定の順および面積で配列されているか否かを判断することで夕景か否かを判定する。   On the other hand, in step S307, the camera control unit 111 determines whether or not the red component area and the dark area whose luminance value is equal to or less than the threshold value are arranged in a predetermined order and area on the image. Determine whether.

そして、カメラ制御部111は、夕景であれば、ステップS308で背景判定結果を「夕景」とし、夕景でなければ、ステップS309に進む。   If it is an evening scene, the camera control unit 111 sets the background determination result to “evening scene” in step S308. If not, the process proceeds to step S309.

ステップS309では、カメラ制御部111は、画像の中央部の輝度値が周辺部の輝度値よりも所定の閾値以上暗いか否かを判断することで逆光か否かを判定する。   In step S309, the camera control unit 111 determines whether the backlight is back by determining whether the brightness value at the center of the image is darker than the brightness value at the periphery by a predetermined threshold or more.

そして、カメラ制御部111は、逆光である場合は、ステップS310に進み、逆光でない場合は、ステップS315に進む。   If the camera control unit 111 is backlit, the process proceeds to step S310. If not, the process proceeds to step S315.

ステップS310では、カメラ制御部111は、青空としての色を満たす領域が所定面積以上存在しているか否かを判断することで青空か否かを判定する。   In step S310, the camera control unit 111 determines whether there is a blue sky by determining whether a region that satisfies the color as a blue sky exists in a predetermined area or more.

そして、カメラ制御部111は、青空シーンである場合は、ステップS311で背景判定結果を「逆光青空」とし、青空シーンでない場合は、ステップS312に進む。   If it is a blue sky scene, the camera control unit 111 sets the background determination result to “backlit blue sky” in step S311. If it is not a blue sky scene, the camera control unit 111 proceeds to step S312.

ステップS312では、カメラ制御部111は、画像から色相ヒストグラムを生成し、所定の閾値以上となる色相が所定値以上存在するか否かを判断することで鮮やか否かを判定する。   In step S <b> 312, the camera control unit 111 generates a hue histogram from the image, and determines whether or not the hue is vivid by determining whether or not a hue that is equal to or greater than a predetermined threshold exists.

そして、カメラ制御部111は、鮮やかと判定した場合は、ステップS313で背景判定結果を「逆光鮮やか」とし、鮮やかでないと判定した場合は、ステップS314で背景判定結果を「逆光」とする。   If the camera control unit 111 determines that the background is bright, the background determination result is “backlit vivid” in step S313, and if it is not bright, the background determination result is “backlight” in step S314.

一方、ステップS315では、カメラ制御部111は、青空としての色を満たす領域が所定面積以上存在しているか否かを判定することで青空か否かを判定する。   On the other hand, in step S315, the camera control unit 111 determines whether there is a blue sky by determining whether a region satisfying a color as a blue sky exists in a predetermined area or more.

そして、カメラ制御部111は、青空と判定した場合は、ステップS316で背景判定結果を「青空」とし、青空でないと判定した場合は、ステップS317に進む。   If the camera control unit 111 determines that the sky is blue, the background determination result is “blue sky” in step S316. If the camera control unit 111 determines that the sky is not blue, the process proceeds to step S317.

ステップS317では、カメラ制御部111は、画像から色相ヒストグラムを生成し、閾値以上となる色相が所定値以上存在するか否かを判断することで鮮やかか否かを判定する。   In step S <b> 317, the camera control unit 111 generates a hue histogram from the image, and determines whether the hue that is equal to or greater than the threshold is greater than or equal to a predetermined value, thereby determining whether the image is vivid.

そして、カメラ制御部111は、鮮やかと判定した場合は、ステップS318で背景判定結果を「鮮やか」とし、鮮やかでなと判定した場合は、ステップS319で背景判定結果を「明るい」とする。   If the camera control unit 111 determines that the background is bright, the background determination result is “bright” in step S318. If the camera control unit 111 determines that the background is bright, the camera control unit 111 sets the background determination result to “bright” in step S319.

ここで、本実施形態では、シーン判定結果が頻繁に入れ替わることを抑制するため、同一の背景判定結果が連続して所定回数以上得られた場合に、初めてそのシーンの背景判定結果に応じた画質補正および撮影制御に切り替えるようにしている。   Here, in the present embodiment, in order to prevent the scene determination result from being frequently replaced, when the same background determination result is continuously obtained a predetermined number of times or more, the image quality corresponding to the background determination result of the scene is not changed for the first time. Switch to correction and shooting control.

次に、図4を参照して、カメラ制御部111による背景判定結果の切り替え処理について説明する。図4での各処理は、不図示のROM等の記憶手段に記憶されたプログラムがRAMにロードされて、カメラ制御部111のCPU等により実行される。なお、図4では、図3のステップS304、ステップS305、ステップS308の処理をそれぞれステップS401、ステップS404、ステップS407に置き換えた場合を例に採る。ここで、図3及び図4における処理は、画像の第1のシーンを判定する本発明の第1の判定処理手段の一例に相当する。   Next, a background determination result switching process performed by the camera control unit 111 will be described with reference to FIG. Each process in FIG. 4 is executed by the CPU or the like of the camera control unit 111 by loading a program stored in a storage unit such as a ROM (not shown) into the RAM. 4 exemplifies a case where the processes in steps S304, S305, and S308 in FIG. 3 are replaced with steps S401, S404, and S407, respectively. Here, the processing in FIGS. 3 and 4 corresponds to an example of the first determination processing means of the present invention for determining the first scene of the image.

図4(a)のステップS401では、カメラ制御部111は、背景判定結果が「夜景」であるため、夜景用カウンタCnをインクリメントし、ステップS402に進む。   In step S401 in FIG. 4A, since the background determination result is “night scene”, the camera control unit 111 increments the night scene counter Cn, and the process proceeds to step S402.

ステップS402では、カメラ制御部111は、夜景用カウンタCnの値があらかじめ設定された設定値Nを超えるか否かを判断する。   In step S402, the camera control unit 111 determines whether or not the value of the night view counter Cn exceeds a preset setting value N.

そして、カメラ制御部111は、夜景用カウンタCnの値が設定値Nを超える場合は、ステップS403に進む。また、カメラ制御部111は、夜景用カウンタCnの値が設定値N以下の場合は、背景判定結果を変更せず、前回の背景判定結果に応じた画質補正パラメータと撮影制御パラメータを維持する。   If the value of the night view counter Cn exceeds the set value N, the camera control unit 111 proceeds to step S403. In addition, when the value of the night view counter Cn is equal to or less than the set value N, the camera control unit 111 does not change the background determination result and maintains the image quality correction parameter and the shooting control parameter according to the previous background determination result.

ステップS403では、カメラ制御部111は、背景判定結果を前回のものから「夜景」へと切替え、画質補正パラメータと撮影制御パラメータを「夜景」に応じた値に変更する。   In step S403, the camera control unit 111 switches the background determination result from the previous one to “night scene”, and changes the image quality correction parameter and the shooting control parameter to values corresponding to “night scene”.

図4(b)のステップS404では、カメラ制御部111は、背景判定結果が「スポットライト」であるため、スポットライト用カウンタCspをインクリメントし、ステップS405に進む。   In step S404 of FIG. 4B, since the background determination result is “spotlight”, the camera control unit 111 increments the spotlight counter Csp and proceeds to step S405.

ステップS405では、カメラ制御部111は、スポットライト用カウンタCspの値があらかじめ設定された設定値Nを超えるか否かを判断する。   In step S405, the camera control unit 111 determines whether or not the value of the spotlight counter Csp exceeds a preset setting value N.

そして、カメラ制御部111は、スポットライト用カウンタCspの値が設定値Nを超える場合は、ステップS406に進む。また、カメラ制御部111は、スポットライト用カウンタCspの値が設定値N以下の場合は、背景判定結果を変更せず、前回の背景判定結果に応じた画質補正パラメータと撮影制御パラメータを維持する。   If the value of the spotlight counter Csp exceeds the set value N, the camera control unit 111 proceeds to step S406. Further, when the value of the spotlight counter Csp is equal to or smaller than the set value N, the camera control unit 111 does not change the background determination result and maintains the image quality correction parameter and the shooting control parameter according to the previous background determination result. .

ステップS406では、カメラ制御部111は、背景判定結果を前回のものから「スポットライト」へと切替え、画質補正パラメータと撮影制御パラメータを「スポットライト」に応じた値に変更する。   In step S406, the camera control unit 111 switches the background determination result from the previous one to “spotlight”, and changes the image quality correction parameter and the shooting control parameter to values corresponding to “spotlight”.

図4(c)のステップS407では、カメラ制御部111は、背景判定結果が「夕景」であるため、夕景用カウンタCsuをインクリメントし、ステップS408に進む。   In step S407 of FIG. 4C, since the background determination result is “evening scene”, the camera control unit 111 increments the evening scene counter Csu, and the process proceeds to step S408.

ステップS408では、カメラ制御部111は、夕景用カウンタCsuの値があらかじめ設定された設定値Nを超えるか否かを判断する。   In step S408, the camera control unit 111 determines whether or not the value of the evening scene counter Csu exceeds a preset setting value N.

そして、カメラ制御部111は、夕景用カウンタCsuの値が設定値Nを超える場合は、ステップS409に進む。また、カメラ制御部111は、夕景用カウンタCsuの値が設定値N以下の場合は、背景判定結果を変更せず、前回の背景判定結果に応じた画質補正パラメータと撮影制御パラメータを維持する。   If the value of the evening scene counter Csu exceeds the set value N, the camera control unit 111 proceeds to step S409. Further, when the value of the evening scene counter Csu is equal to or smaller than the set value N, the camera control unit 111 does not change the background determination result, and maintains the image quality correction parameter and the shooting control parameter according to the previous background determination result.

ステップS409では、カメラ制御部111は、背景判定結果を前回のものから「夕景」へと切替え、画質補正パラメータと撮影制御パラメータを「夕景」に応じた値に変更する。   In step S409, the camera control unit 111 switches the background determination result from the previous one to “evening scene”, and changes the image quality correction parameter and the shooting control parameter to values corresponding to “evening scene”.

図3の他の背景判定についても同様であり、それぞれの判定結果に応じて暗い用カウンタCd、逆光青空用カウンタCgs、逆光鮮やか用カウンタCga、逆光用カウンタCg、青空用カウンタCs、鮮やか用カウンタCa、明るい用カウンタCbをカウントする。そして、カウンタの値が設定値Nを超えた場合に、その背景判定結果が示す背景シーンに切り替え、切り替えた背景シーンに応じた画質補正パラメータと撮影制御パラメータへ設定を変更する。   The same applies to the other background determinations in FIG. 3, and the dark counter Cd, the backlight blue sky counter Cgs, the backlight bright counter Cga, the backlight counter Cg, the blue sky counter Cs, and the bright counter according to the respective determination results. Ca, bright counter Cb is counted. When the value of the counter exceeds the set value N, the background scene indicated by the background determination result is switched, and the setting is changed to the image quality correction parameter and the shooting control parameter corresponding to the switched background scene.

本実施形態では、各背景判定結果におけるカウンタの値は、連続して同一の背景判定結果が得られた場合にのみインクリメントされ、また、途中で他の背景判定結果が得られた場合にはリセットされる。これは、背景判定結果の信頼性、安定性を向上させるためであり、カウンタの値が設定値Nを超える場合、即ち、同一の判定結果が所定回数連続して初めて背景判定結果が切り替えられる。   In this embodiment, the counter value in each background determination result is incremented only when the same background determination result is obtained continuously, and is reset when another background determination result is obtained midway. Is done. This is to improve the reliability and stability of the background determination result. When the value of the counter exceeds the set value N, that is, the background determination result is switched only after the same determination result continues a predetermined number of times.

また、背景判定結果が「夜景」のシーンである場合は、カメラ制御部111は、画像処理部108によるノイズ抑制レベルを通常の値よりも高くして、センサ駆動部106による露光時間の上限を長く設定する。   When the background determination result is a scene of “night scene”, the camera control unit 111 sets the noise suppression level by the image processing unit 108 to be higher than a normal value and sets the upper limit of the exposure time by the sensor driving unit 106. Set longer.

背景判定結果が「スポットライト」のシーンである場合は、カメラ制御部111は、スポットライトと判定された領域の輝度レベルのみを参照し、この輝度レベルが目標輝度となるようにセンサ駆動部106を制御する。   When the background determination result is a scene of “spotlight”, the camera control unit 111 refers to only the luminance level of the area determined as the spotlight, and the sensor driving unit 106 so that this luminance level becomes the target luminance. To control.

背景判定結果が「暗い(屋内)」のシーンである場合は、カメラ制御部111は、画像処理部108によるノイズ抑制レベル、エッジ強調レベルが通常の値よりも高く設定する。   When the background determination result is “dark (indoor)”, the camera control unit 111 sets the noise suppression level and the edge enhancement level by the image processing unit 108 higher than normal values.

背景判定結果が「夕景」のシーンである場合は、カメラ制御部111は、夕景と思われる色の領域に対する画像処理部108によるノイズ抑制レベルを通常の値よりも高くして、画像全体の目標輝度を低く抑えるようにセンサ駆動部106を制御する。   When the background determination result is a scene of “evening scene”, the camera control unit 111 increases the noise suppression level by the image processing unit 108 for a color region that is considered to be an evening scene to be higher than a normal value, and sets the target of the entire image. The sensor driving unit 106 is controlled so as to keep the luminance low.

背景判定結果が「逆光青空」のシーンである場合は、カメラ制御部111は、青空と思われる色の領域に対する画像処理部108によるノイズ抑圧レベルを通常の値よりも高くする。また、カメラ制御部111は、画像中心部の輝度の重み付けを大きくし、求めた画像全体の輝度が目標輝度に達するようにセンサ駆動部106を制御する。   If the background determination result is a scene of “backlit blue sky”, the camera control unit 111 raises the noise suppression level by the image processing unit 108 for a color region that seems to be blue sky higher than a normal value. Further, the camera control unit 111 increases the weighting of the luminance at the center of the image, and controls the sensor driving unit 106 so that the luminance of the obtained entire image reaches the target luminance.

背景判定結果が「逆光鮮やか」のシーンである場合は、カメラ制御部111は、画像処理部108による画面全体の彩度を上げ、画像中心部の輝度の重み付けを大きくして求めた画像全体の輝度が目標輝度に達するようにセンサ駆動部106を制御する。   When the background determination result is a scene with “brilliant backlight”, the camera control unit 111 increases the saturation of the entire screen by the image processing unit 108 and increases the weighting of the luminance at the center of the image to obtain the entire image. The sensor driving unit 106 is controlled so that the luminance reaches the target luminance.

背景判定結果が「逆光」のシーンである場合は、カメラ制御部111は、画像中心部の輝度の重み付けを大きくして求めた画像全体の輝度が目標輝度に達するようにセンサ駆動部106を制御する。   When the background determination result is a “backlit” scene, the camera control unit 111 controls the sensor driving unit 106 so that the luminance of the entire image obtained by increasing the luminance weight of the center of the image reaches the target luminance. To do.

背景判定結果が「青空」のシーンである場合は、カメラ制御部111は、青空と思われる色の領域に対する画像処理部108によるノイズ抑圧レベルを通常の値よりも高く設定する。   If the background determination result is a “blue sky” scene, the camera control unit 111 sets the noise suppression level by the image processing unit 108 for a color region that seems to be blue sky higher than a normal value.

背景判定結果が「鮮やか」のシーンである場合は、カメラ制御部111は、画像処理部108による画面全体の彩度を上げる。背景判定結果が「明るい」のシーンである場合は、カメラ制御部111は、画像処理部108によるノイズ抑制レベルを通常の値よりも低く設定する。   When the background determination result is a “bright” scene, the camera control unit 111 increases the saturation of the entire screen by the image processing unit 108. When the background determination result is a “bright” scene, the camera control unit 111 sets the noise suppression level by the image processing unit 108 to be lower than a normal value.

次に、図5を参照して、カメラ制御部111による被写体判定処理について説明する。図5での各処理は、不図示のROM等の記憶手段に記憶されたプログラムがRAMにロードされて、カメラ制御部111のCPU等により実行される。なお、ここでの被写体判定処理は、上述した背景判定処理と同時に開始される。ここで、図5における処理は、画像の第2のシーンを判定する本発明の第2の判定処理手段の一例に相当する。   Next, a subject determination process by the camera control unit 111 will be described with reference to FIG. Each process in FIG. 5 is executed by the CPU or the like of the camera control unit 111 by loading a program stored in a storage unit such as a ROM (not shown) into the RAM. The subject determination process here is started simultaneously with the background determination process described above. Here, the processing in FIG. 5 corresponds to an example of the second determination processing means of the present invention for determining the second scene of the image.

ステップS501では、カメラ制御部111は、情報検出部110から取得した顔検出結果に基づき、画像における人物の有無を判定し、人物が有る場合は、ステップS502に進み、人物が無い場合は、ステップS510に進む。   In step S501, the camera control unit 111 determines the presence / absence of a person in the image based on the face detection result acquired from the information detection unit 110. If there is a person, the process proceeds to step S502. The process proceeds to S510.

ステップS502では、カメラ制御部111は、夕景用カウンタCsu、夜景用カウンタCn、及びスポットライト用カウンタCspのみをリセットし、ステップS503に進む。   In step S502, the camera control unit 111 resets only the evening scene counter Csu, the night scene counter Cn, and the spotlight counter Csp, and the process proceeds to step S503.

ステップS503では、カメラ制御部111は、人物(顔)の動きがあるか否かを判定し、動きが有る場合は、ステップS504に進み、動きがない場合は、ステップS507に進む。   In step S503, the camera control unit 111 determines whether there is a person (face) movement. If there is a movement, the process proceeds to step S504. If there is no movement, the process proceeds to step S507.

ステップS504では、カメラ制御部111は、人物動き用カウンタCmvの値をインクリメントし、ステップS505に進む。   In step S504, the camera control unit 111 increments the value of the person movement counter Cmv, and the process proceeds to step S505.

ステップS505では、カメラ制御部111は、人物動き用カウンタCmvの値が予め設定された設定値Nを超えるから否かを判定し、人物動き用カウンタCmvの値が設定値Nを超える場合は、ステップS506に進む。また、カメラ制御部111は、人物動き用カウンタCmvの値が設定値N以下の場合は、被写体判定結果を変更せず、前回の被写体判定結果に応じた画質補正パラメータと撮影制御パラメータを維持する。   In step S505, the camera control unit 111 determines whether or not the value of the person movement counter Cmv exceeds a preset setting value N. If the value of the person movement counter Cmv exceeds the setting value N, The process proceeds to step S506. Further, when the value of the person movement counter Cmv is equal to or smaller than the set value N, the camera control unit 111 does not change the subject determination result and maintains the image quality correction parameter and the shooting control parameter according to the previous subject determination result. .

ステップS506では、カメラ制御部111は、被写体判定結果を前回のものから「人物動き」へと切り替え、画質補正パラメータと撮影制御パラメータの設定を「人物動き」に応じたものに変更する。   In step S506, the camera control unit 111 switches the subject determination result from the previous one to “person movement”, and changes the settings of the image quality correction parameter and the shooting control parameter to those corresponding to “person movement”.

ステップS507では、カメラ制御部111は、人物用カウンタCpの値をインクリメントし、ステップS508に進む。   In step S507, the camera control unit 111 increments the value of the person counter Cp, and proceeds to step S508.

ステップS508では、カメラ制御部111は、人物用カウンタCpの値が予め設定された設定値Nを超えるか否かを判定し、人物用カウンタCpの値が設定値Nを超える場合は、ステップS509に進む。また、カメラ制御部111は、人物用カウンタCpの値が設定値N以下の場合は、被写体判定結果を変更せず、前回の被写体判定結果に応じた画質補正パラメータと撮影制御パラメータを維持する。   In step S508, the camera control unit 111 determines whether or not the value of the person counter Cp exceeds a preset set value N. If the value of the person counter Cp exceeds the set value N, step S509 is performed. Proceed to Further, when the value of the person counter Cp is equal to or smaller than the set value N, the camera control unit 111 does not change the subject determination result and maintains the image quality correction parameter and the shooting control parameter according to the previous subject determination result.

ステップS509では、カメラ制御部111は、被写体判定結果を前回のものから「人物」へと切り替え、画質補正パラメータと撮影制御パラメータの設定を「人物」に応じたものに変更する。   In step S509, the camera control unit 111 switches the subject determination result from the previous one to “person” and changes the settings of the image quality correction parameter and the shooting control parameter to those corresponding to “person”.

一方、ステップS510では、カメラ制御部111は、情報検出部110から取得した被写体距離情報を用いて、マクロ撮影か否かを判定する。   On the other hand, in step S510, the camera control unit 111 uses the subject distance information acquired from the information detection unit 110 to determine whether or not the macro shooting is performed.

情報検出部110は、オートフォーカス制御にて被写体にピントがあったときのフォーカスレンズおよびズームレンズの位置から被写体距離を算出している。カメラ制御部111は、この被写体距離が閾値よりも短い場合は、マクロ撮影であると判定して、ステップS511に進み、マクロ撮影でない場合は、ステップS514に進む。   The information detection unit 110 calculates the subject distance from the positions of the focus lens and the zoom lens when the subject is in focus by autofocus control. If the subject distance is shorter than the threshold, the camera control unit 111 determines that the macro shooting is performed, and proceeds to step S511. If not, the process proceeds to step S514.

ステップS511では、カメラ制御部111は、マクロ用カウンタCmcの値をインクリメントして、ステップS512に進む。   In step S511, the camera control unit 111 increments the value of the macro counter Cmc, and proceeds to step S512.

ステップS512では、カメラ制御部111は、マクロ用カウンタCmcの値が予め設定された設定値Nを超えるか否かを判断し、マクロ用カウンタCmcの値が設定値Nを超える場合は、ステップS513に進む。また、カメラ制御部111は、マクロ用カウンタCmcの値が設定値N以下の場合は、被写体判定結果を変更せず、前回の被写体判定結果に応じた画質補正パラメータと撮影制御パラメータを維持する。   In step S512, the camera control unit 111 determines whether or not the value of the macro counter Cmc exceeds a preset setting value N. If the value of the macro counter Cmc exceeds the setting value N, step S513 is performed. Proceed to In addition, when the value of the macro counter Cmc is equal to or smaller than the set value N, the camera control unit 111 does not change the subject determination result and maintains the image quality correction parameter and the shooting control parameter according to the previous subject determination result.

ステップS513では、カメラ制御部111は、被写体判定結果を前回のものから「マクロ」へと切り替え、画質補正パラメータと撮影制御パラメータの設定を「マクロ」に応じたものに変更する。   In step S513, the camera control unit 111 switches the subject determination result from the previous one to “macro”, and changes the settings of the image quality correction parameter and the imaging control parameter to those corresponding to “macro”.

一方、ステップS514では、カメラ制御部111は、風景用カウンタCvの値をインクリメントし、ステップS515に進む。   On the other hand, in step S514, the camera control unit 111 increments the value of the landscape counter Cv, and the process proceeds to step S515.

ステップS515では、カメラ制御部111は、風景用カウンタCvの値が予め設定された設定値Nを超えるか否かを判断し、風景用カウンタCvの値が設定値Nを超える場合は、ステップS516に進む。また、カメラ制御部111は、風景用カウンタCvの値が設定値N以下の場合は、被写体判定結果を変更せず、前回の被写体判定結果に応じた画質補正パラメータと撮影制御パラメータを維持する。   In step S515, the camera control unit 111 determines whether or not the value of the landscape counter Cv exceeds a preset setting value N. If the value of the landscape counter Cv exceeds the set value N, step S516 is performed. Proceed to Further, when the value of the landscape counter Cv is equal to or less than the set value N, the camera control unit 111 does not change the subject determination result and maintains the image quality correction parameter and the shooting control parameter according to the previous subject determination result.

ステップS516では、カメラ制御部111は、被写体判定結果を前回のものから「風景(オート)」に変更する。   In step S516, the camera control unit 111 changes the subject determination result from the previous one to “landscape (auto)”.

本実施形態では、各被写体判定結果におけるカウンタの値は、連続して同一の被写体判定結果が得られた場合にのみインクリメントされ、また、途中で他の被写体判定結果が得られた場合にはリセットされる。これは、被写体判定結果の信頼性、安定性を向上させるためであり、カウンタの値が設定値Nを超える場合、即ち、同一の判定結果が所定回数以上連続して初めて被写体判定結果が切り替えられる。   In this embodiment, the counter value in each subject determination result is incremented only when the same subject determination result is obtained continuously, and is reset when another subject determination result is obtained midway. Is done. This is to improve the reliability and stability of the subject determination result. When the value of the counter exceeds the set value N, that is, the subject determination result is switched only after the same determination result continues for a predetermined number of times. .

更に、被写体判定結果が「人物」のシーンである場合は、カメラ制御部111は、人物の肌色と思われる領域に対する画像処理部108によるノイズ抑圧レベルを通常の値よりも高くする。また、カメラ制御部111は、顔領域の輝度の重み付けを大きくして、顔領域の輝度がより優先的に目標輝度に近づくようにセンサ駆動部106を制御する。   Further, when the subject determination result is a scene of “person”, the camera control unit 111 increases the noise suppression level by the image processing unit 108 for a region that seems to be a person's skin color to be higher than a normal value. In addition, the camera control unit 111 increases the weighting of the luminance of the face area, and controls the sensor driving unit 106 so that the luminance of the face area approaches the target luminance more preferentially.

被写体判定結果が「人物動き」のシーンである場合は、カメラ制御部111は、「人物」のときの制御に加え、露出制御をする際に、通常よりも露光時間を短くすることを優先するようにセンサ駆動部106を制御する。   When the subject determination result is a scene of “person movement”, the camera control unit 111 gives priority to shortening the exposure time than usual when performing exposure control in addition to the control of “person”. Thus, the sensor driving unit 106 is controlled.

被写体判定結果が「マクロ」のシーンである場合は、カメラ制御部111は、手ぶれ補償の対象とする画像のシフト幅を広げるように、レンズ駆動部103によりレンズ101に含まれる防振レンズを制御する。   When the subject determination result is a “macro” scene, the camera control unit 111 controls the anti-vibration lens included in the lens 101 by the lens driving unit 103 so as to widen the shift range of the image subjected to camera shake compensation. To do.

被写体判定結果が「風景(オート)」のシーンである場合は、カメラ制御部111は、被写体判定結果に基づく制御は行わず、背景判定結果に基づく画像補正および撮影制御を行う。   When the subject determination result is a “landscape (auto)” scene, the camera control unit 111 performs image correction and shooting control based on the background determination result without performing control based on the subject determination result.

以上説明したように、本実施形態では、被写体判定結果によらず、情報検出部110にて人物が一度でも検出された場合には、強制的に夕景用カウンタCsu、夜景用カウンタCn、スポットライト用カウンタCspをリセットするようにしている。   As described above, in the present embodiment, regardless of the subject determination result, when a person is detected even once by the information detection unit 110, the evening scene counter Csu, the night scene counter Cn, the spotlight is forcibly detected. The counter Csp is reset.

情報検出部110にて人物が検出されるということは、「人物」が存在するシーンと既に判定されているか、あるいは、これから「人物」が存在するシーンへ移行する確率が高いと考えられる。そこで、人物が検出された段階で、人物の顔の輝度を積極的に目標輝度に近づけようとする「人物」が存在するシーンと相容れない「夕景」、「夜景」、「スポットライト」のカウントをリセットし、これらのシーンへ移行しにくくしている。なお、ここでは人物が一度でも検出されると「夕景」、「夜景」、「スポットライト」のカウントをリセットしているが、必ずしも一度である必要はなく、人物が連続して検出された回数が所定値に達した場合に、これらのカウントをリセットするようにしてもよい。この場合、この所定値は設定値N以下に設定すれば、「人物」が存在するシーンから、これと相容れない「夕景」、「夜景」、「スポットライト」のシーンへ移行しにくくなるという効果を得ることができる。   The fact that a person is detected by the information detection unit 110 is considered to have already been determined as a scene in which “person” exists, or that there is a high probability of shifting to a scene in which “person” exists. Therefore, at the stage where a person is detected, the count of “sunset”, “night view”, and “spotlight”, which is incompatible with the scene where there is a “person” that tries to bring the brightness of the person's face to the target brightness positively, is counted. Reset to make it difficult to move to these scenes. Here, if a person is detected even once, the counts of “Evening Scene”, “Night Scene”, and “Spotlight” are reset. When the count reaches a predetermined value, these counts may be reset. In this case, if the predetermined value is set to be equal to or less than the set value N, it is difficult to shift from a scene where “person” exists to a scene of “evening scene”, “night scene”, and “spotlight” which are incompatible with this scene. Can be obtained.

反対に、情報検出部110にて人物が検出された場合でも、夕景用カウンタCsu、夜景用カウンタCn、スポットライト用カウンタCsp以外のカウンタはリセットされない。このように、本実施形態では、人物が検出されると、「人物」が存在するシーン判定結果と相容れない一部のシーンのカウントをリセットするのに対して、この一部のシーン以外のカウントをリセットしないように構成している。こうすることで、シーンの組み合わせに応じて、そのシーン間の遷移のしやすさを調整することが可能となる。   On the contrary, even when a person is detected by the information detection unit 110, the counters other than the evening scene counter Csu, the night scene counter Cn, and the spotlight counter Csp are not reset. As described above, in this embodiment, when a person is detected, the count of a part of the scene that is incompatible with the scene determination result in which “person” exists is reset, whereas the count of the part other than the part of the scene is reset. It is configured not to reset. This makes it possible to adjust the ease of transition between scenes according to the combination of scenes.

次に、図6を参照して、カメラ制御部111によるシーン判定処理について説明する。図6での各処理は、不図示のROM等の記憶手段に記憶されたプログラムがRAMにロードされて、カメラ制御部111のCPU等により実行される。なお、カメラ制御部111によるシーン判定処理は、背景判定処理及び被写体判定処理の後、開始される。   Next, the scene determination process by the camera control unit 111 will be described with reference to FIG. Each process in FIG. 6 is executed by the CPU or the like of the camera control unit 111 by loading a program stored in a storage unit such as a ROM (not shown) into the RAM. The scene determination process by the camera control unit 111 is started after the background determination process and the subject determination process.

ステップS601では、カメラ制御部111は、背景判定結果が、夕景、夜景、スポットライトのいずれかであるかを判定する。   In step S601, the camera control unit 111 determines whether the background determination result is an evening scene, a night scene, or a spotlight.

そして、カメラ制御部111は、背景判定結果が夕景、夜景、スポットライトのいずれかである場合は、ステップS602で被写体判定結果を参照せず、シーン判定として、背景判定結果のみを用いる。   Then, when the background determination result is any of the sunset scene, the night scene, and the spotlight, the camera control unit 111 does not refer to the subject determination result in step S602 and uses only the background determination result as the scene determination.

また、カメラ制御部111は、背景判定結果が、夕景、夜景、スポットライト以外である場合は、背景判定結果と被写体判定結果とを組合わせたシーン判定を行う。例えば、背景判定結果が「青空」であり、被写体判定結果が「人物」である場合には、それぞれの判定結果が連続して所定回数以上得られた後であれば、シーン判定結果は、「青空+人物」となる。   In addition, when the background determination result is other than the sunset scene, the night scene, and the spotlight, the camera control unit 111 performs scene determination by combining the background determination result and the subject determination result. For example, if the background determination result is “blue sky” and the subject determination result is “person”, the scene determination result is “ Blue sky + person ".

図7に、背景判定結果と被写体判定結果の組み合わせ例を示す。   FIG. 7 shows a combination example of the background determination result and the subject determination result.

図7において、「夜景」、「スポットライト」、「夕景」の背景判定結果は、被写体判定結果との組み合わせはないが、それ以外の背景判定結果であれば、被写体判定結果の「人物」、「人物動き」、「マクロ」、「風景」のいずれかと組み合わせられる。ただし、被写体判定結果が「風景」の場合は、背景判定処理の結果がそのまま反映されるため、図7には「風景」は記載されていない。   In FIG. 7, the background determination results of “night scene”, “spotlight”, and “evening scene” do not have a combination with the subject determination result. Combined with any of “person movement”, “macro”, and “landscape”. However, when the subject determination result is “landscape”, the result of the background determination process is reflected as it is, and therefore “landscape” is not described in FIG.

また、背景判定結果の「夜景」、「スポットライト」、「夕景」と被写体判定結果の「人物」、「人物動き」、「マクロ」とは相容れないシーンである。このため、本実施形態では、一方の判定結果に優先度を設け、一方の判定結果が選択された場合に他方の判定結果を参照しないようにする。   In addition, the background determination results “night view”, “spotlight”, and “evening scene” are not compatible with the subject determination results “person”, “person movement”, and “macro”. For this reason, in this embodiment, priority is provided to one determination result, and when one determination result is selected, the other determination result is not referred to.

以上説明したように、本実施形態では、背景判定処理及び被写体判定処理について同一の判定結果が所定回数以上連続して初めて判定結果が切り替えられる。これにより、シーンの判定結果が頻繁に変化するのを回避することができ、シーン判定の信頼性、安定性を向上させることが可能となる。この結果、画質補正パラメータと撮影制御パラメータの大幅な変動を抑制することが可能となり、画質レベルを維持することが可能となる。   As described above, in the present embodiment, the determination result is switched only after the same determination result for the background determination process and the subject determination process is continued a predetermined number of times or more. Thereby, it is possible to avoid frequent changes in the scene determination result, and it is possible to improve the reliability and stability of the scene determination. As a result, it is possible to suppress significant fluctuations in the image quality correction parameter and the imaging control parameter, and it is possible to maintain the image quality level.

また、本実施形態では、特定のシーンであることが検出された際に、そのシーンと相容れない関係にあるシーンのカウンタがリセットされる。これにより、相容れない複数のシーンに対してシーン判定の安定性を向上させるとともに、補正の重複を避けて、撮影シーンに対して適正な補正処理や撮影制御を行うことが可能になる。この結果、同じ状況下であるにも関わらず、画質補正や撮影制御の内容が大きく変化してしまうことが繰り返されるのを回避することができる。   In this embodiment, when it is detected that the scene is a specific scene, the counter of the scene that is incompatible with the scene is reset. This improves the stability of scene determination for a plurality of incompatible scenes, avoids duplication of correction, and makes it possible to perform appropriate correction processing and shooting control on the shooting scene. As a result, it is possible to avoid repetitive changes in the image quality correction and the contents of the imaging control in spite of the same situation.

なお、本発明は、上記実施形態に例示したものに限定されるものではなく、本発明の要旨を逸脱しない範囲において適宜変更可能である。   In addition, this invention is not limited to what was illustrated to the said embodiment, In the range which does not deviate from the summary of this invention, it can change suitably.

例えば、本実施形態では、被写体判定結果として「人物」であると判定された場合に「夕景」、「夜景」、「スポットライト」のカウンタをリセットする構成としたが、「マクロ」のシーンであると判定した場合であっても、同様にカウンタをリセットしてもよい。また、反対に、背景判定結果として「夕景」、「夜景」、「スポットライト」であると判定された場合に「人物」、「マクロ」のカウンタをリセットする構成としてもよい。   For example, in this embodiment, the counter for “evening scene”, “night scene”, and “spotlight” is reset when it is determined that the subject is determined to be “person”. Even if it is determined that there is, the counter may be similarly reset. On the other hand, the counter of “person” and “macro” may be reset when it is determined that the background determination result is “evening scene”, “night scene”, or “spotlight”.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。ネットワーク又は各種記憶媒体を介して取得したソフトウェア(プログラム)をパーソナルコンピュータ(CPU,プロセッサ)にて実行することでも実現できる。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed. It can also be realized by executing software (program) acquired via a network or various storage media on a personal computer (CPU, processor).

105 撮像素子
108 画像処理部
110 情報検出部
111 カメラ制御部
120 撮像装置
105 Image Sensor 108 Image Processing Unit 110 Information Detection Unit 111 Camera Control Unit 120 Imaging Device

Claims (6)

撮像手段により撮像された画像の第1のシーンについて判定を行うものであって、前記第1のシーンに含まれるシーンのそれぞれに対して、シーンの条件を連続して満たした回数をカウントし、前記カウントが設定値に達した場合に、前記第1のシーンの判定結果を前記カウントが設定値に達したシーンに切り替える第1の判定処理手段と、
前記撮像手段により撮像された画像の第2のシーンについて判定を行うものであって、前記第2のシーンに含まれるシーンのそれぞれに対して、シーンの条件を連続して満たした回数をカウントし、前記カウントが設定値に達した場合に、前記第2のシーンの判定結果を前記カウントが設定値に達したシーンに切り替える第2の判定処理手段と、
前記第1の判定処理手段により得られる判定結果及び前記第2の判定処理手段により得られる判定結果に基づいて、前記撮像手段により撮像された画像に対して画像処理を行う画像処理部を制御する制御手段と、を備え、
前記2の判定処理手段が、前記第2のシーンに含まれる特定のシーンの条件を満たすと判断した、あるいは、前記第2のシーンに含まれる特定のシーンのカウントが前記設定値よりも小さな所定値に達したと判断した場合に、前記第1の判定処理手段は、前記第1のシーンに含まれるシーンのカウントをリセットすることを特徴とする画像処理装置。
The determination is made for the first scene of the image captured by the imaging means, and for each of the scenes included in the first scene, the number of times that the scene condition is continuously satisfied is counted, First determination processing means for switching a determination result of the first scene to a scene where the count has reached a set value when the count has reached a set value;
The second scene of the image captured by the imaging means is determined, and the number of times that the scene condition is continuously satisfied is counted for each of the scenes included in the second scene. A second determination processing means for switching the determination result of the second scene to a scene where the count has reached the set value when the count reaches a set value;
Based on the determination result obtained by the first determination processing unit and the determination result obtained by the second determination processing unit, an image processing unit that performs image processing on the image captured by the imaging unit is controlled. Control means,
The second determination processing unit determines that the condition of the specific scene included in the second scene is satisfied, or the count of the specific scene included in the second scene is smaller than the set value The image processing apparatus according to claim 1, wherein when it is determined that the predetermined value has been reached, the first determination processing unit resets the count of a scene included in the first scene.
前記第2の判定処理手段が、前記第2のシーンに含まれる特定のシーンの条件を満たすと判断した、あるいは、前記第2のシーンに含まれる特定のシーンのカウントが前記設定値よりも小さな所定値に達したと判断した場合に、前記1の判定処理手段は、前記第1のシーンに含まれる一部のシーンのカウントをリセットし、前記一部のシーン以外のシーンのカウントはリセットしないことを特徴とする請求項1に記載の画像処理装置。 The second determination processing unit determines that the condition of the specific scene included in the second scene is satisfied, or the count of the specific scene included in the second scene is smaller than the set value When it is determined that the predetermined value has been reached, the first determination processing unit resets the count of some scenes included in the first scene, and resets the count of scenes other than the some scenes. The image processing apparatus according to claim 1, wherein the image processing apparatus is not. 前記第1のシーンは、背景及び被写体のうちの一方に関係するシーンであり、前記第2のシーンは、背景及び被写体のうちの他方に関係するシーンである、ことを特徴とする請求項1又は2に記載の画像処理装置。   The first scene is a scene related to one of a background and a subject, and the second scene is a scene related to the other of the background and the subject. Or the image processing apparatus of 2. 前記特定のシーンは、人物又はマクロのシーンであり、前記第1の判定処理手段にてカウントがリセットされるシーンは、夕景、夜景又はスポットライトのシーンである、ことを特徴とする請求項3に記載の画像処理装置。   4. The specific scene is a person or macro scene, and the scene whose count is reset by the first determination processing unit is an evening scene, a night scene, or a spotlight scene. An image processing apparatus according to 1. 撮像手段により撮像された画像の第1のシーンについて判定を行うものであって、前記第1のシーンに含まれるシーンのそれぞれに対して、シーンの条件を連続して満たした回数をカウントし、前記カウントが設定値に達した場合に、前記第1のシーンの判定結果を前記カウントが設定値に達したシーンに切り替える第1の判定処理ステップと、
前記撮像手段により撮像された画像の第2のシーンについて判定を行うものであって、前記第2のシーンに含まれるシーンのそれぞれに対して、シーンの条件を連続して満たした回数をカウントし、前記カウントが設定値に達した場合に、前記第2のシーンの判定結果を前記カウントが設定値に達したシーンに切り替える第2の判定処理ステップと、
前記第1の判定処理ステップで得られる判定結果及び前記第2の判定処理ステップで得られる判定結果に基づいて、前記撮像手段により撮像された画像に対して画像処理を行う画像処理部を制御する制御ステップと、を備え、
前記2の判定処理ステップで、前記第2のシーンに含まれる特定のシーンの条件を満たすと判断した、あるいは、前記第2のシーンに含まれる特定のシーンのカウントが前記設定値よりも小さな所定値に達したと判断した場合に、前記第1の判定処理ステップで、前記第1のシーンに含まれるシーンのカウントをリセットすることを特徴とする画像処理方法。
The determination is made for the first scene of the image captured by the imaging means, and for each of the scenes included in the first scene, the number of times that the scene condition is continuously satisfied is counted, A first determination processing step of switching a determination result of the first scene to a scene where the count has reached a set value when the count has reached a set value;
The second scene of the image captured by the imaging means is determined, and the number of times that the scene condition is continuously satisfied is counted for each of the scenes included in the second scene. A second determination processing step of switching the determination result of the second scene to a scene where the count reaches the set value when the count reaches a set value;
Based on the determination result obtained in the first determination processing step and the determination result obtained in the second determination processing step, an image processing unit that performs image processing on the image captured by the imaging unit is controlled. A control step,
In the second determination processing step, it is determined that the condition of the specific scene included in the second scene is satisfied, or the count of the specific scene included in the second scene is smaller than the set value An image processing method comprising: resetting a count of scenes included in the first scene in the first determination processing step when it is determined that a predetermined value has been reached.
撮像手段により撮像された画像の第1のシーンについて判定を行うものであって、前記第1のシーンに含まれるシーンのそれぞれに対して、シーンの条件を連続して満たした回数をカウントし、前記カウントが設定値に達した場合に、前記第1のシーンの判定結果を前記カウントが設定値に達したシーンに切り替える第1の判定処理ステップと、
前記撮像手段により撮像された画像の第2のシーンについて判定を行うものであって、前記第2のシーンに含まれるシーンのそれぞれに対して、シーンの条件を連続して満たした回数をカウントし、前記カウントが設定値に達した場合に、前記第2のシーンの判定結果を前記カウントが設定値に達したシーンに切り替える第2の判定処理ステップと、
前記第1の判定処理ステップで得られる判定結果及び前記第2の判定処理ステップで得られる判定結果に基づいて、前記撮像手段により撮像された画像に対して画像処理を行う画像処理部を制御する制御ステップと、を含み、
前記2の判定処理ステップで、前記第2のシーンに含まれる特定のシーンの条件を満たすと判断した、あるいは、前記第2のシーンに含まれる特定のシーンのカウントが前記設定値よりも小さな所定値に達したと判断した場合に、前記1の判定処理ステップで、前記第1のシーンに含まれるシーンのカウントをリセットすることをコンピュータに実行させることを特徴とするプログラム。
The determination is made for the first scene of the image captured by the imaging means, and for each of the scenes included in the first scene, the number of times that the scene condition is continuously satisfied is counted, A first determination processing step of switching a determination result of the first scene to a scene where the count has reached a set value when the count has reached a set value;
The second scene of the image captured by the imaging means is determined, and the number of times that the scene condition is continuously satisfied is counted for each of the scenes included in the second scene. A second determination processing step of switching the determination result of the second scene to a scene where the count reaches the set value when the count reaches a set value;
Based on the determination result obtained in the first determination processing step and the determination result obtained in the second determination processing step, an image processing unit that performs image processing on the image captured by the imaging unit is controlled. A control step,
In the second determination processing step, it is determined that the condition of the specific scene included in the second scene is satisfied, or the count of the specific scene included in the second scene is smaller than the set value If it is determined to have reached the predetermined value, the first determination processing step, the program for causing executed to reset the count of the scene on a computer included in the first scene.
JP2009281522A 2009-12-11 2009-12-11 Image processing apparatus, image processing method, and program Expired - Fee Related JP5441656B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009281522A JP5441656B2 (en) 2009-12-11 2009-12-11 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009281522A JP5441656B2 (en) 2009-12-11 2009-12-11 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2011124845A JP2011124845A (en) 2011-06-23
JP5441656B2 true JP5441656B2 (en) 2014-03-12

Family

ID=44288294

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009281522A Expired - Fee Related JP5441656B2 (en) 2009-12-11 2009-12-11 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP5441656B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5349671B1 (en) * 2012-04-27 2013-11-20 株式会社東芝 Image processing apparatus, image display apparatus and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008028802A (en) * 2006-07-24 2008-02-07 Seiko Epson Corp Unit, method and program for processing image, and printer
JP4818999B2 (en) * 2006-07-25 2011-11-16 富士フイルム株式会社 Imaging apparatus, method, and program
CN101772952B (en) * 2007-07-23 2013-04-24 松下电器产业株式会社 Imaging device
JP4438871B2 (en) * 2008-02-12 2010-03-24 ソニー株式会社 Imaging apparatus, control method thereof, and program

Also Published As

Publication number Publication date
JP2011124845A (en) 2011-06-23

Similar Documents

Publication Publication Date Title
US10194091B2 (en) Image capturing apparatus, control method therefor, program, and recording medium
US7706674B2 (en) Device and method for controlling flash
JP5520038B2 (en) Video processing apparatus and video processing method
JP5512878B2 (en) Imaging apparatus and display control method
US9025050B2 (en) Digital photographing apparatus and control method thereof
JP2006310969A (en) Imaging apparatus
JP2005269373A (en) Video signal processing system, and electronic video apparatus
JP4796007B2 (en) Imaging device
JP2017112462A (en) Imaging device and control method, program therefor and storage medium
JP2008263478A (en) Imaging apparatus
JP5316923B2 (en) Imaging apparatus and program thereof
JP2013192121A (en) Imaging apparatus and imaging method
JP5441656B2 (en) Image processing apparatus, image processing method, and program
JP5487942B2 (en) Image processing apparatus, image processing method, and image input apparatus
JP2009033386A (en) Photographing device and method
JP7397640B2 (en) Image processing device and image processing method
JP7467086B2 (en) Imaging device, control method thereof, and program
JP6294607B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2006157342A (en) Imaging apparatus
JP2012049841A (en) Imaging apparatus and program
JP5782546B2 (en) VIDEO PROCESSING DEVICE, VIDEO PROCESSING METHOD, IMAGING DEVICE, PROGRAM, AND STORAGE MEDIUM
JP2015118274A (en) Imaging device, imaging device control method, and program
JP7294392B2 (en) Imaging device
JP2019075653A (en) Imaging apparatus
KR101416236B1 (en) Digital photographing apparatus for performing auto-focusing automatically and method of controlling the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130829

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130903

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131031

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131217

R151 Written notification of patent or utility model registration

Ref document number: 5441656

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees