JP2005184508A - Imaging device and control method therefor - Google Patents

Imaging device and control method therefor Download PDF

Info

Publication number
JP2005184508A
JP2005184508A JP2003422951A JP2003422951A JP2005184508A JP 2005184508 A JP2005184508 A JP 2005184508A JP 2003422951 A JP2003422951 A JP 2003422951A JP 2003422951 A JP2003422951 A JP 2003422951A JP 2005184508 A JP2005184508 A JP 2005184508A
Authority
JP
Japan
Prior art keywords
face
area
light emission
image
dimming
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.)
Withdrawn
Application number
JP2003422951A
Other languages
Japanese (ja)
Other versions
JP2005184508A5 (en
Inventor
Hajime Fukui
一 福井
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 JP2003422951A priority Critical patent/JP2005184508A/en
Publication of JP2005184508A publication Critical patent/JP2005184508A/en
Publication of JP2005184508A5 publication Critical patent/JP2005184508A5/ja
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Stroboscope Apparatuses (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable detection of a person's face from a photographed image with accuracy, when the person is photographed in a situation of insufficient brightness, for example, against a background of a night scene. <P>SOLUTION: A light control region of a stroboscope is set in a photographing image including a subject, according to a distance measured by a distance measurement controller 42 for measuring the distance to the subject. Based on the photographed image produced under a pre-light emission, a face area in the photographed image is detected. According to the above detected face area, the light control region is determined. According to a photometric value in the above determined light control region being obtained under the pre-light emission, a main light-emission amount is calculated. Based on the calculated main light-emission amount, the stroboscope is controlled, and photographing is performed accordingly. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、静止画像や動画像を撮像、記録、再生する撮像装置及びその制御方法に関するものである。   The present invention relates to an imaging apparatus that captures, records, and reproduces still images and moving images, and a control method thereof.

従来、固体メモリ素子を有するメモリカードを記憶媒体として、静止画像や動画像を記録し、また損沖億媒体に記憶されている画像データを再生できる電子カメラ等の画像処理装置が市販されており、カラー液晶パネル等の電子ファインダを備える電子カメラも販売されている。   2. Description of the Related Art Conventionally, image processing apparatuses such as electronic cameras that can record still images and moving images and play back image data stored on a lossless medium using a memory card having a solid-state memory element as a storage medium are commercially available. An electronic camera equipped with an electronic viewfinder such as a color liquid crystal panel is also sold.

これらの電子カメラでは、暗所での撮影の補助光として、ストロボを内蔵したり、或は電子カメラ本体に別体のストロボを装着できるように構成されており、夜間など暗い場所でも鮮明な電子写真を撮ることが可能となっている。   These electronic cameras are designed to have a built-in strobe as auxiliary light for shooting in the dark or to be able to attach a separate strobe to the main body of the electronic camera. It is possible to take pictures.

このような従来の電子カメラのストロボ装置では、レリーズ時の本撮像の前にプリ発光を行い、プリ撮像画像から被写体の輝度レベルと、適正調光レベルの差を求め、その差に応じて、実際の撮像時の発光量を決定して撮像を行うようになっている(例えば、特許文献1参照)。   In such a strobe device of a conventional electronic camera, pre-flash is performed before actual imaging at the time of release, and the difference between the luminance level of the subject and the appropriate light control level is obtained from the pre-captured image, and according to the difference, Imaging is performed by determining the light emission amount at the time of actual imaging (see, for example, Patent Document 1).

この際の調光範囲は、一般的に測距領域を中心として設定される。   The light control range at this time is generally set around the distance measurement area.

図10は、撮影画面における測距領域912と調光領域911との関係を説明する図である。   FIG. 10 is a diagram illustrating the relationship between the distance measurement area 912 and the light control area 911 on the shooting screen.

同図では、測距領域912と被写体910とが重なっているので、測距領域912を中心とした調光領域911を基に調光制御を行っても、問題のない鮮明な画像を撮像することができる。しかし、例えば被写体910に合焦した(ピント合わせを行った)後に、カメラによる撮像範囲を移動させて図11の構図を変えた場合に、被写体910と測距領域912とが合致しなくなる。このような状態で、この測距領域912を中心にして調光制御を行うと被写体910がいない領域920で調光制御が行われるので、露出オーバな画像が撮像されてしまう虞がある。   In the same figure, since the distance measurement area 912 and the subject 910 overlap, a clear image having no problem is captured even if the light adjustment control is performed based on the light adjustment area 911 centering on the distance measurement area 912. be able to. However, for example, when the image capturing range by the camera is moved and the composition of FIG. 11 is changed after focusing on the subject 910 (focusing is performed), the subject 910 and the distance measurement area 912 do not match. In such a state, if dimming control is performed around the distance measuring area 912, the dimming control is performed in the area 920 where the subject 910 is not present, and thus an overexposed image may be captured.

これを回避するためには、例えば図12に示す様に、測距領域912を被写体910が存在している領域に設定してAF動作を行えばよいが、一般的には、測距領域912の位置の選択するよりも、測距領域912は図11のように画面中央のままにしてAF動作を行い、この合焦後に構図を変更することが一般的に行われる。従って、被写体910と調光領域911とが合致せずに露出オーバな画像となってしまうという問題があった。   In order to avoid this, for example, as shown in FIG. 12, the AF area operation may be performed by setting the distance measurement area 912 to an area where the subject 910 exists, but in general, the distance measurement area 912 Rather than selecting the position, the AF operation is generally performed with the focus detection area 912 left in the center of the screen as shown in FIG. 11, and the composition is generally changed after this focusing. Therefore, there is a problem that the subject 910 and the light control region 911 do not match and an overexposed image is obtained.

そこで、AF前に撮影画像から被写体910の顔を検出し、この検出された被写体の顔領域に重みをつけて露出制御したり(例えば、特許文献2参照)、調光制御したりする(例えば、特許文献3参照)技術が提案されている。このような構成であれば、合焦後に構図を変更する作業を行わずとも、常に被写体の顔に合焦させることが可能となる。
特開2001−091989号公報 特開2003−107555号公報 特開2003−107567号公報
Therefore, the face of the subject 910 is detected from the photographed image before AF, and exposure control is performed by weighting the detected face area of the subject (see, for example, Patent Document 2) or dimming control (for example, , See Patent Document 3). With such a configuration, it is possible to always focus on the face of the subject without performing the work of changing the composition after focusing.
JP 2001-091989 A JP 2003-107555 A JP 2003-107567 A

しかしながら、例えば輝度が十分でない状況(例えば、夜景を背景として人物を撮影する場合)では、撮影画像から人物の顔の検出を精度良く行うことは難しい。人物の顔検出方法として、所定以上の大きさを有する肌色領域を顔領域とみなす方法や、輝度情報から顔の輪郭や目の形状を検出して顔領域とみなす方法があるが、どちらの場合も暗闇では検出精度が低下することは否めない。   However, for example, in a situation where the luminance is not sufficient (for example, when a person is photographed against a night view), it is difficult to accurately detect the person's face from the photographed image. There are two methods for detecting a human face: a method in which a skin color area with a size greater than or equal to a predetermined size is considered as a face area, and a method in which the face contour and eye shape are detected from luminance information and considered as a face area. However, the detection accuracy cannot be denied in the dark.

本発明は上記問題点に鑑みてなされたもので、被写体と予め設定されている調光領域が合致していない場合でも、適正なストロボ撮影画像が得られる撮像装置及びその制御方法を提供することを目的とする。   The present invention has been made in view of the above problems, and provides an imaging apparatus capable of obtaining an appropriate flash image even when a subject and a preset light control area do not match, and a control method thereof. With the goal.

プリ発光の撮像画面から被写体の顔位置を検出し、予め設定されている調光領域と検知された顔領域とが異なる場合に、顔領域を中心とした領域で調光制御を行う撮像装置及びその制御方法を提供する。   An imaging device that detects a face position of a subject from a pre-flash imaging screen, and performs dimming control in an area centered on the face area when the preset dimming area and the detected face area are different; The control method is provided.

本発明の撮像装置は以下のような構成を備える。即ち、
撮影時におけるメイン発光前にプリ発光を行う撮像装置であって、
被写体との距離を測定する測距手段と、
被写体を含む撮像画像内にストロボの調光制御領域を、前記測距手段により測定された前記距離に応じて設定する調光領域設定手段と、
プリ発光による撮像画像を基に、前記撮像画像内における顔領域を検出する顔領域検出手段と、
前記顔領域検出手段により検出された顔領域に応じて前記調光制御領域を決定する決定手段と、
前記決定手段で決定された前記調光制御領域における前記プリ発光による測光値に応じてメイン発光量を演算する演算手段と、
前記演算手段により演算された前記メイン発光量に基づいてストロボを制御して撮影を行うように制御する制御手段とを有することを特徴とする。
The imaging device of the present invention has the following configuration. That is,
An imaging device that performs pre-flash before main flash during shooting,
Ranging means for measuring the distance to the subject;
A dimming area setting means for setting a dimming control area of a strobe in a captured image including a subject according to the distance measured by the distance measuring means;
A face area detecting means for detecting a face area in the captured image based on a captured image by pre-emission;
Determining means for determining the dimming control area according to the face area detected by the face area detecting means;
A calculation means for calculating a main light emission amount according to a photometric value by the pre-light emission in the light control area determined by the determination means;
Control means for controlling the strobe to perform photographing based on the main light emission amount calculated by the calculating means.

また本発明の撮像装置の制御方法は以下のような工程を備える。即ち、
撮影時におけるメイン発光前にプリ発光を行う撮像装置における制御方法であって、
被写体との距離を測定する測距工程と、
被写体を含む撮像画像内にストロボの調光制御領域を、前記測距工程で測定された前記距離に応じて設定する調光領域設定工程と、
プリ発光による撮像画像を基に、前記撮像画像内における顔領域を検出する顔領域検出工程と、
前記顔位置検出工程で検出された顔領域に応じて前記調光制御領域を決定する決定工程と、
前記決定工程で決定された前記調光制御領域における前記プリ発光による測光値に応じてメイン発光量を演算する演算工程と、
前記演算工程で演算された前記メイン発光量に基づいてストロボを制御して撮影を行うように制御する制御工程とを有することを特徴とする。
Moreover, the control method of the imaging device of the present invention includes the following steps. That is,
A control method in an imaging device that performs pre-flash before main flash at the time of shooting,
A ranging process for measuring the distance to the subject;
A dimming area setting step for setting a dimming control area of a strobe in a captured image including a subject according to the distance measured in the ranging process;
A face area detection step of detecting a face area in the captured image based on a captured image by pre-emission;
A determining step of determining the dimming control region according to the face region detected in the face position detecting step;
A calculation step of calculating a main light emission amount according to a photometric value by the pre-light emission in the light control region determined in the determination step;
And a control step of controlling the strobe to perform photographing based on the main light emission amount calculated in the calculation step.

本発明によれば、被写体の輝度が十分に得られない状況での撮影であっても、高い精度で被写体の顔領域を検出することができ、この検出した顔領域に基づいて適正なストロボ制御を行うことが可能となる。   According to the present invention, it is possible to detect a face area of a subject with high accuracy even when shooting in a situation where the brightness of the subject cannot be sufficiently obtained, and to perform appropriate strobe control based on the detected face area. Can be performed.

以下、添付図面を参照して本発明の好適な実施の形態を詳しく説明する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

図1は、本発明の実施の形態に係る電子カメラ(画像処理装置)100の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of an electronic camera (image processing apparatus) 100 according to an embodiment of the present invention.

図において、10は撮影レンズ、12はシャッタ、14は光学像を電気信号に変換する撮像素子、16は撮像素子14のアナログ信号出力をディジタル信号に変換するA/D変換器である。タイミング発生部18は、撮像素子14、A/D変換器16、D/A変換器26にクロック信号や制御信号を供給して、それらの動作を制御している。このタイミング発生部18は、メモリ制御部22及びシステム制御部50により制御されている。画像処理部20は、A/D変換器16からのデータ或いはメモリ制御部22からのデータに対して所定の画素補間処理や色変換処理を行う。また、この画像処理部20は、撮像した画像データを用いて所定の演算処理を行い、それから得られた演算結果に基づいてシステム制御部50がシャッタ制御部40、測距制御部42に対する制御を実行する、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(ストロボプリ発光)処理を行っている。また画像処理部20は、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行っている。更に、その撮像した画像データから、目、口のエッジを特徴を抽出し、人間の顔を検出する顔検出処理も実行している。   In the figure, 10 is a photographing lens, 12 is a shutter, 14 is an image sensor that converts an optical image into an electrical signal, and 16 is an A / D converter that converts an analog signal output of the image sensor 14 into a digital signal. The timing generator 18 supplies a clock signal and a control signal to the image sensor 14, the A / D converter 16, and the D / A converter 26 to control their operations. The timing generator 18 is controlled by the memory controller 22 and the system controller 50. The image processing unit 20 performs predetermined pixel interpolation processing and color conversion processing on the data from the A / D converter 16 or the data from the memory control unit 22. The image processing unit 20 performs predetermined calculation processing using the captured image data, and the system control unit 50 controls the shutter control unit 40 and the distance measurement control unit 42 based on the calculation result obtained therefrom. TTL (through-the-lens) AF (autofocus) processing, AE (automatic exposure) processing, and EF (strobe preflash) processing are performed. The image processing unit 20 performs predetermined calculation processing using the captured image data, and also performs TTL AWB (auto white balance) processing based on the obtained calculation result. Furthermore, a face detection process is also performed in which features of eyes and mouth edges are extracted from the captured image data to detect a human face.

メモリ制御部22は、A/D変換器16、タイミング発生部18、画像処理部20、画像表示用メモリ24、D/A変換器26、メモリ30、圧縮/伸長部32を制御する。これにより、A/D変換器16でA/D変換されたデータは画像処理部20、メモリ制御部22を介して、或いはA/D変換器16でA/D変換されたデータが直接メモリ制御部22を介して、画像表示用メモリ24或いはメモリ30に書き込まれる。   The memory control unit 22 controls the A / D converter 16, the timing generation unit 18, the image processing unit 20, the image display memory 24, the D / A converter 26, the memory 30, and the compression / decompression unit 32. As a result, the data A / D converted by the A / D converter 16 can be directly memory-controlled via the image processing unit 20 and the memory control unit 22, or the data A / D converted by the A / D converter 16 can be directly memory controlled. The data is written into the image display memory 24 or the memory 30 via the unit 22.

画像表示用メモリ24は画像表示部26に表示するデータを記憶しており、この画像表示用メモリ24に記憶されているデータはD/A変換器26を介してTFT,LCD等の画像表示部28に出力されて表示される。この画像表示部28により、撮像した画像データを逐次表示すれば、電子ファインダとして機能を実現できる。また画像表示部28は、システム制御部50の指示により任意に表示をオン/オフすることが可能であり、表示をオフにした場合は、この画像処理装置100の電力消費を大幅に低減できる。メモリ30は、撮影した静止画像や動画像を格納するためのメモリで、所定枚数の静止画像や所定時間分の動画像を格納するのに十分な記憶量を備えている。これにより、複数枚の静止画像を連続して撮影する連射撮影やパノラマ撮影の場合にも、高速かつ大量の画像書き込みをメモリ30に対して行うことが可能となる。また、このメモリ30はシステム制御部50の作業領域としても使用することが可能である。圧縮/伸長部32は、例えば適応離散コサイン変換(ADCT)等により画像データを圧縮及び伸長することができ、メモリ30に格納された画像データを読み込んで圧縮処理を行ったり、或いは圧縮された画像データを読み込んで伸長処理を行い、その処理を終えたデータをメモリ30に書き込むことができる。   The image display memory 24 stores data to be displayed on the image display unit 26, and the data stored in the image display memory 24 is sent to an image display unit such as a TFT or LCD via the D / A converter 26. It is output to 28 and displayed. If the captured image data is sequentially displayed by the image display unit 28, a function as an electronic viewfinder can be realized. Further, the image display unit 28 can arbitrarily turn on / off the display according to an instruction from the system control unit 50. When the display is turned off, the power consumption of the image processing apparatus 100 can be greatly reduced. The memory 30 is a memory for storing captured still images and moving images, and has a sufficient storage capacity for storing a predetermined number of still images and moving images for a predetermined time. Thereby, even in the case of continuous shooting or panoramic shooting in which a plurality of still images are continuously shot, it is possible to write a large amount of images to the memory 30 at high speed. The memory 30 can also be used as a work area for the system control unit 50. The compression / decompression unit 32 can compress and decompress the image data by, for example, adaptive discrete cosine transform (ADCT) or the like, and reads the image data stored in the memory 30 to perform the compression process or the compressed image Data can be read and decompressed, and the processed data can be written into the memory 30.

シャッタ制御部40は、シャッタ12を制御する。測距制御部42は、撮影レンズ10のフォーカシングを制御する。測距制御部43は、撮影レンズ10のフォーカシング位置から被写体の距離を検出する。ズーム制御部44は、撮影レンズ10のズーミングを制御する。絞り制御部46は絞り102の動作を制御する。ストロボユニット48は、AF補助光の投光機能、ストロボ調光機能も有する。シャッタ制御部40、測距制御部42はTTL方式を用いて制御されており、撮像した画像データを画像処理部20によって演算した演算結果に基づき、システム制御部50がシャッタ制御部40、絞り制御部46、測距制御部42に対して制御を行う。   The shutter control unit 40 controls the shutter 12. The distance measurement control unit 42 controls the focusing of the photographing lens 10. The distance measurement control unit 43 detects the distance of the subject from the focusing position of the photographic lens 10. The zoom control unit 44 controls zooming of the taking lens 10. A diaphragm control unit 46 controls the operation of the diaphragm 102. The strobe unit 48 also has an AF auxiliary light projecting function and a strobe light control function. The shutter control unit 40 and the distance measurement control unit 42 are controlled using the TTL method, and the system control unit 50 controls the shutter control unit 40 and the aperture control based on the calculation result obtained by calculating the captured image data by the image processing unit 20. The unit 46 and the distance measurement control unit 42 are controlled.

システム制御部50は、この画像処理装置100全体の動作を制御している。メモリ52は、このシステム制御部50の動作用の定数、変数、プログラム等を記憶している。表示部54は、システム制御部50でのプログラムの実行に応じて、文字、画像、音声等を用いて動作状態やメッセージ等を表示する液晶表示ユニット、スピーカ等を含んでいる。この表示部54は、画像処理装置100の操作部70の近辺の視認し易い位置に単数或いは複数個所設置され、例えばLCDやLED、発音素子等の組み合わせにより構成されている。また、この表示部54は、その一部の機能が光学ファインダ104内に設置されている。この表示部54の表示内容の内、LCD等に表示するものとしては、シングルショット/連写撮影表示、セルフタイマ表示、圧縮率表示、記録画素数表示、記録枚数表示、残撮影可能枚数表示、シャッタスピード表示、絞り値表示、露出補正表示、ストロボ表示、赤目緩和表示、マクロ撮影表示、ブザー設定表示、時計用電池残量表示、電池残量表示、エラー表示、複数桁の数字による情報表示、記憶媒体200及び210の着脱状態表示、通信I/F動作表示、日付け・時刻表示等がある。また、この表示部54の表示内容の内、光学ファインダ104に表示するものとしては、合焦表示、手振れ警告表示、ストロボ充電表示、シャッタスピード表示、絞り値表示、露出補正表示、等がある。   The system control unit 50 controls the overall operation of the image processing apparatus 100. The memory 52 stores constants, variables, programs, and the like for operating the system control unit 50. The display unit 54 includes a liquid crystal display unit, a speaker, and the like that display an operation state, a message, and the like using characters, images, sounds, and the like according to execution of the program by the system control unit 50. The display unit 54 is installed in a single or a plurality of positions near the operation unit 70 of the image processing apparatus 100 so as to be easily visible, and is configured by, for example, a combination of an LCD, an LED, a sounding element, and the like. In addition, a part of the function of the display unit 54 is installed in the optical viewfinder 104. Among the display contents of the display unit 54, what is displayed on the LCD or the like includes single shot / continuous shooting display, self-timer display, compression rate display, recording pixel number display, recording number display, remaining image number display, Shutter speed display, aperture value display, exposure compensation display, strobe display, red-eye reduction display, macro shooting display, buzzer setting display, battery level display for clock, battery level display, error display, multi-digit number information display, There are a display state of the storage media 200 and 210, a communication I / F operation display, a date / time display and the like. Among the display contents of the display unit 54, what is displayed on the optical viewfinder 104 includes in-focus display, camera shake warning display, strobe charge display, shutter speed display, aperture value display, exposure correction display, and the like.

不揮発メモリ56は、電気的に消去及び記録が可能なメモリであり、例えばEEPROM等が用いられる。モードダイアル60、シャッタスイッチ62,64、画像表示ON/OFFスイッチ66、クイックレビューON/OFFスイッチ68及び操作部70は、システム制御部50の各種の動作指示を入力するための操作ユニットであり、スイッチやダイアル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される。   The nonvolatile memory 56 is an electrically erasable and recordable memory. For example, an EEPROM or the like is used. A mode dial 60, shutter switches 62 and 64, an image display ON / OFF switch 66, a quick review ON / OFF switch 68, and an operation unit 70 are operation units for inputting various operation instructions of the system control unit 50. It is composed of one or a plurality of combinations such as a switch, dial, touch panel, pointing by line of sight detection, and a voice recognition device.

次にここで、これらの操作ユニットを具体的に説明する。   Next, these operation units will be specifically described here.

モードダイアルスイッチ60は、電源オフ、自動撮影モード、撮影モード、パノラマ撮影モード、再生モード、マルチ画面再生及び消去モード、PC接続モード等の各機能モードを切り替え設定することができる。シャッタスイッチ(SW1)62は、不図示のシャッターボタンの操作途中でオンとなり、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理等の動作開始を指示する。シャッタスイッチ(SW2)64は、不図示のシャッタボタンの操作完了でオンとなり、ストロボ撮影モードの場合は、ストロボユニット48の発光制御、撮像素子14から読み出した信号をA/D変換器16、メモリ制御部22を介してメモリ30に画像データとして書き込む露光処理、画像処理部20やメモリ制御部22での演算を用いた現像処理、メモリ30から画像データを読み出し、圧縮/伸長部32で圧縮を行い、記憶媒体200或いは210に画像データを書き込む記録処理という一連の処理の動作開始を指示する。画像表示ON/OFFスイッチ66は、画像表示部28への画像表示のON/OFFを設定することができる。この機能により、光学ファインダ104を用いて撮影を行う際に、TFT,LCD等からなる画像表示部28への電流供給を遮断することにより、省電力を図ることが可能となる。クイックレビューON/OFFスイッチ68は、撮影直後に、その撮影した画像データを自動再生するクイックレビュー機能を設定する。尚、本実施の形態では、特に画像表示部28をオフにした場合におけるクイックレビュー機能を設定する機能を備えるものとする。操作部70は、各種ボタンやタッチパネル等を有し、これらスイッチやボタンには、メニューボタン、セットボタン、マクロボタン、マルチ画面再生改ページボタン、ストロボ設定ボタン、単写/連写/セルフタイマー切り替えボタン、メニュー移動+(プラス)ボタン、メニュー移動−(マイナス)ボタン、再生画像移動+(プラス)ボタン、再生画像−(マイナス)ボタン、撮影画質選択ボタン、露出補正ボタン、日付/時間設定ボタン等がある。   The mode dial switch 60 can switch and set various function modes such as power-off, automatic shooting mode, shooting mode, panoramic shooting mode, playback mode, multi-screen playback and deletion mode, and PC connection mode. The shutter switch (SW1) 62 is turned on during the operation of a shutter button (not shown), and instructs to start operations such as AF (autofocus) processing, AE (automatic exposure) processing, and AWB (auto white balance) processing. The shutter switch (SW2) 64 is turned on when the operation of a shutter button (not shown) is completed. In the flash photography mode, the light emission control of the flash unit 48 and the signal read from the image sensor 14 are converted to the A / D converter 16 and the memory. Exposure processing to be written as image data in the memory 30 via the control unit 22, development processing using calculation in the image processing unit 20 and the memory control unit 22, image data read out from the memory 30, and compression in the compression / decompression unit 32 And instructing the start of a series of processing operations such as recording processing for writing image data in the storage medium 200 or 210. The image display ON / OFF switch 66 can set ON / OFF of image display on the image display unit 28. With this function, when photographing using the optical viewfinder 104, it is possible to save power by cutting off the current supply to the image display unit 28 including TFT, LCD, and the like. The quick review ON / OFF switch 68 sets a quick review function for automatically reproducing the captured image data immediately after shooting. In the present embodiment, it is assumed that a function for setting a quick review function when the image display unit 28 is turned off is provided. The operation unit 70 has various buttons, a touch panel, and the like. These switches and buttons include a menu button, a set button, a macro button, a multi-screen playback page break button, a strobe setting button, single shooting / continuous shooting / self-timer switching. Button, menu movement + (plus) button, menu movement-(minus) button, playback image movement + (plus) button, playback image-(minus) button, shooting image selection button, exposure compensation button, date / time setting button, etc. There is.

電源制御部80は、電池検出部、DC−DCコンバータ、通電するブロックを切り替えるスイッチ部等を備えており、電池の装着の有無、電池の種類、電池残量の検出を行い、その検出結果及びシステム制御部50の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記憶媒体を含む各部へ供給する。82,84はコネクタ、電源86は、アルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプタ等を備える。   The power control unit 80 includes a battery detection unit, a DC-DC converter, a switch unit that switches a block to be energized, and the like, detects whether or not a battery is installed, the type of battery, and the remaining battery level, and the detection result and The DC-DC converter is controlled based on an instruction from the system control unit 50, and a necessary voltage is supplied to each unit including the storage medium for a necessary period. Reference numerals 82 and 84 denote connectors, and the power source 86 includes primary batteries such as alkaline batteries and lithium batteries, secondary batteries such as NiCd batteries, NiMH batteries, and Li batteries, and AC adapters.

90及び94は、メモリカードやハードディスク等の記憶媒体とのインタフェース、92及び96はメモリカードやハードディスク等の記憶媒体と接続を行うコネクタである。記憶媒体着脱検知部98は、コネクタ92及び或いは96に記憶媒体200或いは210が装着されているか否かを検知する。   Reference numerals 90 and 94 denote interfaces with a storage medium such as a memory card or a hard disk, and reference numerals 92 and 96 denote connectors for connecting to a storage medium such as a memory card or a hard disk. The storage medium attachment / detachment detection unit 98 detects whether the storage medium 200 or 210 is attached to the connector 92 or 96.

尚、本実施の形態では、記憶媒体を取り付けるインターフェース及びコネクタを2系統有するものとして説明している。もちろん、この記憶媒体を取り付けるインターフェース及びコネクタは、単数或いは複数、いずれの系統数を備える構成としても構わない。また、異なる規格のインターフェース及びコネクタを組み合わせて備える構成としても構わない。インターフェース及びコネクタとしては、PCMCIAカードやCF(コンパクフラッシュ)カード等の規格に準拠したものを用いて構成して構わない。   In the present embodiment, it is assumed that there are two systems of interfaces and connectors for attaching a storage medium. Of course, the interface and connector to which this storage medium is attached may have a single or plural number of systems. Moreover, it is good also as a structure provided with combining the interface and connector of a different standard. The interface and the connector may be configured using a PCMCIA card, a CF (Compact Flash) card, or the like that conforms to a standard.

更に、インタフェース90及び94、そしてコネクタ92及び96をPCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成した場合、LANカードやモデムカード、USBカード、IEEE1394カード、P1284カード、SCSIカード、PHS等の通信カード、等の各種通信カードを接続することにより、他のコンピュータやプリンタ等の周辺機器との間で画像データや画像データに付属した管理情報を転送し合うことができる。   Further, when the interfaces 90 and 94 and the connectors 92 and 96 are configured using a PCMCIA card, a CF (Compact Flash (registered trademark)) card, or the like, a LAN card, a modem card, a USB card, IEEE1394. Image data and management information attached to image data are transferred to and from peripheral devices such as other computers and printers by connecting various communication cards such as cards, P1284 cards, SCSI cards, and PHS communication cards. I can meet each other.

絞り102は、シャッタ12との組み合わせで撮像素子14への露光量を決定している。光学ファインダ104は、画像表示部28による電子ファインダ機能を使用すること無しに、光学ファインダのみを用いて撮影を行うことが可能である。また、この光学ファインダ104には、表示部54の一部の機能、例えば、合焦表示、手振れ警告表示、ストロボ充電表示、シャッタスピード表示、絞り値表示、露出補正表示などが設置されている。通信部110は、RS232CやUSB,IEEE1394,P1284,SCSI、モデム、LAN、無線通信、等の各種通信機能を有する。アンテナ(コネクタ)112は、通信部110により画像処理装置100を他の機器と接続するもので、有線による接続の場合はコネクタ、無線通信の場合はアンテナである。記憶媒体200は、メモリカードやハードディスク等の記憶媒体である。この記憶媒体200は、半導体メモリや磁気ディスク等から構成される記憶部202、画像処理装置100とのインタフェース204、画像処理装置100と接続を行うコネクタ206を備えている。また記憶媒体210はメモリカードやハードディスク等の記憶媒体で、この記憶媒体210も半導体メモリや磁気ディスク等から構成される記憶部212、画像処理装置100とのインタフェース214、画像処理装置100と接続を行うコネクタ216を備えている。   The aperture 102 determines the exposure amount to the image sensor 14 in combination with the shutter 12. The optical viewfinder 104 can perform photographing using only the optical viewfinder without using the electronic viewfinder function of the image display unit 28. The optical viewfinder 104 is provided with some functions of the display unit 54, such as a focus display, a camera shake warning display, a strobe charge display, a shutter speed display, an aperture value display, and an exposure correction display. The communication unit 110 has various communication functions such as RS232C, USB, IEEE1394, P1284, SCSI, modem, LAN, and wireless communication. An antenna (connector) 112 is used to connect the image processing apparatus 100 to another device by the communication unit 110, and is a connector in the case of wired connection, and an antenna in the case of wireless communication. The storage medium 200 is a storage medium such as a memory card or a hard disk. The storage medium 200 includes a storage unit 202 composed of a semiconductor memory, a magnetic disk, or the like, an interface 204 with the image processing apparatus 100, and a connector 206 for connecting to the image processing apparatus 100. The storage medium 210 is a storage medium such as a memory card or a hard disk. The storage medium 210 is also connected to the storage unit 212 including a semiconductor memory or a magnetic disk, the interface 214 with the image processing apparatus 100, and the image processing apparatus 100. A connector 216 is provided.

図2は、本実施の形態に係るストロボユニット48をより詳しく説明するブロック図である。   FIG. 2 is a block diagram for explaining the strobe unit 48 according to the present embodiment in more detail.

DC/DCコンバータ300は、電源86から出力される比較的低い電圧を300V程度の高電圧に昇圧している。コンデンサ301は、このDC/DCコンバータ300の出力に並列に接続されて発光エネルギーを充電している。分圧抵抗302,303は、コンデンサ301の充電電圧をモニタするために,その充電電圧を低電圧に分圧している。Xe管等の発光部305は、トリガ部304からのトリガ電圧により励起されて発光する。電流遮断素子306は、Xe管305の発光を制御するための素子で、例えばIGBTなどである。受光素子307は例えばフォトダイオードなどで構成され、Xe管305の発光量をモニタしている。圧縮積分部308は、受光素子307から出力される光電流を入力して増幅し、対数圧縮を行いXe管305の発光量を検出している。発光量コンパレータ309は、Xe管305の発光量が所定量以上かどうかを検出して、その検出結果を出力している。また310〜314はシステムコントローラ50との接続端子である。   The DC / DC converter 300 boosts a relatively low voltage output from the power source 86 to a high voltage of about 300V. The capacitor 301 is connected in parallel to the output of the DC / DC converter 300 to charge the light emission energy. The voltage dividing resistors 302 and 303 divide the charging voltage to a low voltage in order to monitor the charging voltage of the capacitor 301. The light emitting unit 305 such as an Xe tube emits light when excited by the trigger voltage from the trigger unit 304. The current interruption element 306 is an element for controlling light emission of the Xe tube 305, and is, for example, an IGBT. The light receiving element 307 is composed of a photodiode, for example, and monitors the light emission amount of the Xe tube 305. The compression integration unit 308 receives and amplifies the photocurrent output from the light receiving element 307, performs logarithmic compression, and detects the light emission amount of the Xe tube 305. The light emission amount comparator 309 detects whether or not the light emission amount of the Xe tube 305 is equal to or greater than a predetermined amount, and outputs the detection result. Reference numerals 310 to 314 are connection terminals for the system controller 50.

端子310は、Xe管305の発光開始/停止を制御する発光制御端子である。端子311は、トリガ部304を制御するためのトリガ制御信号を入力するトリガ制御端子である。端子312は、コンデンサ301の電圧をモニタするための電圧モニタ端子である。端子313は、発光量を制御するためのコンパレータ309のコンパレート電圧端子、端子314はコンパレータの出力端子である。   The terminal 310 is a light emission control terminal that controls the start / stop of light emission of the Xe tube 305. A terminal 311 is a trigger control terminal for inputting a trigger control signal for controlling the trigger unit 304. A terminal 312 is a voltage monitor terminal for monitoring the voltage of the capacitor 301. A terminal 313 is a comparator voltage terminal of the comparator 309 for controlling the light emission amount, and a terminal 314 is an output terminal of the comparator.

以下、図3乃至図8のフローチャートを参照して、本実施の形態に係る電子カメラの動作を説明する。尚、この処理を実行するプログラム(図9の900)はメモリ52に記憶されており、システム制御部50の制御の下に実行される。尚、このメモリ52のメモリマップ例を図9に示す。図9において、907は、後述するように顔領域が検出されたときに、その顔位置データ及びその顔領域の画像データの平均輝度とを含む1つの顔領域に対する顔データを示している。従って、1つの画像内に複数の顔領域が検出された場合は、その顔領域の数だけ、この顔データ907が記憶されることになる。そして、908は、複数の顔が存在する場合、それら顔領域の平均輝度を求めて格納するエリアである。   Hereinafter, the operation of the electronic camera according to the present embodiment will be described with reference to the flowcharts of FIGS. A program for executing this processing (900 in FIG. 9) is stored in the memory 52 and is executed under the control of the system control unit 50. An example of the memory map of the memory 52 is shown in FIG. In FIG. 9, reference numeral 907 denotes face data for one face area including the face position data and the average luminance of the image data of the face area when the face area is detected as will be described later. Therefore, when a plurality of face areas are detected in one image, as many face data 907 as the number of face areas are stored. Reference numeral 908 denotes an area in which when there are a plurality of faces, the average luminance of these face areas is obtained and stored.

図3及び図4は本実施の形態に係る電子カメラ(画像処理装置)におけるメイン処理ルーチンでの動作を説明するフローチャートである。   3 and 4 are flowcharts for explaining the operation in the main processing routine in the electronic camera (image processing apparatus) according to the present embodiment.

この処理は、例えば電池交換後などの電源投入により開始され、まずステップS101で、システム制御部50は、メモリ52の各種フラグや制御変数等を初期化し、ステップS102で、画像表示部28の画像表示をオフ状態に初期設定する。次にステップS103で、モードダイアル60の設定位置を判定し、モードダイアル60が電源オフに設定されていたならばステップS105に進み、各表示部の表示を終了状態に変更し、フラグや制御変数等を含む必要なパラメータや設定値、設定モードを不揮発性メモリ56に記録し、電源制御手段80により画像表示部28を含む画像処理装置100各部の不要な電源を遮断する等の所定の終了処理を行った後、再びステップS103に戻る。   This process is started when the power is turned on, for example after battery replacement. First, in step S101, the system control unit 50 initializes various flags and control variables in the memory 52, and in step S102, the image on the image display unit 28 is displayed. Initialize the display to the off state. Next, in step S103, the setting position of the mode dial 60 is determined. If the mode dial 60 is set to power off, the process proceeds to step S105, the display on each display unit is changed to the end state, and a flag or control variable is set. Necessary parameters, setting values, and setting modes including the above and the like are recorded in the nonvolatile memory 56, and a predetermined end process such as cutting off unnecessary power sources of the respective units of the image processing apparatus 100 including the image display unit 28 by the power control unit 80. Then, the process returns to step S103 again.

またステップS103で、モードダイアル60が撮影モードに設定されていればステップS106に進むが、その他のモードに設定されていればステップS104に進んで、そのモードダイアル60で選択されたモードに応じた処理を実行し、その処理を終えるとステップS103に戻る。   In step S103, if the mode dial 60 is set to the shooting mode, the process proceeds to step S106. If the other mode is set, the process proceeds to step S104, and the mode dial 60 is selected according to the mode selected by the mode dial 60. The process is executed, and when the process is finished, the process returns to step S103.

撮影モードが設定されている場合はステップS106に進み、電源制御部80からの信号に基づいて、電池等により構成される電源86の残容量や動作情況が画像処理装置100の動作に問題があるか否かを判断する。問題があると判断するとステップS108に進み、表示部54を用いて、画像や音声により所定の警告表示を行い、その後、ステップS103に戻る。   If the shooting mode is set, the process proceeds to step S106, and the remaining capacity and operation status of the power source 86 constituted by a battery or the like has a problem in the operation of the image processing apparatus 100 based on a signal from the power control unit 80. Determine whether or not. If it is determined that there is a problem, the process proceeds to step S108, where a predetermined warning is displayed by an image or sound using the display unit 54, and then the process returns to step S103.

ステップS106で、電源86に問題が無いと判断するとステップS107に進み、記憶媒体200或いは210の動作状態が画像処理装置100の動作、特に記憶媒体に対する画像データの記録再生動作に問題があるか否かを判断し、問題があると判断すると前述のステップS108に進み、表示部54を用いて、画像や音声により所定の警告表示を行った後にステップS103に戻る。   If it is determined in step S106 that there is no problem with the power source 86, the process proceeds to step S107, and whether or not the operation state of the storage medium 200 or 210 has a problem in the operation of the image processing apparatus 100, in particular, the recording / reproducing operation of image data with respect to the storage medium. If it is determined that there is a problem, the process proceeds to step S108 described above, and a predetermined warning is displayed by image or sound using the display unit 54, and then the process returns to step S103.

ステップS107で問題がないと判断するとステップS109に進み、表示部54を用いて、画像や音声により画像処理装置100の各種設定状態のUI表示を行う。尚、画像表示部28の画像表示がオンであったならば、画像表示部28も用いて画像や音声により画像処理装置100の各種設定状態のUI表示を行ってもよい。こうしてユーザによる各種設定がなされる。   If it is determined in step S107 that there is no problem, the process proceeds to step S109, and the display unit 54 is used to display a UI of various setting states of the image processing apparatus 100 using images and sounds. If the image display of the image display unit 28 is on, the UI display of various setting states of the image processing apparatus 100 may be performed using the image display unit 28 by an image or sound. In this way, various settings are made by the user.

次にステップS110で、クイックレビューオン/オフスイッチ68の状態を調べ、クイックレビューがオンに設定されているとステップS111に進んで、メモリ52のクイックレビューフラグ901をオンに設定する。一方、クイックレビューオン/オフスイッチ68で、クイックレビューオフに設定されていればステップS112に進み、メモリ52のクイックレビューフラグ901をオフにする。尚、このクイックレビューフラグ901は、システム制御部50の内部メモリ或いはメモリ52に記憶されているが、ここでは図9に示すように、メモリ52に設定されている場合で説明する。これは他のフラグに関しても同様である。   Next, in step S110, the state of the quick review on / off switch 68 is checked. If the quick review is set to on, the process proceeds to step S111, and the quick review flag 901 in the memory 52 is set to on. On the other hand, if the quick review on / off switch 68 is set to quick review off, the process proceeds to step S112, and the quick review flag 901 in the memory 52 is turned off. The quick review flag 901 is stored in the internal memory of the system control unit 50 or the memory 52. Here, the case where the quick review flag 901 is set in the memory 52 as shown in FIG. The same applies to other flags.

次にステップS113に進み、画像表示オン/オフスイッチ66の設定状態を調べ、画像表示がオンに設定されていればステップS114に進み、メモリ52の画像表示フラグ902をオンに設定し、次にステップS115で、画像表示部28の画像表示をオン状態に設定する。更に、ステップS116で、撮像した画像データを逐次表示するスルー表示状態に設定してステップS119(図4)に進む。このスルー表示状態では、撮像素子14、A/D変換器16、画像処理部20、メモリ制御部22を介して、画像表示用メモリ24に逐次書き込まれたデータを、メモリ制御部22、D/A変換器26を介して画像表示部28により逐次表示することにより、電子ファインダ機能を実現している。   In step S113, the setting state of the image display on / off switch 66 is checked. If the image display is set to on, the process proceeds to step S114, and the image display flag 902 in the memory 52 is set to on. In step S115, the image display of the image display unit 28 is set to an on state. Furthermore, in step S116, the captured image data is set to a through display state for sequentially displaying, and the process proceeds to step S119 (FIG. 4). In this through display state, the data sequentially written in the image display memory 24 via the image sensor 14, the A / D converter 16, the image processing unit 20, and the memory control unit 22 are transferred to the memory control unit 22, the D / D The electronic finder function is realized by sequentially displaying images on the image display unit 28 via the A converter 26.

一方、ステップS113で、画像表示オン/オフスイッチ66が画像表示オフに設定されているとステップS117に進み、画像表示フラグ902をオフにするとともに、ステップS118で、画像表示部28の画像表示をオフ状態に設定してステップS119に進む。この画像表示オフの場合は、画像表示部28による電子ファインダ機能を使用せず、光学ファインダ104を用いて撮影する。この場合、電力消費量の大きい画像表示部28やD/A変換器26等の消費電力を削減することが可能となる。尚、画像表示フラグ902は、システム制御部50の内部メモリ或いはメモリ52に記憶されている。   On the other hand, if the image display on / off switch 66 is set to image display off in step S113, the process proceeds to step S117, and the image display flag 902 is turned off. In step S118, the image display unit 28 displays the image. The off state is set and the process proceeds to step S119. When the image display is off, the image is taken using the optical viewfinder 104 without using the electronic viewfinder function of the image display unit 28. In this case, it is possible to reduce power consumption of the image display unit 28, the D / A converter 26, and the like that consume a large amount of power. The image display flag 902 is stored in the internal memory or the memory 52 of the system control unit 50.

ステップS119では、シャッタスイッチ(SW1)62が押されているかどうかを調べ、押されていなければステップS103に戻るが、シャッタスイッチ(SW1)62が押されたならばステップS120に進み、システム制御部50の内部メモリ或いはメモリ52に記憶されている画像表示フラグ902がオンに設定されているかをみる。オンに設定されていればステップS121に進み、画像表示部28の表示状態をフリーズ表示状態に設定してステップS122に進む。このフリーズ表示状態では、撮像素子14、A/D変換器16、画像処理部20、メモリ制御部22を介した画像表示用メモリ24の画像データの書き換えを禁止し、最後に書き込まれた画像データを、メモリ制御部22、D/A変換器26を介して画像表示部28により表示することにより、フリーズした映像を光学ファインダ104に表示している。   In step S119, it is checked whether or not the shutter switch (SW1) 62 has been pressed. If not, the process returns to step S103. If the shutter switch (SW1) 62 has been pressed, the process proceeds to step S120, and the system control unit. It is checked whether the image display flag 902 stored in the internal memory 50 or the memory 52 is set to ON. If it is set to ON, the process proceeds to step S121, the display state of the image display unit 28 is set to the freeze display state, and the process proceeds to step S122. In this freeze display state, rewriting of image data in the image display memory 24 via the image sensor 14, A / D converter 16, image processing unit 20, and memory control unit 22 is prohibited, and the last written image data Is displayed by the image display unit 28 via the memory control unit 22 and the D / A converter 26, thereby displaying the frozen image on the optical viewfinder 104.

ステップS120で、画像表示フラグ902がオフであればステップS122に進む。ステップS122では、測距処理を行って撮影レンズ10の焦点を被写体に合わせ、更に測光処理を行って絞り値及びシャッタ速度を決定する。この測光処理では、必要であればストロボの設定も行う。尚、この測距及び測光処理S122の詳細は図5のフローチャートを参照して詳しく後述する。   If the image display flag 902 is off in step S120, the process proceeds to step S122. In step S122, a distance measurement process is performed to focus the photographing lens 10 on the subject, and a photometry process is performed to determine an aperture value and a shutter speed. In this photometric process, the strobe is set if necessary. The details of the distance measurement and photometry processing S122 will be described later in detail with reference to the flowchart of FIG.

ステップS122で、測距及び測光処理を終えるとステップS123に進み、システム制御部50の内部メモリ或いはメモリ52に記憶される画像表示フラグ902の状態を判定する。ここで画像表示フラグ902がオンに設定されているとステップS124に進み、画像表示部28の表示状態をスルー表示状態に設定してステップS125に進む。尚、ステップS124でのスルー表示状態は、ステップS116でのスルー状態と同じ動作である。   When the distance measurement and photometry processing is completed in step S122, the process proceeds to step S123, and the state of the image display flag 902 stored in the internal memory of the system control unit 50 or the memory 52 is determined. If the image display flag 902 is set to ON, the process proceeds to step S124, the display state of the image display unit 28 is set to the through display state, and the process proceeds to step S125. The through display state in step S124 is the same operation as the through state in step S116.

次にステップS125で、シャッタスイッチ(SW2)64が押されずに、更にシャッタスイッチ(SW1)62も解除されるとステップS103(図3)に戻る。   Next, in step S125, if the shutter switch (SW1) 62 is also released without pressing the shutter switch (SW2) 64, the process returns to step S103 (FIG. 3).

一方、ステップS125でシャッタスイッチ(SW2)64が押されるとステップS127に進み、システム制御部50の内部メモリ或いはメモリ52に記憶される画像表示フラグ902がオンかどうかを判定し、画像表示フラグ902がオンであればステップS128に進み、画像表示部28の表示状態を固定色表示状態に設定してステップS129に進む。この固定色表示状態では、撮像素子14、A/D変換器16、画像処理部20、メモリ制御部22を介して画像表示用メモリ24に書き込まれた撮影画像データの代わりに、差し替えた固定色の画像データを、メモリ制御部22、D/A変換器26を介して画像表示部28に表示する。こうして固定色の映像を電子ファインダ104に表示している。   On the other hand, when the shutter switch (SW2) 64 is pressed in step S125, the process proceeds to step S127, where it is determined whether the image display flag 902 stored in the internal memory of the system control unit 50 or the memory 52 is on, and the image display flag 902 is determined. If ON, the process proceeds to step S128, the display state of the image display unit 28 is set to the fixed color display state, and the process proceeds to step S129. In this fixed color display state, instead of the captured image data written in the image display memory 24 via the image sensor 14, the A / D converter 16, the image processing unit 20, and the memory control unit 22, the fixed color replaced. Is displayed on the image display unit 28 via the memory control unit 22 and the D / A converter 26. In this way, a fixed color image is displayed on the electronic viewfinder 104.

またステップS127で、画像表示フラグ902がオフであればステップS129に進む。このステップS129では、撮像素子14、A/D変換器16、画像処理部20、メモリ制御部22を介して、或いはA/D変換器16から直接メモリ制御部22を介して、撮影した画像データをメモリ30に書き込む露光処理、及び、メモリ制御部22、そして必要に応じて画像処理部20を用いて、メモリ30に書き込まれた画像データを読み出して各種処理を行う現像処理からなる撮影処理を実行する。   If the image display flag 902 is off in step S127, the process proceeds to step S129. In this step S129, the captured image data is acquired via the image sensor 14, the A / D converter 16, the image processing unit 20, the memory control unit 22, or directly from the A / D converter 16 via the memory control unit 22. Exposure processing for writing the image data into the memory 30, and photographing processing including development processing for reading out the image data written in the memory 30 and performing various processing using the memory control unit 22 and, if necessary, the image processing unit 20. Execute.

この撮影処理(S129)の詳細は図6及び図7を参照して用いて後述する。   Details of the photographing process (S129) will be described later with reference to FIGS.

こうしてステップS129の撮影処理が実行されるとステップS130に進み、システム制御部50の内部メモリ或いはメモリ52に記憶される画像表示フラグ902がオンかどうかを判定し、画像表示フラグ902がオンであればステップS133に進み、クイックレビュー表示を行う。この場合は、撮影中も画像表示部28が電子ファインダとして常に表示された状態であり、撮影直後のクイックレビュー表示も行われる。   When the photographing process of step S129 is executed in this way, the process proceeds to step S130, where it is determined whether or not the image display flag 902 stored in the internal memory of the system control unit 50 or the memory 52 is on, and the image display flag 902 is on. In step S133, a quick review display is performed. In this case, the image display unit 28 is always displayed as an electronic viewfinder even during shooting, and quick review display immediately after shooting is also performed.

ステップS130で、画像表示フラグ902がオフであればステップS131に進み、システム制御部50の内部メモリ或いはメモリ52に記憶されるクイックレビューフラグ901がオンかどうかをみる。クイックレビューフラグ901がオンであればステップS132に進み、画像表示部28の画像表示をオン状態に設定してクイックレビュー表示を行い、その後、ステップS134に進む。   If it is determined in step S130 that the image display flag 902 is off, the process advances to step S131 to check whether the quick review flag 901 stored in the internal memory of the system control unit 50 or the memory 52 is on. If the quick review flag 901 is on, the process proceeds to step S132, the image display of the image display unit 28 is set to the on state, the quick review display is performed, and then the process proceeds to step S134.

またステップS130で画像表示フラグ902がオフで、ステップS131でクイックレビューフラグ901もオフであれば、画像表示部28をオフ状態のままでステップS134に進む。この場合は、撮影を行った後でも画像表示部28は消えたままであり、クイックレビュー表示も行われない。これは、光学ファインダ104を用いて撮影を続ける場合のように、撮影直後の撮影画像の確認が不要で、画像表示部28の電子ファインダ機能を使用せずに省電力を重視する使用方法である。   If the image display flag 902 is off in step S130 and the quick review flag 901 is also off in step S131, the process proceeds to step S134 while the image display unit 28 remains off. In this case, the image display unit 28 remains off even after shooting, and no quick review display is performed. This is a usage method that places importance on power saving without using the electronic viewfinder function of the image display unit 28 without the need to check the photographed image immediately after photographing, as in the case of continuing photographing using the optical viewfinder 104. .

ステップS134では、メモリ30に書き込まれた撮影した画像データを読み出して、メモリ制御部22、及び必要に応じて画像処理部20を用いて各種画像処理を実行し、及び、圧縮/伸長部32を用いて設定したモードに応じた画像圧縮処理を行った後、記憶媒体200或いは210へ、圧縮した画像データの書き込みを行う記録処理を実行する。この記録処理(S134)の詳細は図8のフローチャートを参照して詳しく後述する。   In step S134, the captured image data written in the memory 30 is read out, and various image processing is executed using the memory control unit 22 and, if necessary, the image processing unit 20, and the compression / decompression unit 32 is executed. After performing the image compression process according to the mode set by using, the recording process for writing the compressed image data to the storage medium 200 or 210 is executed. Details of the recording process (S134) will be described later in detail with reference to the flowchart of FIG.

ステップS134の記録処理が終了した後、ステップS135で、シャッタスイッチ(SW2)64が押された状態かどうかを調べ、そうであればステップS136に進み、システム制御部50の内部メモリ或いはメモリ52に記憶される連写フラグ903の状態を判定する。ここで連写フラグ903がオンであれば、連続して撮影を行うためにステップS129に進み、次の映像の撮影を行う。ステップS136で、連写フラグ903がオンでなければステップS137に進み、シャッタースイッチ(SW2)64が放されるまでステップS135、S136の処理を繰り返す。   After the recording process in step S134 is completed, in step S135, it is checked whether the shutter switch (SW2) 64 has been pressed. If so, the process proceeds to step S136, and the internal control memory 50 or the memory 52 of the system control unit 50 is checked. The state of the continuous shooting flag 903 stored is determined. If the continuous shooting flag 903 is ON, the process proceeds to step S129 to continuously shoot, and the next video is shot. If the continuous shooting flag 903 is not on in step S136, the process proceeds to step S137, and the processes in steps S135 and S136 are repeated until the shutter switch (SW2) 64 is released.

このように本実施の形態によれば、撮影直後にクイックレビュー表示を行う動作設定状態の場合に、記録処理(S134)が終了した際にシャッタスイッチ(SW2)が押された状態であればシャッタスイッチ(SW2)64が放されるまで画像表示部28におけるクイックレビュー表示を継続する。これにより、撮影画像の確認を入念に行うことができる。   As described above, according to the present embodiment, in the operation setting state in which the quick review display is performed immediately after shooting, the shutter is pressed if the shutter switch (SW2) is pressed when the recording process (S134) is completed. The quick review display on the image display unit 28 is continued until the switch (SW2) 64 is released. Thereby, it is possible to carefully check the captured image.

こうしてステップS134の記録処理の後、直ぐにシャッタスイッチ(SW2)64がオフされた場合、或いは、ステップS134の記録処理の後、シャッタスイッチ(SW2)を押し続けてクイックレビュー表示を継続して撮影画像の確認を行った後にシャッタースイッチ(SW2)をオフにした場合はステップS135からステップS137に進み、所定のミニマムレビュー時間が経過するのを待ってステップS138に進む。ステップS138では、画像表示フラグ902がオンかどうかを調べ、オンであればステップS139に進み、画像表示部28の表示状態をスルー表示状態に設定してステップS141に進む。これにより、画像表示部28でのクイックレビュー表示によって撮影画像を確認した後に、次の撮影のために撮像した画像データを逐次表示するスルー表示状態にすることが出来る。またステップS138で、画像表示フラグ902がオフであればステップS140に進み、画像表示部28の画像表示をオフ状態に設定してステップS141に進む。これにより、画像表示部28でのクイックレビュー表示によって撮影画像を確認した後に、省電力のために画像表示部28の機能を停止して、電力消費量の大きい画像表示部28やD/A変換器26等の消費電力を削減することが可能となる。   In this way, when the shutter switch (SW2) 64 is turned off immediately after the recording process of step S134, or after the recording process of step S134, the shutter switch (SW2) is kept pressed and the quick review display is continued to be taken. When the shutter switch (SW2) is turned off after confirming the above, the process proceeds from step S135 to step S137, and waits for a predetermined minimum review time to elapse, and then proceeds to step S138. In step S138, it is checked whether the image display flag 902 is on. If it is on, the process proceeds to step S139, the display state of the image display unit 28 is set to the through display state, and the process proceeds to step S141. Thereby, after confirming the captured image by the quick review display on the image display unit 28, it is possible to enter a through display state in which image data captured for the next imaging is sequentially displayed. If the image display flag 902 is off in step S138, the process proceeds to step S140, the image display of the image display unit 28 is set to the off state, and the process proceeds to step S141. Thus, after confirming the captured image by the quick review display on the image display unit 28, the function of the image display unit 28 is stopped for power saving, and the image display unit 28 or D / A conversion with large power consumption is stopped. It is possible to reduce the power consumption of the device 26 and the like.

ステップS141では、シャッタスイッチ(SW1)62がオンされた状態かどうかを調べ、そうであればステップS125に進んで次の撮影に備える。またステップS141で、シャッタスイッチ(SW1)62がオフされている場合は、一連の撮影動作を終えてステップS103(図3)に戻る。   In step S141, it is checked whether the shutter switch (SW1) 62 is turned on. If so, the process proceeds to step S125 to prepare for the next shooting. If it is determined in step S141 that the shutter switch (SW1) 62 has been turned off, the series of photographing operations is terminated and the process returns to step S103 (FIG. 3).

図5は、図4のステップS122における測距及び測光処理の詳細を示すフローチャートである。   FIG. 5 is a flowchart showing details of the distance measurement and photometry processing in step S122 of FIG.

まずステップS201で、撮像素子14から電荷信号を読み出し、A/D変換器16を介してデジタルデータに変換し、そのデジタルデータを画像処理部20に入力する。この入力された画像データを用いて、画像処理部20はTTL方式のAE(自動露出)処理、EF(ストロボプリ発光)処理、AF(オートフォーカス)処理に用いる所定の演算を行っている。尚、ここでの各処理は、撮影した全画素数の内の必要に応じた特定の部分を必要個所分切り取って抽出し演算に用いている。これにより、TTL方式のAE,EF,AWB,AFの各処理において、中央重点モード、平均モード、評価モードの各モード等の異なるモード毎に最適な演算を行うことが可能となる。   First, in step S <b> 201, a charge signal is read from the image sensor 14, converted into digital data via the A / D converter 16, and the digital data is input to the image processing unit 20. Using the input image data, the image processing unit 20 performs predetermined calculations used for TTL AE (automatic exposure) processing, EF (strobe pre-emission) processing, and AF (autofocus) processing. In each process here, a specific portion of the total number of captured pixels is extracted according to necessity and extracted for use. Thereby, in each process of TTL method AE, EF, AWB, and AF, it is possible to perform an optimal calculation for each different mode such as the center weight mode, the average mode, and the evaluation mode.

ステップS201における画像処理部20での演算結果を用いて、ステップS202で露出(AE)が適正と判断されナイトステップS203に進み、絞り制御部46及び、撮像素子14の電子シャッタの組み合わせでAE制御を行う。このAE制御で得られた測定データ905(図9)を用いて、ステップS204で、ストロボが必要か否かを判断し、ストロボが必要であればステップS205に進み、ストロボフラグ904をセットし、ストロボ48を充電してステップS201に進む。   Using the calculation result in the image processing unit 20 in step S201, the exposure (AE) is determined to be appropriate in step S202, and the process proceeds to night step S203. AE control is performed by a combination of the aperture control unit 46 and the electronic shutter of the image sensor 14. I do. Using measurement data 905 (FIG. 9) obtained by this AE control, it is determined in step S204 whether or not a strobe is necessary. If strobe is necessary, the process proceeds to step S205, and a strobe flag 904 is set. The strobe 48 is charged and the process proceeds to step S201.

ステップS202で、露出(AE)が適正と判断したならばステップS206に進み、測定データ905及び或いは設定パラメータ906をシステム制御部50の内部メモリ或いはメモリ52に記憶する(図9ではメモリ52に記憶した例を示す)。そして画像処理部20での演算結果及びAE制御で得られた測定データを用いて、ホワイトバランス(AWB)が適正かどうかを判断し、適正でないと判断するとステップS207に進み、画像処理部20を用いて色処理のパラメータを調節してAWB制御を行ってステップS201に進む。   If it is determined in step S202 that the exposure (AE) is appropriate, the process proceeds to step S206, and the measurement data 905 and / or the setting parameter 906 are stored in the internal memory of the system control unit 50 or in the memory 52 (in FIG. 9, stored in the memory 52). Example). Then, using the calculation result in the image processing unit 20 and the measurement data obtained by the AE control, it is determined whether or not the white balance (AWB) is appropriate. The AWB control is performed by adjusting the parameters of the color processing using, and the process proceeds to step S201.

こうしてステップS206で、ホワイトバランス(AWB)が適正と判断するとステップS208に進み、メモリ52の測定データ905及び或いは設定パラメータ906をシステム制御部50の内部メモリ或いはメモリ52に記憶する。そしてAE制御及びAWB制御で得られた測定データ905を用いて、測距(AF)が合焦であるかどうかを判断する。合焦でないときはステップS209に進み、測距制御部42を用いてAF制御を行ってステップS201に進む。こうしてステップS208で、測距(AF)が合焦と判断すると、測定データ905及び或いは設定パラメータ906をシステム制御部50の内部メモリ或いはメモリ52に記憶し、この測距及び測光処理を終了する。   When it is determined in step S206 that the white balance (AWB) is appropriate, the process proceeds to step S208, and the measurement data 905 and / or the setting parameter 906 in the memory 52 are stored in the internal memory or the memory 52 of the system control unit 50. Then, using the measurement data 905 obtained by the AE control and the AWB control, it is determined whether or not the distance measurement (AF) is in focus. If not in focus, the process proceeds to step S209, AF control is performed using the distance measurement control unit 42, and the process proceeds to step S201. When it is determined in step S208 that the distance measurement (AF) is in focus, the measurement data 905 and / or the setting parameter 906 are stored in the internal memory or the memory 52 of the system control unit 50, and the distance measurement and photometry processing ends.

図6及び図7は、図4のS129における撮影処理の詳細を示すフローチャートである。   6 and 7 are flowcharts showing details of the photographing process in S129 of FIG.

前述の測距及び測光処理で得られて、システム制御部50の内部メモリ或いはメモリ52に記憶されている測光データ905に従い、絞り制御部46にて絞り値をセットするとともに、シャッタ制御部40によってシャッタ12を開放して撮像素子10を露光する(S301及びS302)。   The aperture value is set by the aperture control unit 46 in accordance with the photometry data 905 obtained by the above-described distance measurement and photometry processing and stored in the internal memory of the system control unit 50 or the memory 52, and the shutter control unit 40 also sets the aperture value. The shutter 12 is opened to expose the image sensor 10 (S301 and S302).

次にステップS303で、ストロボフラグ904によりストロボ48が必要か否かを判断し、ストロボが必要な場合はステップS304に進み、所定の発光量でストロボユニット80をプリ発光させる。このプリ発光の光量は、レンズ10の絞り値と距離検出部43で検出された被写体までの距離と、設定された撮像素子14の感度とに基づいて決定される。ステップS305では、測光データ905に従って撮像素子14の露光終了を待ち、露光終了のタイミングになるとステップS306で、シャッタ12を閉じる。そしてステップS307で、撮像素子14から電荷信号を読み出し、A/D変換器16、画像処理部20、メモリ制御部22を介して、或いはA/D変換器16から直接メモリ制御部22を介して、撮影画像のデータをメモリ30に書き込む。   Next, in step S303, it is determined whether or not the strobe 48 is necessary based on the strobe flag 904. If the strobe is necessary, the process proceeds to step S304, and the strobe unit 80 is pre-flashed with a predetermined light emission amount. The amount of pre-emission is determined based on the aperture value of the lens 10, the distance to the subject detected by the distance detection unit 43, and the set sensitivity of the image sensor 14. In step S305, the exposure of the image sensor 14 is awaited according to the photometric data 905. When the exposure end timing comes, the shutter 12 is closed in step S306. In step S307, the charge signal is read out from the image sensor 14, and the A / D converter 16, the image processing unit 20, the memory control unit 22, or the A / D converter 16 directly through the memory control unit 22 is read. The captured image data is written into the memory 30.

次にステップS308に進み、設定された撮影モードに応じて、フレーム処理を行う必要があるかどうかを判定し、フレーム処理を行う必要があればステップS309に進み、メモリ制御部22、及び必要に応じて画像処理部20を用いて、メモリ30に書き込まれた画像データを読み出して垂直加算処理を実行し、次にステップS310で、色処理を順次行った後、ステップS311で、顔検知処理を行う。この画像処理部20による顔検知処理は、前述した様に、撮像した画像データのなかから、目、口のエッジを特徴を抽出することにより人の顔位置を検知し、目、口を包含する顔の輪郭を検出して、その重心位置を求めるとともに、輪郭内の領域の輝度(画像信号レベル)を算出する。尚、この顔検知処理は、レンズ10のフォーカシング位置より、距離検出部43で検出した距離と、レンズの焦点距離とから人の顔の大きさを予測し、検出精度を高めている。   Next, the process proceeds to step S308, where it is determined whether it is necessary to perform frame processing according to the set shooting mode. If it is necessary to perform frame processing, the process proceeds to step S309, where the memory control unit 22 and the necessary processing are performed. Accordingly, the image processing unit 20 is used to read the image data written in the memory 30 and execute vertical addition processing. Next, in step S310, color processing is sequentially performed, and then face detection processing is performed in step S311. Do. As described above, the face detection process by the image processing unit 20 detects the position of a person's face by extracting features of the edges of the eyes and mouth from the captured image data, and includes the eyes and mouth. The contour of the face is detected, the position of the center of gravity is obtained, and the luminance (image signal level) of the area within the contour is calculated. In this face detection process, the size of a human face is predicted from the focusing position of the lens 10 based on the distance detected by the distance detection unit 43 and the focal length of the lens, thereby improving detection accuracy.

次にステップS312では、ステップS311で検知された顔の数を判定し、その数が「0」の場合はステップS313に進み、「1」の場合はステップS314に、複数の場合はステップS318に分岐する。顔面検知がなされなかった場合、即ち、検知された顔の数が「0」の場合はステップS313で、予め設定されている通りに、測距点と合致した調光領域内の輝度(画像信号レベル)平均値を算出してステップS321(図7)に進む。   Next, in step S312, the number of faces detected in step S311 is determined. If the number is “0”, the process proceeds to step S313. If “1”, the process proceeds to step S314. If more than one, the process proceeds to step S318. Branch. If face detection has not been performed, that is, if the number of detected faces is “0”, in step S313, as previously set, the luminance (image signal in the dimming area that matches the distance measuring point). Level) average value is calculated, and the process proceeds to step S321 (FIG. 7).

検出された顔の数が「1」の場合、ステップS314で、その検出された顔の位置が予め設定された調光領域と一致するかどうかを判定し、一致する場合はステップS315に進み、検出された顔面の面積に応じて調光領域を修正する。一致しない場合はステップS316に分岐し、その検出された顔位置(図9の顔位置データに基づく領域)を新たな調光領域に設定し、検出された顔の面積に応じて調光領域を設定する。こうしてステップS315或はS316を実行するとステップS317に進み、ステップS315或はステップS316で設定された調光領域内の輝度(画像信号レベル)の平均値(図9の顔領域の平均輝度)を算出してステップS321(図7)に進む。   If the number of detected faces is “1”, in step S314, it is determined whether or not the position of the detected face matches a preset dimming area. If they match, the process proceeds to step S315. The dimming area is corrected according to the detected face area. If they do not match, the process branches to step S316, the detected face position (area based on the face position data in FIG. 9) is set as a new dimming area, and the dimming area is set according to the detected face area. Set. When step S315 or S316 is executed in this way, the process proceeds to step S317, and the average value of the luminance (image signal level) in the light control region set in step S315 or step S316 (average luminance of the face region in FIG. 9) is calculated. Then, the process proceeds to step S321 (FIG. 7).

一方、ステップS312の顔の検出処理で、複数の顔が検出された場合はステップS318(図7)に進み、それら検出された各顔の顔位置データと、各顔の領域に応じた複数の調光領域を設定する。次にステップS319で、各顔領域(調光領域内)の輝度(画像信号レベル)の平均値を算出して図9に示す各顔の平均輝度907に記憶する。更にステップS320で、これら検出された複数の調光領域の平均輝度を更に平均化して図9の複数の顔の平均輝度エリア908に格納してステップS321に進む。   On the other hand, if a plurality of faces are detected in the face detection process in step S312, the process proceeds to step S318 (FIG. 7), and a plurality of face position data for each detected face and a plurality of faces corresponding to each face region are detected. Set the dimming area. Next, in step S319, the average value of the brightness (image signal level) of each face area (in the light control area) is calculated and stored in the average brightness 907 of each face shown in FIG. Further, in step S320, the average brightness of the detected plurality of light control areas is further averaged and stored in the plurality of face average brightness areas 908 of FIG. 9, and the process proceeds to step S321.

こうしてステップS321で、調光領域内の輝度(画像信号レベル)が適正輝度(適正信号レベル)となる本発光量(実際の撮影時の発光量)を演算する。例えば、プリ発光によるプリ撮像の画像信号レベルが適正レベルである場合は、プリ発光と同じ発光量で良く、また例えば、プリ撮像の画像信号レベルが1段階下回っている場合は、プリ発光の2倍の発光量に設定する等の処理を行う。   In this way, in step S321, the main light emission amount (light emission amount at the time of actual photographing) at which the luminance (image signal level) in the dimming area becomes appropriate luminance (appropriate signal level) is calculated. For example, when the image signal level of pre-imaging by pre-emission is an appropriate level, the same amount of light emission as that of pre-emission is sufficient. For example, when the image signal level of pre-emission is one step lower, Processing such as setting the light emission amount to double is performed.

次にステップS322で、本撮像のために、再度シャッタ制御部40によってシャッタ12を開放し、ステップS323で、撮像素子10を露光する。そしてステップS324に進み、ステップS321で求めた本発光量で、ストロボユニット80を発光させる。   Next, in step S322, the shutter 12 is opened again by the shutter control unit 40 for the main imaging, and the image sensor 10 is exposed in step S323. Then, the process proceeds to step S324, and the strobe unit 80 is caused to emit light with the main light emission amount obtained in step S321.

ステップS325では、測光データに従って撮像素子14の露光が終了までの時間を待ち、ステップS326で、シャッタ12を閉じる。そしてステップS327で、撮像素子14から電荷信号を読み出し、A/D変換器16、画像処理部20、メモリ制御部22を介して、或いはA/D変換器16から直接メモリ制御部22を介して、メモリ30に撮影画像のデータを書き込む。ステップS328で、設定された撮影モードに応じて、フレーム処理を行う必要があるかどうかを判断し、フレーム処理を行う必要があればステップS329に進み、メモリ制御部22、そして必要に応じて画像処理部20を用いて、メモリ30に書き込まれた画像データを読み出して垂直加算処理を実行し、ステップS330で、色処理を順次行った後、その処理を終えた画像データをメモリ30に書き込む。そしてステップS331で、メモリ30から画像データを読み出し、メモリ制御部22を介して画像表示用メモリ24に表示画像データの転送を行う。こうして一連の処理を終えたならば、撮影処理ルーチン(S129)を終了する。   In step S325, the time until the exposure of the image sensor 14 is completed according to the photometric data, and the shutter 12 is closed in step S326. In step S327, the charge signal is read out from the image sensor 14, and the A / D converter 16, the image processing unit 20, the memory control unit 22 or directly from the A / D converter 16 through the memory control unit 22. The captured image data is written in the memory 30. In step S328, it is determined whether frame processing needs to be performed according to the set shooting mode. If frame processing needs to be performed, the process proceeds to step S329, and the memory control unit 22 and, if necessary, the image are processed. The processing unit 20 is used to read the image data written in the memory 30 and execute vertical addition processing. In step S330, color processing is sequentially performed, and then the processed image data is written to the memory 30. In step S331, the image data is read from the memory 30, and the display image data is transferred to the image display memory 24 via the memory control unit 22. When the series of processing is thus completed, the photographing processing routine (S129) is terminated.

図8は、図4のS134における撮像記録処理の詳細を示すフローチャートである。   FIG. 8 is a flowchart showing details of the imaging recording process in S134 of FIG.

まずステップS401で、メモリ制御部22、そして必要に応じて画像処理部20を用いて、メモリ30に書き込まれた撮影画像データを読み出して撮像素子の縦横画素比率を「1:1」に補間する画素正方化処理を行い、その処理を終えた画像データをメモリ30に書き込む。次にステップS402で、メモリ30に書き込まれた画像データを読み出して、設定したモードに応じた画像圧縮処理を圧縮/伸長部32により行った後、ステップS403で、インターフェース90或いは94、コネクタ92或いは96を介して、メモリカードやコンパクトストロボカード等の記憶媒体200或いは210へ圧縮した画像データの書き込みを行う。こうして記憶媒体への書き込みが終わったならば、記録処理ルーチンS134を終了する。   First, in step S401, the captured image data written in the memory 30 is read out using the memory control unit 22 and, if necessary, the image processing unit 20, and the vertical / horizontal pixel ratio of the image sensor is interpolated to “1: 1”. A pixel square process is performed, and the processed image data is written in the memory 30. Next, in step S402, the image data written in the memory 30 is read out and image compression processing according to the set mode is performed by the compression / decompression unit 32. Then, in step S403, the interface 90 or 94, the connector 92 or The compressed image data is written to the storage medium 200 or 210 such as a memory card or a compact strobe card via 96. When the writing to the storage medium is thus completed, the recording processing routine S134 is ended.

尚、本実施の形態では、画像処理装置100にて検出された顔位置と、その大きさに応じて、調光領域を設定したが、誤検出の可能性もあるので、被写体までの距離を検出する距離検出部40で検出された、被写体距離、プリ発光光量、絞り値、ISO感度を基に、顔の反射率を25%とした場合の適正となる輝度値を演算し、その輝度値と比較して、所望の範囲内であれば、検出された顔位置をそのまま調光領域として用い、その範囲外であるならば誤検出と判断して、予め設定された調光領域を用いるか、もしくは画面上の最も輝度の高い領域を調光領域として用いてもよい。   In this embodiment, the dimming area is set according to the face position detected by the image processing apparatus 100 and its size. However, since there is a possibility of erroneous detection, the distance to the subject is set. Based on the subject distance, the pre-emission light quantity, the aperture value, and the ISO sensitivity detected by the distance detection unit 40 to be detected, an appropriate luminance value is calculated when the reflectance of the face is 25%, and the luminance value If it is within the desired range, the detected face position is used as it is as the dimming area, and if it is out of the range, it is judged as a false detection, and the preset dimming area is used. Alternatively, an area with the highest luminance on the screen may be used as the dimming area.

また、この際、前述の被写体距離に応じた適正輝度値と、画面内の高輝度領域を比較し、所望の輝度範囲よりも高い場合は、ガラスや鏡などの異常反射領域として、調光領域から排除することにより、より正確に調光領域を設定することが可能になる。また、顔検知の際は、被写体の色相を認識することにより、より正確に顔の領域を検出することが可能となる。   At this time, the appropriate brightness value according to the subject distance is compared with the high brightness area in the screen, and if it is higher than the desired brightness range, the dimming area is used as an abnormal reflection area such as glass or a mirror. By eliminating from the above, it becomes possible to set the light control region more accurately. In the face detection, the face area can be detected more accurately by recognizing the hue of the subject.

(その他の実施例)
なお本発明は、複数の機器(例えばホストコンピュータ、インターフェース機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
(Other examples)
Note that the present invention can be applied to a system (for example, a copier, a facsimile machine, etc.) composed of a single device even if it is applied to a system composed of a plurality of devices (for example, a host computer, interface device, reader, printer, etc.). May be.

また、本発明の目的は、前述した実施の形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システム或は装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても達成される。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータで稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。   Another object of the present invention is to supply a storage medium (or recording medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded to a system or apparatus, and to perform a computer (or a computer) This can also be achieved by the CPU and MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer is actually executed based on the instruction of the program code. This includes a case where part or all of the processing is performed and the functions of the above-described embodiments are realized by the processing.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。例えば、PC上のドライバでこれらの処理を行う場合が、これに相当することは言うまでもない。   Furthermore, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is determined based on the instruction of the program code. The case where the CPU of the expansion card or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing is also included. For example, it goes without saying that this processing is performed by a driver on a PC.

本発明の実施の形態に係る電子カメラの構成を示すブロック図である。It is a block diagram which shows the structure of the electronic camera which concerns on embodiment of this invention. 本実施の形態に係る電子カメラのストロボ部の構成を示すブロック図である。It is a block diagram which shows the structure of the flash part of the electronic camera which concerns on this Embodiment. 本実施の形態に係る電子カメラにおけるメインルーチンの処理を示すフローチャートである。It is a flowchart which shows the process of the main routine in the electronic camera which concerns on this Embodiment. 本実施の形態に係る電子カメラにおけるメインルーチンの処理を示すフローチャートである。It is a flowchart which shows the process of the main routine in the electronic camera which concerns on this Embodiment. 本実施の形態に係る電子カメラにおける測距及び測光処理を示すフローチャートである。It is a flowchart which shows the ranging and photometry process in the electronic camera which concerns on this Embodiment. 本実施の形態に係る電子カメラにおける撮影処理を説明するフローチャートである。It is a flowchart explaining the imaging | photography process in the electronic camera which concerns on this Embodiment. 本実施の形態に係る電子カメラにおける撮影処理を説明するフローチャートである。It is a flowchart explaining the imaging | photography process in the electronic camera which concerns on this Embodiment. 本実施の形態に係る電子カメラにおける記録処理を説明するフローチャートであるIt is a flowchart explaining the recording process in the electronic camera which concerns on this Embodiment. 本実施の形態に係る電子カメラのメモリのメモリマップ例を示す図である。It is a figure which shows the memory map example of the memory of the electronic camera which concerns on this Embodiment. 被写体と合焦領域が一致する場合の被写体と合焦領域、調光領域を説明する図である。It is a figure explaining a to-be-focused area | region and a light control area | region when a to-be-photographed object and a focusing area | region correspond. 被写体と合焦領域が一致しない場合の被写体と合焦領域、調光領域を説明する図である。It is a figure explaining a to-be-photographed object, a focus area | region, and a light control area | region when a to-be-photographed object and a focus area | region do not correspond. 被写体と合焦領域が一致する場合の被写体と合焦領域、調光領域を説明する図である。It is a figure explaining a to-be-focused area | region and a light control area | region when a to-be-photographed object and a focusing area | region correspond.

Claims (14)

撮影時におけるメイン発光前にプリ発光を行う撮像装置であって、
被写体との距離を測定する測距手段と、
被写体を含む撮像画像内にストロボの調光制御領域を、前記測距手段により測定された前記距離に応じて設定する調光領域設定手段と、
プリ発光による撮像画像を基に、前記撮像画像内における顔領域を検出する顔領域検出手段と、
前記顔領域検出手段により検出された顔領域に応じて前記調光制御領域を決定する決定手段と、
前記決定手段で決定された前記調光制御領域における前記プリ発光による測光値に応じてメイン発光量を演算する演算手段と、
前記演算手段により演算された前記メイン発光量に基づいてストロボを制御して撮影を行うように制御する制御手段と、
を有することを特徴とする撮像装置。
An imaging device that performs pre-flash before main flash during shooting,
Ranging means for measuring the distance to the subject;
A dimming area setting means for setting a dimming control area of a strobe in a captured image including a subject according to the distance measured by the distance measuring means;
A face area detecting means for detecting a face area in the captured image based on a captured image by pre-emission;
Determining means for determining the dimming control area according to the face area detected by the face area detecting means;
A calculation means for calculating a main light emission amount according to a photometric value by the pre-light emission in the light control area determined by the determination means;
Control means for controlling the strobe to perform shooting based on the main light emission amount calculated by the calculating means;
An imaging device comprising:
前記プリ発光時のストロボ照射光量は、前記測距手段により測定された前記距離と、設定された絞りと、撮像素子の感度に基づいて決定されることを特徴とする請求項1に記載の撮像装置。   2. The imaging according to claim 1, wherein the strobe irradiation light amount at the time of the pre-light emission is determined based on the distance measured by the distance measuring unit, a set aperture, and sensitivity of an imaging device. apparatus. 前記演算手段は、前記変更された前記調光制御領域における前記プリ発光による平均輝度を求め、前記平均輝度に基づいて前記メイン発光量を演算することを特徴とする請求項1又は2に記載の撮像装置。   The said calculating means calculates | requires the average brightness | luminance by the said pre light emission in the changed said light control area, and calculates the said main light emission amount based on the said average brightness | luminance. Imaging device. 前記演算手段は、前記顔位置検出手段により検出された顔領域が複数存在するとき、前記プリ発光による各顔領域での平均輝度を求め、前記平均輝度から前記複数の顔領域における輝度の平均値を求め、当該平均値に基づいて前記メイン発光量を演算することを特徴とする請求項1乃至3のいずれか1項に記載の撮像装置。   The arithmetic means obtains an average brightness in each face area by the pre-emission when there are a plurality of face areas detected by the face position detecting means, and an average value of the brightness in the plurality of face areas from the average brightness The imaging apparatus according to claim 1, wherein the main light emission amount is calculated based on the average value. 前記調光領域設定手段により設定された調光制御領域と、前記顔位置検出手段により検出された顔領域とが一致するかどうか比較する比較手段を更に有し、
前記決定手段は、前記比較手段により一致しないとされると、前記調光領域設定手段により設定された調光制御領域を前記顔位置検出手段により検出された顔領域に合わせるように決定することを特徴とする請求項1乃至4のいずれか1項に記載の撮像装置。
Comparing means for comparing whether the dimming control area set by the dimming area setting means and the face area detected by the face position detecting means match,
The determining means determines that the dimming control area set by the dimming area setting means is matched with the face area detected by the face position detecting means when it does not match by the comparing means. The imaging apparatus according to claim 1, wherein the imaging apparatus is characterized.
前記距離は、レンズのフォーカシング位置に基づいて決定することを特徴とする請求項1乃至5のいずれか1項に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the distance is determined based on a focusing position of a lens. 撮影時におけるメイン発光前にプリ発光を行う撮像装置における制御方法であって、
被写体との距離を測定する測距工程と、
被写体を含む撮像画像内にストロボの調光制御領域を、前記測距工程で測定された前記距離に応じて設定する調光領域設定工程と、
プリ発光による撮像画像を基に、前記撮像画像内における顔領域を検出する顔領域検出工程と、
前記顔位置検出工程で検出された顔領域に応じて前記調光制御領域を決定する決定工程と、
前記決定工程で決定された前記調光制御領域における前記プリ発光による測光値に応じてメイン発光量を演算する演算工程と、
前記演算工程で演算された前記メイン発光量に基づいてストロボを制御して撮影を行うように制御する制御工程と、
を有することを特徴とする制御方法。
A control method in an imaging device that performs pre-flash before main flash at the time of shooting,
A ranging process for measuring the distance to the subject;
A dimming area setting step for setting a dimming control area of a strobe in a captured image including a subject according to the distance measured in the ranging process;
A face area detection step of detecting a face area in the captured image based on a captured image by pre-emission;
A determining step of determining the dimming control region according to the face region detected in the face position detecting step;
A calculation step of calculating a main light emission amount according to a photometric value by the pre-light emission in the light control region determined in the determination step;
A control step for controlling the strobe to perform shooting based on the main light emission amount calculated in the calculation step;
A control method characterized by comprising:
前記プリ発光時のストロボ照射光量は、前記測距工程で測定された前記距離と、設定された絞りと、撮像素子の感度に基づいて決定されることを特徴とする請求項7に記載の制御方法。   8. The control according to claim 7, wherein the amount of stroboscopic irradiation at the time of the pre-flash is determined based on the distance measured in the distance measuring step, a set aperture, and sensitivity of an image sensor. Method. 前記演算工程では、前記変更された前記調光制御領域における前記プリ発光による平均輝度を求め、前記平均輝度に基づいて前記メイン発光量を演算することを特徴とする請求項7又は8に記載の制御方法。   The said calculating process calculates | requires the average brightness | luminance by the said pre light emission in the changed said light control area, and calculates the said main light emission amount based on the said average brightness | luminance. Control method. 前記演算工程では、前記顔位置検出工程で検出された顔領域が複数存在するとき、前記プリ発光による各顔領域での平均輝度を求め、前記平均輝度から前記複数の顔領域における輝度の平均値を求め、当該平均値に基づいて前記メイン発光量を演算することを特徴とする請求項7乃至9のいずれか1項に記載の制御方法。   In the calculation step, when there are a plurality of face regions detected in the face position detection step, an average luminance in each face region by the pre-emission is obtained, and an average value of the luminances in the plurality of face regions from the average luminance The control method according to claim 7, wherein the main light emission amount is calculated based on the average value. 前記調光領域設定工程で設定された調光制御領域と、前記顔位置検出工程で検出された顔領域とが一致するかどうか比較する比較工程を更に有し、
前記決定工程では、前記比較工程で一致しないとされると、前記調光領域設定工程で設定された調光制御領域を前記顔位置検出工程で検出された顔領域に合わせるように決定することを特徴とする請求項7乃至10のいずれか1項に記載の制御方法。
Further comprising a comparison step for comparing whether or not the dimming control region set in the dimming region setting step matches the face region detected in the face position detection step;
If it is determined in the determination step that they do not coincide with each other in the comparison step, the dimming control region set in the dimming region setting step is determined to be matched with the face region detected in the face position detection step. The control method according to claim 7, wherein the control method is any one of claims 7 to 10.
前記距離は、レンズのフォーカシング位置に基づいて決定することを特徴とする請求項7乃至11のいずれか1項に記載の制御方法。   The control method according to claim 7, wherein the distance is determined based on a focusing position of the lens. 請求項7乃至12のいずれか1項に記載の制御方法を実行することを特徴とするプログラム。   The program which performs the control method of any one of Claims 7 thru | or 12. 請求項13に記載のプログラムを格納したことを特徴とする、コンピュータにより読取可能な記憶媒体。   A computer-readable storage medium storing the program according to claim 13.
JP2003422951A 2003-12-19 2003-12-19 Imaging device and control method therefor Withdrawn JP2005184508A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003422951A JP2005184508A (en) 2003-12-19 2003-12-19 Imaging device and control method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003422951A JP2005184508A (en) 2003-12-19 2003-12-19 Imaging device and control method therefor

Publications (2)

Publication Number Publication Date
JP2005184508A true JP2005184508A (en) 2005-07-07
JP2005184508A5 JP2005184508A5 (en) 2006-12-28

Family

ID=34783652

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003422951A Withdrawn JP2005184508A (en) 2003-12-19 2003-12-19 Imaging device and control method therefor

Country Status (1)

Country Link
JP (1) JP2005184508A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007259237A (en) * 2006-03-24 2007-10-04 Fujifilm Corp Apparatus and method for photographing
JP2007310026A (en) * 2006-05-16 2007-11-29 Ricoh Co Ltd Image recording method and device
JP2007336355A (en) * 2006-06-16 2007-12-27 Fujifilm Corp Photographing device
JP2008079158A (en) * 2006-09-22 2008-04-03 Fujifilm Corp Digital camera and control method thereof
JP2008079143A (en) * 2006-09-22 2008-04-03 Fujifilm Corp White balance correction method and imaging apparatus
JP2008087140A (en) * 2006-10-05 2008-04-17 Toyota Motor Corp Speech recognition robot and control method of speech recognition robot
JP2008219880A (en) * 2007-02-08 2008-09-18 Canon Inc Image pickup device and image pickup method
JP2009253899A (en) * 2008-04-10 2009-10-29 Sony Corp Imaging device
US7796831B2 (en) 2005-12-27 2010-09-14 Samsung Electronics Co., Ltd. Digital camera with face detection function for facilitating exposure compensation
KR20100104050A (en) * 2009-03-16 2010-09-29 삼성전자주식회사 Method and apparatus for controlling flash emission
JP2011013459A (en) * 2009-07-02 2011-01-20 Panasonic Corp Image pickup apparatus and mobile phone equipped therewith
US7894715B2 (en) 2008-03-31 2011-02-22 Canon Kabushiki Kaisha Image pickup apparatus, camera system, and control method for image pickup apparatus
US7924343B2 (en) 2006-09-29 2011-04-12 Fujifilm Corporation Photographing apparatus and exposure control method
JP2011078143A (en) * 2011-01-19 2011-04-14 Fujifilm Corp Photographing apparatus, face detecting method thereof and image recording method
CN103871091A (en) * 2014-04-04 2014-06-18 南京大学 Night scene map making method for point element distribution characteristic expression
KR20160036230A (en) * 2014-09-25 2016-04-04 엘지전자 주식회사 Method for controlling mobile terminal and mobile terminal
WO2018194043A1 (en) * 2017-04-17 2018-10-25 ソニー株式会社 Imaging device, method for controlling imaging device, and processing device
US10999523B2 (en) 2018-02-02 2021-05-04 Canon Kabushiki Kaisha Image pickup apparatus, method for controlling image pickup apparatus, and storage medium for controlling flash photography when a still image is imaged
US11115603B2 (en) 2018-04-04 2021-09-07 Canon Kabushiki Kaisha Image pickup apparatus that reduces time required for light control processing and method of controlling same
US11394890B2 (en) 2019-02-21 2022-07-19 Canon Kabushiki Kaisha Image pickup apparatus that controls flash photography, control method therefor, and storage medium
JP7129196B2 (en) 2018-04-04 2022-09-01 キヤノン株式会社 IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7796831B2 (en) 2005-12-27 2010-09-14 Samsung Electronics Co., Ltd. Digital camera with face detection function for facilitating exposure compensation
US7570883B2 (en) 2006-03-24 2009-08-04 Fujifilm Corporation Image pickup method and apparatus with ISO sensitivity setting variable
JP2007259237A (en) * 2006-03-24 2007-10-04 Fujifilm Corp Apparatus and method for photographing
JP4542058B2 (en) * 2006-03-24 2010-09-08 富士フイルム株式会社 Imaging apparatus and imaging method
JP2007310026A (en) * 2006-05-16 2007-11-29 Ricoh Co Ltd Image recording method and device
JP2007336355A (en) * 2006-06-16 2007-12-27 Fujifilm Corp Photographing device
JP4663607B2 (en) * 2006-09-22 2011-04-06 富士フイルム株式会社 Digital camera and control method thereof
JP2008079143A (en) * 2006-09-22 2008-04-03 Fujifilm Corp White balance correction method and imaging apparatus
JP2008079158A (en) * 2006-09-22 2008-04-03 Fujifilm Corp Digital camera and control method thereof
US7924343B2 (en) 2006-09-29 2011-04-12 Fujifilm Corporation Photographing apparatus and exposure control method
JP2008087140A (en) * 2006-10-05 2008-04-17 Toyota Motor Corp Speech recognition robot and control method of speech recognition robot
JP2008219880A (en) * 2007-02-08 2008-09-18 Canon Inc Image pickup device and image pickup method
US7894715B2 (en) 2008-03-31 2011-02-22 Canon Kabushiki Kaisha Image pickup apparatus, camera system, and control method for image pickup apparatus
JP2009253899A (en) * 2008-04-10 2009-10-29 Sony Corp Imaging device
KR101589013B1 (en) * 2009-03-16 2016-01-27 삼성전자주식회사 Method and apparatus for controlling flash emission
KR20100104050A (en) * 2009-03-16 2010-09-29 삼성전자주식회사 Method and apparatus for controlling flash emission
JP2011013459A (en) * 2009-07-02 2011-01-20 Panasonic Corp Image pickup apparatus and mobile phone equipped therewith
JP2011078143A (en) * 2011-01-19 2011-04-14 Fujifilm Corp Photographing apparatus, face detecting method thereof and image recording method
CN103871091A (en) * 2014-04-04 2014-06-18 南京大学 Night scene map making method for point element distribution characteristic expression
KR20160036230A (en) * 2014-09-25 2016-04-04 엘지전자 주식회사 Method for controlling mobile terminal and mobile terminal
KR102158699B1 (en) * 2014-09-25 2020-09-22 엘지전자 주식회사 Method for controlling mobile terminal and mobile terminal
WO2018194043A1 (en) * 2017-04-17 2018-10-25 ソニー株式会社 Imaging device, method for controlling imaging device, and processing device
JPWO2018194043A1 (en) * 2017-04-17 2020-02-27 ソニー株式会社 Imaging device, control method of imaging device, and processing device
US11119387B2 (en) 2017-04-17 2021-09-14 Sony Corporation Imaging device, imaging device control method, and processing device
JP7070558B2 (en) 2017-04-17 2022-05-18 ソニーグループ株式会社 Imaging device, control method and processing device of imaging device
US10999523B2 (en) 2018-02-02 2021-05-04 Canon Kabushiki Kaisha Image pickup apparatus, method for controlling image pickup apparatus, and storage medium for controlling flash photography when a still image is imaged
US11115603B2 (en) 2018-04-04 2021-09-07 Canon Kabushiki Kaisha Image pickup apparatus that reduces time required for light control processing and method of controlling same
JP7129196B2 (en) 2018-04-04 2022-09-01 キヤノン株式会社 IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF
US11394890B2 (en) 2019-02-21 2022-07-19 Canon Kabushiki Kaisha Image pickup apparatus that controls flash photography, control method therefor, and storage medium

Similar Documents

Publication Publication Date Title
US7636123B2 (en) Image capturing apparatus with light emission controlling mechanism and method of controlling the image capturing apparatus
JP4262082B2 (en) Image processing apparatus, control method therefor, program, and storage medium
JP4989385B2 (en) Imaging apparatus, control method thereof, and program
JP2005184508A (en) Imaging device and control method therefor
JP2004088243A (en) Imaging apparatus, and method and apparatus for controlling same
JP2007104108A (en) Imaging apparatus, emission luminance control method and program
JP2005167697A (en) Electronic camera having red-eye correction function
JP2010050573A (en) Image capturing apparatus and method of controlling the same
JP2005292740A (en) Electronic camera
JP4636739B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND COMPUTER-READABLE STORAGE MEDIUM
JP4750616B2 (en) Imaging apparatus and control method thereof
JP4262022B2 (en) Imaging device
KR100894485B1 (en) Image capturing apparatus and its control method
US10284783B2 (en) Imaging apparatus and control method of imaging apparatus
JP2007178925A (en) Imaging device, strobe device, and method of controlling the strobe device
JP2007173985A (en) Imaging apparatus, imaging method, program, and storage medium
JP5137343B2 (en) Imaging apparatus and imaging method
JP2008270987A (en) Image pickup device and its control method
JP2006091820A (en) Imaging apparatus, stroboscope, method for controlling strobe light emission, and program
JP4682104B2 (en) Imaging device
JP5241459B2 (en) Imaging apparatus and control method thereof
JP2005208392A (en) Image imaging unit, image processing method and program
JP2005197885A (en) Imaging apparatus and control method thereof
JP2005328273A (en) Imaging apparatus, and control method, program, and storage medium thereof
JP2008109503A (en) Imaging apparatus, control method thereof, program and storage medium

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061113

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061113

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20080528