JPS62177689A - Device for counting the number of persons - Google Patents

Device for counting the number of persons

Info

Publication number
JPS62177689A
JPS62177689A JP61019639A JP1963986A JPS62177689A JP S62177689 A JPS62177689 A JP S62177689A JP 61019639 A JP61019639 A JP 61019639A JP 1963986 A JP1963986 A JP 1963986A JP S62177689 A JPS62177689 A JP S62177689A
Authority
JP
Japan
Prior art keywords
value
circuit
image
address
density
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP61019639A
Other languages
Japanese (ja)
Inventor
Haruki Furusawa
古澤 春樹
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61019639A priority Critical patent/JPS62177689A/en
Publication of JPS62177689A publication Critical patent/JPS62177689A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To minimize the influence of an ambient condition and to count the number of persons with a high accuracy by detecting the central position of the black circle in the concentration changing direction, detecting the persons and counting the number of persons after the head part of the persons is identified by the concentration characteristic. CONSTITUTION:When a view illuminated by an infrared ray dropping illuminating means 31 is photographed by a high angle photographing means 32, the image signal is stored into an image memory circuit 34 corresponding to the position. At such a time, the head part image of the person comes to be a black circle. The direction value of respective picture elements of the image is calculated by a concentration changing direction calculating circuit 35 and stored into a concentration changing direction memory circuit 37. A comparing circuit 39, by using the direction value and the address shifting vector of a direction extracting template 38, executes the weighting to respective attention point picture elements, obtains the accumulative value, compares with the set value and obtains the center of the black circle. A concentration comparing circuit 40 reads the concentration value of plural images at the near circumference from the circuit 34, decides the concentration characteristic and at the time of valid, outputs a counting-up signal. A counter 41 outputs the number of the persons in the picture after an address generating circuit 36 scans all picture elements.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、画像処理によって設定領域内に存在する人
間の頭数を計数する人数計数装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a people counting device that counts the number of people present within a set area by image processing.

〔従来の技術〕[Conventional technology]

第4図は従来の人数カウント方法を示すフローチャート
である。図において、1は人のいない時の画像を取り込
む処理、2はカウンタJ、CNTをリセットする処理、
3はカウントすべきときの画像を取り込む処理、4はカ
ウンタIをリセットする処理、5は処理1によって得た
画像の画素(I、J)と処理3によって得た画像の画素
(I。
FIG. 4 is a flowchart showing a conventional method of counting people. In the figure, 1 is the process of capturing an image when no one is present, 2 is the process of resetting the counter J and CNT,
3 is the process of capturing the image when it should be counted, 4 is the process of resetting the counter I, and 5 is the pixel (I, J) of the image obtained by process 1 and the pixel (I, J) of the image obtained by process 3.

J)との濃度値の差を取る処理、6は処理5の結果ある
「しきい値」以上の変化があったかどうかを調べるしき
い値処理、7,8.10はカウンタCNT、I、Jをカ
ウントアツプする処理、9゜11はカウンタI、Jのカ
ウント値が設定値I□。。
6 is a threshold process to check whether there is a change greater than a certain "threshold value" as a result of process 5, and 7, 8.10 is a process to calculate the difference in the density value between CNT, I, and J). In the process of counting up, at 9°11, the count values of counters I and J are the set value I□. .

J ENOになったか否かを判定する処理、12はカウ
ンタCNTの値を得る処理である。
12 is a process for determining whether or not J ENO has been reached, and a process for obtaining the value of the counter CNT.

次に従来の人数カウント方法について第4図を参照しな
がら説明する。人数をカウントする場合、まず、人数を
カウントするための画像と比較するために、人のいない
時の画像をとらえ、メモリ1にストアする(処理1)。
Next, a conventional method of counting people will be explained with reference to FIG. When counting the number of people, first, an image when no one is present is captured and stored in the memory 1 in order to compare it with an image for counting the number of people (processing 1).

次に人数をカウントするときの画像をとらえ、メモリ2
にストアする(処理3)。このメモリ1とメモリ2の両
格納値を各画素対応で減算し、その結果をあるしきい値
T Hと比較し、しきい値THより大きいときカウント
値CNTを1つカウントアツプする(処理2゜4〜11
)。このカウント値CNTが人数に相当する数となる(
処理12)。
Next, capture the image when counting the number of people and use it in memory 2.
(Process 3). The values stored in both memory 1 and memory 2 are subtracted for each pixel, the result is compared with a certain threshold value TH, and when the value is greater than the threshold value TH, the count value CNT is incremented by one (processing 2).゜4〜11
). This count value CNT is the number equivalent to the number of people (
Processing 12).

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来の人数カウント方法は以上のような方法であったの
で、例えば小さなかたまり(画面上のごみなどのノイズ
成分)までカウントしたり、2人が重なっている場合実
際2人分より小さなかたまりとして画像にとらえ、カウ
ント人数を少なくカウントしたりするなどの問題があっ
た。
Conventional people counting methods are as described above, so for example, it is possible to count even small lumps (noise components such as dust on the screen), or when two people overlap, the image is treated as a smaller lump than the actual two people. There were problems such as undercounting the number of people counted.

これに対し、本件出願人は、小さなノイズ成分はこれを
カウントせず、又2Å以上が重なり合うかたまりもその
人数分をカウントすることのできる人数カウント方法を
開発し、出願している(特願昭60−186074号)
In response, the applicant has developed a method for counting people that does not count small noise components and can also count the number of people who overlap over 2 Å (patent application). 60-186074)
.

第5図は上記特願昭60−186074号に記載の人数
カウント方法を示すフローチャートである。図において
、15は人のいない時の画面を取り込む処理、16はカ
ウントすべき時の画像を取り込む処理、17は処理15
と処理16とによって得た画像間の差の絶対値を取る処
理、18は処理17の結果、あるしきい値以上の変化が
あったかどうかを調べるしきい値処理、19は処理18
の結果から1の値をもつ連結領域にラベル付けする処理
、20は各ラベル領域毎に面積をカウントする処理、2
1は処理20でもとめた各ラベル領域面積をある設定面
積値Mで割って量子化する処理、22はすべてのラベル
の量子化数の総和を人数カウント出力として出力する処
理である。
FIG. 5 is a flowchart showing the method of counting the number of people described in the above-mentioned Japanese Patent Application No. 186074/1983. In the figure, 15 is the process of capturing the screen when no one is present, 16 is the process of capturing the image when counting is to be done, and 17 is the process 15
and process 16, 18 is a threshold process to check whether there is a change of more than a certain threshold value as a result of process 17, and 19 is process 18
20 is a process of labeling connected regions with a value of 1 from the result of 20 is a process of counting the area of each labeled region, 2
1 is a process in which the area of each label region obtained in process 20 is divided by a certain set area value M and quantized, and 22 is a process in which the sum of the quantization numbers of all labels is output as a number of people count output.

次にこの人数カウント方法について説明する。Next, this method of counting the number of people will be explained.

この方法によって人数をカウントする場合、まず人数を
カウントするための画像と比較するために、人のいない
時の画像をとらえ、それをメモリ1にストアする(処理
15)。次に人数をカウントするときの画像をとらえメ
モリ2にストアする(処理16)。このメモリ1とメモ
リ2の両格納値を各画素対応で引き算して絶対値を取り
、その結果をあるしきい値THと比較し、しきい値TH
より大きいときは1”を、そうでないときはIIQll
をメモリ2にストアする(処理17.18)。
When counting the number of people using this method, first, an image when no one is present is captured and stored in the memory 1 in order to compare it with an image for counting the number of people (process 15). Next, an image for counting the number of people is captured and stored in the memory 2 (process 16). The values stored in memory 1 and memory 2 are subtracted for each pixel to obtain the absolute value, and the result is compared with a certain threshold value TH.
If larger, set 1”, otherwise set IIQll.
is stored in memory 2 (processing 17.18).

次にラベル付は処理19では、メモリ2の61”の点で
上下左右に連結している領域をひとつの領域として、ひ
とかたまり毎にラベル付けを行う。
Next, in a labeling process 19, the areas connected vertically and horizontally at the point 61'' in the memory 2 are regarded as one area, and each group is labeled.

処理20は、各ラベル毎にその面積を、同一ラベル画素
をカウントすることにより求める処理である。求められ
た各ラベル毎の面積を例えば−人の人間の画像上の面積
をMとして、Xi<M(Xiはラベルiの連結領域の面
積)のとき、これはノイズであると判断し削除する。ま
たXi=Mのとき、これはひとり分に相当するので、量
子化数を1とする。X i >Mのとき、何人かが重な
っている場合で、Xi/Mを四捨五入等で整数化した量
子化数で表わす。この量子化処理を各ラベル毎に行う(
処理21)。最後に全ラベルの量子化数の総和を求め、
これを検出された人数として処理22にて出力する。
Process 20 is a process for finding the area of each label by counting the pixels of the same label. For example, if the area of each label found is M, and the area on the human image is M, then if Xi < M (Xi is the area of the connected region of label i), this is determined to be noise and deleted. . Further, when Xi=M, this corresponds to one person, so the quantization number is set to 1. When X i >M, when several people overlap, Xi/M is expressed as a quantized number obtained by rounding off to an integer. This quantization process is performed for each label (
Processing 21). Finally, find the sum of the quantization numbers of all labels,
This is output as the detected number of people in process 22.

しかるにこのような人数カウント方法では、画像内の人
間の像が、−律に、しきい値TH以上に変化した画素領
域の面積に表現されると仮定し、やはり一律に設定され
た人間−人のしめる面積Mで領域毎に量子化しているの
で、人対象と床背景への配光分布、人の稠密度、それに
伴う陰影形状の変化等に影響を受けやすく、精度高い計
数が困難なものであった。
However, in such a people counting method, it is assumed that the image of a person in an image is expressed by the area of a pixel region that changes by a threshold value TH or more, and the human image is also uniformly set. Since it is quantized for each area with an area M, it is easily affected by the light distribution to the human subject and the floor background, the density of the people, and the accompanying changes in the shape of shadows, making it difficult to count with high precision. Met.

この発明は、上記のような問題点を解消するためになさ
れたもので、人間の頭数を高い精度でもって計数するこ
とのできる人数計数装置を得ることを目的とする。
This invention was made to solve the above-mentioned problems, and an object thereof is to obtain a people counting device that can count the number of people with high accuracy.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る人数計数装置は、赤外光透過照明手段と
、赤外光波長付近の光を透過するフィルタを有し照明さ
れた情景を俯徹↑最像する俯睡撮像手段と、得られた画
像の濃度階調を記憶する画像記憶回路と、画像の各画素
近傍の白から黒に至る濃度変化の方向を量子化された方
向値に換算する濃度変化方向算出回路と、換算値を記憶
する濃度変化方向記憶回路と、画像記憶回路及び濃度変
化方向記憶回路の注目点画素を走査する走査アドレス発
生回路と、注目点画素を中心としてそのアドレスに加算
する所定半径円周上の均等分割点画素のアドレス・シフ
ト・ベクトルを格納した方向抽出テンプレートと、濃度
変化方向記憶回路内の方向値によって決まる方向と方向
抽出テンプレートのアドレス・シフト・ベクトルによっ
て決まる方向とが反対方向の時最大とし、方向のずれが
小さくなるに伴って減少する重みを各注目点画素の均等
分割点画素につけてこれを各注目点画素毎に累算し各注
目点画素毎に累算値と設定値とを比較して黒用検出信号
を出力する比較回路と、黒用検出出力信号を受は濃度記
憶回路の注目点画素を含む設定領域の濃度特徴と設定値
とを比較してカウンタをカウントアツプさせる濃度比較
回路とを設けたものである。
The people counting device according to the present invention includes an infrared light transmitting illumination means, a prone imaging means that has a filter that transmits light in the vicinity of the infrared wavelength, and that images an illuminated scene from above. an image storage circuit that stores the density gradation of the image; a density change direction calculation circuit that converts the direction of density change from white to black near each pixel of the image into a quantized direction value; and a density change direction calculation circuit that stores the converted value. a scanning address generation circuit that scans the pixel of interest of the image storage circuit and the density change direction memory circuit; and an equal dividing point on a circumference with a predetermined radius that adds to the address centering on the pixel of interest. When the direction determined by the direction extraction template storing the pixel address shift vector and the direction value in the density change direction storage circuit is opposite to the direction determined by the address shift vector of the direction extraction template, the direction is maximized. A weight that decreases as the deviation becomes smaller is applied to the equally divided point pixels of each pixel of interest, and this is accumulated for each pixel of interest, and the accumulated value and the set value are compared for each pixel of interest. a comparison circuit that outputs a black detection signal, and a density comparison circuit that receives the black detection output signal and compares the density characteristics of a set area including the pixel of interest in a density storage circuit with a set value and increments a counter. It has been established that

〔作用〕[Effect]

この発明においては、人間を含む情景が赤外光透過照明
手段で照明されて俯職撮像手段で撮像されると、人間の
頭部は毛髪の赤外光吸光特性に起因して黒い円板の如く
撮像され、又得られた画像が濃度記憶回路内に格納され
ると、画像の各画素の方向値が濃度変化方向算出回路で
算出され、比較回路でこの方向値とアドレス・シフト・
ベクトルとを用いて各注目点画素の均等分割点画素に重
みづけが行なわれてその累算値が求められ、累算値と設
定値との比較によって黒用の中心である注目点画素が求
められ、濃度比較回路でその注目点画素を含む設定領域
の濃度特徴と設定値とが比較されてカウンタがカウント
アツプされ、このように人間の頭部が強調入力され、濃
度値による空間情報が濃度変化方向の空間情報に置き換
えられて検出され、さらに濃度・空間情報に戻って確認
された後計数が行なわれるものである。
In this invention, when a scene including a human being is illuminated by the infrared light transmissive illumination means and imaged by the photographic imaging means, the human head is covered with a black disc due to the infrared light absorption property of hair. When the obtained image is captured and stored in the density storage circuit, the direction value of each pixel of the image is calculated by the density change direction calculation circuit, and the comparison circuit compares this direction value with the address shift.
The equally divided point pixels of each target pixel are weighted using the vector and the cumulative value is determined, and the target pixel that is the center for black is determined by comparing the cumulative value with the set value. The density comparison circuit compares the density characteristics of the set area including the pixel of interest with the set value, and the counter counts up. In this way, the human head is emphasized and input, and the spatial information based on the density value is converted into density. The information is replaced with spatial information in the direction of change and detected, and then the concentration/spatial information is returned and confirmed before counting is performed.

〔実施例〕〔Example〕

以下、本発明の実施例を図について説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.

第1図ないし第3図は本発明の一実施例による人数計数
装置を示す。第1図において、31は人を含む情景を照
明する赤外光投下照明手段、32は照明された人を含む
情景を俯嶽撮像する俯睡撮像手段、33は俯脆撮像手段
32の光軸上に配設され、上記赤外光波長付近の光を透
過するフィルタ、34は画像の濃度階調を記憶する画像
記憶回路、35は画像記憶回路34内の画像各画素毎に
、該画素の濃度階調と近傍画素の濃度階調とから白から
黒に至る濃度変化の方向を求め、これを量子化された方
向値に換算する濃度変化方向算出回路、37は換算値を
各画素毎に記憶する濃度変化方向記憶回路、36は画像
記憶回路34及び濃度変化方向記憶回路37内の注目点
画素を全画像にわたって順次走査する走査アドレス発生
回路、38は上記注目点画素を中心としてそのアドレス
に加算する所定半径円周上の均等分割点画素のアドレス
・シフト・ベクトルを格納した方向抽出テンプレートで
ある。
1 to 3 show a people counting device according to an embodiment of the present invention. In FIG. 1, reference numeral 31 denotes infrared light projection illumination means for illuminating a scene including a person, 32 a horizontal image capturing means for capturing an overhead image of the illuminated scene including a person, and 33 an optical axis of the downward view image capturing means 32. 34 is an image storage circuit that stores the density gradation of the image; 35 is a filter for each pixel of the image in the image storage circuit 34; A density change direction calculation circuit 37 calculates the direction of density change from white to black from the density gradation and the density gradation of neighboring pixels, and converts this into a quantized direction value. 36 is a scanning address generation circuit that sequentially scans the pixel of interest in the image storage circuit 34 and the density change direction storage circuit 37 over the entire image; 38 is a scanning address generation circuit that sequentially scans the pixel of interest in the image storage circuit 34 and the density change direction storage circuit 37; This is a direction extraction template that stores address shift vectors of equally divided point pixels on a circumference with a predetermined radius to be added.

また39は濃度変化方向記憶回路37から抽出された方
向値によって決まる方向と、方向抽出テンプレート38
から抽出されたアドレス・シフト・ベクトルによって決
まる方向との組が相対向する方向の組合わせの時最大と
し、方向のずれが小さくなるに伴って減少する重みを各
注目点画素の均等分割画素につけてこれを各注目点画素
毎に累算し、各注目点画素毎に累算値が設定値より大き
いとき黒用検出信号を出力する比較回路、40は比較回
路39の黒用検出信号を受けて画像記憶回路34の当該
アドレスを含む領域範囲の濃度特徴を設定値と比較する
濃度比較回路、41は検出数をカウントアツプするカウ
ンタ、42は計数済の注目点画素のアドレスを格納する
注目点アドレス累積テーブルである。
Further, reference numeral 39 indicates a direction determined by the direction value extracted from the density change direction storage circuit 37 and a direction extraction template 38.
When the direction determined by the address shift vector extracted from 40 is a comparator circuit which accumulates this for each target pixel and outputs a black detection signal when the accumulated value is larger than a set value for each target pixel; 40 receives the black detection signal from the comparator circuit 39; 41 is a counter that counts up the number of detections; 42 is a point of interest that stores the address of the already counted pixel of interest; This is an address accumulation table.

次に動作について説明する。人数をカウントすべき領域
が上方の赤外光投下照明手段31で照明され、その情景
がフィルタ33を介して俯微撮像手段32で俯瞰撮像さ
れると、得られた画像信号はその位置に応じた画像記憶
回路34のアドレスに濃度階調値に応じた値で記憶され
る。この時、人間の頭部像は頭髪の赤外線吸光特性に起
因して周辺背景に対し低階調を示し、又人間の身長の分
布幅が撮像距離に比して低比率であるので、はぼ一定の
径を有する黒い円形となる。
Next, the operation will be explained. When the area where the number of people is to be counted is illuminated by the infrared light projection illumination means 31 located above, and the scene is imaged from above by the overhead imaging means 32 via the filter 33, the obtained image signal is The image is stored at an address in the image storage circuit 34 with a value corresponding to the density gradation value. At this time, the image of the human head shows a low gradation with respect to the surrounding background due to the infrared absorption characteristics of the hair, and the distribution width of the human height is a low ratio compared to the imaging distance, so it is It becomes a black circle with a constant diameter.

濃度変化方向算出回路35では、画像記憶回路34内の
各画素とその近傍画素との濃度値の増減が例えば空間微
分処理等により比較され、各画素毎に、最も大きな濃度
差の生じる方向が、しかるべく設定された方向解像度n
に応じた濃度変化方向値(0,1,・・・、n−1)に
置き換えられる。
The density change direction calculation circuit 35 compares the increase/decrease in density value between each pixel in the image storage circuit 34 and its neighboring pixels by, for example, spatial differentiation processing, and determines the direction in which the largest density difference occurs for each pixel. directional resolution n set accordingly
It is replaced with a density change direction value (0, 1, . . . , n-1) corresponding to the density change direction.

この操作を画像記憶回路34の全ての画素に施した結果
が、それぞれの位置に対応するアドレスで濃度変化方向
記憶回路37に格納される。
The results of performing this operation on all pixels in the image storage circuit 34 are stored in the density change direction storage circuit 37 at addresses corresponding to the respective positions.

一方、方向抽出テンプレート8には、盪像条件によりほ
ぼ一意的に決まる画像上の半径rと、先の方向解像度n
により決定される注目点を中心として円周上の均等分割
点へのアドレス・シフト・ベクトル(Xo、・・・、に
、、−1) とが格納されている。
On the other hand, the direction extraction template 8 includes the radius r on the image, which is almost uniquely determined by the image conditions, and the previous direction resolution n.
Address shift vectors (Xo, . . . , , −1) to equally divided points on the circumference centered on the point of interest determined by are stored.

第2図(C)に濃度変化方向記憶回路37内の方向値を
、第2図(81,Cb)に方向・値を求める方法を第3
図に方向抽出テンプレート38の概念を示しているので
、参照されたい。ここでは、方向解像度をn=8.濃度
変化方向を統計的に高階調から低階調に向かう方向に矢
印で表示し、左向き水平方向から、時計廻りに方向値(
0,・・・、7)を定めた例を示している。
FIG. 2(C) shows the direction value in the density change direction memory circuit 37, and FIG. 2(81, Cb) shows the method for determining the direction/value.
Please refer to the figure, which shows the concept of the direction extraction template 38. Here, the directional resolution is n=8. The density change direction is statistically displayed with an arrow in the direction from high to low gradation, and the direction value (
0, ..., 7) is shown.

濃度変化方向記憶回路37に、全画素の算出値が格納さ
れると、走査アドレス発生回路36により順次走査アド
レスが生成され、注目点が濃度変化方向記憶回路37上
の左上端から右下端まで、全画面にわたって走査される
。このとき、各注目画素点毎に、方向抽出テンプレート
38により与えられるアドレス・シフト・ベクトル対応
点n画素、即ち注目点を中心として半径rの円周上のn
均等分割点に格納されている方向値が全て読み出される
。読み出された方向値は、各注目画素毎に、比較回路3
9において比較判定される。すなわち、ここでアドレス
・シフト・ベクトル方向(方向値XKは’Lcの時XK
=mod (K+n/2.n)(但しmo d (d+
、 dz )はd+/dzの余りの非負整数))と読み
出された方向■えとが、正反対方向の時(即ち、mad
 (Xm +Vb 、n)=4の時)最大の重み値を、
正反対方向からはなれる(方向のずれが小さくなる)に
応じて減少する重み値を各円周分割点毎につけこれを全
周にわたって(Kを1からnまで)足し込んだ累積値を
もって、円らしさを表現しているので、予かしめ設定さ
れたしきい値と、この各注目画素毎に得られる累積値と
を比較し、しきい値より大きい時、この注目点を上述の
人間頭部像である黒用の中心点と判断し、濃度比較回路
40へ黒用検出信号を出す。
When the calculated values of all pixels are stored in the density change direction storage circuit 37, the scan address generation circuit 36 sequentially generates scan addresses, and the point of interest is from the upper left corner to the lower right end on the density change direction storage circuit 37. The entire screen is scanned. At this time, for each pixel point of interest, address shift vector corresponding point n pixels given by the direction extraction template 38, that is, n pixels on the circumference of a radius r centered around the point of interest.
All direction values stored at the equal division points are read out. The read direction value is sent to the comparator circuit 3 for each pixel of interest.
9, a comparison is made. That is, here, address shift vector direction (direction value XK is 'Lc' when XK
= mod (K+n/2.n) (however, mod (d+
, dz) is the non-negative integer remainder of d+/dz)) and the direction in which
(When Xm + Vb, n) = 4) The maximum weight value is
A weight value that decreases as it moves away from the exact opposite direction (the deviation in direction becomes smaller) is given to each circumferential division point, and the cumulative value obtained by adding this value over the entire circumference (K from 1 to n) is used to calculate the circularity. Therefore, the cumulative value obtained for each pixel of interest is compared with the threshold set in advance, and if it is larger than the threshold, this point of interest is expressed in the human head image described above. It is determined that it is a certain center point for black, and a black detection signal is output to the density comparison circuit 40.

濃度比較回路40は、このときのアドレスを含むしかる
べき近傍範囲の複数画素の濃度値を、濃度記憶回路34
から読み出し、濃度値間のしかるべき特@量、例えば濃
度平均値と濃度分散値、及びこれらの組合わせをしかる
べく設定されたしきい値との比較により判定する。判定
が妥当となったとき濃度比較回路40はカウンタ回路4
1ヘ力ウントアノプ信号を出力する。カウンタ回路41
は、アドレス発生回路36が全画素を走査した後に画面
内の人間の頭数を出力し、一連の処理を終了する。
The density comparison circuit 40 stores the density values of a plurality of pixels in an appropriate neighborhood range including the current address in the density storage circuit 34.
, and determine appropriate quantities between the density values, such as density average value, density variance value, and combinations thereof, by comparison with appropriately set threshold values. When the determination is valid, the concentration comparison circuit 40 outputs the counter circuit 4.
1 outputs an output signal. Counter circuit 41
After the address generation circuit 36 scans all pixels, it outputs the number of people on the screen, and the series of processing ends.

以上のような本実施例の装置では、毛髪の赤外光吸光特
性に起因して人間の頭部が大きさのそろった黒用として
撮像されることを利用し、濃度変化方向を用いて黒用の
中心位置を検出して人間を検知し、さらに濃度特徴によ
って人間の頭部を同定した後、人数を計数するようにし
たので、配光分布9人間の稠密度、陰影形状の変化等の
影響を低減して人数計数精度を向上できる。
The apparatus of this embodiment as described above takes advantage of the fact that the human head is imaged as a black color of uniform size due to the infrared light absorption property of hair, and uses the direction of density change to capture a black image. By detecting the center position of the person and then counting the number of people after identifying the person's head based on the density characteristics, the number of people can be counted. It is possible to reduce the influence and improve the accuracy of people counting.

なお上記実施例では黒い円形、すなわち頭髪をもって人
間の頭数としたが、比較回路39において、円らしさを
表現する累積値が設定しきい値に満たないとき、注目点
を移動する前に、もう一度、読み出された方向値とアド
レス・シフト・ベクトル方向値XKとの組について、同
方向の時(即らmod (XK+V、、n)=Qの時)
最大の重み値をつけ、方向のずれに応じて重みを減少さ
せるようにした重み値を累積値とし、別途設けた設定値
より大きいときに、出力信号を出力させるように比較回
路を構成し、同時に、濃度比較回路40においては、こ
の経路での出力信号を上記黒用検出信号と識別し、濃度
特徴比較において、濃度平均値と対応するしきい値との
比較時に、ある白濃度以上を可とすべ(しきい値判定を
行わせる濃度比較回路に構成しても良く、これにより黒
い頭髪のみならず、禿頭をもその丸さをもって人間の頭
数に含める精度高い人数計数装置を得ることが可能とな
る。
In the above embodiment, the black circle, that is, the hair on the head, is used as the number of human heads, but when the cumulative value expressing the circularity is less than the set threshold in the comparison circuit 39, before moving the point of interest, When the read direction value and address shift vector direction value XK are in the same direction (i.e. when mod (XK+V,,n)=Q)
A comparison circuit is configured such that the maximum weight value is assigned, and the weight value is decreased according to the direction shift, and the weight value is set as the cumulative value, and an output signal is output when the weight value is larger than a separately provided set value. At the same time, the density comparison circuit 40 identifies the output signal on this path as the black detection signal, and in the density feature comparison, when comparing the density average value with the corresponding threshold, white density above a certain level is possible. It is also possible to configure a concentration comparison circuit that performs a threshold value judgment, thereby making it possible to obtain a highly accurate people counting device that includes not only black hair but also bald heads based on their roundness in the human head count. becomes.

また別途構成された、計数済の注目点アドレス累積テー
ブル42内に、検出カウント済のアドレスを格納して行
き、走査アドレス発生回路36にて新しい注目点アドレ
ス生成の際、格納済の各アドレスとの画像上での距離を
算出し、この値が、人の身体的大きさ、撮像距離、撮像
倍率等の撮像条件により決定された設定値より小さいと
き、以降の比較を行わず、次の注目点アドレスを調べる
ようにすると、人の陰影像等のノイズに対し、より精度
高い検出が可能となる。
In addition, the detected and counted addresses are stored in a separately configured counted point-of-interest address accumulation table 42, and when the scanning address generation circuit 36 generates a new point-of-interest address, it is combined with each stored address. If this value is smaller than the set value determined by the imaging conditions such as the physical size of the person, the imaging distance, and the imaging magnification, no further comparisons are made and the next focus is calculated. By checking the point address, it is possible to detect noise with higher accuracy, such as a shadow image of a person.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、人間頭部を強調入力
し、濃度値による空間情報を濃度変化方向の空間情報に
置き換えて検出し、さらに濃度。
As described above, according to the present invention, the human head is input with emphasis, spatial information based on density values is replaced with spatial information in the direction of density change, and then the density is detected.

空間情報に戻ってV1!認後計数するように構成したの
で、配光分布5人の稠密度、陰影形状の変化等の影響を
低減して人数計数精度を向上できる効果がある。
Back to spatial information V1! Since the system is configured to count the number of people after recognition, it is possible to improve the accuracy of counting the number of people by reducing the effects of the density of five people in the light distribution, changes in shadow shape, and the like.

【図面の簡単な説明】[Brief explanation of drawings]

第1図はこの発明の一実施例による人数計数装置を示す
構成図、第2図(al、 (b)は濃度変化の方向値の
算出方法を説明するための模式図、第2図(C)は濃度
変化方向記憶回路内の方向値の概念図、第3図は方向抽
出テンプレートの概念図、第4図は従来の人数計数方法
のフローチャートを示す図、第5図は本件出願人の開発
に係る人数計数方法のフローチャートを示す図である。 31は赤外光投下照明手段、32は俯徹撮像手段、33
はフィルタ、34は画像記憶回路、35は濃度変化方向
算出回路、36は走査アドレス発生回路、37は濃度変
化方向記憶回路、38は方向抽出テンプレート、39は
比較回路、40は濃度比較回路、41はカウンタ、42
は検出済汗目点アドレス累積テーブルである。
FIG. 1 is a configuration diagram showing a people counting device according to an embodiment of the present invention, FIG. ) is a conceptual diagram of the direction value in the density change direction memory circuit, Figure 3 is a conceptual diagram of the direction extraction template, Figure 4 is a flowchart of the conventional people counting method, and Figure 5 is a diagram developed by the applicant. It is a diagram showing a flowchart of the method for counting the number of people. 31 is an infrared light projection illumination means, 32 is an overhead imaging means, 33
34 is a filter, 34 is an image storage circuit, 35 is a density change direction calculation circuit, 36 is a scanning address generation circuit, 37 is a density change direction storage circuit, 38 is a direction extraction template, 39 is a comparison circuit, 40 is a density comparison circuit, 41 is a counter, 42
is a detected hot spot address accumulation table.

Claims (3)

【特許請求の範囲】[Claims] (1)上方より赤外光を投下する赤外光投下照明手段と
、 上記赤外光波長付近の光を透過するフィルタを備え、照
明された情景を俯瞰撮像する俯瞰撮像手段と、 撮像によって得られた画像の濃度階調を、位置に応じた
アドレスに記憶する画像記憶回路と、該画像記憶回路内
の画像各画素毎に該画素の濃度階調と近傍画素の濃度階
調とから白から黒に至る濃度変化の方向を求めこれを量
子化された方向値に換算する濃度変化方向算出回路と、 上記換算値を各画素毎に記憶する濃度変化方向記憶回路
と、 該濃度変化方向記憶回路及び上記画像記憶回路内の注目
点画素を全画像にわたって順次走査する走査アドレス発
生回路と、 上記注目点画素を中心としてそのアドレスに加算する所
定半径円周上の均等分割点画素のアドレス・シフト・ベ
クトルを格納した方向抽出テンプレートと、 上記濃度変化方向記憶回路から抽出された方向値によっ
て決まる方向と、上記方向抽出テンプレートから抽出さ
れたアドレス・シフト・ベクトルによって決まる方向と
の組が相対向する方向の組合わせの時最大とし、方向の
ずれが小さくなるに伴って減少する重みを各注目点画素
の均等分割点画素につけてこれを各注目点画素毎に累算
し、各注目点画素毎に累算値が設定値より大きい時黒円
検出信号を出す比較回路と、 該比較回路の黒円検出信号を受けたとき上記濃度記憶回
路内の該当アドレスを含む設定領域内の濃度特徴を設定
値と比較しカウントアップ信号を出力する濃度比較回路
と、 上記カウントアップ信号によってカウントアップを行な
い、カウント値を人数の計数値として出力するカウンタ
とを備えたことを特徴とする人数計数装置。
(1) An infrared light projection illumination device that projects infrared light from above; an overhead imaging device that includes a filter that transmits light around the wavelength of the infrared light, and that captures an overhead image of the illuminated scene; an image storage circuit that stores the density gradation of the image in an address corresponding to the position; a density change direction calculation circuit that determines the direction of density change leading to black and converts it into a quantized direction value; a density change direction storage circuit that stores the converted value for each pixel; and the density change direction storage circuit. and a scanning address generation circuit that sequentially scans the pixel of interest in the image storage circuit over the entire image, and an address shift/shift of the equally divided point pixels on the circumference of a predetermined radius that adds to the address centering on the pixel of interest. A direction in which a pair of a direction extraction template storing a vector, a direction determined by the direction value extracted from the density change direction storage circuit, and a direction determined by the address shift vector extracted from the direction extraction template face each other. A weight that is maximum when the combination of A comparison circuit that outputs a black circle detection signal when the accumulated value is larger than a set value, and a comparison circuit that outputs a black circle detection signal when the black circle detection signal from the comparison circuit is received, sets the density characteristics in the set area including the corresponding address in the density storage circuit to the set value. A people counting device comprising: a concentration comparison circuit that compares the number of people with the number of people and outputs a count-up signal; and a counter that counts up based on the count-up signal and outputs the count value as a count value of the number of people.
(2)上記比較回路は、抽出された方向値の上記比較判
定後、重み累算値が設定値より小さいときは同一方向の
組合わせの時最大とし、方向がずれるに伴って減少する
重みを各均等分割点画素につけてこれを累算し、該累算
値が設定値よりも大きい時出力信号を出すものであり、 上記濃度比較回路は、この出力信号を黒円検出信号と識
別し、濃度特徴の判定を別途設けた設定値との比較によ
り行うものであることを特徴とする特許請求の範囲第1
項記載の人数計数装置。
(2) After the comparison and judgment of the extracted direction values, the comparison circuit sets the weight to the maximum value for a combination in the same direction when the accumulated weight value is smaller than the set value, and sets the weight to decrease as the direction shifts. This is accumulated for each equally divided point pixel, and when the accumulated value is larger than a set value, an output signal is output, and the density comparison circuit identifies this output signal as a black circle detection signal, Claim 1, characterized in that the determination of density characteristics is performed by comparison with a separately provided setting value.
People counting device as described in section.
(3)上記比較回路は、各注目点画素毎の比較判定の際
、上記アドレス発生回路からの注目点画素のアドレスを
既に計数済の注目点アドレス累積テーブル内の各値と比
較し、この間の画像上の距離が設定値よりも小さいとき
走査アドレス発生回路からの次のアドレスの注目点画素
の比較判定を行なうものであることを特徴とする特許請
求の範囲第1項又は第2項記載の人数計数装置。
(3) When comparing and determining each pixel of interest, the comparison circuit compares the address of the pixel of interest from the address generation circuit with each value in the already counted address address accumulation table, and Claim 1 or 2, characterized in that when the distance on the image is smaller than a set value, the pixel of interest of the next address from the scanning address generation circuit is compared and judged. People counting device.
JP61019639A 1986-01-30 1986-01-30 Device for counting the number of persons Pending JPS62177689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61019639A JPS62177689A (en) 1986-01-30 1986-01-30 Device for counting the number of persons

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61019639A JPS62177689A (en) 1986-01-30 1986-01-30 Device for counting the number of persons

Publications (1)

Publication Number Publication Date
JPS62177689A true JPS62177689A (en) 1987-08-04

Family

ID=12004789

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61019639A Pending JPS62177689A (en) 1986-01-30 1986-01-30 Device for counting the number of persons

Country Status (1)

Country Link
JP (1) JPS62177689A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0589448A1 (en) * 1992-09-24 1994-03-30 Matsushita Electric Industrial Co., Ltd. An occupant condition determining apparatus
ES2125798A1 (en) * 1996-02-15 1999-03-01 Univ Madrid Politecnica Automatic system for counting moving people
KR20030018487A (en) * 2001-08-29 2003-03-06 주식회사 하나엘 Method and apparatus for counting the number of entering people at the gate using image
JP2009069019A (en) * 2007-09-13 2009-04-02 Toshiba Corp Target detector and method
JP2017021718A (en) * 2015-07-14 2017-01-26 コニカミノルタ株式会社 Head detection device, head detection method, and monitored person monitoring device
JP2019115052A (en) * 2019-02-12 2019-07-11 コニカミノルタ株式会社 Head detector and head detection method and monitored person monitoring device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0589448A1 (en) * 1992-09-24 1994-03-30 Matsushita Electric Industrial Co., Ltd. An occupant condition determining apparatus
US5384716A (en) * 1992-09-24 1995-01-24 Matsushita Electric Industrial Co., Ltd. Occupant condition determining apparatus
ES2125798A1 (en) * 1996-02-15 1999-03-01 Univ Madrid Politecnica Automatic system for counting moving people
KR20030018487A (en) * 2001-08-29 2003-03-06 주식회사 하나엘 Method and apparatus for counting the number of entering people at the gate using image
JP2009069019A (en) * 2007-09-13 2009-04-02 Toshiba Corp Target detector and method
JP2017021718A (en) * 2015-07-14 2017-01-26 コニカミノルタ株式会社 Head detection device, head detection method, and monitored person monitoring device
JP2019115052A (en) * 2019-02-12 2019-07-11 コニカミノルタ株式会社 Head detector and head detection method and monitored person monitoring device

Similar Documents

Publication Publication Date Title
JP2633694B2 (en) Person detection device
JP4451307B2 (en) How to classify objects in a scene
TW385360B (en) 3D imaging system
US6553138B2 (en) Method and apparatus for generating three-dimensional representations of objects
JP6553624B2 (en) Measurement equipment and system
JPH11288459A (en) Method and device for detecting area such as face and observer tracking display
WO1999058930A1 (en) Structured-light, triangulation-based three-dimensional digitizer
JPH0634366A (en) Focusing sensing method, and method and device for contactless measurement of displacement using it
US20020150308A1 (en) Image processing method, and an apparatus provided with an image processing function
JP2003244521A (en) Information processing method and apparatus, and recording medium
JP5725194B2 (en) Night scene image blur detection system
JP2011053959A (en) Image processing apparatus, subject discrimination method, program, and storage medium
KR960016419A (en) Video signal tracking system
JP2000065542A (en) Three-dimensional image photographing device
CN107862713A (en) Video camera deflection for poll meeting-place detects method for early warning and module in real time
KR20110014960A (en) Image processing apparatus and image processing method
JPS62177689A (en) Device for counting the number of persons
JP2996067B2 (en) 3D measuring device
JP4740755B2 (en) Monitoring device using images
JP4581424B2 (en) Appearance inspection method and image processing apparatus
KR20190127543A (en) A method for detecting motion in a video sequence
Miyasaka et al. Development of real-time 3D measurement system using intensity ratio method
JPH09145368A (en) Moving and tracing method for object by stereoscopic image
JP2001264017A (en) Three-dimensional image photographing apparatus
JPH08136222A (en) Method and device for three-dimensional measurement