JP6580213B1 - Image processing apparatus, photographing apparatus, image processing method, and program - Google Patents

Image processing apparatus, photographing apparatus, image processing method, and program Download PDF

Info

Publication number
JP6580213B1
JP6580213B1 JP2018108462A JP2018108462A JP6580213B1 JP 6580213 B1 JP6580213 B1 JP 6580213B1 JP 2018108462 A JP2018108462 A JP 2018108462A JP 2018108462 A JP2018108462 A JP 2018108462A JP 6580213 B1 JP6580213 B1 JP 6580213B1
Authority
JP
Japan
Prior art keywords
zoom magnification
image
photographing
shooting
unit
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.)
Active
Application number
JP2018108462A
Other languages
Japanese (ja)
Other versions
JP2019212090A (en
Inventor
倫彦 小野
倫彦 小野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2018108462A priority Critical patent/JP6580213B1/en
Application granted granted Critical
Publication of JP6580213B1 publication Critical patent/JP6580213B1/en
Publication of JP2019212090A publication Critical patent/JP2019212090A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

【課題】 撮影装置のズーム倍率および撮影方向を制御しつつ行う人数カウントにおいて、適切なズーム倍率を自動で決定することを目的としている。【解決手段】 本発明は、所定の領域を複数の撮影領域に分けて撮影された画像から人物の数をカウントすることを特徴とし、画像に含まれる人物を検出する検出手段と、検出された人物の数をカウントするカウント手段と、撮影手段の撮影動作を制御する制御手段と、撮影手段のズーム倍率を決定する決定手段と、を有し、カウント手段は、ズーム倍率を段階的に変更することで撮影された、複数の画像の各々について人数をカウントし、決定手段は、カウントされた人数が最大となる画像の撮影時のズーム倍率に基づいて、撮影手段のズーム倍率を決定し、制御手段は、決定されたズーム倍率を用いて、他の撮影領域を撮影するように制御することを特徴とする。【選択図】 図9PROBLEM TO BE SOLVED: To automatically determine an appropriate zoom magnification in a count of people performed while controlling a zoom magnification and a photographing direction of a photographing apparatus. The present invention is characterized by counting the number of persons from an image captured by dividing a predetermined area into a plurality of imaging areas, and detecting means for detecting a person included in the image; A counting unit that counts the number of persons; a control unit that controls a shooting operation of the shooting unit; and a determination unit that determines a zoom magnification of the shooting unit. The counting unit changes the zoom magnification stepwise. The determination means counts the number of persons for each of the plurality of images taken, and the determination means determines and controls the zoom magnification of the photographing means based on the zoom magnification at the time of shooting the image with the maximum counted number of persons. The means is characterized in that control is performed so as to photograph another photographing region using the determined zoom magnification. [Selection] Figure 9

Description

本発明は、画像処理技術に関し、特に撮影装置が撮影した画像に含まれる人物をカウントする人数カウントの技術に関する。   The present invention relates to an image processing technique, and more particularly to a technique for counting the number of persons included in an image taken by a photographing apparatus.

従来から、駅のホームや小売店などで、ある領域に存在する人物の数をカウントしたいというニーズがあった。このようなニーズに対して、撮影装置が撮影した画像を解析することで画像内に映っている人物を検出し、その数をカウントする人数カウント技術がある。   Conventionally, there has been a need to count the number of persons existing in a certain area at a station platform or a retail store. In response to such needs, there is a person counting technique for detecting a person appearing in an image by analyzing the image taken by the photographing apparatus and counting the number of persons.

一方、スタジアムやコンサートホールなど、より広い領域に大勢の人物が集まるような場所においても、人物の数をカウントしたいという同様のニーズがある。しかし、できる限り広い領域が画角に収まるように、撮影装置のズーム倍率を低くして撮影した場合、撮影した画像に含まれる人物のサイズ(画素数)が小さくなってしまうことがある。   On the other hand, there is a similar need to count the number of people in a place where a large number of people gather in a wider area such as a stadium or a concert hall. However, when shooting is performed with the zoom magnification of the imaging device being lowered so that the largest possible area is within the angle of view, the size (number of pixels) of the person included in the captured image may be reduced.

ここで、一般的な人体検出技術において人体を検出するには、画像に映っている人体が一定のサイズ(画素数)以上である必要がある。しかし、広域での人数カウントを行う場合、撮影装置からみて奥行き方向には、人体検出が可能なサイズよりも小さいサイズで人物が分布する場合が考えられる。   Here, in order to detect a human body in a general human body detection technique, it is necessary that the human body shown in the image has a certain size (number of pixels) or more. However, when counting people in a wide area, there may be a case where people are distributed in the depth direction as viewed from the photographing apparatus with a size smaller than the size capable of detecting a human body.

こうした課題に対し、特許文献1ではネットワークカメラのプリセット機能を用いる方法が開示されている。特許文献1では、ネットワークカメラをパン・チルト・ズーム(以下、PTZと称す)制御して広域を巡回しつつ撮影することで、検出可能な人体サイズを保ちつつ領域全体の人数をカウントしている。   In order to deal with such problems, Patent Document 1 discloses a method using a preset function of a network camera. In Patent Document 1, the network camera is panned, tilted, and zoomed (hereinafter referred to as PTZ) and shot while traveling around a wide area, thereby counting the number of people in the entire area while maintaining a detectable human body size. .

特開2017−204838号公報JP 2017-204838 A

しかしながら、特許文献1では、プリセットの位置となる撮影場所ごとのズーム倍率をユーザーが予め設定しておく必要があり、奥行き方向に変化する人体のサイズを考慮しながら、適切なズーム倍率を設定する作業はユーザーにとって煩雑だった。   However, in Patent Document 1, it is necessary for the user to set in advance a zoom magnification for each shooting location that is a preset position, and an appropriate zoom magnification is set in consideration of the size of the human body that changes in the depth direction. The work was cumbersome for the user.

以上より、本発明は、撮影装置のズーム倍率および撮影方向を制御しつつ行う人数カウントにおいて、適切なズーム倍率を自動で決定することを目的としている。   As described above, an object of the present invention is to automatically determine an appropriate zoom magnification in counting the number of people while controlling the zoom magnification and the photographing direction of the photographing apparatus.

上記課題を解決するため、例えば、本発明の画像処理装置は以下の構成を備える。すなわち、撮影手段により所定の領域を複数の撮影領域に分けて撮影された画像から人物の数をカウントする画像処理装置であって、撮影された画像に含まれる人物を検出する検出手段と、前記検出手段が検出した人物の数をカウントするカウント手段と、前記撮影手段の撮影動作を制御する制御手段と、前記撮影手段のズーム倍率を決定する決定手段と、を有し、前記カウント手段は、ズーム倍率を段階的に変更することで撮影された、複数の画像の各々について人数をカウントし、前記決定手段は、前記カウント手段によりカウントされた人数が最大となる画像の撮影時のズーム倍率に基づいて、前記撮影手段のズーム倍率を決定し、前記制御手段は、決定された前記ズーム倍率を用いて、他の撮影領域を撮影するように制御することを特徴とする。   In order to solve the above problems, for example, an image processing apparatus of the present invention has the following configuration. That is, an image processing apparatus that counts the number of persons from an image captured by dividing a predetermined area into a plurality of imaging areas by an imaging unit, the detection unit detecting a person included in the captured image; A counting unit that counts the number of persons detected by the detecting unit; a control unit that controls a photographing operation of the photographing unit; and a determining unit that determines a zoom magnification of the photographing unit. The number of persons is counted for each of a plurality of images captured by changing the zoom magnification in stages, and the determining means sets the zoom magnification at the time of capturing an image with the maximum number of persons counted by the counting means. A zoom magnification of the photographing unit is determined based on the control unit, and the control unit performs control to photograph another photographing region using the determined zoom magnification. And butterflies.

本発明によれば、撮影装置のズーム倍率および撮影方向を制御しつつ行う人数カウントにおいて、適切なズーム倍率を自動で決定することができる。   According to the present invention, it is possible to automatically determine an appropriate zoom magnification in counting the number of people while controlling the zoom magnification and shooting direction of the photographing apparatus.

システム構成を示す模式図である。It is a schematic diagram which shows a system configuration. 画像処理装置および撮影装置のハードウェア構成を示す概略図である。It is the schematic which shows the hardware constitutions of an image processing apparatus and an imaging device. 撮影装置の外観図である。It is an external view of an imaging device. 撮影装置の機能ブロック図である。It is a functional block diagram of an imaging device. 画像処理装置の機能ブロック図である。It is a functional block diagram of an image processing apparatus. ズーム倍率を決定する処理を説明するための模式図である。It is a schematic diagram for demonstrating the process which determines zoom magnification. ズーム倍率を決定する処理を説明するための模式図である。It is a schematic diagram for demonstrating the process which determines zoom magnification. ズーム倍率を決定する処理を説明するための模式図である。It is a schematic diagram for demonstrating the process which determines zoom magnification. ズーム倍率を決定する処理のフローチャートである。It is a flowchart of the process which determines zoom magnification. 人数カウントの処理を説明するための模式図である。It is a schematic diagram for demonstrating the process of a people count. 人数カウントの処理のフローチャートである。It is a flowchart of a process of counting people. ズーム倍率を決定する処理を説明するための模式図である。It is a schematic diagram for demonstrating the process which determines zoom magnification. ズーム倍率を決定する処理のフローチャートである。It is a flowchart of the process which determines zoom magnification. 画像処理装置の一以上の機能を有する撮影装置およびクライアント装置の機能ブロック図である。It is a functional block diagram of an imaging device and a client device having one or more functions of an image processing device.

以下に、添付図面を参照しながら、本発明に係る実施形態について説明する。なお、以下の実施形態において示す構成は一例に過ぎず、図示された構成に限定されるものではない。   Embodiments according to the present invention will be described below with reference to the accompanying drawings. In addition, the structure shown in the following embodiment is only an example, and is not limited to the illustrated structure.

(実施形態1)
図1は、本実施形態に係るシステム構成を示す模式図である。画像処理装置100は、後述する画像処理を実行する装置である。なお、画像処理装置100は、例えば、後述する画像処理の機能を実現するためのプログラムがインストールされたパーソナルコンピュータである。
(Embodiment 1)
FIG. 1 is a schematic diagram showing a system configuration according to the present embodiment. The image processing apparatus 100 is an apparatus that executes image processing to be described later. The image processing apparatus 100 is, for example, a personal computer in which a program for realizing an image processing function described later is installed.

表示装置101は、画像処理装置100に接続され、撮影装置102から配信される画像データに基づく画像などを表示するディスプレイ等を含む。   The display device 101 is connected to the image processing device 100 and includes a display that displays an image based on image data distributed from the imaging device 102.

撮影装置102は、画像を撮影する装置であり、例えば、ネットワークを介して画像の画像データなどを送信できるネットワークカメラである。なお、本実施形態における撮影装置102は、PTZ(Pan Tilt Zoom)制御が可能である。記録装置103は、撮影装置102から送信された画像データなどを記録する。   The imaging apparatus 102 is an apparatus that captures an image. For example, the imaging apparatus 102 is a network camera that can transmit image data of an image via a network. Note that the photographing apparatus 102 according to the present embodiment can perform PTZ (Pan Tilt Zoom) control. The recording device 103 records the image data transmitted from the imaging device 102.

また、画像処理装置100、撮影装置102、および記録装置103は、ネットワーク104を介して互いに通信を行う。ネットワーク104は、例えばETHERNET(登録商標)等の通信規格を満足する複数のルータ、スイッチ、ケーブル等から構成される。本実施形態においては画像処理装置100、撮影装置102、記録装置103間の通信を行うことができるものであれば、その通信規格、規模、構成を問わない。例えば、ネットワーク104はインターネットや有線LAN(LOCAL AREA NETWORK)、無線LAN(WIRELESS LAN)、WAN(WIDE AREA NETWORK)等により構成されてもよい。   Further, the image processing apparatus 100, the imaging apparatus 102, and the recording apparatus 103 communicate with each other via the network 104. The network 104 includes a plurality of routers, switches, cables, and the like that satisfy a communication standard such as ETHERNET (registered trademark). In the present embodiment, any communication standard, scale, and configuration may be used as long as communication between the image processing apparatus 100, the imaging apparatus 102, and the recording apparatus 103 can be performed. For example, the network 104 may be configured by the Internet, a wired LAN (LOCAL AREA NETWORK), a wireless LAN (WIRELESS LAN), a WAN (WIDE AREA NETWORK), or the like.

次に、図2を参照して、画像処理装置100および撮影装置102のハードウェア構成について説明する。図2は、画像処理装置100および撮影装置102のハードウェア構成を示す概略図である。   Next, the hardware configuration of the image processing apparatus 100 and the photographing apparatus 102 will be described with reference to FIG. FIG. 2 is a schematic diagram illustrating a hardware configuration of the image processing apparatus 100 and the imaging apparatus 102.

まず、画像処理装置100のハードウェア構成について説明する。CPU(CENTRAL PROCESSING UNIT)200は、画像処理装置100を制御する。   First, the hardware configuration of the image processing apparatus 100 will be described. A CPU (CENTRAL PROCESSING UNIT) 200 controls the image processing apparatus 100.

I/F(Interface)201は、ネットワーク104を介してTCP/IPやHTTPなどに従って、撮影装置102との通信を行う。また、I/F201は、撮影装置102が撮影した画像の画像データなどを受信したり、撮影装置102を制御するための各種のコマンドなどを送信したりする。   An I / F (Interface) 201 communicates with the imaging apparatus 102 via the network 104 according to TCP / IP, HTTP, or the like. Further, the I / F 201 receives image data of an image captured by the image capturing apparatus 102 and transmits various commands for controlling the image capturing apparatus 102.

RAM(RANDOM ACCESS MEMORY)202は、CPU200が実行するコンピュータプログラムを一時的に記憶する。また、RAM202は、I/F201を介して外部から取得したデータ(コマンドや画像データ)などを一時的に記憶する。また、RAM202は、CPU200が後述する画像処理を実行する際に用いるワークエリアを提供する。また、RAM202は、例えば、フレームメモリとして機能したり、バッファメモリとして機能したりする。   A RAM (RANDOM ACCESS MEMORY) 202 temporarily stores a computer program executed by the CPU 200. The RAM 202 temporarily stores data (commands and image data) acquired from the outside via the I / F 201. The RAM 202 provides a work area used when the CPU 200 executes image processing to be described later. The RAM 202 functions as a frame memory or a buffer memory, for example.

CPU200は、RAM202に格納されるコンピュータプログラムを実行する。なおCPU以外にも、DSP(DIGITAL SIGNAL PROCESSOR)等のプロセッサを用いてもよい。   CPU 200 executes a computer program stored in RAM 202. In addition to the CPU, a processor such as a DSP (DIGITAL SIGNAL PROCESSOR) may be used.

HDD(HARD DISK DRIVE)203は、オペレーティングシステムのプログラムや画像データを記憶する。後述する図9、図11、図13に示すフローチャートを実行するためのコンピュータプログラムやデータはHDD203に格納されており、CPU200による制御に従って、適宜、RAM202にロードされ、CPU200によって実行される。なおHDD以外にもフラッシュメモリ等の他の記憶媒体を用いてもよい。   An HDD (HARD DISK DRIVE) 203 stores an operating system program and image data. Computer programs and data for executing flowcharts shown in FIGS. 9, 11, and 13 to be described later are stored in the HDD 203, and are appropriately loaded into the RAM 202 and executed by the CPU 200 under the control of the CPU 200. In addition to the HDD, other storage media such as a flash memory may be used.

なお、画像処理装置100の筐体は表示装置101と一体であってもよい。UI(USER INTERFACE)204は、キーボードやマウスなどの入力装置である。   Note that the housing of the image processing apparatus 100 may be integrated with the display apparatus 101. A UI (USER INTERFACE) 204 is an input device such as a keyboard or a mouse.

なお、以降の説明では、CPU200が画像処理を実行する例について説明するが、CPU200の処理のうち少なくとも一部を専用のハードウェアによって行うようにしてもよい。例えば、表示装置101にGUI(GRAPHICAL USER INTERFACE)や画像データを表示する処理は、GPU(GRAPHICS PROCESSING UNIT)で実行してもよい。また、HDD203からプログラムコードを読み出してRAM202に展開する処理は、転送装置として機能するDMA(DIRECT MEMORY ACCESS)によって実行してもよい。   In the following description, an example in which the CPU 200 executes image processing will be described. However, at least a part of the processing of the CPU 200 may be performed by dedicated hardware. For example, processing for displaying GUI (GRAPHICAL USER INTERFACE) and image data on the display device 101 may be executed by a GPU (GRAPHICS PROCESSING UNIT). Further, the process of reading the program code from the HDD 203 and expanding it into the RAM 202 may be executed by a DMA (DIRECT MEMORY ACCESS) functioning as a transfer device.

次に、撮影装置102のハードウェア構成について説明する。CPU210は撮影装置102を統括制御する中央処理装置である。   Next, the hardware configuration of the photographing apparatus 102 will be described. A CPU 210 is a central processing unit that performs overall control of the photographing apparatus 102.

I/F211は、ネットワーク104を介してTCP/IPやHTTPなどに従って、画像処理装置100との通信を行う。I/F211は、画像処理装置100へ画像の画像データなどを送信したり、撮影装置102を制御するための各種のコマンドなどを画像処理装置100から受信したりする。   The I / F 211 communicates with the image processing apparatus 100 via the network 104 according to TCP / IP, HTTP, or the like. The I / F 211 transmits image data and the like of the image to the image processing apparatus 100 and receives various commands from the image processing apparatus 100 for controlling the photographing apparatus 102.

RAM212は、CPU210が実行するコンピュータプログラムを一時的に記憶する。また、RAM212は、I/F211を介して外部から取得したデータ(コマンドや撮像条件に関するパラメータなど)を一時的に記憶する。また、RAM212は、CPU210が処理を実行する際に用いるワークエリアを提供する。また、RAM212は、例えば、フレームメモリとして機能したり、バッファメモリとして機能したりする。   The RAM 212 temporarily stores a computer program executed by the CPU 210. The RAM 212 temporarily stores data (commands, parameters related to imaging conditions, etc.) acquired from the outside via the I / F 211. The RAM 212 provides a work area used when the CPU 210 executes processing. The RAM 212 functions as, for example, a frame memory or a buffer memory.

ROM213は、CPU210が撮影装置102を制御するためのプログラムなどを記憶する。なお、ROM213に加えてHDD203と同等な二次記憶装置を備えるようにしてもよい。   The ROM 213 stores a program for the CPU 210 to control the photographing apparatus 102 and the like. In addition to the ROM 213, a secondary storage device equivalent to the HDD 203 may be provided.

撮影デバイス214は、撮影装置102に設けられた画像を撮影する撮影ユニットである。なお、撮影デバイス214の詳細は図3および図4を参照して後述する。   The photographing device 214 is a photographing unit that photographs an image provided in the photographing apparatus 102. Details of the photographing device 214 will be described later with reference to FIGS.

次に、図3および図4を参照して、本実施形態に係る撮影装置102について説明する。図3は、撮影装置102の外観図である。また、図4は、撮影装置102の撮影デバイス214が実行する撮影機能の機能ブロック図である。   Next, the photographing apparatus 102 according to the present embodiment will be described with reference to FIGS. 3 and 4. FIG. 3 is an external view of the photographing apparatus 102. FIG. 4 is a functional block diagram of a photographing function executed by the photographing device 214 of the photographing apparatus 102.

レンズ302の光軸の向く方向が撮影装置102の撮影方向であり、レンズ302を通過した光束は、撮影部305の撮像素子に結像する。   The direction in which the optical axis of the lens 302 faces is the photographing direction of the photographing apparatus 102, and the light beam that has passed through the lens 302 forms an image on the image sensor of the photographing unit 305.

また、レンズ駆動部310は、レンズ302を駆動させる駆動系により構成され、レンズ302の焦点距離を変更する。レンズ駆動部310は、パンチルトズーム制御部308により制御される。   The lens driving unit 310 includes a driving system that drives the lens 302, and changes the focal length of the lens 302. The lens driving unit 310 is controlled by the pan / tilt / zoom control unit 308.

パン駆動部300は、パン動作を行うメカ駆動系及び駆動源のモータにより構成され、撮影装置102の撮影方向をパン方向303に回転駆動させるための回転駆動を行う。また、パン駆動部300は、パンチルトズーム制御部308により制御される。   The pan driving unit 300 includes a mechanical driving system that performs a pan operation and a motor as a driving source, and performs rotational driving for rotating the photographing direction of the photographing apparatus 102 in the pan direction 303. The pan driving unit 300 is controlled by a pan / tilt / zoom control unit 308.

チルト駆動部301は、チルト動作を行うメカ駆動及び駆動源のモータにより構成され、撮影装置102の撮影方向をチルト方向304に回転駆動させるための回転駆動を行う。チルト駆動部301は、パンチルトズーム制御部308により制御される。   The tilt drive unit 301 is configured by a mechanical drive that performs a tilt operation and a motor as a drive source, and performs a rotational drive for rotating the photographing direction of the photographing apparatus 102 in the tilt direction 304. The tilt driving unit 301 is controlled by a pan / tilt / zoom control unit 308.

撮影部305は、CCD(charge coupled device)センサやCMOS(complementary metal oxide semiconductor)センサ等の撮像素子(不図示)により構成される。そして、撮影部305は、レンズ302を通って結像された被写体像を光電変換して電気信号を生成する。   The imaging unit 305 includes an imaging element (not shown) such as a CCD (charge coupled device) sensor or a CMOS (complementary metal oxide semiconductor) sensor. The photographing unit 305 photoelectrically converts the subject image formed through the lens 302 to generate an electrical signal.

画像処理部306は、撮影部305において光電変換された電気信号をデジタル信号へ変換する処理や、圧縮符号化処理などを行い、画像データを生成する。   The image processing unit 306 performs processing for converting the electrical signal photoelectrically converted by the photographing unit 305 into a digital signal, compression encoding processing, and the like, and generates image data.

パンチルトズーム制御部308は、システム制御部307から伝達された指示に基づいて、パン駆動部300、チルト駆動部301及びレンズ駆動部310の制御を行う。   The pan / tilt zoom control unit 308 controls the pan driving unit 300, the tilt driving unit 301, and the lens driving unit 310 based on the instruction transmitted from the system control unit 307.

通信部309は、I/F211を介して、画像処理装置100との通信を行う。例えば、通信部309は、生成された画像データを画像処理装置100に送信する。また、通信部309は、撮影装置102を制御するコマンドを画像処理装置100から受信し、システム制御部307へ伝達する。   The communication unit 309 communicates with the image processing apparatus 100 via the I / F 211. For example, the communication unit 309 transmits the generated image data to the image processing apparatus 100. The communication unit 309 receives a command for controlling the photographing apparatus 102 from the image processing apparatus 100 and transmits the command to the system control unit 307.

システム制御部307は、CPU210が実行する処理に従って、撮影装置102の全体を制御し、例えば、次のような処理を行う。すなわち、システム制御部307は、通信部309から伝達された撮影装置102を制御するコマンドを解析し、コマンドに応じた処理を行う。また、システム制御部307は、パンチルトズーム制御部308に対してパン・チルト・ズーム動作の指示を行う。   The system control unit 307 controls the entire photographing apparatus 102 according to processing executed by the CPU 210, and performs, for example, the following processing. That is, the system control unit 307 analyzes a command for controlling the photographing apparatus 102 transmitted from the communication unit 309, and performs processing according to the command. In addition, the system control unit 307 instructs the pan / tilt / zoom control unit 308 to perform pan / tilt / zoom operations.

また、システム制御部307は、画像処理部306で生成された画像データを画像処理装置100に送る際に、該画像データを取得した際の撮影情報も画像データに付与する。なお、本実施形態における撮影情報は、パンチルトズーム制御部308等から取得される、撮影装置102のパン角度とチルト角度と、撮影装置102により画像が撮影されたときの撮影装置102のズーム倍率と、を示す情報を含む。   In addition, when the system control unit 307 sends the image data generated by the image processing unit 306 to the image processing apparatus 100, the system control unit 307 also adds the shooting information when the image data is acquired to the image data. Note that the shooting information in the present embodiment is obtained from the pan / tilt / zoom control unit 308 or the like, and the pan angle and tilt angle of the shooting apparatus 102, and the zoom magnification of the shooting apparatus 102 when an image is shot by the shooting apparatus 102. , Including information indicating.

なお、パン角度は、パン駆動部300の駆動端の一方を0°としたときの、撮影装置102のパン方向303における撮影方向(光軸)の角度である。また、チルト角度は、チルト駆動部301の駆動端の一方を0°としたときの、撮影装置102のチルト方向304における撮影方向(光軸)の角度である。なお、撮影装置102により画像が撮影されるときの撮影装置102のズーム倍率は、レンズ302の焦点距離から算出する。   The pan angle is an angle of the photographing direction (optical axis) in the pan direction 303 of the photographing apparatus 102 when one of the driving ends of the pan driving unit 300 is set to 0 °. The tilt angle is an angle of the photographing direction (optical axis) in the tilt direction 304 of the photographing apparatus 102 when one of the driving ends of the tilt driving unit 301 is set to 0 °. Note that the zoom magnification of the photographing apparatus 102 when an image is photographed by the photographing apparatus 102 is calculated from the focal length of the lens 302.

次に、図5を参照して、撮影装置102によりカウント領域を複数の撮影領域に分けて撮影された画像から人物の数をカウントする処理において、本実施形態に係る画像処理装置100によるズーム倍率を決定する処理について説明する。なお、カウント領域は、人数をカウントする対象とする領域を表し、撮影領域は、撮影装置102が撮影する領域を表す。   Next, with reference to FIG. 5, in the process of counting the number of persons from the image captured by dividing the count area into a plurality of imaging areas by the imaging apparatus 102, the zoom magnification by the image processing apparatus 100 according to the present embodiment. The process of determining the will be described. Note that the count area represents an area to be counted, and the imaging area represents an area that the imaging apparatus 102 captures.

図5は、本実施形態に係る画像処理装置100の機能ブロック図である。図5に示す各機能ブロックは、ハードウェアモジュールとしているが、ソフトウェアモジュールで実現してもよい。また、ソフトウェアモジュールとハードウェアモジュールとを協働させて実現してもよい。なお、以降の説明においては、画像処理装置100が有する各機能は、画像処理装置100のCPU200により実行されるものとする。   FIG. 5 is a functional block diagram of the image processing apparatus 100 according to the present embodiment. Each functional block shown in FIG. 5 is a hardware module, but may be realized by a software module. Further, the software module and the hardware module may be realized in cooperation. In the following description, each function of the image processing apparatus 100 is assumed to be executed by the CPU 200 of the image processing apparatus 100.

図5に示すように、画像処理装置100は、通信部501と、検出部502と、カウント部503と、コマンド管理部504と、決定部505と、表示部506と、記憶部507と、操作受付部508と、を有する。   As shown in FIG. 5, the image processing apparatus 100 includes a communication unit 501, a detection unit 502, a count unit 503, a command management unit 504, a determination unit 505, a display unit 506, a storage unit 507, and an operation. A reception unit 508.

通信部501は、I/F201を介して、撮影装置102により撮影された画像を受信したり、撮影装置102を制御するコマンドを送信する。   The communication unit 501 receives an image photographed by the photographing apparatus 102 or transmits a command for controlling the photographing apparatus 102 via the I / F 201.

検出部502は、通信部501が受信した画像に含まれる人物を検出する。なお、本実施形態における検出部502は、照合パターン(辞書)を使用して、画像に含まれる人体を検出するものとする。   The detection unit 502 detects a person included in the image received by the communication unit 501. In addition, the detection part 502 in this embodiment shall detect the human body contained in an image using a collation pattern (dictionary).

このとき、全身の特徴を照合パターンとして辞書化しておく必要はない。例えば、上半身、下半身、頭部、顔、足などの人体の一部について照合パターンを用意し、検出部502は、画像から人体の一部を検出した場合に人体を検出したとみなしてもよい。なお、検出部502は、画像から人体を検出する機能を有していればよく、既知の動体検出や肌色検出などでもよく、パターンマッチング処理に限定されるものではない。   At this time, it is not necessary to dictionary the features of the whole body as a matching pattern. For example, a collation pattern may be prepared for a part of the human body such as the upper body, the lower body, the head, the face, and the foot, and the detection unit 502 may consider that a human body has been detected when a part of the human body is detected from the image. . Note that the detection unit 502 only needs to have a function of detecting a human body from an image, and may be a known moving object detection or skin color detection, and is not limited to pattern matching processing.

なお本実施形態における検出部502による人物の検出が可能な人物の最小サイズ(画素数)は、便宜的にSピクセルであるとする。   In this embodiment, the minimum size (number of pixels) of a person that can be detected by the detection unit 502 is assumed to be S pixels for convenience.

カウント部503は、検出部502により検出された人物の数をカウントする。   The count unit 503 counts the number of persons detected by the detection unit 502.

コマンド管理部504は、撮影装置102のパン・チルト・ズームなどを制御したり、画像を撮影する制御などの撮影動作を制御するコマンドを生成する。またコマンド管理部504は、撮影装置102の撮影状態を取得するコマンドを生成する。コマンド管理部504で生成されたコマンドは、通信部501を介して、撮影装置102へ送られる。   The command management unit 504 generates commands for controlling panning, tilting, zooming, and the like of the photographing apparatus 102 and controlling photographing operations such as control for photographing an image. The command management unit 504 generates a command for acquiring the shooting state of the shooting apparatus 102. The command generated by the command management unit 504 is sent to the photographing apparatus 102 via the communication unit 501.

決定部505は、ズーム倍率を段階的に変更することで撮影装置102により撮影された複数の画像の各々について、カウント部503が人数をカウントし、人数が最大となる画像の撮影時のズーム倍率に基づいて、撮影装置102のズーム倍率を決定する。なお、本実施形態における決定部505は、カウント部503がカウントした人数が最大となる画像の撮影時のズーム倍率を決定する。なお、決定部505が決定するズーム倍率は、撮影装置102が撮影する領域である撮影領域のサイズに対応する。   The determining unit 505 changes the zoom magnification in stages, and the count unit 503 counts the number of persons photographed by the photographing apparatus 102 in steps, and the zoom magnification at the time of photographing an image with the largest number of people. Based on the above, the zoom magnification of the photographing apparatus 102 is determined. Note that the determination unit 505 in the present embodiment determines the zoom magnification at the time of shooting an image in which the number of people counted by the counting unit 503 is the maximum. Note that the zoom magnification determined by the determination unit 505 corresponds to the size of a shooting area that is an area shot by the shooting apparatus 102.

コマンド管理部504は、決定部505により決定されたズーム倍率に基づいて、撮影装置102を制御するコマンドを生成し、カウント部503は、カウント領域を複数の撮影領域に分けて撮影された画像から人数カウントを実行する。このときのコマンド管理部504および決定部505の処理の詳しい説明は後述する。   The command management unit 504 generates a command for controlling the imaging apparatus 102 based on the zoom magnification determined by the determination unit 505, and the count unit 503 divides the count area into a plurality of imaging areas from the captured images. Perform a people count. Detailed description of the processing of the command management unit 504 and the determination unit 505 at this time will be described later.

なお、カウント対象とする領域であるカウント領域は、本実施形態において、操作受付部508を介してユーザーにより設定された領域とするが、これに限らない。例えば、カウント領域は、予め設定された領域でもよい。   In addition, although the count area | region which is an area | region made into count object is set as the area | region set by the user via the operation reception part 508 in this embodiment, it is not restricted to this. For example, the count area may be a preset area.

表示部506は、表示装置101に表示されるべき画面に対応するデータを生成して表示装置101に表示させる。   The display unit 506 generates data corresponding to the screen to be displayed on the display device 101 and causes the display device 101 to display the data.

記憶部507は、通信部501が受信した画像や、検出部502の検出結果などを記憶する。また記憶部507は、検出部502による処理が行われた画像が撮影されたときの撮影装置102の撮影状態などを記憶する。   The storage unit 507 stores the image received by the communication unit 501, the detection result of the detection unit 502, and the like. In addition, the storage unit 507 stores a shooting state of the shooting device 102 when an image processed by the detection unit 502 is shot.

操作受付部508は、UI204を介して、ユーザーが行った操作を受け付ける。例えば、表示部506は、撮影装置102が撮影可能な範囲に対してパン・チルト・ズームの制御および撮影を繰り返すことで得られるパノラマ画像を表示装置101に表示させる。そして、操作受付部508は、表示部506により表示装置101に表示されたパノラマ画像に対してユーザーが設定したカウント領域の位置情報を受け付けるようにしてもよい。   The operation receiving unit 508 receives an operation performed by the user via the UI 204. For example, the display unit 506 causes the display device 101 to display a panoramic image obtained by repeating pan / tilt / zoom control and photographing within a range that the photographing device 102 can photograph. Then, the operation reception unit 508 may receive position information of the count area set by the user with respect to the panoramic image displayed on the display device 101 by the display unit 506.

次に、図6〜図7を参照して、本実施形態に係る画像処理装置100による、ある撮影方向におけるズーム倍率を決定する処理について説明する。   Next, processing for determining a zoom magnification in a certain shooting direction by the image processing apparatus 100 according to the present embodiment will be described with reference to FIGS.

図6(a)は、人数カウントの対象であるカウント領域600に集まっている人物を撮影装置102が見下ろしで撮影している様子を示す模式図である。領域601は、撮影装置102の撮影方向が点602を向いて撮影された撮影領域を示している。   FIG. 6A is a schematic diagram illustrating a state in which the photographing device 102 is looking down at the persons gathering in the count area 600 that is the target of the number of people. An area 601 indicates an imaging area in which the imaging direction of the imaging apparatus 102 is imaged toward the point 602.

図6(b)は、撮影装置102の撮影方向が点602を向いたうえで、撮影装置102のズーム倍率をワイド端からテレ端まで段階的に変更しつつ、撮影装置102が異なるズーム倍率で撮影した画像の模式図である。なお、各画像内において斜線で示された人体は、検出部502によって検出された人体を示している。   In FIG. 6B, the shooting direction of the shooting apparatus 102 is pointed at the point 602, and the zoom ratio of the shooting apparatus 102 is changed stepwise from the wide end to the tele end while the shooting apparatus 102 has different zoom magnifications. It is a schematic diagram of the image | photographed image. Note that a human body indicated by diagonal lines in each image indicates a human body detected by the detection unit 502.

ワイド端画像603に映っている人体604は、すべて検出部502の検出可能な最小サイズであるSピクセルに満たないため検出されていない。   The human body 604 shown in the wide-end image 603 is not detected because it is less than the S pixel that is the minimum size detectable by the detection unit 502.

画像603の撮影時のズーム倍率から所定の割合高くしたズーム倍率で撮影した画像605では、画像に映る人物のうち25%の人体606がSピクセルに満たないため検出されていない。一方、画像605にて、75%の人体607はSピクセルを超えるため検出されており、検出人数は18人である。   In the image 605 photographed at a zoom magnification that is a predetermined percentage higher than the zoom magnification at the time of photographing the image 603, 25% of the human bodies 606 in the image are not detected because they are less than S pixels. On the other hand, in the image 605, 75% of human bodies 607 are detected because they exceed S pixels, and the number of detected persons is 18.

テレ端画像608では、すべての人体609がSピクセルを超えるため検出されており、検出人数は8人である。   In the tele end image 608, all human bodies 609 are detected because they exceed S pixels, and the number of detected persons is eight.

以上説明したように、より広い領域を対象とした人数カウントにおいて、撮影装置のズーム倍率をテレ端側へ極端に高くすると、人体検出の精度は上がるものの画角が狭くなる。この場合、PTZ制御をしつつカウント領域を撮影する際の撮影枚数が増え、検出部502やカウント部503による解析処理の回数が増加し、結果的に処理にかかる時間が増大することがある。   As described above, if the zoom magnification of the photographing apparatus is extremely increased toward the telephoto end in counting the number of people for a wider area, the angle of view is narrowed although the accuracy of human body detection is increased. In this case, the number of shots when the count area is shot while performing PTZ control increases, and the number of times of analysis processing by the detection unit 502 and the count unit 503 increases, resulting in an increase in processing time.

一方、ズーム倍率がワイド端側へ低くなりすぎると、画角は大きくなるものの、画像に映る人物のサイズが小さくなって人体検出の精度が下がることから、人数カウントの精度が下がってしまう。   On the other hand, if the zoom magnification is too low toward the wide end, the angle of view increases, but the size of the person appearing in the image decreases and the accuracy of human body detection decreases, so the accuracy of counting people decreases.

以上より、より広い領域を対象に人数カウントの処理を実施するにあたり、ズーム倍率を高くしすぎず、また、ズーム倍率を低くしすぎない、すなわち、カウント精度低下の抑制と処理時間増大の抑制とを両立するズーム倍率を決定する必要がある。次に、図7を参照して、本実施形態に係る決定部505が撮影装置102のズーム倍率を決定する処理について説明する。   From the above, when carrying out the process of counting the number of people in a wider area, the zoom magnification is not set too high, and the zoom magnification is not set too low, that is, the reduction in counting accuracy and the increase in processing time are suppressed. It is necessary to determine a zoom magnification that satisfies both. Next, with reference to FIG. 7, a process in which the determination unit 505 according to the present embodiment determines the zoom magnification of the imaging device 102 will be described.

図7は、撮影装置102のズーム倍率をワイド端からテレ端まで段階的に変更したとき、検出部502により検出される人体検出数の推移の一例を示す模式図である。図7(a)は、撮影装置102のズーム倍率をワイド端からテレ端まで段階的に変更したとき、画像における実際に存在する実人数の推移の一例を示す模式図である。図7(a)に示されるように、撮影装置102のズーム倍率を高くするに従い、撮影される画像に映る実際の人体の数は減少していく。   FIG. 7 is a schematic diagram illustrating an example of the transition of the number of detected human bodies detected by the detection unit 502 when the zoom magnification of the photographing apparatus 102 is changed stepwise from the wide end to the tele end. FIG. 7A is a schematic diagram illustrating an example of the transition of the actual number of persons actually present in the image when the zoom magnification of the photographing apparatus 102 is changed stepwise from the wide end to the tele end. As shown in FIG. 7A, as the zoom magnification of the photographing apparatus 102 is increased, the actual number of human bodies appearing in the photographed image decreases.

図7(b)は、撮影装置102のズーム倍率をワイド端からテレ端まで段階的に変更したとき、画像における実人数のうち検出部502が人体を検出可能なサイズ(Sピクセル)を超える人体の割合の推移の一例を示す模式図である。図7(b)に示されるように、ワイド端では全ての人体が検出可能サイズを満たさないが、あるズーム倍率701を超えると検出可能サイズを満たす人体が占める比率が増えていく。そして、あるズーム倍率702以降は画像に映る全ての人体が検出可能サイズを満たすことになる。   FIG. 7B shows a human body that exceeds the size (S pixel) that the detection unit 502 can detect a human body out of the actual number of people in the image when the zoom magnification of the photographing apparatus 102 is changed in stages from the wide end to the tele end. It is a schematic diagram which shows an example of transition of the ratio of. As shown in FIG. 7B, all human bodies do not satisfy the detectable size at the wide end. However, when a certain zoom magnification 701 is exceeded, the proportion of human bodies that satisfy the detectable size increases. After a certain zoom magnification 702, all human bodies appearing in the image satisfy the detectable size.

図7(c)は、撮影装置102のズーム倍率をワイド端からテレ端まで段階的に変更したとき、検出部502が画像において検出した人体検出数の推移の一例を示す模式図である。図7(c)において破線703は、図7(a)に示した、撮影装置102が撮影した画像における実人数を表している。この実人数のうち、検出可能サイズを満たした人体のみが検出部502により検出されるため、ズーム倍率をワイド端からテレ端まで移動した際の人体検出数は図7(c)における実線のように表される。本実施形態に係る決定部505は、ズーム倍率が段階的に変更された撮影装置102が撮影した、撮影時のズーム倍率が異なる複数の画像の各々について、カウント部503が人数をカウントし、人数が最大となる画像を撮影したズーム倍率を決定する。   FIG. 7C is a schematic diagram illustrating an example of the transition of the number of human bodies detected in the image by the detection unit 502 when the zoom magnification of the photographing apparatus 102 is changed stepwise from the wide end to the tele end. In FIG. 7C, a broken line 703 represents the actual number of people in the image captured by the image capturing apparatus 102 illustrated in FIG. Of the actual number of persons, only the human body satisfying the detectable size is detected by the detecting unit 502, and therefore the number of detected human bodies when the zoom magnification is moved from the wide end to the tele end is as shown by a solid line in FIG. It is expressed in In the determination unit 505 according to the present embodiment, the counting unit 503 counts the number of persons photographed by the photographing apparatus 102 in which the zoom magnification is changed in stages, and each of the images having different zoom magnifications at the time of photographing. Determines the zoom magnification at which the image with the maximum is taken.

次に、図8および図9を参照して、撮影装置102によりカウント領域を複数の撮影領域に分けて撮影された画像から人物の数をカウントする処理において、本実施形態に係る画像処理装置100によるズーム倍率を決定する処理について説明する。図8は、ズーム倍率を決定する処理を説明するための図である。図9は、撮影装置102によりカウント領域を複数の撮影領域に分けて撮影された画像から人物の数をカウントする処理において、本実施形態に係る画像処理装置100によるズーム倍率を決定する処理のフローチャートである。   Next, with reference to FIG. 8 and FIG. 9, the image processing apparatus 100 according to the present embodiment in the process of counting the number of persons from the image captured by dividing the count area into a plurality of imaging areas by the imaging apparatus 102. A process for determining the zoom magnification according to will be described. FIG. 8 is a diagram for explaining processing for determining the zoom magnification. FIG. 9 is a flowchart of a process of determining the zoom magnification by the image processing apparatus 100 according to the present embodiment in the process of counting the number of persons from an image captured by dividing the count area into a plurality of imaging areas by the imaging apparatus 102. It is.

なお、図9に示すフローに入る前に、コマンド管理部504による制御に従って、撮影装置101のズーム倍率は適宜制御され、さらに目的の撮影方向を向いているものとする。ただし、以下の説明においては、撮影装置101のズーム倍率はワイド端に制御されているものとする。ここでのコマンド管理部504による制御の詳細な説明は、図10および図11を参照して後述する。   Before entering the flow shown in FIG. 9, it is assumed that the zoom magnification of the photographing apparatus 101 is appropriately controlled according to the control by the command management unit 504 and further faces the target photographing direction. However, in the following description, it is assumed that the zoom magnification of the photographing apparatus 101 is controlled to the wide end. Details of the control by the command management unit 504 will be described later with reference to FIGS. 10 and 11.

なお、本実施形態において、図9に示すフローチャートの処理は、画像処理装置100のHDD203に格納されたコンピュータプログラムをCPU200が実行することにより実現される図5の各機能ブロックにより実行されるものとして説明する。ただし、図9に示すフローチャートの処理の一部は、専用のハードウェアによって実行するようにしてもよい。   In the present embodiment, the processing of the flowchart shown in FIG. 9 is executed by each functional block of FIG. 5 realized by the CPU 200 executing a computer program stored in the HDD 203 of the image processing apparatus 100. explain. However, a part of the processing of the flowchart shown in FIG. 9 may be executed by dedicated hardware.

ステップS901にて、撮影装置102が撮影した画像を通信部501は受信し、検出部502は、その画像に含まれる人体を検出する。   In step S901, the communication unit 501 receives an image captured by the imaging apparatus 102, and the detection unit 502 detects a human body included in the image.

次に、ステップS902にて、カウント部503は、検出部502により検出された人体の数をカウントする。   Next, in step S902, the count unit 503 counts the number of human bodies detected by the detection unit 502.

次に、ステップS903にて、記憶部507は、検出部502が処理を行った画像が撮影されたときのズーム倍率と、その画像においてカウント部503がカウントした人数とを関連付けて記憶する。   In step S <b> 903, the storage unit 507 stores the zoom magnification when the image processed by the detection unit 502 is captured and the number of people counted by the count unit 503 in the image in association with each other.

次に、ステップS904にて、ステップS903で記憶部507が記憶した人数に基き、カウントした人数が前回カウントした人数に比べて減少していない場合は、ステップS905へ遷移し、減少している場合は、ステップS907へ遷移する。なお、前回カウントした人数が記憶部507にて記憶されていない場合、つまり、本フローチャートにてステップS904にて行われる処理が一回目の場合、ステップS905へ遷移するものとする。   Next, in step S904, based on the number of people stored in the storage unit 507 in step S903, if the number of counted people is not reduced compared to the number of people counted last time, the process proceeds to step S905, where the number is decreasing. Transits to step S907. If the number of people counted last time is not stored in the storage unit 507, that is, if the process performed in step S904 in the flowchart is the first time, the process proceeds to step S905.

ステップS905にて、コマンド管理部504は、撮影装置102のズーム倍率を所定の割合だけテレ端側に高くした後に画像を撮影する制御を行うコマンドを生成し、通信部501を介して、そのコマンドを撮影装置102へ送信する。なお、ズーム倍率を変更する度合である所定の割合は、予め登録された設定でもよいし、ユーザーにより適宜設定されるようにしてもよい。   In step S905, the command management unit 504 generates a command for performing control to capture an image after increasing the zoom magnification of the imaging apparatus 102 to the tele end side by a predetermined ratio, and the command is transmitted via the communication unit 501. Is transmitted to the photographing apparatus 102. Note that the predetermined ratio, which is the degree to which the zoom magnification is changed, may be set in advance or may be set as appropriate by the user.

ステップS906にて、コマンド管理部504は、撮影装置102のズーム倍率を所定の割合だけ変更されることにより、変更前の撮影領域と変更後の撮影領域とで生じる位置の相違を無くして、画像を撮影するよう撮影装置102を制御するコマンドを生成する。   In step S906, the command management unit 504 changes the zoom magnification of the photographing apparatus 102 by a predetermined ratio, thereby eliminating the difference in position between the photographing area before the change and the photographing area after the change. A command for controlling the photographing apparatus 102 to photograph the image is generated.

ここで、ステップS906の処理について図8を参照して説明する。図8(a)において、領域801は、撮影装置102のズーム倍率をワイド端にした状態でカウント領域600の左下の端部を撮影する撮影領域である。ステップS905にて、ズーム倍率が所定の割合だけテレ端側に高くなるよう変更されることで、領域801から領域802へと撮影装置102の撮影領域が変更される。この場合、領域801の左下の端点と、領域802の左下の端点とで位置の相違が生じる。本実施形態における撮影装置102のコマンド管理部504は、この位置の相違を無くすように、撮影装置102の撮影領域が領域802から領域803(図8(b)に図示)へ移動し、さらに画像を撮影するよう制御するコマンドを生成する。このとき生成されたコマンドは通信部501を介して、撮影装置102へ送られる。   Here, the process of step S906 will be described with reference to FIG. In FIG. 8A, an area 801 is an imaging area in which the lower left end of the count area 600 is imaged with the zoom magnification of the imaging apparatus 102 set to the wide end. In step S905, the photographing area of the photographing apparatus 102 is changed from the area 801 to the area 802 by changing the zoom magnification so as to increase toward the telephoto end by a predetermined ratio. In this case, a difference in position occurs between the lower left end point of the region 801 and the lower left end point of the region 802. In the command management unit 504 of the imaging apparatus 102 according to the present embodiment, the imaging area of the imaging apparatus 102 moves from the area 802 to the area 803 (shown in FIG. 8B) so as to eliminate this difference in position, and further the image. Generate a command to control shooting. The command generated at this time is sent to the photographing apparatus 102 via the communication unit 501.

このように、ステップS901〜ステップS906の処理は、カウント部503によりカウントされる人数が減少するまで繰り返される。   As described above, the processes in steps S901 to S906 are repeated until the number of people counted by the counting unit 503 decreases.

ステップS907にて、決定部505は、記憶部507に記憶されたズーム倍率と人数とが関連付けられたデータから、人体検出数が最大となるズーム倍率を決定する。なお、ステップS907にて、人体検出数が最大となるズーム倍率が複数存在する場合は、決定部904は、その複数のズーム倍率のうち最もワイド端側のズーム倍率を決定するようにしてもよい。   In step S907, the determination unit 505 determines a zoom magnification that maximizes the number of human bodies detected from data in which the zoom magnification and the number of people stored in the storage unit 507 are associated. If there are a plurality of zoom magnifications that maximize the number of detected human bodies in step S907, the determination unit 904 may determine the zoom magnification on the widest end side among the plurality of zoom magnifications. .

ステップS908にて、コマンド管理部504は、決定されたズーム倍率になるよう撮影装置102のズーム倍率を制御し、さらにズーム倍率を変更することで生じる撮影領域の位置の相違を無くすよう制御するコマンドを生成する。このとき、図8を参照して説明したように、コマンド管理部504は、ズーム倍率の変更前における撮影領域の左下の端点と、変更後における撮影領域の左下の端点とで生じる位置の相違を無くすよう撮影装置102の撮影方向を制御するコマンドを生成する。このとき生成されたコマンドは、通信部501を介して、撮影装置102へ送信される。なお、図10(a)における領域1001は、ステップS908にて、コマンド管理部504により制御された撮影装置102の撮影領域を示している。   In step S908, the command management unit 504 controls the zoom magnification of the photographing apparatus 102 so as to achieve the determined zoom magnification, and further controls to eliminate the difference in the position of the photographing region caused by changing the zoom magnification. Is generated. At this time, as described with reference to FIG. 8, the command management unit 504 determines the difference in position that occurs between the lower left endpoint of the shooting area before the zoom magnification change and the lower left endpoint of the shooting area after the change. A command for controlling the photographing direction of the photographing apparatus 102 is generated so as to be eliminated. The command generated at this time is transmitted to the photographing apparatus 102 via the communication unit 501. Note that an area 1001 in FIG. 10A indicates the imaging area of the imaging apparatus 102 controlled by the command management unit 504 in step S908.

以上の処理によって、本実施形態に係る画像処理装置100は、カウント領域を複数の撮影領域に分けて撮影された画像から人物の数をカウントする処理において、人数カウントに適したズーム倍率を決定する。   Through the above processing, the image processing apparatus 100 according to the present embodiment determines a zoom magnification suitable for counting the number of persons in the process of counting the number of persons from an image captured by dividing the count area into a plurality of imaging areas. .

なお、ステップS904において、撮影装置102のズーム倍率がテレ端まで達していない場合、ステップS905へ遷移し、ズーム倍率がテレ端まで達した場合は、ステップS907へ遷移するようにしてもよい。ただし、図7(c)に示すように、人体検出数は最大値へ達したのち減少していくと考えられるため、人体検出数が最大となるズーム倍率を特定するにあたり、上述した本実施形態に係るステップS904の処理によれば、処理時間をより低減することができる。   In step S904, when the zoom magnification of the photographing apparatus 102 has not reached the tele end, the process may proceed to step S905, and when the zoom magnification has reached the tele end, the process may proceed to step S907. However, as shown in FIG. 7C, since the number of detected human bodies is considered to decrease after reaching the maximum value, the above-described embodiment is used to specify the zoom magnification that maximizes the number of detected human bodies. According to the process of step S904 according to the above, it is possible to further reduce the processing time.

次に、図10および図11を参照して、実施形態1に係る画像処理装置100により決定されたズーム倍率に基づいて、カウント領域を複数の撮影領域に分けて撮影された画像から人数カウントを実行する処理について説明する。   Next, referring to FIG. 10 and FIG. 11, based on the zoom magnification determined by the image processing apparatus 100 according to the first embodiment, the number of people is counted from the images shot by dividing the count area into a plurality of shooting areas. Processing to be executed will be described.

図10は、カウント領域を複数の撮影領域に分けて撮影された画像から人数カウントを行う処理を説明するための模式図である。なお、本実施形態におけるカウント領域600は、ユーザーにより設定されるものとし、設定されたカウント領域600の位置情報は記憶部507にて記憶される。また、カウント領域600の位置情報は、カウント領域600の各頂点におけるパン角度、チルト角度で定められるものとする。   FIG. 10 is a schematic diagram for explaining a process of counting the number of people from an image shot by dividing the count area into a plurality of shooting areas. Note that the count area 600 in this embodiment is set by the user, and the position information of the set count area 600 is stored in the storage unit 507. The position information of the count area 600 is determined by the pan angle and tilt angle at each vertex of the count area 600.

図10(a)に示す領域801は、撮影装置102のズーム倍率をワイド端にした状態でカウント領域600の左端の下部を撮影する撮影領域である。このとき、本実施形態に係るコマンド管理部504は、カウント領域600の各頂点における左下の端点と、撮影装置102の撮影領域の各頂点における左下の端点とが一致するように、撮影装置102の撮影方向を制御するコマンドを生成する。そして、通信部501を介して送信されたコマンドに基づいて、撮影装置102の撮影方向は領域801の中心となる。   An area 801 illustrated in FIG. 10A is an imaging area for imaging the lower left portion of the count area 600 in a state where the zoom magnification of the imaging apparatus 102 is set to the wide end. At this time, the command management unit 504 according to the present embodiment allows the imaging device 102 to match the lower left endpoint at each vertex of the count area 600 and the lower left endpoint at each vertex of the imaging area of the imaging device 102. A command for controlling the shooting direction is generated. Then, based on the command transmitted via the communication unit 501, the shooting direction of the shooting apparatus 102 becomes the center of the area 801.

撮影領域1001は、コマンド管理部504により制御された撮影装置102の撮影方向に対し、図9に示すフローチャートで説明した制御を実行することにより制御された撮影装置102の撮影領域である。   An imaging area 1001 is an imaging area of the imaging apparatus 102 controlled by executing the control described in the flowchart shown in FIG. 9 with respect to the imaging direction of the imaging apparatus 102 controlled by the command management unit 504.

次に、コマンド管理部504は、撮影装置102の撮影方向を撮影領域1001に対して右方向に移動するようパン角度を制御したのち、画像を撮影する制御を行うコマンドを生成し、通信部501を介して撮影装置102へ送信する。なおこのとき、コマンド管理部504は、すでに人数カウント済みの撮影領域1001と隣接する撮影領域1002まで移動するよう制御したのち、画像を撮影する制御を行うコマンドを生成する。そして、撮影領域1002を撮影して得られた画像に対して、再度人数カウント処理を実施し、その人数を記録する。   Next, the command management unit 504 controls the pan angle so that the shooting direction of the shooting apparatus 102 moves to the right with respect to the shooting region 1001, and then generates a command for performing control for shooting an image, and the communication unit 501. To the photographing apparatus 102. At this time, the command management unit 504 generates a command for performing control for capturing an image after controlling to move to the capturing region 1002 adjacent to the capturing region 1001 in which the number of people has already been counted. Then, the number of people count process is performed again on the image obtained by shooting the shooting area 1002, and the number of people is recorded.

撮影装置102の撮影方向を右方向へ移動させて撮影した画像における人数をカウントする処理を、撮影装置102の撮影領域がカウント領域600の右端の端部に達するまで繰り返す。なお本実施形態において、撮影領域の各頂点における左下の端点と右下の端点とを結ぶ辺(以下、下部の辺)と、カウント領域600の各頂点における右上の端点と右下の端点とを結ぶ辺(以下、右端の辺)とで交わる点がある場合、右端に達しているものとする。図10(b)の場合、撮影装置102の撮影領域の下部の辺と、カウント領域600の右端の辺とで交わる点がある領域1003になるまで繰り返される。   The process of counting the number of persons in the image captured by moving the imaging direction of the imaging apparatus 102 to the right is repeated until the imaging area of the imaging apparatus 102 reaches the right end of the count area 600. In the present embodiment, a side connecting the lower left end point and the lower right end point at each vertex of the imaging region (hereinafter referred to as a lower side), and an upper right end point and a lower right end point at each vertex of the count region 600 If there is a point that intersects the connecting edge (hereinafter, the right edge), it is assumed that the right edge has been reached. In the case of FIG. 10B, the process is repeated until there is a region 1003 where there is a point where the lower side of the photographing region of the photographing device 102 and the right end side of the count region 600 intersect.

このように、コマンド管理部504は、決定部505により決定されたズーム倍率を用いて、他の撮影領域を撮影するように制御するコマンドを生成する。図10(b)の場合、決定部505により決定されたズーム倍率を用いて、領域1002および領域1003の撮影領域を撮影するよう制御するコマンドを生成する。   In this manner, the command management unit 504 generates a command for controlling to shoot another shooting area using the zoom magnification determined by the determination unit 505. In the case of FIG. 10B, using the zoom magnification determined by the determination unit 505, a command for controlling to capture the image capturing areas 1002 and 1003 is generated.

次に図10(c)に示すように、コマンド管理部504は、撮影装置102のズーム倍率を変更せず、カウント領域600における左端、かつ、領域1001の上部の位置に撮影装置102の撮影領域を移動させる制御を行うコマンドを生成する。生成されたコマンドは通信部501を介して、撮影装置102へ送信される。   Next, as illustrated in FIG. 10C, the command management unit 504 does not change the zoom magnification of the image capturing device 102, and the image capturing region of the image capturing device 102 is positioned at the left end in the count region 600 and above the region 1001. Generate a command to control the movement of The generated command is transmitted to the photographing apparatus 102 via the communication unit 501.

このとき、本実施形態に係るコマンド管理部504は、撮影領域の各頂点における左下の端点と、カウント領域600の左端の辺と、領域1001の上部の辺とが交わるよう、撮影装置102の撮影方向を制御するコマンドを生成する。なお、カウント領域600の左端の辺は、カウント領域600の各頂点における左上の端点と左下の端点とを結ぶ辺である。また、領域1001の上部の辺は、領域1001の各頂点における左上の端点と右上の端点とを結ぶ辺である。このようにして制御された撮影装置100の撮影領域は、領域1004となる。   At this time, the command management unit 504 according to the present embodiment shoots the photographing apparatus 102 so that the lower left end point at each vertex of the photographing region, the left end side of the count region 600, and the upper side of the region 1001 intersect. Generate commands to control direction. Note that the left end side of the count region 600 is a side connecting the upper left end point and the lower left end point at each vertex of the count region 600. The upper side of the region 1001 is a side connecting the upper left end point and the upper right end point at each vertex of the region 1001. The imaging area of the imaging apparatus 100 controlled in this way is an area 1004.

なお、本実施形態におけるコマンド管理部504は、撮影装置102のズーム倍率を変更しないようにしたが、ズーム倍率をワイド端に制御したうえで、撮影領域を移動するようにしてもよい。しかし、カウント領域の下部、すなわち、もっとも人体が大きく映っていると考えられる領域から撮影領域を制御しているので、それよりも上部、すなわち、奥行き方向における奥側を撮影する場合は、必ずしもズーム倍率をワイド端まで戻す必要はない。そこで、本実施形態におけるコマンド管理部504は、撮影装置102のズーム倍率を変更せず、撮影領域をカウント領域の右端から左端の上段へ制御するコマンドを生成した。こうすることにより、図9に示すフローチャートで説明した制御を実行するにあたり、人体検出数が最大となる画像を撮影時のズーム倍率を決定する処理の時間を短縮することができる。   Note that the command management unit 504 in the present embodiment does not change the zoom magnification of the image capturing apparatus 102, but the image capturing area may be moved after controlling the zoom magnification to the wide end. However, since the shooting area is controlled from the lower part of the count area, that is, the area where the human body is considered to be the largest, the zoom is not always necessary when shooting the upper part, that is, the back side in the depth direction. There is no need to return the magnification to the wide end. Therefore, the command management unit 504 in the present embodiment generates a command for controlling the shooting area from the right end of the count area to the upper stage of the left end without changing the zoom magnification of the shooting apparatus 102. By doing so, when executing the control described in the flowchart shown in FIG. 9, it is possible to shorten the processing time for determining the zoom magnification at the time of photographing an image with the maximum number of human bodies detected.

また、図10(c)における領域1005は、コマンド管理部504により制御された撮影装置102の撮影方向に対し、図9に示すフローチャートで説明した制御を実行して、制御された撮影装置102の撮影領域である。   In addition, an area 1005 in FIG. 10C executes the control described in the flowchart shown in FIG. 9 with respect to the shooting direction of the shooting apparatus 102 controlled by the command management unit 504, thereby controlling the shooting apparatus 102 that is controlled. This is a shooting area.

次に、コマンド管理部504は、撮影装置102の撮影方向を撮影領域1005に対して、撮影装置102の撮影方向を右方向へ移動し、画像を撮影する制御コマンドを生成する。そして、撮影した画像における人数カウント処理を、カウント領域600の最下段で行った処理と同様、撮影装置102の撮影領域がカウント領域600の右端に達するまで繰り返す。図10(d)の場合、撮影装置102の撮影領域が領域1008に達するまで繰り返される。   Next, the command management unit 504 generates a control command for shooting an image by moving the shooting direction of the shooting apparatus 102 to the right with respect to the shooting area 1005. Then, the process of counting the number of people in the photographed image is repeated until the photographing area of the photographing apparatus 102 reaches the right end of the count area 600, similarly to the process performed at the bottom of the count area 600. In the case of FIG. 10D, the process is repeated until the imaging area of the imaging apparatus 102 reaches the area 1008.

以上のように、撮影装置102の撮影領域をカウント領域600の左端から右端まで移動させるよう制御しつつ人数カウントを行う処理を、撮影領域がカウント領域600の上端及び右端に達するまで繰り返すことで、広域の人数カウント処理を実現する。なお、本実施形態において、撮影装置102の撮影領域の各頂点における右上の端点と左上の端点とを結ぶ辺の位置が、カウント領域600の各頂点における右上の端点と左上の端点とを結ぶ辺の位置より上部となっている場合、上端に達しているものとする。   As described above, by repeating the process of counting the number of people while controlling the photographing area of the photographing apparatus 102 from the left end to the right end of the count area 600, until the photographing area reaches the upper end and the right end of the count area 600, Realize wide-area people count processing. In the present embodiment, the position of the side connecting the upper right end point and the upper left end point at each vertex of the shooting region of the shooting apparatus 102 is the side connecting the upper right end point and the upper left end point at each vertex of the count region 600. If it is above the position, it is assumed that the upper end has been reached.

次に図11のフローチャートを参照して、図10で説明した本実施形態に係る、カウント領域を複数の撮影領域に分けて撮影された画像から人数カウントを行う処理について説明する。   Next, with reference to the flowchart of FIG. 11, processing for counting the number of people from an image captured by dividing the count area into a plurality of imaging areas according to the present embodiment described with reference to FIG. 10 will be described.

なお、本実施形態において、図11に示すフローチャートの処理は、画像処理装置100のHDD203に格納されたコンピュータプログラムをCPU200が実行することにより実現される図5の各機能ブロックにより実行されるものとして説明する。ただし、図11に示すフローチャートの処理の一部は、専用のハードウェアによって実行するようにしてもよい。   In the present embodiment, the processing of the flowchart shown in FIG. 11 is executed by each functional block of FIG. 5 realized by the CPU 200 executing the computer program stored in the HDD 203 of the image processing apparatus 100. explain. However, part of the processing of the flowchart shown in FIG. 11 may be executed by dedicated hardware.

ステップS1101にて、コマンド管理部504は、撮影装置101のズーム倍率をワイド端にして、撮影領域がカウント領域の左下の端部に移動するよう、パン・チルトを制御するコマンドを生成する。生成されたコマンドは通信部501を介して、撮影装置102へ送信される。   In step S1101, the command management unit 504 generates a command for controlling pan / tilt so that the zoom magnification of the photographing apparatus 101 is set to the wide end and the photographing region is moved to the lower left end of the count region. The generated command is transmitted to the photographing apparatus 102 via the communication unit 501.

次に、ステップS1102にて、図9に示すフローチャートで説明した制御を実行することで、決定部505により決定されたズーム倍率になるよう撮影装置102の撮影領域を制御する。   Next, in step S1102, the imaging region of the imaging device 102 is controlled to achieve the zoom magnification determined by the determination unit 505 by executing the control described in the flowchart illustrated in FIG.

次に、ステップS1103にて、コマンド管理部504は、カウント済みの領域と撮影領域が隣接するよう、撮影装置102の撮影方向を右方向へ移動するよう制御したのち、画像を撮影する制御を行うコマンドを生成する。このとき生成されたコマンドは、通信部501を介して撮影装置102へ送信される。   Next, in step S1103, the command management unit 504 performs control to capture an image after controlling the imaging direction of the imaging apparatus 102 to move rightward so that the counted area and the imaging area are adjacent to each other. Generate a command. The command generated at this time is transmitted to the imaging apparatus 102 via the communication unit 501.

次に、ステップS1104にて、検出部502は、ステップS1104にて制御された撮影装置102が撮影した画像における人体を検出する。   Next, in step S1104, the detection unit 502 detects a human body in the image photographed by the photographing apparatus 102 controlled in step S1104.

次に、ステップS1105にて、カウント部503は、検出部502により検出された人体の数をカウントする。なおこのとき、記憶部507は、カウント部503によりカウントされた人体の数を記憶する。   Next, in step S1105, the count unit 503 counts the number of human bodies detected by the detection unit 502. At this time, the storage unit 507 stores the number of human bodies counted by the counting unit 503.

次に、ステップS1106にて、現在の撮影装置102の撮影領域がカウント領域の右端に達してない場合、ステップS1103へ遷移し、撮影領域がカウント領域の右端に達している場合、ステップS1107へ遷移する。   Next, in step S1106, if the current shooting area of the shooting apparatus 102 has not reached the right end of the count area, the process proceeds to step S1103. If the shooting area has reached the right end of the count area, the process proceeds to step S1107. To do.

このようにステップS1103〜ステップS1106の処理を、撮影装置102の撮影領域がカウント領域の右端に達するまで繰り返される。   In this way, the processing from step S1103 to step S1106 is repeated until the shooting area of the shooting apparatus 102 reaches the right end of the count area.

ステップS1107にて、現在の撮影装置102の撮影領域がカウント領域の上端に達していない場合、ステップS1108に遷移し、撮影装置102の撮影領域が上端に達している場合は、ステップS1109へ遷移する。   In step S1107, if the current shooting area of the shooting apparatus 102 has not reached the upper end of the count area, the process proceeds to step S1108. If the shooting area of the shooting apparatus 102 has reached the upper end, the process shifts to step S1109. .

ステップS1108にて、コマンド管理部504は、撮影装置102のズーム倍率を変更せずに、カウント済みである領域の上部、かつ、カウント領域における左端に撮影領域が位置するよう、撮影方向を移動させる制御を行うコマンドを生成する。コマンド管理部504により生成されたコマンドは通信部501を介して、撮影装置102へ送信される。   In step S1108, the command management unit 504 moves the shooting direction so that the shooting area is positioned above the counted area and at the left end of the count area without changing the zoom magnification of the shooting apparatus 102. Generate a command to control. The command generated by the command management unit 504 is transmitted to the photographing apparatus 102 via the communication unit 501.

以上のようにステップS1102〜ステップS1108までの処理を、カウント領域の上端に達するまで実行する。   As described above, the processing from step S1102 to step S1108 is executed until the upper end of the count area is reached.

ステップS1109にて、カウント部503は、撮影した画像においてカウントした人数の合計を算出する。   In step S1109, the count unit 503 calculates the total number of people counted in the captured image.

なお、本実施形態において、複数の領域を撮影する撮影順序については特定の端部(手前側左端の端部)から対角線上に位置する端部(奥側右端の端部)まで撮影装置102の撮影領域をラスター方向に移動させたが、これに限らない。例えば、手前側右端の端部から左方向へ移動し、最終的に奥側左端の端部へと撮影装置102の撮影領域を移動させるようにしてもよい。   In the present embodiment, the shooting order for shooting a plurality of areas is from the specific end (the front left end) to the end located on the diagonal (the back right end). Although the shooting area is moved in the raster direction, the present invention is not limited to this. For example, the imaging region of the imaging device 102 may be moved from the end on the right side on the near side to the left and finally moved to the end on the left side on the back side.

また、本実施形態において、撮影装置102が画像を撮影する度に、カウント部502が人数をカウントするが、複数の撮影方向で撮影した画像を合成し、合成後のパノラマ画像に対して人数カウントをするようにしてもよい。   In this embodiment, every time the image capturing apparatus 102 captures an image, the counting unit 502 counts the number of people. The images captured in a plurality of shooting directions are combined, and the number of people is counted with respect to the combined panoramic image. You may make it do.

以上説明したように、本実施形態によれば、より広い領域を対象とした人数カウントにおいて、適切なズーム倍率を自動で決定することができる。 (実施形態2)
実施形態1に係る画像処理装置100では、撮影時のズーム倍率が異なる複数の画像の各々について、カウントされた人数が最大となる画像の撮影時のズーム倍率を決定し、決定されたズーム倍率に従って、カウント領域における人数カウントを実行した。しかし、カウントされた人数が最大となる画像の撮影時のズーム倍率であっても、その画像の上部で(奥行き方向における奥側)では人体サイズが小さくなることから、検出部502により検出されていない人物がいる可能性がある。
As described above, according to the present embodiment, it is possible to automatically determine an appropriate zoom magnification in counting the number of people for a wider area. (Embodiment 2)
In the image processing apparatus 100 according to the first embodiment, for each of a plurality of images having different zoom magnifications at the time of shooting, the zoom magnification at the time of shooting an image with the largest number of counted persons is determined, and according to the determined zoom magnification. The number of people in the counting area was counted. However, even if the zoom magnification at the time of shooting an image with the largest number of people is counted, the human body size is small in the upper part of the image (the back side in the depth direction), so that it is detected by the detection unit 502. There may be no person.

そこで、実施形態2に係る画像処理装置100では、図9で示した実施形態1に係る処理に従って人数が最大となるズーム倍率を特定した後に、さらにズーム倍率を所定の割合高くしたズーム倍率を決定する。そして、決定されたズーム倍率に従って、カウント領域を対象に撮影装置102の撮影領域を制御することで、検出部502による人体検出の精度がより向上し、結果的に人数カウントの精度をより向上させることができる。   Therefore, in the image processing apparatus 100 according to the second embodiment, after specifying the zoom magnification that maximizes the number of people according to the processing according to the first embodiment shown in FIG. 9, the zoom magnification that further increases the zoom magnification by a predetermined ratio is determined. To do. Then, according to the determined zoom magnification, by controlling the imaging area of the imaging apparatus 102 with respect to the count area, the accuracy of human detection by the detection unit 502 is further improved, and as a result, the accuracy of counting people is further improved. be able to.

以下、実施形態2に係る画像処理装置100の処理について説明する。なお、実施形態1と同一または同等の機能構成、処理については同一の符号を付すとともに、重複する説明は適宜省略する。   Hereinafter, processing of the image processing apparatus 100 according to the second embodiment will be described. Note that functional configurations and processes that are the same as or equivalent to those of the first embodiment are denoted by the same reference numerals, and redundant descriptions are omitted as appropriate.

以下、実施形態2に係る画像処理装置100による、ある撮影方向におけるズーム倍率の決定処理について説明する。   Hereinafter, a zoom magnification determination process in a certain shooting direction by the image processing apparatus 100 according to the second embodiment will be described.

図12は、実施形態1に係る図9に示すフローチャートの処理によって特定された、人数が最大となったズーム倍率で撮影された画像において、検出部502により検出された人物の位置とサイズとを示した模式図である。   FIG. 12 shows the position and size of the person detected by the detection unit 502 in the image taken at the zoom magnification with the maximum number of people specified by the processing of the flowchart shown in FIG. 9 according to the first embodiment. It is the shown schematic diagram.

図12に示すように、広域に対する人数カウントを実施するにあたり、画像下部(奥行き方向に対して手前側)において検出される人物のサイズが大きく、画像上部(奥行き方向に対して奥側)に近づくにつれて検出される人物のサイズが小さくなることがある。このとき検出部502の検出可能な人体サイズはSピクセルであるとすると、画像上部において、人体サイズがSピクセルを下回っていたために、検出部502により検出されなかった人体がいる可能性がある。   As shown in FIG. 12, when performing the counting of people for a wide area, the size of the person detected in the lower part of the image (front side with respect to the depth direction) is large and approaches the upper part of the image (back side with respect to the depth direction). As a result, the size of the detected person may become smaller. If the human body size that can be detected by the detection unit 502 is S pixels at this time, there is a possibility that there is a human body that is not detected by the detection unit 502 because the human body size is smaller than S pixels in the upper part of the image.

そこで、本実施形態における決定部505は、図9に示すフローチャートで説明した制御を実行して、人数が最大となる画像の撮影時のズーム倍率を所定の割合高くしたズーム倍率を決定する。以下、本実施形態に係る処理について説明していく。   Therefore, the determination unit 505 in the present embodiment executes the control described with reference to the flowchart shown in FIG. 9 to determine a zoom magnification that increases the zoom magnification at the time of shooting an image with the largest number of people by a predetermined ratio. Hereinafter, processing according to the present embodiment will be described.

図12(a)の人体1201,1202,1203は、検出部502により検出された人体である。なお、検出部502により検出された人体1201,1202,1203の人体サイズは、検出可能サイズSを上回っているが、閾値T(S+d)を下回っている。これらの人体のみが含まれる領域である領域1204には、実際は画像に映っているが、検出部502の検出可能サイズSを下回ったため、未検出となってしまった人体が存在する可能性がある。   Human bodies 1201, 1202, and 1203 in FIG. 12A are human bodies detected by the detection unit 502. Note that the human body sizes of the human bodies 1201, 1202, and 1203 detected by the detection unit 502 are larger than the detectable size S, but are smaller than the threshold T (S + d). An area 1204 that includes only these human bodies is actually shown in the image, but there is a possibility that there is a human body that has not been detected because it is smaller than the detectable size S of the detection unit 502. .

なお、本実施形態に係る閾値Tは、検出可能サイズであるSピクセルに所定値dピクセルを加えた値である。閾値Tは、ユーザーにより適宜設定されてもいいし、予め設定された値でもいい。   Note that the threshold T according to the present embodiment is a value obtained by adding a predetermined value d pixels to S pixels that are detectable sizes. The threshold value T may be set as appropriate by the user, or may be a preset value.

図12(b)の人体1205は、画像上部から順にサイズ比較をした際、はじめて閾値Tを上回る人体を示している。   A human body 1205 in FIG. 12B shows a human body that exceeds the threshold T for the first time when size comparison is performed sequentially from the top of the image.

本実施形態における決定部505は、図12(c)の示すように、画像全体の領域から領域1204を除いた領域である領域1206の上端と、撮影領域の上端とが重なるようズーム倍率を決定する。図12(c)において、このとき決定されたズーム倍率で撮影される撮影領域が領域1207である。   As shown in FIG. 12C, the determination unit 505 in the present embodiment determines the zoom magnification so that the upper end of the area 1206, which is an area obtained by excluding the area 1204 from the entire image area, and the upper end of the shooting area overlap. To do. In FIG. 12C, a shooting area that is shot at the zoom magnification determined at this time is an area 1207.

このように、画像に含まれる人体のサイズに基づいて、人数が最大の画像を撮影した撮影装置102のズーム倍率を所定の割合高くしたズーム倍率を決定する。このとき決定されたズーム倍率に従って撮影装置102を制御することで、検出部502による人体検出の精度が向上して、結果的に人数カウントの精度を向上させることができる。   Thus, based on the size of the human body included in the image, the zoom magnification is determined by increasing the zoom magnification of the photographing apparatus 102 that has captured the image with the largest number of people by a predetermined ratio. By controlling the photographing apparatus 102 according to the zoom magnification determined at this time, the accuracy of human detection by the detection unit 502 can be improved, and as a result, the accuracy of counting people can be improved.

なお、ズーム倍率を所定の割合高くすることで、人体1201、1202、1203など画角から外れる人体が存在することがある。しかし、図10および図11で説明したフローチャートの制御を実行して、カウント領域において撮影装置102の撮影領域を巡回させることで、結果的に画角から外れた人体も検出することができる。   Note that there are cases in which there are human bodies that deviate from the angle of view, such as human bodies 1201, 1202, and 1203, by increasing the zoom magnification by a predetermined ratio. However, by executing the control of the flowcharts described with reference to FIGS. 10 and 11 and circulating the imaging area of the imaging apparatus 102 in the count area, it is possible to detect a human body that is out of the angle of view as a result.

次に、図13のフローチャートを参照して、実施形態2に係る決定部505がズーム倍率を決定する処理について説明する。   Next, a process in which the determination unit 505 according to the second embodiment determines the zoom magnification will be described with reference to the flowchart of FIG.

なお、実施形態1において図10および図11を参照して説明したように、このフローに入る前に、コマンド管理部504による制御に従い、撮影装置101のズーム倍率は適宜制御され、さらに撮影装置101は目的の撮影方向を向いているものとする。   As described with reference to FIGS. 10 and 11 in the first embodiment, before entering this flow, the zoom magnification of the image capturing apparatus 101 is appropriately controlled according to the control by the command management unit 504, and the image capturing apparatus 101 is further controlled. Is oriented in the desired shooting direction.

なお、本実施形態において、図13に示すフローチャートの処理は、画像処理装置100のHDD203に格納されたコンピュータプログラムをCPU200が実行することにより実現される図5の各機能ブロックにより実行されるものとして説明する。ただし、図13に示すフローチャートの処理の一部は、専用のハードウェアによって実行するようにしてもよい。   In the present embodiment, the processing of the flowchart shown in FIG. 13 is executed by each functional block of FIG. 5 realized by the CPU 200 executing the computer program stored in the HDD 203 of the image processing apparatus 100. explain. However, a part of the processing of the flowchart shown in FIG. 13 may be executed by dedicated hardware.

ステップS901にて、検出部502は、撮影装置102が撮影した画像における人体を検出する。なお本実施形態において、記憶部507は、検出部502が検出した人体の人体サイズと、人体の画像における位置とを記憶する。   In step S901, the detection unit 502 detects a human body in an image captured by the imaging device 102. In the present embodiment, the storage unit 507 stores the human body size detected by the detection unit 502 and the position of the human body in the image.

ステップS902〜ステップS906までの処理は、実施形態1と同様であるため、説明を省略する。   Since the processing from step S902 to step S906 is the same as that of the first embodiment, the description thereof is omitted.

次に、ステップS1301にて、決定部505は、カウント部503によりカウントされた人数が最大となった画像と、その画像を撮影したときの撮影装置102のズーム倍率を決定する。   Next, in step S1301, the determination unit 505 determines an image in which the number of persons counted by the count unit 503 is maximized and a zoom magnification of the image capturing apparatus 102 when the image is captured.

次に、ステップS1302にて、決定部505は、ステップS1301にて決定された画像において、検出部502により検出されて記憶部507に記憶された人体の位置に基づいて、画像内で最も上部に位置する人体に注目する。   Next, in step S1302, the determination unit 505 determines the highest position in the image based on the position of the human body detected by the detection unit 502 and stored in the storage unit 507 in the image determined in step S1301. Pay attention to the human body.

次に、ステップS1303にて、決定部505は、ステップS1302にて決定部505が注目した人体のサイズと予め設定された閾値とを比較する。   In step S1303, the determination unit 505 compares the size of the human body noted by the determination unit 505 in step S1302 with a preset threshold value.

次に、ステップS1304にて、注目した人体サイズが閾値以下だった場合、ステップS1305へ遷移し、注目した人体サイズが閾値を上回った場合、ステップS1306へ遷移する。   Next, in step S1304, when the focused human body size is equal to or smaller than the threshold, the process proceeds to step S1305. When the focused human body size exceeds the threshold, the process proceeds to step S1306.

ステップS1305では、決定部505は、ステップS1303にて比較対象となった人体以外で、画面の最も上部に位置する人体に注目する。そしてステップS1303にて再度、決定部505は注目した人体サイズと予め設定された閾値とを比較する。   In step S1305, the determination unit 505 pays attention to the human body positioned at the top of the screen other than the human body that is the comparison target in step S1303. In step S1303, the determination unit 505 again compares the noticed human body size with a preset threshold value.

このようにステップS1303〜ステップS1305の処理を繰り返し、決定部505は、設定した閾値を上回る人体サイズの人物を特定する。   In this manner, the processes in steps S1303 to S1305 are repeated, and the determination unit 505 identifies a person having a human body size that exceeds the set threshold value.

ステップS1306にて、コマンド管理部504は、ステップS1304にて初めて閾値を上回った人体が、撮影装置102の撮影領域の上端に位置するズーム倍率を決定する。このとき、決定部505は、ステップS1301にて特定されたズーム倍率から、閾値を上回った人体の位置を示す外接矩形(不図示)の上端と、撮影領域の上端とが重なるような撮影装置102のズーム倍率を計算によって導出するものとする。そして、決定部505は、導出したズーム倍率を他の撮影領域を撮影するときに用いるズーム倍率として決定するものとする。   In step S <b> 1306, the command management unit 504 determines the zoom magnification at which the human body that has exceeded the threshold value for the first time in step S <b> 1304 is positioned at the upper end of the imaging area of the imaging apparatus 102. At this time, the determination unit 505 determines that the imaging device 102 has an upper end of a circumscribed rectangle (not shown) indicating the position of the human body that exceeds the threshold from the zoom magnification specified in step S1301 and the upper end of the imaging region. It is assumed that the zoom magnification of is derived by calculation. Then, the determination unit 505 determines the derived zoom magnification as a zoom magnification to be used when photographing another imaging region.

ステップS908およびステップS901〜903の処理は、実施形態1と同様であるため説明を省略する。   Since the processes in step S908 and steps S901 to S903 are the same as those in the first embodiment, description thereof is omitted.

以上説明したように、本実施形態に係る決定部505は、ある撮影方向において、人数が最大の画像における人体のサイズに基づいて、その画像を撮影した撮影装置102のズーム倍率を所定の割合高くしたズーム倍率を決定する。   As described above, the determination unit 505 according to the present embodiment increases the zoom magnification of the image capturing apparatus 102 that has captured the image by a predetermined ratio based on the size of the human body in the image with the largest number of persons in a certain image capturing direction. Determine the zoom magnification.

このとき決定されたズーム倍率に従って、図10に示すようなカウント領域600における人数カウントの処理を行うにあたって、図11に示すフローチャートにおけるステップS1102にて、本実施形態に係る図13に示すフローチャートの処理を行う。本実施形態に係る決定部505により決定されたズーム倍率に従って撮影装置102を制御することにより、検出部502による人体検出の精度が向上して、結果的に人数カウントの精度を向上させることができる。   When performing the process of counting the number of people in the count area 600 as shown in FIG. 10 according to the zoom magnification determined at this time, the process of the flowchart shown in FIG. 13 according to the present embodiment is performed in step S1102 in the flowchart shown in FIG. I do. By controlling the photographing apparatus 102 according to the zoom magnification determined by the determination unit 505 according to the present embodiment, the accuracy of human body detection by the detection unit 502 is improved, and as a result, the accuracy of counting people can be improved. .

なお、本実施形態に係る決定部505は、人数が最大の画像を撮影したときのズーム倍率から所定の割合高くしたズーム倍率を決定する際、人数が最大の画像における人体のサイズと閾値とを考慮して決定したが、これに限らない。例えば、決定部505は、ズーム倍率を変更する度合である所定の割合を、人体のサイズと閾値とを考慮せず、予め設定された割合を用いてもよいし、ユーザーにより適宜設定された割合を用いてもよい。   Note that the determining unit 505 according to the present embodiment determines the size of the human body and the threshold value in the image with the maximum number of persons when determining the zoom ratio that is a predetermined ratio higher than the zoom ratio when the image with the maximum number of persons is captured. Although determined in consideration, it is not limited to this. For example, the determination unit 505 may use a predetermined ratio, which is the degree to which the zoom magnification is changed, without considering the human body size and the threshold, or a ratio appropriately set by the user May be used.

(変形例)
上述した実施形態1および実施形態2に係る処理は画像処理装置100が行うとして説明したが、これに限定されない。実施形態1または実施形態2に係る画像処理装置100の1以上の機能を、撮影装置102が有していてもよい。つまり、実施形態1または実施形態2に係る処理は、画像処理装置100のCPU200により実行されたが、撮影装置102のCPU210およびクライアント装置が有するCPUが協働することにより実現されてもよい。
(Modification)
Although the processing according to the first and second embodiments described above has been described as being performed by the image processing apparatus 100, the present invention is not limited to this. The imaging apparatus 102 may have one or more functions of the image processing apparatus 100 according to the first embodiment or the second embodiment. That is, the processing according to the first or second embodiment is executed by the CPU 200 of the image processing apparatus 100, but may be realized by the cooperation of the CPU 210 of the photographing apparatus 102 and the CPU of the client apparatus.

例えば、図5に示す、検出部502と、カウント部503と、コマンド管理部504と、決定部505と、記憶部507は撮影装置102が有していてもよい。なおこのとき、表示部506と、操作受付部508は、クライアント装置1400が有する。クライアント装置1400は、画像処理装置100と同等のハードウェア構成を有するパーソナルコンピュータである。この場合について、図14を参照して更に詳細に説明する。なお、実施形態1および実施形態2と同一または同等の構成要素、処理には、同一の符号を付するものとし、適宜、重複した説明は省略する。   For example, the imaging device 102 may include the detection unit 502, the count unit 503, the command management unit 504, the determination unit 505, and the storage unit 507 illustrated in FIG. At this time, the display unit 506 and the operation receiving unit 508 are included in the client device 1400. The client apparatus 1400 is a personal computer having a hardware configuration equivalent to that of the image processing apparatus 100. This case will be described in more detail with reference to FIG. In addition, the same code | symbol shall be attached | subjected to the component and process which are the same or equivalent to Embodiment 1 and Embodiment 2, and the overlapping description is abbreviate | omitted suitably.

図14は、画像処理装置100の一部の機能を有する撮影装置102とクライアント装置1400の機能ブロック図の一例である。撮影装置102とクライアント装置1400は、ネットワーク104を介して通信が行われる。   FIG. 14 is an example of a functional block diagram of the photographing apparatus 102 and the client apparatus 1400 that have some functions of the image processing apparatus 100. The imaging apparatus 102 and the client apparatus 1400 communicate via the network 104.

撮影部305は、CCDセンサやCMOSセンサ等の撮像素子を有し、撮影装置102のレンズ302を通って結像された被写体像を光電変換して電気信号を生成する。   The imaging unit 305 includes an imaging element such as a CCD sensor or a CMOS sensor, and generates an electrical signal by photoelectrically converting a subject image formed through the lens 302 of the imaging apparatus 102.

画像処理部306は、撮影部305において生成された電気信号をデジタル信号へ変換する処理や、圧縮符号化処理などを行い、画像データを生成する。   The image processing unit 306 performs processing for converting the electrical signal generated by the photographing unit 305 into a digital signal, compression encoding processing, and the like, and generates image data.

検出部502は、画像処理部306にて生成された画像における人物を検出する。   The detection unit 502 detects a person in the image generated by the image processing unit 306.

コマンド管理部504は、撮影装置102のパン・チルト・ズームなどを制御したり、画像を撮影する制御などの撮影動作を制御するコマンドを生成する。コマンド管理部504で生成されたコマンドは、システム制御部307で解析され、パンチルトズーム制御部300により撮影装置102を制御する。   The command management unit 504 generates commands for controlling panning, tilting, zooming, and the like of the photographing apparatus 102 and controlling photographing operations such as control for photographing an image. The command generated by the command management unit 504 is analyzed by the system control unit 307, and the pan / tilt / zoom control unit 300 controls the photographing apparatus 102.

記憶部507は、画像処理部306にて生成された画像や、検出部502の検出結果などを記憶する。また記憶部507は、検出部502による処理が行われた画像が撮影されたときの撮影装置102の撮影状態などを記憶する。   The storage unit 507 stores the image generated by the image processing unit 306, the detection result of the detection unit 502, and the like. In addition, the storage unit 507 stores a shooting state of the shooting device 102 when an image processed by the detection unit 502 is shot.

操作受付部508は、ユーザーが行った操作を受け付ける。例えば、コマンド管理部504にて生成されたコマンドに基づき、撮影装置102が撮影可能な範囲に対してパン・チルト・ズームの制御および撮影を繰り返すよう撮影装置102を制御する。そして撮影された画像は通信部309と通信部501とを介して表示部506へ送信され、表示部506は、送信された画像に基づき、パノラマ画像を生成して表示装置101に表示させる。   The operation reception unit 508 receives an operation performed by the user. For example, based on the command generated by the command management unit 504, the photographing apparatus 102 is controlled to repeat pan / tilt / zoom control and photographing with respect to a range in which the photographing apparatus 102 can photograph. The captured image is transmitted to the display unit 506 via the communication unit 309 and the communication unit 501, and the display unit 506 generates a panoramic image based on the transmitted image and causes the display device 101 to display the panoramic image.

そして操作受付部508は、表示部506により表示装置101に表示されたパノラマ画像に対してユーザーが設定したカウント領域の位置情報を受け付ける。このとき操作受付部508が受け付けた情報は通信部501と通信部309とを介して記憶部507へ送られる。   The operation reception unit 508 receives position information of the count area set by the user with respect to the panoramic image displayed on the display device 101 by the display unit 506. Information received by the operation receiving unit 508 at this time is sent to the storage unit 507 via the communication unit 501 and the communication unit 309.

カウント部503および決定部505の機能は、実施形態1および実施形態2と同様であるため説明を省略する。   The functions of the count unit 503 and the determination unit 505 are the same as those in the first and second embodiments, and thus description thereof is omitted.

なお、カウント部503によりカウントされたカウント領域における人数のカウント結果は、通信部309および通信部501を介して表示部506へ送られ、表示部506はカウント結果を表示装置101に表示するようにしてもよい。   The count result of the number of people in the count area counted by the count unit 503 is sent to the display unit 506 via the communication unit 309 and the communication unit 501, and the display unit 506 displays the count result on the display device 101. May be.

以上のように実施形態1または実施形態2に係る画像処理装置100の1以上の機能を、撮影装置102が有していてもよい。   As described above, the imaging apparatus 102 may have one or more functions of the image processing apparatus 100 according to the first embodiment or the second embodiment.

(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを1つ以上のプロセッサが読出して実行する処理でも実現可能である。プログラムは、ネットワーク又は記憶媒体を介して、プロセッサを有するシステム又は装置に供給するようにしてもよい。また、本発明は、上述の実施形態の1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention can also be realized by a process in which one or more processors read and execute a program that realizes one or more functions of the above-described embodiment. The program may be supplied to a system or apparatus having a processor via a network or a storage medium. The present invention can also be realized by a circuit (for example, ASIC) that realizes one or more functions of the above-described embodiments.

501 通信部
502 検出部
503 カウント部
504 コマンド管理部
505 決定部
506 表示部
507 記憶部
508 操作受付部
501 Communication unit 502 Detection unit 503 Count unit 504 Command management unit 505 Determination unit 506 Display unit 507 Storage unit 508 Operation reception unit

Claims (14)

撮影手段により所定の領域を複数の撮影領域に分けて撮影された画像から人物の数をカウントする画像処理装置であって、
撮影された画像に含まれる人物を検出する検出手段と、
前記検出手段が検出した人物の数をカウントするカウント手段と、
前記撮影手段の撮影動作を制御する制御手段と、
前記撮影手段のズーム倍率を決定する決定手段と、を有し、
前記カウント手段は、ズーム倍率を段階的に変更することで撮影された、複数の画像の各々について人数をカウントし、
前記決定手段は、前記カウント手段によりカウントされた人数が最大となる画像の撮影時のズーム倍率に基づいて、前記撮影手段のズーム倍率を決定し、
前記制御手段は、決定された前記ズーム倍率を用いて、他の撮影領域を撮影するように制御することを特徴とする画像処理装置。
An image processing apparatus that counts the number of persons from an image captured by dividing a predetermined area into a plurality of imaging areas by an imaging unit,
Detecting means for detecting a person included in the photographed image;
Counting means for counting the number of persons detected by the detecting means;
Control means for controlling the photographing operation of the photographing means;
Determining means for determining a zoom magnification of the photographing means;
The counting means counts the number of persons for each of a plurality of images taken by changing the zoom magnification in stages,
The determining means determines a zoom magnification of the photographing means based on a zoom magnification at the time of photographing an image in which the number of persons counted by the counting means is maximized,
The image processing apparatus according to claim 1, wherein the control unit performs control so as to photograph another photographing region using the determined zoom magnification.
前記決定手段は、前記カウント手段によりカウントされた人数が最大となる画像の撮影時のズーム倍率を前記他の撮影領域を撮影するときに用いるズーム倍率として決定することを特徴とする請求項1に記載の画像処理装置。   2. The determination unit according to claim 1, wherein the determination unit determines a zoom magnification at the time of shooting an image with the maximum number of people counted by the counting unit as a zoom magnification used when shooting the other shooting region. The image processing apparatus described. 前記決定手段は、前記カウント手段によりカウントされた人数が最大となる画像が複数存在する場合、当該複数の画像を撮影したときの複数のズーム倍率において、最もワイド端側のズーム倍率を前記他の撮影領域を撮影するときに用いるズーム倍率として決定することを特徴とする請求項2に記載の画像処理装置。   When there are a plurality of images having the maximum number of persons counted by the counting unit, the determining unit determines the zoom magnification at the widest end side among the plurality of zoom magnifications when the plurality of images are captured. The image processing apparatus according to claim 2, wherein the image processing apparatus determines the zoom magnification used when shooting the shooting area. 前記決定手段は、前記カウント手段によりカウントされた人数が最大となる画像の撮影時のズーム倍率を所定の割合高くしたズーム倍率を前記他の撮影領域を撮影するときに用いるズーム倍率として決定することを特徴とする請求項1に記載の画像処理装置。   The determining means determines a zoom magnification, which is a predetermined ratio higher than the zoom magnification at the time of shooting an image with the maximum number of people counted by the counting means, as a zoom magnification used when shooting the other shooting area. The image processing apparatus according to claim 1. 前記決定手段は、前記カウント手段によりカウントされた人数が最大となる画像に含まれる人物のサイズが閾値を上回る人物のうち、画像内の最も上部に位置する人物が撮影領域の上端に位置するようなズーム倍率を前記他の撮影領域を撮影するときに用いるズーム倍率として決定することを特徴とする請求項4に記載の画像処理装置。   The determination unit is configured such that the person located at the top of the image is located at the upper end of the shooting area among the persons whose size of the person included in the image having the maximum number of people counted by the counting unit exceeds the threshold. The image processing apparatus according to claim 4, wherein an appropriate zoom magnification is determined as a zoom magnification used when photographing the other photographing region. 前記制御手段は、前記所定の領域における特定の端部から対角線上に位置する端部まで撮影領域をラスター方向に移動させて撮影するように制御することで、前記所定の領域を複数の撮影領域に分けて撮影することを特徴とする請求項1乃至5のいずれか一項に記載の画像処理装置。   The control means controls the predetermined area to be photographed by moving the imaging area in a raster direction from a specific end in the predetermined area to an end located on a diagonal line. The image processing apparatus according to claim 1, wherein the image processing is performed separately. 所定の領域を複数の撮影領域に分けて撮影された画像から人物の数をカウントする撮影装置であって、
画像を撮影する撮影手段と、
前記撮影手段により撮影された画像に含まれる人物を検出する検出手段と、
前記検出手段が検出した人物の数をカウントするカウント手段と、
前記撮影手段の撮影動作を制御する制御手段と、
前記撮影手段のズーム倍率を決定する決定手段と、を有し、
前記カウント手段は、ズーム倍率を段階的に変更することで撮影された、複数の画像の各々について人数をカウントし、
前記決定手段は、前記カウント手段によりカウントされた人数が最大となる画像の撮影時のズーム倍率に基づいて、前記撮影手段のズーム倍率を決定し、
前記制御手段は、決定された前記ズーム倍率を用いて、他の撮影領域を撮影するように制御することを特徴とする撮影装置。
An imaging device that counts the number of persons from an image captured by dividing a predetermined area into a plurality of imaging areas,
Photographing means for photographing an image;
Detecting means for detecting a person included in the image photographed by the photographing means;
Counting means for counting the number of persons detected by the detecting means;
Control means for controlling the photographing operation of the photographing means;
Determining means for determining a zoom magnification of the photographing means;
The counting means counts the number of persons for each of a plurality of images taken by changing the zoom magnification in stages,
The determining means determines a zoom magnification of the photographing means based on a zoom magnification at the time of photographing an image in which the number of persons counted by the counting means is maximized,
The said control means is controlled to image | photograph another imaging area | region using the determined said zoom magnification.
撮影工程により所定の領域を複数の撮影領域に分けて撮影された画像から人物の数をカウントする画像処理方法であって、
撮影された画像に含まれる人物を検出する検出工程と、
前記検出工程にて検出された人物の数をカウントするカウント工程と、
前記撮影工程の撮影動作を制御する制御工程と、
前記撮影工程のズーム倍率を決定する決定工程と、を有し、
前記カウント工程は、ズーム倍率を段階的に変更することで撮影された、複数の画像の各々について人数をカウントし、
前記決定工程は、前記カウント工程によりカウントされた人数が最大となる画像の撮影時のズーム倍率に基づいて、前記撮影工程のズーム倍率を決定し、
前記制御工程は、決定された前記ズーム倍率を用いて、他の撮影領域を撮影するように制御することを特徴とする画像処理方法。
An image processing method for counting a number of persons from an image captured by dividing a predetermined area into a plurality of shooting areas by a shooting process,
A detection step of detecting a person included in the photographed image;
A counting step of counting the number of persons detected in the detection step;
A control step for controlling the photographing operation of the photographing step;
Determining a zoom magnification of the photographing step,
The counting step counts the number of people for each of a plurality of images taken by changing the zoom magnification in stages.
The determining step determines a zoom magnification of the photographing step based on a zoom magnification at the time of photographing an image in which the number of persons counted in the counting step is maximized,
The image processing method according to claim 1, wherein the control step performs control so as to image another imaging region using the determined zoom magnification.
前記決定工程は、前記カウント工程によりカウントされた人数が最大となる画像の撮影時のズーム倍率を前記他の撮影領域を撮影するときに用いるズーム倍率として決定することを特徴とする請求項8に記載の画像処理方法。   9. The determination step according to claim 8, wherein the zoom magnification at the time of shooting the image with the maximum number of people counted in the counting step is determined as a zoom magnification used when shooting the other shooting area. The image processing method as described. 前記決定工程は、前記カウント工程によりカウントされた人数が最大となる画像が複数存在する場合、当該複数の画像を撮影したときの複数のズーム倍率において、最もワイド端側のズーム倍率を前記他の撮影領域を撮影するときに用いるズーム倍率として決定することを特徴とする請求項9に記載の画像処理方法。   In the determination step, when there are a plurality of images with the maximum number of people counted in the counting step, the zoom magnification on the widest end side is set to the other zoom magnification when the plurality of images are captured. The image processing method according to claim 9, wherein the image processing method is determined as a zoom magnification used when photographing the photographing region. 前記決定工程は、前記カウント工程によりカウントされた人数が最大となる画像の撮影時のズーム倍率を所定の割合高くしたズーム倍率を前記他の撮影領域を撮影するときに用いるズーム倍率として決定することを特徴とする請求項8に記載の画像処理方法。   In the determining step, a zoom magnification obtained by increasing the zoom magnification at the time of photographing an image with the maximum number of people counted in the counting step by a predetermined ratio is determined as a zoom magnification used when photographing the other photographing region. The image processing method according to claim 8. 前記決定工程は、前記カウント工程によりカウントされた人数が最大となる画像に含まれる人物のサイズが閾値を上回る人物のうち、画像内の最も上部に位置する人物が撮影領域の上端に位置するようなズーム倍率を前記他の撮影領域を撮影するときに用いるズーム倍率として決定することを特徴とする請求項11に記載の画像処理方法。   In the determination step, among the persons whose size of the person included in the image having the maximum number of people counted in the counting step exceeds the threshold value, the person positioned at the top in the image is positioned at the upper end of the shooting area. The image processing method according to claim 11, wherein the zoom magnification is determined as a zoom magnification used when photographing the other photographing area. 前記制御工程は、前記所定の領域における特定の端部から対角線上に位置する端部まで撮影領域をラスター方向に移動させて撮影するように制御することで、前記所定の領域を複数の撮影領域に分けて撮影することを特徴とする請求項8乃至12のいずれか一項に記載の画像処理方法。   The control step controls the predetermined area to be photographed by moving the imaging area in a raster direction from a specific end in the predetermined area to an end located on a diagonal line. The image processing method according to claim 8, wherein the image is shot separately. コンピュータを請求項1に記載の画像処理装置の各手段として機能させるためのプログラム。   A program for causing a computer to function as each unit of the image processing apparatus according to claim 1.
JP2018108462A 2018-06-06 2018-06-06 Image processing apparatus, photographing apparatus, image processing method, and program Active JP6580213B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018108462A JP6580213B1 (en) 2018-06-06 2018-06-06 Image processing apparatus, photographing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018108462A JP6580213B1 (en) 2018-06-06 2018-06-06 Image processing apparatus, photographing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP6580213B1 true JP6580213B1 (en) 2019-09-25
JP2019212090A JP2019212090A (en) 2019-12-12

Family

ID=68053676

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018108462A Active JP6580213B1 (en) 2018-06-06 2018-06-06 Image processing apparatus, photographing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP6580213B1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0147572B1 (en) * 1992-10-09 1998-09-15 김광호 Method & apparatus for object tracing
JP2000251193A (en) * 1999-03-02 2000-09-14 Canon Inc Device and method for processing video image and storage medium
JP4279790B2 (en) * 2005-02-24 2009-06-17 株式会社日立製作所 Car number recognition device
JP6914007B2 (en) * 2016-05-13 2021-08-04 キヤノン株式会社 Information processing device and information processing method

Also Published As

Publication number Publication date
JP2019212090A (en) 2019-12-12

Similar Documents

Publication Publication Date Title
US11277553B2 (en) Switchover control techniques for dual-sensor camera system
US8164643B2 (en) Composition determining apparatus, composition determining method, and program
JP5219847B2 (en) Image processing apparatus and image processing method
JP6319101B2 (en) Image processing apparatus, image processing method, and program
JP4852652B2 (en) Electronic zoom device, electronic zoom method, and program
KR101739318B1 (en) Display control apparatus, imaging system, display control method, and recording medium
EP0940978A2 (en) High resolution camera
JP2009267787A (en) Composition determination device, composition determination method, and program
JP2010081535A (en) Imaging apparatus, imaging method, and program
JPWO2017037978A1 (en) DETECTING DEVICE, DETECTING METHOD, DETECTING PROGRAM, AND IMAGING DEVICE
JP2016096481A (en) Control apparatus, photographing system, control method, and program
JP2006191408A (en) Image display program
JP6700706B2 (en) Information processing apparatus, information processing method, and program
JP5871463B2 (en) Image processing apparatus, control method therefor, program, and storage medium
JP6580213B1 (en) Image processing apparatus, photographing apparatus, image processing method, and program
JP2011193066A (en) Image sensing device
JP7182893B2 (en) Image processing device, imaging device, image processing method, and program
JP6545229B2 (en) IMAGE PROCESSING APPARATUS, IMAGING APPARATUS, CONTROL METHOD OF IMAGE PROCESSING APPARATUS, AND PROGRAM
JP7208713B2 (en) Image analysis device and image analysis method
JP2011211757A (en) Electronic zoom apparatus, electronic zoom method, and program
JP2021105850A (en) Image processing device and method, and imaging device
WO2017094241A1 (en) Display processing apparatus, display processing method, and computer-readable medium for executing display processing method
JP2020005111A (en) Information processing apparatus, control method, and program
RU2792413C1 (en) Image processing method and mobile terminal
CN116076083A (en) Imaging apparatus, information processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180606

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190621

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190827

R151 Written notification of patent or utility model registration

Ref document number: 6580213

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151