JPH0546732A - Detector for number of persons - Google Patents

Detector for number of persons

Info

Publication number
JPH0546732A
JPH0546732A JP3225095A JP22509591A JPH0546732A JP H0546732 A JPH0546732 A JP H0546732A JP 3225095 A JP3225095 A JP 3225095A JP 22509591 A JP22509591 A JP 22509591A JP H0546732 A JPH0546732 A JP H0546732A
Authority
JP
Japan
Prior art keywords
image
person
people
detecting
difference
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
JP3225095A
Other languages
Japanese (ja)
Inventor
Hiroshi Ko
博 高
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP3225095A priority Critical patent/JPH0546732A/en
Publication of JPH0546732A publication Critical patent/JPH0546732A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To highly accurately detect the number of persons without being influenced by a setting place or a setting environment of a television (TV) camera by reducing the influence of a low contrast between an objective person and a floor to be a background or a change in brightness due to an illuminating state or the like in the case of processing a video signal obtained from the TV camera and detecting the number of persons. CONSTITUTION:A device for picking up the image of a person to be detected by the TV camera is provided with an arithmetic means 6 for automatically updating a background image including no person, arithmetic means 9, 10 for detecting the number of persons to be detected, a means 7 for changing a threshold level for binarizing an image signal at the time of detecting the number of persons based on the average value of brightness density gradation in an unmanned visual field photographed by the TV camera, a means 8 for compensating the shape of a person image based on the fixing height of the TV camera up to a ceiling and the focal distance length of a camera lens, and a means 12 for compensating the number of persons to be detected.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、百貨店内やエレベ−タ
乗場、地下街等のある特定場所の人数や通行者数を、テ
レビカメラの映像信号を処理して検出する人数検出装置
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device for detecting the number of people and the number of passers-by in a specific place such as in a department store, elevator hall, underground mall, etc. by processing a video signal of a television camera. is there.

【0002】[0002]

【従来の技術】テレビカメラの映像信号をディジタル信
号に変換し、得られたディジタル画像信号から検出対象
画像を演算処理する手法は広く使用されている。例えば
図5は、従来の人数検出装置のブッロク図である。図5
において、1はテレビカメラ等で成り、検出対象人物を
撮像して画像信号を出力する画像入力部、2は画像入力
部1の画像信号を入力してノイズ成分を除去し、二値化
等の処理をして二値化画像信号を出力する前処理部、3
は前処理部2の画像信号を入力して検出対象人物画像を
抽出する対象抽出部、4は対象抽出部3の対象人物画像
と、予め入力して内部に記憶されている基準面積画像と
を比較する面積比較部、5は基準面積画像より大きい画
像を計数する計数部である。
2. Description of the Related Art A method of converting a video signal of a television camera into a digital signal and arithmetically processing an image to be detected from the obtained digital image signal is widely used. For example, FIG. 5 is a block diagram of a conventional people detection device. Figure 5
In FIG. 1, 1 is an image input unit configured by a television camera or the like for capturing an image of a detection target person and outputting an image signal, and 2 is an image signal of the image input unit 1 for removing a noise component and performing binarization or the like. A preprocessing unit for processing and outputting a binarized image signal, 3
Is an object extraction unit for inputting the image signal of the preprocessing unit 2 to extract a detection target person image, and 4 is a target person image of the target extraction unit 3 and a reference area image which is input in advance and stored therein. An area comparing section 5 for comparison is a counting section for counting images larger than the reference area image.

【0003】次に動作について説明する。画像入力部1
が百貨店内やエレベ−タ乗場等のある特定場所を撮像し
て画像信号を出力すると、前処理部2がこの画像信号を
取り込んでマスキング等でノイズ成分を除去し、次いで
二値化処理を行って二値化画像信号を出力する。対象抽
出部3は二値化画像信号から検出対象人物画像を抽出す
る。面積比較部4には予め入力された基準面積画像が記
憶されており、この基準面積画像と対象抽出部3の検出
対象人物画像とを比較し、基準面積画像より大きい部分
の人物画像を得る。計数部5はこれらの画像を計数して
人数信号を出力する。
Next, the operation will be described. Image input section 1
When an image of a certain place such as a department store or an elevator hall is captured and an image signal is output, the preprocessing unit 2 takes in the image signal, removes noise components by masking, and then performs binarization processing. And outputs a binarized image signal. The target extraction unit 3 extracts a detection target person image from the binarized image signal. A reference area image input in advance is stored in the area comparison unit 4, and the reference area image and the detection target person image of the target extraction unit 3 are compared to obtain a person image of a portion larger than the reference area image. The counting unit 5 counts these images and outputs a person number signal.

【0004】このようにして画像入力部の画像信号をデ
ィジタル処理することによって、検出対象人物の数を検
出することができる。
By thus digitally processing the image signal of the image input section, the number of persons to be detected can be detected.

【0005】[0005]

【発明が解決しようとする問題点】以上述べたような従
来の人数検出装置では、基準面積の背景画像を人がいな
いことを確認し、手動で予め入力せねばならず、カメラ
の視野内に物を置くと言ったように設置環境が変わる
と、その都度新しく基準の背景画像を入力する必要があ
った。更に単純な二値化画像信号を基に面積判定を行っ
ているので、人物と背景とのコントラストの低い場合、
例えば頭髪の色と背景となる床が同系色等のような場合
には、検出対象人物の画像面積(画素数)が小さくなっ
たり、画像入力部の設置場所の明るさの変化等により、
二値化処理を行う場合のしきい値レベルの設定が難しか
った。また、天井に設けたテレビカメラで検出対象人物
を撮像するとき、テレビカメラの取付高さとカメラレン
ズの焦点距離によって、検出対象人物の面積画像は、テ
レビカメラの中心部では小さく周辺部で大きくなり検出
精度が低下した。結局、従来の人数検出装置はテレビカ
メラの設置場所や設置環境によって検出精度が大きく影
響された。
In the conventional number-of-people detecting apparatus as described above, it is necessary to confirm that there is no person in the background image of the reference area, and manually input the background image within the field of view of the camera. Every time the installation environment changed, such as when you put something, you had to input a new standard background image each time. Since area determination is performed based on a simpler binary image signal, when the contrast between the person and the background is low,
For example, when the hair color and the background floor are similar colors, the image area (number of pixels) of the detection target person may be small, or the brightness of the installation location of the image input unit may change.
It was difficult to set the threshold level when performing the binarization process. Also, when an image of a person to be detected is taken with a TV camera installed on the ceiling, the area image of the person to be detected becomes smaller in the central part of the TV camera and larger in the peripheral part due to the mounting height of the TV camera and the focal length of the camera lens. The detection accuracy has decreased. After all, the detection accuracy of the conventional people detection device is greatly affected by the installation location and installation environment of the TV camera.

【0006】本発明は上記の問題点を解決するためにな
されたもので、人のいない状態の背景画像が自動的に更
新でき、床の色や照明状態等による明るさの変化に対し
ても影響を少なくするようにして、設置場所や設置環境
に影響されずに高精度に人の数を検出することのできる
人数検出装置を得ることを目的とする。
The present invention has been made in order to solve the above-mentioned problems, and can automatically update the background image in a state where there is no human being, and can cope with the change in brightness due to the color of the floor or the lighting condition. An object of the present invention is to obtain a person number detecting device capable of detecting the number of persons with high accuracy without being affected by the installation place or the installation environment by reducing the influence.

【0007】[0007]

【問題点を解決するための手段】上記問題点を解決する
ための人数検出装置は、人がいない状態の背景画像を自
動的に更新する演算手段と、対象人物の数を検出する演
算手段とを設けて、テレビカメラが写す無人視野内の明
るさの濃度階調の平均値より、人数検出時に画像信号を
二値化するしきい値レベルを変更する手段と、テレビカ
メラの天井までの取付高さおよびカメラレンズの焦点距
離の長さによって、人物画像の形状を補正する手段と、
検出対象人物の数を補正する手段とで構成したものであ
る。
[Means for Solving the Problems] A person number detecting device for solving the above-mentioned problems includes an arithmetic means for automatically updating a background image in the absence of a person, and an arithmetic means for detecting the number of target persons. A means for changing the threshold level for binarizing the image signal when detecting the number of people based on the average value of the density gradation of the brightness in the unmanned field of view imaged by the TV camera, and the installation to the ceiling of the TV camera. A means for correcting the shape of the human image by the height and the length of the focal length of the camera lens,
And means for correcting the number of persons to be detected.

【0008】[0008]

【作 用】本発明による人数検出装置は、人数検出をす
る場合の基準となる背景画像の更新を自動的に行うよう
にしているので、床に物を置いたりするなど背景が変化
しても人為的に設定を変える必要はない。また、照明状
態などに起因する明るさの変化があっても、人がいない
状態における背景の明るさの濃度階調の平均値をもと
に、人数検出時の画像信号を二値化するしきい値レベル
を変えるようにし、更にテレビカメラの取付高さや、カ
メラレンズの焦点距離の長さにより、人物画像の形状を
補正するなどしているので、テレビカメラの設置場所や
設置環境に影響されずに、検出対象人物の数を高精度に
検出することができる。
[Operation] Since the number-of-people detection device according to the present invention automatically updates the background image that is the reference when detecting the number of people, even if the background changes, such as when an object is placed on the floor. There is no need to change the setting artificially. Also, even if there is a change in brightness due to the lighting condition, etc., the image signal at the time of detecting the number of people is binarized based on the average value of the density gradation of the background brightness in the absence of people. The threshold level is changed, and the shape of the portrait image is corrected by adjusting the height of the TV camera and the focal length of the camera lens, so it is affected by the installation location and environment of the TV camera. The number of persons to be detected can be detected with high accuracy.

【0009】[0009]

【実施例】以下、本発明の一実施例を図1〜図4に基づ
いて説明する。図1はこの発明の人数検出装置の構成を
示すブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. FIG. 1 is a block diagram showing the configuration of the number-of-people detecting device of the present invention.

【0010】1は図5と同一のテレビカメラ等でなる画
像入力部、6は画像入力部1の画像信号より、人数検出
時に基準となる無人状態での背景画像を演算する背景画
像演算部で、人がいない状態のとき、背景画像を周期的
に更新する。7は濃度階調演算部で、無人状態での背景
画像信号の濃度階調の平均値を求め、この値の大きさよ
り人数検出時の画像信号の二値化レベルを変化させ、照
明状態等に起因する明るさの影響を少なくする。例えば
照度が高く明るい場合には、人の影が出やすいので二値
化レベルを上げるようにしている。8は形状補正部であ
る。検出画像の周辺部ではその中央部よりも人の画像が
長く写る。このため周辺部の画像を圧縮して一人分の画
像の大きさがほぼ均等になるように画像を形状補正す
る。ここで形状補正レベルの値を小さくすると、形状補
正の度合は大きくなり周辺部はより縮小される。反対に
このレベル値を大きくすると、周辺部はあまり縮小され
ない。この形状補正レベルを、テレビカメラの天井への
取付高さと、使用するカメラレンズの焦点距離の長さと
によって変えるようにしている。
Reference numeral 1 denotes an image input unit composed of the same TV camera as shown in FIG. 5, and reference numeral 6 denotes a background image calculation unit for calculating a background image in an unmanned state which serves as a reference when detecting the number of people from the image signal of the image input unit 1. , When there is no person, the background image is updated periodically. Reference numeral 7 denotes a density gradation calculation unit, which calculates the average value of the density gradation of the background image signal in an unmanned state, and changes the binarization level of the image signal when detecting the number of people based on the magnitude of this value to change the lighting state, etc. The influence of the resulting brightness is reduced. For example, when the illuminance is high and bright, a person's shadow is likely to appear, so the binarization level is increased. Reference numeral 8 is a shape correction unit. In the peripheral portion of the detected image, the human image appears longer than in the central portion. For this reason, the image of the peripheral portion is compressed and the shape of the image is corrected so that the size of the image for one person becomes substantially equal. Here, if the value of the shape correction level is reduced, the degree of shape correction is increased and the peripheral portion is further reduced. On the contrary, if this level value is increased, the peripheral portion is not reduced so much. The shape correction level is changed according to the mounting height of the TV camera on the ceiling and the focal length of the camera lens used.

【0011】9及び10は人数検出部である。9の人数
検出部Aは、人数検出したい画像を一画面だけ取り込
み、11の画像記憶部に予め保存してある人がいない状
態の画像(背景画像)との差分を行い(これを固定差分
と呼ぶ)、人だけの画像を作る。この固定差分画像を、
7の濃度階調演算部で得られた濃度階調の平均値をもと
に定めた、二値化レベルをしきい値として画素毎に二値
化して二値画像にする。この二値画像より人数を検出す
るには、まず演算処理の高速化を図るため、画像の画素
数を減らし、その減らした画像に所定の大きさの人のパ
タ−ンを重ねて、重なった部分の画像面積を計算し、こ
の面積を、重ねたパタ−ンの中心位置にある画素の相関
値とし、これを画像全体にわたって求める、一種のパタ
−ンマッチング処理を行う。すると相関値ピ−クは、画
像面積について人のパタ−ンが最もよくあてはまる位置
であるから、その位置に人がいることになる。そこで、
検出した相関値ピ−ク一つに対して一人としてカウント
する。
Reference numerals 9 and 10 are the number-of-people detector. The number-of-people detection unit A of 9 captures only one screen of the image for which the number of people is desired to be detected, and performs a difference from the image (background image) of the state in which there is no person stored in the image storage unit of 11 (this is called a fixed difference Make a picture of only people. This fixed difference image
The binarization level determined based on the average value of the grayscale levels obtained by the grayscale level calculation unit 7 is binarized for each pixel to form a binary image. In order to detect the number of people from this binary image, the number of pixels of the image is first reduced in order to speed up the calculation process, and the pattern of the person of a predetermined size is overlapped on the reduced image and overlapped. A kind of pattern matching processing is performed in which the image area of a portion is calculated, and this area is used as the correlation value of the pixel at the center position of the overlapped patterns, and this is obtained over the entire image. Then, since the correlation value peak is the position where the pattern of the person best fits the image area, there is a person at that position. Therefore,
Each detected correlation value peak is counted as one person.

【0012】次に10の人数検出部Bは、所定時間間隔
(例えば0.1秒)で連続して二画像を取り込み、それ
らの画像を差分し(これを移動差分と呼ぶ)、この移動
差分を使って、以後は9の人数検出部の処理と同様に、
二値化、画素数縮小を行ったった後、パタ−ンマッチン
グ手法により相関値のピ−クを検出し、その数をカウン
トする。この人数検出部Bでの移動差分処理の特徴は、
検出対象人物と背景となる床とのコントラストが低い環
境であっても、その影響が少なく高精度の検出が可能で
あるという点である。ただ、この移動差分画像は原理的
に人の動きによって得られるので、完全に静止している
人物は検出できない。12は人数補正部であり、9なる
人数検出部Aと10なる人数検出部Bの演算結果を比較
し、それらの数値の大きい方を選択し、人数として出力
する。また、例えば人の動きのある設置環境では、人数
検出部Bの演算結果を選択するようにする。
Next, the ten-person detection section B of 10 captures two images continuously at a predetermined time interval (for example, 0.1 seconds), subtracts these images (this is called a movement difference), and this movement difference After that, as with the processing of the number of people detection unit of 9,
After binarization and reduction of the number of pixels, the peak of the correlation value is detected by the pattern matching method and the number is counted. The feature of the movement difference process in the number-of-people detection unit B is that
Even in an environment where the contrast between the person to be detected and the floor as the background is low, the influence is small and highly accurate detection is possible. However, since this moving difference image is obtained in principle by the movement of a person, a completely stationary person cannot be detected. Reference numeral 12 is a number-of-people correction section, which compares the calculation results of the number-of-people detection section A of 9 and the number-of-people detection section B of 10, and selects the larger of these numerical values and outputs it as the number of people. In addition, for example, in an installation environment in which people move, the calculation result of the number-of-people detector B is selected.

【0013】ところで、6の背景画像演算部は、人がい
ない状態の背景画像を正しく捉える必要があるが、この
ときの背景画像更新手順を図2のフロ−チャ−トをもと
に説明する。まず、連続で二画像を取り込む(手順
a)。この取り込みの時間間隔は、商用周波数が50Hz
と60Hzであることを考慮すると、電源周波数の違いに
よる照明の照度変化を無くすには、n/20秒(nは1
以上の整数)間隔で取り込む必要がある(特に蛍光灯照
明の場合)。従って例えば、0.1秒間隔で取り込むよ
うにする。次いで、取り込んだ二つの画像間の差の絶対
値、即ち移動差分を求め(手順b)、その差分画像を雑
音を除去できるしきい値で二値化して(手順c)、画像
の時間的な変化部分、この場合は人の移動した部分だけ
を切り出す。そして、処理時間を短縮するため、画素数
の縮小により複数個の画素を一つにまとめ(手順d)、
その後相関値計算を行う(手順e)。これはまず、人
の大きさに近い適当なパタ−ンを用意し、このパタ−ン
を画像上で画素単位に走査してパタ−ンと画像との相関
値を求める。即ち、パタ−ン内の各値(0または1)
と、それと重なった位置にある画像の画素値(0または
1)をかけて、その値をパタ−ン全体にわたって加えた
値を、そのパタ−ンの中心にある画素の相関値とする。
すると、パタ−ンと人の画像形状がよく一致した位置で
相関値が高くなるので、この相関値のピ−ク数をカウン
トする。なお、ピ−クが近距離で複数個検出される場合
は一つにまとめてカウントする。このピ−ク数が人数に
対応するので人がいるかいないかを手順fで判定し、人
が0人であれば、これを繰り返し行い、検出人数が連続
でm回とも0人となった場合(手順g)、人がいない状
態と見なして、元の二画像のうちの一画像を背景画像と
して保存する(手順h)。ここで、手順gを行うのは、
照明条件が悪い場合や人の動きが殆どない場合には移動
差分で人の画像を検出しにくいので、検出回数を増やす
ことにより、人のいる画像を背景画像として保存するこ
とがないようにするためである。
By the way, the background image calculation unit 6 needs to correctly capture the background image in the absence of any person. The background image update procedure at this time will be described with reference to the flowchart of FIG. .. First, two images are continuously captured (procedure a). The commercial frequency is 50Hz for this acquisition time interval.
In consideration of the fact that it is 60 Hz, and in order to eliminate the illuminance change of the illumination due to the difference of the power supply frequency,
It is necessary to capture at intervals of (integers above) (especially for fluorescent lighting). Therefore, for example, capture is performed at intervals of 0.1 seconds. Next, the absolute value of the difference between the two captured images, that is, the movement difference is obtained (procedure b), and the difference image is binarized by a threshold value capable of removing noise (procedure c), and the temporal difference between the images is determined. Cut out only the changed part, in this case the part where the person has moved. Then, in order to shorten the processing time, a plurality of pixels are combined into one by reducing the number of pixels (procedure d),
After that, the correlation value is calculated (procedure e). First, an appropriate pattern that is close to the size of a person is prepared, and this pattern is scanned on a pixel-by-pixel basis to obtain the correlation value between the pattern and the image. That is, each value in the pattern (0 or 1)
And the pixel value (0 or 1) of the image at the position overlapping with that, and adding the value over the entire pattern is taken as the correlation value of the pixel at the center of the pattern.
Then, since the correlation value becomes high at the position where the pattern and the image shape of the person are well matched, the number of peaks of this correlation value is counted. When a plurality of peaks are detected at a short distance, they are counted as one. Since the number of peaks corresponds to the number of people, it is determined in step f whether or not there are people, and if there are 0 people, this is repeated and the number of detected people is 0 in m consecutive times. (Procedure g), assuming that there is no person, one of the original two images is saved as a background image (procedure h). Here, the procedure g is performed as follows.
It is difficult to detect a person's image by the movement difference when the lighting condition is bad or when there is almost no person's movement. Therefore, by increasing the number of detections, the image of a person is not saved as a background image. This is because.

【0014】この図2の背景画像更新手順において、テ
レビカメラを取付けた最初の背景画像は、初期値として
人がいない状態の画像を記憶させておく必要がある。
In the background image updating procedure of FIG. 2, it is necessary to store, as an initial value, an image of a person without a person as the initial background image with the television camera attached.

【0015】次に、図1の形状補正部8の演算法につい
て図3をもとに説明する。形状補正としては、カメラ真
下を中心として半径rを変換して、半径r´とする。そ
の変換式を、次のように考える。
Next, the calculation method of the shape correction unit 8 in FIG. 1 will be described with reference to FIG. As the shape correction, the radius r is converted around the position directly below the camera to obtain the radius r '. Consider the conversion formula as follows.

【0016】[0016]

【数1】 [Equation 1]

【0017】ここで、kを補正係数とする。この補正係
数kを考えるに当たっては、検出画像の周辺部での長さ
と、中央部での長さが等しくなるように定める。即ち、
図3においてHはカメラの天井取付け高さ(m)、H0
は床から人の頭迄の高さ(m)、(例えば1.5m)、
Fはカメラレンズの焦点距離(mm)、Tはカメラ素子
の横方向寸法(mm)(例えば2/3インチのカメラで
は8.8mmとなる)、M0 、M1 はそれぞれカメラ視
野中心部およびカメラ視野端に立っている人である。
Here, k is a correction coefficient. In considering the correction coefficient k, the length in the peripheral portion of the detected image is set to be equal to the length in the central portion. That is,
In FIG. 3, H is the ceiling mounting height (m) of the camera, H 0
Is the height from the floor to the head of the person (m), (for example 1.5m),
F is the focal length (mm) of the camera lens, T is the lateral dimension (mm) of the camera element (for example, 8.8 mm for a 2/3 inch camera), M 0 and M 1 are the center of the camera field of view and A person standing at the edge of the field of view of the camera.

【0018】図3より明らかなように、カメラの有効視
野L1
As is apparent from FIG. 3, the effective visual field L 1 of the camera is

【0019】[0019]

【数2】 [Equation 2]

【0020】ここでLは単位が(m)でも画素数で表し
てもよい。今、人の頭の大きさmを人のパタ−ンの一辺
とすると、この値はLの大きさに依存する。ここで、L
1=A≡L10のときm=a≡m0とすれば(但し、A、a
は既知数)、任意のL1においてmは次のようになる。
Here, L may be represented by the number of pixels even if the unit is (m). Now, assuming that the size m of the person's head is one side of the person's pattern, this value depends on the size of L. Where L
If 1 = A≡L 10 , then m = a≡m 0 (where A, a
Is a known number), and at any L 1 , m is as follows.

【0021】[0021]

【数3】 [Equation 3]

【0022】従って、r0 は次のように表せる。Therefore, r 0 can be expressed as follows.

【0023】[0023]

【数4】 [Equation 4]

【0024】また、In addition,

【0025】[0025]

【数5】 [Equation 5]

【0026】[0026]

【数6】 [Equation 6]

【0027】となるから、変換後のr0´、r1´、r2
´は上述の数1をもとに次のように記述できる。
Therefore, r 0 ′, r 1 ′ and r 2 after conversion are obtained.
′ Can be described as follows based on the above equation 1.

【0028】[0028]

【数7】 [Equation 7]

【0029】[0029]

【数8】 [Equation 8]

【0030】[0030]

【数9】 [Equation 9]

【0031】また、形状補正後には次式を満足させる必
要がある。
Further, it is necessary to satisfy the following equation after the shape correction.

【0032】[0032]

【数10】 [Equation 10]

【0033】従って、数7〜数10よりkを求めればよ
い。即ち、補正係数kはカメラの天井取付け高さHと、
使用するカメラレンズの焦点距離の長さによって決定で
きる。
Therefore, k may be obtained from the equations 7-10. That is, the correction coefficient k is the ceiling mounting height H of the camera,
It can be determined by the length of the focal length of the camera lens used.

【0034】次に、図1の9なる人数検出部Aおよび1
0なる人数検出部Bの処理手順を、それぞれ図4(a)
および(b)のフロ−チャ−トをもとに説明する。
Next, the number detection units A and 1 shown in FIG.
The processing procedure of the number-of-people detection unit B, which is 0, is shown in FIG.
A description will be given based on the flowcharts of (b) and (b).

【0035】図4(a)において、まず人数検出したい
画像を一画面だけ取り込み(手順i)、この画像と保存
してある人がいない状態の背景画像との差分を行う(手
順j)。この固定差分の特徴は、移動差分の場合と違
い、人の動きがない場合でも、背景とのコントラストが
あれば人の画像が得られることである。次に、差分画像
を一定の濃度レベル(これを二値化レベルと呼ぶ)をし
きい値として二値化する(手順l)。このときの二値化
レベルは、テレビカメラ等から出るノイズをカットでき
るレベル以上で、図1の濃度階調演算部7で得られた濃
度階調の平均値をもとに定める。手順pでは人数検出の
演算速度を高速にするため、画像の画素数を減らし、そ
の減らした画像に所定の大きさの人のパタ−ンを重ねて
相関値を求める(手順q)。この時の人のパタ−ンは人
の画像とほぼ同じ大きさでなるべく小さいもの(例えば
3×3画素のパタ−ン)を使う方が、演算速度が高速化
でき精度も高くなる。次に相関値のピ−クを検出し、そ
のピ−クの数を計数し人数とする(手順s)。このと
き、相関値のピ−クはお互いの距離が人の大きさを考慮
し所定以上離れているものだけを検出し誤計数を避け
る。
In FIG. 4 (a), first, an image for which the number of people is desired to be detected is captured in one screen (procedure i), and the difference between this image and the background image in the state where no person is stored is determined (procedure j). The feature of this fixed difference is that, unlike the case of the moving difference, an image of a person can be obtained if there is a contrast with the background even when there is no movement of the person. Next, the difference image is binarized using a constant density level (this is called a binarization level) as a threshold value (procedure 1). The binarization level at this time is equal to or higher than a level at which noise emitted from a television camera or the like can be cut, and is determined based on the average value of the density gradation obtained by the density gradation calculation unit 7 in FIG. In step p, the number of pixels of the image is reduced in order to speed up the calculation of the number of people, and a pattern of a person of a predetermined size is superimposed on the reduced image to obtain a correlation value (step q). At this time, if the person's pattern is about the same size as the person's image and is as small as possible (for example, a pattern of 3 × 3 pixels), the operation speed can be increased and the accuracy can be improved. Next, the peak of the correlation value is detected, and the number of peaks is counted to be the number of people (procedure s). At this time, the peaks of the correlation values are only those which are separated from each other by a predetermined distance or more in consideration of the size of the person, and erroneous counting is avoided.

【0036】また、図4(b)は図1の10なる人数検
出部Bの処理手順を示すフロ−チャ−トであり、最初に
連続して二画像を取り込み(手順t)、連続する二つの
画像間の差の絶対値を求める(手順u)。次に、この差
分画像を背景雑音を除去できるしきい値で二値化して
(手順v)、画像の時間的な変化部分、この場合は人の
移動した部分だけを切り出す。その後は図4(a)の手
順p、q、sと同様な処理、即ち画素数縮小(手順
w)、相関値計算(手順x)、相関値のピ−ク計数(手
順y)を行う。
FIG. 4 (b) is a flowchart showing the processing procedure of the number-of-persons detecting section B shown in FIG. 1, in which two images are first consecutively captured (procedure t), and two consecutive images are captured. Determine the absolute value of the difference between the two images (procedure u). Next, this difference image is binarized with a threshold that can remove background noise (procedure v), and only the temporally changing portion of the image, in this case, the portion where the person has moved is cut out. After that, the same processing as steps p, q, and s in FIG. 4A is performed, that is, pixel number reduction (step w), correlation value calculation (step x), and correlation value peak counting (step y).

【0037】[0037]

【発明の効果】以上述べたように、本発明によれば検出
対象人物と背景となる床とのコントラストが低い場合や
照明状態等による明るさの変化がある場合でもその影響
が少なく、テレビカメラの設置場所や設置環境に影響さ
れずに高精度かつ短時間に人数が検出できるという効果
を有する。
As described above, according to the present invention, even if the contrast between the person to be detected and the floor as the background is low, or even if there is a change in the brightness due to the lighting condition or the like, the influence is small, and the television camera This has the effect that the number of people can be detected with high accuracy and in a short time without being affected by the installation location or installation environment.

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

【図1】本発明の実施例にかかる人数検出装置の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a people detection device according to an embodiment of the present invention.

【図2】背景画像の更新処理を示すフロ−チャ−トであ
る。
FIG. 2 is a flowchart showing a background image update process.

【図3】形状補正の説明図である。FIG. 3 is an explanatory diagram of shape correction.

【図4】人数検出の処理動作を説明するフロ−チャ−ト
である。
FIG. 4 is a flowchart for explaining the processing operation for detecting the number of people.

【図5】従来の人数検出装置の構成を示すブロック図で
ある。
FIG. 5 is a block diagram showing a configuration of a conventional people detection device.

【符号の説明】[Explanation of symbols]

1 画像入力部 2 前処理部 3 対象抽出部 4 面積比較部 5 計数部 6 背景画像演算部 7 濃度階調演算部 8 形状補正部 9 人数検出部A 10 人数検出部B 11 画像記憶部 12 人数補正部 DESCRIPTION OF SYMBOLS 1 Image input unit 2 Pre-processing unit 3 Target extraction unit 4 Area comparison unit 5 Counting unit 6 Background image calculation unit 7 Density gradation calculation unit 8 Shape correction unit 9 Number of persons detection unit A 10 Number of persons detection unit B 11 Image storage unit 12 Number of persons Correction unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 テレビカメラの映像信号をディジタル信
号に変換し、得られたディジタル画像信号の二値化レベ
ルをしきい値として人物画像を演算し、人の数を検出す
る人数検出装置において、人がいない状態の背景画像を
更新する演算手段と、人の数を検出する演算手段とを設
け、前記テレビカメラが写す無人視野内の明るさの濃度
階調の平均値より、人数検出時の画像信号の二値化レベ
ルを変更する手段と、前記テレビカメラの取付高さおよ
びテレビカメラのレンズの焦点距離の長さによって、前
記人物画像の形状を補正する手段と、検出対象人物の数
を補正する手段とを備えたことを特徴とする人数検出装
置。
1. A person number detecting apparatus for detecting a number of persons by converting a video signal of a television camera into a digital signal, calculating a person image with a binarization level of the obtained digital image signal as a threshold value, A calculation means for updating the background image in the absence of people and a calculation means for detecting the number of people are provided, and the average value of the density gradation of the brightness in the unattended field of view photographed by the television camera is used to detect the number of people. The means for changing the binarization level of the image signal, the means for correcting the shape of the person image by the mounting height of the television camera and the length of the focal length of the lens of the television camera, and the number of persons to be detected. A person number detecting device, comprising: a correcting means.
【請求項2】 人がいない状態の背景画像を更新する演
算手段が、連続する二つの画像間の差分を取る移動差分
であることを特徴とする請求項1の人数検出装置。
2. The number-of-people detection device according to claim 1, wherein the calculation means for updating the background image in the absence of a person is a moving difference for obtaining a difference between two consecutive images.
【請求項3】 人の数を検出する演算手段が、検出した
い画像と、予め保存してある人がいない画像との差分を
取る固定差分であることを特徴とする請求項1の人数検
出装置。
3. An apparatus for detecting the number of people according to claim 1, wherein the arithmetic means for detecting the number of people is a fixed difference that takes a difference between an image to be detected and an image in which no person is stored in advance. ..
【請求項4】 人の数を検出する演算手段が、連続する
二つの画像間の差分を取る移動差分であることを特徴と
する請求項1の人数検出装置。
4. An apparatus for detecting the number of people according to claim 1, wherein the arithmetic means for detecting the number of people is a moving difference that takes a difference between two consecutive images.
【請求項5】 人数を補正する手段が前記固定差分によ
る演算結果と、前記移動差分による演算結果とを比較
し、大きいほうの演算結果を選択することを特徴とする
請求項1の人数検出装置。
5. The number-of-people detector according to claim 1, wherein the means for correcting the number of people compares the calculation result by the fixed difference with the calculation result by the movement difference and selects the larger calculation result. ..
【請求項6】人数を補正する手段が、テレビカメラの設
置場所、あるいは設置環境によって前記固定差分による
演算手段か、もしくは前記移動差分による演算手段かの
どちらかの手段を選択できるようにしたことを特徴とす
る請求項1の人数検出装置。
6. The means for correcting the number of persons can select either the calculation means based on the fixed difference or the calculation means based on the movement difference depending on the installation location or installation environment of the television camera. The number-of-people detection device according to claim 1.
JP3225095A 1991-08-10 1991-08-10 Detector for number of persons Pending JPH0546732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3225095A JPH0546732A (en) 1991-08-10 1991-08-10 Detector for number of persons

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3225095A JPH0546732A (en) 1991-08-10 1991-08-10 Detector for number of persons

Publications (1)

Publication Number Publication Date
JPH0546732A true JPH0546732A (en) 1993-02-26

Family

ID=16823916

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3225095A Pending JPH0546732A (en) 1991-08-10 1991-08-10 Detector for number of persons

Country Status (1)

Country Link
JP (1) JPH0546732A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010109859A (en) * 2008-10-31 2010-05-13 Mitsubishi Electric Corp Monitoring image processing apparatus
KR20180008698A (en) * 2016-01-18 2018-01-24 주식회사 히타치 정보통신 엔지니어링 A moving object measurement system, and a method of specifying the number of persons in the area to be measured
JP2018151960A (en) * 2017-03-14 2018-09-27 キヤノン株式会社 Information processing apparatus, information processing method, and program
JP2021047710A (en) * 2019-09-19 2021-03-25 キヤノン株式会社 Image processing apparatus, image processing method, image processing system, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010109859A (en) * 2008-10-31 2010-05-13 Mitsubishi Electric Corp Monitoring image processing apparatus
KR20180008698A (en) * 2016-01-18 2018-01-24 주식회사 히타치 정보통신 엔지니어링 A moving object measurement system, and a method of specifying the number of persons in the area to be measured
JP2018151960A (en) * 2017-03-14 2018-09-27 キヤノン株式会社 Information processing apparatus, information processing method, and program
JP2021047710A (en) * 2019-09-19 2021-03-25 キヤノン株式会社 Image processing apparatus, image processing method, image processing system, and program

Similar Documents

Publication Publication Date Title
JP2633694B2 (en) Person detection device
JP3123587B2 (en) Moving object region extraction method using background subtraction
JP3083918B2 (en) Image processing device
US6141433A (en) System and method for segmenting image regions from a scene likely to represent particular objects in the scene
US7184585B2 (en) Object detection
JP3423861B2 (en) Method and apparatus for monitoring a moving object
KR20000071087A (en) Outdoor range finder
JP3545506B2 (en) Specific color area extraction method and specific color area removal method
KR101026778B1 (en) Vehicle image detection apparatus
JP2007180932A (en) Image sensor
JP2018107665A (en) Imaging apparatus, dirt detection system, and dirt detection method
JPH0546732A (en) Detector for number of persons
JP4740755B2 (en) Monitoring device using images
JPH06253208A (en) Lane recognition device
JP3230509B2 (en) Moving image processing device
TWI716049B (en) Method of determining foreground and background image
JPH08272926A (en) Detecting device for number of people
JP3682631B2 (en) Fire detection equipment
JP3626824B2 (en) Fire detection equipment
JP6565513B2 (en) Color correction device, color correction method, and computer program for color correction
JP2004274325A (en) Object extraction method by image pickup
JP6133700B2 (en) Image sensor
JP2692853B2 (en) Image blur detector
JP2003323621A (en) Image processor and protrusion detecting method for the image processor and its program
JP3001730B2 (en) Moving object detection method and apparatus