JP2008077430A - Mobile body counting device and mobile body counting method - Google Patents

Mobile body counting device and mobile body counting method Download PDF

Info

Publication number
JP2008077430A
JP2008077430A JP2006256391A JP2006256391A JP2008077430A JP 2008077430 A JP2008077430 A JP 2008077430A JP 2006256391 A JP2006256391 A JP 2006256391A JP 2006256391 A JP2006256391 A JP 2006256391A JP 2008077430 A JP2008077430 A JP 2008077430A
Authority
JP
Japan
Prior art keywords
image
unit
detection area
moving body
storage 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.)
Withdrawn
Application number
JP2006256391A
Other languages
Japanese (ja)
Inventor
Yoshinori Ookuma
好憲 大熊
Shinichi Murata
伸一 村田
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2006256391A priority Critical patent/JP2008077430A/en
Publication of JP2008077430A publication Critical patent/JP2008077430A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a new and improved mobile body counting device, capable of automatically changing setting of a detection area for detecting a mobile body, and a mobile body counting method therefor. <P>SOLUTION: The mobile body counting device 100 comprises an image acquisition part 110 acquiring an image at predetermined intervals; an image recognition part 130 recognizing a form similar to a preset form contained in the image; a position acquisition part 150 acquiring the coordinate position of the similar form contained in the image; a detection area generation part 160 generating a detection area based on the coordinate position; a mobile body detection part 170 detecting mobile bodies contained in the image; and a mobile body counting part 180 counting the number of mobile bodies contained in the detection area. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、移動体計数装置および移動体計数方法に関する。   The present invention relates to a moving body counting apparatus and a moving body counting method.

街中のオフィスや繁華街、金融機関の現金自動預払コーナー等の様々な場所で、監視カメラが設置されている。従来、監視カメラは、撮影された画像を監視員が監視することで、上記の場所における異常事態が発生した場合に警告を発する等の目的で使用されていたが、最近では、監視カメラで撮影された画像から人物や車両等を自動的に検出し、検出した数を計測することにより、利用者に対して様々なサービスを提供するために用いられるようになっている。   Surveillance cameras are installed in various locations, such as offices and downtown areas in the city, and automated teller corners of financial institutions. Conventionally, surveillance cameras have been used for the purpose of issuing warnings when abnormal situations occur in the above-mentioned locations by monitoring images taken by surveillance personnel. It is used to provide various services to users by automatically detecting people, vehicles, etc. from the images and measuring the number of detections.

このような監視カメラを用いた物体の計数装置の一例が、特許文献1に示されている。特許文献1で開示された技術は、通路の上方から下方に向けて設置されたカメラで撮影された画像に設定された帯状の固定された検出エリアを移動体が通過するときに、円形の移動物体のみを抽出し、人間の頭と同じ大きさの移動物体に対してのみパタンマッチング処理を行って、人間であるかどうかを判定し、検出エリアを通過する人間の数を計数するものであった。   An example of an object counting device using such a monitoring camera is disclosed in Patent Document 1. The technique disclosed in Patent Document 1 is a circular movement when a moving body passes through a fixed detection area in a band shape set in an image photographed by a camera installed from above to below a passage. Only an object is extracted, pattern matching processing is performed only on a moving object having the same size as a human head, it is determined whether or not it is a human, and the number of humans passing through the detection area is counted. It was.

特開平8−23882号公報JP-A-8-23882

しかし、特許文献1に示した方法では、検出エリアはオペレータが設定を変更しない限り固定されたままであるという問題があった。店舗や金融機関の現金自動預払コーナーを利用する人物の数は時間帯や日付によって変化し、これに応じてレジやATM等の端末に並ぶ人で形成される待ち行列の長さや形状も変化する。しかし、検出エリアが固定されたままの状態では、待ち行列の長さや形状の変化に対応できずに、検出エリアを通過する移動体を正しく計数できない問題があった。   However, the method disclosed in Patent Document 1 has a problem that the detection area remains fixed unless the operator changes the setting. The number of people using the automated teller corner of a store or financial institution changes depending on the time of day or date, and the length and shape of the queue formed by people lining up at terminals such as cash registers and ATMs change accordingly. To do. However, in a state where the detection area is fixed, there is a problem that it is impossible to correctly count the moving objects passing through the detection area without being able to cope with changes in the length and shape of the queue.

上記の問題を解決するためには、設定された検出エリアを手動で設定し直す事が考えられるが、この場合はオペレータに検出エリアの再設定という作業負荷がかかるか、検出エリアを設定するためのオペレータを確保しなければならないと言う問題が新たに発生し、コストが増加してしまうという問題があった。   In order to solve the above problem, it is conceivable to manually reset the set detection area. In this case, the operator is burdened with resetting the detection area, or the detection area is set. There is a problem that a new problem arises that the number of operators must be secured and the cost increases.

そこで、本発明は、上記問題に鑑みてなされたものであり、本発明の目的とするところは、移動体を検出する検出エリアの設定を自動的に変化させることが可能な、新規かつ改良された移動体計数装置および移動体計数方法を提供することにある。   Therefore, the present invention has been made in view of the above problems, and an object of the present invention is new and improved, which can automatically change the setting of a detection area for detecting a moving object. Another object of the present invention is to provide a moving body counting apparatus and a moving body counting method.

上記課題を解決するために、本発明のある観点によれば、所定の間隔で画像を取得する画像取得部と、画像に含まれる、予め設定した形状に類似する形状を認識する画像認識部と、画像に含まれる類似する形状の座標位置を取得する位置取得部と、座標位置に基づいて検出エリアを生成する検出エリア生成部と、画像に含まれる移動体を検出する移動体検出部と、検出エリアに含まれる移動体の数を計数する移動体計数部と、を含むことを特徴とする、移動体計数装置が提供される。   In order to solve the above problems, according to an aspect of the present invention, an image acquisition unit that acquires images at predetermined intervals, an image recognition unit that recognizes a shape similar to a preset shape included in the image, and A position acquisition unit that acquires a coordinate position of a similar shape included in the image, a detection area generation unit that generates a detection area based on the coordinate position, a mobile body detection unit that detects a mobile body included in the image, There is provided a moving body counting device including a moving body counting unit that counts the number of moving bodies included in the detection area.

かかる構成によれば、画像取得部は所定の間隔で画像を取得し、画像認識部は画像取得部で取得した画像から、予め設定した形状に類似する形状を認識し、位置取得部は画像認識部で認識した予め設定した形状に類似する形状の座標位置を取得し、検出エリア生成部は位置取得部で取得した予め設定した形状に類似する形状の座標位置に基づいて検出エリアを生成し、移動体検出部は画像取得部で取得した画像に含まれる移動体を検出し、移動体計数部は検出エリア生成部で生成した検出エリアに含まれる、移動体検出部で検出した移動体の数を計数する。その結果、取得した画像を分析することによって検出エリアを動的に設定することができる。   According to this configuration, the image acquisition unit acquires images at predetermined intervals, the image recognition unit recognizes a shape similar to a preset shape from the images acquired by the image acquisition unit, and the position acquisition unit recognizes the image. A coordinate position of a shape similar to the preset shape recognized by the unit, the detection area generation unit generates a detection area based on the coordinate position of the shape similar to the preset shape acquired by the position acquisition unit, The moving object detection unit detects a moving object included in the image acquired by the image acquisition unit, and the moving object counting unit includes the number of moving objects detected by the moving object detection unit included in the detection area generated by the detection area generation unit. Count. As a result, the detection area can be dynamically set by analyzing the acquired image.

移動体検出部は、画像取得部で取得した現在の画像を記憶する現画像記憶部と、画像取得部で取得した画像を背景画像として記憶する背景画像記憶部と、現画像記憶部で記憶した現在の画像と、背景画像記憶部で記憶した背景画像とを比較し、両者が所定の値以上異なっている場合に、背景画像記憶部の背景画像を現画像記憶部で記憶した現在の画像に更新する背景画像更新部と、現画像記憶部で記憶した現在の画像と、画像更新部で更新した背景画像との差分を抽出する差分画像抽出部と、を含んでいてもよい。   The moving body detection unit stores the current image storage unit that stores the current image acquired by the image acquisition unit, the background image storage unit that stores the image acquired by the image acquisition unit as a background image, and the current image storage unit. When the current image is compared with the background image stored in the background image storage unit and the two are different by a predetermined value or more, the background image in the background image storage unit is changed to the current image stored in the current image storage unit. A background image update unit to be updated, a difference image extraction unit that extracts a difference between the current image stored in the current image storage unit and the background image updated by the image update unit may be included.

かかる構成によれば、現画像記憶部は画像取得部で取得した現在の画像を記憶し、背景画像記憶部は画像取得部で取得した画像を背景画像として記憶し、背景画像更新部は、現画像記憶部で記憶した現在の画像と、背景画像記憶部で記憶した背景画像とを比較し、両者が所定の値以上異なっている場合に、背景画像記憶部の背景画像を現画像記憶部で記憶した現在の画像に更新し、差分画像抽出部は現画像記憶部で記憶した現在の画像と、画像更新部で更新した背景画像との差分を抽出する。その結果、取得した画像間の差分を抽出することで移動体を検出することができる。   According to this configuration, the current image storage unit stores the current image acquired by the image acquisition unit, the background image storage unit stores the image acquired by the image acquisition unit as a background image, and the background image update unit The current image stored in the image storage unit is compared with the background image stored in the background image storage unit, and if both are different by a predetermined value or more, the background image in the background image storage unit is displayed in the current image storage unit. Updating to the stored current image, the difference image extraction unit extracts a difference between the current image stored in the current image storage unit and the background image updated by the image update unit. As a result, the moving object can be detected by extracting the difference between the acquired images.

上記課題を解決するために、本発明の別の観点によれば、所定の間隔で画像を取得する画像取得部と、画像に含まれる基準物の属性情報を取得して、基準物の位置情報を取得する属性情報取得部と、位置情報を、画像における座標位置に変換して基準物の位置を取得する位置取得部と、基準物の位置に基づいて検出エリアを生成する検出エリア生成部と、画像に含まれる移動体を検出する移動体検出部と、検出エリアに含まれる移動体の数を計数する移動体計数部と、を含むことを特徴とする、移動体計数装置が提供される。   In order to solve the above-described problem, according to another aspect of the present invention, an image acquisition unit that acquires images at predetermined intervals, and attribute information of a reference object included in the image is acquired, and position information of the reference object An attribute information acquisition unit that acquires position information acquisition unit that acquires position of a reference object by converting position information into a coordinate position in an image, and a detection area generation unit that generates a detection area based on the position of the reference object There is provided a moving body counting apparatus comprising: a moving body detecting unit that detects a moving body included in an image; and a moving body counting unit that counts the number of moving bodies included in a detection area. .

かかる構成によれば、画像取得部は所定の間隔で画像を取得し、属性情報取得部は画像に含まれる基準物の属性情報を取得して、基準物の位置情報を取得し、位置取得部は属性情報取得部で取得した基準物の位置情報を、画像における座標位置に変換して基準物の位置を取得し、検出エリア生成部は位置取得部で取得した基準物の位置に基づいて検出エリアを生成し、移動体検出部は画像取得部で取得した画像に含まれる移動体を検出し、移動体計数部は検出エリア生成部で生成した検出エリアに含まれる、移動体検出部で検出した移動体の数を計数する。その結果、取得した画像を分析することによって検出エリアを動的に設定し、検出エリアに含まれる移動体を計数することができる。   According to such a configuration, the image acquisition unit acquires images at predetermined intervals, the attribute information acquisition unit acquires the attribute information of the reference object included in the image, acquires the position information of the reference object, and the position acquisition unit Converts the position information of the reference object acquired by the attribute information acquisition unit to the coordinate position in the image to acquire the position of the reference object, and the detection area generation unit detects based on the position of the reference object acquired by the position acquisition unit An area is generated, the moving body detection unit detects a moving body included in the image acquired by the image acquisition unit, and the moving body counting unit is detected by the moving body detection unit included in the detection area generated by the detection area generation unit. Count the number of moving objects. As a result, it is possible to dynamically set the detection area by analyzing the acquired image and to count the moving bodies included in the detection area.

移動体検出部は、画像取得部で取得した現在の画像を記憶する現画像記憶部と、現画像記憶部で記憶した現在の画像に含まれる背景画像を記憶する背景画像記憶部と、現画像記憶部で記憶した現在の画像と、背景画像記憶部で記憶した背景画像とを比較し、両者が所定の値以上異なっている場合に、背景画像記憶部の背景画像を現画像記憶部で記憶した現在の画像に更新する背景画像更新部と、現画像記憶部で記憶した現在の画像と、画像更新部で更新した背景画像との差分を抽出する差分画像抽出部と、を含んでいてもよい。   The moving object detection unit includes a current image storage unit that stores the current image acquired by the image acquisition unit, a background image storage unit that stores a background image included in the current image stored in the current image storage unit, and a current image The current image stored in the storage unit is compared with the background image stored in the background image storage unit, and if both differ by a predetermined value or more, the background image in the background image storage unit is stored in the current image storage unit A background image update unit that updates the current image, a difference image extraction unit that extracts a difference between the current image stored in the current image storage unit and the background image updated by the image update unit. Good.

かかる構成によれば、現画像記憶部は画像取得部で取得した現在の画像を記憶し、背景画像記憶部は画像取得部で取得した画像を背景画像として記憶し、背景画像更新部は、現画像記憶部で記憶した現在の画像と、背景画像記憶部で記憶した背景画像とを比較し、両者が所定の値以上異なっている場合に、背景画像記憶部の背景画像を現画像記憶部で記憶した現在の画像に更新し、差分画像抽出部は現画像記憶部で記憶した現在の画像と、画像更新部で更新した背景画像との差分を抽出する。その結果、取得した画像間の差分を抽出することで移動体を検出することができる。   According to this configuration, the current image storage unit stores the current image acquired by the image acquisition unit, the background image storage unit stores the image acquired by the image acquisition unit as a background image, and the background image update unit The current image stored in the image storage unit is compared with the background image stored in the background image storage unit, and if both are different by a predetermined value or more, the background image in the background image storage unit is displayed in the current image storage unit. Updating to the stored current image, the difference image extraction unit extracts a difference between the current image stored in the current image storage unit and the background image updated by the image update unit. As a result, the moving object can be detected by extracting the difference between the acquired images.

基準物の位置情報は電子タグに記録されており、属性情報取得部は、無線によって基準物から基準物の位置情報を取得してもよい。かかる構成によれば、属性情報取得部は電子タグに記録されている基準物の位置情報を無線によって取得する。その結果、電子タグから位置情報を無線で読み取ることによって、検出エリアを設定することができる。   The position information of the reference object is recorded in the electronic tag, and the attribute information acquisition unit may acquire the position information of the reference object from the reference object wirelessly. According to such a configuration, the attribute information acquisition unit wirelessly acquires the position information of the reference object recorded on the electronic tag. As a result, the detection area can be set by wirelessly reading the position information from the electronic tag.

属性情報はID番号であり、検出エリアは、ID番号の順序に基づいて形成されてもよい。その結果、基準物の配置を変化させるだけで検出エリアを動的に設定することができる。   The attribute information is an ID number, and the detection area may be formed based on the order of the ID numbers. As a result, the detection area can be set dynamically only by changing the arrangement of the reference object.

上記課題を解決するために、本発明の別の観点によれば、所定の間隔で画像を取得する画像取得ステップと、画像から、予め設定した形状に類似する形状を認識する画像認識ステップと、画像に含まれる類似する形状の座標位置を取得する位置取得ステップと、座標位置に基づいて検出エリアを生成する検出エリア生成ステップと、画像に含まれる移動体を検出する移動体検出ステップと、検出エリアに含まれる移動体の数を計数する移動体計数ステップと、を含むことを特徴とする、移動体計数方法が提供される。   In order to solve the above problems, according to another aspect of the present invention, an image acquisition step of acquiring images at predetermined intervals, an image recognition step of recognizing a shape similar to a preset shape from the image, A position acquisition step of acquiring a coordinate position of a similar shape included in the image, a detection area generation step of generating a detection area based on the coordinate position, a moving body detection step of detecting a moving body included in the image, and detection And a moving body counting step for counting the number of moving bodies included in the area.

かかる方法によれば、画像取得ステップは所定の間隔で画像を取得し、画像認識ステップは画像取得ステップで取得した画像から、予め設定した形状に類似する形状を認識し、位置取得ステップは画像認識ステップで認識した予め設定した形状に類似する形状の座標位置を取得し、検出エリア生成ステップは位置取得ステップで取得した予め設定した形状に類似する形状の座標位置に基づいて検出エリアを生成し、移動体検出ステップは画像取得部で取得した画像に含まれる移動体を検出し、移動体計数ステップは検出エリア生成ステップで生成した検出エリアに含まれる、移動体検出ステップで検出した移動体の数を計数する。その結果、取得した画像を分析することによって検出エリアを動的に設定することができる。   According to this method, the image acquisition step acquires images at predetermined intervals, the image recognition step recognizes a shape similar to a preset shape from the images acquired in the image acquisition step, and the position acquisition step performs image recognition. The coordinate position of the shape similar to the preset shape recognized in the step is acquired, and the detection area generation step generates a detection area based on the coordinate position of the shape similar to the preset shape acquired in the position acquisition step, The moving body detection step detects moving bodies included in the image acquired by the image acquisition unit, and the moving body counting step includes the number of moving bodies detected in the moving body detection step included in the detection area generated in the detection area generation step. Count. As a result, the detection area can be dynamically set by analyzing the acquired image.

上記課題を解決するために、本発明の別の観点によれば、所定の間隔で画像を取得する画像取得ステップと、画像に含まれる基準物の属性情報を取得して、基準物の位置情報を取得する属性情報取得ステップと、位置情報を画像における座標位置に変換して基準物の位置を取得する位置取得ステップと、基準物の位置に基づいて検出エリアを生成する検出エリア生成ステップと、画像に含まれる移動体を検出する移動体検出ステップと、検出エリアに含まれる移動体の数を計数する移動体計数ステップと、を含むことを特徴とする、移動体計数方法が提供される。   In order to solve the above-described problem, according to another aspect of the present invention, an image acquisition step of acquiring images at predetermined intervals, and attribute information of a reference object included in the image are acquired, and position information of the reference object An attribute information acquisition step for acquiring the position, a position acquisition step for converting the position information into a coordinate position in the image to acquire the position of the reference object, a detection area generation step for generating a detection area based on the position of the reference object, There is provided a moving body counting method comprising a moving body detecting step for detecting a moving body included in an image and a moving body counting step for counting the number of moving bodies included in a detection area.

かかる方法によれば、画像取得ステップは所定の間隔で画像を取得し、属性情報取得ステップは画像取得ステップで取得した画像に含まれる基準物の属性情報を取得して、基準物の位置情報を取得し、位置取得ステップは属性情報取得ステップで取得した基準物の位置情報を、画像における座標位置に変換して基準物の位置を取得し、検出エリア生成ステップは位置取得ステップで取得した基準物の位置に基づいて検出エリアを生成し、移動体検出ステップは画像取得ステップで取得した画像に含まれる移動体を検出し、移動体計数ステップは検出エリア生成ステップで生成した検出エリアに含まれる、移動体検出ステップで検出した移動体の数を計数する。その結果、取得した画像を分析することによって検出エリアを動的に設定し、検出エリアを通過する移動体を計数することができる。   According to such a method, the image acquisition step acquires images at predetermined intervals, and the attribute information acquisition step acquires attribute information of the reference object included in the image acquired in the image acquisition step, and obtains the position information of the reference object. The position acquisition step acquires the reference object position by converting the position information of the reference object acquired in the attribute information acquisition step into the coordinate position in the image, and the detection area generation step acquires the reference object acquired in the position acquisition step. A detection area is generated based on the position of the moving object, the moving body detection step detects a moving body included in the image acquired in the image acquisition step, and the moving body counting step is included in the detection area generated in the detection area generation step. The number of moving bodies detected in the moving body detection step is counted. As a result, it is possible to dynamically set the detection area by analyzing the acquired image and to count the moving objects that pass through the detection area.

以上説明したように本発明によれば、移動体を検出する検出エリアの設定を自動的に変化させることが可能な、新規かつ改良された移動体計数装置および移動体計数方法を提供することにある。   As described above, according to the present invention, there is provided a new and improved moving object counting apparatus and moving object counting method capable of automatically changing the setting of a detection area for detecting a moving object. is there.

以下に添付図面を参照しながら、本発明の好適な実施の形態について詳細に説明する。なお、本明細書及び図面において、実質的に同一の機能構成を有する構成要素については、同一の符号を付することにより重複説明を省略する。   Exemplary embodiments of the present invention will be described below in detail with reference to the accompanying drawings. In addition, in this specification and drawing, about the component which has the substantially same function structure, duplication description is abbreviate | omitted by attaching | subjecting the same code | symbol.

(第1の実施形態)
まず、本発明の第1の実施形態にかかる移動体計数装置および移動体計数方法について説明する。
(First embodiment)
First, the moving body counting device and the moving body counting method according to the first embodiment of the present invention will be described.

図1は、本発明の第1の実施形態にかかる移動体計数装置について説明する説明図である。以下、図1を用いて本発明の第1の実施形態にかかる移動体計数装置について説明する。   FIG. 1 is an explanatory diagram for explaining a moving object counter according to a first embodiment of the present invention. Hereinafter, the moving body counter according to the first embodiment of the present invention will be described with reference to FIG.

図1に示したように、本発明の第1の実施形態にかかる移動体計数装置100は、画像取得部110と、画像前処理部120と、画像認識部130と、形状記録部140と、位置取得部150と、検出エリア生成部160と、移動体検出部170と、物体数計数部180と、検出結果表示部190と、を含んで構成される。   As shown in FIG. 1, the moving body counting apparatus 100 according to the first embodiment of the present invention includes an image acquisition unit 110, an image preprocessing unit 120, an image recognition unit 130, a shape recording unit 140, The position acquisition unit 150, the detection area generation unit 160, the moving body detection unit 170, the object number counting unit 180, and the detection result display unit 190 are configured.

画像取得部110は、被写体の画像を取得するものである。画像取得部110として、例えばCCD(Charge Coupled Devices)素子やCMOS(Complementary Metal Oxide Semiconductor)素子等の撮像素子を備えたカメラ等の光学機器を用いることができる。   The image acquisition unit 110 acquires an image of a subject. As the image acquisition unit 110, for example, an optical device such as a camera including an image sensor such as a charge coupled devices (CCD) element or a complementary metal oxide semiconductor (CMOS) element can be used.

画像前処理部120は、画像取得部110で取得した画像が画像認識部130で認識できるように、画像取得部110で取得した画像に対して適切な変換処理を施すものである。ここでの変換処理とは、例えば画像のノイズや照明ムラ等の低減や除去、画像の濃淡の正規化、画像の二値化処理ならびに細線化処理などの、従来において既知である画像処理方法を用いることができる。   The image preprocessing unit 120 performs an appropriate conversion process on the image acquired by the image acquisition unit 110 so that the image acquired by the image acquisition unit 110 can be recognized by the image recognition unit 130. The conversion processing here is a conventionally known image processing method such as reduction or removal of image noise or illumination unevenness, normalization of image shading, image binarization processing and thinning processing. Can be used.

画像認識部130は、画像前処理部120で変換処理が施された画像に対し、形状記録部140に予め記録した形状に類似する形状が含まれているかどうかの認識処理を行うものである。以下、この予め記録した形状のことを「標準パタン」とも称する。ここで「標準パタン」とは、例えばパーティションポールやパーティションポール間のロープ、三角コーン、基準マーカーのような待ち行列の間仕切りに用いられる物体の標準的な形状特徴を有するパタンを指す。   The image recognition unit 130 performs a recognition process on whether or not a shape similar to the shape recorded in advance in the shape recording unit 140 is included in the image subjected to the conversion process by the image preprocessing unit 120. Hereinafter, this pre-recorded shape is also referred to as “standard pattern”. Here, the “standard pattern” refers to a pattern having standard shape characteristics of an object used for partitioning a queue such as partition poles, ropes between partition poles, triangular cones, and reference markers.

形状記録部140は、画像認識部130での認識処理に使用する標準パタンを記録しておくためのものである。画像認識部130は、形状記録部140に記録されている標準パタンを読み取り、画像前処理部120で変換処理が施された画像に対し、予め登録してある形状に類似する形状が含まれているかどうかの認識処理を行う。   The shape recording unit 140 is for recording a standard pattern used for recognition processing in the image recognition unit 130. The image recognition unit 130 reads a standard pattern recorded in the shape recording unit 140 and includes a shape similar to a shape registered in advance for the image subjected to the conversion process by the image preprocessing unit 120. Recognition processing is performed.

位置取得部150は、画像認識部130で認識処理を行った結果得られた標準パタンに類似する形状の、画像内における座標位置を取得するものである。   The position acquisition unit 150 acquires a coordinate position in the image having a shape similar to the standard pattern obtained as a result of the recognition processing performed by the image recognition unit 130.

検出エリア生成部160は、位置取得部150で取得した標準パタンに類似する形状の画像内における座標位置に基づいて、移動体を検出するための検出エリアの領域を画像内に設定するものである。画像内に検出エリアを設定する方法については後述する。   The detection area generation unit 160 sets a detection area for detecting a moving body in the image based on the coordinate position in the image having a shape similar to the standard pattern acquired by the position acquisition unit 150. . A method for setting the detection area in the image will be described later.

移動体検出部170は、画像取得部110で取得した被写体の画像の中から、移動体部分を検出するものである。移動体部分の検出方法については後述する。   The moving body detection unit 170 detects a moving body part from the subject image acquired by the image acquisition unit 110. A method for detecting the moving part will be described later.

物体数計数部180は、検出エリア生成部160で生成した検出エリアの領域を取得し、当該検出エリア内に存在する移動体部分の数を計測するものである。   The object number counting unit 180 acquires the area of the detection area generated by the detection area generation unit 160 and measures the number of moving body parts existing in the detection area.

検出結果表示部190は、物体数計数部180で計測した、検出エリア内に存在する移動体部分の数を表示するものである。   The detection result display unit 190 displays the number of moving body parts present in the detection area, which is measured by the object number counting unit 180.

以上、図1を用いて本発明の第1の実施形態にかかる移動体計数装置の構成について説明した。次に、本発明の第1の実施形態にかかる移動体検出部の構成について説明する。   The configuration of the moving object counting device according to the first embodiment of the present invention has been described above with reference to FIG. Next, the configuration of the moving object detection unit according to the first embodiment of the present invention will be described.

図2は、本発明の第1の実施形態にかかる移動体検出部の構成について説明する説明図である。以下、図2を用いて本発明の第1の実施形態にかかる移動体検出部の構成について説明する。   FIG. 2 is an explanatory diagram illustrating the configuration of the moving object detection unit according to the first embodiment of the present invention. Hereinafter, the configuration of the moving object detection unit according to the first embodiment of the present invention will be described with reference to FIG.

図2に示したように、本発明の第1の実施形態にかかる移動体検出部170は、現画像記憶部171と、背景画像記憶部172と、背景画像更新部173と、差分画像抽出部174と、スイッチ175と、を含んで構成される。   As shown in FIG. 2, the moving object detection unit 170 according to the first embodiment of the present invention includes a current image storage unit 171, a background image storage unit 172, a background image update unit 173, and a difference image extraction unit. 174 and a switch 175.

現画像記憶部171は、画像取得部110で取得した画像を現画像として記憶するものである。背景画像記憶部172は、移動体計数装置100の起動時にスイッチ175が閉じられ、画像取得部110で取得した画像を背景画像として記憶するものである。背景画像記憶部172に記憶する背景画像は、検出の対象となる移動体が存在しない状況で取得した画像が望ましい。   The current image storage unit 171 stores the image acquired by the image acquisition unit 110 as a current image. The background image storage unit 172 stores the image acquired by the image acquisition unit 110 as a background image when the switch 175 is closed when the moving body counting apparatus 100 is activated. The background image stored in the background image storage unit 172 is preferably an image acquired in a situation where there is no moving object to be detected.

背景画像更新部173は、背景画像記憶部172に記憶されている背景画像を更新するものである。背景画像更新部173で行う背景画像の更新処理については後述する。   The background image update unit 173 updates the background image stored in the background image storage unit 172. Background image update processing performed by the background image update unit 173 will be described later.

差分画像抽出部174は、現画像記憶部171に記憶されている現画像と、背景画像記憶部172に記憶されている背景画像との差分を取得し、現画像と背景画像との間で変化している領域、すなわち検出の対象となる移動体を抽出する。   The difference image extraction unit 174 acquires the difference between the current image stored in the current image storage unit 171 and the background image stored in the background image storage unit 172, and changes between the current image and the background image. The moving area to be detected, that is, the detection target is extracted.

スイッチ175は、移動体計数装置100の起動時に画像取得部110で取得した画像を背景画像として背景画像記憶部172に記憶するために、移動体計数装置100の起動時に閉じられるものである。   The switch 175 is closed when the moving body counting apparatus 100 is started in order to store the image acquired by the image acquisition section 110 when the moving body counting apparatus 100 is started in the background image storage section 172 as a background image.

以上、図2を用いて本発明の第1の実施形態にかかる移動体検出部の構成について説明した。次に、本発明の第1の実施形態にかかる移動体計数装置を用いた移動体計数方法について説明する。   The configuration of the moving object detection unit according to the first embodiment of the present invention has been described above using FIG. Next, a moving body counting method using the moving body counting apparatus according to the first embodiment of the present invention will be described.

図3は、本発明の第1の実施形態にかかる移動体計数方法について説明する流れ図である。以下、図3を用いて本発明の第1の実施形態にかかる移動体計数方法について説明する。   FIG. 3 is a flowchart for explaining the moving object counting method according to the first embodiment of the present invention. Hereinafter, the moving body counting method according to the first embodiment of the present invention will be described with reference to FIG.

まず、移動体計数装置100を起動し、画像取得部110において画像を取得する(ステップS110)。取得した画像は、画像前処理部120において、画像認識部130での画像認識処理に好適なものとなるように変換処理が施される(ステップS120)。画像前処理部120での画像の変換処理には、例えば画像のノイズや照明ムラ等の低減や除去、画像の濃淡の正規化、画像の二値化処理ならびに細線化処理などの、従来において既知である画像処理方法を用いることができる。   First, the moving body counting apparatus 100 is activated, and the image acquisition unit 110 acquires an image (step S110). The acquired image is subjected to conversion processing in the image preprocessing unit 120 so as to be suitable for image recognition processing in the image recognition unit 130 (step S120). The image conversion processing in the image preprocessing unit 120 is conventionally known, for example, reduction or removal of image noise or illumination unevenness, image density normalization, image binarization processing, and thinning processing. An image processing method can be used.

画像前処理部120での画像の変換処理が完了すると、続いて画像認識部130において、画像前処理部120で変換処理を施した画像を用いて画像認識処理を行う(ステップS130)。画像認識部130における画像認識処理は、形状記録部140に記録されている標準パタンに類似する形状を、画像前処理部120で変換処理が施された画像から抽出するものである。画像認識部130における画像認識処理は、例えばテンプレートマッチング法(参考文献:「新編 画像処理ハンドブック」東京大学出版 pp1669〜1682)によって行う。以下、標準パタンに類似している形状のことを「類似パタン」とも称する。変換処理が施された画像から類似パタンを抽出すると、位置取得部150で画像中の当該類似パタンの座標位置を取得する(ステップS140)。   When the image conversion processing in the image preprocessing unit 120 is completed, the image recognition unit 130 performs image recognition processing using the image subjected to the conversion processing in the image preprocessing unit 120 (step S130). The image recognition processing in the image recognition unit 130 is to extract a shape similar to the standard pattern recorded in the shape recording unit 140 from the image subjected to the conversion processing in the image preprocessing unit 120. The image recognition processing in the image recognition unit 130 is performed by, for example, a template matching method (reference: “New Edition Image Processing Handbook” published by the University of Tokyo, pp 1669 to 1682). Hereinafter, the shape similar to the standard pattern is also referred to as “similar pattern”. When the similar pattern is extracted from the image subjected to the conversion process, the position acquisition unit 150 acquires the coordinate position of the similar pattern in the image (step S140).

位置取得部150で画像中の当該類似パタンの座標位置を取得すると、検出エリア生成部160が、当該座標位置に基づいて、画像内に検出エリアの座標領域を設定する(ステップS150)。図4は、画像内に設定された検出エリアについて説明する説明図である。図4の(a)は、画像取得部110において画像300を撮影した際に、4本のパーティションポール305によって抽出された類似パタン302に基づいて、直方体の検出エリア303を設定した場合の例を示している。なお、本実施形態においては検出エリアの形状を直方体としたが、本発明においては検出エリアの形状はこれに限られない。   When the position acquisition unit 150 acquires the coordinate position of the similar pattern in the image, the detection area generation unit 160 sets the coordinate area of the detection area in the image based on the coordinate position (step S150). FIG. 4 is an explanatory diagram for explaining a detection area set in an image. FIG. 4A illustrates an example in which a rectangular parallelepiped detection area 303 is set based on the similar pattern 302 extracted by the four partition poles 305 when the image acquisition unit 110 captures the image 300. Show. In the present embodiment, the shape of the detection area is a rectangular parallelepiped, but the shape of the detection area is not limited to this in the present invention.

ここで、検出エリア303の範囲を変化させたい場合は、画像取得部110の視野範囲にパーティションポール305を追加するだけでよい。図4の(b)は、画像取得部110において画像300を撮影した際に、6本のパーティションポール305によって抽出された類似パタン302に基づいて、検出エリア303を設定した場合の例を示している。このように、類似パタンとして抽出が可能な物体を画像取得部110の視野範囲に追加したり、画像取得部110の視野範囲から撤去したりするだけで、手動による再設定を行わずに検出エリアの範囲を自動的に変化させることができる。   Here, if it is desired to change the range of the detection area 303, it is only necessary to add the partition pole 305 to the visual field range of the image acquisition unit 110. FIG. 4B shows an example in which the detection area 303 is set based on the similar patterns 302 extracted by the six partition poles 305 when the image acquisition unit 110 captures the image 300. Yes. As described above, the detection area can be detected without performing manual resetting simply by adding an object that can be extracted as a similar pattern to the visual field range of the image acquisition unit 110 or removing it from the visual field range of the image acquisition unit 110. The range can be changed automatically.

検出エリア生成部160が画像内に検出エリアを設定すると、続いて移動体検出部170が検出エリア内に存在する移動体の検出を行う。   When the detection area generation unit 160 sets a detection area in the image, the moving body detection unit 170 detects a moving body existing in the detection area.

まず、移動体検出部170へ画像取得部110で取得した画像が送られる。移動体検出部170において、画像取得部110で取得された画像データを用いて、背景差分法により画像の変化領域を検出する(ステップS160)。背景差分法とは、予め用意された背景画像と、現在の画像との差分を取ることによって変化領域を抽出する方法である。背景差分法を用いることで、例えば移動体が存在しない状況の画像を背景画像として記録しておき、検出の対象となる移動体が含まれている画像を撮影すると、両者の差分を出力することにより、静止している背景部分と検出の対象となる移動体とを分類することができ、その結果移動体のみを抽出することが可能となる。   First, the image acquired by the image acquisition unit 110 is sent to the moving body detection unit 170. In the moving body detection unit 170, an image change area is detected by the background subtraction method using the image data acquired by the image acquisition unit 110 (step S160). The background difference method is a method of extracting a change area by taking a difference between a background image prepared in advance and a current image. By using the background subtraction method, for example, an image of a situation where no moving object exists is recorded as a background image, and when an image including a moving object to be detected is captured, the difference between the two is output. Thus, it is possible to classify the stationary background portion and the moving object to be detected, and as a result, it is possible to extract only the moving object.

図2を用いて、背景差分法による移動体の検出方法を詳細に説明する。図2に示した移動体検出部170においては、まず移動体計数装置100を起動した際に、スイッチ175を閉じて、背景画像記憶部172に移動体計数装置100の起動時の画像が背景画像として記憶される。この際に背景画像記憶部172に記憶される背景画像は、検出の対象となる移動体が存在しない状況での画像が望ましい。   A moving object detection method based on the background subtraction method will be described in detail with reference to FIG. In the moving object detection unit 170 shown in FIG. 2, when the moving object counting device 100 is first activated, the switch 175 is closed, and the background image storage unit 172 displays an image when the moving object counting device 100 is activated as a background image. Is remembered as At this time, the background image stored in the background image storage unit 172 is preferably an image in a state where there is no moving object to be detected.

背景画像記憶部172に画像が記憶されると、続いて、所定の時間が経過して、現画像記憶部171に画像取得部110で取得した、背景画像記憶部172に記憶された画像とは異なる現画像が格納される。そして、差分画像抽出部174において、現画像記憶部171に記憶した現画像と、背景画像更新部173で更新した背景画像との差分を抽出し、両者の間で変化している領域、つまり検出の対象となる移動体を抽出する。   When the image is stored in the background image storage unit 172, the image stored in the background image storage unit 172 acquired by the image acquisition unit 110 in the current image storage unit 171 after a predetermined time has elapsed. Different current images are stored. Then, the difference image extraction unit 174 extracts a difference between the current image stored in the current image storage unit 171 and the background image updated by the background image update unit 173, and an area changing between the two, that is, detection The moving object that is the target of.

ここで、背景画像更新部173における背景画像の更新処理について詳細に説明する。   Here, the background image update processing in the background image update unit 173 will be described in detail.

本実施形態における移動体計数装置100は、背景画像を移動体計数装置100の起動時に背景画像記憶部172に一度記憶する。しかし、画像取得部110で取得した現画像の背景部分に、照明や設置物の配置の変化などが生じると、起動時に記憶した背景画像と差異が生じてしまい、移動体を誤検出してしまうおそれがある。そこで、本実施形態における移動体計数装置100では、背景画像更新部173を設けることで、照明や設置物の配置の変化が生じても、背景画像を更新することで移動体の誤検出を防止することができる。   The moving body counting apparatus 100 according to the present embodiment stores the background image once in the background image storage unit 172 when the moving body counting apparatus 100 is activated. However, if a change in the arrangement of the lighting or the installation occurs in the background portion of the current image acquired by the image acquisition unit 110, a difference from the background image stored at the time of startup occurs, and a moving object is erroneously detected. There is a fear. Therefore, in the moving object counting apparatus 100 according to the present embodiment, by providing the background image update unit 173, even if a change in the arrangement of the illumination or the installation occurs, the erroneous detection of the moving object is prevented by updating the background image. can do.

背景画像更新部173は、現画像記憶部171と背景画像記憶部172の両方からそれぞれ画像を取得する。そして、現画像記憶部171に記憶されている現画像と、背景画像記憶部172に記憶されている背景画像とを、同じ座標位置同士で画素値を比較する。比較した結果、画素値の差が予め設定した値よりも小さい場合には、背景画像における当該座標の画素値を、現画像における当該座標の画素値に置換することで、背景画像の更新を行う。そして、更新した背景画像を差分画像抽出部174に送るとともに、背景画像記憶部172に送り、背景画像記憶部172に記憶する背景画像を更新後の画像に置換する。   The background image update unit 173 acquires images from both the current image storage unit 171 and the background image storage unit 172, respectively. Then, the pixel values of the current image stored in the current image storage unit 171 and the background image stored in the background image storage unit 172 are compared at the same coordinate position. If the difference between the pixel values is smaller than a preset value as a result of the comparison, the background image is updated by replacing the pixel value of the coordinate in the background image with the pixel value of the coordinate in the current image. . Then, the updated background image is sent to the difference image extraction unit 174 and also sent to the background image storage unit 172, and the background image stored in the background image storage unit 172 is replaced with the updated image.

上述の背景画像の更新処理により、照明や設置物の配置などの環境条件が変化した場合でも、現画像に追従した背景画像を記憶することができる。また、画像に含まれる配置物の位置が変化した場合など、急に背景画像が変化した場合でも、一定の時間の遅れをもって背景画像を更新することができる。   The background image that follows the current image can be stored by the above-described background image update process even when the environmental conditions such as the illumination and the arrangement of the installation object have changed. Further, even when the background image suddenly changes, such as when the position of an arrangement included in the image changes, the background image can be updated with a certain time delay.

以上、背景画像更新部173における背景画像の更新処理について説明した。   The background image update processing in the background image update unit 173 has been described above.

移動体検出部170での検出エリア内に存在する移動体の検出が完了すると、物体数計数部180において、移動体検出部170で検出した移動体部分の各画素ブロックに対し、当該画素ブロックの大きさに基づいて、人物の領域と推定されるブロック(以下、人物の領域と推定されるブロックを「領域ブロック」とも称する)を検出する。そして、物体数計数部180は、検出エリア生成部160で生成した検出エリアを取得し、取得した検出エリアに含まれる領域ブロックの数を計数するとともに、領域ブロックが存在する座標を抽出する(ステップS170)。   When the moving object detection unit 170 completes the detection of the moving object existing in the detection area, the object number counting unit 180 applies the pixel block of each pixel block of the moving object part detected by the moving object detection unit 170 to the pixel block. Based on the size, a block estimated as a person area (hereinafter, a block estimated as a person area is also referred to as “area block”) is detected. Then, the object number counting unit 180 acquires the detection area generated by the detection area generation unit 160, counts the number of area blocks included in the acquired detection area, and extracts the coordinates where the area blocks exist (step). S170).

物体数計数部180で領域ブロックの数と座標を抽出すると、抽出した領域ブロックの数と座標を、画像取得部110で取得した画像と共に、検出結果表示部190に表示する(ステップS180)。なお、本発明においてはこれに限られず、検出結果表示部190に表示する際には、検出結果表示部190に抽出した領域ブロックの数と座標のみを表示するようにしてもよい。   When the number and coordinates of the area blocks are extracted by the object number counting section 180, the number and coordinates of the extracted area blocks are displayed on the detection result display section 190 together with the image acquired by the image acquisition section 110 (step S180). Note that the present invention is not limited to this, and when displaying on the detection result display unit 190, only the number and coordinates of the extracted area blocks may be displayed on the detection result display unit 190.

検出結果表示部190に抽出した領域ブロックの数と座標を表示すると、必要に応じて次の画像の取得を実施するかどうかを判断し(ステップS190)、次の画像を実施する場合にはステップS110に戻り、所定の時間の経過後に画像取得部110から画像を取得することで、動画像処理を実現する事ができる。   When the number and coordinates of the extracted area blocks are displayed on the detection result display unit 190, it is determined whether or not the next image is to be acquired as necessary (step S190). Returning to S110, moving image processing can be realized by acquiring an image from the image acquiring unit 110 after a predetermined time has elapsed.

以上説明したように本発明の第1の実施形態によれば、パーティションポールなどの待ち行列を形成するために用いられる物体を画像認識することによって、画像中の検出エリアを動的に設定することができる。そのため、例えば店舗におけるレジやATMコーナー内の混雑状況に応じて、パーティションポールなどの物体を設置したり撤去したりして待ち行列の形状を変更するだけで、画像中の検出エリアも自動的に再設定される。従って、本発明の第1の実施形態によれば、パーティションポールなどの設置に伴って検出エリアを手動で再設定する必要が無くなる利便性を有する。   As described above, according to the first embodiment of the present invention, a detection area in an image is dynamically set by recognizing an object used to form a queue such as a partition pole. Can do. Therefore, the detection area in the image is automatically changed by simply changing the shape of the queue by installing or removing objects such as partition poles according to the cashier in the store or the ATM corner. Will be reset. Therefore, according to the first embodiment of the present invention, there is the convenience that it is not necessary to manually reset the detection area with the installation of a partition pole or the like.

(第2の実施形態)
本発明の第1の実施形態では、検出エリアを設定する際に、パーティションポール等の基準となる物体を画像認識処理によって抽出することで、検出エリアを動的に設定することができる移動体計数装置および移動体計数方法について説明した。本発明の第2の実施形態では、画像認識処理の替わりにRFID(Radio Frequency IDentification system)等の電子タグを用いて基準となる物体の位置を検出することで、検出エリアを動的に設定することができる移動体計数装置および移動体計数方法について説明する。
(Second Embodiment)
In the first embodiment of the present invention, when a detection area is set, a moving object count that can dynamically set the detection area by extracting a reference object such as a partition pole by image recognition processing. The apparatus and the moving object counting method have been described. In the second embodiment of the present invention, instead of image recognition processing, the detection area is dynamically set by detecting the position of a reference object using an electronic tag such as RFID (Radio Frequency IDentification system). A movable body counting apparatus and a movable body counting method that can be used will be described.

図5は、本発明の第2の実施形態にかかる移動体計数装置について説明する説明図である。以下、図5を用いて本発明の第2の実施形態にかかる移動体計数装置について説明する。   FIG. 5 is an explanatory diagram for explaining a moving object counting device according to a second embodiment of the present invention. Hereinafter, the moving body counter according to the second embodiment of the present invention will be described with reference to FIG.

図5に示したように、本発明の第2の実施形態にかかる移動体計数装置200は、画像取得部110と、属性情報取得部220と、位置取得部250と、検出エリア生成部260と、移動体検出部170と、物体数計数部180と、検出結果表示部190と、を含んで構成される。   As shown in FIG. 5, the moving body counting apparatus 200 according to the second embodiment of the present invention includes an image acquisition unit 110, an attribute information acquisition unit 220, a position acquisition unit 250, and a detection area generation unit 260. The mobile object detection unit 170, the object number counting unit 180, and the detection result display unit 190 are configured.

この内、画像取得部110、移動体検出部170、物体数計数部180および検出結果表示部190は、本発明の第1の実施形態にかかる移動体計数装置100と同様のもので構成できるため、詳細な説明は割愛する。ここでは、第1の実施形態にかかる移動体計数装置100の構成および機能が異なる、属性情報取得部220、位置取得部250および検出エリア生成部260について説明する。   Among these, the image acquisition unit 110, the moving body detection unit 170, the object number counting unit 180, and the detection result display unit 190 can be configured by the same units as those of the moving body counting device 100 according to the first embodiment of the present invention. Detailed explanation is omitted. Here, the attribute information acquisition unit 220, the position acquisition unit 250, and the detection area generation unit 260, which are different in configuration and function of the moving body counting apparatus 100 according to the first embodiment, will be described.

属性情報取得部220は、例えばパーティションポールのような待ち行列の間仕切りに用いられる基準物体から属性情報を取得するものである。本発明の第2の実施形態においては、基準物体400に属性格納部410が備えられており、属性格納部410に格納されている情報を属性情報取得部220が無線で読み取ることで、基準物体400の属性情報を取得する。   The attribute information acquisition unit 220 acquires attribute information from a reference object used for partitioning a queue such as a partition pole. In the second embodiment of the present invention, the reference object 400 includes the attribute storage unit 410, and the attribute information acquisition unit 220 wirelessly reads the information stored in the attribute storage unit 410, so that the reference object 400 attribute information is acquired.

位置取得部250は、属性情報取得部220で取得した基準物体400の属性情報に基づいて、それぞれの基準物体400の位置を特定し、特定した基準物体400の位置を、画像取得部110で取得した画像上の座標位置に変換するものである。基準物体400の位置を画像上の座標位置へ変換する方法については後述する。   The position acquisition unit 250 specifies the position of each reference object 400 based on the attribute information of the reference object 400 acquired by the attribute information acquisition unit 220, and the image acquisition unit 110 acquires the position of the specified reference object 400. The coordinates are converted into coordinate positions on the image. A method for converting the position of the reference object 400 into a coordinate position on the image will be described later.

検出エリア生成部260は、位置取得部250で取得した基準物体400の座標位置と、予め設定した基準物体400の属性情報に基づいて、移動体を検出するための検出エリアの領域を画像内に設定するものである。検出エリアの設定方法は、例えば基準物体400の属性格納部410に番号を予め割り振っておき、割り振った番号の順番に基準物体400を画像上で辿ることによって設定することができる。   Based on the coordinate position of the reference object 400 acquired by the position acquisition unit 250 and the attribute information of the reference object 400 set in advance, the detection area generation unit 260 includes a detection area area for detecting a moving object in the image. It is to set. The detection area setting method can be set, for example, by assigning numbers in advance to the attribute storage unit 410 of the reference object 400 and tracing the reference object 400 on the image in the order of the assigned numbers.

以上、図5を用いて本発明の第2の実施形態にかかる移動体計数装置の構成について説明した。次に、本発明の第2の実施形態にかかる移動体計数方法について説明する。   The configuration of the moving object counter according to the second embodiment of the present invention has been described above with reference to FIG. Next, the moving body counting method according to the second embodiment of the present invention will be described.

図6は、本発明の第2の実施形態にかかる移動体計数方法について説明する説明図である。以下、図6を用いて本発明の第2の実施形態にかかる移動体計数方法について説明する。   FIG. 6 is an explanatory diagram illustrating a moving object counting method according to the second embodiment of the present invention. Hereinafter, the moving body counting method according to the second embodiment of the present invention will be described with reference to FIG.

まず、属性情報取得部220が基準物体400に含まれる属性格納部410の検出を行う(ステップS210)。属性情報取得部220は、スーパーマーケット等の店舗内のレジ前や銀行のATMコーナー等のような、待ち行列が形成される場所の周辺に設置される。本実施形態においては、属性情報取得部220は、例えば待ち行列が形成される場所の天井に設置される。   First, the attribute information acquisition unit 220 detects the attribute storage unit 410 included in the reference object 400 (step S210). The attribute information acquisition unit 220 is installed around a place where a queue is formed, such as before a cash register in a store such as a supermarket or an ATM corner of a bank. In the present embodiment, the attribute information acquisition unit 220 is installed on the ceiling of a place where a queue is formed, for example.

図7は、本発明の第2の実施形態にかかる属性情報取得部220や基準物体400の設置の一例を示す説明図である。図7に示した例では、天井に属性情報取得部220を複数設置し、基準物体400に含まれる属性格納部410を無線経由で探索し、属性格納部410に格納されている属性情報を取得する。属性格納部410に格納されている属性情報は、例えばID番号であってもよい。   FIG. 7 is an explanatory diagram illustrating an example of installation of the attribute information acquisition unit 220 and the reference object 400 according to the second embodiment of the present invention. In the example illustrated in FIG. 7, a plurality of attribute information acquisition units 220 are installed on the ceiling, the attribute storage unit 410 included in the reference object 400 is searched via wireless, and the attribute information stored in the attribute storage unit 410 is acquired. To do. The attribute information stored in the attribute storage unit 410 may be an ID number, for example.

属性情報取得部220が基準物体400に含まれる属性格納部410の検出を行うと、続いて画像取得部110が基準物体400を含む画像の取得を行う(ステップS220)。取得した画像は位置取得部250に送られる。   When the attribute information acquisition unit 220 detects the attribute storage unit 410 included in the reference object 400, the image acquisition unit 110 subsequently acquires an image including the reference object 400 (step S220). The acquired image is sent to the position acquisition unit 250.

画像取得部110で画像の取得が行われ、取得した画像が位置取得部250に送られると、位置取得部250において、属性情報取得部220において取得した属性格納部410の属性情報に基づき、基準物体400の位置を特定し、特定した基準物体400の位置を、画像取得部110で取得した画像における座標に変換する(ステップS230)。   When an image is acquired by the image acquisition unit 110 and the acquired image is sent to the position acquisition unit 250, the position acquisition unit 250 uses a reference based on the attribute information of the attribute storage unit 410 acquired by the attribute information acquisition unit 220. The position of the object 400 is specified, and the position of the specified reference object 400 is converted into coordinates in the image acquired by the image acquisition unit 110 (step S230).

位置取得部250における基準物体400の座標変換処理は、属性情報取得部220のそれぞれの位置関係と、画像取得部110で取得した画像で取得される画像上の座標とを予め対応付けておき、画像上のどの位置にどの属性情報を有する基準物体が存在しているかを、上記対応付けを用いて検出することによって、実施することができる。   The coordinate conversion process of the reference object 400 in the position acquisition unit 250 associates each positional relationship of the attribute information acquisition unit 220 with the coordinates on the image acquired by the image acquired by the image acquisition unit 110 in advance, This can be implemented by detecting the reference object having which attribute information at which position on the image using the above-described correspondence.

基準物体400の位置を画像取得部110で取得した画像における座標に変換すると、変換した座標に基づいて、検出エリア生成部260が画像上に検出エリアを生成する(ステップS240)。検出エリアは、例えば基準物体400の一つ一つに異なるID番号を割り振り、割り振ったID番号の昇順に基づいて生成してもよい。   When the position of the reference object 400 is converted into coordinates in the image acquired by the image acquisition unit 110, the detection area generation unit 260 generates a detection area on the image based on the converted coordinates (step S240). For example, a different ID number may be assigned to each of the reference objects 400, and the detection area may be generated based on the ascending order of the assigned ID numbers.

図8は、本発明の第2の実施形態にかかる検出エリアの生成方法について説明する説明図である。図8では、基準物体400を9つ設置し、それぞれに1〜9のID番号を割り振った場合における検出エリアの生成方法について示している。本発明の第2の実施形態においては、ID番号が1から7の順に、および8から9の順に基準物体400を繋ぐことによって検出エリアを設定すると予め定めておくことにより、画像取得部110で取得した画像上に検出エリアを設定することができる。   FIG. 8 is an explanatory diagram for explaining a detection area generation method according to the second embodiment of the present invention. FIG. 8 shows a detection area generation method when nine reference objects 400 are installed and ID numbers 1 to 9 are assigned to the reference objects 400, respectively. In the second embodiment of the present invention, the image acquisition unit 110 determines that the detection area is set in advance by connecting the reference objects 400 in the order of ID numbers 1 to 7 and 8 to 9. A detection area can be set on the acquired image.

このように、検出エリアの設定の基準となる基準物体に属性情報を割り振ることで、基準物体の配置を変更するだけで、検出エリアの範囲を動的に変化させることができる。   In this way, by assigning attribute information to a reference object serving as a reference for setting a detection area, the range of the detection area can be dynamically changed simply by changing the arrangement of the reference object.

画像取得部110で取得した画像上に検出エリアを設定すると、後は第1の実施形態にかかる移動体計数方法と同様の流れを実行する。具体的には、検出エリアを設定すると、移動体検出部170において背景差分法により画像の変化領域を検出し(ステップS250)、物体数計数部180において検出エリア生成部260で生成した検出エリアを取得し、取得した検出エリアに含まれる領域ブロックの数を計数するとともに、領域ブロックが存在する座標を抽出し(ステップS260)、抽出した領域ブロックの数と座標を、画像取得部110で取得した画像と共に、検出結果表示部190に表示する(ステップS270)。本発明においては第1の実施形態同様に、検出結果表示部190に表示する際には、検出結果表示部190に抽出した領域ブロックの数と座標のみを表示するようにしてもよい。   When a detection area is set on the image acquired by the image acquisition unit 110, the same flow as the moving object counting method according to the first embodiment is executed thereafter. Specifically, when the detection area is set, the moving object detection unit 170 detects an image change area by the background difference method (step S250), and the object number counting unit 180 detects the detection area generated by the detection area generation unit 260. Obtaining and counting the number of area blocks included in the obtained detection area, extracting the coordinates where the area blocks exist (step S260), and obtaining the number and coordinates of the extracted area blocks by the image acquisition unit 110 The image is displayed on the detection result display unit 190 together with the image (step S270). In the present invention, similarly to the first embodiment, when displaying on the detection result display unit 190, only the number and coordinates of the extracted area blocks may be displayed on the detection result display unit 190.

そして、検出結果表示部190に抽出した領域ブロックの数と座標を表示すると、必要に応じて次の画像の取得を実施するかどうかを判断し(ステップS280)、次の画像を実施する場合にはステップS210に戻り、画像取得部110から画像を取得することで、動画像処理を実現する事ができる。   Then, when the number and coordinates of the extracted area blocks are displayed on the detection result display unit 190, it is determined whether or not to acquire the next image as necessary (step S280). Returning to step S <b> 210, moving image processing can be realized by acquiring an image from the image acquisition unit 110.

以上説明したように本発明の第2の実施形態によれば、パーティションポールなどの待ち行列を形成するために用いられる物体から属性情報を取得することによって、画像中の検出エリアを動的に設定することができる。そのため、例えば店舗のレジやATMコーナー内の混雑状況に応じて、パーティションポールなどの基準物体を設置したり撤去したりして待ち行列の形状を変更するだけで、画像中の検出エリアも自動的に再設定される。従って、本発明の第2の実施形態によっても、パーティションポールなどの設置に伴って検出エリアを手動で再設定する必要が無くなる利便性を有する。   As described above, according to the second embodiment of the present invention, a detection area in an image is dynamically set by acquiring attribute information from an object used to form a queue such as a partition pole. can do. Therefore, the detection area in the image is automatically changed by simply changing the shape of the queue by installing or removing a reference object such as a partition pole according to the store's cash register or the congestion situation in the ATM corner. Will be reset to Therefore, according to the second embodiment of the present invention, there is the convenience that it is not necessary to manually reset the detection area with the installation of a partition pole or the like.

以上、添付図面を参照しながら本発明の好適な実施形態について説明したが、本発明は係る例に限定されないことは言うまでもない。当業者であれば、特許請求の範囲に記載された範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。   As mentioned above, although preferred embodiment of this invention was described referring an accompanying drawing, it cannot be overemphasized that this invention is not limited to the example which concerns. It will be apparent to those skilled in the art that various changes and modifications can be made within the scope of the claims, and these are naturally within the technical scope of the present invention. Understood.

例えば、上記実施形態においては基準物体としてパーティションポールを例にして、パーティションポールの有無によって検出エリアの範囲を変化させていたが、本発明はこれに限られず、例えばパーティションポール間に張られたロープの有無などの情報を検出し、その情報に基づいて検出エリアの範囲を変化させるようにしてもよい。   For example, in the above embodiment, the partition pole is taken as an example of the reference object, and the range of the detection area is changed depending on the presence or absence of the partition pole. However, the present invention is not limited to this, for example, a rope stretched between the partition poles. It is also possible to detect information such as the presence or absence of information and change the range of the detection area based on the information.

また、本発明による検出エリアの変更の頻度をデータとして蓄積するようにしてもよい。検出エリアの変更の頻度を、例えば曜日別や時間帯別に蓄積することで、曜日や時間帯に応じて待ち行列の配置の最適化を検討するための基礎となるデータを取得することができ、店舗に来店する客に不便さを感じさせない行列の位置を形成するのに役立てることができる。   Further, the frequency of detection area change according to the present invention may be stored as data. By accumulating the frequency of detection area changes, for example, by day of the week or by time of day, it is possible to obtain data that will serve as the basis for considering optimization of queue arrangement according to the day of the week or time of day, It can be used to form a queue position that does not cause inconvenience to customers coming to the store.

第1の実施形態にかかる移動体計数装置について説明する説明図である。It is explanatory drawing explaining the moving body counting device concerning 1st Embodiment. 本発明の第1の実施形態にかかる移動体検出部の構成について説明する説明図である。It is explanatory drawing explaining the structure of the moving body detection part concerning the 1st Embodiment of this invention. 本発明の第1の実施形態にかかる移動体計数方法について説明する流れ図である。It is a flowchart explaining the moving body counting method concerning the 1st Embodiment of this invention. 画像内に設定された検出エリアについて説明する説明図である。It is explanatory drawing explaining the detection area set in the image. 本発明の第2の実施形態にかかる移動体計数装置について説明する説明図である。It is explanatory drawing explaining the moving body counting device concerning the 2nd Embodiment of this invention. 本発明の第2の実施形態にかかる移動体計数方法について説明する説明図である。It is explanatory drawing explaining the moving body counting method concerning the 2nd Embodiment of this invention. 本発明の第2の実施形態にかかる属性情報取得部や基準物体の設置の一例を示す説明図である。It is explanatory drawing which shows an example of installation of the attribute information acquisition part and reference | standard object concerning the 2nd Embodiment of this invention. 本発明の第2の実施形態にかかる検出エリアの生成方法について説明する説明図である。It is explanatory drawing explaining the production | generation method of the detection area concerning the 2nd Embodiment of this invention.

符号の説明Explanation of symbols

100、200 移動体計数装置
110 画像取得部
120 画像前処理部
130 画像認識部
140 形状記録部
150、250 位置取得部
160、260 検出エリア生成部
170 移動体検出部
171 現画像記憶部
172 背景画像記憶部
173 背景画像更新部
174 差分画像抽出部
175 スイッチ
180 物体数計数部
190 検出結果表示部
220 属性情報取得部
300 画像
302 類似パタン
303 検出エリア
400 基準物体
410 属性格納部
DESCRIPTION OF SYMBOLS 100,200 Mobile body counting apparatus 110 Image acquisition part 120 Image pre-processing part 130 Image recognition part 140 Shape recording part 150,250 Position acquisition part 160,260 Detection area generation part 170 Mobile body detection part 171 Current image storage part 172 Background image Storage unit 173 Background image update unit 174 Difference image extraction unit 175 Switch 180 Object number counting unit 190 Detection result display unit 220 Attribute information acquisition unit 300 Image 302 Similar pattern 303 Detection area 400 Reference object 410 Attribute storage unit

Claims (8)

所定の間隔で画像を取得する画像取得部と;
前記画像に含まれる、予め設定した形状に類似する形状を認識する画像認識部と;
前記画像に含まれる前記類似する形状の座標位置を取得する位置取得部と;
前記座標位置に基づいて検出エリアを生成する検出エリア生成部と;
前記画像に含まれる移動体を検出する移動体検出部と;
前記検出エリアに含まれる前記移動体の数を計数する移動体計数部と;
を含むことを特徴とする、移動体計数装置。
An image acquisition unit for acquiring images at predetermined intervals;
An image recognition unit for recognizing a shape similar to a preset shape included in the image;
A position acquisition unit for acquiring a coordinate position of the similar shape included in the image;
A detection area generator for generating a detection area based on the coordinate position;
A moving body detecting unit for detecting a moving body included in the image;
A moving body counter that counts the number of the moving bodies included in the detection area;
A moving body counting apparatus comprising:
前記移動体検出部は、
前記画像取得部で取得した現在の画像を記憶する現画像記憶部と;
前記画像取得部で取得した画像を背景画像として記憶する背景画像記憶部と;
前記現画像記憶部で記憶した現在の画像と、前記背景画像記憶部で記憶した背景画像とを比較し、両者が所定の値以上異なっている場合に、前記背景画像記憶部の背景画像を前記現画像記憶部で記憶した現在の画像に更新する背景画像更新部と;
前記現画像記憶部で記憶した現在の画像と、前記画像更新部で更新した前記背景画像との差分を抽出する差分画像抽出部と;
を含むことを特徴とする、請求項1に記載の移動体計数装置。
The moving body detection unit
A current image storage unit for storing a current image acquired by the image acquisition unit;
A background image storage unit that stores an image acquired by the image acquisition unit as a background image;
The current image stored in the current image storage unit and the background image stored in the background image storage unit are compared, and when both are different by a predetermined value or more, the background image of the background image storage unit is A background image update unit for updating to the current image stored in the current image storage unit;
A difference image extraction unit that extracts a difference between the current image stored in the current image storage unit and the background image updated by the image update unit;
The mobile body counting apparatus according to claim 1, wherein
所定の間隔で画像を取得する画像取得部と;
前記画像に含まれる基準物の属性情報を取得して、前記基準物の位置情報を取得する属性情報取得部と;
前記位置情報を、前記画像における座標位置に変換して前記基準物の位置を取得する位置取得部と;
前記基準物の位置に基づいて検出エリアを生成する検出エリア生成部と;
前記画像に含まれる移動体を検出する移動体検出部と;
前記検出エリアに含まれる前記移動体の数を計数する移動体計数部と;
を含むことを特徴とする、移動体計数装置。
An image acquisition unit for acquiring images at predetermined intervals;
An attribute information acquisition unit that acquires attribute information of a reference object included in the image and acquires position information of the reference object;
A position acquisition unit that converts the position information into a coordinate position in the image and acquires the position of the reference object;
A detection area generator for generating a detection area based on the position of the reference object;
A moving body detecting unit for detecting a moving body included in the image;
A moving body counter that counts the number of the moving bodies included in the detection area;
A moving body counting apparatus comprising:
前記移動体検出部は、
前記画像取得部で取得した現在の画像を記憶する現画像記憶部と;
前記画像取得部で取得した画像を背景画像として記憶する背景画像記憶部と;
前記現画像記憶部で記憶した現在の画像と、前記背景画像記憶部で記憶した背景画像とを比較し、両者が所定の値以上異なっている場合に、前記背景画像記憶部の背景画像を前記現画像記憶部で記憶した現在の画像に更新する背景画像更新部と;
前記現画像記憶部で記憶した現在の画像と、前記画像更新部で更新した前記背景画像との差分を抽出する差分画像抽出部と;
を含むことを特徴とする、請求項3に記載の移動体計数装置。
The moving body detection unit
A current image storage unit for storing a current image acquired by the image acquisition unit;
A background image storage unit that stores an image acquired by the image acquisition unit as a background image;
The current image stored in the current image storage unit and the background image stored in the background image storage unit are compared, and when both are different by a predetermined value or more, the background image of the background image storage unit is A background image update unit for updating to the current image stored in the current image storage unit;
A difference image extraction unit that extracts a difference between the current image stored in the current image storage unit and the background image updated by the image update unit;
The moving body counting device according to claim 3, wherein
前記基準物の位置情報は電子タグに記録されており、前記属性情報取得部は、無線によって前記基準物から前記基準物の位置情報を取得することを特徴とする、請求項3または4に記載の移動体計数装置。   The position information of the reference object is recorded in an electronic tag, and the attribute information acquisition unit acquires the position information of the reference object from the reference object by wireless. Mobile counting device. 前記属性情報はID番号であり、前記検出エリアは、前記ID番号の順序に基づいて形成されることを特徴とする、請求項3〜5のいずれかに記載の移動体計数装置。   The mobile object counting apparatus according to claim 3, wherein the attribute information is an ID number, and the detection area is formed based on an order of the ID numbers. 所定の間隔で画像を取得する画像取得ステップと;
前記画像に含まれる、予め設定した形状に類似する形状を認識する画像認識ステップと;
前記画像に含まれる前記類似する形状の座標位置を取得する位置取得ステップと;
前記座標位置に基づいて検出エリアを生成する検出エリア生成ステップと;
前記画像に含まれる移動体を検出する移動体検出ステップと;
前記検出エリアに含まれる前記移動体の数を計数する移動体計数ステップと;
を含むことを特徴とする、移動体計数方法。
An image acquisition step of acquiring images at predetermined intervals;
An image recognition step for recognizing a shape similar to a preset shape included in the image;
A position acquisition step of acquiring a coordinate position of the similar shape included in the image;
A detection area generation step of generating a detection area based on the coordinate position;
A moving body detecting step for detecting a moving body included in the image;
A moving body counting step of counting the number of the moving bodies included in the detection area;
The moving body counting method characterized by including.
所定の間隔で画像を取得する画像取得ステップと;
前記画像に含まれる基準物の属性情報を取得して、前記基準物の位置情報を取得する属性情報取得ステップと;
前記位置情報を、前記画像における座標位置に変換して前記基準物の位置を取得する位置取得ステップと;
前記基準物の位置に基づいて検出エリアを生成する検出エリア生成ステップと;
前記画像に含まれる移動体を検出する移動体検出ステップと;
前記検出エリアに含まれる前記移動体の数を計数する移動体計数ステップと;
を含むことを特徴とする、移動体計数方法。
An image acquisition step of acquiring images at predetermined intervals;
An attribute information acquisition step of acquiring attribute information of a reference object included in the image and acquiring position information of the reference object;
A position acquisition step of converting the position information into a coordinate position in the image to acquire the position of the reference object;
A detection area generating step for generating a detection area based on the position of the reference object;
A moving body detecting step for detecting a moving body included in the image;
A moving body counting step of counting the number of the moving bodies included in the detection area;
The moving body counting method characterized by including.
JP2006256391A 2006-09-21 2006-09-21 Mobile body counting device and mobile body counting method Withdrawn JP2008077430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006256391A JP2008077430A (en) 2006-09-21 2006-09-21 Mobile body counting device and mobile body counting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006256391A JP2008077430A (en) 2006-09-21 2006-09-21 Mobile body counting device and mobile body counting method

Publications (1)

Publication Number Publication Date
JP2008077430A true JP2008077430A (en) 2008-04-03

Family

ID=39349410

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006256391A Withdrawn JP2008077430A (en) 2006-09-21 2006-09-21 Mobile body counting device and mobile body counting method

Country Status (1)

Country Link
JP (1) JP2008077430A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010193170A (en) * 2009-02-18 2010-09-02 Mitsubishi Electric Corp Camera calibration device and monitoring area setting device
WO2012132437A1 (en) * 2011-03-31 2012-10-04 パナソニック株式会社 Number of persons measurement device
US8699750B2 (en) 2010-08-06 2014-04-15 Samsung Techwin Co., Ltd. Image processing apparatus
JP2019050593A (en) * 2018-10-31 2019-03-28 キヤノン株式会社 Image processing system, image processor, control method, and program
US10848748B2 (en) 2016-05-25 2020-11-24 Canon Kabushiki Kaisha Method for generating virtual viewpoint image and image processing apparatus
CN112036536A (en) * 2020-07-03 2020-12-04 佛山科学技术学院 Intelligent sheep counting method and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010193170A (en) * 2009-02-18 2010-09-02 Mitsubishi Electric Corp Camera calibration device and monitoring area setting device
US8699750B2 (en) 2010-08-06 2014-04-15 Samsung Techwin Co., Ltd. Image processing apparatus
WO2012132437A1 (en) * 2011-03-31 2012-10-04 パナソニック株式会社 Number of persons measurement device
EP2693373A1 (en) * 2011-03-31 2014-02-05 Panasonic Corporation Number of persons measurement device
EP2693373A4 (en) * 2011-03-31 2015-02-18 Panasonic Corp Number of persons measurement device
US9390334B2 (en) 2011-03-31 2016-07-12 Panasonic Intellectual Property Management Co., Ltd. Number of persons measurement device
JP5975353B2 (en) * 2011-03-31 2016-08-23 パナソニックIpマネジメント株式会社 People counting device
US10848748B2 (en) 2016-05-25 2020-11-24 Canon Kabushiki Kaisha Method for generating virtual viewpoint image and image processing apparatus
US11689706B2 (en) 2016-05-25 2023-06-27 Canon Kabushiki Kaisha Method for generating virtual viewpoint image and image processing apparatus
JP2019050593A (en) * 2018-10-31 2019-03-28 キヤノン株式会社 Image processing system, image processor, control method, and program
CN112036536A (en) * 2020-07-03 2020-12-04 佛山科学技术学院 Intelligent sheep counting method and system

Similar Documents

Publication Publication Date Title
JP4970195B2 (en) Person tracking system, person tracking apparatus, and person tracking program
US8588466B2 (en) Object area detection system, device, method, and program for detecting an object
CN109766779B (en) Loitering person identification method and related product
WO2018096787A1 (en) Person&#39;s behavior monitoring device and person&#39;s behavior monitoring system
CN109740444B (en) People flow information display method and related product
JP5106356B2 (en) Image monitoring device
JP2022168070A (en) person detection system
KR102406804B1 (en) Method and system for automatically detecting objects in image based on deep learning
JP2008077430A (en) Mobile body counting device and mobile body counting method
US10762372B2 (en) Image processing apparatus and control method therefor
CN108109132B (en) Image analysis method and device
KR102486986B1 (en) Objects detecting system, method and computer readable recording medium
JP5805511B2 (en) Image monitoring device
JP2012212238A (en) Article detection device and stationary-person detection device
JP2012212217A (en) Image monitoring device
CN111753587B (en) Ground falling detection method and device
JP2018133042A (en) Left object detector
JP6326622B2 (en) Human detection device
JP2013106238A (en) Marker detection and tracking device
WO2021140844A1 (en) Human body detection device and human body detection method
JP4611919B2 (en) Pedestrian recognition device
JP5865709B2 (en) Image monitoring device
KR20100048436A (en) The system for extracting character using marker
KR20170061436A (en) Discharge determining device and method thereof
KR20170034607A (en) System, Method for Extracting Color of Foreground and Computer Readable Record Medium Thereof

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20091201