JP2010050637A - Imaging apparatus and its control method - Google Patents
Imaging apparatus and its control method Download PDFInfo
- 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
Links
- 238000003384 imaging method Methods 0.000 title claims abstract description 36
- 238000000034 method Methods 0.000 title claims description 25
- 238000001514 detection method Methods 0.000 claims abstract description 174
- 230000035945 sensitivity Effects 0.000 claims description 2
- 230000010365 information processing Effects 0.000 claims 1
- 230000006870 function Effects 0.000 description 69
- 238000012544 monitoring process Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 8
- 230000007423 decrease Effects 0.000 description 4
Images
Landscapes
- Exposure Control For Cameras (AREA)
- Blocking Light For Cameras (AREA)
- Studio Devices (AREA)
Abstract
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参照)。
しかしながら、上記従来例では、不動体検知機能の動作中に画面全体の輝度や色が変化する撮影モードの切り換えが行われると、参照画像と現在の入力画像との差異部分が画像全体に検出される。特に、オートデイナイト機能の切り換えが行われると、赤外光の変化によって画像全体の輝度が著しく変化し、大きな差異部分が画像全体に検出される。そのため、不動体検知機能が、監視領域全体を不動体として誤検知してしまうという問題がある。 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.
撮像装置は、撮影された画像を基に、監視領域内に新たに加わり静止した状態の物体を画像処理により検知する不動体検知機能を備える。また、撮像装置は、赤外線カットフィルタの取り付け/取り外しを行うことにより、撮像素子への入射光量を増減させるデイモードとナイトモードからなる撮影モードを切り換えるオートデイナイト機能を備える。 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
画像の明るさに応じて可視光領域で撮影するデイモード(第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
一方、赤外光領域を含む光で撮影するナイトモード(第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
基本的なオートデイナイト機能の動作について図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
図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
図2(b)に示すように、ナイトモードの場合、画像信号処理部104がCCD103から入射光量を取得する(ステップS204)。次に、入射光量が閾値より上回ったと判定したときは(ステップS205でYES)、撮影モード切換部105により赤外線カットフィルタ102を装着させ(ステップS206)、可視光領域の光をCCD103に入力する。この結果、期間303のように、入射光量は、赤外光領域の成分だけ減少したものとなる。
As shown in FIG. 2B, in the night mode, the image
次に、基本的な不動体検知機能について説明する。 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
第1の検出判定部108では、差分値が第1の閾値よりも大きい場合に基準を満たしたと判定される。一方、第2の検出判定部109では、差分値が第2の閾値よりも小さい場合に基準を満たしたと判定される。通常の不動体検知機能では、第1の検出判定部108により判定される。第1の検出判定部108もしくは第2の検出判定部109により基準を満たしたと判定された画素の領域の位置(もしくは座標)は、検出領域記憶部110に記憶される。
The first
一方、第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
図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
図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
算出された差分値が閾値以上に達すると、監視領域内に新たな物体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
上述した差分検出において、ノイズ等により円筒形の物体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
上述した不動体検知では、第1の検出判定部108および第2の検出判定部109は、画素ごとに判定しているが、この限りではなく、画像を複数の隣接する画素から成るブロックに分割し、そのブロックごとに判定を行ってもよい。また、画素値の差分に基づき変化を検出しているが、この限りではなく、画像のエッジ成分の変化から検出する方法やJPEG符号化ブロック単位でのDCT係数の差分値から検出する方法などでも実施可能である。
In the above-described unmoving object detection, the first
次に、オートデイナイト機能および不動体検知機能が同時に機能した場合の動作について説明する。このとき、オートデイナイト機能による撮影モードの切り換え前に、検出領域記憶部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
まず、検出領域記憶部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
図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
従来、検出領域記憶部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
そこで、本実施の形態では、オートデイナイト機能による撮影モードの切り換えが発生したとき(ステップ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
図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
従来、検出領域記憶部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
そこで、本実施の形態では、オートデイナイト機能による撮影モードの切り換えが発生したとき(ステップ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
図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
オートデイナイト機能による撮影モードの切り換え後、参照画像を更新し、不動体検知処理が再開される。このとき、撮影モード切り換え前に検出領域記憶部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
検出領域記憶部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
一方、第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
撮影モードの切り換え前に検出領域記憶部110に記憶されていない画素に対しては、差分値が第1の閾値以上であれば(ステップS1003でYES)、新たな物体が加わったとして、検出領域記憶部110に新たな領域が記憶される(ステップS1008)。そして、タイマカウンタ部111のカウントが開始される(ステップS1009)。
For pixels that are not stored in the detection
一方、第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
また、不動体検知機能の継続時間カウント中に撮影モードの切り換えが行われた場合に、不動体と成り得る物体の領域が特定できないという問題も生じず、正常に不動体を検知することができる。つまり、画面全体の輝度や色が変化する撮影モードの切り換えの有無に依らず、正常に不動体検知機能を実行させることができる。 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
上記実施形態において、撮影モード切り換え後の参照画像の更新は、撮影モードの切り換え直後ではなく、画像全体の輝度値が安定した後に実行されるものとする。この撮影モードの切り換え後から、参照画像の更新までの期間は、タイマカウンタ部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.
101 レンズ
102 赤外線カットフィルタ
103 CCD
104 画像信号処理部
105 撮影モード切換部
106 参照画像記憶部
107 差分検出部
108 第1の検出判定部
109 第2の検出判定部
110 検出領域記憶部
111 タイマカウンタ部
112 検知通知部
301 デイモード期間
302 ナイトモード期間
303 デイモード期間
104 Image
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.
前記切換手段により撮影モードが切り換えられた場合、前記撮影モードの切り換え直後から前記参照画像の更新までの期間は前記不動体検知機能を停止し、前記参照画像が更新された後、前記不動体検知機能を再開することを特徴とする請求項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の閾値よりも大きい場合に基準を満たしたと判定する第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.
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)
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)
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 |
-
2008
- 2008-08-20 JP JP2008212038A patent/JP5075058B2/en not_active Expired - Fee Related
Patent Citations (3)
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)
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 |