JP2011077617A - Moving body imaging apparatus - Google Patents

Moving body imaging apparatus Download PDF

Info

Publication number
JP2011077617A
JP2011077617A JP2009224253A JP2009224253A JP2011077617A JP 2011077617 A JP2011077617 A JP 2011077617A JP 2009224253 A JP2009224253 A JP 2009224253A JP 2009224253 A JP2009224253 A JP 2009224253A JP 2011077617 A JP2011077617 A JP 2011077617A
Authority
JP
Japan
Prior art keywords
intruder
moving body
ptz
value
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009224253A
Other languages
Japanese (ja)
Other versions
JP5360403B2 (en
Inventor
Ryoko Uno
涼子 宇野
Hideyuki Seki
秀行 関
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.)
Saxa Inc
Original Assignee
Saxa 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 Saxa Inc filed Critical Saxa Inc
Priority to JP2009224253A priority Critical patent/JP5360403B2/en
Publication of JP2011077617A publication Critical patent/JP2011077617A/en
Application granted granted Critical
Publication of JP5360403B2 publication Critical patent/JP5360403B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Closed-Circuit Television Systems (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To suppress a processing burden on control by catching a moving body on an imaging surface with high accuracy over the wide range of a photographable field of an imaging apparatus without omission during performing control for catching the moving body on the imaging surface. <P>SOLUTION: Photographed pictures 61a to 61h sequentially photographed on a time base are pictures that are sequentially photographed along the time base, an intruder of the picture 61a moves in subsequent pictures 61b and 61c, and a moving direction of the intruder and predicted positional coordinates of the intruder are determined from differential images of the pictures 62a and 62b photographed in three frames. Pan and tilt values for catching the intruder at the center of a picture are calculated on the basis of the positional coordinates, a zoom value is calculated on the basis of the length of a rectangle (zoom object rectangle) surrounding the differential image of the picture 62b, and the picture 61e is (zoomed up) by a PTZ operation. When a change in the moving direction of the intruder exceeds a prescribed amount in the pictures 61e and 61f, a zoom down operation is performed in order to prevent frame out to advance to a picture 61h. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、移動体を撮像面に捉える制御を行う移動体撮像装置に関し、より詳しくは、動画像を撮るPTZ(Pan:水平回転,Tilt:垂直回転,Zoom:連続変倍)カメラからの画像を処理することで、撮像対象の移動体を検知し、検知した移動体をPTZカメラで追尾するようにした移動体撮像装置に関する。   The present invention relates to a moving body imaging apparatus that performs control for capturing a moving body on an imaging surface, and more specifically, an image from a PTZ (Pan: horizontal rotation, Tilt: vertical rotation, Zoom: continuous magnification) camera that takes a moving image. The present invention relates to a moving body imaging apparatus that detects a moving body to be imaged and tracks the detected moving body with a PTZ camera.

従来から、監視等の目的からPTZカメラを用いて移動体を捉え、撮像する技術に関する多くの提案がなされている。
このなかに、対象とする移動体を追尾するPTZカメラとは別に、広角の固定カメラを設け、複数台のカメラを用いるシステムが知られている。ただ、このシステムは、複数台のカメラとこれらを制御するシステムを必要とするので、コストアップにつながる。また、広角の固定カメラからの撮影画像に現れる移動体の座標をもとにPTZカメラが追尾に用いるパン・チルト値を算出する処理を行うことから、固定カメラとPTZカメラの座標系にずれが生じ、精度を維持することが難しい。
なお、移動体を追尾する方法を採用する場合には、パン・チルト値を算出するために行う移動体の抽出を行うが、この処理をパン・チルト操作中にオプティカルフロー方式で行うと、処理負担が大きく、適用の妨げになることがある。
Conventionally, many proposals have been made on techniques for capturing and imaging a moving body using a PTZ camera for the purpose of monitoring and the like.
Among these, there is known a system in which a wide-angle fixed camera is provided and a plurality of cameras are used in addition to a PTZ camera that tracks a target moving body. However, this system requires a plurality of cameras and a system for controlling them, leading to an increase in cost. In addition, since the PTZ camera calculates the pan / tilt values used for tracking based on the coordinates of the moving object appearing in the captured image from the wide-angle fixed camera, there is a shift between the coordinate system of the fixed camera and the PTZ camera. It is difficult to maintain accuracy.
When the method of tracking a moving object is adopted, the moving object is extracted to calculate the pan / tilt value. If this process is performed by the optical flow method during the pan / tilt operation, the process is performed. The burden is heavy and may hinder application.

他方、1台のPTZカメラを用いて対象とする移動体を追尾する方式は、複数台のカメラを用いる上記システムに生じる問題を回避することができる、ということから、この方式についても従来から提案がなされており、例えば、下記特許文献1,2を挙げることができる。
特許文献1には、撮影画像面を領域分割し、領域ごとに得た特徴量の変動から動きを検知し、動き有りと判定された領域の情報に基づいて、動きの重心を水平方向/垂直方向別に算出し、重心が画面の中心になるようにカメラを制御する監視装置が示されている。
また、特許文献2には、監視場所を撮影した画像面をエリア分割し、画像に異常が生じたエリアが画面の中心になるようにカメラを制御することや該エリアの分布に応じてカメラの画角を制御する監視システムが示されている。
On the other hand, the method of tracking a target moving body using a single PTZ camera can avoid the problems that occur in the above system using a plurality of cameras, so this method has also been proposed in the past. For example, the following patent documents 1 and 2 can be cited.
In Patent Document 1, a captured image plane is divided into regions, a motion is detected from a variation in the feature amount obtained for each region, and the center of gravity of the motion is determined in the horizontal / vertical direction based on information on the region determined to have motion. A monitoring device is shown that calculates a direction and controls the camera so that the center of gravity is at the center of the screen.
Further, in Patent Document 2, an image plane obtained by photographing a monitoring place is divided into areas, and the camera is controlled so that the area where an abnormality has occurred in the image becomes the center of the screen or the distribution of the area is changed. A monitoring system for controlling the angle of view is shown.

特開2002−369182号公報JP 2002-369182 A 特開平7−222137号公報JP-A-7-222137

しかしながら、特許文献1の監視装置は、ズーム動作は解決課題としていないので、移動体の検知範囲(監視範囲)が限られてしまう。また、特許文献2の監視システムは、エリア分割した撮像面において、分割エリアの画像に生じる異常を監視対象としており、撮像面内に現れる移動体を追尾するという明確な意図がなく、十分な追尾性能が得られない。
本発明は、上記従来技術の問題に鑑みてなされたもので、その目的は、移動体を撮像面に捉える制御を行う移動体撮像装置において、撮像装置によって撮影可能なフィールドの広範囲にわたり漏れなく、かつ精度良く移動体を撮像面に捉える制御を行うとともに、この制御にかかる処理負担が大きくならないようにすることにある。
However, the monitoring device of Patent Document 1 does not solve the zoom operation, so the detection range (monitoring range) of the moving body is limited. In addition, the monitoring system of Patent Document 2 targets an abnormality occurring in an image of a divided area on an imaging surface divided into areas, and does not have a clear intention of tracking a moving object appearing in the imaging surface, and is sufficient for tracking. Performance cannot be obtained.
The present invention has been made in view of the above-described problems of the prior art, and the object thereof is a mobile imaging device that performs control for capturing a mobile object on an imaging surface, and does not leak over a wide range of fields that can be imaged by the imaging device. In addition, the control for capturing the moving body on the imaging surface with high accuracy is performed, and the processing load for the control is not increased.

本発明は、動画を撮るPTZカメラと、PTZカメラの撮影画像を処理し、撮像面上に現れる移動体を検知する移動体検知手段と、PTZカメラのPTZ操作によって移動体を捉える制御を前記移動体検知手段の検知結果に基づいて行う制御手段を有する移動体撮像装置であって、PTZカメラが静止状態にあることを判定するカメラ静止判定手段を備え、前記制御手段は、前記カメラ静止判定手段によって静止状態が判定されたときに、PTZカメラの画角及び前記移動体検知手段が撮像面上で検出した捕捉対象の移動体の位置情報に基づいて推測した制御目標位置に対応するパン・チルト値、並びに前記移動体検知手段が撮像面上で検出した捕捉対象の移動体の差分画像に基づいて定めた制御目標画角に対応するズーム値によって前記PTZ操作を行うことを特徴とする。   The present invention relates to a PTZ camera that takes a moving image, a moving body detection unit that processes a captured image of the PTZ camera and detects a moving body that appears on an imaging surface, and a control that captures the moving body by a PTZ operation of the PTZ camera. A moving body imaging apparatus having a control unit that performs control based on a detection result of a body detection unit, comprising a camera stillness determination unit that determines that a PTZ camera is in a stationary state, wherein the control unit includes the camera stillness determination unit Pan / tilt corresponding to the control target position estimated based on the angle of view of the PTZ camera and the position information of the moving object to be captured detected on the imaging surface by the moving object detecting means when the stationary state is determined by And the zoom value corresponding to the control target angle of view determined based on the difference image of the moving object to be captured detected on the imaging surface by the moving object detection means. And performing Z operations.

本発明によると、撮像装置によって撮影可能なフィールドの広範囲にわたり漏れなく、かつ撮像面の中心近くに精度良く(高解像度で)移動体を捉えることでき、制御にかかる処理負担を大きくすることなく実施することができる。   According to the present invention, it is possible to capture a moving object with high accuracy near the center of the imaging surface without leaking over a wide range of fields that can be imaged by the imaging apparatus, and without increasing the processing burden on control. can do.

本発明の移動体撮像装置を適用して構成する侵入者(移動体)監視システムの1構成例を示す概略図である。It is the schematic which shows one structural example of the intruder (mobile body) monitoring system comprised by applying the mobile body imaging device of this invention. 侵入者監視システム(図1)の要素であるサーバ端末の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the server terminal which is an element of an intruder monitoring system (FIG. 1). PTZカメラの静止判定を撮影画像にもとに行う際の判定エリアを説明する図である。It is a figure explaining the determination area at the time of performing stillness determination of a PTZ camera based on a picked-up image. 撮像面上に現れる侵入者(移動体)の動きから予測される位置へのパン・チルト操作を説明する図である。It is a figure explaining the pan / tilt operation to the position estimated from the motion of the intruder (moving body) appearing on the imaging surface. 侵入者(移動体)の移動速度の違いに応じたズーム操作を伴うPTZ制御動作を説明する図である。It is a figure explaining PTZ control operation accompanied by zoom operation according to the difference in the moving speed of an intruder (moving body). 侵入者(移動体)の動き(移動方向の変更等)に応じたズーム操作を伴うPTZ制御動作を説明する図である。It is a figure explaining PTZ control operation accompanied by zoom operation according to a movement (change of a moving direction, etc.) of an intruder (moving body). 複数の侵入者(移動体)が撮像面上に現れたときのPTZ制御動作を説明する図である。It is a figure explaining PTZ control operation when a plurality of intruders (moving body) appear on the image pick-up surface. PTZカメラによって侵入者(移動体)を捉える際のPTZ制御のフローチャートである。It is a flowchart of PTZ control at the time of catching an intruder (moving body) with a PTZ camera. PTZ制御のフロー(図8)の広角固定へのパン・チルト操作(ステップS104)のサブシーケンスを示す図である。It is a figure which shows the subsequence of pan / tilt operation (step S104) to the fixed wide angle of the flow (FIG. 8) of PTZ control. PTZ制御のフロー(図8)のカメラ静止判定(ステップS107)のサブシーケンスを示す図である。It is a figure which shows the subsequence of the camera still determination (step S107) of the flow (FIG. 8) of PTZ control. PTZ制御のフロー(図8)の侵入者検知(ステップS109)のサブシーケンスを示す図である。It is a figure which shows the subsequence of the intruder detection (step S109) of the flow (FIG. 8) of PTZ control. PTZ制御のフロー(図8)のPTZ値算出(ステップS111)のサブシーケンスを示す図である。It is a figure which shows the subsequence of PTZ value calculation (step S111) of the flow (FIG. 8) of PTZ control.

以下、侵入者(移動体)監視システムを例に本発明に係る移動体撮像装置の実施形態を説明する。
「侵入者監視システム構成の概要」
図1は、この実施形態に係る侵入者監視システムの1構成例を示す概略図である。
侵入者監視システム100は、図1に示すように、ネットワーク107を介してPTZカメラ(以下、単に「カメラ」ともいう)101、サーバ端末103、表示端末105それぞれを接続することによりシステムを構成する。
PTZカメラ101は、監視場所(撮影フィールド)における撮影領域をPTZ(Pan Tilt Zoom)操作によって決め、その動画を撮像するカメラである。このカメラは、基本的には1台で所期の目的に適うシステムを構成することができるが、複数の撮影フィールドに対応して複数台を設けてもよい。
表示端末105は、PTZカメラ101によって撮像された画像を表示するモニタ端末であり、基本的には1台でも所期の目的に適うシステムを構成することができるが、複数台を設置し、そのうちの1台を後記するサーバ端末103に付属するモニタとすることができる。
Hereinafter, an embodiment of a moving body imaging apparatus according to the present invention will be described by taking an intruder (moving body) monitoring system as an example.
"Overview of intruder monitoring system configuration"
FIG. 1 is a schematic diagram showing a configuration example of an intruder monitoring system according to this embodiment.
As shown in FIG. 1, the intruder monitoring system 100 configures a system by connecting a PTZ camera 101 (hereinafter also simply referred to as “camera”) 101, a server terminal 103, and a display terminal 105 via a network 107. .
The PTZ camera 101 is a camera that determines a shooting area in a monitoring place (shooting field) by a PTZ (Pan Tilt Zoom) operation and picks up a moving image thereof. A single camera can basically constitute a system suitable for the intended purpose, but a plurality of cameras may be provided corresponding to a plurality of shooting fields.
The display terminal 105 is a monitor terminal that displays an image picked up by the PTZ camera 101. Basically, even a single device can constitute a system that meets the intended purpose. Can be a monitor attached to the server terminal 103 to be described later.

サーバ端末103は、侵入者監視システム100全体を管理する端末で、PTZカメラ101及び表示端末105を管理下におき、撮影フィールドの侵入者を撮像面に捉えるPTZカメラ101に対するPTZ操作(後記で詳述)等の制御動作を行う。
図2は、サーバ端末103の概略構成を示すブロック図である。
図2に示すように、サーバ端末103は、制御部201と、制御部201の制御下で動作する画像受信部202、画像記録部203、通信インタフェース部204、カメラ静止判定部205、侵入者検知部206、PTZ値算出部207、PTZ命令送出部208の各部と、上記各部の間でデータ交換に用いるバス209を有する。
The server terminal 103 is a terminal that manages the entire intruder monitoring system 100. The PTZ operation (described in detail later) is performed on the PTZ camera 101 that manages the PTZ camera 101 and the display terminal 105 and captures the intruder in the shooting field on the imaging surface. Control operations such as the above are performed.
FIG. 2 is a block diagram illustrating a schematic configuration of the server terminal 103.
As illustrated in FIG. 2, the server terminal 103 includes a control unit 201, an image reception unit 202 that operates under the control of the control unit 201, an image recording unit 203, a communication interface unit 204, a camera stillness determination unit 205, and intruder detection. Each unit includes a unit 206, a PTZ value calculation unit 207, and a PTZ command transmission unit 208, and a bus 209 used for data exchange among the above-described units.

制御部201は、サーバ端末103全体を制御し、通信インタフェース部204を通してカメラ101で撮影された画像を取り込んで、後述するPTZ操作を行うために必要な制御・処理(後述する図8〜13のフロー)等を行う手段として、図示しないが、CPU(Central Processing Unit)、CPUの処理に必要なプログラムやデータ等を一時的に記憶しておくためのRAM(Random Access Memory)及びCPUを駆動して演算や処理等を実行させるためのプログラム等を格納したROM(Read Only Memory)等の記憶部を備えたコンピュータを備える。   The control unit 201 controls the entire server terminal 103, takes in an image captured by the camera 101 through the communication interface unit 204, and performs control / processing necessary for performing a PTZ operation described later (in FIGS. 8 to 13 described later). As a means for performing (flow) and the like, although not shown, a CPU (Central Processing Unit), a RAM (Random Access Memory) for temporarily storing programs and data necessary for processing of the CPU, and a CPU are driven. The computer includes a storage unit such as a ROM (Read Only Memory) that stores a program or the like for executing operations and processes.

通信インタフェース部204は、カメラ101(図1)で撮影され、ネットワーク107経由で送られてくる画像を取り込み、画像受信部202に渡す入力インタフェース及びPTZ命令送出部208から渡されるPTZ命令をネットワーク107経由でカメラ101に送る出力インタフェースである。
画像受信部202は、通信インタフェース部204から渡される撮影画像を後段で行う画像処理(侵入者検知部206等の処理)に用いることができるデータに変換する手段である。
画像記録部203は、画像受信部202で変換された画像データをフレーム単位で取り出すことができるように記録する手段である。
The communication interface unit 204 captures an image captured by the camera 101 (FIG. 1) and is sent via the network 107, and receives an input interface passed to the image receiving unit 202 and a PTZ command passed from the PTZ command sending unit 208. This is an output interface to be sent to the camera 101 via.
The image receiving unit 202 is a unit that converts the captured image passed from the communication interface unit 204 into data that can be used for image processing (processing by the intruder detection unit 206 and the like) performed later.
The image recording unit 203 is a unit that records the image data converted by the image receiving unit 202 so that it can be taken out in units of frames.

カメラ静止判定部205は、撮影画像をもとにPTZカメラの静止判定を行う手段である。なお、静止判定については、図3を参照して後記で詳述する。
侵入者検知部206は、撮影画像をもとにフレーム間差分法等の処理手法を用いて、撮像面に現れる侵入者(移動体)を検知する処理を行う手段である。なお、侵入者検知については、図4を参照して後記で詳述する。
PTZ値算出部207は、撮影フィールドの侵入者を撮像面に捉えるPTZ操作に用いるPTZ値を算出する手段である。なお、PTZ値の算出法については、図4、図5を参照して後記で詳述する。
PTZ命令送出部208は、PTZ値算出部207で算出したPTZ値によるカメラ101へのPTZ命令の送信を通信インタフェース部204に指示する手段である。
The camera stillness determination unit 205 is a means for determining the stillness of the PTZ camera based on the captured image. Note that the stillness determination will be described in detail later with reference to FIG.
The intruder detection unit 206 is a means for performing processing for detecting an intruder (moving body) appearing on the imaging surface using a processing method such as an inter-frame difference method based on the captured image. The intruder detection will be described in detail later with reference to FIG.
The PTZ value calculation unit 207 is a unit that calculates a PTZ value used for a PTZ operation for capturing an intruder in the imaging field on the imaging surface. The method for calculating the PTZ value will be described in detail later with reference to FIGS.
The PTZ command sending unit 208 is a unit that instructs the communication interface unit 204 to transmit a PTZ command to the camera 101 using the PTZ value calculated by the PTZ value calculating unit 207.

なお、サーバ端末103の構成例として、サーバ端末103の構成要素である、画像受信部202、画像記録部203、カメラ静止判定部205、侵入者検知部206、PTZ値算出部207、PTZ命令送出部208の各処理部は、図2に示す例のように、専用の回路によって実施することができるが、制御部201を構成するコンピュータによりこれらの処理部の機能を実現するためのプログラムを動作させることで手段を構成し、この方法によって実施してもよい。   As an example of the configuration of the server terminal 103, the image receiving unit 202, the image recording unit 203, the camera stationary determination unit 205, the intruder detection unit 206, the PTZ value calculation unit 207, and the PTZ command transmission, which are components of the server terminal 103. Each processing unit of the unit 208 can be implemented by a dedicated circuit as in the example shown in FIG. 2, but the computer that configures the control unit 201 operates a program for realizing the functions of these processing units. It is possible to configure the means by performing the above-described method.

「PTZ値の生成」
本実施形態のサーバ端末103は、侵入者(移動体)を撮像面に捉える制御をPTZ操作により行う際、カメラによって撮影可能なフィールドの広範囲にわたり侵入者を漏れなくかつ精度良く(高解像で)捉えるとともに、この操作にかかる処理負担が大きくならないようにする。このために、以下に示す(1)〜(4)の動作を行うことを特徴とする。
(1)侵入者(移動体)の検知は、カメラの静止時の撮影画像に基づいて行う。即ち、侵入者検知部206は、PTZ操作中に作動させず、カメラ静止判定部205による静止判定結果を確認して侵入者検知を行う。つまり、PTZ操作中の侵入者検知を回避することにより、処理負担を軽減化できる。
(2)侵入者(移動体)の検知結果をもとに求めた移動速度によりズーム値を調整する。即ち、移動速度が速い場合には、フレームアウトの確率が高くなるので、ズームダウンし(広角にする)、移動速度が遅い場合には、フレームアウトの確率が低くなるので、ズームアップする。
(3)侵入者(移動体)の検知結果をもとに求めた移動方向が所定量を超えて変化したことを条件に画角を拡大する。即ち、移動方向を変更した場合には、フレームアウトの確率が高くなるので、ズームダウンする(広角にする)。
(4)撮像面に複数の侵入者(移動体)が現れた場合にズーム値を調整する。即ち、侵入者全部を撮影するためにズームダウンする(広角にする)。
“Generating PTZ values”
The server terminal 103 according to the present embodiment, when performing control for capturing an intruder (moving body) on the imaging surface by PTZ operation, does not leak the intruder over a wide range of fields that can be captured by the camera with high accuracy (with high resolution). ) And prevent the processing burden on this operation from increasing. For this purpose, the following operations (1) to (4) are performed.
(1) An intruder (moving body) is detected based on a captured image when the camera is stationary. That is, the intruder detection unit 206 does not operate during the PTZ operation, and performs intruder detection by confirming the stillness determination result by the camera stillness determination unit 205. That is, the processing load can be reduced by avoiding intruder detection during the PTZ operation.
(2) The zoom value is adjusted according to the moving speed obtained based on the detection result of the intruder (moving body). That is, when the moving speed is high, the probability of frame-out increases, so zooming down (to make a wide angle), and when the moving speed is slow, the probability of frame-out decreases and zoom-in is performed.
(3) The angle of view is enlarged on the condition that the moving direction obtained based on the detection result of the intruder (moving body) has changed beyond a predetermined amount. That is, when the moving direction is changed, the probability of frame-out increases, so the zoom is reduced (wide angle).
(4) The zoom value is adjusted when a plurality of intruders (moving bodies) appear on the imaging surface. That is, the zoom-down is performed in order to photograph all the intruders (wide angle).

次に、上記(1)〜(4)の動作を行うための処理手段(手法)について、撮影画像例に基づいて詳細に説明する。
〈カメラ静止判定〉
カメラの静止判定は、撮影画像をもとにカメラ静止判定部205が行う。
カメラ静止判定部205は、カメラ101の撮影画像の経時変化を検出し、検出結果に変化があるか否かにより、カメラ101が静止しているか、カメラがPTZ操作中であるかを判定する。具体的には、撮影画像のフレーム間差分を求め、得た差分画像の大きさ(面積)を所定の判定基準値と比較し、小さければ、静止と判定し、大きければPTZ操作中であると判定する。
Next, a processing means (method) for performing the operations (1) to (4) will be described in detail based on a photographed image example.
<Camera stillness determination>
The camera stillness determination unit 205 performs camera stillness determination based on the captured image.
The camera stillness determination unit 205 detects a temporal change in the captured image of the camera 101, and determines whether the camera 101 is still or whether the camera is in a PTZ operation depending on whether or not the detection result is changed. Specifically, the difference between the frames of the captured image is obtained, and the size (area) of the obtained difference image is compared with a predetermined determination reference value. judge.

ただ、上記のフレーム間差分による検知方法では、撮影画像が移動体を捉えている場合には、カメラ101が静止していても、誤ってPTZ操作中であると判定する可能性がある。そこで、この実施形態では、撮像画面上において誤判定の要因となる移動体が入らないエリアを判定エリアとして選ぶ。
図3は、撮像画面上に選ばれる判定エリアを説明する図である。同図に示す実施形態では、撮影エリア301の画面上において誤判定の要因となる移動体が入らないエリアを撮像面301の外周部分に定めている。カメラ101は、PTZ操作によって侵入者(移動体)を撮像画面の中心近くで捉えようとするので、周辺部分に定めた判定エリアに侵入者(移動体)が存在する可能性は低い。よって、このエリアをフレーム間差分法によるカメラ静止判定の判定エリアとすることで、誤判定を避けることができる。
However, in the detection method based on the inter-frame difference described above, when the captured image captures a moving object, it may be erroneously determined that the PTZ operation is being performed even if the camera 101 is stationary. Therefore, in this embodiment, an area that does not include a moving body that causes erroneous determination on the imaging screen is selected as a determination area.
FIG. 3 is a diagram for explaining a determination area selected on the imaging screen. In the embodiment shown in the figure, an area on the screen of the imaging area 301 where a moving object that causes a false determination does not enter is defined as an outer peripheral portion of the imaging surface 301. Since the camera 101 tries to catch the intruder (moving body) near the center of the imaging screen by the PTZ operation, the possibility that the intruder (moving body) exists in the determination area defined in the peripheral portion is low. Therefore, erroneous determination can be avoided by setting this area as a determination area for camera stillness determination by the inter-frame difference method.

〈侵入者検知〉
侵入者検知は、撮影画像をもとに侵入者検知部206が行う。
侵入者検知部206は、カメラ101の撮影画像の経時変化を検出し、画像に変化が生じたか否かにより、侵入者の存在の有無を検知する。なお、検知時には、カメラ101が静止していることが条件になり、カメラ静止判定部205の判定結果に従って、侵入者の検知動作を行う。
具体的には、撮影画像のフレーム間差分を求め、得た差分画像をもとに、侵入者の存在の有無を判断する。また、侵入者が存在する場合には、後述する〈PTZ値算出〉に用いるために、差分画像をもとに侵入者の位置、もしくは侵入者の位置及び侵入者の動き(移動方向、速度)を求め、これらを検知結果として画像記録部203に保存する。
<Intruder detection>
The intruder detection unit 206 performs intruder detection based on the photographed image.
The intruder detection unit 206 detects a change in the captured image of the camera 101 with time, and detects the presence or absence of an intruder depending on whether or not the image has changed. At the time of detection, it is a condition that the camera 101 is stationary, and an intruder detection operation is performed according to the determination result of the camera stationary determination unit 205.
Specifically, the inter-frame difference of the captured image is obtained, and the presence or absence of an intruder is determined based on the obtained difference image. Also, when there is an intruder, the position of the intruder, or the position of the intruder and the movement of the intruder (movement direction, speed) based on the difference image for use in <PTZ value calculation> described later. Are stored in the image recording unit 203 as detection results.

撮像画面上に現れる侵入者(移動体)の動きから予測される位置へのパン・チルト操作を説明する図4を参照して、侵入者の検知方法について説明を加える。
図4において、撮影エリア401の画面41a,41b,41cは、カメラ101の静止時に時間軸に沿って順次に撮影された画面である。画面41aに入ってきた侵入者(移動体)は、画面41b,41cに示すように画面の中心方向に移動しており、これらのフレーム間差分をとると、差分画像を表す画面42a,42bが得られる。なお、図4に示す撮影画像の画面41a,41b,41cは、それぞれ図中に示していないが、実際は背景があり、差分をとると、画面42a,42bのように侵入者(移動体)だけの画像となる。
差分をとった画面42a,42bに現れる画像には、ノイズ成分が含まれている。ノイズ成分は、通常処理の対象とする侵入者の画像に比べて小さいので、所定の閾値でノイズを除去し、処理対象となる侵入者のみを残す。本実施形態では、フレーム間差分をとった画像を表す画面42a,42bに示すように、同一侵入者によるものと認識した差分画像を囲む矩形を侵入者の抽出結果として求める(後述の図11の侵入者検知処理フロー、参照)。
The intruder detection method will be described with reference to FIG. 4 for explaining the pan / tilt operation to the position predicted from the movement of the intruder (moving body) appearing on the imaging screen.
In FIG. 4, screens 41 a, 41 b, and 41 c in the shooting area 401 are screens that are sequentially shot along the time axis when the camera 101 is stationary. The intruder (moving body) that has entered the screen 41a is moving in the center direction of the screen as shown in the screens 41b and 41c. When these inter-frame differences are taken, the screens 42a and 42b representing the difference images are displayed. can get. Note that the screens 41a, 41b, and 41c of the photographed images shown in FIG. 4 are not shown in the figure, but actually there is a background, and if the difference is taken, only the intruder (moving body) as in the screens 42a and 42b. It becomes the image of.
Noise components are included in the images that appear on the screens 42a and 42b that have taken the difference. Since the noise component is smaller than the image of the intruder to be processed normally, the noise is removed with a predetermined threshold value, and only the intruder to be processed is left. In the present embodiment, as shown in the screens 42a and 42b representing images obtained by inter-frame differences, a rectangle surrounding the difference image recognized as being from the same intruder is obtained as an intruder extraction result (described later in FIG. 11). Intruder detection processing flow).

また、侵入者の動き(移動方向、速度)は、次のようにして求めることができる。即ち、時系列の3フレーム分の撮影画像を用いて上記の手順に従って、差分画像を囲む矩形(画面42a,42bに示す矩形)を求める。ここで、それぞれの差分画像で求めた矩形の中心点を侵入者の位置を表す座標値とみなし、この値を得る。得られる矩形の中心点の座標の変化(画面42aから画面42bへの差分画像の変化)は、図4の概念図において画面43上の矢印にて示す中心点の座標値の変分により表され、この変分によって移動方向及び速度を求めることができる。なお、上記の3フレーム分の撮影画像を用いる例に限らず、3フレーム分以上の画像を用いてもよいし、2フレーム分でもフレーム間差分画像において各フレームの侵入者の画像が分離できれば、各侵入者画像の重心位置の変化によって移動方向を求めることができる。
上記のようにして求めた、差分画像における同一侵入者を囲む矩形もしくは侵入者の動き(移動方向、速度)は、下記〈PTZ値算出〉に説明するように、PTZ値の算出に用いられる。
In addition, the movement (moving direction, speed) of the intruder can be obtained as follows. That is, a rectangle (rectangles shown on the screens 42a and 42b) surrounding the difference image is obtained according to the above-described procedure using the captured images for three frames in time series. Here, the rectangular center point obtained from each difference image is regarded as a coordinate value representing the position of the intruder, and this value is obtained. The change in the coordinate of the center point of the obtained rectangle (change in the difference image from the screen 42a to the screen 42b) is represented by the change in the coordinate value of the center point indicated by the arrow on the screen 43 in the conceptual diagram of FIG. By this variation, the moving direction and speed can be obtained. In addition, it is not limited to the example using the above-described captured images for three frames, images of three frames or more may be used, and if the intruder image of each frame can be separated in the inter-frame difference image even for two frames, The moving direction can be obtained from the change in the center of gravity position of each intruder image.
The rectangle surrounding the same intruder or the movement (moving direction, speed) of the intruder in the difference image obtained as described above is used for calculating the PTZ value as described in <PTZ value calculation> below.

〈PTZ値算出〉
カメラ101は、初動時に、最大の画角で例えば撮影可能なフィールドの中央を指向する初期設定で撮影動作を始め、侵入者検知部206が侵入者を検知するまで、静止状態を保つ。その後、侵入者検知部206が侵入者を検知すると、検知した侵入者を撮像画面の中心近くで捉えるようにカメラ101のPTZ操作を行う。
このPTZ操作は、侵入者がフレームアウトせず、長く画面にとどまるようにする。また、複数の侵入者を検知した場合に、これらの侵入者がフレームアウトせず、画面に納めるようにする。具体的には、上記〈侵入者検知〉で述べた方法で侵入者検知部206が侵入者を検知し、得られた検知結果に基づいて、侵入者を撮像画面の中心近くで捉えるために必要なパン・チルト値を算出し、また、侵入者の速度等を表す画像の変化や複数の侵入者に対応して必要なズーム値を算出し、算出したPTZ値を制御目標値としてカメラ101を操作する。
PTZ値の算出は、PTZ値算出部207が行い、算出したPTZ値は、PTZ命令送出部208によって、PTZ命令として通信インタフェース部204を介してカメラ101へ送信される。
<Calculation of PTZ value>
When the camera 101 is initially moved, the camera 101 starts a shooting operation with an initial setting that is directed to the center of a shootable field, for example, at the maximum angle of view, and remains stationary until the intruder detection unit 206 detects the intruder. Thereafter, when the intruder detection unit 206 detects the intruder, the PTZ operation of the camera 101 is performed so that the detected intruder is caught near the center of the imaging screen.
This PTZ operation allows the intruder to stay on the screen for a long time without going out of frame. In addition, when a plurality of intruders are detected, these intruders are made to fit on the screen without being out of frame. Specifically, it is necessary for the intruder detection unit 206 to detect the intruder by the method described in <Intruder detection> above, and to catch the intruder near the center of the imaging screen based on the obtained detection result. A pan / tilt value is calculated, a change in an image representing the speed of the intruder, a zoom value necessary for a plurality of intruders is calculated, and the camera 101 is controlled using the calculated PTZ value as a control target value. Manipulate.
The PTZ value is calculated by the PTZ value calculating unit 207, and the calculated PTZ value is transmitted to the camera 101 by the PTZ command sending unit 208 via the communication interface unit 204 as a PTZ command.

次にPTZ値算出部207が算出する“パン・チルト値”と“ズーム値”それぞれの算出方法を分説する。
“パン・チルト値”
算出するパン(P)・チルト(T)値は、侵入者検知部206が検知した侵入者の位置(座標)の撮影画像の中心(座標)に対する偏りをそれぞれの座標値の変分で表し、変分を操作量としてのパン・チルト値、即ち、侵入者を撮像画面の中心近くで捉えるためのパン・チルト操作量に変換する。この変換には、画角及び撮影画像(画面)の画素数がファクタとなる。なお、画角は、カメラが撮ることのできる範囲を角度で表したものであり、ズーム(Z)値は画角で表すことができる。
また、パン(P)値、チルト(T)値は、前者がx座標、水平画角及び水平画素数に、後者がy座標、垂直画角及び垂直画素数に対応し、いずれも算出方法は、変わらない。よって、以下には、パン(P)値を算出する例だけを説明する。
Next, calculation methods of “pan / tilt value” and “zoom value” calculated by the PTZ value calculation unit 207 will be described.
“Pan / Tilt value”
The calculated pan (P) and tilt (T) values represent the deviation of the position (coordinates) of the intruder detected by the intruder detection unit 206 with respect to the center (coordinates) of the captured image as a variation of the respective coordinate values. The variation is converted into a pan / tilt value as an operation amount, that is, a pan / tilt operation amount for capturing an intruder near the center of the imaging screen. In this conversion, the angle of view and the number of pixels of the captured image (screen) are factors. Note that the angle of view represents the range that can be taken by the camera, and the zoom (Z) value can be represented by the angle of view.
The pan (P) value and tilt (T) value correspond to the x coordinate, horizontal angle of view, and the number of horizontal pixels in the former, and the latter corresponds to the y coordinate, vertical angle of view, and the number of vertical pixels. ,does not change. Accordingly, only an example of calculating the pan (P) value will be described below.

求めるパン値(:PAN)は、下記式(1)に基づいて算出する。
(target_x−center_x):PAN=ImageNX:horizontal_angle・・・式(1)
上記式(1)において、
target_x:パン操作後に画面の中心で捉えようとする侵入者のx座標(現位置座標)
center_x:撮影画像の中心のx座標
ImageNX:撮影画像(画面)の水平方向の画素数
horizontal_angle:水平画角
上記center_x及びImageNXは、カメラ101とサーバ端末103の構成条件によるもので、設定等の変更がなければ、不変量である。これに対し、target_xは、侵入者の移動により変化し、また、horizontal_angleも後述するように、侵入者の動き等に対応して画角を変化させるので変量である。
なお、算出したパン値が所定の閾値以下の場合、操作の対象としないようにすることによって、作動の安定化を図ることができる。
The obtained pan value (: PAN) is calculated based on the following formula (1).
(target_x−center_x): PAN = ImageNX: horizontal_angle (1)
In the above formula (1),
target_x: Intruder's x coordinate (current position coordinate) to be captured at the center of the screen after panning
center_x: x coordinate of the center of the captured image
ImageNX: Number of pixels in the horizontal direction of the captured image (screen)
horizontal_angle: Horizontal angle of view The above center_x and ImageNX are based on the configuration conditions of the camera 101 and the server terminal 103, and are invariable if there is no change in settings or the like. On the other hand, target_x is a variable because it changes with the movement of the intruder, and horizontal_angle also changes the angle of view corresponding to the movement of the intruder, as will be described later.
When the calculated pan value is equal to or less than a predetermined threshold value, the operation can be stabilized by avoiding the operation target.

ここで、target_x(target_y)として用いる侵入者のx,y座標(現位置座標)について、侵入者の動きを考慮した予測値を用いる実施例を説明する。
上記〈侵入者検知〉において、図4を参照して説明したように、差分画像における同一侵入者を囲む矩形(図4の画面42a,42bに示した矩形)は、侵入者の検知結果として求まり、この矩形の中心点を侵入者の位置を表す座標値として得、target_x(target_y)として用いることができる。
ただ、この差分画像の矩形の中心点は、侵入者の真の画像中心点とは一致しないので、より真の画像中心点に近い結果が得られるtarget_x(target_y)を予測する。
Here, an embodiment will be described in which predicted values in consideration of the intruder's movement are used for the intruder's x, y coordinates (current position coordinates) used as target_x (target_y).
In the above <intruder detection>, as described with reference to FIG. 4, the rectangle surrounding the same intruder in the difference image (the rectangle shown in the screens 42a and 42b in FIG. 4) is obtained as the detection result of the intruder. The center point of this rectangle can be obtained as a coordinate value representing the position of the intruder and used as target_x (target_y).
However, since the center point of the rectangle of the difference image does not coincide with the true image center point of the intruder, target_x (target_y) that gives a result closer to the true image center point is predicted.

この予測は、侵入者検知部206が検知した侵入者の位置と動きに基づいて行う。即ち、上記〈侵入者検知〉で述べた、侵入者の位置を表す差分画像の矩形の中心点と侵入者の動き(移動方向及び速度)からパン・チルト操作後に移動中の侵入者がいると予測される位置を求めることによる。先に示した図4の例を引くと、差分画像の矩形(図4の画面42a,42bに示した矩形)の中心点として得られる侵入者の位置と、3フレーム分から得られる2つの差分画像の矩形中心点の座標値の変分(図4の画面43上に示した矢印)によって表される侵入者の移動方向及び速度に基づいて行う。
侵入者の位置、移動方向及び速度に基づいて行う位置予測は、例えば、テストやシミュレーションによって確認したPTZ操作に要する時間を考慮し、線形予測によりパン・チルト操作後の侵入者の画像中心点を予測する(図4の画面43からの予測結果を画面44で付加した白矢印及び予測中心点にて示す)。
このようにして予測された位置(予測中心点)をtarget_x(target_y)として、式(1)に適用し、得られるパン・チルト値で制御操作を行うことにより、真の画像中心点に近い位置で侵入者を捉えることができる。
This prediction is performed based on the position and movement of the intruder detected by the intruder detection unit 206. That is, if there is an intruder who is moving after the pan / tilt operation based on the center point of the rectangular image of the difference image representing the position of the intruder described in <Intruder detection> and the movement (moving direction and speed) of the intruder. By finding the predicted position. If the example of FIG. 4 shown above is drawn, the position of the intruder obtained as the center point of the rectangle of the difference image (the rectangle shown in the screens 42a and 42b in FIG. 4) and two difference images obtained from three frames will be shown. This is based on the moving direction and speed of the intruder represented by the variation of the coordinate value of the rectangular center point (arrow shown on the screen 43 in FIG. 4).
The position prediction performed based on the position, moving direction, and speed of the intruder takes into account the time required for the PTZ operation confirmed by tests and simulations, for example, and determines the image center point of the intruder after the pan / tilt operation by linear prediction. Prediction is performed (the prediction result from the screen 43 in FIG. 4 is indicated by a white arrow and a prediction center point added on the screen 44).
The position predicted in this way (predicted center point) is set to target_x (target_y) and applied to the equation (1), and the control operation is performed with the obtained pan / tilt value, whereby the position close to the true image center point Can capture intruders.

“ズーム値”
ズーム調整は、侵入者がフレームアウトせず、長く画面にとどまるようにし、かつ高解像度で捉えるために行う。ここでは、次に示す3つの動作形態による。
第1は、一人の侵入者を捉えている場合に、侵入者の移動速度に応じて画角(ズーム値)を調整する形態で、基本的には、移動速度が速ければ、ズームダウンし、遅ければズームアップする。
第2は、一人の侵入者を捉えている場合に、侵入者の移動方向が所定量を超えて変化したことを条件に画角を拡大、即ちズームダウンする調整を行う形態である。
第3は、複数の侵入者を検知した場合に、これらの侵入者がフレームアウトせず、画面に納まるように画角を調整する形態である。
“Zoom value”
The zoom adjustment is performed so that the intruder does not go out of the frame, stays on the screen for a long time, and captures with high resolution. Here, the following three operation modes are used.
First, when one intruder is captured, the angle of view (zoom value) is adjusted according to the moving speed of the intruder. Basically, if the moving speed is high, the zoom is reduced. Zoom in if you are late.
The second is a form in which when one intruder is captured, the angle of view is enlarged, that is, zoomed down, on the condition that the moving direction of the intruder has changed beyond a predetermined amount.
The third is a mode in which when a plurality of intruders are detected, the angle of view is adjusted so that these intruders are not out of frame but fit on the screen.

ズーム値は、侵入者を画像上どのくらいの画素数で撮りたいかによって決定する。
求めるズーム値(:ZOOM)は、下記式(2)に基づいて算出する。
now_size:now_zoom=after_size:ZOOM・・・式(2)
上記式(2)において、
now_size:現在撮っている侵入者の画素サイズ
now_zoom:現在のズーム値(画角)
after_size:ズーム後に撮ろうとする侵入者の画素サイズ
ZOOM:求めるズーム値
なお、上記式(2)によりズーム値を算出する場合、撮ろうとする侵入者の画素サイズは、画像サイズ(設定等の変更がない限り不変量)の1/xと表す。
上記第1〜3の形態でズーム調整を行うためのズーム値を上記式(2)により算出し、算出したズーム値を制御目標値としてカメラ101を操作する。
The zoom value is determined by how many pixels on the image the intruder wants to take.
The desired zoom value (: ZOOM) is calculated based on the following equation (2).
now_size: now_zoom = after_size: ZOOM ... Formula (2)
In the above formula (2),
now_size: Pixel size of the intruder currently taking
now_zoom: Current zoom value (view angle)
after_size: Pixel size of the intruder trying to take after zooming
ZOOM: desired zoom value When calculating the zoom value according to the above equation (2), the pixel size of the intruder to be photographed is expressed as 1 / x of the image size (unchangeable unless setting is changed).
A zoom value for performing zoom adjustment in the first to third embodiments is calculated by the above equation (2), and the camera 101 is operated using the calculated zoom value as a control target value.

ここで、図5を参照して上記第1の形態でズーム調整を行う際の実施例を説明する。
図5は、侵入者(移動体)の移動速度の違いに応じてズーム値の設定を変更するPTZカメラのズーム操作を説明する図で、(A)は普通の速度の場合、又(B)はより高速の場合を示す。
図5において、撮影エリア501の画面51a,51bは、カメラ101の静止時に時間軸に沿って順次に撮影された画面である。
画面51aに入ってきた侵入者(移動体)は、次の画面51bでは移動しているので、これらのフレーム間差分をとると、画面52における差分画像が得られる。ここで、差分画像から同一侵入者によるものと認識した画像を囲む矩形(以下「ズーム対象矩形」という)を求めると、ズーム対象矩形の縦横の長さは、垂直・水平方向の移動速度に比例した長さになる。そこで、現在撮っている侵入者の画素サイズとして、ズーム対象矩形の縦横の長さのうちの長い方を選択して、上記式(2)にもとづいて求めるズーム値(:ZOOM)を算出する。なお、算出したズーム値もしくは差分を囲む矩形のサイズが所定の閾値以下の場合、操作の対象としないようにして、作動の安定化を図る。
Here, with reference to FIG. 5, an embodiment when performing zoom adjustment in the first mode will be described.
FIG. 5 is a diagram for explaining the zoom operation of the PTZ camera in which the setting of the zoom value is changed according to the difference in moving speed of the intruder (moving body). FIG. 5A shows the normal speed, and FIG. Indicates a faster case.
In FIG. 5, screens 51 a and 51 b in the shooting area 501 are screens that are sequentially shot along the time axis when the camera 101 is stationary.
Since the intruder (moving body) that has entered the screen 51a is moving on the next screen 51b, a difference image on the screen 52 is obtained when these inter-frame differences are taken. Here, when a rectangle surrounding an image recognized as being caused by the same intruder from the difference image (hereinafter referred to as “zoom target rectangle”) is obtained, the vertical and horizontal lengths of the zoom target rectangle are proportional to the moving speed in the vertical and horizontal directions. It becomes the length. Therefore, the longer one of the vertical and horizontal lengths of the zoom target rectangle is selected as the pixel size of the intruder currently shooting, and the zoom value (: ZOOM) obtained based on the above equation (2) is calculated. When the calculated zoom value or the size of the rectangle surrounding the difference is equal to or smaller than a predetermined threshold value, the operation is stabilized so that the operation is not performed.

図5(A)の普通の速度の場合、画面51aに入ってきた侵入者(移動体)は、次の画面51bではそれほど移動していないので、やや縦長のズーム対象矩形になるので、縦の長さを選択して、これが画像サイズの1/xの長さになるようにずる。図示の例では、1/xがほぼ2/3であるから、ズームアップ(画角が縮小)されている。
他方、図5(B)のより高速の場合、画面51aに入ってきた侵入者(移動体)は、次の画面51bでは水平方向にかなり移動しているので、横長のズーム対象矩形になるので、横の長さを選択して、これが画像サイズの1/xの長さになるようにずる。なお、図示の例では、1/xがほぼ2/3であるから、ズームダウン(画角が拡大)されている。
上記のようにして、侵入者の移動速度に応じて、ズームアップ・ダウンを可能にするズーム値を算出し、算出したズーム値を制御目標値として、カメラ101にPTZ命令として送る。
In the case of the normal speed in FIG. 5A, since the intruder (moving body) that has entered the screen 51a has not moved so much on the next screen 51b, it becomes a slightly elongated rectangle to be zoomed. Select a length and shift it to be 1 / x the image size. In the illustrated example, since 1 / x is approximately 2/3, the zoom is increased (the angle of view is reduced).
On the other hand, in the case of the higher speed in FIG. 5B, the intruder (moving body) that has entered the screen 51a has moved considerably in the horizontal direction on the next screen 51b, and thus becomes a horizontally elongated rectangle to be zoomed. , Select the horizontal length and shift it to be 1 / x the image size. In the example shown in the figure, 1 / x is approximately 2/3, so that the zoom is reduced (the angle of view is enlarged).
As described above, a zoom value that enables zoom-up / down is calculated according to the moving speed of the intruder, and the calculated zoom value is sent as a control target value to the camera 101 as a PTZ command.

ここで、図6を参照して第2の形態でズーム調整を行う際の実施例を説明する。
図6は、侵入者(移動体)の動きに応じてズーム値を変更するPTZカメラのズーム操作を説明する図である。
図6において、撮影エリア601の画面61a,61b,61c,61d,61e,61f,61g,61hは、時間軸に沿って順次に撮影された画面である。ただし、画面61d及び61gは、PTZ操作中であり、侵入者検知を行わず、新たなズーム値を求めることもない、という点で無意味な画面であることを示しており、これ以外の画面は、侵入者検知に用いるカメラ101の静止時の画面である。また、画面61a〜61eのズーム操作は、図5で説明した第1の形態でズーム調整を行う場合を示し、画面61e〜61hのズーム操作は、第2の形態でズーム調整を行う場合を示すものである。
Here, an example when performing zoom adjustment in the second mode will be described with reference to FIG.
FIG. 6 is a diagram for explaining the zoom operation of the PTZ camera that changes the zoom value according to the movement of the intruder (moving body).
In FIG. 6, screens 61a, 61b, 61c, 61d, 61e, 61f, 61g, and 61h in the shooting area 601 are screens that are sequentially shot along the time axis. However, the screens 61d and 61g indicate that the screens are meaningless in that the PTZ operation is being performed, intruder detection is not performed, and a new zoom value is not obtained. Is a screen when the camera 101 used for intruder detection is stationary. The zoom operations on the screens 61a to 61e show the case where the zoom adjustment is performed in the first form described in FIG. 5, and the zoom operations on the screens 61e to 61h show the case where the zoom adjustment is performed in the second form. Is.

画面61aに入ってきた侵入者(移動体)は、後続する画面61b,61cでは移動しているので、これらのフレーム間差分をとると、画面62a,62bにおける差分画像が得られる。この3フレーム分の差分画像から侵入者の移動方向や、条件によっては、位置予測に用いられて侵入者の位置座標が求められ、上述のようにパン・チルト値が算出される。なお、このとき求めた移動方向等の侵入者の動きや侵入者の位置座標(予測値を含む)は、後段の処理に用いるために保存される。
また、図示の例では、画面62bの侵入者の動きからPTZ操作の実行条件が満たされたと判断され、この画面における差分画像を囲む矩形(ズーム対象矩形)における縦の長さに基づいて算出したズーム値に従いズームアップ操作(図5(A)、参照)が行われ、画面61eが得られる。
Since the intruder (moving body) that has entered the screen 61a is moving on the subsequent screens 61b and 61c, a difference image on the screens 62a and 62b is obtained when these inter-frame differences are taken. Depending on the moving direction and conditions of the intruder from the difference image for three frames, the position coordinates of the intruder are obtained by using the position prediction, and the pan / tilt value is calculated as described above. The movement of the intruder such as the moving direction and the position coordinates (including the predicted value) of the intruder obtained at this time are stored for use in subsequent processing.
In the illustrated example, it is determined that the execution condition of the PTZ operation is satisfied from the movement of the intruder on the screen 62b, and the calculation is performed based on the vertical length of the rectangle (zoom target rectangle) surrounding the difference image on this screen. A zoom-up operation (see FIG. 5A) is performed according to the zoom value, and a screen 61e is obtained.

ズームアップ操作を伴うPTZ操作が終わり、カメラ101が静止すると、侵入者の検知が、上述と同様に、画面61e,61fのフレーム間差分をとり得られる差分画像をもとに行われる。
このときの検知結果のうち、差分画像を囲む矩形(ズーム対象矩形)の長さに基づいて算出されるズーム値に従うズーム操作(図5、参照)は、図6の画面62cに示す例では、この矩形の横の長さが目標の設定値となっているので、ズーム操作は不要となる。
ただ、このときの検知結果から、侵入者の移動方向が所定量を超えて変化していると判定された場合には、第2の形態でズーム調整を行う。即ち、画角を拡大、即ちズームダウンするためのズーム値を制御目標値として定める。
When the PTZ operation accompanied by the zoom-up operation is finished and the camera 101 is stationary, the intruder is detected based on the difference image that can obtain the inter-frame difference between the screens 61e and 61f as described above.
Among the detection results at this time, the zoom operation (see FIG. 5) according to the zoom value calculated based on the length of the rectangle (zoom target rectangle) surrounding the difference image is an example shown in the screen 62c in FIG. Since the horizontal length of the rectangle is the target set value, the zoom operation is not necessary.
However, if it is determined from the detection result at this time that the moving direction of the intruder has changed beyond a predetermined amount, zoom adjustment is performed in the second mode. That is, a zoom value for enlarging the view angle, that is, zooming down is determined as a control target value.

侵入者の移動方向の変化は、次のようにして求める。先ず、上述の侵入者の動き検知と同様の方法で画面62cに示す差分画像を囲む矩形を得、この矩形の中心点(座標)を求め、前回の差分画像を対象に求めた矩形の中心点(座標)との変化から、現在の侵入者の移動方向を求めることができる。次いで、求めた現在の侵入者の移動方向と、前回に求め、保存しておいた侵入者の移動方向の変化が所定量を超えているか否かを確認する。
この結果、侵入者の移動方向が所定量を超えて変化していれば、侵入者が急に移動方向を変更したとみなす。この場合、捉えている侵入者がフレームアウトする可能性が高まるので、現在のズーム値より所定量小さい値を制御目標値として定め、フレームアウトを防ぐ。
図6の画面62cに示す例では、画面62bで求めた侵入者の移動方向(図中矢印にて示す)が急に画面62cに示すように変更されているので、上記のようにして定めたズーム値に従いズームダウン操作が行われ、画面61hが得られる。
The change in the direction of movement of the intruder is obtained as follows. First, a rectangle surrounding the difference image shown on the screen 62c is obtained in the same manner as the above-described intruder motion detection, the center point (coordinates) of this rectangle is obtained, and the center point of the rectangle obtained from the previous difference image as a target. From the change from (coordinates), the current moving direction of the intruder can be obtained. Next, it is confirmed whether or not the change in the movement direction of the current intruder obtained and the change in the movement direction of the intruder previously obtained and stored exceed a predetermined amount.
As a result, if the moving direction of the intruder has changed beyond a predetermined amount, it is considered that the intruder has suddenly changed the moving direction. In this case, since the possibility that the intruder who captures the frame out increases, a value smaller than the current zoom value by a predetermined amount is set as the control target value to prevent the frame out.
In the example shown on the screen 62c in FIG. 6, the moving direction (indicated by an arrow in the figure) of the intruder obtained on the screen 62b is suddenly changed as shown on the screen 62c. A zoom-down operation is performed according to the zoom value, and a screen 61h is obtained.

また、図7を参照して第3の形態でズーム調整を行う際の実施例を説明する。
図7は、複数の侵入者(移動体)を検知した場合に、これらの侵入者がフレームアウトせず、画面に納まるように、ズーム値を変更するPTZカメラのズーム操作を説明する図である。
図7において、撮影エリア701の画面71a,71b,71c,71dは、時間軸に沿って順次に撮影された画面である。ただし、画面71cは、PTZ操作中であり、侵入者検知を行わず、新たなズーム値を求めることもない、という点で無意味な画面であることを示しており、これ以外の画面は、侵入者検知に用いるカメラ101の静止時の画面である。
画面71aに入ってきた侵入者(移動体)は移動しているので、次画面71bとのフレーム間差分をとると、画面72における差分画像が得られ、複数の侵入者の存在を認識する(後述の図11の侵入者検知処理フロー、参照)。
In addition, an embodiment when performing zoom adjustment in the third mode will be described with reference to FIG.
FIG. 7 is a diagram for explaining the zoom operation of the PTZ camera that changes the zoom value so that when a plurality of intruders (moving bodies) are detected, these intruders do not go out of the frame and fit on the screen. .
In FIG. 7, screens 71a, 71b, 71c, and 71d in the shooting area 701 are screens that are sequentially shot along the time axis. However, the screen 71c indicates that the screen is meaningless in that the PTZ operation is being performed, intruder detection is not performed, and a new zoom value is not obtained. It is a screen when the camera 101 used for intruder detection is stationary.
Since the intruder (moving body) that has entered the screen 71a is moving, when the inter-frame difference from the next screen 71b is taken, a difference image on the screen 72 is obtained and the presence of a plurality of intruders is recognized ( (See the intruder detection process flow of FIG. 11 described later).

複数の侵入者の差分画像に対しては、画面に一人の侵入者だけが存在する場合に行う、侵入者の差分画像を囲む矩形をもとにズーム値を算出する上述の処理では、侵入者全てを捉えることができない。
そこで、複数の侵入者の全てがズーム操作後に画面に納まるズーム値を制御目標値として算出する。
算出方法は、図7の画面72における複数侵入者の差分画像の全てを囲む矩形をズーム対象矩形として求め、この矩形をもとに、上述の“パン・チルト値”に示した算出方法及び第1の形態(図5、参照)で示したズーム値の算出方法を適用する。
このようにして、制御目標値としてPTZ値を算出し、カメラ101のPTZ操作を行うことにより、複数の侵入者全てを画面に捉えることができる。図7に示す例では、画面72で求めた差分を囲む矩形の中心を画面の中心とするパン・チルト操作と、前記ズーム対象矩形を所定のサイズで撮るズーム操作が行われ、画面71dが得られる。
For the difference images of a plurality of intruders, the above-described processing for calculating the zoom value based on the rectangle surrounding the intruder difference image is performed when only one intruder exists on the screen. I can't catch everything.
Therefore, the zoom value that fits on the screen after the zoom operation by all of the intruders is calculated as the control target value.
The calculation method obtains a rectangle surrounding all the difference images of a plurality of intruders on the screen 72 of FIG. 7 as a zoom target rectangle, and based on this rectangle, the calculation method and the first method shown in the “pan / tilt value” described above. The method of calculating the zoom value shown in the first form (see FIG. 5) is applied.
In this way, by calculating the PTZ value as the control target value and performing the PTZ operation of the camera 101, it is possible to capture all the intruders on the screen. In the example shown in FIG. 7, a pan / tilt operation is performed with the center of the rectangle enclosing the difference obtained on the screen 72 as the center of the screen, and a zoom operation for capturing the zoom target rectangle with a predetermined size is performed to obtain the screen 71d. It is done.

「PTZ操作」
次に、カメラ101をPTZ操作する際の処理・制御手順を、制御フローの1例を示す図8〜12に基づいて説明する。
侵入者監視システム100(図1)のPTZカメラ101、サーバ端末103に電源が投入され、ネットワーク107の接続が確認され、システムが動作可能な状態になったところで、図8の制御フローが起動される。
この制御フローでは、起動時に、先ず、カメラ101からPTZ値の上限値をカメラ固有の動作条件として取得する(ステップS101)。このPTZ値の上限値は、カメラを動作条件の範囲内で作動させることにより、誤操作や故障を避けるために用いる。
次に、PTZ値の初期値(監視開始位置)を設定する(ステップS102)。例えば、最大の画角で、撮影可能なフィールドの中央を指向する設定で撮影動作を開始させるようにする。
"PTZ operation"
Next, processing / control procedures when the camera 101 is operated for PTZ will be described with reference to FIGS.
When the PTZ camera 101 and the server terminal 103 of the intruder monitoring system 100 (FIG. 1) are powered on, the connection of the network 107 is confirmed, and the system is ready for operation, the control flow of FIG. 8 is started. The
In this control flow, at the time of activation, first, the upper limit value of the PTZ value is acquired from the camera 101 as an operation condition unique to the camera (step S101). The upper limit value of the PTZ value is used in order to avoid erroneous operation and failure by operating the camera within the range of operating conditions.
Next, an initial value (monitoring start position) of the PTZ value is set (step S102). For example, the shooting operation is started with a setting that is directed to the center of the field that can be shot at the maximum angle of view.

カメラ101が撮影を始めた後、撮影画像の侵入者検知(後述のステップS109)による検知結果を確認して、所定時間(設計条件として予め定められる)以上侵入者が検知されない状態が続いているか否かを確認する(ステップS103)。なお、このステップS103は、撮影開始時もしくは侵入者検知後に、侵入者検知の結果を調べることにより確認する。
ステップS103で侵入者が検知されない状態が所定時間以上続いた場合、即ち後述する撮影画像の侵入者検知によってこの検知結果を最初に得てスタートするタイマーが所定時間経過する間に何度か侵入者検知を行っても、侵入者が検知されない場合(ステップS103-YES)、広角固定へのパン・チルト操作を行う(ステップS104)。
After the camera 101 starts to shoot, check the detection result of the intruder detection (step S109 described later) of the photographed image, and whether the intruder is not detected for a predetermined time (predetermined as a design condition). It is confirmed whether or not (step S103). This step S103 is confirmed by examining the result of the intruder detection at the start of photographing or after detecting the intruder.
If the intruder is not detected in step S103 for a predetermined time or more, that is, the intruder is started several times while the timer that first obtains the detection result by detecting the intruder in the captured image described later and starts. If no intruder is detected even after the detection (step S103-YES), pan / tilt operation to fix the wide angle is performed (step S104).

このステップS104の広角固定へのパン・チルト操作によって得られる状態は、侵入者が画面にいない状態から初めて画面に侵入者を捉えるために待機する状態であり、通常、初期状態と同じであるから、撮影開始時のステップS102の設定に従ってカメラ101のPTZ操作をする。
即ち、広角固定へのパン・チルト操作の処理手順を示す図9のサブシーケンスに示すように、PTZ値の初期値(監視開始位置)を設定し(ステップS201)、設定したPTZ値をPTZ命令送出部208によって、PTZ命令として通信インタフェース部204を介してカメラ101へ送り(ステップS202)、送った後、本処理・制御フローの動作を管理するために、PTZ操作を行っているか否かを示すPTZ操作フラグをONにして、このサブシーケンスを抜ける。
The state obtained by the pan / tilt operation to fix the wide angle in step S104 is a state in which the intruder waits for capturing the intruder on the screen for the first time from the state where the intruder is not on the screen, and is usually the same as the initial state. Then, the PTZ operation of the camera 101 is performed according to the setting in step S102 at the start of shooting.
That is, as shown in the sub-sequence of FIG. 9 showing the processing procedure of pan / tilt operation to fix the wide angle, the initial value (monitoring start position) of the PTZ value is set (step S201), and the set PTZ value is set to the PTZ command. The sending unit 208 sends a PTZ command as a PTZ command to the camera 101 via the communication interface unit 204 (step S202). After sending the command, whether or not a PTZ operation is being performed to manage the operation of this processing / control flow is determined. The PTZ operation flag shown is turned ON to exit this subsequence.

広角固定へのパン・チルト操作(ステップS104)を行った後、もしくは侵入者が検知されない状態が続いていても所定時間が経過していない場合(ステップS103-NO)に、画像受信部202は、通信インタフェース部204を介してカメラ101の撮影画像を受け取る(ステップS105)。
次いで、受け取った撮影画像に対する侵入者検知等の処理を行うが、この処理の実行条件を確認する処理として、先ず、PTZ操作中であるか否かをPTZ操作フラグのON/OFFによって確認する(ステップS106)。
ステップS106でPTZ操作フラグを確認し、フラグがOFFの場合(ステップS106-NO)、直ちに侵入者検知(ステップS109)を行う。なお、侵入者検知については、後記で詳細に説明する。
After performing the pan / tilt operation to fix the wide angle (step S104), or when the predetermined time has not elapsed (NO in step S103) even if the intruder is not detected, the image receiving unit 202 Then, the captured image of the camera 101 is received via the communication interface unit 204 (step S105).
Next, processing such as intruder detection is performed on the received photographed image. As processing for confirming the execution condition of this processing, first, whether or not the PTZ operation is being performed is confirmed by ON / OFF of the PTZ operation flag ( Step S106).
In step S106, the PTZ operation flag is confirmed. If the flag is OFF (step S106-NO), intruder detection is immediately performed (step S109). Intruder detection will be described in detail later.

他方、PTZ操作フラグを確認し、フラグがONの場合(ステップS106-YES)、カメラ静止判定を行う(ステップS107)。このステップは、カメラ101が静止状態にあることをサーバ端末103自身で確認して、撮影画面の侵入者を検知する画像処理を実行するために行う。カメラの静止判定は、カメラ静止判定部205が、撮影画像の外周エリアについて求めたフレーム間差分をもとに判定する(上述の<カメラ静止判定>の説明、参照)。
カメラ静止判定の処理手順は、図10のサブシーケンスに従って行う。図10のシーケンスによると、先ず、処理対象とする現在受信している撮影画像の外周エリアのフレーム間差分をとる(ステップS301)。
On the other hand, the PTZ operation flag is confirmed, and if the flag is ON (step S106-YES), camera stillness determination is performed (step S107). This step is performed to confirm that the camera 101 is in a stationary state by the server terminal 103 itself and to execute image processing for detecting an intruder on the shooting screen. The camera stillness determination is performed based on the interframe difference obtained by the camera stillness determination unit 205 for the outer peripheral area of the captured image (see the description of <Camera Stillness Determination> above).
The processing procedure of camera stillness determination is performed according to the subsequence of FIG. According to the sequence of FIG. 10, first, the inter-frame difference in the outer peripheral area of the currently received captured image to be processed is obtained (step S301).

次に、求めた差分画像の大きさ(面積)を所定の判定基準値と比べ、基準値以下であるか否かを判断する(ステップS302)。
ここで、基準値以下である場合に(ステップS302-YES)、静止していると判定し、広角固定へのパン・チルト操作(図9)でONにしたPTZ操作フラグをOFFにして(ステップS303)、このサブシーケンスを抜ける。また、基準値を超えている場合に(ステップS302-NO)、PTZ操作中であると判定し、広角固定へのパン・チルト操作(図9)でONにしたPTZ操作フラグをそのままにして、このサブシーケンスを抜ける。
カメラ静止判定のサブシーケンスを通した後、再びPTZ操作中であるか否かをPTZ操作フラグのON/OFFによって確認する(ステップS108)。これは、未だPTZ操作中である場合に対応するためで、操作フラグがONである場合には(ステップS108-YES)、後続する撮影画像に対する静止判定を行うためにステップS105に戻す。
Next, the size (area) of the obtained difference image is compared with a predetermined determination reference value, and it is determined whether or not it is equal to or less than the reference value (step S302).
Here, when it is below the reference value (step S302-YES), it is determined that the camera is stationary, and the PTZ operation flag turned on by the pan / tilt operation (FIG. 9) to fix the wide angle is turned off (step S302). S303), this subsequence is exited. If the reference value is exceeded (step S302-NO), it is determined that the PTZ operation is being performed, and the PTZ operation flag turned ON by the pan / tilt operation to fix the wide angle (FIG. 9) is left as it is. Exit this subsequence.
After passing through the camera stillness determination sub-sequence, whether or not the PTZ operation is being performed is confirmed again by ON / OFF of the PTZ operation flag (step S108). This corresponds to the case where the PTZ operation is still in progress. When the operation flag is ON (step S108-YES), the process returns to step S105 in order to perform stillness determination on the subsequent captured image.

他方、ステップS108で操作フラグがOFFである場合には(ステップS108-NO)、受け取った撮影画像に対する侵入者検知処理を行う(ステップS109)。
この侵入者検知処理は、侵入者検知部206が、撮影画像について求めたフレーム間差分をもとに、target_x,y座標(侵入者の現位置座標)、ズーム対象矩形等を検知結果として求める処理である(上述の〈侵入者検知〉の説明、参照)。
侵入者検知処理の手順は、図11のサブシーケンスに従って行う。図11のシーケンスによると、先ず、時系列に連なる撮影画像のフレーム間差分をとる(ステップS401)。
フレーム間差分をとった結果、全く差分が生じない場合もあり得ることから、次に、差分画像が得られたか否かを確認する(ステップS402)。ここで、差分画像が得られない場合(ステップS402-NO)、このサブシーケンスの後段の処理をパスする。このように、後段の処理を行わずにこのサブシーケンスをパスすることで、無駄な資源の消費を避けるようにする。
On the other hand, if the operation flag is OFF in step S108 (step S108-NO), an intruder detection process is performed on the received captured image (step S109).
This intruder detection process is a process in which the intruder detection unit 206 obtains target_x, y coordinates (intruder's current position coordinates), a zoom target rectangle, and the like as detection results based on the interframe difference obtained for the captured image. (See description of <Intruder Detection> above).
The procedure of the intruder detection process is performed according to the subsequence of FIG. According to the sequence of FIG. 11, first, the inter-frame difference of the captured images that are continuous in time series is taken (step S401).
As a result of taking the interframe difference, there may be a case where no difference occurs at all. Next, it is confirmed whether or not a difference image is obtained (step S402). If a difference image is not obtained (step S402-NO), the subsequent processing of this subsequence is passed. In this way, by passing this sub-sequence without performing subsequent processing, wasteful resource consumption is avoided.

ステップS402で差分画像が得られた場合(ステップS402-YES)、得られた差分画像にラベリング処理を施す(ステップS403)。ラベリングは、同一データ値を持つ画素(2値化処理した画像の場合、白か黒の画素)を連結させた連結画素領域単位(画素が連結し、1かたまりとなった領域、この実施形態では各侵入者がこの領域に含まれる)に画像を分け、領域ごとに領域を識別するラベルを付し、管理情報として用いる。
次いで、ステップS403でラベルを付した連結画素領域から処理対象の侵入者のみを抽出するためにノイズを除去する(ステップS404)。例えば、孤立した小さな領域をノイズとして除去する方法を採用することができる。
この後、ステップS404の処理で得られた処理対象とする侵入者の差分画像をもとに処理対象矩形を算出する(ステップS405)。ここで求める処理対象矩形は、同一侵入者の差分画像と認識される画像の単位で、画像に外接する矩形の位置(例えば中心位置の座標)と大きさ(縦・横の長さ)を算定する。
When a difference image is obtained in step S402 (step S402-YES), a labeling process is performed on the obtained difference image (step S403). Labeling is a connected pixel area unit (an area where pixels are connected to form one cluster, in which pixels having the same data value (white or black pixels in the case of a binarized image) are connected, in this embodiment. Each intruder is included in this area), and a label for identifying the area is attached to each area and used as management information.
Next, noise is removed in order to extract only the intruder to be processed from the connected pixel region labeled in step S403 (step S404). For example, a method of removing an isolated small area as noise can be employed.
Thereafter, a processing target rectangle is calculated based on the difference image of the intruder as the processing target obtained in the processing of step S404 (step S405). The processing target rectangle obtained here is a unit of an image recognized as a difference image of the same intruder, and calculates the position (for example, coordinates of the center position) and size (vertical / horizontal length) of the rectangle circumscribing the image. To do.

なお、フレーム間差分により得た侵入者の差分画像が1かたまりであれば、同一侵入者の画像と認識して問題がないが、複数のかたまりの差分画像が得られた場合、侵入者を正しく認識することが困難になる場合がある。この場合には、例えば、3フレームといったように多数のフレームにわたる差分をとることにより、侵入者の動きを予測し、予測した動きに基づいて複数のかたまりを関係付けることができる。つまり、この関係付けから、同一侵入者の差分画像であるか、別の侵入者の差分画像であるかを判断することができ、同一侵入者の差分画像であり、画面に1つであれば、これらの画像を囲む矩形により図6に例示したPTZ操作を行うための矩形を算出し、他方、複数侵入者の差分画像であれば、これらの画像を囲む矩形により図7に例示した複数侵入者に対応するPTZ操作を行うための矩形を算出する。   If the difference image of the intruder obtained by the inter-frame difference is one block, there is no problem in recognizing it as the same intruder image. However, if a plurality of difference images are obtained, the intruder is correctly identified. It may be difficult to recognize. In this case, for example, by taking a difference over a large number of frames such as three frames, the movement of the intruder can be predicted, and a plurality of chunks can be related based on the predicted movement. That is, from this association, it can be determined whether the image is a difference image of the same intruder or a difference image of another intruder. The rectangle for performing the PTZ operation illustrated in FIG. 6 is calculated from the rectangles surrounding these images. On the other hand, in the case of a difference image of a plurality of intruders, the plurality of intrusions illustrated in FIG. 7 by the rectangles surrounding these images. A rectangle for performing the PTZ operation corresponding to the person is calculated.

ステップS405で処理対象矩形を算出した後、侵入者の移動方向を算出する(ステップS406)。侵入者の移動方向は、差分画像で求めた処理対象矩形の中心点を侵入者の位置を表す座標値とみなし、この中心点の座標値の変分を算出することで求めることができる(上述の〈侵入者検知〉における図4を参照した説明、参照)。
次いで、パン・チルト値を算出するために必要なtarget_x・target_y、即ちパン・チルト操作後に画面の中心で捉えようとする侵入者のx,y座標を求める。なお、本実施形態では、侵入者の動きからtarget_x・target_yを予測するので、ステップS406で求めた侵入者の移動方向を用いて予測値を得る(上述の“パン・チルト値”における図4を参照した説明、参照)。
ステップS405〜407でPTZ値の算出に必要な数値が得られるので、図11のサブシーケンスを抜ける。
After calculating the processing target rectangle in step S405, the moving direction of the intruder is calculated (step S406). The movement direction of the intruder can be obtained by regarding the center point of the processing target rectangle obtained from the difference image as a coordinate value representing the position of the intruder and calculating a variation of the coordinate value of the center point (described above). (See the description with reference to FIG. 4 in <Intruder Detection>).
Next, target_x · target_y necessary for calculating the pan / tilt value, that is, the x and y coordinates of the intruder to be captured at the center of the screen after the pan / tilt operation is obtained. In the present embodiment, target_x · target_y is predicted from the movement of the intruder, so that a predicted value is obtained using the moving direction of the intruder obtained in step S406 (see FIG. 4 for the above “pan / tilt value”). Referred explanation, see).
Since the numerical values necessary for calculating the PTZ value are obtained in steps S405 to 407, the sub-sequence of FIG. 11 is exited.

メイン制御フロー(図8)に戻ると、ステップS109で行った侵入者検知処理により侵入者が検知されない場合もあり得ることから、侵入者検知処理を行った後、侵入者が検知されたか否かを確認する(ステップS110)。ここで、侵入者が検知されない場合(ステップS110-NO)、後段の処理を行うことは意味がなくなるで、この場合には、ステップS103に戻し、再び侵入者が検知されない状態が続いているか否かを確認するステップからの処理を行う。
他方、侵入者が検知された場合(ステップS110-YES)、PTZ値を算出する処理を行う(ステップS111)。
このPTZ値の算出処理は、PTZ値算出部207が行う処理で、侵入者検知処理のサブシーケンス(図11)で得られた処理対象矩形、侵入者の動き(移動方向)及びtarget_x・target_yをもとに、カメラ101をPTZ操作するためのPTZ値を算出する処理である(上述の〈PTZ値算出〉の説明、参照)。
Returning to the main control flow (FIG. 8), since there may be cases where an intruder is not detected by the intruder detection process performed in step S109, whether or not an intruder has been detected after performing the intruder detection process. Is confirmed (step S110). If no intruder is detected (step S110-NO), it is meaningless to perform the subsequent processing. In this case, the process returns to step S103, and whether or not the intruder is detected again continues. The process from the step of confirming is performed.
On the other hand, when an intruder is detected (step S110-YES), a process for calculating a PTZ value is performed (step S111).
This PTZ value calculation process is a process performed by the PTZ value calculation unit 207. The processing target rectangle, the intruder movement (movement direction), and target_x · target_y obtained in the intruder detection process subsequence (FIG. 11) are calculated. This is a process for calculating a PTZ value for PTZ operation of the camera 101 (refer to <Description of <PTZ Value Calculation> above).

PTZ値算出処理の手順は、図12のサブシーケンスに従って行う。図12のシーケンスによると、先ず、カメラ101の現在の画角(ズーム値)を取得する(ステップS501)。現在の画角は、後段の制御目標となるパン・チルト値の算出及び画角(ズーム値)の算出に用いるために必要となる量である。なお、画角は、カメラ101側のPTZ制御系(不図示)が常にカメラのPTZの状態を検出しているので、この検出値をサーバ端末103側から取得し、現在値として保持する。   The procedure of the PTZ value calculation process is performed according to the subsequence of FIG. According to the sequence of FIG. 12, first, the current angle of view (zoom value) of the camera 101 is acquired (step S501). The current angle of view is an amount necessary for calculation of a pan / tilt value and a calculation of an angle of view (zoom value), which are control targets in the subsequent stage. Note that since the PTZ control system (not shown) on the camera 101 side always detects the PTZ state of the camera, the detected value is acquired from the server terminal 103 side and held as the current value.

次に、制御目標となるパン・チルト値の算出処理を行う(ステップS502)。パン値は、侵入者検知処理(図11)で求めたtarget_x及び上記ステップS501で取得したカメラ101の現在の水平画角をもとに、上述の〈PTZ値算出〉の“パン・チルト値”において示した式(1)に従って算出する。チルト値は、パン値と同様の方法でtarget_y及び垂直画角を基に算出する。
さらに、制御目標となるズーム値の算出処理を行う(ステップS503)。ズーム値は、侵入者検知処理(図11)で求めた処理対象矩形(ズーム対象矩形等)及び上記ステップS501で取得したカメラ101の現在の画角をもとに、上述の〈PTZ値算出〉の“ズーム値”において示した式(2)に従って算出する。
このようにPTZ値をそれぞれ算出して図12のサブシーケンスを抜ける。
Next, a pan / tilt value calculation process as a control target is performed (step S502). The pan value is calculated based on “target_x” obtained in the intruder detection process (FIG. 11) and the current horizontal angle of view of the camera 101 obtained in step S501. Is calculated according to the equation (1) shown in FIG. The tilt value is calculated based on target_y and the vertical angle of view in the same manner as the pan value.
Further, a zoom value calculation process as a control target is performed (step S503). The zoom value is calculated based on the processing target rectangle (zoom target rectangle or the like) obtained in the intruder detection process (FIG. 11) and the current angle of view of the camera 101 acquired in step S501. Is calculated according to the equation (2) shown in “Zoom value”.
In this way, the PTZ values are calculated, and the sub-sequence of FIG. 12 is exited.

メイン制御フロー(図8)に戻ると、ステップS111で算出したPTZ値による制御動作を実行するために、得られた値をPTZ命令としてカメラ101へ送信するが、その前に、適正な動作が行えるかPTZ値にチェックをかける。
先ず、制御目標値として得たPTZ値がカメラ101の可動範囲であるか否かを確認する(ステップS112)。カメラ101の可動範囲は、ステップS101でPTZ値の上限値を取得しているので、この上限値を超えるか否かを確認する。
ここで、制御目標値として得たPTZ値がPTZ値の上限値を超える場合は(ステップS112-NO)、正常な動作が得られないので、カメラ101に広角固定へのパン・チルト操作を行わせ、初期状態に戻し、侵入者検知を新たに始める。
Returning to the main control flow (FIG. 8), in order to execute the control operation based on the PTZ value calculated in step S111, the obtained value is transmitted to the camera 101 as a PTZ command. Check the PTZ value to see if it can be done.
First, it is confirmed whether or not the PTZ value obtained as the control target value is within the movable range of the camera 101 (step S112). Since the movable range of the camera 101 has acquired the upper limit value of the PTZ value in step S101, it is confirmed whether or not the upper limit value is exceeded.
Here, if the PTZ value obtained as the control target value exceeds the upper limit value of the PTZ value (step S112-NO), normal operation cannot be obtained, so the camera 101 is panned / tilted to a wide angle. Return to the initial state and start a new intruder detection.

これに対して、制御目標値として得たPTZ値がPTZ値の上限値を超えない場合は(ステップS112-YES)、正常な動作が得られるので、もう1つの動作条件を確認する。この動作条件は、ステップS111で算出したPTZ値と現在値との差が所定値以上あることを制御の実行条件とし、この条件を満たすか否かを確認する(ステップS113)。
ここで、算出したPTZ値と現在値との差が所定値以上なければ(ステップS113-NO)、算出したPTZ値はキャンセルし、即ちカメラ101への操作は行わず、侵入者検知を行うためにステップS105に戻す。これは、例えば、侵入者の移動速度が遅く、カメラ101を操作する効果があまりなく、無駄な動作になることや不安定な動作になることを回避するために行う。なお、このときには、PTZ操作フラグは、そのままOFFを保つようにして、直ちに侵入者検知を行えるようにする。
On the other hand, when the PTZ value obtained as the control target value does not exceed the upper limit value of the PTZ value (step S112-YES), normal operation is obtained, so another operating condition is confirmed. The operation condition is that the difference between the PTZ value calculated in step S111 and the current value is a predetermined value or more, and the control execution condition is checked to see if this condition is satisfied (step S113).
Here, if the difference between the calculated PTZ value and the current value is not equal to or greater than the predetermined value (step S113-NO), the calculated PTZ value is canceled, that is, the operation of the camera 101 is not performed and intruder detection is performed. Return to step S105. This is performed, for example, in order to prevent the movement speed of the intruder from being slow and not having the effect of operating the camera 101 so that the operation becomes useless or unstable. At this time, the PTZ operation flag is kept OFF so that intruder detection can be performed immediately.

他方、算出したPTZ値と現在値との差が所定値以上あれば(ステップS113-YES)、算出したPTZ値による制御を実行するので、PTZ命令送出部208は、通信インタフェース部204を介して、このPTZ値をPTZ命令としてカメラ101へ送信する(ステップS114)。
ステップS114でPTZ命令を送信した後、PTZ操作フラグをONにして(ステップS115)、侵入者検知を行うためにステップS105に戻す。PTZ操作フラグをONにする理由は、カメラ101が送信したPTZ命令に従う操作を行うことが分かっているので、侵入者検知(ステップS109)を行う過程でカメラ静止判定(ステップS107)を必要とするからである。
On the other hand, if the difference between the calculated PTZ value and the current value is greater than or equal to a predetermined value (step S113-YES), control based on the calculated PTZ value is executed, so the PTZ command sending unit 208 is connected via the communication interface unit 204. The PTZ value is transmitted to the camera 101 as a PTZ command (step S114).
After transmitting the PTZ command in step S114, the PTZ operation flag is turned ON (step S115), and the process returns to step S105 to detect intruders. The reason why the PTZ operation flag is set to ON is that it is known that the operation according to the PTZ command transmitted from the camera 101 is performed, and thus the camera stillness determination (step S107) is required in the process of performing the intruder detection (step S109). Because.

100・・侵入者(移動体)監視システム、101・・PTZカメラ、103・・サーバ端末、105・・表示端末、201・・制御部、202・・画像受信部、203・・画像記録部、204・・通信インタフェース部、205・・カメラ静止判定部、206・・侵入者検知部、207・・PTZ値算出部、208・・PTZ命令送出部、209・・バス。
100 ... Intruder (mobile) monitoring system 101 ... PTZ camera 103 ... Server terminal 105 ... Display terminal 201 ... Control unit 202 ... Image receiving unit 203 ... Image recording unit 204... Communication interface unit 205 205 Camera stillness determination unit 206 Intruder detection unit 207 PTZ value calculation unit 208 PTZ command sending unit 209 Bus

Claims (7)

動画を撮るPTZカメラと、PTZカメラの撮影画像を処理し、画像面上に現れる移動体を検知する移動体検知手段と、PTZカメラのPTZ操作によって移動体を捉える制御を前記移動体検知手段の検知結果に基づいて行う制御手段を有する移動体撮像装置であって、
PTZカメラが静止状態にあることを判定するカメラ静止判定手段を備え、
前記制御手段は、前記カメラ静止判定手段によって静止状態が判定されたときに、PTZカメラの画角及び前記移動体検知手段が画像面上で検出した捕捉対象の移動体の位置情報に基づいて推測した制御目標位置に対応するパン・チルト値、並びに前記移動体検知手段が画像面上で検出した捕捉対象の移動体の差分画像に基づいて定めた制御目標画角に対応するズーム値によって前記PTZ操作を行う
ことを特徴とする移動体撮像装置。
A PTZ camera that takes a video, a moving body detection unit that processes a captured image of the PTZ camera and detects a moving body that appears on the image plane, and a control that captures the moving body by a PTZ operation of the PTZ camera. A mobile imaging device having a control means for performing based on a detection result,
Camera stationary determination means for determining that the PTZ camera is stationary,
The control means estimates based on the angle of view of the PTZ camera and the position information of the moving object to be captured detected on the image plane by the moving object detection means when the camera stationary determination means determines the stationary state. The PTZ according to the pan / tilt value corresponding to the control target position and the zoom value corresponding to the control target angle of view determined based on the difference image of the moving object to be captured detected on the image plane by the moving object detection means. A moving body imaging apparatus characterized by performing an operation.
請求項1に記載された移動体撮像装置において、
前記カメラ静止判定手段は、PTZカメラが撮る画像面における外周エリアのフレーム間差分をとることにより得られる画像の面積が所定値より小さいことを静止判定の条件とした
ことを特徴とする移動体撮像装置。
The moving body imaging device according to claim 1,
The camera stillness determination means is characterized in that a stillness determination condition is that an area of an image obtained by taking an inter-frame difference in an outer peripheral area on an image plane taken by a PTZ camera is smaller than a predetermined value. apparatus.
請求項1に記載された移動体撮像装置において、
前記制御手段は、フレーム間差分をとることにより得られる移動体画像を囲む外接矩形の中心位置の時系列変化から、パン・チルト値を得るための前記制御目標位置を推測する
ことを特徴とする移動体撮像装置。
The moving body imaging device according to claim 1,
The control means estimates the control target position for obtaining a pan / tilt value from a time-series change of a center position of a circumscribed rectangle surrounding a moving body image obtained by calculating a difference between frames. Mobile body imaging device.
請求項1乃至3のいずれかに記載された移動体撮像装置において、
前記制御手段は、フレーム間差分をとることにより得られる移動体画像を囲む外接矩形の縦横の長さの長い方の画素サイズがズーム後の画素サイズとして求める所定値となるように、前記制御目標画角を定める
ことを特徴とする移動体撮像装置。
The moving body imaging apparatus according to any one of claims 1 to 3,
The control means is configured so that the longer pixel size of the circumscribed rectangle surrounding the moving body image obtained by taking the inter-frame difference becomes a predetermined value obtained as the pixel size after zooming. A moving body imaging apparatus characterized by determining an angle of view.
請求項1乃至4のいずれかに記載された移動体撮像装置において、
前記制御手段は、フレーム間差分をとることにより得られる移動体画像を囲む外接矩形の中心位置の時系列変化から推測する移動方向が所定量を超えて変化したことを条件に、前記制御目標画角を拡大する値に定める
ことを特徴とする移動体撮像装置。
In the moving body imaging device according to any one of claims 1 to 4,
The control means, on the condition that the moving direction estimated from the time series change of the center position of the circumscribed rectangle surrounding the moving body image obtained by taking the difference between frames has changed beyond a predetermined amount, the control target image. A moving body imaging apparatus characterized in that the angle is set to a value for enlarging the angle.
請求項1乃至5のいずれかに記載された移動体撮像装置において、
前記制御手段は、フレーム間差分をとることにより得られる複数の移動体がズーム後に画像面内に納まるように前記制御目標画角を定める
ことを特徴とする移動体撮像装置。
The moving body imaging device according to any one of claims 1 to 5,
The moving body imaging apparatus characterized in that the control means determines the control target angle of view so that a plurality of moving bodies obtained by taking inter-frame differences are within an image plane after zooming.
請求項1乃至6のいずれかに記載された移動体撮像装置において、
前記制御手段は、初期化動作として、所定広角ズーム値及び所定パン・チルト値によってPTZ操作を行うとともに、前記移動体検知手段によって所定時間以上移動体が検知されなかったときに、該初期化動作を行う
ことを特徴とする移動体撮像装置。
The moving body imaging device according to any one of claims 1 to 6,
As the initialization operation, the control means performs a PTZ operation with a predetermined wide-angle zoom value and a predetermined pan / tilt value, and performs the initialization operation when a moving body is not detected for a predetermined time or more by the moving body detection means. A moving body imaging apparatus characterized by performing:
JP2009224253A 2009-09-29 2009-09-29 Mobile imaging device Active JP5360403B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009224253A JP5360403B2 (en) 2009-09-29 2009-09-29 Mobile imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009224253A JP5360403B2 (en) 2009-09-29 2009-09-29 Mobile imaging device

Publications (2)

Publication Number Publication Date
JP2011077617A true JP2011077617A (en) 2011-04-14
JP5360403B2 JP5360403B2 (en) 2013-12-04

Family

ID=44021178

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009224253A Active JP5360403B2 (en) 2009-09-29 2009-09-29 Mobile imaging device

Country Status (1)

Country Link
JP (1) JP5360403B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017072986A (en) * 2015-10-07 2017-04-13 パナソニックIpマネジメント株式会社 Autonomous flying device, control method and program of autonomous flying device
JP2018107587A (en) * 2016-12-26 2018-07-05 株式会社日立国際電気 Monitoring system
JP2019075156A (en) * 2015-06-26 2019-05-16 ゲットアラート リミテッド Method, circuit, device, and system for registering and tracking multifactorial image characteristic and code executable by related computer
US10636129B2 (en) 2014-02-14 2020-04-28 Nec Corporation Wind motion threshold image analysis system
CN111276412A (en) * 2018-12-05 2020-06-12 株式会社迪思科 Center detection method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001076156A (en) * 1999-09-03 2001-03-23 Mitsubishi Electric Corp Device for monitoring image
JP2001285850A (en) * 2000-03-30 2001-10-12 Nec Corp Device and method for automatic following, and recording medium for recording automatic following program
JP2009177503A (en) * 2008-01-24 2009-08-06 Nikon Corp Imaging apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001076156A (en) * 1999-09-03 2001-03-23 Mitsubishi Electric Corp Device for monitoring image
JP2001285850A (en) * 2000-03-30 2001-10-12 Nec Corp Device and method for automatic following, and recording medium for recording automatic following program
JP2009177503A (en) * 2008-01-24 2009-08-06 Nikon Corp Imaging apparatus

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10636129B2 (en) 2014-02-14 2020-04-28 Nec Corporation Wind motion threshold image analysis system
US10706515B2 (en) 2014-02-14 2020-07-07 Nec Corporation Shadow removal video analysis system
US11398018B2 (en) 2014-02-14 2022-07-26 Nec Corporation Video shadow and motion removal system
JP2019075156A (en) * 2015-06-26 2019-05-16 ゲットアラート リミテッド Method, circuit, device, and system for registering and tracking multifactorial image characteristic and code executable by related computer
JP2017072986A (en) * 2015-10-07 2017-04-13 パナソニックIpマネジメント株式会社 Autonomous flying device, control method and program of autonomous flying device
CN107015568A (en) * 2015-10-07 2017-08-04 松下知识产权经营株式会社 The control method of autonomous flight device, autonomous flight device
US10353403B2 (en) 2015-10-07 2019-07-16 Panasonic Intellectual Property Management Co., Ltd. Autonomous flying device, control method of autonomous flying device, and non-transitory recording medium
JP2018107587A (en) * 2016-12-26 2018-07-05 株式会社日立国際電気 Monitoring system
CN111276412A (en) * 2018-12-05 2020-06-12 株式会社迪思科 Center detection method
CN111276412B (en) * 2018-12-05 2024-06-07 株式会社迪思科 Center detection method

Also Published As

Publication number Publication date
JP5360403B2 (en) 2013-12-04

Similar Documents

Publication Publication Date Title
JP4140591B2 (en) Imaging system and imaging method
JP4699040B2 (en) Automatic tracking control device, automatic tracking control method, program, and automatic tracking system
JP5810296B2 (en) Image display device and image display method
CN110072078B (en) Monitoring camera, control method of monitoring camera, and storage medium
JP6574645B2 (en) Control device for controlling imaging apparatus, control method for imaging apparatus, and program
JP2007208453A (en) Automatic tracking apparatus and method
KR20010085692A (en) Intruding object monitoring method and intruding object monitoring system
KR101187908B1 (en) Integrated surveillance system diplaying a plural of event images and method using the same
US20050052533A1 (en) Object tracking method and object tracking apparatus
JP2003284053A (en) Monitoring camera system and monitoring camera control device
JP5360403B2 (en) Mobile imaging device
JP4948294B2 (en) Imaging apparatus, imaging apparatus control method, and program
JP2008154189A (en) Imaging apparatus and imaging method
JP5677055B2 (en) Surveillance video display device
JP2010092092A (en) Image processing apparatus and image processing method
KR101685423B1 (en) Wide area survillance system and method of photographing a moving object
JP4444746B2 (en) Object tracking method and object tracking device
JP2000083243A (en) Image pickup device, image pickup system, imaging control method and storage medium
JP5188244B2 (en) Monitoring device and monitoring method
CN112492261A (en) Tracking shooting method and device and monitoring system
KR100761817B1 (en) A ccd camera system for effectively tracking a motion of objects and a method thereof
JP3828096B2 (en) Object tracking device
JP2007208659A (en) Cooperation camera system
JP4499514B2 (en) Object monitoring device and monitoring system
JP2012242970A (en) Image processing device and control method therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120705

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130527

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130722

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130820

R150 Certificate of patent or registration of utility model

Ref document number: 5360403

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150