Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5583465B2 - Imaging device - Google Patents
[go: Go Back, main page]

JP5583465B2 - Imaging device - Google Patents

Imaging device Download PDF

Info

Publication number
JP5583465B2
JP5583465B2 JP2010103725A JP2010103725A JP5583465B2 JP 5583465 B2 JP5583465 B2 JP 5583465B2 JP 2010103725 A JP2010103725 A JP 2010103725A JP 2010103725 A JP2010103725 A JP 2010103725A JP 5583465 B2 JP5583465 B2 JP 5583465B2
Authority
JP
Japan
Prior art keywords
light emission
light
image
amount
emission amount
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
JP2010103725A
Other languages
Japanese (ja)
Other versions
JP2011232618A (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.)
Olympus Imaging Corp
Original Assignee
Olympus Imaging Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Imaging Corp filed Critical Olympus Imaging Corp
Priority to JP2010103725A priority Critical patent/JP5583465B2/en
Publication of JP2011232618A publication Critical patent/JP2011232618A/en
Application granted granted Critical
Publication of JP5583465B2 publication Critical patent/JP5583465B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Exposure Control For Cameras (AREA)
  • Details Of Cameras Including Film Mechanisms (AREA)
  • Stroboscope Apparatuses (AREA)
  • Studio Devices (AREA)

Description

本発明は、動画の撮影において、被写体に照射する補助光の光量を制御する撮像装置に関する。   The present invention relates to an imaging apparatus that controls the amount of auxiliary light applied to a subject when shooting a moving image.

従来、LEDやビデオライト、ストロボ装置等の補助光源を用いて動画の撮影を行う方法が知られている。これにより、適切な明るさで撮影を行うことが可能となるが、長時間の撮影において常に補助光源を発光させていると、バッテリが短時間で無くなってしまうという問題が生じる。   2. Description of the Related Art Conventionally, a method for capturing a moving image using an auxiliary light source such as an LED, a video light, or a strobe device is known. As a result, it is possible to perform photographing with appropriate brightness. However, if the auxiliary light source is always caused to emit light during long-time photographing, there is a problem that the battery runs out in a short time.

特許文献1には、周辺光量を測定し、測定した周辺光量に応じて、ストロボ装置の発光量を制御する技術が開示されている。この技術によれば、バッテリの消費を抑制しつつ、適切な明るさで動画撮影を行うことができる。   Patent Document 1 discloses a technique for measuring the amount of peripheral light and controlling the light emission amount of the strobe device in accordance with the measured peripheral light amount. According to this technology, it is possible to perform moving image shooting with appropriate brightness while suppressing battery consumption.

特開2005−348014号公報JP 2005-348014 A

しかしながら、従来の技術では、ストロボ装置の発光量が周辺光量によって決まるため、特徴的な被写体がない場合でも、周辺光量が少ないと、ストロボ装置の発光量が多くなって、バッテリの消費量が多くなるという問題があった。   However, in the conventional technology, the amount of light emitted from the strobe device is determined by the amount of peripheral light, so even if there is no characteristic subject, if the amount of peripheral light is small, the amount of light emitted by the strobe device increases and the battery consumption increases. There was a problem of becoming.

本発明は、動画像内の注目被写体の検出結果に基づいて、補助光の発光量を適切に制御する技術を提供することを目的とする。   An object of the present invention is to provide a technique for appropriately controlling the light emission amount of auxiliary light based on the detection result of a subject of interest in a moving image.

本発明のある態様に係る撮像装置は、動画の撮像が可能な撮像装置であって、動画像内の注目被写体を検出する注目被写体検出部と、補助光を発光する発光部と、動画の撮像時に、前記注目被写体検出部による注目被写体の検出結果に基づいて、前記発光部の発光量を制御する発光量制御部とを備え、前記発光量制御部は、前記注目被写体検出部によって注目被写体が検出されなかった場合に、前記発光部の発光量を増加させていき、前記発光部の発光量が所定量に到達しても前記注目被写体検出部によって注目被写体が検出されない場合には、前記発光部の発光量を低下させていく、または、停止させるAn imaging device according to an aspect of the present invention is an imaging device capable of capturing a moving image, and includes a target subject detection unit that detects a target subject in a moving image, a light emitting unit that emits auxiliary light, and a video capturing. And a light emission amount control unit that controls a light emission amount of the light emitting unit based on a detection result of the target subject by the target subject detection unit, and the light emission amount control unit detects the target subject by the target subject detection unit. If the target subject is not detected by the target subject detection unit, the light emission amount of the light emitting unit is increased when the target subject detection unit does not detect the target subject. The light emission amount of the part is reduced or stopped .

本発明によれば、動画像内の注目被写体の検出結果に基づいて、補助光の発光量を制御することにより、バッテリの消費量を抑制しつつ、適切な明るさで動画の撮影を行うことができる。   According to the present invention, by controlling the light emission amount of the auxiliary light based on the detection result of the subject of interest in the moving image, it is possible to shoot a moving image with appropriate brightness while suppressing the battery consumption amount. Can do.

一実施形態における撮像装置であるデジタルスチルカメラの構成を示すブロック図である。It is a block diagram which shows the structure of the digital still camera which is an imaging device in one Embodiment. 一実施形態における撮像装置であるデジタルスチルカメラで行われるメインの処理フローを示すフローチャートである。It is a flowchart which shows the main processing flow performed with the digital still camera which is an imaging device in one Embodiment. ライブビュー表示・動画撮影・画像処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a live view display, video recording, and image processing. 再生処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a reproduction | regeneration process. 発光量制御処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of light emission amount control processing.

図1は、一実施形態における撮像装置であるデジタルスチルカメラの構成を示すブロック図である。図1に示すデジタルスチルカメラは、カメラ本体1と交換式レンズ2と補助光源3から構成される。   FIG. 1 is a block diagram illustrating a configuration of a digital still camera that is an imaging apparatus according to an embodiment. The digital still camera shown in FIG. 1 includes a camera body 1, an interchangeable lens 2, and an auxiliary light source 3.

交換式レンズ2は、レンズ1010と、Flashメモリ1011と、マイクロコンピュータ1012と、ドライバ1013と、絞り1014と、を有している。交換式レンズ2は、I/F999を介して、カメラ本体1と通信可能に接続されている。   The interchangeable lens 2 includes a lens 1010, a flash memory 1011, a microcomputer 1012, a driver 1013, and a diaphragm 1014. The interchangeable lens 2 is communicably connected to the camera body 1 via the I / F 999.

補助光源3は、ライト1020と発光コントローラ1021とを有しており、I/F998を介して、カメラ本体1と通信可能に接続されている。なお、本実施形態では、補助光源3は、カメラ本体1と分離可能な構成となっているが、カメラ本体1と一体的な構成であってもよい。   The auxiliary light source 3 includes a light 1020 and a light emission controller 1021, and is connected to the camera body 1 via the I / F 998 so as to be communicable. In the present embodiment, the auxiliary light source 3 is configured to be separable from the camera body 1, but may be configured to be integrated with the camera body 1.

カメラ本体1は、メカシャッター101と、撮像素子102と、アナログ処理部103と、アナログ/デジタル変換部104(以下、A/D変換部104)と、バス105と、SDRAM106と、画像処理部107と、AE処理部108と、AF処理部109と、画像圧縮展開部110と、メモリインターフェース111(以下、メモリI/F111)と、記録媒体112と、LCDドライバ113と、LCD114と、マイクロコンピュータ115と、操作部116と、Flashメモリ117と、被写体検出部118と、ヒストグラム算出部119と、ヒストグラム変化検出部120と、を有している。   The camera body 1 includes a mechanical shutter 101, an image sensor 102, an analog processing unit 103, an analog / digital conversion unit 104 (hereinafter referred to as A / D conversion unit 104), a bus 105, an SDRAM 106, and an image processing unit 107. An AE processing unit 108, an AF processing unit 109, an image compression / decompression unit 110, a memory interface 111 (hereinafter referred to as a memory I / F 111), a recording medium 112, an LCD driver 113, an LCD 114, and a microcomputer 115. An operation unit 116, a flash memory 117, a subject detection unit 118, a histogram calculation unit 119, and a histogram change detection unit 120.

レンズ1010は、被写体の光学像を撮像素子102に集光させる。レンズ1010は、単焦点レンズであってもよいし、ズームレンズであってもよい。   The lens 1010 focuses the optical image of the subject on the image sensor 102. The lens 1010 may be a single focus lens or a zoom lens.

マイクロコンピュータ1012は、I/F999、Flashメモリ1011、および、ドライバ1013と接続されていて、Flashメモリ1011に記憶されている情報の読み込み・書き込みを行うとともに、ドライバ1013を制御する。Flashメモリ1011に記憶されている情報には、交換式レンズ2の焦点距離のデータなどが含まれる。   The microcomputer 1012 is connected to the I / F 999, the flash memory 1011 and the driver 1013. The microcomputer 1012 reads and writes information stored in the flash memory 1011 and controls the driver 1013. Information stored in the flash memory 1011 includes data on the focal length of the interchangeable lens 2 and the like.

マイクロコンピュータ1012は、さらに、I/F999を介して、マイクロコンピュータ115と通信することができ、様々な情報をマイクロコンピュータ115へ送信し、また、マイクロコンピュータ115から絞り値等の情報を受信する。   The microcomputer 1012 can further communicate with the microcomputer 115 via the I / F 999, transmits various information to the microcomputer 115, and receives information such as an aperture value from the microcomputer 115.

ドライバ1013は、マイクロコンピュータ1012の指示を受けて、レンズ1010を駆動させて、焦点距離やフォーカス位置の変更を行うとともに、絞り1014を駆動する。絞り1014は、レンズ1010の近傍に設けられ、被写体の光量を調節する。   In response to an instruction from the microcomputer 1012, the driver 1013 drives the lens 1010 to change the focal length and focus position, and drives the aperture 1014. The aperture 1014 is provided in the vicinity of the lens 1010 and adjusts the amount of light of the subject.

補助光源3は、ライト1020と発光コントローラ1021とを有している。ライト1020は、例えば、ビデオライトであって、発光して、被写体に向けて補助光を照射することにより、被写体の光量を強制的に増加させることができる。発光コントローラ1021は、I/F998を介してマイクロコンピュータ115から入力される指示に基づいて、ライト1020の点灯・消灯や、発光光量を制御する。   The auxiliary light source 3 includes a light 1020 and a light emission controller 1021. The light 1020 is, for example, a video light, and can emit light and irradiate auxiliary light toward the subject to forcibly increase the amount of light of the subject. The light emission controller 1021 controls turning on / off of the light 1020 and the amount of emitted light based on an instruction input from the microcomputer 115 via the I / F 998.

メカシャッター101は、マイクロコンピュータ115の指示を受けて駆動し、撮像素子102に被写体を露光する時間を制御する。   The mechanical shutter 101 is driven in response to an instruction from the microcomputer 115 to control the time for exposing the subject to the image sensor 102.

撮像素子102は、各画素を構成するフォトダイオードの前面に、ベイヤー配列のカラーフィルタが配置された撮像素子である。ベイヤー配列は、水平方向にR画素とG(Gr)画素が交互に配置されたラインと、G(Gb)画素とB画素が交互に配置されたラインとを有し、さらにその2つのラインを垂直方向にも交互に配置することで構成されている。この撮像素子102は、レンズ1010により集光された光を、画素を構成するフォトダイオードで受光して光電変換することで、光の量を電荷量としてアナログ処理部103へ出力する。なお、撮像素子102は、CMOS方式のものでもCCD方式のものでも良い。   The image sensor 102 is an image sensor in which a Bayer array color filter is arranged in front of a photodiode constituting each pixel. The Bayer array has a line in which R pixels and G (Gr) pixels are alternately arranged in a horizontal direction, and a line in which G (Gb) pixels and B pixels are alternately arranged, and the two lines are further divided. It is configured by alternately arranging in the vertical direction. The imaging element 102 receives the light collected by the lens 1010 by a photodiode that constitutes a pixel and performs photoelectric conversion, and outputs the amount of light to the analog processing unit 103 as a charge amount. The image sensor 102 may be a CMOS type or a CCD type.

アナログ処理部103は、撮像素子102から読み出された電気信号(アナログ画像信号)に対し、リセットノイズ等を低減した上で波形整形を行い、さらに目的の明るさとなるように、ゲインアップを行う。A/D変換部104は、アナログ処理部103から出力されたアナログ画像信号をデジタル画像信号(以後、画像データという)に変換する。   The analog processing unit 103 performs waveform shaping on the electrical signal (analog image signal) read from the image sensor 102 while reducing reset noise and the like, and further increases the gain so that the target brightness is obtained. . The A / D conversion unit 104 converts the analog image signal output from the analog processing unit 103 into a digital image signal (hereinafter referred to as image data).

バス105は、デジタルカメラ内部で発生した各種データをデジタルカメラ内の各部に転送するための転送路である。バス105は、A/D変換部104と、SDRAM106と、画像処理部107と、AE処理部108と、AF処理部109と、画像圧縮展開部110と、メモリI/F111と、LCDドライバ113と、マイクロコンピュータ115と、被写体検出部118と、ヒストグラム算出部119と、ヒストグラム変化検出部120に接続されている。   A bus 105 is a transfer path for transferring various data generated in the digital camera to each unit in the digital camera. The bus 105 includes an A / D conversion unit 104, an SDRAM 106, an image processing unit 107, an AE processing unit 108, an AF processing unit 109, an image compression / decompression unit 110, a memory I / F 111, an LCD driver 113, and the like. The microcomputer 115, the subject detection unit 118, the histogram calculation unit 119, and the histogram change detection unit 120 are connected.

A/D変換部104から出力される画像データは、バス105を介して一旦SDRAM106に記憶される。SDRAM106は、A/D変換部104において得られた画像データや、画像処理部107、画像圧縮展開部110において処理された画像データ等の各種データが一時的に記憶される記憶部である。   The image data output from the A / D conversion unit 104 is temporarily stored in the SDRAM 106 via the bus 105. The SDRAM 106 is a storage unit that temporarily stores various data such as image data obtained by the A / D conversion unit 104 and image data processed by the image processing unit 107 and the image compression / decompression unit 110.

画像処理部107は、SDRAM106から読み出した画像データに対して、ホワイトバランス補正処理、同時化処理、ノイズ低減処理など、様々な画像処理を施す。画像処理部107によって各処理が行われた後の画像データは、SDRAM106に記憶される。   The image processing unit 107 performs various image processing such as white balance correction processing, synchronization processing, and noise reduction processing on the image data read from the SDRAM 106. The image data after each processing is performed by the image processing unit 107 is stored in the SDRAM 106.

AE処理部108は、画像データから被写体輝度を算出する。被写体輝度を算出するためのデータは、専用の測光センサの出力であってもよい。AF処理部109は、画像データから高周波成分の信号を取り出し、AF(Auto Focus)積算処理により、合焦評価値を取得する。   The AE processing unit 108 calculates subject luminance from the image data. The data for calculating the subject brightness may be an output of a dedicated photometric sensor. The AF processing unit 109 extracts a high-frequency component signal from the image data, and acquires a focus evaluation value by AF (Auto Focus) integration processing.

被写体検出部118は、画像処理部107によって画像処理が施されて、SDRAM106に記憶されている画像データを読み出して、画像データを解析することにより、画像中の注目被写体を検出する。注目被写体は、撮影時に、撮影者が注目すると考えられる被写体であり、例えば、人物や動物である。人物や動物などの注目被写体の検出は、例えば、パターンマッチングなどの既知の方法により行うことができる。注目被写体の検出結果は、マイクロコンピュータ115に送られる。   The subject detection unit 118 performs image processing by the image processing unit 107, reads image data stored in the SDRAM 106, analyzes the image data, and detects a target subject in the image. The subject of interest is a subject that the photographer is expected to pay attention at the time of photographing, and is, for example, a person or an animal. Detection of a subject of interest such as a person or an animal can be performed by a known method such as pattern matching. The detection result of the subject of interest is sent to the microcomputer 115.

ヒストグラム算出部119は、画像処理部107によって画像処理が施されて、SDRAM106に記憶されている画像データを読み出して、画像の特徴量のヒストグラムデータを作成する。本実施形態では、画像の輝度分布に応じたヒストグラムデータを作成し、作成したヒストグラムデータをヒストグラム変化検出部120に送信する。なお、本実施形態では、画像の特徴量のヒストグラムとして、輝度のヒストグラムを作成するが、例えば、画像データがRGBデータにより構成されている場合、RGBそれぞれのヒストグラムを作成することもできる。すなわち、画像の特徴量のヒストグラムが輝度のヒストグラムに限定されることはない。   A histogram calculation unit 119 performs image processing by the image processing unit 107, reads image data stored in the SDRAM 106, and creates histogram data of image feature amounts. In the present embodiment, histogram data corresponding to the luminance distribution of the image is created, and the created histogram data is transmitted to the histogram change detection unit 120. In the present embodiment, a luminance histogram is created as the histogram of the feature amount of the image. For example, when the image data is composed of RGB data, each of the RGB histograms can be created. In other words, the histogram of the feature amount of the image is not limited to the luminance histogram.

ヒストグラム変化検出部120は、ヒストグラム算出部119から送信されるヒストグラムデータを受信し、それまでに受信したヒストグラムデータと比較することによって、ヒストグラムデータの変化量を検出する。ヒストグラムデータの変化量の検出結果は、マイクロコンピュータ115に送られる。   The histogram change detection unit 120 receives the histogram data transmitted from the histogram calculation unit 119 and compares it with the histogram data received so far, thereby detecting the amount of change in the histogram data. The detection result of the change amount of the histogram data is sent to the microcomputer 115.

画像圧縮展開部110は、静止画像データの記録時には、SDRAM106から画像データを読み出し、読み出した画像データをJPEG圧縮方式に従って圧縮して、圧縮したJPEG画像データを、SDRAM106に一旦記憶する。マイクロコンピュータ115は、SDRAM106に記憶されたJPEG画像データに対して、JPEGファイルを構成するために必要なJPEGヘッダを付加してJPEGファイルを作成し、作成したJPEGファイルを、メモリI/F111を介して記録媒体112に記録する。   When still image data is recorded, the image compression / decompression unit 110 reads the image data from the SDRAM 106, compresses the read image data according to the JPEG compression method, and temporarily stores the compressed JPEG image data in the SDRAM 106. The microcomputer 115 creates a JPEG file by adding a JPEG header necessary for constructing a JPEG file to the JPEG image data stored in the SDRAM 106, and sends the created JPEG file via the memory I / F 111. To the recording medium 112.

画像圧縮展開部110は、また、動画データの記録時には、SDRAM106から動画データを読み出し、読み出した動画データを、例えば、H.264方式に従って圧縮して、圧縮した動画データをSDRAM106に一旦記憶する。画像圧縮展開部110は、さらに、マイクロコンピュータ115からの指令に基づいて、圧縮データを展開(伸長)する処理を行う。   The image compressing / decompressing unit 110 also reads out the moving image data from the SDRAM 106 when recording the moving image data. The compressed moving image data is temporarily stored in the SDRAM 106 after being compressed according to the H.264 system. The image compression / decompression unit 110 further performs a process of decompressing (decompressing) the compressed data based on a command from the microcomputer 115.

記録媒体112は、例えばカメラ本体1に着脱可能なメモリカードからなる記録媒体であるが、これに限定されるものではない。   The recording medium 112 is, for example, a recording medium including a memory card that can be attached to and detached from the camera body 1, but is not limited thereto.

LCDドライバ113は、LCD114に画像を表示させる。画像の表示には、撮影直後の画像データを短時間だけ表示するレックビュー表示、記録媒体112に記録されたJPEGファイルの再生表示、および、ライブビュー表示等の動画の表示が含まれる。記録媒体112に記録された圧縮データを再生する場合、画像圧縮展開部110は、記録媒体112に記録されている圧縮データを読み出して展開(伸長)処理を施した上で、展開したデータを一旦SDRAM106に記憶させる。LCDドライバ113は、伸張されたデータをSDRAM106から読み出し、読み出したデータを映像信号へ変換した後でLCD114へ出力して表示を行う。   The LCD driver 113 displays an image on the LCD 114. Display of images includes display of moving images such as REC view display that displays image data immediately after shooting for a short time, playback display of a JPEG file recorded on the recording medium 112, and live view display. When reproducing the compressed data recorded on the recording medium 112, the image compression / decompression unit 110 reads out the compressed data recorded on the recording medium 112, performs decompression (decompression) processing, and then temporarily decompresses the decompressed data. It is stored in the SDRAM 106. The LCD driver 113 reads the decompressed data from the SDRAM 106, converts the read data into a video signal, and then outputs it to the LCD 114 for display.

制御部としての機能を有するマイクロコンピュータ115は、デジタルカメラ本体1の各種シーケンスを統括的に制御する。特に、マイクロコンピュータ115は、被写体検出部115から送られてくる被写体検出結果、または、ヒストグラム変化検出部120から送られてくるヒストグラムデータの変化量の検出結果、あるいは、両方の検出結果に基づいて、I/F998を介して、発光コントローラ1021にライト1020の発光指示を出す。マイクロコンピュータ115には、操作部116およびFlashメモリ117が接続されている。   The microcomputer 115 having a function as a control unit comprehensively controls various sequences of the digital camera body 1. In particular, the microcomputer 115 is based on the subject detection result sent from the subject detection unit 115, the detection result of the change amount of the histogram data sent from the histogram change detection unit 120, or both detection results. , A light emission instruction for the light 1020 is issued to the light emission controller 1021 via the I / F 998. An operation unit 116 and a flash memory 117 are connected to the microcomputer 115.

操作部116は、電源ボタン、レリーズボタン、動画ボタン、再生ボタン、各種入力キー等の操作部材である。ユーザによって、操作部116の何れかの操作部材が操作されることにより、マイクロコンピュータ115は、ユーザの操作に応じた各種シーケンスを実行する。電源ボタンは、当該デジタルカメラの電源のオン/オフ指示を行うための操作部材である。電源ボタンが押されると、当該デジタルカメラの電源がオンとなる。再度、電源ボタンが押されると当該デジタルカメラの電源はオフとなる。レリーズボタンは、ファーストレリーズスイッチとセカンドレリーズスイッチの2段スイッチを有して構成されている。レリーズボタンが半押しされて、ファーストレリーズスイッチがオンされた場合に、マイクロコンピュータ115は、AE処理やAF処理等の撮影準備シーケンスを行う。また、レリーズボタンが全押しされて、セカンドレリーズスイッチがオンされた場合に、マイクロコンピュータ115は、撮影シーケンスを実行して撮影を行う。   The operation unit 116 is an operation member such as a power button, a release button, a moving image button, a playback button, and various input keys. When one of the operation members of the operation unit 116 is operated by the user, the microcomputer 115 executes various sequences according to the user's operation. The power button is an operation member for instructing power on / off of the digital camera. When the power button is pressed, the power of the digital camera is turned on. When the power button is pressed again, the digital camera is turned off. The release button has a two-stage switch of a first release switch and a second release switch. When the release button is pressed halfway and the first release switch is turned on, the microcomputer 115 performs a shooting preparation sequence such as AE processing and AF processing. Further, when the release button is fully pressed and the second release switch is turned on, the microcomputer 115 performs shooting by executing a shooting sequence.

再生ボタンは、撮影により得られた静止画または動画をLCD114に表示させるためのボタンである。   The playback button is a button for causing the LCD 114 to display a still image or a moving image obtained by shooting.

動画ボタンは、動画の撮影を開始させ、また終了させるためのボタンである。初期状態では動画未撮影状態であるので、この状態で動画ボタンを押すと動画の撮影を開始し、動画撮影中に動画ボタンを押すと、動画の撮影を終了する。従って、動画ボタンを押すたびに、動画の撮影開始と終了を交互に繰り返す。   The movie button is a button for starting and ending movie shooting. Since the moving image is not yet shot in the initial state, when the moving image button is pressed in this state, moving image shooting starts. When the moving image button is pressed during moving image shooting, moving image shooting ends. Therefore, each time the moving image button is pressed, the start and end of moving image shooting are repeated alternately.

Flashメモリ117は、ホワイトバランスモードに応じたホワイトバランスゲインやカラーマトリクス係数、ローパスフィルタ係数等のデジタルカメラの動作に必要な各種パラメータ、および、デジタルスチルカメラを特定するための製造番号などを記憶している。また、Flashメモリ117は、マイクロコンピュータ115にて実行する各種プログラムも記憶している。マイクロコンピュータ115は、Flashメモリ117に記憶されているプログラムに従い、またFlashメモリ117から各種シーケンスに必要なパラメータを読み込み、各処理を実行する。   The flash memory 117 stores various parameters necessary for the operation of the digital camera such as a white balance gain, a color matrix coefficient, and a low-pass filter coefficient according to the white balance mode, and a manufacturing number for specifying the digital still camera. ing. The flash memory 117 also stores various programs executed by the microcomputer 115. The microcomputer 115 reads parameters necessary for various sequences from the flash memory 117 according to a program stored in the flash memory 117, and executes each process.

図2は、一実施形態における撮像装置であるデジタルスチルカメラで行われるメインの処理フローを示すフローチャートである。ユーザにより電源ボタンが押されて、デジタルスチルカメラの電源がオンになると、マイクロコンピュータ115は、ステップS201の処理を開始する。   FIG. 2 is a flowchart illustrating a main processing flow performed by a digital still camera which is an imaging apparatus according to an embodiment. When the user presses the power button to turn on the digital still camera, the microcomputer 115 starts the process of step S201.

ステップS201では、記録中フラグをオフ、後述する時間カウンタを0、後述する減光中フラグをオフに初期化する。記録中フラグは、動画撮影中にオン、動画を撮影していない時にオフとなるフラグである。   In step S201, the recording flag is initialized to off, a time counter described later is set to 0, and a dimming flag described later is initialized to off. The recording flag is a flag that is turned on during moving image shooting and turned off when no moving image is shot.

ステップS202では、ユーザによって、再生ボタンが操作されたか否かを判定する。再生ボタンが操作されたと判定するとステップS203に進み、操作されていないと判定すると、ステップS204に進む。   In step S202, it is determined whether or not the playback button has been operated by the user. If it is determined that the play button has been operated, the process proceeds to step S203. If it is determined that the play button has not been operated, the process proceeds to step S204.

ステップS203では、撮影により得られた静止画または動画を再生する処理を行う。再生処理の詳細については、図4を用いて後述する。   In step S203, processing for reproducing a still image or a moving image obtained by shooting is performed. Details of the reproduction process will be described later with reference to FIG.

ステップS204では、ユーザによって、動画ボタンが操作されたか否かを判定する。動画ボタンが操作されたと判定するとステップS205に進み、操作されていないと判定すると、ステップS208に進む。   In step S204, it is determined whether or not the video button has been operated by the user. If it is determined that the movie button has been operated, the process proceeds to step S205. If it is determined that the movie button has not been operated, the process proceeds to step S208.

ステップS205では、記録中フラグを反転させて、ステップS206に進む。前述したように、動画ボタンは押されるたびに、動画撮影開始と終了を交互に繰り返すので、このステップでは、記録中フラグがオフであった場合にはオンに、またオンであった場合にはオフに、記録中フラグを反転させる。   In step S205, the recording flag is reversed, and the process proceeds to step S206. As described above, every time the video button is pressed, the video recording start and end are alternately repeated. Therefore, in this step, if the recording flag is off, it is on, and if it is on, Turn off and invert the recording flag.

ステップS206では、記録中フラグがオンであるか否かを判定する。記録中フラグがオフであると判定するとステップS208に進み、オンであると判定すると、ステップS207に進む。   In step S206, it is determined whether the recording flag is on. If it is determined that the recording flag is off, the process proceeds to step S208. If it is determined that the recording flag is on, the process proceeds to step S207.

ステップS207では、後述する時間カウンタを0、後述する減光中フラグをオフにセットしてステップS208に進む。   In step S207, a time counter described later is set to 0, and a dimming flag described later is set to OFF, and the process proceeds to step S208.

ステップS208では、記録中フラグがオンであるか否かを判定する。記録中フラグがオンであると判定すると、ステップS214に進む。   In step S208, it is determined whether the recording flag is on. If it is determined that the recording flag is on, the process proceeds to step S214.

ステップS214では、動画記録中であると判定すると、撮像素子102からの画像信号に基づく動画の画像データについて画像処理および画像圧縮を行った後、記録媒体112に記録する。また、動画記録中ではないと判定すると、静止画撮影における被写体構図やシャッタタイミングの決定を行うためのライブビュー表示を行う。ステップS214のライブビュー表示・動画撮影・画像処理の詳細については、図3を用いて後述する。   If it is determined in step S214 that moving image recording is in progress, image processing and image compression are performed on the image data of the moving image based on the image signal from the image sensor 102, and then recorded on the recording medium 112. If it is determined that the moving image recording is not in progress, a live view display for determining a subject composition and shutter timing in still image shooting is performed. Details of live view display, moving image shooting, and image processing in step S214 will be described later with reference to FIG.

一方、ステップS208において、記録中フラグがオフであると判定すると、ステップS209に進む。ステップS209では、ユーザによってレリーズボタンが半押しされて、ファーストレリーズスイッチがオンされたか否かを判定する。ファーストレリーズスイッチがオンされたと判定すると、ステップS210に進む。   On the other hand, if it is determined in step S208 that the recording flag is off, the process proceeds to step S209. In step S209, it is determined whether or not the user has pressed the release button halfway to turn on the first release switch. If it is determined that the first release switch is turned on, the process proceeds to step S210.

ステップS210では、AF処理を行う。具体的には、まず、AF処理部109において、合焦評価値を算出する。マイクロコンピュータ115は、合焦評価値に基づいて、レンズ1010を駆動させる指令をドライバ1013に出す。ドライバ1013は、この指令に基づいて、レンズ1010を駆動させて、焦点距離やフォーカス位置の変更を行う。   In step S210, AF processing is performed. Specifically, first, the AF processing unit 109 calculates a focus evaluation value. The microcomputer 115 issues a command for driving the lens 1010 to the driver 1013 based on the focus evaluation value. Based on this command, the driver 1013 drives the lens 1010 to change the focal length and the focus position.

ステップS209において、ファーストレリーズスイッチがオンされなかった場合、または、ファーストレリーズスイッチがオンされたままの状態の場合には、ステップS211に進む。ステップS211では、ユーザによってレリーズボタンが全押しされて、セカンドレリーズスイッチがオンされたか否かを判定する。セカンドレリーズスイッチがオンされたと判定するとステップS212に進み、セカンドレリーズスイッチがオンされないと判定すると、ステップS214に進む。   If the first release switch is not turned on in step S209, or if the first release switch remains on, the process proceeds to step S211. In step S211, it is determined whether or not the user has fully pressed the release button to turn on the second release switch. If it is determined that the second release switch is turned on, the process proceeds to step S212. If it is determined that the second release switch is not turned on, the process proceeds to step S214.

ステップS212では、補助光源3のライト1020をオフにする。すなわち、マイクロコンピュータ115は、ライト1020の消灯指示を、I/F998を介して発光コントローラ1021に送る。この消灯指示に基づいて、発光コントローラ1021は、ライト1020を消灯する。なお、ライト1020がオフになっていた場合には、オフの状態が保たれる。   In step S212, the light 1020 of the auxiliary light source 3 is turned off. That is, the microcomputer 115 sends an instruction to turn off the light 1020 to the light emission controller 1021 via the I / F 998. Based on this turn-off instruction, the light emission controller 1021 turns off the light 1020. Note that when the light 1020 is off, the off state is maintained.

ステップS213では、静止画撮影・画像処理を行う。静止画の撮影、および、撮影により得られた画像データに対する画像処理は、既知の処理であるため、ここでは詳しい説明は省略する。   In step S213, still image shooting and image processing are performed. Since still image shooting and image processing for image data obtained by shooting are known processing, detailed description thereof is omitted here.

ステップS215では、デジタルスチルカメラの電源がオフされたか否かを判定する。電源がオフされていないと判定すると、ステップS202に戻り、上述した処理を行う。一方、ユーザにより電源ボタンが押されて、電源がオフされると、フローチャートの処理を終了する。   In step S215, it is determined whether the power of the digital still camera is turned off. If it is determined that the power is not turned off, the process returns to step S202, and the above-described processing is performed. On the other hand, when the power button is pressed by the user and the power is turned off, the process of the flowchart is ended.

このように、本実施形態におけるメインフローでは、初期設定では静止画撮影モードになっており、この状態では、ステップS202→S204→S208→S209→S211→S214→S215→S202を順次実行し、この間ライブビュー表示を行う。ライブビュー表示中に、レリーズボタンが半押しされると、ステップS210においてAF動作を行い、またレリーズボタンが全押しされると、ステップS213において静止画の撮影を行う。また、動画ボタンを押すと、ステップS205において記録中フラグをオンとし、ステップS208→S214→S215→S202→S204→S208を繰り返し実行することにより、動画撮影を継続する。この状態で再度、動画ボタンを押すと、ステップS205において記録中フラグがオフとなることから、前述の静止画のフローに戻る。   As described above, in the main flow in the present embodiment, the still image shooting mode is set in the initial setting. In this state, steps S202 → S204 → S208 → S209 → S211 → S214 → S215 → S202 are sequentially executed. Perform live view display. If the release button is pressed halfway during live view display, an AF operation is performed in step S210. If the release button is fully pressed, a still image is shot in step S213. When the moving image button is pressed, the recording flag is turned on in step S205, and moving image shooting is continued by repeatedly executing steps S208, S214, S215, S202, S204, and S208. When the moving image button is pressed again in this state, the recording flag is turned off in step S205, and the flow returns to the still image flow described above.

図3は、図2に示すフローチャートのステップS214の処理、すなわち、ライブビュー表示・動画撮影・画像処理の詳細を示すフローチャートである。   FIG. 3 is a flowchart showing details of the process in step S214 of the flowchart shown in FIG. 2, that is, live view display / moving image capturing / image processing.

ステップS310では、AE処理を行う。具体的には、AE処理部108において、被写体輝度を算出し、算出した被写体輝度に基づいて、Flashメモリ117に記憶されている露出条件決定テーブルを参照することにより、撮影時のISO感度、絞り、補助光の発光量、およびシャッター速を決定する。   In step S310, AE processing is performed. Specifically, the AE processing unit 108 calculates subject brightness, and refers to the exposure condition determination table stored in the flash memory 117 based on the calculated subject brightness, so that the ISO sensitivity at the time of shooting, the aperture The amount of auxiliary light emitted and the shutter speed are determined.

ステップS320では、撮影を行う。撮影(動画撮影)に関しては、従来から用いられている手法と同様である。すなわち、決定した絞り、シャッター速、ISO感度に基づいて、いわゆる電子シャッターを制御して撮影を行う。   In step S320, shooting is performed. The shooting (moving image shooting) is the same as a conventionally used method. That is, shooting is performed by controlling a so-called electronic shutter based on the determined aperture, shutter speed, and ISO sensitivity.

ステップS330では、ステップS320の撮影で得られた画像データ(ベイヤーデータ)に対して様々な画像処理を施して、輝度(Y)および色差(Cb、Cr)信号データに変換する現像処理を行う。   In step S330, various image processes are performed on the image data (Bayer data) obtained in step S320 to perform development processing for conversion into luminance (Y) and color difference (Cb, Cr) signal data.

ステップS340では、LCDドライバ113により、画像データをLCD114に表示させる。   In step S340, the LCD driver 113 displays image data on the LCD 114.

ステップS350では、動画が記録中であるか否かを判定する。記録中フラグがオフの場合には、動画記録中ではないと判定して、ステップS390に進む。ステップS390では、補助光源3のライト1020をオフにする。すなわち、マイクロコンピュータ115は、ライト1020の消灯指示を、I/F998を介して発光コントローラ1021に送る。この消灯指示に基づいて、発光コントローラ1021は、ライト1020を消灯する。なお、ライト1020がオフになっていた場合には、オフの状態が保たれる。   In step S350, it is determined whether a moving image is being recorded. If the recording flag is off, it is determined that the moving image is not being recorded, and the process proceeds to step S390. In step S390, the light 1020 of the auxiliary light source 3 is turned off. That is, the microcomputer 115 sends an instruction to turn off the light 1020 to the light emission controller 1021 via the I / F 998. Based on this turn-off instruction, the light emission controller 1021 turns off the light 1020. Note that when the light 1020 is off, the off state is maintained.

一方、ステップS350において、記録中フラグがオンであり、動画が記録中であると判定すると、ステップS360に進む。ステップS360では、動画ファイルを生成して、記録媒体112に記録する。すなわち、画像圧縮展開部110において、画像データに対して、動画ファイルの形式に応じた圧縮を行い、所定のヘッダ情報を付加して、動画ファイルを生成する。動画ファイルの圧縮形式には、「H.264」、「Motion JPEG」、「MPEG」などがある。そして、生成した動画ファイルを、メモリI/F111を介して記録媒体112に記録する。   On the other hand, if it is determined in step S350 that the recording flag is on and the moving image is being recorded, the process proceeds to step S360. In step S360, a moving image file is generated and recorded on the recording medium 112. That is, the image compression / decompression unit 110 compresses the image data according to the format of the moving image file, adds predetermined header information, and generates a moving image file. The compression format of the moving image file includes “H.264”, “Motion JPEG”, “MPEG”, and the like. Then, the generated moving image file is recorded on the recording medium 112 via the memory I / F 111.

ステップS370では、補助光源3がカメラ本体1に取り付けられているか否かを判定する。補助光源3がカメラ本体1に取り付けられている場合、マイクロコンピュータ115は、I/F998を介して発光コントローラ1021と通信可能である。従って、マイクロコンピュータ115は、発光コントローラ1021に向けて信号を送信し、発光コントローラ1021から応答があれば、補助光源3がカメラ本体1に取り付けられていると判定し、ステップS380に進む。一方、発光コントローラ1021から応答がなければ、補助光源3がカメラ本体1に取り付けられていないと判定して、本フローチャートの処理を終了する。   In step S370, it is determined whether the auxiliary light source 3 is attached to the camera body 1. When the auxiliary light source 3 is attached to the camera body 1, the microcomputer 115 can communicate with the light emission controller 1021 via the I / F 998. Therefore, the microcomputer 115 transmits a signal to the light emission controller 1021. If there is a response from the light emission controller 1021, the microcomputer 115 determines that the auxiliary light source 3 is attached to the camera body 1, and proceeds to step S380. On the other hand, if there is no response from the light emission controller 1021, it determines with the auxiliary light source 3 not being attached to the camera main body 1, and complete | finishes the process of this flowchart.

ステップS380では、補助光源3のライト1020の発光量制御を行う。ライト1020の発光量制御の詳細については、図5を用いて後述する。   In step S380, the light emission amount of the light 1020 of the auxiliary light source 3 is controlled. Details of the light emission amount control of the light 1020 will be described later with reference to FIG.

図4は、図2に示すフローチャートのステップS203の処理、すなわち、再生処理の詳細を示すフローチャートである。   FIG. 4 is a flowchart showing details of the process in step S203 of the flowchart shown in FIG. 2, that is, the reproduction process.

ステップS400では、ユーザによる操作部116の操作に基づいて、LCD114に表示する画像ファイルを決定する。ユーザによって、再生ボタンが押されると、記録媒体112に記録されている動画ファイルおよび静止画ファイルをLCD114に一覧表示(サムネイル表示)させる。動画ファイルについては、最初のフレームの画像をサムネイル表示させる。ユーザは、操作部116に含まれる十字キーなどを操作することによって、LCD114に表示させたいファイルを選択する。この選択されたファイルを、LCD114に表示する画像ファイルとして決定する。   In step S400, an image file to be displayed on the LCD 114 is determined based on the operation of the operation unit 116 by the user. When the user presses the play button, the moving image file and still image file recorded on the recording medium 112 are displayed as a list (thumbnail display) on the LCD 114. For video files, the first frame image is displayed as a thumbnail. The user selects a file to be displayed on the LCD 114 by operating a cross key included in the operation unit 116. The selected file is determined as an image file to be displayed on the LCD 114.

ステップS410では、ステップS400で決定した画像ファイルが動画ファイルであるか否かを判定する。動画ファイルではなく静止画ファイルであると判定すると、ステップS480に進む。   In step S410, it is determined whether or not the image file determined in step S400 is a moving image file. If it is determined that the file is not a moving image file but a still image file, the process proceeds to step S480.

ステップS480では、画像圧縮展開部110において、記録媒体112に記録されているファイルの中から、ステップS400で決定した静止画ファイルを選択して展開することにより、LCD114に表示させる画像データを取得する。   In step S480, the image compression / decompression unit 110 acquires the image data to be displayed on the LCD 114 by selecting and expanding the still image file determined in step S400 from the files recorded on the recording medium 112. .

ステップS490では、LCDドライバ113により、ステップS480で取得した画像データをLCD114に表示させる。   In step S490, the LCD driver 113 causes the LCD 114 to display the image data acquired in step S480.

一方、ステップS410において、ステップS400で決定した画像ファイルが動画ファイルであると判定するとステップS420に進む。ステップS420では、動画ファイルのヘッダ情報に含まれるフレーム数の情報を取得する。   On the other hand, if it is determined in step S410 that the image file determined in step S400 is a moving image file, the process proceeds to step S420. In step S420, information on the number of frames included in the header information of the moving image file is acquired.

ステップS430では、フレーム数をカウントするパラメータNを初期値の1に設定する。   In step S430, a parameter N for counting the number of frames is set to an initial value of 1.

ステップS440では、画像圧縮展開部110において、記録媒体112に記録されているファイルの中から、ステップS400で決定した動画ファイルを選択し、Nフレーム目の画像データを展開する処理を行う。   In step S440, the image compression / decompression unit 110 selects the moving image file determined in step S400 from the files recorded in the recording medium 112, and performs a process of expanding the Nth frame image data.

ステップS450では、LCDドライバ113により、ステップS440で取得したNフレーム目の画像データをLCD114に表示させる。   In step S450, the LCD driver 113 causes the LCD 114 to display the Nth frame image data acquired in step S440.

ステップS460では、パラメータNに1を加算して、ステップS470に進む。   In step S460, 1 is added to parameter N, and the process proceeds to step S470.

ステップS470では、パラメータNが動画ファイルのフレーム数より大きいか否かを判定する。パラメータNが動画ファイルのフレーム数以下であると判定すると、ステップS440に戻って、次のフレームの画像データを展開し(ステップS440)、LCD114に表示させる(ステップS450)処理を行う。一方、パラメータNが動画ファイルのフレーム数より大きいと判定すると、再生処理を終了する。   In step S470, it is determined whether or not the parameter N is larger than the number of frames of the moving image file. If it is determined that the parameter N is equal to or less than the number of frames of the moving image file, the process returns to step S440, the image data of the next frame is expanded (step S440), and displayed on the LCD 114 (step S450). On the other hand, when it is determined that the parameter N is larger than the number of frames of the moving image file, the reproduction process is terminated.

図5は、図3に示すフローチャートのステップS380の処理、すなわち、発光量制御処理の詳細を示すフローチャートである。   FIG. 5 is a flowchart showing details of the process in step S380 of the flowchart shown in FIG. 3, that is, the light emission amount control process.

ステップS500では、動画撮影により得られた直近の画像データについて、画像の特徴量に応じたヒストグラムを作成する。具体的には、ヒストグラム算出部119は、動画撮影により得られた直近の画像データをSDRAM106から読み出し、読み出した画像データの特徴量のヒストグラムとして、輝度のヒストグラムを算出する。   In step S500, a histogram corresponding to the feature amount of the image is created for the most recent image data obtained by moving image shooting. Specifically, the histogram calculation unit 119 reads the latest image data obtained by moving image shooting from the SDRAM 106, and calculates a luminance histogram as a histogram of the feature amount of the read image data.

ステップS510では、被写体検出部118において、動画撮影により得られた直近の画像データをSDRAM106から読み出し、読み出した画像データを解析することにより、人物や動物などの注目被写体を検出する処理を行う。   In step S510, the subject detection unit 118 reads the latest image data obtained by moving image shooting from the SDRAM 106, and analyzes the read image data to detect a subject of interest such as a person or an animal.

ステップS520では、ステップS510の処理の結果、被写体検出部118によって注目被写体が検出されたか否かを判定する。注目被写体が検出されたと判定すると、ステップS530に進む。   In step S520, it is determined whether or not the subject of interest has been detected by the subject detection unit 118 as a result of the processing of step S510. If it is determined that the subject of interest has been detected, the process proceeds to step S530.

ステップS530では、画像の全領域のうち、注目被写体が検出された領域の平均的な明るさを求め、求めた明るさに基づいて、注目被写体の明るさが適切な明るさとなるように、ライト1020の発光量を制御する。すなわち、マイクロコンピュータ115は、注目被写体の明るさを適切な明るさとするための発光量を算出し、算出した発光量の情報を、I/F998を介して発光コントローラ1021に送信する。発光コントローラ1021は、受信した発光量に基づいて、ライト1020の発光量を調節する。   In step S530, the average brightness of the area in which the subject of interest is detected is obtained out of the entire area of the image, and the light is selected so that the brightness of the subject of interest becomes an appropriate brightness based on the obtained brightness. The amount of emitted light 1020 is controlled. That is, the microcomputer 115 calculates a light emission amount for setting the brightness of the subject of interest to an appropriate brightness, and transmits information on the calculated light emission amount to the light emission controller 1021 via the I / F 998. The light emission controller 1021 adjusts the light emission amount of the light 1020 based on the received light emission amount.

ステップS540では、減光中フラグをオフにする。後述するステップS610では、ライト1020の発光量を少しずつ減らしていく減光処理を行う。減光中フラグは、ライト1020の減光処理を行うか否かを判定するためのフラグである。   In step S540, the dimming flag is turned off. In step S610, which will be described later, a light reduction process for gradually reducing the light emission amount of the light 1020 is performed. The dimming flag is a flag for determining whether or not to perform the dimming process of the light 1020.

一方、ステップS520において、注目被写体が検出されなかったと判定すると、ステップS550に進む。ステップS550では、ライト1020の発光量が最大であるか、または、減光中フラグがオンであるか否かを判定する。ライト1020の発光量が最大ではなく、かつ、減光中フラグがオフであると判定すると、ステップS560に進む。   On the other hand, if it is determined in step S520 that the subject of interest has not been detected, the process proceeds to step S550. In step S550, it is determined whether the light emission amount of the light 1020 is the maximum, or whether the dimming flag is on. If it is determined that the light emission amount of the light 1020 is not the maximum and the dimming flag is off, the process proceeds to step S560.

ステップS560では、画像上で注目被写体を検出するために、ライト1020の発光量を微増させて、ステップS540に進む。具体的には、マイクロコンピュータ115は、現在の発光量を所定量だけ増加させた発光量を求め、求めた発光量の情報を、I/F998を介して発光コントローラ1021に送信する。発光コントローラ1021は、受信した発光量に基づいて、ライト1020の発光量を変更させる。ステップS560の処理、すなわち、ライト1020の発光量を微増させる処理は、ライト1020の発光量が最大値未満であり、かつ、減光中フラグがオフの間は、画像中に注目被写体が検出されるまで、継続して行われる。   In step S560, in order to detect the subject of interest on the image, the light emission amount of the light 1020 is slightly increased, and the process proceeds to step S540. Specifically, the microcomputer 115 obtains a light emission amount obtained by increasing the current light emission amount by a predetermined amount, and transmits information on the obtained light emission amount to the light emission controller 1021 via the I / F 998. The light emission controller 1021 changes the light emission amount of the light 1020 based on the received light emission amount. In the process of step S560, that is, the process of slightly increasing the light emission amount of the light 1020, the target subject is detected in the image while the light emission amount of the light 1020 is less than the maximum value and the dimming flag is off. Until then.

なお、ステップS550において、ライト1020の発光量が最大であるか否かを判定する代わりに、ライト1020の発光量が最大値未満の所定量であるか否かを判定するようにしてもよい。この場合、ライト1020の発光量を微増させる処理は、ライト1020の発光量が所定量未満であり、かつ、減光中フラグがオフの間は、画像中に注目被写体が検出されるまで、継続して行われる。   In step S550, instead of determining whether or not the light emission amount of the light 1020 is the maximum, it may be determined whether or not the light emission amount of the light 1020 is a predetermined amount less than the maximum value. In this case, the process of slightly increasing the light emission amount of the light 1020 is continued until the target subject is detected in the image while the light emission amount of the light 1020 is less than the predetermined amount and the dimming flag is off. Done.

一方、ステップS550において、ライト1020の発光量が最大であると判定された場合、または、減光中フラグがオンであると判定された場合には、ステップS570に進む。ステップS570では、ヒストグラム変化検出部120において、ステップS500で算出されたヒストグラムの変化量を検出し、検出した変化量が所定量以上であるか否かを判定する。この判定は、画像中の被写体の変化を検出するために行うものである。従って、閾値である所定量は、ライト1020の微増または微減に起因する程度の画像の変化を、画像中の被写体の変化として検出しないように設定しておく。ヒストグラムの変化量が所定量以上であると判定すると、ステップS580に進み、所定量未満であると判定するとステップS590に進む。   On the other hand, if it is determined in step S550 that the light emission amount of the light 1020 is the maximum, or if it is determined that the dimming flag is on, the process proceeds to step S570. In step S570, the histogram change detection unit 120 detects the change amount of the histogram calculated in step S500, and determines whether or not the detected change amount is equal to or greater than a predetermined amount. This determination is performed in order to detect a change in the subject in the image. Accordingly, the predetermined amount as the threshold is set so that a change in the image due to the slight increase or decrease in the light 1020 is not detected as a change in the subject in the image. If it is determined that the amount of change in the histogram is greater than or equal to the predetermined amount, the process proceeds to step S580, and if it is determined that it is less than the predetermined amount, the process proceeds to step S590.

ステップS580では、ヒストグラムの変化量が所定量未満であると判定されている時間を計測するための時間カウンタをリセットして、ステップS540に進む。   In step S580, the time counter for measuring the time when the amount of change in the histogram is determined to be less than the predetermined amount is reset, and the process proceeds to step S540.

ステップS590では、ヒストグラムの変化量が所定量未満であると判定されている時間を計測するための時間カウンタをカウントアップする。   In step S590, a time counter for measuring the time when the amount of change in the histogram is determined to be less than the predetermined amount is counted up.

ステップS600では、時間カウンタのカウント値に基づいて、所定時間(例えば、数秒)が経過したか否かを判定する。所定時間が経過していないと判定すると、ステップS540に進み、所定時間が経過したと判定すると、ステップS610に進む。   In step S600, it is determined whether a predetermined time (for example, several seconds) has elapsed based on the count value of the time counter. If it is determined that the predetermined time has not elapsed, the process proceeds to step S540. If it is determined that the predetermined time has elapsed, the process proceeds to step S610.

ステップS610では、撮影中の動画像中に、補助光の照射が必要な被写体が存在せず、ライト1020の発光が不要と判断して、ライト1020の発光量を微減させる。具体的には、マイクロコンピュータ115は、現在の発光量を所定量だけ減少させた発光量を求め、求めた発光量の情報を、I/F998を介して発光コントローラ1021に送信する。発光コントローラ1021は、受信した発光量に基づいて、ライト1020の発光量を変更させる。ステップS610の処理、すなわち、ライト1020の発光量を微減させる処理は、ライト1020の発光量が零になるまでの間、画像中に注目被写体が検出されるか、または、ヒストグラムの変化量が所定量以上であると判定されるまで継続して行われる。   In step S610, it is determined that there is no subject that needs to be irradiated with auxiliary light in the moving image being shot, and it is determined that light emission of the light 1020 is unnecessary, and the light emission amount of the light 1020 is slightly reduced. Specifically, the microcomputer 115 obtains a light emission amount obtained by reducing the current light emission amount by a predetermined amount, and transmits information on the obtained light emission amount to the light emission controller 1021 via the I / F 998. The light emission controller 1021 changes the light emission amount of the light 1020 based on the received light emission amount. In the process of step S610, that is, the process of slightly reducing the light emission amount of the light 1020, the subject of interest is detected in the image or the amount of change in the histogram is determined until the light emission amount of the light 1020 becomes zero. It is continuously performed until it is determined that the amount is not less than the fixed amount.

ステップS620では、減光中フラグをオンにして、発光量制御を終了する。   In step S620, the dimming flag is turned on and the light emission amount control is terminated.

以上、一実施形態における撮像装置によれば、動画像内の注目被写体を検出し、注目被写体の検出結果に基づいて、ライト1020の発光量を制御するので、ライト1020に電力を供給するバッテリの消費量を抑制しつつ、適切な明るさで動画の撮影を行うことができる。   As described above, according to the imaging apparatus in one embodiment, the subject of interest in the moving image is detected, and the light emission amount of the light 1020 is controlled based on the detection result of the subject of interest. It is possible to shoot moving images with appropriate brightness while suppressing consumption.

また、注目被写体が検出された場合に、検出された注目被写体の露出が適正な露出となるように、ライト1020の発光量を制御するので、注目被写体を適切な明るさで撮像することができる。   In addition, when the target subject is detected, the light emission amount of the light 1020 is controlled so that the detected exposure of the target subject is appropriate, so that the target subject can be imaged with appropriate brightness. .

さらに、注目被写体が検出されなかった場合に、ライト1020の発光量を増加させていき、ライト1020の発光量が所定量に到達しても注目被写体が検出されない場合には、ライト1020の発光量を低下させていく。これにより、ライト1020の発光量が所定量に到達するまでの間は、ライト1020の発光量を増加させて、画像中で注目被写体を検出できるようにし、ライト1020の発光量が所定量に到達すると、画像中に注目被写体が存在せず、ライト1020の発光が不要と判断して、発光量を低下させて、バッテリの消費量を抑制することができる。   Further, when the target subject is not detected, the light emission amount of the light 1020 is increased. When the target subject is not detected even when the light emission amount of the light 1020 reaches a predetermined amount, the light emission amount of the light 1020 is increased. Will decrease. Thus, until the light emission amount of the light 1020 reaches a predetermined amount, the light emission amount of the light 1020 is increased so that the subject of interest can be detected in the image, and the light emission amount of the light 1020 reaches the predetermined amount. Then, it can be determined that there is no subject of interest in the image and the light 1020 does not need to be emitted, and the amount of emitted light can be reduced to reduce the amount of battery consumption.

また、一実施形態における撮像装置によれば、撮像により得られた画像の特徴量の変化を検出し、特徴量の変化の検出結果に基づいて、ライト1020の発光量を制御するので、画像中の被写体の変化に応じて、動画撮像時のライト1020の発光量を適切に制御することができる。さらに、画像の特徴量をヒストグラムとして算出することにより、画像中の被写体の変化を確実に検出することができる。   In addition, according to the imaging device in one embodiment, since the change in the feature amount of the image obtained by imaging is detected and the light emission amount of the light 1020 is controlled based on the detection result of the feature amount change, The amount of light emitted from the light 1020 at the time of moving image capturing can be appropriately controlled according to the change in the subject. Furthermore, by calculating the feature amount of the image as a histogram, it is possible to reliably detect a change in the subject in the image.

また、一実施形態における撮像装置によれば、注目被写体が検出されなかった場合に、ライト1020の発光量を増加させていき、ライト1020の発光量が所定量に到達しても注目被写体が検出されず、かつ、画像の特徴量のヒストグラムの変化が所定の変化未満の場合に、ライト1020の発光量を低下させていく。これにより、ライト1020の発光量が所定量に到達した後、ライト1020の発光が必要か不要かをより的確に判断して、不要と判断すると、ライト1020の発光量を低下させて、バッテリの消費量を抑制することができる。   In addition, according to the imaging apparatus of the embodiment, when the target subject is not detected, the light emission amount of the light 1020 is increased, and the target subject is detected even if the light emission amount of the light 1020 reaches a predetermined amount. If the change in the histogram of the feature amount of the image is less than the predetermined change, the light emission amount of the light 1020 is decreased. Thereby, after the light emission amount of the light 1020 reaches a predetermined amount, it is more accurately determined whether or not the light 1020 needs to emit light. Consumption can be reduced.

なお、上述した一実施形態の説明では、撮像装置が行う処理としてハードウェアによる処理を前提としていたが、このような構成に限定される必要はない。例えば、別途ソフトウェアにて処理する構成も可能である。この場合、撮像装置は、CPU、RAM等の主記憶装置、上記処理の全て或いは一部を実現させるためのプログラムが記憶されたコンピュータ読み取り可能な記憶媒体を備えている。ここでは、このプログラムを撮像プログラムと呼ぶ。そして、CPUが上記記憶媒体に記憶されている撮像プログラムを読み出して、情報の加工・演算処理を実行することにより、上述の撮像装置と同様の処理を実現させる。   In the description of the embodiment described above, hardware processing is assumed as processing performed by the imaging apparatus, but it is not necessary to be limited to such a configuration. For example, a configuration in which processing is performed separately by software is also possible. In this case, the imaging apparatus includes a main storage device such as a CPU and a RAM, and a computer-readable storage medium in which a program for realizing all or part of the above processing is stored. Here, this program is called an imaging program. Then, the CPU reads out the imaging program stored in the storage medium and executes information processing / calculation processing, thereby realizing the same processing as that of the imaging device described above.

ここで、コンピュータ読み取り可能な記録媒体とは、磁気ディスク、光磁気ディスク、CD−ROM、DVD−ROM、半導体メモリ等をいう。また、この撮像プログラムを通信回線によってコンピュータに配信し、この配信を受けたコンピュータが当該撮像プログラムを実行するようにしても良い。   Here, the computer-readable recording medium refers to a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, and the like. Further, the imaging program may be distributed to a computer via a communication line, and the computer that has received the distribution may execute the imaging program.

本発明は、上述した一実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内で様々な変形や応用が可能である。例えば、動画撮像時に用いられるライト1020は、ビデオライトに限定されることはなく、LEDなど、被写体に補助光を照射できるものであればよい。   The present invention is not limited to the above-described embodiment, and various modifications and applications can be made without departing from the gist of the present invention. For example, the light 1020 used at the time of moving image capturing is not limited to a video light, and any light source such as an LED that can irradiate auxiliary light.

図5に示すフローチャートのステップS610では、ライト1020の発光量を微減させたが、ライト1020の発光を停止させるようにしてもよい。   In step S610 of the flowchart shown in FIG. 5, the light emission amount of the light 1020 is slightly reduced, but the light emission of the light 1020 may be stopped.

1…カメラ本体
2…交換式レンズ
3…補助光源
101…メカシャッター
102…撮像素子
103…アナログ処理部
104…アナログ/デジタル変換部
114…LCD
115…マイクロコンピュータ
118…被写体検出部
119…ヒストグラム算出部
120…ヒストグラム変化検出部
1020…ライト
1021…発光コントローラ
DESCRIPTION OF SYMBOLS 1 ... Camera body 2 ... Interchangeable lens 3 ... Auxiliary light source 101 ... Mechanical shutter 102 ... Imaging element 103 ... Analog processing part 104 ... Analog / digital conversion part 114 ... LCD
115 ... Microcomputer 118 ... Subject detection unit 119 ... Histogram calculation unit 120 ... Histogram change detection unit 1020 ... Light 1021 ... Light emission controller

Claims (6)

動画の撮像が可能な撮像装置であって、
動画像内の注目被写体を検出する注目被写体検出部と、
補助光を発光する発光部と、
動画の撮像時に、前記注目被写体検出部による注目被写体の検出結果に基づいて、前記発光部の発光量を制御する発光量制御部と、
を備え、
前記発光量制御部は、前記注目被写体検出部によって注目被写体が検出されなかった場合に、前記発光部の発光量を増加させていき、前記発光部の発光量が所定量に到達しても前記注目被写体検出部によって注目被写体が検出されない場合には、前記発光部の発光量を低下させていく、または、停止させる、
ことを特徴とする撮像装置。
An imaging device capable of capturing moving images,
A subject-of-interest detector that detects a subject of interest in a moving image;
A light emitting section for emitting auxiliary light;
A light emission amount control unit that controls a light emission amount of the light emitting unit based on a detection result of the target subject by the target subject detection unit when capturing a moving image;
With
The light emission amount control unit increases the light emission amount of the light emitting unit when the target subject is not detected by the target subject detection unit, and even if the light emission amount of the light emitting unit reaches a predetermined amount, the light emission amount control unit If the target subject is not detected by the target subject detection unit, the light emission amount of the light emitting unit is decreased or stopped,
An imaging apparatus characterized by that.
撮像により得られた画像の特徴量の変化を検出する特徴量変化検出部をさらに備え、
前記発光量制御部は、前記特徴量変化検出部による特徴量の変化の検出結果に基づいて、前記発光部の発光量を制御することを特徴とする請求項に記載の撮像装置。
A feature amount change detection unit that detects a change in the feature amount of the image obtained by imaging;
The light emission amount control unit based on the detection result of the change in the feature amount by the feature amount change detecting unit, the imaging apparatus according to claim 1, characterized in that to control the light emission amount of the light-emitting portion.
前記画像の特徴量をヒストグラムとして算出するヒストグラム算出部をさらに備え、
前記特徴量変化検出部は、前記画像の特徴量の変化として、前記ヒストグラム算出部によって算出されたヒストグラムの変化を算出することを特徴とする請求項に記載の撮像装置。
A histogram calculation unit that calculates the feature amount of the image as a histogram;
The imaging apparatus according to claim 2 , wherein the feature amount change detection unit calculates a change in the histogram calculated by the histogram calculation unit as a change in the feature amount of the image.
前記ヒストグラム算出部は、前記画像の特徴量のヒストグラムとして、画像の輝度のヒストグラムを算出することを特徴とする請求項に記載の撮像装置。 The imaging apparatus according to claim 3 , wherein the histogram calculation unit calculates a histogram of luminance of the image as a histogram of the feature amount of the image. 動画の撮像が可能な撮像装置であって、
動画像内の注目被写体を検出する注目被写体検出部と、
補助光を発光する発光部と、
動画の撮像時に、前記注目被写体検出部による注目被写体の検出結果に基づいて、前記発光部の発光量を制御する発光量制御部と、
撮像により得られた画像の特徴量の変化を検出する特徴量変化検出部と、
を備え、
前記発光量制御部は、前記注目被写体検出部によって注目被写体が検出されなかった場合に、前記発光部の発光量を増加させていき、前記発光部の発光量が所定量に到達しても前記注目被写体検出部によって注目被写体が検出されず、かつ、前記画像の特徴量のヒストグラムの変化量が所定の変化量未満の場合に、前記発光部の発光量を低下させていく、または、停止させることを特徴とする撮像装置。
An imaging device capable of capturing moving images,
A subject-of-interest detector that detects a subject of interest in a moving image;
A light emitting section for emitting auxiliary light;
A light emission amount control unit that controls a light emission amount of the light emitting unit based on a detection result of the target subject by the target subject detection unit when capturing a moving image;
A feature amount change detection unit that detects a change in the feature amount of an image obtained by imaging;
With
The light emission amount control unit increases the light emission amount of the light emitting unit when the target subject is not detected by the target subject detection unit, and even if the light emission amount of the light emitting unit reaches a predetermined amount, the light emission amount control unit When the target subject is not detected by the target subject detection unit and the change amount of the histogram of the feature amount of the image is less than a predetermined change amount, the light emission amount of the light emitting unit is decreased or stopped. An imaging apparatus characterized by that.
前記発光量制御部は、静止画の撮像時には、前記発光部による補助光の発光を停止させることを特徴とする請求項1から請求項のいずれか一項に記載の撮像装置。 The light emission amount control unit, at the time of imaging of the still image, the imaging apparatus according to any one of claims 1 to 5, characterized in that to stop the emission of the auxiliary light by the light emitting portion.
JP2010103725A 2010-04-28 2010-04-28 Imaging device Expired - Fee Related JP5583465B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010103725A JP5583465B2 (en) 2010-04-28 2010-04-28 Imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010103725A JP5583465B2 (en) 2010-04-28 2010-04-28 Imaging device

Publications (2)

Publication Number Publication Date
JP2011232618A JP2011232618A (en) 2011-11-17
JP5583465B2 true JP5583465B2 (en) 2014-09-03

Family

ID=45321965

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010103725A Expired - Fee Related JP5583465B2 (en) 2010-04-28 2010-04-28 Imaging device

Country Status (1)

Country Link
JP (1) JP5583465B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0830835B2 (en) * 1988-03-07 1996-03-27 富士写真フイルム株式会社 Photometric device
JP2002040321A (en) * 2000-07-24 2002-02-06 Olympus Optical Co Ltd Electronic camera
JP4870887B2 (en) * 2001-09-28 2012-02-08 株式会社リコー Imaging apparatus, strobe control method, and program for computer to execute the method
JP2005354155A (en) * 2004-06-08 2005-12-22 Matsushita Electric Ind Co Ltd Movie imaging device
JP2008271227A (en) * 2007-04-20 2008-11-06 Nikon Corp Image sensing device
JP5224804B2 (en) * 2007-12-27 2013-07-03 三星電子株式会社 Imaging device
JP5208493B2 (en) * 2007-12-27 2013-06-12 三星電子株式会社 Imaging device
JP5111263B2 (en) * 2008-06-27 2013-01-09 キヤノン株式会社 Imaging apparatus and method

Also Published As

Publication number Publication date
JP2011232618A (en) 2011-11-17

Similar Documents

Publication Publication Date Title
KR101342477B1 (en) Imaging apparatus and imaging method for taking moving image
JP5218508B2 (en) Imaging device
US8947557B2 (en) Photographing apparatus and method for dynamic range adjustment and stereography
US9398230B2 (en) Imaging device and imaging method
JP5129182B2 (en) Imaging apparatus and imaging control method
CN102469244B (en) Image capturing apparatus capable of continuously capturing object
JP5592776B2 (en) Image processing apparatus, image processing method, and image processing program
US8253850B2 (en) Imaging apparatus and program thereof
JP5304295B2 (en) Imaging device and white balance bracketing shooting program
JP5338373B2 (en) Imaging device
JP5607911B2 (en) Image processing apparatus, imaging apparatus, image processing method, and image processing program
JP5800970B2 (en) Image processing apparatus, imaging apparatus, image processing method, and image processing program
JP2011160183A (en) Imaging device and method
JP4775172B2 (en) Electronic camera
JP5583465B2 (en) Imaging device
JP5109659B2 (en) camera
JP2009033289A (en) Imaging apparatus and imaging method
JP4985716B2 (en) Imaging apparatus, method for setting focus evaluation area, and program
JP2010119051A (en) Imaging device and imaging method
JP4890701B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP5600935B2 (en) Image recording apparatus, image recording method, and image recording program
JP2009219028A (en) Image recording method and imaging unit
US20150156408A1 (en) Imaging apparatus, method for controlling the same, and recording medium
JP4727526B2 (en) Imaging device
JP5034807B2 (en) camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130111

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140107

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140507

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140530

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140716

R151 Written notification of patent or utility model registration

Ref document number: 5583465

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees