JP2010050637A - Imaging apparatus and its control method - Google Patents

Imaging apparatus and its control method Download PDF

Info

Publication number
JP2010050637A
JP2010050637A JP2008212038A JP2008212038A JP2010050637A JP 2010050637 A JP2010050637 A JP 2010050637A JP 2008212038 A JP2008212038 A JP 2008212038A JP 2008212038 A JP2008212038 A JP 2008212038A JP 2010050637 A JP2010050637 A JP 2010050637A
Authority
JP
Japan
Prior art keywords
detection
image
switching
unit
detection determination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008212038A
Other languages
Japanese (ja)
Other versions
JP5075058B2 (en
Inventor
Ryosuke Tsuji
良介 辻
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 JP2008212038A priority Critical patent/JP5075058B2/en
Publication of JP2010050637A publication Critical patent/JP2010050637A/en
Application granted granted Critical
Publication of JP5075058B2 publication Critical patent/JP5075058B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Exposure Control For Cameras (AREA)
  • Blocking Light For Cameras (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an imaging apparatus normally detecting an immobile object even when an automatic day/night function for changing the luminance and color of the entire image is operated during an immobile object detecting operation. <P>SOLUTION: In the imaging apparatus, when an imaging mode is switched by the automatic day/night function, a reference image stored in a reference image storage part 106 is updated. Then, determination by a first detection determination part 108 or a second detection determination part 109 is switched according to the position (or coordinates) of the area of the pixel stored in a detection area storage part 110. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、撮像装置およびその制御方法に関し、特に、不動体検知機能と撮影モードの切り換え機能とを備える撮像装置およびその制御方法に関する。   The present invention relates to an imaging apparatus and a control method thereof, and more particularly, to an imaging apparatus having an unmoving object detection function and a shooting mode switching function and a control method thereof.

近年、監視カメラシステムには、様々なインテリジェント機能が搭載されている。その一つとして、監視カメラから得た画像を基に、監視領域内に新たに加わり静止した状態の物体を画像処理により検知する不動体検知機能がある。この不動体検知機能では、基準となる参照画像と現在の入力画像とを比較して差異部分を検出し、この差異部分の継続時間が所定時間以上に達すると、監視画面への表示や警告等が行われる(例えば、特許文献1参照)。   In recent years, various intelligent functions are installed in surveillance camera systems. As one of them, there is a non-moving object detection function for detecting an object which is newly added to the monitoring area and is stationary based on an image obtained from the monitoring camera by image processing. This unmoving object detection function detects a difference portion by comparing the reference image as a reference and the current input image, and when the duration of the difference portion reaches a predetermined time or longer, it displays on the monitoring screen, warns, etc. (For example, refer to Patent Document 1).

一方、従来から、撮影モードを自動で切り換える機能の一つとして、オートデイナイト機能が知られている。オートデイナイト機能とは、被写体からの入射光量に応じて自動的に赤外線カットフィルタの取り付け/取り外しを行うことにより、撮像素子への入射光量を増減させるデイモードとナイトモードからなる撮像モードを切り換える機能である。可視光の入射光量が減少してきた場合には、赤外光で撮影するナイトモードに切り換えて画像が出力される。また、赤外光の入射光量が増加してきた場合には、可視光で撮影するデイモードに切り換えて画像が出力される(例えば、特許文献2参照)。
特開2000−331254号公報 特開2004−120202号公報
On the other hand, an automatic day / night function has been known as one of functions for automatically switching the photographing mode. The auto day / night function is a function that switches between an imaging mode consisting of a day mode and a night mode that increase or decrease the amount of incident light on the image sensor by automatically attaching / removing the infrared cut filter according to the amount of incident light from the subject. It is. When the incident light quantity of visible light decreases, the image is output by switching to the night mode for photographing with infrared light. When the incident light quantity of infrared light increases, the image is output by switching to the day mode for photographing with visible light (see, for example, Patent Document 2).
JP 2000-33254 A JP 2004-120202 A

しかしながら、上記従来例では、不動体検知機能の動作中に画面全体の輝度や色が変化する撮影モードの切り換えが行われると、参照画像と現在の入力画像との差異部分が画像全体に検出される。特に、オートデイナイト機能の切り換えが行われると、赤外光の変化によって画像全体の輝度が著しく変化し、大きな差異部分が画像全体に検出される。そのため、不動体検知機能が、監視領域全体を不動体として誤検知してしまうという問題がある。   However, in the above-described conventional example, when the shooting mode is switched in which the brightness or color of the entire screen changes during the operation of the unmoving object detection function, the difference between the reference image and the current input image is detected in the entire image. The In particular, when the auto day / night function is switched, the luminance of the entire image changes significantly due to the change of infrared light, and a large difference portion is detected in the entire image. Therefore, there is a problem that the unmoving object detection function erroneously detects the entire monitoring area as an unmoving object.

また、不動体検知機能における差異部分の検出の継続時間のカウント中に撮影モードの切り換えが行われると、不動体と成り得る物体が監視領域の一部分に存在しているにもかかわらず、画像全体に差異が検出される。そのため、不動体と成り得る物体の領域が特定できず、正常に検知されないという問題がある。   In addition, if the shooting mode is switched during counting of the duration of detection of the difference portion in the unmoving object detection function, the entire image is displayed even though an object that can be an unmoving object exists in a part of the monitoring area. A difference is detected. Therefore, there is a problem that the region of the object that can be a non-moving object cannot be specified and cannot be detected normally.

本発明は、上記問題に鑑みて成されたものであり、不動体検知動作中に画像全体の輝度や色を変化させるオートデイナイト機能が働いても正常に不動体検知を行うことができる撮像装置およびその制御方法を提供することを目的とする。   The present invention has been made in view of the above problems, and can perform normal non-moving object detection even when an automatic day / night function that changes the brightness and color of the entire image is activated during the non-moving object detection operation. And it aims at providing the control method.

上記目的を達成するために、請求項1記載の撮像装置は、撮影中の映像から基準となる参照画像を記憶する画像記憶手段と、前記記憶された参照画像と撮影中の現在の画像との画素ごとの差分値を算出する差分検出手段と、前記算出された差分値が第1の閾値よりも大きい場合に基準を満たしたと判定する第1の検出判定手段と、前記算出された差分値が第2の閾値よりも小さい場合に基準を満たしたと判定する第2の検出判定手段と、前記第1の検出判定手段または前記第2の検出判定手段のいずれかにより前記基準を満たすと判定された画素の領域の位置を記憶する領域記憶手段と、撮影モードを切り換える切換手段と、前記切換手段により前記撮影モードが切り換えられたときは、前記画像記憶手段に記憶された参照画像の更新を行い、前記領域記憶手段に記憶されている画素の領域の位置に応じて、前記第1の検出判定手段または前記第2の検出判定手段による判定を切り換える制御手段とを備えることを特徴とする。   In order to achieve the above object, an imaging apparatus according to claim 1 includes: an image storage unit that stores a reference image serving as a reference from a video that is being shot; and the stored reference image and a current image that is being shot. Difference detection means for calculating a difference value for each pixel, first detection determination means for determining that the reference is satisfied when the calculated difference value is larger than a first threshold, and the calculated difference value When it is smaller than the second threshold, it is determined that the reference is satisfied by a second detection determination unit that determines that the criterion is satisfied, and either the first detection determination unit or the second detection determination unit An area storage means for storing the position of the pixel area, a switching means for switching the photographing mode, and when the photographing mode is switched by the switching means, the reference image stored in the image storage means is updated. Depending on the position of the region of the pixel stored in the region storage means, characterized in that it comprises a control means for switching the determination by the first detection determining means or said second detection judging means.

上記目的を達成するために、請求項16記載の撮像装置の制御方法は、撮影中の映像から基準となる参照画像を記憶する画像記憶手段と、前記記憶された参照画像と撮影中の現在の画像との画素ごとの差分値を算出する差分検出手段と、前記算出された差分値が第1の閾値よりも大きい場合に基準を満たしたと判定する第1の検出判定手段と、前記算出された差分値が第2の閾値よりも小さい場合に基準を満たしたと判定する第2の検出判定手段と、前記第1の検出判定手段または前記第2の検出判定手段のいずれかにより前記基準を満たすと判定された画素の領域の位置を記憶する領域記憶手段とを備える撮像装置の制御方法であって、撮影モードを切り換える切換工程と、前記切換工程にて前記撮影モードが切り換えられたときは、前記画像記憶手段に記憶された参照画像の更新を行い、前記領域記憶手段に記憶されている画素の領域の位置に応じて、前記第1の検出判定手段または前記第2の検出判定手段による判定を切り換える制御工程とを備えることを特徴とする。   In order to achieve the above object, the control method of an imaging apparatus according to claim 16 includes an image storage means for storing a reference image serving as a reference from a video being shot, the stored reference image and a current shot being shot. A difference detection unit that calculates a difference value for each pixel from the image, a first detection determination unit that determines that the criterion is satisfied when the calculated difference value is greater than a first threshold, and the calculated When the difference is smaller than the second threshold value, the second detection determination unit that determines that the criterion is satisfied, and the first detection determination unit or the second detection determination unit satisfies the criterion. A method of controlling an image pickup apparatus including a region storage unit that stores a position of a determined pixel region, and a switching step of switching a shooting mode, and when the shooting mode is switched in the switching step, The reference image stored in the image storage unit is updated, and the determination by the first detection determination unit or the second detection determination unit is performed according to the position of the pixel area stored in the region storage unit. And a control process for switching.

本発明によれば、不動体検知動作中に画像全体の輝度や色を変化させるオートデイナイト機能が働いても画像全体を不動体として誤検知することなく、正常に不動体検知を行うことができる。   According to the present invention, even if an automatic day / night function that changes the brightness and color of the entire image is activated during the unmoving object detection operation, the unmoving object can be normally detected without erroneously detecting the entire image as an unmoving object. .

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

本実施形態では、不動体検知中にオートデイナイト機能における撮影モードの切り換え動作を行う撮像装置について説明する。   In the present embodiment, an imaging apparatus that performs a shooting mode switching operation in the automatic day / night function during unmoving object detection will be described.

図1は、本発明の実施形態に係る撮像装置におけるオートデイナイト機能に関する構成部分を示すブロック図である。   FIG. 1 is a block diagram showing components relating to an auto day / night function in an imaging apparatus according to an embodiment of the present invention.

図1において、101はレンズ、102は赤外線カットフィルタ、103はCCD(Charge Coupled Device)、104は画像信号処理部、105は撮影モード切換部、106は参照画像記憶部である。107から112は不動体検知部の構成要素を示す。107は差分検出部、108は第1の検出判定部、109は第2の検出判定部、110は検出領域記憶部、111はタイマカウンタ部、112は検知通知部を示す。   In FIG. 1, 101 is a lens, 102 is an infrared cut filter, 103 is a CCD (Charge Coupled Device), 104 is an image signal processing unit, 105 is a photographing mode switching unit, and 106 is a reference image storage unit. Reference numerals 107 to 112 denote components of the unmoving object detection unit. Reference numeral 107 denotes a difference detection unit, 108 denotes a first detection determination unit, 109 denotes a second detection determination unit, 110 denotes a detection area storage unit, 111 denotes a timer counter unit, and 112 denotes a detection notification unit.

撮像装置は、撮影された画像を基に、監視領域内に新たに加わり静止した状態の物体を画像処理により検知する不動体検知機能を備える。また、撮像装置は、赤外線カットフィルタの取り付け/取り外しを行うことにより、撮像素子への入射光量を増減させるデイモードとナイトモードからなる撮影モードを切り換えるオートデイナイト機能を備える。   The imaging device includes a non-moving object detection function that detects an object that is newly added to the monitoring area and is stationary based on the captured image by image processing. The imaging apparatus also has an auto day / night function that switches between a day mode and a night mode that increase or decrease the amount of light incident on the imaging element by attaching / removing an infrared cut filter.

オートデイナイト機能では、CCD103への入射光量に応じて、画像信号処理部104から撮影モード切換部105に命令が送られ、撮影モード切換部105により赤外線カットフィルタ102の取り付け/取り外しが実行される。   In the auto day / night function, a command is sent from the image signal processing unit 104 to the photographing mode switching unit 105 according to the amount of light incident on the CCD 103, and the infrared cut filter 102 is attached / detached by the photographing mode switching unit 105.

画像の明るさに応じて可視光領域で撮影するデイモード(第1の撮影モード)では、レンズ101とCCD103との間に赤外線カットフィルタ102を取り付けることにより、レンズ101を介して入射された光から赤外光領域の光が除去される。この結果、CCD103には、可視光のみで照射される。   In the day mode (first shooting mode) in which the image is captured in the visible light region according to the brightness of the image, the light incident through the lens 101 is obtained by attaching the infrared cut filter 102 between the lens 101 and the CCD 103. Infrared light in the infrared region is removed. As a result, the CCD 103 is irradiated only with visible light.

一方、赤外光領域を含む光で撮影するナイトモード(第2の撮影モード)では、撮影モード切換部105により赤外線カットフィルタ102が取り外され、CCD103に赤外光領域の光を含む入射光を照射する。オートデイナイト機能は、入射光量に応じて画像信号処理部104が撮影モード切換部105に命令を送り、デイモードとナイトモードを自動的に切り換える。   On the other hand, in the night mode (second shooting mode) for shooting with light including the infrared light region, the infrared cut filter 102 is removed by the shooting mode switching unit 105, and incident light including light in the infrared light region is input to the CCD 103. Irradiate. In the auto day / night function, the image signal processing unit 104 sends a command to the photographing mode switching unit 105 according to the amount of incident light, and automatically switches between the day mode and the night mode.

基本的なオートデイナイト機能の動作について図2および図3を参照して説明する。   The basic auto day / night function will be described with reference to FIGS.

図2は、オートデイナイト機能による動作を示すフローチャートであり、(a)はデイモード時、(b)はナイトモード時である。図3は、時間経過に対する被写体からの入射光量の変化を示すグラフである。   FIG. 2 is a flowchart showing the operation by the auto day / night function, where (a) is in the day mode and (b) is in the night mode. FIG. 3 is a graph showing the change in the amount of incident light from the subject over time.

図2(a)において、オートデイナイト機能がデイモードの場合、画像信号処理部104がCCD103から入射光量を取得する(ステップS201)。次に、入射光量が閾値より下回ったと判定したときは(ステップS202でYES)、撮影モード切換部105により赤外線カットフィルタ102を外し(ステップS203)、赤外光領域の光をCCD103に入力する。   In FIG. 2A, when the auto day / night function is in the day mode, the image signal processing unit 104 acquires the amount of incident light from the CCD 103 (step S201). Next, when it is determined that the amount of incident light has fallen below the threshold (YES in step S202), the infrared cut filter 102 is removed by the photographing mode switching unit 105 (step S203), and light in the infrared region is input to the CCD 103.

図3において、301は昼間から日没までの期間、302は日没から日の出までの期間、303は日の出から昼間までの期間を示す。太陽光のもとでの撮影の場合、時間経過と共に被写体からの入射光量は変化する。期間301では、入射光量が徐々に減少していく。夜間に入射光に赤外光領域の成分がある場合は、期間302のように入射光量が多少増加し、日の出と共に入射光量が徐々に増加していく。   In FIG. 3, 301 indicates a period from daytime to sunset, 302 indicates a period from sunset to sunrise, and 303 indicates a period from sunrise to daytime. In the case of shooting under sunlight, the amount of incident light from the subject changes with time. In the period 301, the amount of incident light gradually decreases. When the incident light has a component in the infrared light region at night, the amount of incident light slightly increases as in the period 302, and the amount of incident light gradually increases with sunrise.

図2(b)に示すように、ナイトモードの場合、画像信号処理部104がCCD103から入射光量を取得する(ステップS204)。次に、入射光量が閾値より上回ったと判定したときは(ステップS205でYES)、撮影モード切換部105により赤外線カットフィルタ102を装着させ(ステップS206)、可視光領域の光をCCD103に入力する。この結果、期間303のように、入射光量は、赤外光領域の成分だけ減少したものとなる。   As shown in FIG. 2B, in the night mode, the image signal processing unit 104 acquires the amount of incident light from the CCD 103 (step S204). Next, when it is determined that the amount of incident light exceeds the threshold (YES in step S205), the infrared cut filter 102 is attached by the photographing mode switching unit 105 (step S206), and light in the visible light region is input to the CCD 103. As a result, as in the period 303, the amount of incident light is reduced by a component in the infrared light region.

次に、基本的な不動体検知機能について説明する。   Next, a basic unmoving object detection function will be described.

不動体検知機能における不動体検知処理では、撮影中の映像から基準となる参照画像が参照画像記憶部106に記憶され、参照画像と画像信号処理部104から得られる現在の画像との各画素の差分値が差分検出部107により算出される。そして、この差分値から変化が検出されたかを第1の検出判定部108もしくは第2の検出判定部109により判定する。   In the unmoving object detection process in the unmoving object detection function, a reference image serving as a reference from the image being captured is stored in the reference image storage unit 106, and each pixel of the reference image and the current image obtained from the image signal processing unit 104 is stored. The difference value is calculated by the difference detection unit 107. Then, the first detection determination unit 108 or the second detection determination unit 109 determines whether a change is detected from the difference value.

第1の検出判定部108では、差分値が第1の閾値よりも大きい場合に基準を満たしたと判定される。一方、第2の検出判定部109では、差分値が第2の閾値よりも小さい場合に基準を満たしたと判定される。通常の不動体検知機能では、第1の検出判定部108により判定される。第1の検出判定部108もしくは第2の検出判定部109により基準を満たしたと判定された画素の領域の位置(もしくは座標)は、検出領域記憶部110に記憶される。   The first detection determination unit 108 determines that the criterion is satisfied when the difference value is larger than the first threshold value. On the other hand, the second detection determination unit 109 determines that the criterion is satisfied when the difference value is smaller than the second threshold value. In the normal unmoving object detection function, the first detection determination unit 108 determines. The position (or coordinates) of the region of the pixel determined to satisfy the standard by the first detection determination unit 108 or the second detection determination unit 109 is stored in the detection region storage unit 110.

一方、第1の検出判定部108もしくは第2の検出判定部109により基準を満たさなかったと判定された画素の領域の位置は、検出領域記憶部110から削除される。この検出領域記憶部110に記憶されている画素の領域の位置ごとにタイマカウンタ部111により、その継続時間がカウントされる。このタイマカウンタ部111のカウント値が所定時間以上に達すると、検知通知部112により警告などの信号を出力する。このような不動体検知処理は、画像信号処理部104に新たな画像が取得される度に実行される。   On the other hand, the position of the region of the pixel that is determined not to satisfy the standard by the first detection determination unit 108 or the second detection determination unit 109 is deleted from the detection region storage unit 110. For each position of the pixel area stored in the detection area storage unit 110, the timer counter unit 111 counts the duration time. When the count value of the timer counter unit 111 reaches a predetermined time or more, the detection notification unit 112 outputs a signal such as a warning. Such unmoving object detection processing is executed every time a new image is acquired by the image signal processing unit 104.

図4は、不動体検知機能による不動体検知処理を示すフローチャートであり、図5は、図4のステップS503における画素ごとの不動体検知処理の詳細を示すフローチャートである。図6は、不動体検知機能を説明するための図である。なお、検出判定は、第1の検出判定部108により行われるものとする。   FIG. 4 is a flowchart showing the unmoving object detection process by the unmoving object detection function, and FIG. 5 is a flowchart showing details of the unmoving object detection process for each pixel in step S503 of FIG. FIG. 6 is a diagram for explaining the unmoving object detection function. Note that the detection determination is performed by the first detection determination unit 108.

図4において、まず、不動体検知のために基準となる図6(a)のような画像が撮影され、これが参照画像として参照画像記憶部106に記憶される(ステップS501)。不動体検知機能は、この参照画像と、図6(b)のような新たに円筒形の物体601が監視領域内に加わったときの現在の画像(ステップS502)との比較により不動体検知(ステップS503)が行われる。不動体検知では、撮影中の現在の画像と参照画像との各画素の差分値が差分検出部107により算出される(ステップS505)。このとき、図6(c)のように、新たに加わった円筒形の物体上に差分が大きく検出される。   In FIG. 4, first, an image as shown in FIG. 6A serving as a reference for unmoving object detection is taken and stored as a reference image in the reference image storage unit 106 (step S501). The unmoving object detection function detects unmoving objects by comparing this reference image with a current image (step S502) when a new cylindrical object 601 as shown in FIG. Step S503) is performed. In the unmoving object detection, the difference detection unit 107 calculates a difference value of each pixel between the current image being captured and the reference image (step S505). At this time, as shown in FIG. 6C, a large difference is detected on the newly added cylindrical object.

算出された差分値が閾値以上に達すると、監視領域内に新たな物体601が加わったと第1の検出判定部108により判定される(ステップS506でYES)。そして、検出領域記憶部110にその画素の領域の位置(もしくは座標)を記憶し(ステップS507)、その画素ごとにタイマカウンタ部111により継続時間がカウントされる(ステップS508)。そして、所定時間経過すると、例えば検知に必要な所定時間が5分に設定されたときにカウンタの示す値が5分になると、円筒形の物体601が撮影されている画素領域が不動体として検知される(ステップS511でYES)。そして、図6(d)のように、検知通知部112によってその画素領域が不動体としてユーザに通知される(ステップS504)。   When the calculated difference value reaches or exceeds the threshold value, the first detection determination unit 108 determines that a new object 601 has been added to the monitoring area (YES in step S506). Then, the position (or coordinates) of the pixel area is stored in the detection area storage unit 110 (step S507), and the duration is counted by the timer counter unit 111 for each pixel (step S508). When a predetermined time elapses, for example, when the predetermined time required for detection is set to 5 minutes, if the value indicated by the counter becomes 5 minutes, the pixel area where the cylindrical object 601 is photographed is detected as a non-moving object. (YES in step S511). Then, as shown in FIG. 6D, the detection notification unit 112 notifies the user of the pixel area as an unmoving object (step S504).

上述した差分検出において、ノイズ等により円筒形の物体601が置かれた画素領域以外の画素領域においても差分は検出されるが、差分値が第1の閾値を超えないため、第1の検出判定部108により基準を満たしたとは判定されない。また、時系列的に連続なフレームにおいて前フレームでは、基準を満たしたと判定され、現在フレームでは基準を満たさなかったと判定された場合、前フレームで検出領域記憶部110に記憶されている画素の領域の位置はクリアされる(ステップS509)。また、タイマカウンタ部111のカウントもクリアされる(ステップS510)。そのため、移動物体などは不動体として検知されない。   In the difference detection described above, a difference is detected in a pixel area other than the pixel area where the cylindrical object 601 is placed due to noise or the like, but the difference value does not exceed the first threshold value. The unit 108 does not determine that the standard is satisfied. In addition, when it is determined that the reference is satisfied in the previous frame in the continuous frames in time series, and it is determined that the reference is not satisfied in the current frame, the pixel area stored in the detection area storage unit 110 in the previous frame The position of is cleared (step S509). Also, the count of the timer counter unit 111 is cleared (step S510). Therefore, a moving object or the like is not detected as a non-moving object.

上述した不動体検知では、第1の検出判定部108および第2の検出判定部109は、画素ごとに判定しているが、この限りではなく、画像を複数の隣接する画素から成るブロックに分割し、そのブロックごとに判定を行ってもよい。また、画素値の差分に基づき変化を検出しているが、この限りではなく、画像のエッジ成分の変化から検出する方法やJPEG符号化ブロック単位でのDCT係数の差分値から検出する方法などでも実施可能である。   In the above-described unmoving object detection, the first detection determination unit 108 and the second detection determination unit 109 perform determination for each pixel. However, the present invention is not limited to this, and the image is divided into blocks composed of a plurality of adjacent pixels. However, the determination may be performed for each block. In addition, the change is detected based on the difference between the pixel values. However, the present invention is not limited to this, and a method of detecting from a change in the edge component of the image or a method of detecting from the difference value of the DCT coefficient in units of JPEG coding blocks. It can be implemented.

次に、オートデイナイト機能および不動体検知機能が同時に機能した場合の動作について説明する。このとき、オートデイナイト機能による撮影モードの切り換え前に、検出領域記憶部110に記憶されている画素の領域の位置がある場合とない場合とに場合分けができる。   Next, the operation when the auto day / night function and the unmoving object detection function function simultaneously will be described. At this time, before and after the shooting mode is switched by the automatic day / night function, it is possible to distinguish between cases where there is a pixel area position stored in the detection area storage unit 110 and cases where there is no pixel area position.

まず、検出領域記憶部110に記憶されている画素の領域の位置がない状態でオートデイナイト機能による撮影モードの切り換えが発生した場合の処理について図7〜図9を用いて説明する。   First, processing when switching of the shooting mode by the automatic day / night function occurs in a state where there is no pixel area position stored in the detection area storage unit 110 will be described with reference to FIGS.

図7は、検出領域記憶部110に記憶されている画素の領域の位置がない状態で撮影モードの切り換えが実行されたときの処理を示すフローチャートである。図8は、図7の処理において撮影された画像の一例を示す図であり、(a)は切り換え前の参照画像、(b)は切り換え後の現在の画像、(c)はそれらの差分画像である。図9は、従来の検出領域記憶部110に記憶されている画素の領域の位置がない状態で撮影モードの切り換えが実行されたときに撮影される画像の一例を示す図であり、(a)は切り換え前の参照画像、(b)は切り換え後の現在の画像、(c)はそれらの差分画像である。   FIG. 7 is a flowchart showing processing when switching of the shooting mode is executed in a state where there is no position of the pixel area stored in the detection area storage unit 110. FIG. 8 is a diagram illustrating an example of an image captured in the process of FIG. 7, where (a) is a reference image before switching, (b) is a current image after switching, and (c) is a difference image thereof. It is. FIG. 9 is a diagram illustrating an example of an image captured when switching of the imaging mode is performed in a state where there is no pixel area position stored in the conventional detection area storage unit 110. Is a reference image before switching, (b) is a current image after switching, and (c) is a difference image thereof.

従来、検出領域記憶部110に記憶されている画素の領域の位置がない状態でオートデイナイト機能による撮影モードの切り換えが発生した場合、図9(a)のような切り換え前の参照画像と図9(b)のような切り換え後の画像との各画素の輝度値は大きく異なる。そのため、図9(c)のように画像全体に大きな差分が検出され、監視領域全体を不動体として誤検知してしまう。   Conventionally, when the shooting mode is switched by the automatic day / night function in the state where the pixel area stored in the detection area storage unit 110 is not located, the reference image before switching as shown in FIG. The luminance value of each pixel is greatly different from the image after switching as in (b). For this reason, a large difference is detected in the entire image as shown in FIG. 9C, and the entire monitoring area is erroneously detected as an unmoving object.

そこで、本実施の形態では、オートデイナイト機能による撮影モードの切り換えが発生したとき(ステップS701でYES)、不動体検知機能を一時停止し(ステップS702)、参照画像を更新する(ステップS703)。その後、不動体検知機能を再開する(ステップS704)。これにより、図8(a)のような参照画像が記憶され、監視領域内に変化が起きなければ図8(b)のような現在の画像と図8(a)に示す参照画像となる。図8(b)に示す現在の画像と図8(a)に示す参照画像との差分は、図8(c)が示すようになり、不動体として検出されない。つまり、不動体検知機能動作中にオートデイナイト機能による撮影モードの切り換えが発生した場合に、監視領域全体を不動体として誤検知するという問題は解消される。   Therefore, in this embodiment, when the shooting mode is switched by the auto day / night function (YES in step S701), the unmoving object detection function is temporarily stopped (step S702), and the reference image is updated (step S703). Thereafter, the unmoving object detection function is resumed (step S704). As a result, the reference image as shown in FIG. 8A is stored, and if there is no change in the monitoring area, the current image as shown in FIG. 8B and the reference image shown in FIG. The difference between the current image shown in FIG. 8B and the reference image shown in FIG. 8A is as shown in FIG. 8C and is not detected as an unmoving object. That is, the problem of erroneously detecting the entire monitoring area as an unmoving object when the shooting mode is switched by the auto day / night function during the unmoving object detecting function is solved.

次に、検出領域記憶部110に記憶されている画素の領域の位置がある状態でオートデイナイト機能による撮影モードの切り換えが発生した場合の処理について図10〜図12を用いて説明する。   Next, processing when switching of the shooting mode by the automatic day / night function occurs in a state where the position of the pixel area stored in the detection area storage unit 110 is present will be described with reference to FIGS.

図10は、検出領域記憶部110に記憶されている画素の領域の位置がある状態で撮影モードの切り換えが実行されたときの処理を示すフローチャートである。図11は、図10の処理において撮影された画像の一例を示す図であり、(a)は切り換え前の参照画像、(b)は切り換え後の現在の画像、(c)はそれらの差分画像である。図12は、従来の検出領域記憶部110に記憶されている画素の領域の位置がある状態で撮影モードの切り換えが実行されたときに撮影される画像の一例を示す図であり、(a)は切り換え前の参照画像、(b)は切り換え後の現在の画像、(c)はそれらの差分画像である。   FIG. 10 is a flowchart showing processing when switching of the shooting mode is executed in a state where the position of the pixel area stored in the detection area storage unit 110 is present. FIG. 11 is a diagram illustrating an example of an image captured in the process of FIG. 10, where (a) is a reference image before switching, (b) is a current image after switching, and (c) is a difference image thereof. It is. FIG. 12 is a diagram illustrating an example of an image that is captured when switching of the photographing mode is performed in a state where the position of the pixel region stored in the conventional detection region storage unit 110 is present. Is a reference image before switching, (b) is a current image after switching, and (c) is a difference image thereof.

従来、検出領域記憶部110に記憶されている画素の領域の位置がある状態でオートデイナイト機能による撮影モードの切り換えが発生した場合、不動体と成り得る物体が監視領域の一部分に存在しているにもかかわらず、画像全体に差異が検出される。つまり、参照画像記憶部106に図12(a)のような参照画像が記憶されており、円筒形の物体が監視領域内に加わり、その後、撮影モードの切り換えが実行された場合、図12(b)のような現在の画像が得られる。このときの現在の画像と参照画像との差分画像は図12(c)のようになり、不動体と成り得る円筒形の領域が特定できない。そのため、不動体と成り得る物体を正常に検知できないという問題がある。また、上述したように、撮影モードの切り換え後に参照画像を更新するだけでは、不動体と成り得る円筒形の領域に変化が検出されず、不動体として検出できなくなる。   Conventionally, when switching of the shooting mode by the automatic day / night function occurs in a state where the pixel area stored in the detection area storage unit 110 exists, an object that can be a non-moving object exists in a part of the monitoring area. Nevertheless, a difference is detected in the entire image. That is, when the reference image as illustrated in FIG. 12A is stored in the reference image storage unit 106, a cylindrical object is added to the monitoring area, and then switching of the shooting mode is executed (see FIG. 12). A current image such as b) is obtained. The difference image between the current image and the reference image at this time is as shown in FIG. 12C, and a cylindrical region that can be a non-moving object cannot be specified. Therefore, there is a problem that an object that can be a non-moving object cannot be normally detected. Further, as described above, if only the reference image is updated after the shooting mode is switched, no change is detected in the cylindrical region that can be a non-moving object, and it cannot be detected as a non-moving object.

そこで、本実施の形態では、オートデイナイト機能による撮影モードの切り換えが発生したとき(ステップS901でYES)、不動体検知機能を一時停止する(ステップS902)。そして、参照画像の更新(ステップS903)および検出判定基準の切り換え(ステップS904)を行い、その後、不動体検知機能を再開する(ステップS905)。不動体検知機能の一時停止前に検出領域記憶部110とタイマカウンタ部111の状態の保存が行われる。検出判定基準の切り換えとは、検出領域記憶部110に記憶されていない位置の画素は第1の検出判定部108により処理され、検出領域記憶部110に記憶されている位置の画素は第2の検出判定部109により処理されることを示す。   Therefore, in this embodiment, when the shooting mode is switched by the auto day / night function (YES in step S901), the unmoving object detection function is temporarily stopped (step S902). Then, the reference image is updated (step S903) and the detection criterion is switched (step S904), and then the unmoving object detection function is resumed (step S905). The states of the detection area storage unit 110 and the timer counter unit 111 are saved before the unmoving object detection function is temporarily stopped. The switching of the detection determination criteria means that a pixel at a position not stored in the detection area storage unit 110 is processed by the first detection determination unit 108, and a pixel at a position stored in the detection area storage unit 110 is a second pixel. It shows that it is processed by the detection determination unit 109.

図13は、上述した検出判定基準の切り換えによる各画素における検出処理を示すフローチャートである。   FIG. 13 is a flowchart showing a detection process in each pixel by switching the detection criterion described above.

オートデイナイト機能による撮影モードの切り換え前は、第1の検出判定部108に基づき参照画像と現在の画像との各画素の差分値が第1の閾値以上の場合、基準を満たしたと判定される。そして、それらの画素が不動体検知候補画素として検出領域記憶部110に記憶され、タイマカウンタ部111のカウントがインクリメントされる。それら以外の画素に対しては、検出領域記憶部110に記憶された画素(の座標)がクリアされ、タイマカウンタ部111のカウンタはリセットされる。   Prior to switching of the shooting mode by the auto day / night function, based on the first detection determination unit 108, if the difference value of each pixel between the reference image and the current image is greater than or equal to the first threshold value, it is determined that the criterion is satisfied. These pixels are stored in the detection area storage unit 110 as unmoving object detection candidate pixels, and the count of the timer counter unit 111 is incremented. For the other pixels, the pixels (coordinates) stored in the detection area storage unit 110 are cleared, and the counter of the timer counter unit 111 is reset.

オートデイナイト機能による撮影モードの切り換え後、参照画像を更新し、不動体検知処理が再開される。このとき、撮影モード切り換え前に検出領域記憶部110に記憶されている画素(領域)の位置(もしくは座標)を判定し(ステップS1001)、その結果に基づき、第1の検出判定部108による判定または第2の検出判定部109による判定を行う撮影モード切り換え前に検出領域記憶部110に記憶されている位置(もしくは座標)の画素(領域)に対しては(ステップS1001でYES)、第2の検出判定部109により判定が行われる。一方、撮影モード切り換え前に検出領域記憶部110に記憶されていない位置(もしくは座標)の画素に対しては(ステップS1001でNO)、第1の検出判定部108により判定が行われる。   After the shooting mode is switched by the auto day / night function, the reference image is updated and the unmoving object detection process is resumed. At this time, the position (or coordinates) of the pixel (area) stored in the detection area storage section 110 is determined before the shooting mode is switched (step S1001), and the determination by the first detection determination section 108 based on the result. Alternatively, for the pixel (region) at the position (or coordinate) stored in the detection region storage unit 110 before switching the shooting mode for performing the determination by the second detection determination unit 109 (YES in step S1001), the second The determination is performed by the detection determination unit 109. On the other hand, for a pixel at a position (or coordinate) that is not stored in the detection area storage unit 110 before switching to the shooting mode (NO in step S1001), the first detection determination unit 108 makes a determination.

検出領域記憶部110により記憶されている画素、すなわち不動体検知候補の画素に対しては、更新された参照画像と現在の画像との差分値が第2の閾値以下であれば(ステップS1002でYES)、基準を満たしたと判定される。つまり、物体が移動していないとみなし、検出領域記憶部110に記憶され(ステップS1004)、タイマカウンタ部111のカウントがインクリメントされ、継続時間がカウントされる(ステップS1005)。   If the difference value between the updated reference image and the current image is less than or equal to the second threshold value for the pixel stored in the detection area storage unit 110, that is, the non-moving object detection candidate pixel (in step S1002). YES), it is determined that the standard is satisfied. That is, the object is regarded as not moving, and is stored in the detection area storage unit 110 (step S1004), the count of the timer counter unit 111 is incremented, and the duration is counted (step S1005).

一方、第2の閾値以上の場合は(ステップS1002でNO)、基準を満たさなかったと判定される。つまり、物体が移動したとみなし、検出領域記憶部110のメモリはクリアされ(ステップS1006)、タイマカウンタ部111のカウントがリセットされる(ステップS1007)。   On the other hand, if it is equal to or greater than the second threshold (NO in step S1002), it is determined that the criterion has not been met. That is, it is considered that the object has moved, the memory of the detection area storage unit 110 is cleared (step S1006), and the count of the timer counter unit 111 is reset (step S1007).

撮影モードの切り換え前に検出領域記憶部110に記憶されていない画素に対しては、差分値が第1の閾値以上であれば(ステップS1003でYES)、新たな物体が加わったとして、検出領域記憶部110に新たな領域が記憶される(ステップS1008)。そして、タイマカウンタ部111のカウントが開始される(ステップS1009)。   For pixels that are not stored in the detection area storage unit 110 before switching of the shooting mode, if the difference value is equal to or greater than the first threshold (YES in step S1003), it is determined that a new object has been added and the detection area A new area is stored in the storage unit 110 (step S1008). Then, the timer counter unit 111 starts counting (step S1009).

一方、第1の閾値以下の場合(ステップS1003でNO)、撮影モードの切り換え前と変化がないと判定され、特に処理は行なわれない。   On the other hand, if it is equal to or less than the first threshold (NO in step S1003), it is determined that there is no change from before the shooting mode is switched, and no particular processing is performed.

上記実施形態によれば、オートデイナイト機能により撮影モードが切り換えられたときは、参照画像記憶部106に記憶された参照画像の更新を行う。そして、検出領域記憶部110に記憶されている画素の領域の位置(もしくは座標)に応じて、第1の検出判定部108または第2の検出判定部109による判定を切り換える。これにより、不動体検知動作中に画像全体の輝度や色を変化させるオートデイナイト機能が働いても画像全体を不動体として誤検知することなく、正常に不動体検知を行うことができる。   According to the above embodiment, when the shooting mode is switched by the automatic day / night function, the reference image stored in the reference image storage unit 106 is updated. Then, the determination by the first detection determination unit 108 or the second detection determination unit 109 is switched according to the position (or coordinates) of the pixel region stored in the detection region storage unit 110. As a result, even if an automatic day / night function that changes the brightness and color of the entire image is activated during the unmoving object detection operation, the unmoving object can be normally detected without erroneously detecting the entire image as an unmoving object.

また、不動体検知機能の継続時間カウント中に撮影モードの切り換えが行われた場合に、不動体と成り得る物体の領域が特定できないという問題も生じず、正常に不動体を検知することができる。つまり、画面全体の輝度や色が変化する撮影モードの切り換えの有無に依らず、正常に不動体検知機能を実行させることができる。   In addition, when the shooting mode is switched during the duration of the non-moving object detection function, there is no problem that the area of the object that can be a non-moving object cannot be specified, and the non-moving object can be detected normally. . That is, the non-moving object detection function can be normally executed regardless of whether or not the shooting mode is changed in which the luminance and color of the entire screen changes.

上記実施の形態では、不動体検知動作中にオートデイナイト機能による撮影モードの切り換えが発生したときの処理を、撮影モード切り換え前に検出領域記憶部110に記憶されている画素領域がある場合とない場合とに分けて説明した。しかし、どちらの場合においても同一の枠組で実施可能である。これは、撮影モードの切り換えが発生後、切り換え前に記憶されていない領域に対しては、通常時に利用される第1の検出判定部108により処理され、切り換え前に記憶されている領域に対してのみ、第2の検出判定部109により処理されるためである。   In the above embodiment, the processing when the shooting mode is switched by the auto day / night function during the unmoving object detection operation is not the case where there is a pixel area stored in the detection area storage unit 110 before the shooting mode switching. The explanation was divided into cases. However, in either case, it can be implemented with the same framework. This is because areas that are not stored before switching after the shooting mode switching is processed by the first detection determination unit 108 that is used during normal times, and areas that are stored before switching are processed. This is because the second detection determination unit 109 performs processing.

上記実施形態において、撮影モード切り換え後の参照画像の更新は、撮影モードの切り換え直後ではなく、画像全体の輝度値が安定した後に実行されるものとする。この撮影モードの切り換え後から、参照画像の更新までの期間は、タイマカウンタ部111のカウントは維持され、参照画像の更新後、停止前の状態を継続して再開される。   In the above-described embodiment, it is assumed that the update of the reference image after the switching of the shooting mode is performed not after the switching of the shooting mode but after the luminance value of the entire image is stabilized. During the period from the switching of the shooting mode to the update of the reference image, the count of the timer counter unit 111 is maintained, and after the update of the reference image, the state before the stop is continued and restarted.

また、上記実施の形態では、不動体検知中にオートデイナイト機能により撮影モードの切り換えが動作した場合の例を示した。しかしながら、オートデイナイト機能のみではなく、撮影モードの変化により画面全体の輝度や色情報が変化する場合にも、同様の処理を行うものとする。撮影モードの変化として、オートシェイド補正やフォーカス、感度、ホワイトバランス、ゲインを含む撮像パラメータの変化などが挙げられ、本発明を実施可能である。例えば、通常のゲイン特性において画像を撮影するモード1と、暗い部分のみのゲインを高くした画像を撮影するモード2とを切り換えるようにしてもよい。なお、撮像パラメータについては、ユーザの指示により変化させるようにしてもよい。   In the above-described embodiment, an example in which the shooting mode is switched by the automatic day / night function during the unmoving object detection is shown. However, not only the auto day / night function but also the same processing is performed when the luminance and color information of the entire screen changes due to a change in the shooting mode. Examples of changes in the shooting mode include changes in imaging parameters including auto-shade correction, focus, sensitivity, white balance, and gain, and the present invention can be implemented. For example, mode 1 in which an image is captured with normal gain characteristics may be switched to mode 2 in which an image in which only a dark portion has a high gain is captured. Note that the imaging parameters may be changed according to a user instruction.

また、上記実施の形態では、撮影モードの切り換えとして、赤外線フィルタの取り付け状態または取り外し状態のいずれかに切り換えていたが、これに限定されず、2つ以上備える撮像素子の構成を切り換えるようにしてもよい。   In the above embodiment, the photographing mode is switched to either the attached state or the detached state of the infrared filter. However, the present invention is not limited to this, and the configuration of the image sensor including two or more is switched. Also good.

また、本発明の目的は、以下の処理を実行することによっても達成される。即ち、上述した実施形態の機能を実現するソフトウェアのプログラムコードを記憶した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出す処理である。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコードおよび該プログラムコードを記憶した記憶媒体は本発明を構成することになる。   The object of the present invention can also be achieved by executing the following processing. That is, a storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus is stored in the storage medium. This is the process of reading the code. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the program code and the storage medium storing the program code constitute the present invention.

また、プログラムコードを供給するための記憶媒体としては、次のものを用いることができる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROM等である。または、プログラムコードをネットワークを介してダウンロードしてもよい。   Moreover, the following can be used as a storage medium for supplying the program code. For example, floppy (registered trademark) disk, hard disk, magneto-optical disk, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW, magnetic tape, nonvolatile memory card, ROM or the like. Alternatively, the program code may be downloaded via a network.

また、コンピュータが読み出したプログラムコードを実行することにより、上記実施の形態の機能が実現される場合も本発明に含まれる。加えて、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。   Further, the present invention includes a case where the function of the above embodiment is realized by executing the program code read by the computer. In addition, an OS (operating system) running on the computer performs part or all of the actual processing based on an instruction of the program code, and the functions of the above-described embodiments are realized by the processing. Is also included.

更に、前述した実施形態の機能が以下の処理によって実現される場合も本発明に含まれる。即ち、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う場合である。   Furthermore, a case where the functions of the above-described embodiment are realized by the following processing is also included in the present invention. That is, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing.

本発明の実施形態に係る撮像装置におけるオートデイナイト機能に関する構成部分を示すブロック図である。It is a block diagram which shows the component regarding the automatic day / night function in the imaging device which concerns on embodiment of this invention. オートデイナイト機能による動作を示すフローチャートであり、(a)はデイモード時、(b)はナイトモード時である。It is a flowchart which shows the operation | movement by an auto day / night function, (a) is at the time of a day mode, (b) is at the time of a night mode. 時間経過に対する被写体からの入射光量の変化を示すグラフである。It is a graph which shows the change of the incident light quantity from a to-be-photographed object over time. 不動体検知機能による不動体検知処理を示すフローチャートである。It is a flowchart which shows the unmoving object detection process by an unmoving object detection function. 図4のステップS503における画素ごとの不動体検知処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the unmoving object detection process for every pixel in step S503 of FIG. 不動体検知機能を説明するための図であり、(a)は参照画像、(b)は現在の画像、(c)は差分画像、(d)は不動体検出時の画像である。It is a figure for demonstrating a non-moving object detection function, (a) is a reference image, (b) is a present image, (c) is a difference image, (d) is an image at the time of a non-moving object detection. 検出領域記憶部に記憶されている画素領域がない状態で撮影モードの切り換えが実行されたときの処理を示すフローチャートである。It is a flowchart which shows a process when switching of imaging | photography mode is performed in the state without the pixel area memorize | stored in the detection area memory | storage part. 図7の処理において撮影された画像の一例を示す図であり、(a)は切り換え前の参照画像、(b)は切り換え後の現在の画像、(c)はそれらの差分画像である。FIG. 8 is a diagram illustrating an example of an image captured in the process of FIG. 7, where (a) is a reference image before switching, (b) is a current image after switching, and (c) is a difference image thereof. 従来の検出領域記憶部110に記憶されている画素領域がない状態で撮影モードの切り換えが実行されたときに撮影される画像の一例を示す図であり、(a)は切り換え前の参照画像、(b)は切り換え後の現在の画像、(c)はそれらの差分画像である。It is a figure which shows an example of the image image | photographed when switching of imaging | photography mode is performed in the state without the pixel area memorize | stored in the conventional detection area memory | storage part 110, (a) is a reference image before switching, (B) is the current image after switching, and (c) is the difference image between them. 検出領域記憶部110に記憶されている画素領域がある状態で撮影モードの切り換えが実行されたときの処理を示すフローチャートである。7 is a flowchart illustrating processing when switching of a shooting mode is performed in a state where there is a pixel region stored in a detection region storage unit 110. 図10の処理において撮影された画像の一例を示す図であり、(a)は切り換え前の参照画像、(b)は切り換え後の現在の画像、(c)はそれらの差分画像である。It is a figure which shows an example of the image image | photographed in the process of FIG. 10, (a) is the reference image before switching, (b) is the present image after switching, (c) is those difference images. 従来の検出領域記憶部110に記憶されている画素領域がある状態で撮影モードの切り換えが実行されたときに撮影される画像の一例を示す図であり、(a)は切り換え前の参照画像、(b)は切り換え後の現在の画像、(c)はそれらの差分画像である。It is a figure which shows an example of the image image | photographed when switching of imaging | photography mode is performed in the state with the pixel area memorize | stored in the conventional detection area memory | storage part 110, (a) is a reference image before switching, (B) is the current image after switching, and (c) is the difference image between them. 検出判定基準の切り換えによる各画素における検出処理を示すフローチャートである。It is a flowchart which shows the detection process in each pixel by switching of a detection criterion.

符号の説明Explanation of symbols

101 レンズ
102 赤外線カットフィルタ
103 CCD
104 画像信号処理部
105 撮影モード切換部
106 参照画像記憶部
107 差分検出部
108 第1の検出判定部
109 第2の検出判定部
110 検出領域記憶部
111 タイマカウンタ部
112 検知通知部
301 デイモード期間
302 ナイトモード期間
303 デイモード期間
101 Lens 102 Infrared cut filter 103 CCD
104 Image signal processing unit 105 Shooting mode switching unit 106 Reference image storage unit 107 Difference detection unit 108 First detection determination unit 109 Second detection determination unit 110 Detection area storage unit 111 Timer counter unit 112 Detection notification unit 301 Day mode period 302 Night mode period 303 Day mode period

Claims (16)

撮影中の映像から基準となる参照画像を記憶する画像記憶手段と、
前記記憶された参照画像と撮影中の現在の画像との画素ごとの差分値を算出する差分検出手段と、
前記算出された差分値が第1の閾値よりも大きい場合に基準を満たしたと判定する第1の検出判定手段と、
前記算出された差分値が第2の閾値よりも小さい場合に基準を満たしたと判定する第2の検出判定手段と、
前記第1の検出判定手段または前記第2の検出判定手段のいずれかにより前記基準を満たすと判定された画素の領域の位置を記憶する領域記憶手段と、
撮影モードを切り換える切換手段と、
前記切換手段により前記撮影モードが切り換えられたときは、前記画像記憶手段に記憶された参照画像の更新を行い、前記領域記憶手段に記憶されている画素の領域の位置に応じて、前記第1の検出判定手段または前記第2の検出判定手段による判定を切り換える制御手段とを備えることを特徴とする撮像装置。
Image storage means for storing a reference image serving as a reference from a video being shot;
Difference detection means for calculating a difference value for each pixel between the stored reference image and the current image being shot;
First detection determination means for determining that the criterion is satisfied when the calculated difference value is greater than a first threshold;
A second detection determination unit that determines that the criterion is satisfied when the calculated difference value is smaller than a second threshold;
Area storage means for storing the position of the area of the pixel determined to satisfy the criterion by either the first detection determination means or the second detection determination means;
Switching means for switching the shooting mode;
When the photographing mode is switched by the switching unit, the reference image stored in the image storage unit is updated, and the first image is stored according to the position of the pixel region stored in the region storage unit. An image pickup apparatus comprising: a detection determination unit or a control unit that switches determination by the second detection determination unit.
前記制御手段は、前記領域記憶手段に記憶されている位置の画素に対しては、前記第2の検出判定手段による判定に切り換える一方、前記領域記憶手段に記憶されていない位置の画素に対しては、前記第1の検出判定手段による判定に切り換えることを特徴とする請求項1記載の撮像装置。   The control means switches the pixel at the position stored in the area storage means to the determination by the second detection determination means, while the pixel at a position not stored in the area storage means. 2. The imaging apparatus according to claim 1, wherein switching to determination by the first detection determination unit is performed. 前記切換手段は、可視光領域のみの入射光で撮影する第1の撮影モードと、赤外光領域を含む入射光で撮影する第2の撮影モードとを切り換えることを特徴とする請求項1または2記載の撮影装置。   2. The switching unit according to claim 1, wherein the switching unit switches between a first photographing mode for photographing with incident light in only a visible light region and a second photographing mode for photographing with incident light including an infrared light region. 2. The photographing apparatus according to 2. 前記切換手段は、通常のゲインで撮影する第1の撮影モードと、暗い部分のみをゲインを高くして撮影する第2の撮影モードとを切り換えることを特徴とする請求項1または2記載の撮影装置。   3. The photographing according to claim 1, wherein the switching means switches between a first photographing mode for photographing with a normal gain and a second photographing mode for photographing only a dark part with a gain increased. apparatus. 前記切換手段は、複数の状態のいずれかまたは複数の構成のいずれかに切り換えることで前記撮影モードを切り換えることを特徴とする請求項1または2記載の撮像装置。   The imaging apparatus according to claim 1, wherein the switching unit switches the photographing mode by switching to any one of a plurality of states or a plurality of configurations. 前記切換手段は、ホワイトバランス、フォーカス、ゲイン、感度を含む撮像パラメータを自動またはユーザの指示により切り換えることを特徴とする請求項1または2記載の撮像装置。   The imaging apparatus according to claim 1, wherein the switching unit switches imaging parameters including white balance, focus, gain, and sensitivity automatically or according to a user instruction. 前記第1の検出判定手段または前記第2の検出判定手段により前記基準を満たすと判定された時間が所定時間経過した場合にユーザに通知する通知手段をさらに備えることを特徴とする請求項1乃至6のいずれか1項に記載の撮像装置。   The information processing apparatus according to claim 1, further comprising notification means for notifying a user when a time determined by the first detection determination means or the second detection determination means to satisfy the reference has elapsed for a predetermined time. The imaging device according to any one of 6. 前記差分検出手段、前記第1の検出判定手段、前記第2の検出判定手段、および前記領域記憶手段は不動体検知機能を構成し、
前記切換手段により撮影モードが切り換えられた場合、前記撮影モードの切り換え直後から前記参照画像の更新までの期間は前記不動体検知機能を停止し、前記参照画像が更新された後、前記不動体検知機能を再開することを特徴とする請求項1乃至7のいずれか1項に記載の撮像装置。
The difference detection means, the first detection determination means, the second detection determination means, and the area storage means constitute an unmoving object detection function,
When the shooting mode is switched by the switching unit, the non-moving object detection function is stopped during a period from immediately after the switching of the shooting mode to the update of the reference image, and after the reference image is updated, the unmoving object detection is performed. The imaging apparatus according to any one of claims 1 to 7, wherein the function is resumed.
前記差分検出手段とは、前記参照画像と前記現在の画像との輝度値から前記差分を算出することを特徴とする請求項1乃至8のいずれか1項に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the difference detection unit calculates the difference from a luminance value between the reference image and the current image. 前記差分検出手段とは、参照画像と現在の画像とのエッジ成分から算出することを特徴とする請求項1乃至8のいずれか1項に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the difference detection unit is calculated from an edge component between a reference image and a current image. 前記第1の検出判定手段または前記第2の検出判定手段により前記基準を満たすと判定された場合、前記領域記憶手段は、前記差分値が前記基準を満たす画素の領域の位置を記憶することを特徴とする請求項1乃至10のいずれか1項に記載の撮像装置。   When it is determined by the first detection determination unit or the second detection determination unit that the reference is satisfied, the region storage unit stores a position of a pixel region where the difference value satisfies the reference. The imaging device according to any one of claims 1 to 10, wherein the imaging device is characterized in that: 前記第1の検出判定手段または前記第2の検出判定手段により前記基準を満たしていないと判定された場合、前記領域記憶手段は、前記記憶されている画素の領域の位置をクリアすることを特徴とする請求項1乃至11のいずれか1項に記載の撮像装置。   When the first detection determination unit or the second detection determination unit determines that the reference is not satisfied, the region storage unit clears the position of the stored pixel region. The imaging device according to any one of claims 1 to 11. 前記第1の検出判定手段および前記第2の検出判定手段は、画素ごとまたは複数の隣接する画素から成るブロックごとに判定することを特徴とする請求項1記載の撮像装置。   The imaging apparatus according to claim 1, wherein the first detection determination unit and the second detection determination unit perform determination for each pixel or for each block including a plurality of adjacent pixels. 前記領域記憶手段は、画素ごとまたは複数の隣接する画素からなるブロックごとに記憶することを特徴とする請求項13記載の撮像装置。   The imaging device according to claim 13, wherein the area storage unit stores each pixel or each block including a plurality of adjacent pixels. 前記切り換え後の参照画像の更新は、画像全体の輝度値が安定した後に実行されることを特徴とする請求項1乃至14のいずれか1項に記載の撮像装置。   15. The imaging apparatus according to claim 1, wherein the updating of the reference image after switching is executed after the luminance value of the entire image is stabilized. 撮影中の映像から基準となる参照画像を記憶する画像記憶手段と、
前記記憶された参照画像と撮影中の現在の画像との画素ごとの差分値を算出する差分検出手段と、
前記算出された差分値が第1の閾値よりも大きい場合に基準を満たしたと判定する第1の検出判定手段と、
前記算出された差分値が第2の閾値よりも小さい場合に基準を満たしたと判定する第2の検出判定手段と、
前記第1の検出判定手段または前記第2の検出判定手段のいずれかにより前記基準を満たすと判定された画素の領域の位置を記憶する領域記憶手段とを備える撮像装置の制御方法であって、
撮影モードを切り換える切換工程と、
前記切換工程にて前記撮影モードが切り換えられたときは、前記画像記憶手段に記憶された参照画像の更新を行い、前記領域記憶手段に記憶されている画素の領域の位置に応じて、前記第1の検出判定手段または前記第2の検出判定手段による判定を切り換える制御工程とを備えることを特徴とする制御方法。
Image storage means for storing a reference image serving as a reference from a video being shot;
Difference detection means for calculating a difference value for each pixel between the stored reference image and the current image being shot;
First detection determination means for determining that the criterion is satisfied when the calculated difference value is greater than a first threshold;
A second detection determination unit that determines that the criterion is satisfied when the calculated difference value is smaller than a second threshold;
A method for controlling an imaging apparatus comprising: a region storage unit that stores a position of a region of a pixel determined to satisfy the reference by either the first detection determination unit or the second detection determination unit,
A switching process for switching the shooting mode;
When the photographing mode is switched in the switching step, the reference image stored in the image storage unit is updated, and the first image is updated according to the position of the pixel region stored in the region storage unit. And a control step of switching judgment by the first detection judgment means or the second detection judgment means.
JP2008212038A 2008-08-20 2008-08-20 Imaging apparatus and control method thereof Expired - Fee Related JP5075058B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008212038A JP5075058B2 (en) 2008-08-20 2008-08-20 Imaging apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008212038A JP5075058B2 (en) 2008-08-20 2008-08-20 Imaging apparatus and control method thereof

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2012183267A Division JP5372229B2 (en) 2012-08-22 2012-08-22 IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM

Publications (2)

Publication Number Publication Date
JP2010050637A true JP2010050637A (en) 2010-03-04
JP5075058B2 JP5075058B2 (en) 2012-11-14

Family

ID=42067381

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008212038A Expired - Fee Related JP5075058B2 (en) 2008-08-20 2008-08-20 Imaging apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP5075058B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015139165A (en) * 2014-01-23 2015-07-30 キヤノン株式会社 Image processing system, control method of the same, and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007158820A (en) * 2005-12-06 2007-06-21 Fujitsu Ten Ltd Photographing control device
JP2008005399A (en) * 2006-06-26 2008-01-10 Matsushita Electric Ind Co Ltd Device and method for detecting a neglected object
JP2008046017A (en) * 2006-08-17 2008-02-28 Nohmi Bosai Ltd Smoke detector

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007158820A (en) * 2005-12-06 2007-06-21 Fujitsu Ten Ltd Photographing control device
JP2008005399A (en) * 2006-06-26 2008-01-10 Matsushita Electric Ind Co Ltd Device and method for detecting a neglected object
JP2008046017A (en) * 2006-08-17 2008-02-28 Nohmi Bosai Ltd Smoke detector

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015139165A (en) * 2014-01-23 2015-07-30 キヤノン株式会社 Image processing system, control method of the same, and program

Also Published As

Publication number Publication date
JP5075058B2 (en) 2012-11-14

Similar Documents

Publication Publication Date Title
EP2211306B1 (en) Imaging apparatus, subject tracking method and storage medium
US10115178B2 (en) Image processing apparatus, image capturing apparatus, image processing method, and storage medium
JP5004972B2 (en) Digital image foreground or background segmentation
JP5400195B2 (en) Method and camera for determining image adjustment parameters
KR100698483B1 (en) Image capture apparatus and control method therefor
KR102207939B1 (en) Defog system and method
US20100201880A1 (en) Shot size identifying apparatus and method, electronic apparatus, and computer program
JP2009159554A (en) Imaging device and program
JP2008199442A (en) Motion detection device, motion detection method, imaging apparatus and monitoring system
JP6944272B2 (en) Motion detector and its control method
JP2013097082A (en) Image signal processing device
JP2007150993A (en) Imaging apparatus and imaging apparatus with interval imaging function
JP2007208743A (en) Imaging apparatus, control method thereof and computer program
JP2010074815A (en) Image processing apparatus, image processing method, and, program
US20110102454A1 (en) Image processing device, image processing method, image processing program, and imaging device
US9357124B2 (en) Focusing control device and controlling method of the same
JP2010113129A (en) Image tracking device, focusing device, and image capturing apparatus
JP5075058B2 (en) Imaging apparatus and control method thereof
JP5372229B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP5173858B2 (en) Moving image processing apparatus, moving image processing method, program, and storage medium
JP2014216832A (en) Imaging device
KR101720775B1 (en) Photoghraphing apparatus and method
JP2008209650A (en) Imaging apparatus and control method for imaging apparatus
JP2008236676A (en) Photographing system and photographing method
KR101441105B1 (en) Apparatus method for setting region of interest

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110801

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120719

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120824

R151 Written notification of patent or utility model registration

Ref document number: 5075058

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150831

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees