JP2021010051A - Imaging apparatus and method for controlling the same - Google Patents

Imaging apparatus and method for controlling the same Download PDF

Info

Publication number
JP2021010051A
JP2021010051A JP2019121460A JP2019121460A JP2021010051A JP 2021010051 A JP2021010051 A JP 2021010051A JP 2019121460 A JP2019121460 A JP 2019121460A JP 2019121460 A JP2019121460 A JP 2019121460A JP 2021010051 A JP2021010051 A JP 2021010051A
Authority
JP
Japan
Prior art keywords
lighting
parameter
illumination
time
illuminance
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.)
Pending
Application number
JP2019121460A
Other languages
Japanese (ja)
Inventor
智史 芦谷
Satoshi Ashitani
智史 芦谷
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 JP2019121460A priority Critical patent/JP2021010051A/en
Publication of JP2021010051A publication Critical patent/JP2021010051A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

To make it possible, in an imaging apparatus capable of lighting control, to reduce erroneous detection in detecting a moving body.SOLUTION: An imaging apparatus comprises: imaging means; control means that controls lighting with which an area picked up by the imaging means is irradiated; and detection means that detects a moving body by analyzing an image picked up by the imaging means. When the detection means operates, the control means controls at least one of light-on and light-off of the lighting on the basis of a first parameter, and when the detection means does not operate, the control means controls at least one of light-on and light-off of the lighting on the basis of a second parameter different from the first parameter.SELECTED DRAWING: Figure 1

Description

本発明は、撮像装置およびその制御方法に関する。 The present invention relates to an image pickup apparatus and a control method thereof.

従来、ネットワークや専用線を介して、遠隔操作によりカメラを制御し、映像を監視できるネットワークカメラが知られている。ネットワークカメラには、照明を内蔵したモデルもあり、暗所撮影において照明を用いて撮像箇所(撮像領域)の光量を補い、より鮮明に被写体を捉える構成を用いる場合がある。照明は白色照明のほかに赤外光照明なども用いられる。 Conventionally, a network camera capable of remotely controlling a camera and monitoring an image via a network or a dedicated line has been known. Some network cameras have built-in lighting, and in dark places, lighting may be used to supplement the amount of light in the imaging location (imaging area) to capture the subject more clearly. Infrared lighting is used in addition to white lighting.

また、照明を内蔵していないネットワークカメラでも外部機器との接点出力端子を備えたモデルもあり、この接点出力端子に、照明機器を制御するスイッチを接続し、カメラが外部の照明機器を制御することもある。無線LANやBluetooth(登録商標)といった無線通信に対応する照明機器やカメラも増えている。カメラと照明機器とを無線で接続することにより設置自由度も広がり、カメラと照明機器とを連携したシステム構成がより簡易的に実現されていくことが予想される。 In addition, some network cameras that do not have built-in lighting have a contact output terminal with an external device, and a switch that controls the lighting device is connected to this contact output terminal so that the camera controls the external lighting device. Sometimes. The number of lighting devices and cameras that support wireless communication such as wireless LAN and Bluetooth (registered trademark) is increasing. By wirelessly connecting the camera and the lighting equipment, the degree of freedom of installation is expanded, and it is expected that the system configuration in which the camera and the lighting equipment are linked will be realized more easily.

また、カメラで撮像した画像を解析して、撮像画像中の移動物体を検知する動体検知といったインテリジェント機能と呼ばれる機能を備えるモデルも増えている。動体だけでなく被写体の種別を判別し人体を検知したり、特定の人物の顔を検知する機能を有するものもある。今後、ネットワークカメラを用いた監視システムにおいては、このようなインテリジェント機能を用いて、省力化、効率化することが望まれている。 In addition, an increasing number of models are equipped with a function called an intelligent function, such as motion detection, which analyzes an image captured by a camera and detects a moving object in the captured image. Some have a function of discriminating not only a moving object but also the type of a subject to detect a human body or detecting the face of a specific person. In the future, in a surveillance system using a network camera, it is desired to save labor and improve efficiency by using such an intelligent function.

このようなインテリジェント機能を持つカメラが撮像箇所(撮像領域)を照射する照明を制御する構成における課題として、照明変化時の画像解析への影響がある。インテリジェント機能の画像解析では、撮像画像の照明変化による輝度変化を動体と誤検知してしまう場合があるため、画像解析するうえでは、照明変化が少ない方が好ましい。一方、監視者がカメラの映像を直接確認しながら監視する状況では、監視者が見たい撮像箇所の照明が即時点灯され、素早く鮮明に撮像対象を捉えられ、また照明が不要な状況では照明を即時消灯しておく方が好ましい。また警告を意図する照明であるならば、必要な時に即時点灯された方が好ましい場合がある。 As a problem in the configuration in which a camera having such an intelligent function controls the illumination that illuminates the imaging location (imaging area), there is an influence on image analysis when the illumination changes. In the image analysis of the intelligent function, the change in brightness due to the change in illumination of the captured image may be erroneously detected as a moving object. Therefore, in the image analysis, it is preferable that the change in illumination is small. On the other hand, in a situation where the observer monitors while directly checking the image of the camera, the illumination of the imaging location that the observer wants to see is immediately turned on, the imaged object can be captured quickly and clearly, and the illumination is turned on in the situation where the illumination is unnecessary. It is preferable to turn off the light immediately. In addition, if the lighting is intended for warning, it may be preferable to turn it on immediately when necessary.

例えば、特許文献1では、暗所での移動物体の検知と検知後に移動物体を画像によって正確に目視確認できることを目的とした技術が開示されている。特許文献1では、近赤外線の照明と可視光線の照明とを有し、近赤外線照明で撮像した画像にて移動物体検知を行い、検知後に可視光線照明で照射している。 For example, Patent Document 1 discloses a technique for detecting a moving object in a dark place and for accurately visually confirming the moving object with an image after the detection. Patent Document 1 has near-infrared illumination and visible light illumination, detects moving objects with images captured by near infrared illumination, and irradiates with visible light illumination after detection.

また、特許文献2では、フレーム間差分法や背景差分法による動体検出など撮像素子からの信号の複雑な処理を行わずに簡単に動体検出することを目的とした技術が開示されている。特許文献2では、撮像素子の駆動条件を動体抽出モードに設定したままでも、照明条件を変更することで簡単に通常撮像モードと動体抽出モードの切り替えを行うことができる。 Further, Patent Document 2 discloses a technique for easily detecting a moving object without performing complicated processing of a signal from an image sensor such as moving object detection by an inter-frame difference method or a background subtraction method. In Patent Document 2, even if the driving condition of the image sensor is set to the moving object extraction mode, the normal imaging mode and the moving object extraction mode can be easily switched by changing the illumination condition.

特開2000−175176号公報Japanese Unexamined Patent Publication No. 2000-175176 特開2004−304377号公報Japanese Unexamined Patent Publication No. 2004-304377

しかしながら、特許文献1に開示された技術では、1つの照明のみを持つ構成には言及されておらず、照明変化時(点灯から消灯への変化、消灯から点灯への変化)には動体検知機能が誤動作(誤検知)してしまう場合がある。
また特許文献2に開示された技術は、撮像素子による動体検知に関する方法であり、画像解析を用いた動体検知機能が照明変化により誤動作(誤検知)してしまうことに対しては利用できない。
そこで、本発明は、照明制御可能な撮像装置において、動体を検知する際の誤検知を低減することを目的とする。
However, the technique disclosed in Patent Document 1 does not mention a configuration having only one illumination, and a motion detection function when the illumination changes (change from lighting to extinguishing, change from extinguishing to lighting). May malfunction (false positive).
Further, the technique disclosed in Patent Document 2 is a method related to motion detection by an image sensor, and cannot be used for a motion detection function using image analysis that malfunctions (erroneous detection) due to a change in lighting.
Therefore, an object of the present invention is to reduce erroneous detection when detecting a moving object in an imaging device capable of controlling illumination.

上記目的を達成するために、本発明の1つの態様による撮像装置は、撮像手段と、前記撮像手段により撮像される領域を照射する照明を制御する制御手段と、前記撮像手段により撮像された画像を解析して動体を検知する検知手段と、前記検知手段が動作している場合、前記制御手段は、前記照明の点灯および消灯の少なくとも一方を、第1のパラメータに基づいて制御し、前記検知手段が動作していない場合、前記制御手段は、前記照明の点灯および消灯の少なくとも一方を、前記第1のパラメータとは異なる第2のパラメータに基づいて制御する。 In order to achieve the above object, the imaging apparatus according to one aspect of the present invention includes an imaging means, a control means for controlling illumination that illuminates a region imaged by the imaging means, and an image captured by the imaging means. When the detection means for detecting a moving object and the detection means are operating, the control means controls at least one of turning on and off the lighting based on the first parameter, and the detection means. When the means are not operating, the control means controls at least one of turning on and off the lighting based on a second parameter different from the first parameter.

本発明によれば、照明制御可能な撮像装置において、動体を検知する際の誤検知を低減できる。 According to the present invention, it is possible to reduce erroneous detection when detecting a moving object in an imaging device capable of controlling lighting.

本発明の第1実施形態におけるネットワークカメラの機能ブロック図。The functional block diagram of the network camera in 1st Embodiment of this invention. 図1のネットワークカメラの照明制御タイミングを示す図。The figure which shows the lighting control timing of the network camera of FIG. 図1のネットワークカメラのメイン処理を説明するフローチャート。The flowchart explaining the main processing of the network camera of FIG. 図1のネットワークカメラの照明制御処理を説明するフローチャート。The flowchart explaining the lighting control processing of the network camera of FIG. 図1のネットワークカメラの照明制御条件を示すテーブル。A table showing lighting control conditions of the network camera of FIG. 第1実施形態の変形例における照明制御タイミングを示す図。The figure which shows the lighting control timing in the modification of 1st Embodiment. 第1実施形態の変形例における照明制御処理を説明するフローチャート。The flowchart explaining the lighting control processing in the modification of 1st Embodiment. 第1実施形態の変形例における照明制御条件を示すテーブル。A table showing lighting control conditions in a modified example of the first embodiment. 第1実施形態の他の変形例における照明制御タイミングを示す図。The figure which shows the lighting control timing in another modification of 1st Embodiment. 第1実施形態の他の変形例における照明制御処理を説明するフローチャート。The flowchart explaining the lighting control processing in another modification of 1st Embodiment. 第1実施形態の他の変形例における照明制御条件を示すテーブル。A table showing lighting control conditions in another modification of the first embodiment. 第2実施形態におけるネットワークカメラのメイン処理を説明するフローチャート。The flowchart explaining the main processing of the network camera in 2nd Embodiment. 図12のネットワークカメラの照明制御処理を説明するフローチャート。The flowchart explaining the lighting control processing of the network camera of FIG. 図12のネットワークカメラの第2の照明制御条件を示すテーブル。A table showing the second lighting control condition of the network camera of FIG. 本発明の第3実施形態におけるネットワークカメラの撮像領域と照明照射範囲を示す図。The figure which shows the imaging area and the illumination irradiation range of the network camera in 3rd Embodiment of this invention. 図15のネットワークカメラのメイン処理を説明するフローチャート。The flowchart explaining the main processing of the network camera of FIG.

以下、本発明の実施形態を、図面を参照して詳細に説明する。なお、以下の実施形態は本発明を限定するものではなく、また、本実施形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。実施形態の構成は、本発明が適用される装置の仕様や各種条件(使用条件、使用環境等)によって適宜修正又は変更され得る。本発明の技術的範囲は、特許請求の範囲によって確定されるのであって、以下の個別の実施形態によって限定されない。また、後述する各実施形態の一部を適宜組み合わせて構成してもよい。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. It should be noted that the following embodiments do not limit the present invention, and not all combinations of features described in the present embodiment are essential for the means for solving the present invention. The configuration of the embodiment may be appropriately modified or changed depending on the specifications of the apparatus to which the present invention is applied and various conditions (use conditions, use environment, etc.). The technical scope of the present invention is determined by the scope of claims and is not limited by the following individual embodiments. In addition, a part of each embodiment described later may be appropriately combined and configured.

<第1実施形態>
以下、図1〜図5を参照して、本発明の第1実施形態について説明する。
<ネットワークカメラの構成>
図1は、本実施形態に係るネットワークカメラ10の機能ブロック構成図である。ネットワークカメラ10は、ネットワーク20を介して不図示のクライアント装置(情報処理装置)と相互に通信可能な状態に接続されている。
ネットワークカメラ10は、撮像部11、画像処理部12、システム制御部13、照明部14、照明制御部15、照度取得部16および通信部17を備える。ネットワークカメラ10は、撮像装置の一例である。
<First Embodiment>
Hereinafter, the first embodiment of the present invention will be described with reference to FIGS. 1 to 5.
<Network camera configuration>
FIG. 1 is a functional block configuration diagram of the network camera 10 according to the present embodiment. The network camera 10 is connected to a client device (information processing device) (not shown) via the network 20 so as to be able to communicate with each other.
The network camera 10 includes an imaging unit 11, an image processing unit 12, a system control unit 13, an illumination unit 14, an illumination control unit 15, an illuminance acquisition unit 16, and a communication unit 17. The network camera 10 is an example of an imaging device.

図1を参照して、ネットワークカメラ10の各部構成と機能について説明する。
撮像部11は、レンズ、撮像素子及びその制御要素から構成され、被写体の撮像および電気信号への変換を行う。
画像処理部12は、撮像部11において撮像、光電変換された信号の所定の現像処理、動体検知処理、圧縮符号化処理を行い、画像データ(撮像画像)を生成し、システム制御部13へ伝達する。画像処理部12が行う動体検知処理は、画像を解析して、撮像画像中の移動物体(動体)を検知する。画像解析方法として、例えば、背景差分方式を用いることができる。背景差分方式では、一定期間取得した撮像画像中の静止箇所を抽出して背景画像を生成し、当該背景画像と現在画像との差分を抽出することにより動体を検知する。画像処理部12は、検知した動体検知情報をシステム制御部13に伝達する。
The configuration and function of each part of the network camera 10 will be described with reference to FIG.
The image pickup unit 11 is composed of a lens, an image pickup element, and a control element thereof, and performs imaging of a subject and conversion into an electric signal.
The image processing unit 12 performs a predetermined development process, a moving object detection process, and a compression coding process of the signal imaged and photoelectrically converted by the image pickup unit 11, generates image data (captured image), and transmits it to the system control unit 13. To do. The moving object detection process performed by the image processing unit 12 analyzes the image and detects a moving object (moving object) in the captured image. As an image analysis method, for example, a background subtraction method can be used. In the background subtraction method, a stationary portion in a captured image acquired for a certain period of time is extracted to generate a background image, and a moving object is detected by extracting the difference between the background image and the current image. The image processing unit 12 transmits the detected motion detection information to the system control unit 13.

システム制御部13は、通信部17を介して、生成された画像データをクライアント装置に配信する。
また、システム制御部13は、クライアント装置から送信されてくるカメラ制御コマンドを、通信部17を介して受信する。システム制御部13は、受信したカメラ制御コマンドを解析し、コマンドに応じた処理を行う。例えば、画像処理部12に対して画質調整の指示を行う。また、システム制御部13は、カメラ制御コマンドに対するレスポンスを、通信部17を介してクライアント装置へ送信する。
システム制御部13は、RTC(Real Time Clock)を用いた時計機能を持つ。従って、ネットワークカメラ10は、時刻を取得することができる。
The system control unit 13 distributes the generated image data to the client device via the communication unit 17.
Further, the system control unit 13 receives the camera control command transmitted from the client device via the communication unit 17. The system control unit 13 analyzes the received camera control command and performs processing according to the command. For example, the image processing unit 12 is instructed to adjust the image quality. Further, the system control unit 13 transmits a response to the camera control command to the client device via the communication unit 17.
The system control unit 13 has a clock function using an RTC (Real Time Clock). Therefore, the network camera 10 can acquire the time.

システム制御部13は、画像処理部12から動体検知情報を受け取ると、通信部17を介して動体検知情報をクライアント装置に送信する。動体検知情報を受信したクライアント装置は、動体検知が発生した時の画像を記録する等の処理を行う。
また、システム制御部13は、クライアント装置から送信されてくるコマンドを受信して、動体検知を行う撮像画像中の動体検知枠の位置やサイズなどの設定や、動体検知機能の有効、無効を設定する。
ネットワークカメラ10が動体検知機能を使用している場合、システム制御部13は、照明制御部15に対して、動体検知使用時の照明制御設定を行う。
When the system control unit 13 receives the motion detection information from the image processing unit 12, the system control unit 13 transmits the motion detection information to the client device via the communication unit 17. The client device that has received the motion detection information performs processing such as recording an image when motion detection occurs.
Further, the system control unit 13 receives a command transmitted from the client device, sets the position and size of the motion detection frame in the captured image for motion detection, and enables / disables the motion detection function. To do.
When the network camera 10 is using the motion detection function, the system control unit 13 sets the lighting control unit 15 for lighting control when the motion detection is used.

照明部14は、LED等を用いた白色照明で構成され、撮像部11で撮像する箇所(領域)を照射する。なお、照明部14は、白色照明ではなく、赤外線照明で構成されてもよい。赤外線照明は、暗所で人に感知されないようにするための照明である。また、図1では照明部14をネットワークカメラ10に内蔵しているが、ネットワークカメラ10の外部に照明部14に設けて、ネットワークカメラ10に接続してもよい。
照度取得部16は、照度センサなどで構成され、撮像部11で撮像する領域の照度値を取得する。照度取得部16は、取得した照度値を照明制御部15に伝達する。
照明制御部15は、照度取得部16より伝達された照度値を用いて、照明部14を制御する。
The illumination unit 14 is composed of white illumination using an LED or the like, and irradiates a portion (region) to be imaged by the image pickup unit 11. The illumination unit 14 may be configured by infrared illumination instead of white illumination. Infrared lighting is lighting that prevents people from perceiving it in the dark. Further, although the lighting unit 14 is built in the network camera 10 in FIG. 1, the lighting unit 14 may be provided outside the network camera 10 and connected to the network camera 10.
The illuminance acquisition unit 16 is composed of an illuminance sensor or the like, and acquires an illuminance value in a region to be imaged by the image pickup unit 11. The illuminance acquisition unit 16 transmits the acquired illuminance value to the illumination control unit 15.
The illumination control unit 15 controls the illumination unit 14 by using the illuminance value transmitted from the illuminance acquisition unit 16.

通信部17は、クライアント装置から送信されるカメラ制御コマンドを受信し、システム制御部13へ伝達する。また、通信部17は、ネットワークカメラ10から種々の信号や情報をクライアント装置に送信する。
このように本実施形態のネットワークカメラ10は、撮像領域を照射する照明を制御可能であり、また画像解析を用いた動体検知機能を有する。
なお、ネットワークカメラ10は、図1に示していない要素を備えてもよい。例えば、ネットワークカメラ10は、システム制御部13が使用するプログラム、照明制御部15が使用するプログラム、照明制御条件などを記憶する記憶部を備えてもよい。
The communication unit 17 receives the camera control command transmitted from the client device and transmits it to the system control unit 13. Further, the communication unit 17 transmits various signals and information from the network camera 10 to the client device.
As described above, the network camera 10 of the present embodiment can control the illumination that illuminates the imaging region, and also has a motion detection function using image analysis.
The network camera 10 may include elements not shown in FIG. For example, the network camera 10 may include a storage unit that stores a program used by the system control unit 13, a program used by the lighting control unit 15, a lighting control condition, and the like.

<照明制御タイミング>
図2は、照明制御タイミングを示す図である。図2のグラフの縦軸は照度を示し、横軸は時間を示している。実線21は撮像環境の照度の変化を示し、第1破線22は動体検知機能未使用時の照明制御タイミングを示し、第2破線23は動体検知機能使用時の照明制御タイミングを示す。なお、実線21は、以下の記載において、撮像環境照度と称することもある。
縦軸のI1は動体検知機能未使用時に照明を点灯する(または消灯する)照度閾値である。I2は動体検知機能使用時に照明を点灯する(または消灯する)照度閾値である。横軸のTA1は日没開始時刻、TA2は日没完了時刻、TA3は日出開始時刻、TA4は日出完了時刻を示す。TA1は、図2の中で最も左にある縦破線が横軸(時間軸)と交差する時刻である。TA4は、図2の中で最も右にある縦破線が横軸(時間軸)と交差する時刻である。
<Lighting control timing>
FIG. 2 is a diagram showing the lighting control timing. The vertical axis of the graph of FIG. 2 shows the illuminance, and the horizontal axis shows the time. The solid line 21 shows the change in the illuminance of the imaging environment, the first broken line 22 shows the lighting control timing when the moving object detection function is not used, and the second broken line 23 shows the lighting control timing when the moving object detection function is used. The solid line 21 may be referred to as an imaging environment illuminance in the following description.
I1 on the vertical axis is an illuminance threshold for turning on (or turning off) the illumination when the motion detection function is not used. I2 is an illuminance threshold that turns on (or turns off) the light when the motion detection function is used. On the horizontal axis, TA1 indicates the sunset start time, TA2 indicates the sunset completion time, TA3 indicates the sunrise start time, and TA4 indicates the sunrise completion time. TA1 is the time when the leftmost vertical dashed line in FIG. 2 intersects the horizontal axis (time axis). TA4 is the time when the rightmost vertical dashed line in FIG. 2 intersects the horizontal axis (time axis).

本実施形態での撮像環境は太陽光の影響を受け、撮像環境照度(実線)21は、図2に示すように、日没開始時刻TA1から日没完了時刻TA2にかけて徐々に(直線的に)低下していき、日出開始時刻TA3から日出完了時刻TA4にかけて徐々に上昇するとする。
監視者(例えば、クライアント装置のユーザ)が直接撮像画像を目視して監視を行うシーンにおいて、撮像画像を目視で認識可能な照度限度が照度閾値I1であるとする。日没時徐々に撮像環境照度21が低下し、目視可能な照度閾値I1以下となった場合に照明を点灯する。また、日出時徐々に撮像環境照度21が上昇し、照度閾値I1以上となった場合に照明を消灯する。このように目視可能な照度限度を照度閾値として、当該照度閾値を下回る場合に照明を点灯し上回る場合に照明を消灯することで、必要な場合のみ照明を点灯し、不要な場合に照明を点灯しないようにすることができる。なお、日没時の照度閾値I1の値と、日出時の照度閾値I1の値は異ならせてもよい。以下の記載において、日没時の照度閾値をI1aと称し、日出時の照度閾値I1bと称する場合もある。
The imaging environment in this embodiment is affected by sunlight, and the imaging environment illuminance (solid line) 21 gradually (linearly) increases from the sunset start time TA1 to the sunset completion time TA2, as shown in FIG. It is assumed that the value gradually decreases and gradually increases from the sunrise start time TA3 to the sunrise completion time TA4.
It is assumed that the illuminance threshold I1 is the illuminance limit at which the captured image can be visually recognized in the scene where the observer (for example, the user of the client device) directly visually observes and monitors the captured image. When the imaging environment illuminance 21 gradually decreases at sunset and becomes a visible illuminance threshold I1 or less, the illumination is turned on. Further, when the imaging environment illuminance 21 gradually increases at sunrise and the illuminance threshold value I1 or more is reached, the illumination is turned off. With the visible illuminance limit as the illuminance threshold, the lights are turned on when the illuminance threshold is below the threshold and turned off when the illuminance threshold is exceeded, so that the lights are turned on only when necessary and turned on when not needed. You can avoid it. The value of the illuminance threshold I1 at sunset and the value of the illuminance threshold I1 at sunrise may be different. In the following description, the illuminance threshold value at sunset is referred to as I1a, and may be referred to as the illuminance threshold value I1b at sunrise.

一方、動体検知機能を使用して監視を行うシーンにおいて、照度閾値I1で照明を点灯すると、撮像環境照度21がある程度低下した状況で照明を点灯させるため撮像画像の輝度変化が生じ、ネットワークカメラ10の動体検知機能が誤動作(誤検知)してしまう。そこで、日没時、撮像環境照度21が下がり始めのまだ明るい照度を照度閾値I2とし、撮像環境照度21が下がり始めのまだ明るい状況で照明を点灯することで、照明点灯による撮像画像の輝度変化を抑え動体検知機能を正しく動作させる(誤検知を低減する)。同様に、日出時も照度閾値I2を採用し、撮像環境照度21が十分高くなった状況で照明を消灯することで、照明消灯による撮像画像の輝度変化を抑え動体検知機能を正しく動作させる(誤検知を低減する)。このように、本実施形態では、動体検知機能使用時の撮像画像の輝度変化が、動体検知機能未使用時の撮像画像の輝度変化より小さくなるようにしている。
なお、日没時の照度閾値I2の値と、日出時の照度閾値I2の値は異ならせてもよい。以下の記載において、日没時の照度閾値をI2aと称し、日出時の照度閾値I2bと称する場合もある。
On the other hand, in a scene where monitoring is performed using the motion detection function, when the illumination is turned on at the illuminance threshold I1, the illumination is turned on in a situation where the imaging environment illuminance 21 is lowered to some extent, so that the brightness of the captured image changes, and the network camera 10 The motion detection function of is malfunctioning (false positive). Therefore, at sunset, the still bright illuminance at which the imaging environment illuminance 21 begins to decrease is set as the illuminance threshold I2, and the illumination is turned on in the still bright situation where the imaging environment illuminance 21 begins to decrease, so that the brightness of the captured image changes due to the illumination lighting. Operate the motion detection function correctly (reduce false positives). Similarly, by adopting the illuminance threshold value I2 even at sunrise and turning off the illumination when the imaging environment illuminance 21 is sufficiently high, the change in brightness of the captured image due to turning off the illumination is suppressed and the moving object detection function operates correctly ( Reduce false positives). As described above, in the present embodiment, the change in the brightness of the captured image when the motion detection function is used is made smaller than the change in the brightness of the captured image when the motion detection function is not used.
The value of the illuminance threshold value I2 at sunset and the value of the illuminance threshold value I2 at sunrise may be different. In the following description, the illuminance threshold value at sunset is referred to as I2a, and may be referred to as the illuminance threshold value I2b at sunrise.

<ネットワークカメラのメインフローチャート>
図3は、ネットワークカメラ10のメイン処理を例示したフローチャートである。ネットワークカメラ10の動体検知設定が変更されたとき、システム制御部13は、図3の処理フローを実行する。SはStepの略である。
S11において、システム制御部13は、ネットワークカメラ10が動体検知機能を使用しているか否かを判定する。動体検知機能を使用している場合、S12に進む。動体検知機能を使用していない場合は、S13に進む。ネットワークカメラ10が動体検知機能を使用しているか否かは、例えば、画像処理部12の動体検知処理が動作しているか否かにより判定する。
<Main flowchart of network camera>
FIG. 3 is a flowchart illustrating the main processing of the network camera 10. When the motion detection setting of the network camera 10 is changed, the system control unit 13 executes the processing flow shown in FIG. S is an abbreviation for Step.
In S11, the system control unit 13 determines whether or not the network camera 10 is using the motion detection function. If the motion detection function is used, the process proceeds to S12. If the motion detection function is not used, the process proceeds to S13. Whether or not the network camera 10 uses the motion detection function is determined by, for example, whether or not the motion detection process of the image processing unit 12 is operating.

S12において、システム制御部13は、照明制御部15に対して、動体検知使用時の照明制御設定を行う。より詳しくは、照度閾値I2を用いる照明制御を行うように設定をする。
S13において、システム制御部13は、照明制御部15に対して、動体検知未使用時の照明制御設定を行う。より詳しくは、照度閾値I1を用いる照明制御を行うように設定をする。照度閾値I1と照度閾値I2は、それぞれ、照明の点灯および消灯を制御する際に用いられるパラメータである。
In S12, the system control unit 13 sets the lighting control for the lighting control unit 15 when the motion detection is used. More specifically, it is set to perform lighting control using the illuminance threshold value I2.
In S13, the system control unit 13 sets the lighting control unit 15 for lighting control when no motion detection is used. More specifically, it is set to perform lighting control using the illuminance threshold value I1. The illuminance threshold I1 and the illuminance threshold I2 are parameters used when controlling the turning on and off of the lighting, respectively.

<照明制御のフローチャート>
図4は、図2の照明制御処理を例示したフローチャートである。ネットワークカメラ10が撮像を開始すると、照明制御部15は図4の処理フローを所定時間間隔で実行する。
S21で、照明制御部15は、設定された照明制御に応じた照明制御条件を取得する。照明制御部15は、照明制御条件をクライアント装置20から取得してもよいし、記憶部から取得してもよい。
<Flowchart of lighting control>
FIG. 4 is a flowchart illustrating the lighting control process of FIG. When the network camera 10 starts imaging, the lighting control unit 15 executes the processing flow of FIG. 4 at predetermined time intervals.
In S21, the lighting control unit 15 acquires the lighting control conditions corresponding to the set lighting control. The lighting control unit 15 may acquire the lighting control conditions from the client device 20 or from the storage unit.

図5は、照明制御条件を示すテーブル50を示している。テーブル50において、動体検知使用時の点灯照度閾値I2aは90ルクスであり、消灯照度閾値I2bも90ルクスである。また、動体検知未使用時の点灯照度閾値I1aは30ルクスであり、消灯照度閾値I1bも30ルクスである。照度閾値は、撮像環境における照明の動体検知機能への影響度や目視で認識可能な照度等を鑑みて設定される。照度閾値I1a、I1b、I2a、I2bは、クライアント装置からのコマンド(クライアント装置のユーザの操作により入力されるコマンド)で設定することができる。なお、90ルクスや30ルクスは例示であり、クライアント装置のユーザは、照度閾値I1a、I1b、I2a、I2bを変更することもできる。点灯照度閾値I2a、I2bは、点灯照度閾値I1a、I1bより高い。 FIG. 5 shows a table 50 showing lighting control conditions. In the table 50, the lighting illuminance threshold I2a when using motion detection is 90 lux, and the extinguishing illuminance threshold I2b is also 90 lux. Further, the lighting illuminance threshold I1a when the motion detection is not used is 30 lux, and the extinguishing illuminance threshold I1b is also 30 lux. The illuminance threshold is set in consideration of the degree of influence of the lighting on the motion detection function in the imaging environment, the illuminance that can be visually recognized, and the like. The illuminance thresholds I1a, I1b, I2a, and I2b can be set by a command from the client device (a command input by a user operation of the client device). Note that 90 lux and 30 lux are examples, and the user of the client device can also change the illuminance thresholds I1a, I1b, I2a, and I2b. The lighting illuminance thresholds I2a and I2b are higher than the lighting illuminance thresholds I1a and I1b.

図4に戻る。
S22において、照明制御部15は、照度取得部16より照度値を取得する。
S23において、照明制御部15は、現在、照明部14を消灯しているか否かを判定する。消灯している場合、S24に進む。消灯していない場合(つまり点灯している場合)は、S26に進む。
S24において、照明制御部15は、取得した照度値と照明制御条件を比較し、取得した照度値が点灯照度閾値を超えているか否かを判定する。取得した照度値が点灯照度閾値を超えている場合、S25に進む。取得した照度値が閾値を超えていない場合は、処理を終了する。
S25において、照明制御部15は、照明部14を点灯し、処理を終了する。
Return to FIG.
In S22, the lighting control unit 15 acquires an illuminance value from the illuminance acquisition unit 16.
In S23, the lighting control unit 15 determines whether or not the lighting unit 14 is currently turned off. If it is off, the process proceeds to S24. If it is not turned off (that is, it is turned on), the process proceeds to S26.
In S24, the lighting control unit 15 compares the acquired illuminance value with the lighting control condition, and determines whether or not the acquired illuminance value exceeds the lighting illuminance threshold value. If the acquired illuminance value exceeds the lighting illuminance threshold, the process proceeds to S25. If the acquired illuminance value does not exceed the threshold value, the process ends.
In S25, the lighting control unit 15 lights the lighting unit 14 and ends the process.

S26において、照明制御部15は、取得した照度値と照明制御条件を比較し、取得した照度値が消灯照度閾値を超えているか否かを判定する。取得した照度値が消灯照度閾値を超えている場合、S27に進む。取得した照度値が消灯照度閾値を超えていない場合は、処理を終了する。
S27において、照明制御部15は、照明部14を消灯し、処理を終了する。
In S26, the lighting control unit 15 compares the acquired illuminance value with the lighting control condition, and determines whether or not the acquired illuminance value exceeds the extinguishing illuminance threshold value. If the acquired illuminance value exceeds the extinguishing illuminance threshold, the process proceeds to S27. If the acquired illuminance value does not exceed the extinguishing illuminance threshold, the process ends.
In S27, the lighting control unit 15 turns off the lighting unit 14 and ends the process.

<第1実施形態の効果>
以上、説明した通り、本実施形態によれば、照明制御可能なネットワークカメラ10において、動体検知機能の使用状況に応じて照明制御方法を切り替えることで、目視監視での視認性の向上と動体検知機能の誤動作(誤検知)の低減を可能にしている。
本実施形態では、動体検知機能使用時の撮像画像の輝度変化は、動体検知機能未使用時の撮像画像の輝度変化より小さい。よって、動体検知を行う場合、輝度変化に起因する誤検知を低減することができる。
<Effect of the first embodiment>
As described above, according to the present embodiment, in the network camera 10 capable of controlling lighting, by switching the lighting control method according to the usage status of the motion detection function, the visibility in visual monitoring is improved and the motion is detected. It makes it possible to reduce malfunctions (false positives) of functions.
In the present embodiment, the change in the brightness of the captured image when the motion detection function is used is smaller than the change in the brightness of the captured image when the motion detection function is not used. Therefore, when performing motion detection, it is possible to reduce erroneous detection due to a change in brightness.

<変形例>
なお、本実施形態では、撮像画像中の移動物体を検知する動体検知機能を有するネットワークカメラ10を説明したが、本実施形態はこれに限定されない。例えば、貴重品等を持ち去られたことを検知する持ち去り検知や、不審物等を置き去られたことを検知する置き去り検知等の機能を有し、照明により誤検知が生じるカメラにおいても、上記したのと同様の方法・制御を適用することができる。その結果として、目視監視での視認性の向上と動体検知機能の誤動作の低減を図ることができる。
<Modification example>
In the present embodiment, the network camera 10 having a moving object detection function for detecting a moving object in the captured image has been described, but the present embodiment is not limited to this. For example, even in a camera that has functions such as take-away detection that detects that valuables have been taken away and abandonment detection that detects that a suspicious object has been left behind and causes false detection due to lighting, the above The same methods and controls as those used for can be applied. As a result, it is possible to improve the visibility in visual monitoring and reduce the malfunction of the motion detection function.

また、本実施形態では、動体検知機能使用時の照度閾値I2を、動体検知機能不使用時の照度閾値I1より高くしたが、本実施形態はこれに限定されない。例えば、動体検知機能使用時の照度閾値を、動体検知機能不使用時の照度閾値より低くしてもよい。動体検知可能な限度照度が目視で認識可能な照度限度より低い場合、動体検知可能な照度まで照明制御を行わなくすることで、動体検知機能の誤動作を低減することができる。
また、本実施形態では、照度を取得する手段(要素)として照度センサを用いたが、本実施形態はこれに限定されない。例えば、撮像部11により生成される撮像信号に含まれる情報を用いて、照度を取得してもよい。
Further, in the present embodiment, the illuminance threshold value I2 when the moving object detection function is used is set higher than the illuminance threshold value I1 when the moving object detection function is not used, but the present embodiment is not limited to this. For example, the illuminance threshold when the motion detection function is used may be lower than the illuminance threshold when the motion detection function is not used. When the limit illuminance that can detect a moving object is lower than the illuminance limit that can be visually recognized, the malfunction of the moving object detection function can be reduced by not performing the illumination control up to the illuminance that can detect the moving object.
Further, in the present embodiment, an illuminance sensor is used as a means (element) for acquiring the illuminance, but the present embodiment is not limited to this. For example, the illuminance may be acquired by using the information included in the imaging signal generated by the imaging unit 11.

また、本実施形態では、照明制御処理として撮像環境照度に対して照明を制御するための照度閾値を設け、照度閾値を動体検知機能使用時と不使用時とで切り替えたが、本実施形態はこれに限定されない。例えば、点灯時刻と消灯時刻を設定し、点灯時刻と消灯時刻を動体検知機能使用時と不使用時とで切り替えてもよい。以下、図6、図7および図8を参照して、点灯時刻と消灯時刻を設定した場合について説明する。点灯時刻と消灯時刻は、それぞれ、照明の点灯および消灯を制御する際に用いられるパラメータである。 Further, in the present embodiment, an illuminance threshold for controlling the illumination with respect to the imaging environment illuminance is provided as the illumination control process, and the illuminance threshold is switched between when the motion detection function is used and when it is not used. Not limited to this. For example, the lighting time and the extinguishing time may be set, and the lighting time and the extinguishing time may be switched between when the motion detection function is used and when it is not used. Hereinafter, a case where the lighting time and the extinguishing time are set will be described with reference to FIGS. 6, 7, and 8. The lighting time and the extinguishing time are parameters used when controlling the on and off of the lighting, respectively.

図6は、照明制御タイミングを示す図である。図2と同様の構成要素については同じ参照符号を用い、説明を省略する。図6において、TB1は動体検知機能未使用時の点灯時刻を示し、TB2は動体検知機能未使用時の消灯時刻を示し、TC1は動体検知機能使用時の点灯時刻を示し、TC2は動体検知機能使用時の消灯時刻を示す。 FIG. 6 is a diagram showing the lighting control timing. The same reference numerals are used for the same components as those in FIG. 2, and the description thereof will be omitted. In FIG. 6, TB1 indicates a lighting time when the motion detection function is not used, TB2 indicates a lighting time when the motion detection function is not used, TC1 indicates a lighting time when the motion detection function is used, and TC2 indicates a motion detection function. Indicates the turn-off time during use.

図6における撮像環境は図2と同様に太陽光の影響を受け、撮像環境照度21は、図6に示すように、日没開始時刻TA1から日没完了時刻TA2にかけて徐々に低下していき、日出開始時刻TA3から日出完了時刻TA4にかけて徐々に上昇するとする。
監視者が直接撮像画像を目視して監視を行うシーンにおいて、撮像画像を目視で認識可能な照度限度が照度閾値I1であるとし、撮像環境照度21が照度閾値I1となる時刻がTB1であるとする。この場合、日没時徐々に撮像環境照度21が低下し、目視可能な照度閾値I1以下となる時刻TB1で照明を点灯する。同様に、日出時徐々に撮像環境照度21が上昇し、照度閾値I1以上となる時刻TB2で照明を消灯する。このように目視可能な照度限度となる時刻を条件にして照明を点灯することで、必要な場合にのみ照明を点灯し、不要な場合に照明を点灯しないようにすることができる。
The imaging environment in FIG. 6 is affected by sunlight as in FIG. 2, and the imaging environment illuminance 21 gradually decreases from the sunset start time TA1 to the sunset completion time TA2 as shown in FIG. It is assumed that the temperature gradually increases from the sunrise start time TA3 to the sunrise completion time TA4.
In a scene where the observer directly visually monitors the captured image, the illuminance limit that can visually recognize the captured image is the illuminance threshold I1, and the time when the imaging environment illuminance 21 becomes the illuminance threshold I1 is TB1. To do. In this case, the imaging environment illuminance 21 gradually decreases at sunset, and the illumination is turned on at the time TB1 which is equal to or less than the visible illuminance threshold I1. Similarly, the imaging environment illuminance 21 gradually increases at sunrise, and the illumination is turned off at the time TB2 when the illuminance threshold value I1 or more is reached. By turning on the light only at the time when the illuminance limit is visible, it is possible to turn on the light only when necessary and not to turn on the light when it is not needed.

一方、動体検知機能を使用して監視を行うシーンにおいて、時刻TB1で照明を点灯すると、撮像環境照度21がある程度低下した状況で照明を点灯させるため撮像画像の輝度変化が生じ、ネットワークカメラ10の動体検知機能が誤動作(誤検知)してしまう。そこで、日没時、撮像環境照度21が下がり始める少し前の時刻TC1を点灯時刻とすることで、撮像環境照度21が下がり始める前の明るい状況で照明を点灯する。時刻TC1で照明を点灯することにより、照明点灯による撮像画像の輝度変化を抑えることができる。撮像画像の輝度変化を抑えることにより、ネットワークカメラ10の動体検知機能の誤動作(誤検知)を低減することができる。また、日出時、撮像環境照度21が十分高くなった時刻TC2で照明を消灯することで、照明消灯による撮像画像の輝度変化を抑え、動体検知機能の誤動作(誤検知)を低減することができる。 On the other hand, in a scene where monitoring is performed using the motion detection function, when the illumination is turned on at time TB1, the illumination is turned on in a situation where the imaging environment illuminance 21 is lowered to some extent, so that the brightness of the captured image changes, and the network camera 10 The motion detection function malfunctions (false positive). Therefore, at sunset, the lighting is turned on in a bright situation before the imaging environment illuminance 21 starts to decrease by setting the time TC1 shortly before the imaging environment illuminance 21 starts to decrease as the lighting time. By turning on the illumination at the time TC1, it is possible to suppress the change in the brightness of the captured image due to the lighting of the illumination. By suppressing the change in the brightness of the captured image, it is possible to reduce the malfunction (erroneous detection) of the motion detection function of the network camera 10. Further, by turning off the illumination at the time TC2 when the imaging environment illuminance 21 becomes sufficiently high at sunrise, it is possible to suppress the change in the brightness of the captured image due to the lighting turning off and reduce the malfunction (erroneous detection) of the motion detection function. it can.

図7は、図6の照明制御処理を例示したフローチャートである。ネットワークカメラ10が撮像を開始すると、照明制御部15は図7の処理フローを所定間隔で実行する。
S31において、照明制御部15は、設定された照明制御に応じた照明制御条件を取得する。図8は、照明制御条件を示すテーブル60を示している。テーブル60において、動体検知使用時の点灯時刻は16:40であり、消灯時刻は05:20であり、動体検知未使用時の点灯時刻は17:00であり、消灯時刻は05:00である。照明点灯時刻および消灯時刻は、固定値としてもよいし、可変値としてもよい。照明点灯時刻および消灯時刻を可変値にする場合、照明点灯時刻および消灯時刻は、例えば、季節によって変化する日没時刻や日出時刻に応じて最適な値に設定される。
図8から分かるように、動体検知機能使用時の照明点灯時間は、動体検知機能未使用時の照明点灯時間より長い。
FIG. 7 is a flowchart illustrating the lighting control process of FIG. When the network camera 10 starts imaging, the lighting control unit 15 executes the processing flow of FIG. 7 at predetermined intervals.
In S31, the lighting control unit 15 acquires the lighting control conditions corresponding to the set lighting control. FIG. 8 shows a table 60 showing lighting control conditions. In the table 60, the lighting time when the motion detection is used is 16:40, the extinguishing time is 05:20, the lighting time when the motion detection is not used is 17:00, and the extinguishing time is 05:00. .. The lighting on time and the lighting off time may be fixed values or variable values. When the lighting on / off time is set to a variable value, the lighting on / off time is set to an optimum value according to, for example, the sunset time or the sunrise time that changes depending on the season.
As can be seen from FIG. 8, the lighting lighting time when the motion detection function is used is longer than the lighting lighting time when the motion detection function is not used.

S32において、照明制御部15は、システム制御部13より現在時刻を取得する。
S33において、照明制御部15は、現在、照明部14を消灯しているか否かを判定する。消灯している場合、S34に進む。消灯していない場合(点灯している場合)は、S36に進む。
S34において、照明制御部15は、取得した現在時刻と照明制御条件を比較し、現在時刻が点灯時刻を超えているか否かを判定する。現在時刻が点灯時刻を超えている場合、S35に進む。現在時刻が点灯時刻を超えていない場合は、処理を終了する。
In S32, the lighting control unit 15 acquires the current time from the system control unit 13.
In S33, the lighting control unit 15 determines whether or not the lighting unit 14 is currently turned off. If it is off, the process proceeds to S34. If it is not turned off (if it is lit), the process proceeds to S36.
In S34, the lighting control unit 15 compares the acquired current time with the lighting control conditions, and determines whether or not the current time exceeds the lighting time. If the current time exceeds the lighting time, the process proceeds to S35. If the current time does not exceed the lighting time, the process ends.

S35において、照明制御部15は、照明部14を点灯し、処理を終了する。
S36において、照明制御部15は、取得した現在時刻と照明制御条件を比較し、現在時刻が消灯時刻を超えているか否かを判定する。現在時刻が消灯時刻を超えている場合、S37に進む。現在時刻が消灯時刻を超えていない場合は、処理を終了する。
S37において、照明制御部15は、照明部14を消灯し、処理を終了する。
In S35, the lighting control unit 15 lights the lighting unit 14 and ends the process.
In S36, the lighting control unit 15 compares the acquired current time with the lighting control conditions, and determines whether or not the current time exceeds the extinguishing time. If the current time exceeds the extinguishing time, the process proceeds to S37. If the current time does not exceed the turn-off time, the process ends.
In S37, the lighting control unit 15 turns off the lighting unit 14 and ends the process.

図4および上記した変形例(図7を含む)では、照明制御処理として照明の点灯と消灯を切り替える方法を示したが、本発明はこれに限定されない。例えば、光量を制御可能な照明を用いて、点灯から消灯、あるいは消灯から点灯までを所定の時間をかけて緩やかに光量を変化させながら切り替える方法を採用してもよい。光量を制御できる照明を用いた場合の照明制御について、図9、図10および図11を用いて説明する。 In FIG. 4 and the above-described modified example (including FIG. 7), a method of switching on / off of lighting as a lighting control process is shown, but the present invention is not limited to this. For example, a method may be adopted in which lighting that can control the amount of light is used to switch from turning on to turning off or from turning off to turning on while gradually changing the amount of light over a predetermined time. Illumination control when an illumination capable of controlling the amount of light is used will be described with reference to FIGS. 9, 10 and 11.

図9は、照明制御タイミングを示す図である。図2と同様の構成要素については同じ参照符号を用いることで、説明を省略する。TB1は動体検知機能未使用時の点灯時刻であり、TB2は動体検知機能未使用時の消灯時刻である。TC1は動体検知機能使用時の点灯開始時刻であり、TC2は動体検知機能使用時の点灯完了時刻であり、TC3は動体検知機能使用時の消灯開始時刻であり、TC4は動体検知機能使用時の消灯完了時刻である。 FIG. 9 is a diagram showing the lighting control timing. The same reference numerals are used for the same components as those in FIG. 2, and the description thereof will be omitted. TB1 is the lighting time when the motion detection function is not used, and TB2 is the extinguishing time when the motion detection function is not used. TC1 is the lighting start time when the motion detection function is used, TC2 is the lighting completion time when the motion detection function is used, TC3 is the extinguishing start time when the motion detection function is used, and TC4 is the lighting start time when the motion detection function is used. It is the turn-off completion time.

図9〜図11の例における撮像環境は図2と同様に太陽光の影響を受け、撮像環境照度21は、図9に示すように、日没開始時刻TA1から日没完了時刻TA2にかけて徐々に低下していき、日出開始時刻TA3から日出完了時刻TA4にかけて徐々に上昇するとする。
監視者が直接撮像画像を目視して監視を行うシーンにおいて、図6での説明と同様に、目視可能な照度限度となる時刻を条件にして照明を点灯することで、必要な場合にのみ照明を点灯し、不要な場合に照明を点灯しないようにすることができる。
The imaging environment in the examples of FIGS. 9 to 11 is affected by sunlight as in FIG. 2, and the imaging environment illuminance 21 gradually increases from the sunset start time TA1 to the sunset completion time TA2 as shown in FIG. It is assumed that the value gradually decreases and gradually increases from the sunrise start time TA3 to the sunrise completion time TA4.
In the scene where the observer directly visually observes the captured image and monitors it, the illumination is turned on only when necessary by turning on the illumination on the condition that the visible illuminance limit is reached, as described in FIG. Can be turned on so that the light is not turned on when it is not needed.

一方、動体検知機能を使用して監視を行うシーンにおいて、日没開始時刻TA1と同じ時刻TC1で照明点灯を開始する。以降、照明光量を少しずつ増加させ、日没完了時刻TA2と同じ時刻TC2で、必要な光量(最大設定光量)になるようにする。日出時は、日出開始時刻TA3と同じ時刻TC3で照明消灯を開始する。以降、照明光量を少しずつ減少させ、日出完了時刻TA4と同じ時刻TC4で照明を完全に消灯する。このように、徐々に変化する撮像環境照度21に応じて照明光量を徐々に変化させることで、撮像画像の輝度変化を抑え、動体検知機能の誤作動(誤検知)をさらに低減することができる。図9では、照明光量の変化(増加、減少)は線形であるとする。 On the other hand, in the scene of monitoring using the motion detection function, the lighting is started at the same time TC1 as the sunset start time TA1. After that, the amount of illumination light is gradually increased so that the required amount of light (maximum set amount of light) is reached at the same time TC2 as the sunset completion time TA2. At the time of sunrise, the lights are turned off at the same time TC3 as the sunrise start time TA3. After that, the amount of illumination light is gradually reduced, and the illumination is completely turned off at the same time TC4 as the sunrise completion time TA4. In this way, by gradually changing the amount of illumination light according to the gradually changing imaging environment illuminance 21, it is possible to suppress the change in the brightness of the captured image and further reduce the malfunction (erroneous detection) of the motion detection function. .. In FIG. 9, it is assumed that the change (increase, decrease) in the amount of illumination light is linear.

図10は、図9の照明制御処理を例示したフローチャートである。ネットワークカメラ10が撮像を開始すると、照明制御部15は図10の処理フローを所定間隔で実行する。 FIG. 10 is a flowchart illustrating the lighting control process of FIG. When the network camera 10 starts imaging, the lighting control unit 15 executes the processing flow of FIG. 10 at predetermined intervals.

S41において、照明制御部15は、設定された照明制御に応じた照明制御条件を取得する。図11は、照明制御条件を示すテーブル70を示している。テーブル70において、動体検知使用時の点灯開始時刻は16:55であり、点灯時の照明変化時間は00:10であり、消灯開始時刻は04:55であり、消灯時の照明変化時間は00:10である。つまり、図9の時刻TC1が16:55であり、10分間経過すると時刻TC2となり、時刻TC3が04:55であり、10分間経過すると時刻TC4になるという照明制御条件である。照明変化時間が00:10であるということは、照明の光量が10分間という所定時間をかけて変化することを意味する。
動体検知未使用時の点灯開始時刻は17:00であり、点灯時の照明変化時間00:00であり、消灯開始時刻は05:00であり、消灯時の照明変化時間00:00である。動体検知未使用時の照明変化時間00:00は、点灯から消灯に即時に切り替え、消灯から点灯に即時に切り替えることを意味する。
動体検知使用時の照明の光量の変化は、10分間という時間をかけて行われるので、動体検知未使用時の照明光量変化より長い時間をかけている。
In S41, the lighting control unit 15 acquires the lighting control conditions corresponding to the set lighting control. FIG. 11 shows a table 70 showing lighting control conditions. In the table 70, the lighting start time when the motion detection is used is 16:55, the lighting change time when lighting is 00:10, the lighting start time when turning off is 04:55, and the lighting change time when turning off is 00. : 10. That is, the lighting control condition is that the time TC1 in FIG. 9 is 16:55, the time TC2 is reached after 10 minutes, the time TC3 is 04:55, and the time TC4 is 10 minutes. The fact that the illumination change time is 00:10 means that the amount of light of the illumination changes over a predetermined time of 10 minutes.
The lighting start time when the motion detection is not used is 17:00, the lighting change time at the time of lighting is 00:00, the lighting start time at the time of turning off is 05:00, and the lighting change time at the time of turning off is 00:00. The lighting change time of 00:00 when the motion detection is not used means that the lighting is immediately switched from the lighting to the extinguishing and the lighting is immediately switched from the lighting to the lighting.
Since the change in the amount of illumination light when the motion detection is used takes 10 minutes, it takes a longer time than the change in the amount of illumination light when the motion detection is not used.

S42において、照明制御部15は、システム制御部13より現在時刻を取得する。
S43において、照明制御部15は、現在、照明部14を消灯しているか否かを判定する。消灯している、あるいは消灯から点灯への変化中である場合、S44に進む。点灯している場合、あるいは点灯から消灯への変化中である場合は、S47に進む。ここで、消灯から点灯への変化中とは、消灯(光量ゼロ)から光量が増加して、最大設定光量に至る変化の途中にあることを意味する。点灯から消灯への変化中とは、最大設定光量から光量が減少して、光量ゼロに至る変化の途中にあることを意味する。
In S42, the lighting control unit 15 acquires the current time from the system control unit 13.
In S43, the lighting control unit 15 determines whether or not the lighting unit 14 is currently turned off. If the light is off, or if the light is being changed from off to on, the process proceeds to S44. If it is lit, or if it is changing from lit to extinguished, the process proceeds to S47. Here, "changing from extinguished to lit" means that the amount of light increases from extinguishing (zero amount of light) and is in the middle of the change to reach the maximum set amount of light. "During the change from lighting to extinguishing" means that the amount of light is decreasing from the maximum set amount of light and is in the middle of the change to zero amount of light.

S44において、照明制御部15は、取得した現在時刻と照明制御条件を比較して、現在時刻が点灯開始時刻を超えているか否かを判定する。現在時刻が点灯開始時刻を超えている場合、S45に進む。現在時刻が点灯開始時刻を超えていない場合は、処理を終了する。
S45において、照明制御部15は、取得した点灯時の照明変化時間に応じて照明光量を計算する。例えば、照明光量が0ルクスから100ルクスまで制御可能であり、点灯状態(最大設定光量)が100ルクス、消灯状態が0ルクスとし、現在時刻が点灯開始時刻から1分経過しているとする。照明変化時間は10分なので、1分経過した時の照明光量は次のようになる。
100×1/10=10
つまり、1分経過した時、照明光量は10ルクスとなる。
In S44, the lighting control unit 15 compares the acquired current time with the lighting control conditions, and determines whether or not the current time exceeds the lighting start time. If the current time exceeds the lighting start time, the process proceeds to S45. If the current time does not exceed the lighting start time, the process ends.
In S45, the illumination control unit 15 calculates the amount of illumination light according to the acquired illumination change time at the time of lighting. For example, it is assumed that the illumination light amount can be controlled from 0 lux to 100 lux, the lighting state (maximum set light amount) is 100 lux, the extinguishing state is 0 lux, and the current time has passed 1 minute from the lighting start time. Since the illumination change time is 10 minutes, the amount of illumination light after 1 minute is as follows.
100 x 1/10 = 10
That is, when 1 minute has passed, the amount of illumination light becomes 10 lux.

S46において、照明制御部15は、S45で計算した照明光量で、照明部14を点灯し、処理を終了する。以降同様に、経過時間に応じて徐々に照明光量を上げていく。また、照明変化時間00:00の場合は、照明を即時点灯する(照明光量を0ルクスから100ルクスまで即時に変化させる)。
S47において、照明制御部15は、取得した現在時刻と照明制御条件を比較して、現在時刻が消灯開始時刻を超えているか否かを判定する。現在時刻が消灯開始時刻を超えている場合、S48に進む。現在時刻が消灯開始時刻を超えていない場合は、処理を終了する。
In S46, the illumination control unit 15 lights the illumination unit 14 with the illumination light amount calculated in S45, and ends the process. After that, the amount of illumination light is gradually increased according to the elapsed time. In addition, when the illumination change time is 00:00, the illumination is turned on immediately (the amount of illumination light is immediately changed from 0 lux to 100 lux).
In S47, the lighting control unit 15 compares the acquired current time with the lighting control conditions, and determines whether or not the current time exceeds the extinguishing start time. If the current time exceeds the turn-off start time, the process proceeds to S48. If the current time does not exceed the turn-off start time, the process ends.

S48において、照明制御部15は、取得した点灯時の照明変化時間に応じて照明光量を計算する。例えば、現在時刻が点灯開始時刻から1分経過しているとすると、照明変化時間は10分なので、
100−(100×1/10)=90
となり、点灯開始時刻から1分経過した時の照明光量は90ルクスとなる。
In S48, the illumination control unit 15 calculates the amount of illumination light according to the acquired illumination change time at the time of lighting. For example, if the current time is 1 minute after the lighting start time, the lighting change time is 10 minutes.
100- (100 x 1/10) = 90
Therefore, the amount of illumination light when 1 minute has passed from the lighting start time is 90 lux.

S49において、照明制御部15は、S48で計算した照明光量で照明部14を点灯し、処理を終了する。以降同様に、経過時間に応じて徐々に照明光量を下げていく。また、照明変化時間00:00の場合は、照明を即時消灯する(照明光量を100ルクスから0ルクスまで即時に変化させる)。
なお、図9では、照明点灯開始時刻から照明点灯完了時刻まで、線形に照明光量を変化させたが、本変形例はこれに限定されない。例えば、撮像環境照度21の変化に応じて、非線形に照明光量を変化させてもよい。
In S49, the illumination control unit 15 lights the illumination unit 14 with the illumination light amount calculated in S48, and ends the process. After that, the amount of illumination light is gradually reduced according to the elapsed time. In addition, when the lighting change time is 00:00, the lighting is immediately turned off (the amount of illumination light is immediately changed from 100 lux to 0 lux).
In FIG. 9, the amount of illumination light is linearly changed from the illumination start time to the illumination completion time, but this modification is not limited to this. For example, the amount of illumination light may be changed non-linearly according to the change in the imaging environment illuminance 21.

<第2実施形態>
次に、図1、図12、図13および図14を参照し、本発明の第2実施形態を説明する。第2実施形態では、動体検知で用いる画像解析方式の違いを考慮した照明制御を行う。第1実施形態と同様の構成要素には、同じ参照符号を用いることで、それらの詳細な説明を省略する。以下、第1実施形態との相違点を中心に説明する。第2実施形態のネットワークカメラ10の構成は、図1で説明した構成と同じである。
<Second Embodiment>
Next, a second embodiment of the present invention will be described with reference to FIGS. 1, 12, 13, and 14. In the second embodiment, lighting control is performed in consideration of the difference in the image analysis method used for motion detection. By using the same reference numerals for the same components as in the first embodiment, detailed description thereof will be omitted. Hereinafter, the differences from the first embodiment will be mainly described. The configuration of the network camera 10 of the second embodiment is the same as the configuration described with reference to FIG.

動体を検知する画像解析方式は複数ある。例えば、第1実施形態で説明した背景差分を用いた方式や、連続するフレーム画像間の差分を抽出して動体を検知するフレーム間差分を用いた方式がある。背景差分を用いた方式では背景画像を生成するために所定の時間を要する。 There are multiple image analysis methods for detecting moving objects. For example, there are a method using background subtraction described in the first embodiment and a method using inter-frame subtraction that extracts differences between consecutive frame images and detects moving objects. In the method using background subtraction, it takes a predetermined time to generate a background image.

ネットワークカメラ10の撮像部(カメラヘッド部)は、パン(水平回転)、チルト(垂直回転)、ズーム(画角変化)を行うことができる場合がある。また、ネットワークカメラ10は、移動する被写体を画像解析で検知し、検知した動体を常に画面中央部に捉えるよう、パン、チルト、ズームを自動で制御する自動追尾機能を有する場合もある。ネットワークカメラ10が自動追尾機能を有する場合の動体検知は、パン、チルト、ズームによる画角変化により背景画像が刻々と変化するため、背景差分方式を用いることは難しい。そのような場合、フレーム間差分方式が用いられる。このように、画像解析を用いた動体検知では、ネットワークカメラ10が有する機能によって、異なる画像解析方式を使い分けることがある。 The imaging unit (camera head unit) of the network camera 10 may be able to pan (horizontally rotate), tilt (vertically rotate), and zoom (change the angle of view). In addition, the network camera 10 may have an automatic tracking function that automatically controls pan, tilt, and zoom so that a moving subject is detected by image analysis and the detected moving object is always captured in the center of the screen. In motion detection when the network camera 10 has an automatic tracking function, it is difficult to use the background subtraction method because the background image changes every moment due to changes in the angle of view due to pan, tilt, and zoom. In such a case, the inter-frame difference method is used. As described above, in motion detection using image analysis, different image analysis methods may be used depending on the function of the network camera 10.

所定の時間をかけて生成した背景画像を用いる背景差分方式の場合、照明変化の前後によって、全体の画像が変化するため、背景画像を再度生成する必要がある。背景画像を再度生成している間は動体検知ができない状態となるため、照明変化の影響は大きい。一方、数フレームの短い期間の画像(フレーム画像)しか用いないフレーム間差分方式の場合、照明変化の瞬間の画像は誤検知が生じるが、その後すぐに、誤検知が生じない状態となるため、照明変化の影響は少ない。このように、用いる画像解析方式によって照明変化の影響が異なるため、照明変化の影響が多い画像解析方式を用いた動体検知機能を使用する場合にのみ、誤検知が少なくなるよう照明制御を行ってもよい。こうすることで、さらなる目視監視での視認性の向上と動体検知機能の誤動作(誤検知)の低減を図ることができる。また、照明変化(点灯から消灯へ切り替わる際、および、消灯から点灯へ切り替わる際)の前後の所定時間、動体検知機能を休止(一旦停止)してもよい。
第2実施形態では、動体検知機能を使用している場合に、背景差分方式を用いるのかフレーム間差分方式を用いるのかに応じて、照明制御の内容を変える。
In the case of the background subtraction method using a background image generated over a predetermined time, the entire image changes before and after the lighting change, so it is necessary to generate the background image again. While the background image is being regenerated, motion detection cannot be performed, so the effect of lighting changes is large. On the other hand, in the case of the inter-frame difference method using only a short period image (frame image) of several frames, a false detection occurs in the image at the moment of the illumination change, but the false detection does not occur immediately after that. The effect of lighting changes is small. In this way, since the effect of lighting change differs depending on the image analysis method used, lighting control is performed so that false detection is reduced only when the motion detection function using the image analysis method, which is greatly affected by lighting change, is used. May be good. By doing so, it is possible to further improve the visibility in visual monitoring and reduce the malfunction (erroneous detection) of the motion detection function. Further, the motion detection function may be suspended (temporarily stopped) for a predetermined time before and after the lighting change (when switching from lighting to extinguishing and when switching from extinguishing to lighting).
In the second embodiment, when the motion detection function is used, the content of the lighting control is changed depending on whether the background subtraction method or the inter-frame subtraction method is used.

図12は、第2実施形態のネットワークカメラ10のメイン処理を例示したフローチャートである。ネットワークカメラ10の動体検知設定が変更されたとき、システム制御部13は、図12の処理フローを実行する。 FIG. 12 is a flowchart illustrating the main processing of the network camera 10 of the second embodiment. When the motion detection setting of the network camera 10 is changed, the system control unit 13 executes the processing flow shown in FIG.

S51において、システム制御部13は、動体検知機能を使用しているか否かを判定する。動体検知機能を使用している場合、S52に進む。動体検知機能を使用していない場合は、S55に進む。
S52において、システム制御部13は、背景差分を用いた動体検知機能を使用しているか否かを判定する。背景差分を用いた動体検知機能を使用している場合、S53に進む。動体検知機能を使用していない場合は、S54に進む。
In S51, the system control unit 13 determines whether or not the motion detection function is used. If the motion detection function is used, the process proceeds to S52. If the motion detection function is not used, the process proceeds to S55.
In S52, the system control unit 13 determines whether or not the motion detection function using background subtraction is used. If the motion detection function using background subtraction is used, the process proceeds to S53. If the motion detection function is not used, the process proceeds to S54.

S53において、システム制御部13は、照明制御部15に対して、背景差分を用いた動体検知使用時の照明制御設定を行う。
S54において、システム制御部13は、照明制御部15に対して、フレーム間差分を用いた動体検知使用時の照明制御設定を行う。本実施形態では、フレーム間差分を用いた動体検知使用時の照明制御設定は、図14を用いて後述するように、動体検知未使用時の照明制御設定と同じである。
S55において、システム制御部13は、照明制御部15に対して、動体検知未使用時の照明制御設定を行う。
In S53, the system control unit 13 sets the lighting control unit 15 for lighting control when using motion detection using background subtraction.
In S54, the system control unit 13 sets the lighting control unit 15 for lighting control when using motion detection using the difference between frames. In the present embodiment, the lighting control setting when motion detection is used using the difference between frames is the same as the lighting control setting when motion detection is not used, as will be described later with reference to FIG.
In S55, the system control unit 13 sets the lighting control unit 15 for lighting control when no motion detection is used.

図13は、照明制御処理を例示したフローチャートである。ネットワークカメラ10が撮像を開始すると、照明制御部15は図13の処理を所定間隔で実行する。
S61において、照明制御部15は、設定された照明制御に応じた照明制御条件を取得する。図14は、照明制御条件を示すテーブル80を示している。テーブル80に示すように、背景差分を用いた動体検知機能使用時の点灯時刻は16:40であり、消灯時刻は05:20であり、動体検知機能一旦停止は「なし」である。動体検知機能一旦停止とは、動体検知機能を休止状態にすることである。フレーム間差分を用いた動体検知使用時の点灯時刻は17:00であり、消灯時刻は05:00であり、動体検知機能一旦停止は「あり」である。動体検知未使用時の点灯時刻は17:00であり、消灯時刻は05:00であり、動体検知機能一旦停止は「なし」である。
FIG. 13 is a flowchart illustrating the lighting control process. When the network camera 10 starts imaging, the lighting control unit 15 executes the process of FIG. 13 at predetermined intervals.
In S61, the lighting control unit 15 acquires the lighting control conditions corresponding to the set lighting control. FIG. 14 shows a table 80 showing lighting control conditions. As shown in Table 80, the lighting time when the motion detection function using background subtraction is used is 16:40, the extinguishing time is 05:20, and the motion detection function is temporarily stopped "none". Motion detection function Temporary stop means to put the motion detection function into a dormant state. The lighting time when the motion detection using the inter-frame difference is used is 17:00, the extinguishing time is 05:00, and the motion detection function is temporarily stopped. The lighting time when the motion detection is not used is 17:00, the extinguishing time is 05:00, and the motion detection function is temporarily stopped "none".

S62において、照明制御部15は、システム制御部13より現在時刻を取得する。
S63において、照明制御部15は、現在、照明部14を消灯しているか否かを判定する。消灯している場合S64に進む。消灯していない場合(点灯している場合)は、S70に進む。
In S62, the lighting control unit 15 acquires the current time from the system control unit 13.
In S63, the lighting control unit 15 determines whether or not the lighting unit 14 is currently turned off. If it is off, the process proceeds to S64. If it is not off (if it is on), the process proceeds to S70.

S64において、照明制御部15は、取得した現在時刻と照明制御条件を比較し、現在時刻が点灯時刻を超えているか否かを判定する。現在時刻が点灯時刻を超えている場合、S65に進む。現在時刻が点灯時刻を超えていない場合は、処理を終了する。 In S64, the lighting control unit 15 compares the acquired current time with the lighting control conditions, and determines whether or not the current time exceeds the lighting time. If the current time exceeds the lighting time, the process proceeds to S65. If the current time does not exceed the lighting time, the process ends.

S65において、照明制御部15は、照明制御条件の動体検知機能一旦停止が「あり」か「なし」かを判定する。「あり」の場合、S66に進む。「なし」の場合は、S69に進む。
S66において、照明制御部15は、システム制御部13に対して動体検知機能の停止を要求する。システム制御部13は動体検知機能の停止要求を受けると、画像処理部12からの動体検知情報をマスクし(遮断し)一律非検知状態として伝達する停止状態に移行する。停止状態に移行すると、システム制御部13は、移行が完了したことを照明制御部13に伝達する。
S67において、照明制御部15は、照明部14を点灯する。
In S65, the lighting control unit 15 determines whether the motion detection function temporarily stopped under the lighting control condition is “yes” or “no”. If "Yes", the process proceeds to S66. In the case of "none", the process proceeds to S69.
In S66, the lighting control unit 15 requests the system control unit 13 to stop the motion detection function. When the system control unit 13 receives a request to stop the motion detection function, the system control unit 13 masks (blocks) the motion detection information from the image processing unit 12 and shifts to a stop state in which the motion detection information is uniformly transmitted as a non-detection state. When the state shifts to the stopped state, the system control unit 13 notifies the lighting control unit 13 that the shift has been completed.
In S67, the lighting control unit 15 lights the lighting unit 14.

S68において、照明制御部15は、照明部14が完全に点灯した状態になってから、数フレーム分の時間が経過した後、システム制御部13に対して動体検知機能の再開を要求する。システム制御部13は動体検知機能再開を受けると、画像処理部12からの動体検知情報をそのまま後段へ伝達する通常状態に移行する。移行が完了すると、システム制御部13は、通常状態に移行完了したことを照明制御部15に伝達し、処理を終了する。 In S68, the lighting control unit 15 requests the system control unit 13 to restart the motion detection function after a lapse of several frames after the lighting unit 14 is completely lit. When the system control unit 13 receives the restart of the motion detection function, the system control unit 13 shifts to a normal state in which the motion detection information from the image processing unit 12 is transmitted as it is to the subsequent stage. When the transition is completed, the system control unit 13 notifies the lighting control unit 15 that the transition to the normal state has been completed, and ends the process.

S69において、照明制御部15は、照明部14を点灯し、処理を終了する。
このように、フレーム間差分を用いた動体検知使用時には、照明切替時の数フレーム分動体検知の検知情報をマスクすることで、照明変化によるフレーム間差分方式の動体検知機能の誤動作を低減する(または無くす)ことができる。
In S69, the lighting control unit 15 lights the lighting unit 14 and ends the process.
In this way, when using motion detection using inter-frame difference, by masking the detection information of motion object detection for several frames at the time of lighting switching, the malfunction of the motion detection function of the inter-frame difference method due to lighting change is reduced ( Or can be eliminated).

S70において、照明制御部15は、取得した現在時刻と照明制御条件を比較し、現在時刻が消灯時刻を超えているか否かを判定する。現在時刻が消灯時刻を超えている場合、S71に進む。現在時刻が消灯時刻を超えていない場合は、処理を終了する。
S71において、照明制御部15は、照明制御条件の動体検知機能一旦停止が「あり」か「なし」かを判定する。「あり」の場合、S72に進む。「なし」の場合は、S75に進む。
In S70, the lighting control unit 15 compares the acquired current time with the lighting control conditions, and determines whether or not the current time exceeds the extinguishing time. If the current time exceeds the extinguishing time, the process proceeds to S71. If the current time does not exceed the turn-off time, the process ends.
In S71, the lighting control unit 15 determines whether the motion detection function temporarily stopped under the lighting control condition is “yes” or “no”. If "Yes", the process proceeds to S72. In the case of "none", the process proceeds to S75.

S72において、照明制御部15は、システム制御部13に対して動体検知機能の停止を要求する。システム制御部13は動体検知機能の停止要求を受けると、画像処理部12からの動体検知情報をマスクし一律非検知状態として伝達する。
S73において、照明制御部15は、照明部14を消灯する。
S74において、照明制御部15は、数フレーム分の時間が経過した後、システム制御部13に対して動体検知機能の再開を要求する。システム制御部13は動体検知機能の再開要求を受けると、画像処理部12からの動体検知情報をそのまま後段へ伝達し(通常状態に移行する)、処理を終了する。
S75において、照明制御部15は、照明部14を消灯し、処理を終了する。
In S72, the lighting control unit 15 requests the system control unit 13 to stop the motion detection function. When the system control unit 13 receives a request to stop the motion detection function, the system control unit 13 masks the motion detection information from the image processing unit 12 and transmits the motion detection information uniformly as a non-detection state.
In S73, the lighting control unit 15 turns off the lighting unit 14.
In S74, the lighting control unit 15 requests the system control unit 13 to restart the motion detection function after the time for several frames has elapsed. When the system control unit 13 receives the request to restart the motion detection function, the system control unit 13 transmits the motion detection information from the image processing unit 12 to the subsequent stage as it is (shifts to the normal state), and ends the process.
In S75, the lighting control unit 15 turns off the lighting unit 14 and ends the process.

以上、説明した通り、本実施形態では、異なる画像解析方式を用いた複数の動体検知機能を持つネットワークカメラ10において、使用する動体検知機能で用いる画像解析方式の違いに応じて、照明制御を切り替える。照明制御を切り替えることにより、照明変化の影響が多い画像解析方式(背景差分方式)を用いた動体検知機能使用時のみ、誤検知が少なくなるよう照明制御を行う。このようにすることで、より細やかに照明制御を行うことができ、さらなる目視監視での視認性の向上と動体検知機能の誤動作の低減を図ることができる。 As described above, in the present embodiment, in the network camera 10 having a plurality of motion detection functions using different image analysis methods, the lighting control is switched according to the difference in the image analysis method used in the motion detection function to be used. .. By switching the lighting control, the lighting control is performed so that false detection is reduced only when the motion detection function using the image analysis method (background subtraction method), which is greatly affected by the lighting change, is used. By doing so, it is possible to perform lighting control more finely, and it is possible to further improve the visibility in visual monitoring and reduce the malfunction of the motion detection function.

なお、本実施形態では、複数の画像解析方式として、背景差分方式とフレーム間差分方式とを用いた場合を説明したが、本実施形態はこれに限定されない。例えば、これら以外の画像解析方式で、照明制御への影響が異なる方式を用いた構成としてもよい。 In the present embodiment, the case where the background subtraction method and the inter-frame difference method are used as the plurality of image analysis methods has been described, but the present embodiment is not limited to this. For example, an image analysis method other than these may be configured using a method having a different effect on the lighting control.

<第3実施形態>
次に、図15および図16を参照し、本発明の第3実施形態を説明する。第3実施形態では、動体検知領域を考慮した照明制御を説明する。第1実施形態と同様の構成要素には、同じ参照符号を用いることで、それらの詳細な説明を省略する。以下、第1実施形態との相違点を中心に説明する。第3実施形態のネットワークカメラ10の構成は、照明部14を除いて図1で説明した構成と同じである。図1では1つの照明部14がネットワークカメラ10に内蔵されているが、第3実施形態のネットワークカメラ10は、照明部14を内蔵しておらず、その代わり、外部から2つの照明Aおよび照明Bを、ネットワークカメラ10に接続する。
<Third Embodiment>
Next, a third embodiment of the present invention will be described with reference to FIGS. 15 and 16. In the third embodiment, the lighting control in consideration of the motion detection region will be described. By using the same reference numerals for the same components as in the first embodiment, detailed description thereof will be omitted. Hereinafter, the differences from the first embodiment will be mainly described. The configuration of the network camera 10 of the third embodiment is the same as the configuration described with reference to FIG. 1 except for the illumination unit 14. In FIG. 1, one lighting unit 14 is built in the network camera 10, but the network camera 10 of the third embodiment does not have the lighting unit 14, and instead, two lighting units A and lighting from the outside. B is connected to the network camera 10.

図15は、本実施形態におけるネットワークカメラ10の撮像範囲(撮像領域)31と、照明Aによる照射範囲33Aと、照明Bによる照射範囲33Bとを示している。
本実施形態では、ネットワークカメラ10に2つの照明Aおよび照明Bが接続され、2つの照明Aおよび照明Bを用いて、ネットワークカメラ10の撮像範囲31を照射する。撮像範囲31の左側が、照明Aの照射範囲33Aとなり、撮像範囲31の右側が照明Bの照射範囲33Bとなっている。
本実施形態において、動体検知機能は、撮像画像の所定領域の画像について行うことができ、所定領域(動体検知領域)はクライアント装置より設定可能となっている。図15における符号32は、設定された動体検知領域を示している。ネットワークカメラ10は、動体検知領域32の画像に対して動体検知を行う。動体検知領域32は、照射範囲33Bに重ならない。
FIG. 15 shows the imaging range (imaging area) 31 of the network camera 10 in the present embodiment, the irradiation range 33A by the illumination A, and the irradiation range 33B by the illumination B.
In the present embodiment, two illuminations A and B are connected to the network camera 10, and the two illuminations A and B are used to illuminate the imaging range 31 of the network camera 10. The left side of the imaging range 31 is the irradiation range 33A of the illumination A, and the right side of the imaging range 31 is the irradiation range 33B of the illumination B.
In the present embodiment, the motion detection function can be performed on an image in a predetermined region of the captured image, and the predetermined region (moving object detection region) can be set by the client device. Reference numeral 32 in FIG. 15 indicates a set motion detection region. The network camera 10 performs motion detection on the image in the motion detection region 32. The moving object detection region 32 does not overlap the irradiation range 33B.

図15に示すように、照明Aは、設定された動体検知領域32を照射するので、動体検知領域32に影響する照明である。一方、照明Bは、動体検知領域32を照射しないので、動体検知領域32に影響しない照明である。従って、照明Aについては動体検知機能の誤動作(誤検知)を考慮する必要があるが、照明Bについては動体の誤検知を考慮する必要はない。そこで、動体検知領域32の設定位置と照明の照射範囲によって、動体検知領域32に影響する照明のみに照明制御(本実施形態では検知優先照明制御と称する)を行う。この照明制御によって、より細やかに照明制御を行うことができ、さらなる目視監視での視認性の向上と動体検知機能の誤動作の低減を図ることができる。 As shown in FIG. 15, the illumination A illuminates the set moving object detection area 32, and thus affects the moving object detecting area 32. On the other hand, since the illumination B does not irradiate the moving object detection area 32, it does not affect the moving object detecting area 32. Therefore, it is necessary to consider the malfunction (false positive) of the moving object detection function for the illumination A, but it is not necessary to consider the false detection of the moving object for the illumination B. Therefore, lighting control (referred to as detection priority lighting control in this embodiment) is performed only on the lighting that affects the moving object detection area 32 according to the set position of the moving object detection area 32 and the illumination range of the illumination. By this lighting control, it is possible to perform lighting control more finely, and it is possible to further improve the visibility in visual monitoring and reduce the malfunction of the motion detection function.

図16は、本実施形態のネットワークカメラ10のメイン処理を例示したフローチャートである。ネットワークカメラ10の動体検知設定が変更されたとき、システム制御部13は図16の処理フローを実行する。
S81において、システム制御部13は、動体検知機能を使用しているか否かを判定する。動体検知機能を使用している場合、S82に進む。動体検知機能を使用していない場合は、S84に進む。
S82において、システム制御部13は、照明が、動体検知機能で設定されている枠(動体検知領域32)に影響する照明であるか否かを判定する。動体検知領域32に影響する照明である場合、S83に進む。動体検知領域32に影響する照明でない場合は、S84に進む。
FIG. 16 is a flowchart illustrating the main processing of the network camera 10 of the present embodiment. When the motion detection setting of the network camera 10 is changed, the system control unit 13 executes the processing flow shown in FIG.
In S81, the system control unit 13 determines whether or not the motion detection function is used. If the motion detection function is used, the process proceeds to S82. If the motion detection function is not used, the process proceeds to S84.
In S82, the system control unit 13 determines whether or not the lighting is lighting that affects the frame (moving object detection area 32) set by the moving object detecting function. If the lighting affects the motion detection area 32, the process proceeds to S83. If the lighting does not affect the motion detection area 32, the process proceeds to S84.

S83において、システム制御部13は、照明制御部15に対して、動体検知使用時の照明制御設定を行い、処理を終了する。
S84において、システム制御部13は、照明制御部15に対して、動体検知未使用時の照明制御設定を行い、処理を終了する。
動体検知使用時の照明制御と、動体検知未使用時の照明制御は、実施形態1あるいは実施形態2で説明した制御と同様であるので、説明は省略する。
In S83, the system control unit 13 sets the lighting control when the motion detection is used in the lighting control unit 15, and ends the process.
In S84, the system control unit 13 sets the lighting control when the motion detection is not used in the lighting control unit 15, and ends the process.
Since the lighting control when the motion detection is used and the lighting control when the motion detection is not used are the same as the controls described in the first or second embodiment, the description thereof will be omitted.

以上、説明した通り、本実施形態によれば、動体検知領域(検知枠)32の設定位置と照明の照射範囲によって動体検知領域32に影響する照明のみに照明制御を行う。このような照明制御によって、より細やかに照明制御を行うことができ、さらなる目視監視での視認性の向上と動体検知機能の誤動作(誤検知)の低減を図ることができる。 As described above, according to the present embodiment, the illumination control is performed only on the illumination that affects the motion detection area 32 depending on the set position of the motion detection area (detection frame) 32 and the illumination range of the illumination. By such lighting control, it is possible to perform lighting control more finely, and it is possible to further improve the visibility in visual monitoring and reduce the malfunction (false detection) of the motion detection function.

なお、本実施形態では、2つの照明Aと照明Bをネットワークカメラ10に接続して用いたが、本実施形態はこれに限定されない。例えば、接続される照明が1つの場合や、3つ以上の場合にも、動体検知領域32に影響する照明に対して、動体検知機能の誤動作を低減するための照明制御を行ってよい。
また、本実施形態では、動体検知領域32が1つの場合を説明したが、本実施形態はこれに限定されない。例えば、動体検知領域32が複数箇所に設定され、当該複数の動体検知領域32のいずれかが所定の照明に影響する場合、当該照明について動体検知機能の誤動作を低減するよう照明制御を行ってよい。
In the present embodiment, the two illuminations A and the illumination B are connected to the network camera 10 and used, but the present embodiment is not limited to this. For example, even when the number of connected lights is one or three or more, lighting control for reducing the malfunction of the moving object detecting function may be performed for the lighting affecting the moving object detecting area 32.
Further, in the present embodiment, the case where the motion detection region 32 is one has been described, but the present embodiment is not limited to this. For example, when the motion detection area 32 is set at a plurality of locations and any one of the plurality of motion detection areas 32 affects a predetermined lighting, lighting control may be performed for the lighting so as to reduce the malfunction of the motion detection function. ..

なお、図1に示したネットワークカメラ10の機能構成は一例であり、機能モジュール(例えば、12、13、15、16)の一部はハードウェアによって実現されてもよい。ハードウェアにより実現される場合、例えば、所定のコンパイラを用いることで、各機能モジュールの機能を実現するためのプログラムからFPGA上に自動的に専用回路を生成すればよい。FPGAは、Field Programmable Gate Arrayの略である。また、FPGAと同様にしてGate Array回路を形成し、ハードウェアとして実現するようにしてもよい。また、ASIC(Application Specific Integrated Circuit)により実現するようにしてもよい。また、図1に示した機能モジュールの構成は一例であり、複数の機能モジュールが1つの機能モジュールを構成するようにしてもよいし、いずれかの機能モジュールが複数の機能を行うモジュールに分かれてもよい。
上記の記載においてネットワークカメラ10を説明したが、本発明はネットワークカメラ以外の撮像装置にも適用できる。
The functional configuration of the network camera 10 shown in FIG. 1 is an example, and a part of the functional modules (for example, 12, 13, 15, 16) may be realized by hardware. When it is realized by hardware, for example, by using a predetermined compiler, a dedicated circuit may be automatically generated on the FPGA from the program for realizing the function of each functional module. FPGA is an abbreviation for Field Programmable Gate Array. Further, a Gate Array circuit may be formed in the same manner as the FPGA and realized as hardware. Further, it may be realized by ASIC (Application Specific Integrated Circuit). Further, the configuration of the functional module shown in FIG. 1 is an example, and a plurality of functional modules may constitute one functional module, or any functional module may be divided into modules that perform a plurality of functions. May be good.
Although the network camera 10 has been described in the above description, the present invention can be applied to an imaging device other than the network camera.

<その他の実施形態>
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
<Other Embodiments>
The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

10…ネットワークカメラ、11…撮像部、12…画像処理部、13…システム制御部、14…照明部、15…照明制御部、16…照度取得部 10 ... Network camera, 11 ... Imaging unit, 12 ... Image processing unit, 13 ... System control unit, 14 ... Lighting unit, 15 ... Lighting control unit, 16 ... Illuminance acquisition unit

Claims (18)

撮像手段と、
前記撮像手段により撮像される領域を照射する照明を制御する制御手段と、
前記撮像手段により撮像された画像を解析して動体を検知する検知手段と、
前記検知手段が動作している場合、前記制御手段は、前記照明の点灯および消灯の少なくとも一方を、第1のパラメータに基づいて制御し、
前記検知手段が動作していない場合、前記制御手段は、前記照明の点灯および消灯の少なくとも一方を、前記第1のパラメータとは異なる第2のパラメータに基づいて制御することを特徴とする撮像装置。
Imaging means and
A control means for controlling illumination that illuminates an area imaged by the image pickup means,
A detection means that analyzes an image captured by the image pickup means to detect a moving object,
When the detection means is operating, the control means controls at least one of turning on and off of the lighting based on the first parameter.
When the detection means is not operating, the control means controls at least one of turning on and off of the lighting based on a second parameter different from the first parameter. ..
前記検知手段が動作している場合、前記制御手段は、前記検知手段が動作していない場合と比べて、前記撮像画像の輝度の変化が小さくなるよう前記照明を制御することを特徴とする請求項1に記載の撮像装置。 When the detection means is operating, the control means controls the illumination so that the change in the brightness of the captured image is smaller than that when the detection means is not operating. Item 1. The imaging apparatus according to item 1. 前記撮像手段により撮像される領域の照度を取得する照度取得手段をさらに備え、
前記制御手段は、前記照度取得手段により取得された前記照度に基づいて、前記照明の点灯および消灯の少なくとも一方を制御することを特徴とする請求項1または2に記載の撮像装置。
An illuminance acquisition means for acquiring the illuminance of the region imaged by the imaging means is further provided.
The imaging device according to claim 1 or 2, wherein the control means controls at least one of turning on and off of the lighting based on the illuminance acquired by the illuminance acquiring means.
前記第1のパラメータおよび前記第2のパラメータは、それぞれ、前記照明を点灯させる第1の照度閾値と、前記照明を消灯させる第2の照度閾値とを含むことを特徴とする請求項1から3のいずれか1項に記載の撮像装置。 Claims 1 to 3, wherein the first parameter and the second parameter each include a first illuminance threshold for turning on the illumination and a second illuminance threshold for turning off the illumination, respectively. The imaging apparatus according to any one of the above items. 前記第1のパラメータの前記第1の照度閾値は、前記第2のパラメータの前記第1の照度閾値より高く、
前記第1のパラメータの前記第2の照度閾値は、前記第2のパラメータの前記第2の照度閾値より高いことを特徴とする請求項4に記載の撮像装置。
The first illuminance threshold of the first parameter is higher than the first illuminance threshold of the second parameter.
The imaging device according to claim 4, wherein the second illuminance threshold value of the first parameter is higher than the second illuminance threshold value of the second parameter.
前記第1のパラメータの前記第1の照度閾値は、前記第2のパラメータの前記第1の照度閾値より低く、
前記第1のパラメータの前記第2の照度閾値は、前記第2のパラメータの前記第2の照度閾値より低いことを特徴とする請求項4に記載の撮像装置。
The first illuminance threshold of the first parameter is lower than the first illuminance threshold of the second parameter.
The imaging apparatus according to claim 4, wherein the second illuminance threshold value of the first parameter is lower than the second illuminance threshold value of the second parameter.
現在時刻を取得する時刻取得手段をさらに備え、
前記制御手段は、前記時刻取得手段により取得された前記現在時刻に基づいて、前記照明の点灯および消灯の少なくとも一方を制御することを特徴とする請求項1または2に記載の撮像装置。
Further equipped with a time acquisition means for acquiring the current time,
The imaging device according to claim 1 or 2, wherein the control means controls at least one of turning on and off the lighting based on the current time acquired by the time acquiring means.
前記第1のパラメータおよび前記第2のパラメータは、それぞれ、前記照明を点灯および消灯させるタイミングの情報を含むことを特徴とする請求項7に記載の撮像装置。 The imaging device according to claim 7, wherein the first parameter and the second parameter each include information on timing for turning on and off the illumination. 前記第1のパラメータおよび前記第2のパラメータは、それぞれ、前記検知手段が動作している場合の前記照明の点灯時間が、前記検知手段が動作していない場合の前記照明の点灯時間より長くなるように設定されることを特徴とする請求項8に記載の撮像装置。 In each of the first parameter and the second parameter, the lighting time of the lighting when the detecting means is operating is longer than the lighting time of the lighting when the detecting means is not operating. The imaging device according to claim 8, wherein the imaging device is set as follows. 前記制御手段は、前記照明の光量を変化させながら前記照明を点灯させることができると共に、前記照明の光量を変化させながら前記照明を消灯させることができ、
前記第1のパラメータおよび前記第2のパラメータは、それぞれ、前記照明の光量の変化に関する情報を含むことを特徴とする請求項1から9のいずれか1項に記載の撮像装置。
The control means can turn on the lighting while changing the amount of light of the lighting, and can turn off the lighting while changing the amount of light of the lighting.
The imaging apparatus according to any one of claims 1 to 9, wherein the first parameter and the second parameter each include information regarding a change in the amount of light of the illumination.
前記第1のパラメータは、前記第2のパラメータと比べて、長い時間をかけて前記照明の光量を変化させることを特徴とする請求項10に記載の撮像装置。 The imaging device according to claim 10, wherein the first parameter changes the amount of light of the illumination over a longer period of time as compared with the second parameter. 前記第1のパラメータは、前記検知手段が前記画像を解析する際に用いる画像解析方式に応じて変わることを特徴とする請求項1から11のいずれか1項に記載の撮像装置。 The imaging device according to any one of claims 1 to 11, wherein the first parameter changes depending on an image analysis method used when the detection means analyzes the image. 前記画像解析方式は、背景画像と現在の画像との差分により動体を検知する方式と、連続するフレーム画像の差分により動体を検知する方式であることを特徴とする請求項12記載の撮像装置。 The image pickup apparatus according to claim 12, wherein the image analysis method is a method of detecting a moving object by a difference between a background image and a current image, and a method of detecting a moving object by a difference between continuous frame images. 前記画像解析方式が、連続するフレーム画像の差分により動体を検知する方式である場合、前記制御手段は、前記検知手段が動作していても、前記第2のパラメータに基づいて前記照明を制御することを特徴とする請求項13記載の撮像装置。 When the image analysis method is a method of detecting a moving object by a difference between continuous frame images, the control means controls the illumination based on the second parameter even if the detection means is operating. 13. The image pickup apparatus according to claim 13. 前記制御部は、前記照明が点灯から消灯へ切り替わる際、および、消灯から点灯へ切り替わる際、当該切り替わりの前後の所定時間、前記検知手段を休止状態にすることを特徴とする請求項1から14のいずれか1項に記載の撮像装置。 Claims 1 to 14 are characterized in that the control unit puts the detection means into a hibernation state for a predetermined time before and after the switching when the lighting is switched from turning on to off and when the lighting is switched from turning off to turning on. The imaging apparatus according to any one of the above. 前記検知手段は、前記撮像手段の撮像画像の内に、動体を検知する検知領域を設定することができ、
前記検知領域が、前記撮像画像において前記照明により照射される範囲に重ならない場合、前記制御手段は、前記検知手段が動作していても、前記第2のパラメータに基づいて前記照明を制御することを特徴とする請求項1から15のいずれか1項に記載の撮像装置。
The detection means can set a detection region for detecting a moving object in the captured image of the image pickup means.
When the detection region does not overlap the range illuminated by the illumination in the captured image, the control means controls the illumination based on the second parameter even if the detection means is operating. The imaging apparatus according to any one of claims 1 to 15.
撮像装置の制御方法であって、
撮像手段により撮像される領域を照明により照射するステップと、
前記撮像手段により撮像された画像を解析して動体を検知するステップと、
前記撮像装置が前記検知するステップを実行する場合、前記照明の点灯および消灯の少なくとも一方を、第1のパラメータに基づいて制御するステップと、
前記撮像装置が前記検知するステップを実行していない場合、前記照明の点灯および消灯の少なくとも一方を、前記第1のパラメータとは異なる第2のパラメータに基づいて制御するステップと、
を有することを特徴とする制御方法。
It is a control method of the image pickup device.
The step of illuminating the area imaged by the imaging means with illumination,
A step of analyzing an image captured by the imaging means to detect a moving object,
When the image pickup apparatus executes the detection step, at least one of turning on and off of the lighting is controlled based on the first parameter, and
When the image pickup apparatus does not perform the detection step, at least one of the lighting is turned on and off is controlled based on a second parameter different from the first parameter.
A control method characterized by having.
コンピュータを、請求項1から16のいずれか1項に記載の撮像装置の各手段として機能させるためのプログラム。 A program for causing a computer to function as each means of the imaging apparatus according to any one of claims 1 to 16.
JP2019121460A 2019-06-28 2019-06-28 Imaging apparatus and method for controlling the same Pending JP2021010051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019121460A JP2021010051A (en) 2019-06-28 2019-06-28 Imaging apparatus and method for controlling the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019121460A JP2021010051A (en) 2019-06-28 2019-06-28 Imaging apparatus and method for controlling the same

Publications (1)

Publication Number Publication Date
JP2021010051A true JP2021010051A (en) 2021-01-28

Family

ID=74199587

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019121460A Pending JP2021010051A (en) 2019-06-28 2019-06-28 Imaging apparatus and method for controlling the same

Country Status (1)

Country Link
JP (1) JP2021010051A (en)

Similar Documents

Publication Publication Date Title
KR101162770B1 (en) Using eye detection for providing control and power management of electronic devices
KR101640875B1 (en) Object detection device
EP3701712B1 (en) Adaptive infrared illumination for exposure correction
KR101835552B1 (en) Control center system of working environment for smart factory
JP2017510348A5 (en)
KR102586962B1 (en) Surveillance system and controlling method thereof
CN104284486A (en) Intelligent lighting device and system and intelligent lighting control method
JP2014017114A (en) Illumination system
US20230209021A1 (en) Image sensing scheme capable of saving more power as well as avoiding image lost and also simplifying complex image recursive calculation
JP2018082233A (en) Monitoring system, monitoring sensor device, monitoring method, and program
KR101375186B1 (en) Method for detecting disturbance of monitoring camera
JP4736955B2 (en) Sensor camera
EP3529788B1 (en) Presence detection system and method
KR100878491B1 (en) Camera monitor system and method for controling the same
JP2021010051A (en) Imaging apparatus and method for controlling the same
JP2008152950A (en) Lighting system
JP2023184501A (en) Anti-flicker filter mitigation for event-based sensor
JP6780543B2 (en) Image imaging system and image imaging device
JP2006172023A (en) Human body detection device
JP2005117635A (en) Camera system, camera control method, and program
US20110069871A1 (en) Indoor energy-saving system
JP2006345081A (en) Detection apparatus and method, recording medium, program, and image display apparatus
JP2014220762A (en) Imaging apparatus
KR20040093888A (en) Apparatus and method for operating day/night mode of monitoring camera using a measuring brightness in invisible interval area
JP2020167500A (en) Image processing apparatus and image processing program