JP4848312B2 - Height estimating apparatus and height estimating method - Google Patents
Height estimating apparatus and height estimating method Download PDFInfo
- Publication number
- JP4848312B2 JP4848312B2 JP2007131977A JP2007131977A JP4848312B2 JP 4848312 B2 JP4848312 B2 JP 4848312B2 JP 2007131977 A JP2007131977 A JP 2007131977A JP 2007131977 A JP2007131977 A JP 2007131977A JP 4848312 B2 JP4848312 B2 JP 4848312B2
- Authority
- JP
- Japan
- Prior art keywords
- person
- pixel number
- vanishing point
- image
- distance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Length Measuring Devices By Optical Means (AREA)
Description
本発明は、撮影画像中の人物の身長を推定する身長推定装置および身長推定方法に関するものである。 The present invention relates to a height estimation device and a height estimation method for estimating the height of a person in a captured image.
従来、監視カメラで撮影された人物の身長推定が行われている。例えば、犯罪発生時には犯人の人物画像から迅速に犯人の身長を推定できれば、ユーザや警察に迅速な情報提供を行うことができる。 Conventionally, the height of a person photographed with a surveillance camera has been estimated. For example, if the height of the criminal can be quickly estimated from the person image of the criminal when a crime occurs, information can be promptly provided to the user and the police.
特許文献1には、監視領域をステレオカメラにより撮影し、領域内に侵入してくる人物の身長を算出する技術が開示されている。また、特許文献2には、車載カメラにより撮影された画像中の歩行者の見かけ上の身長と歩幅との比と、実際の歩行者の身長と歩幅との比が等しいことを利用し、車から歩行者までの距離を推定する技術が開示されている。 Japanese Patent Application Laid-Open No. 2004-228561 discloses a technique for photographing a monitoring area with a stereo camera and calculating the height of a person who enters the area. Patent Document 2 uses the fact that the ratio of the apparent height and the stride of the pedestrian in the image taken by the in-vehicle camera is equal to the ratio of the actual pedestrian's height and the stride. A technique for estimating the distance from a pedestrian to a pedestrian is disclosed.
しかしながら、特許文献1の技術では、ステレオカメラを使用する必要がある。したがって、カメラ間の同期やキャリブレーションなど煩雑な作業が必要となる。また、カメラ間の同期や距離計算に多くの計算コストがかかってしまう。 However, in the technique of Patent Document 1, it is necessary to use a stereo camera. Therefore, complicated operations such as synchronization between cameras and calibration are required. In addition, much calculation cost is required for synchronization between cameras and distance calculation.
本発明は、上記に鑑みてなされたものであって、単一カメラから得られる画像から精度良く人物の身長を推定することのできる身長推定装置および身長推定方法を提供することを目的とする。 The present invention has been made in view of the above, and an object of the present invention is to provide a height estimation device and a height estimation method that can accurately estimate the height of a person from an image obtained from a single camera.
上述した課題を解決し、目的を達成するために、請求項1にかかる発明は、身長推定装置であって、基準物体の実際の高さを示す基準長と、所定の位置に固定されたカメラから前記基準物体までの実際の距離を示す基準距離と、前記カメラにより撮影された基準物体画像中における前記基準物体の下端位置を示す基準座標と、前記基準物体画像中における前記基準長に相当する第1基準長画素数と、前記カメラを無限遠に遠ざけた場合に前記基準物体が位置する前記基準物体画像中の位置である消失点の位置を示す消失点座標とを保持する保持手段と、前記カメラから被写体として人物を含む人物画像を取得する人物画像取得手段と、前記人物画像取得手段が取得した前記人物画像中の人物の身長に相当する人物長画素数をカウントする人物長画素数特定手段と、前記人物画像取得手段が取得した前記人物画像中の人物の下端から、前記人物画像中の消失点までの人物消失点画素数をカウントする人物消失点画素数特定手段と、前記保持手段が保持する前記基準座標と前記消失点座標とに基づいて、前記基準物体画像中の前記基準物体の下端位置から前記消失点の位置までの基準消失点画素数を算出する基準消失点画素数算出手段と、前記人物消失点画素数特定手段により特定された前記人物消失点画素数と前記基準消失点画素数との比と、前記保持手段が保持する前記基準距離とに基づいて、前記カメラから前記人物までの実際の人物距離を算出する人物距離算出手段と、前記人物距離算出手段により算出された前記人物距離と、前記保持手段が保持する前記基準距離と、前記第1基準長画素数とに基づいて、前記人物距離に前記基準物体が配置された場合の前記基準長に相当する第2基準長画素数を算出する第2基準長画素数算出手段と、前記第2基準長画素数算出手段が算出した前記第2基準長画素数と前記人物長画素数特定手段により特定された前記人物長画素数との比と、前記保持手段が保持する前記基準長とに基づいて、前記人物の実際の身長を算出する身長算出手段とを備えたことを特徴とする。 In order to solve the above-described problems and achieve the object, the invention according to claim 1 is a height estimation device, wherein a reference length indicating an actual height of a reference object and a camera fixed at a predetermined position are provided. The reference distance indicating the actual distance from the reference object to the reference object, the reference coordinates indicating the lower end position of the reference object in the reference object image taken by the camera, and the reference length in the reference object image Holding means for holding a first reference long pixel number and vanishing point coordinates indicating a vanishing point position that is a position in the reference object image where the reference object is located when the camera is moved to infinity; Person image acquisition means for acquiring a person image including a person as a subject from the camera, and a person for counting the number of person length pixels corresponding to the height of the person in the person image acquired by the person image acquisition means Pixel number specifying means, person vanishing point pixel number specifying means for counting the number of person vanishing point pixels from the lower end of the person in the person image acquired by the person image acquiring means to the vanishing point in the person image; A reference vanishing point that calculates a reference vanishing point pixel number from the lower end position of the reference object to the vanishing point position in the reference object image based on the reference coordinates and the vanishing point coordinates held by the holding unit. Based on a ratio of the number of pixels calculating means, the number of person vanishing point pixels specified by the person vanishing point pixel number specifying means and the reference vanishing point pixel number, and the reference distance held by the holding means, A person distance calculating means for calculating an actual person distance from the camera to the person; the person distance calculated by the person distance calculating means; the reference distance held by the holding means; A second reference long pixel number calculating means for calculating a second reference long pixel number corresponding to the reference length when the reference object is disposed at the person distance based on the reference long pixel number; Based on the ratio between the second reference length pixel number calculated by the reference length pixel number calculation means and the person length pixel number specified by the person length pixel number specification means, and the reference length held by the holding means And a height calculating means for calculating the actual height of the person.
また、請求項2にかかる発明は、請求項1に記載の身長推定装置であって、前記基準長、前記基準距離、前記基準座標および前記消失点のうち少なくとも1つを外部から取得し、前記保持手段に保持させる設定手段をさらに備えたことを特徴とする。 The invention according to claim 2 is the height estimation device according to claim 1, wherein at least one of the reference length, the reference distance, the reference coordinates, and the vanishing point is acquired from the outside, It further comprises setting means for holding the holding means.
また、請求項3にかかる発明は、請求項1または2に記載の身長推定装置であって、前記基準消失点画素数と前記基準距離の反比例の関係における比例定数を算出する比例定数算出手段をさらに備え、人物距離算出手段は、前記比例定数と、前記人物消失点画素数とに基づいて、前記人物距離を算出することを特徴とする。 The invention according to claim 3 is the height estimation apparatus according to claim 1 or 2, further comprising: a proportionality constant calculating means for calculating a proportionality constant in an inversely proportional relationship between the reference vanishing point pixel number and the reference distance. In addition, the person distance calculating means calculates the person distance based on the proportionality constant and the person vanishing point pixel count.
また、請求項4にかかる発明は、請求項1から3のいずれか一項に記載の身長推定装置であって、前記カメラから前記人物を含まない背景画像を取得する背景画像取得手段と、前記背景画像取得手段が取得した前記背景画像と前記人物画像取得手段が取得した前記人物画像とに基づいて、前記人物画像中から人物領域を抽出する人物領域抽出手段とをさらに備え、前記人物長画素数特定手段は、前記人物領域抽出手段により抽出された前記人物領域において前記人物長画素数をカウントし、前記人物消失点画素数特定手段は、前記人物領域抽出手段により抽出された前記人物領域の下端から前記消失点までの前記人物消失点画素数をカウントすることを特徴とする。 The invention according to claim 4 is the height estimation device according to any one of claims 1 to 3, wherein a background image acquisition unit that acquires a background image not including the person from the camera; A person area extraction unit that extracts a person area from the person image based on the background image acquired by the background image acquisition unit and the person image acquired by the person image acquisition unit; The number specifying means counts the number of person-length pixels in the person area extracted by the person area extracting means, and the person vanishing point pixel number specifying means is configured to count the person area extracted by the person area extracting means. The person vanishing point pixel count from the lower end to the vanishing point is counted.
また、請求項5にかかる発明は、請求項1から3のいずれか一項に記載の身長推定装置であって、前記人物画像取得手段は、複数の前記人物画像を取得し、前記人物画像取得手段が取得した複数の前記人物画像の差分に基づいて、前記人物画像中から人物領域を抽出する人物領域抽出手段をさらに備え、前記人物長画素数特定手段は、前記人物領域抽出手段により抽出された前記人物領域において前記人物長画素数を特定し、前記人物消失点画素数特定手段は、前記人物領域抽出手段により抽出された前記人物領域の下端から前記消失点までの前記人物消失点画素数を特定することを特徴とする。 The invention according to claim 5 is the height estimation apparatus according to any one of claims 1 to 3, wherein the person image acquisition unit acquires a plurality of the person images and acquires the person images. And a person area extracting means for extracting a person area from the person image based on a difference between the plurality of person images acquired by the means, wherein the person length pixel number specifying means is extracted by the person area extracting means. The person length pixel number is specified in the person area, and the person vanishing point pixel number specifying means is the person vanishing point pixel number from the lower end of the person area extracted by the person area extracting means to the vanishing point. It is characterized by specifying.
また、請求項6にかかる発明は、請求項1から5のいずれか一項に記載の身長推定装置であって、前記カメラから、カメラの奥行き方向に2本の直線を有し、かつ縦方向の直線を有する基準物体を被写体とする基準物体画像を取得する基準物体画像取得手段と、前記基準物体画像取得手段が取得した前記基準物体画像に基づいて、前記基準距離、前記基準座標、前記第1基準長画素数および前記消失点座標を特定するパラメータ特定手段とをさらに備え、前記保持手段は、前記パラメータ特定手段により特定された前記基準距離、前記基準座標、前記第1基準長画素数および前記消失点座標を保持することを特徴とする。 The invention according to claim 6 is the height estimation device according to any one of claims 1 to 5, wherein the camera has two straight lines in the depth direction of the camera from the camera, and the vertical direction. A reference object image acquiring means for acquiring a reference object image having a reference object having a straight line as a subject, and based on the reference object image acquired by the reference object image acquiring means, the reference distance, the reference coordinates, Parameter specifying means for specifying one reference length pixel number and the vanishing point coordinates, and the holding means includes the reference distance, the reference coordinates, the first reference length pixel number specified by the parameter specification means, and The vanishing point coordinates are retained.
また、請求項7にかかる発明は、身長推定方法であって、人物の身長を推定する身長推定装置で実行される身長推定方法であって、前記身長推定装置は、基準物体の実際の高さを示す基準長と、所定の位置に固定されたカメラから前記基準物体までの実際の距離を示す基準距離と、前記カメラにより撮影された基準物体画像中における前記基準物体の下端位置を示す基準座標と、前記基準物体画像中における前記基準長に相当する第1基準長画素数と、前記カメラを無限遠に遠ざけた場合に前記基準物体が位置する前記基準物体画像中の位置である消失点の位置を示す消失点座標とを保持する保持手段を備え、人物画像取得手段が、前記カメラから被写体として人物を含む人物画像を取得する人物画像取得ステップと、人物長画素数特定手段が、前記人物画像取得ステップにおいて取得した前記人物画像中の人物の身長に相当する人物長画素数をカウントする人物長画素数特定ステップと、人物消失点画素数特定手段が、前記人物画像取得ステップにおいて取得した前記人物画像中の人物の下端から、前記人物画像中の消失点までの人物消失点画素数をカウントする人物消失点画素数特定ステップと、基準消失点画素数算出手段が、前記保持手段が保持する前記基準座標と前記消失点座標とに基づいて、前記基準物体画像中の前記基準物体の下端位置から前記消失点の位置までの基準消失点画素数を算出する基準消失点画素数算出ステップと、人物距離算出手段が、前記人物消失点画素数特定ステップにおいて特定された前記人物消失点画素数と前記基準消失点画素数との比と、前記保持手段が保持する前記基準距離とに基づいて、前記カメラから前記人物までの実際の人物距離を算出する人物距離算出ステップと、第2基準長画素数算出手段が、前記人物距離算出ステップにおいて算出された前記人物距離と、前記保持手段が保持する前記基準距離と、前記第1基準長画素数とに基づいて、前記人物距離に前記基準物体が配置された場合の前記基準長に相当する第2基準長画素数を算出する第2基準長画素数算出ステップと、身長算出手段が、前記第2基準長画素数算出ステップにおいて算出した前記第2基準長画素数と前記人物長画素数特定ステップにおいて特定された前記人物長画素数との比と、前記保持手段が保持する前記基準長とに基づいて、前記人物の実際の身長を算出する身長算出ステップとを有することを特徴とする。 The invention according to claim 7 is a height estimation method, which is executed by a height estimation device that estimates the height of a person, wherein the height estimation device is configured to determine an actual height of a reference object. , A reference distance indicating the actual distance from the camera fixed at a predetermined position to the reference object, and a reference coordinate indicating the lower end position of the reference object in the reference object image captured by the camera And a first reference length pixel number corresponding to the reference length in the reference object image, and a vanishing point that is a position in the reference object image where the reference object is located when the camera is moved to infinity. A person image acquisition step of acquiring a person image including a person as a subject from the camera; and a person length pixel number specifying unit. The person length pixel number specifying step for counting the number of person length pixels corresponding to the height of the person in the person image acquired in the person image acquisition step, and the person vanishing point pixel number specifying means in the person image acquisition step The person vanishing point pixel number specifying step for counting the number of person vanishing point pixels from the lower end of the person in the acquired person image to the vanishing point in the person image, and the reference vanishing point pixel number calculating means are the holding means. Calculating the reference vanishing point pixel number from the lower end position of the reference object to the vanishing point position in the reference object image based on the reference coordinates and the vanishing point coordinates held by the And a person distance calculation means, a ratio of the person vanishing point pixel number specified in the person vanishing point pixel number specifying step and the reference vanishing point pixel number; A person distance calculating step for calculating an actual person distance from the camera to the person based on the reference distance held by the holding means, and a second reference long pixel number calculating means calculated in the person distance calculating step. Based on the measured person distance, the reference distance held by the holding means, and the first reference length pixel number, a first length corresponding to the reference length when the reference object is arranged at the person distance. A second reference long pixel number calculating step for calculating two reference long pixel numbers, and a height calculating means calculating the second reference long pixel number and the person long pixel number specifying step calculated in the second reference long pixel number calculating step. A height calculating step of calculating an actual height of the person based on the ratio with the number of pixels of the person length specified in step 1 and the reference length held by the holding means. Features.
請求項1にかかる発明によれば、実際の高さが既知である基準物体の撮影画像と、人物画像とを利用し、さらに人物の下端位置から消失点までの長さを利用することにより、撮影された人物の実際の身長を、煩雑な操作を行うことなく精度よく推定することができるという効果を奏する。 According to the invention of claim 1, by using a captured image of a reference object whose actual height is known and a person image, and further using a length from the lower end position of the person to the vanishing point, There is an effect that the actual height of the photographed person can be accurately estimated without performing a complicated operation.
以下に添付図面を参照して、この発明にかかる身長推定装置および身長推定方法の最良な実施の形態を詳細に説明する。 Exemplary embodiments of a height estimation apparatus and a height estimation method according to the present invention will be explained below in detail with reference to the accompanying drawings.
(第1の実施の形態)
図1は、第1の実施の形態にかかる監視システム1の全体構成を示す図である。監視システム1は、身長推定装置10と、監視カメラ20とを備えている。監視カメラ20は、所定の位置に地面に対して水平に設置されており、監視領域の動画像を撮影する。
(First embodiment)
FIG. 1 is a diagram illustrating an overall configuration of a monitoring system 1 according to the first embodiment. The monitoring system 1 includes a
身長推定装置10は、人物を被写体として含む人物画像中の人物の身長を推定する。身長推定装置10は、このための機能構成として、パラメータ設定部100と、パラメータ保持部102と、画像取得部110と、画像保持部112と、人物領域抽出部120と、人物距離推定部122と、身長推定部124とを備えている。
The
パラメータ設定部100は、ユーザからの指示にしたがいパラメータ保持部102に各種パラメータを設定する。パラメータ保持部102に設定されるパラメータとしては以下に示す5つがある。
基準長 Hb
基準距離 Db
基準座標Qb(Xb,Yb)
第1基準長画素数 Pb1
消失点座標 VP(Xvp,Yvp)
The
Reference length H b
Reference distance D b
Reference coordinates Q b (X b , Y b )
First reference long pixel count P b1
Vanishing point coordinates VP (X vp , Y vp )
これらのパラメータは、いずれも身長推定装置10における人物の身長推定の際に基準として利用される基準物体に関する情報である。基準物体とは、その高さおよび配置位置が既知の物体である。図2に示すように、基準長(Hb)とは、基準物体200の実際の高さである。基準距離(Db)とは、監視カメラ20から基準物体200までの実際の距離である。
These parameters are all information relating to a reference object used as a reference when estimating the height of a person in the
また、図3に示すように、基準座標(Qb)とは、監視カメラ20により撮影された基準物体画像210中の基準物体212の下端位置の座標である。第1基準長画素数(Pb1)とは、基準物体画像210中の基準物体212の高さに相当する画素数である。消失点座標(VP)とは、基準物体画像210中の消失点位置の座標である。ここで、消失点とは、監視カメラ20から被写体を無限遠まで遠ざけた際に被写体が収束していく点のことである。
As shown in FIG. 3, the reference coordinates (Q b ) are coordinates of the lower end position of the
画像取得部110は、監視カメラ20より毎フレームの画像を取得し、画像保持部112に格納する。なお、監視カメラ20により撮影された動画像中のフレームには、人物を被写体として含む人物画像の他、人物を含まない背景画像が含まれている。
The
人物領域抽出部120は、画像から人物領域を抽出する。図4に示すように、人物領域312とは、画像310内の領域であって、人物の外形に接する矩形領域である。人物領域抽出部120は、具体的には、人物画像と背景画像において差分を算出することにより、人物領域を抽出する。
The person
他の例としては、人物領域抽出部120は、フレーム間差分を算出することにより、人物領域を抽出してもよい。このように、人物領域抽出部120は、人物の影など人物以外のものを包含することなく人物部分のみを精度よく包含する矩形領域を抽出可能な技術により人物領域を抽出できればよく、その方法は本例に限定されるものではない。
As another example, the person
人物距離推定部122は、パラメータ保持部102に保持されているパラメータに基づいて、人物距離(Dp)を推定する。図4に示すように、人物距離(Dp)は、人物領域抽出部120により抽出された人物領域と監視カメラ20との間の距離である。身長推定部124は、パラメータ保持部102に保持されているパラメータ、人物画像中の人物の身長に相当する人物長画素数(Pp)および人物距離推定部122により推定された人物距離(Dp)に基づいて、人物画像中の人物の実際の身長(Hp)を推定する。
The person
図5は、身長推定装置10による身長推定処理を示すフローチャートである。まず、画像取得部110は、背景画像を取得する(ステップS100)。次に、パラメータ設定部100は、ユーザによって入力された各種パラメータをパラメータ保持部102に設定する(ステップS102)。なお、パラメータ保持部102に既に各種パラメータが保持されている場合には、この処理は不要である。
FIG. 5 is a flowchart showing the height estimation process by the
次に、画像取得部110が画像を取得するまで待機し(ステップS104,No)、画像を取得すると(ステップS104,Yes)、人物領域抽出部120は、画像中から人物領域を抽出する(ステップS106)。さらに、人物領域中の人物の身長に相当する画素数である人物長画素数(Pp)をカウントする。ここで、人物領域抽出部120は、人物長画素数特定手段に相当する。
Next, the process waits until the
人物領域が抽出された場合、すなわち監視領域内に人物が存在する場合には(ステップS108,Yes)、人物距離推定部122は、人物距離を推定する(ステップS110)。次に、身長推定部124は、人物の実際の身長を推定する(ステップS112)。なお、ステップS108において、人物領域が抽出されなかった場合、すなわち監視領域内に人物が存在しない場合には(ステップS108,No)、ステップS104に戻り、次の画像を取得する。
When the person area is extracted, that is, when a person is present in the monitoring area (Yes in step S108), the person
人物距離推定処理(ステップS110)において、人物距離推定部122は、実空間における監視カメラ20から被写体までの距離(D)と、画像中における被写体の高さに相当する画素数(P)が式(1)に示すように反比例の関係にあることを利用する。なお、式(1)において、aは比例定数である。
式(2)に示すように、式(1)にパラメータ保持部102に保持されている基準距離(Db)および第1基準画素数(Pb1)を代入することにより係数abを算出することが可能である。
被写体の高さに相当する画素数(P)がわかれば、この係数abと式(1)から被写体までの距離(D)を算出することが可能である。ただし、式(2)により得られた係数abは、基準物体と同じ高さの被写体についての係数であり、基準物体と高さの異なる人物については係数abと人物の高さに相当する画素数(Pp)からは、人物距離Dpを算出することはできない。 If the number of pixels (P) corresponding to the height of the subject is known, it is possible to calculate the distance (D) to the subject from this coefficient a b and equation (1). However, the coefficient a b obtained by Expression (2) is a coefficient for a subject having the same height as the reference object, and corresponds to the coefficient a b and the person's height for a person having a height different from that of the reference object. The person distance Dp cannot be calculated from the number of pixels (P p ).
一方、画像中の消失点から被写体の下端までの垂直方向の距離に相当する画素数(縦画素数)は、被写体の高さによらず一定であることがわかっている。そこで、人物距離(Dp)を算出する際には、図6に示す消失点から基準物体の下端までの縦画素数、すなわち基準消失点画素数(Pvb)と、消失点から人物の下端までの縦画素数、すなわち人物消失点画素数(Pvp)とを利用する。 On the other hand, it is known that the number of pixels (number of vertical pixels) corresponding to the vertical distance from the vanishing point in the image to the lower end of the subject is constant regardless of the height of the subject. Therefore, when calculating the person distance (D p ), the number of vertical pixels from the vanishing point to the lower end of the reference object shown in FIG. 6, that is, the reference vanishing point pixel number (P vb ), and the lower end of the person from the vanishing point. Up to the number of vertical pixels, that is, the number of human vanishing point pixels (P vp ).
式(3)に示すように人物消失点画素数(Pvp)についても式(1)の関係が成立する。
なお、本実施の形態にかかる人物距離推定部122は、人物消失点特定手段、基準消失点画素数算出手段および人物距離算出手段に相当する。
The person
身長推定処理(ステップS112)において、身長推定部124は、人物距離推定部122により既知となった人物距離(Dp)を利用して、人物の実際の身長(Hp)を推定する。具体的には、まず、基準物体が人物距離(Dp)に位置する場合における基準物体の縦画素数、すなわち第2基準長画素数(P(D))を求める。第2基準長画素数(P(D))は、式(2)より式(5)で得られる。
なお、本実施の形態にかかる身長推定部124は、人物長画素数特定手段および第2基準長画素数特定手段および身長算出手段に相当する。
The
図7は、実施の形態1にかかる身長推定装置10のハードウェア構成を示す図である。身長推定装置10は、ハードウェア構成として、身長推定装置10における身長推定処理を実行する身長推定プログラムなどが格納されているROM52と、ROM52内のプログラムに従って身長推定装置10の各部を制御するCPU51と、身長推定装置10の制御に必要な種々のデータを記憶するRAM53と、ネットワークに接続して通信を行う通信I/F57と、各部を接続するバス62とを備えている。
FIG. 7 is a diagram illustrating a hardware configuration of the
先に述べた身長推定装置10における身長推定プログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フロッピー(登録商標)ディスク(FD)、DVD等のコンピュータで読み取り可能な記録媒体に記録されて提供されてもよい。
The above-described height estimation program in the
この場合には、身長推定プログラムは、身長推定装置10において上記記録媒体から読み出して実行することにより主記憶装置上にロードされ、上記ソフトウェア構成で説明した各部が主記憶装置上に生成されるようになっている。
In this case, the height estimation program is loaded onto the main storage device by being read from the recording medium and executed by the
また、本実施の形態の身長推定プログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。 Further, the height estimation program according to the present embodiment may be provided by being stored on a computer connected to a network such as the Internet and downloaded via the network.
以上、本発明を実施の形態を用いて説明したが、上記実施の形態に多様な変更または改良を加えることができる。 As described above, the present invention has been described using the embodiment, but various changes or improvements can be added to the above embodiment.
(第2の実施の形態)
図8は、第2の実施の形態にかかる監視システム2の全体構成を示す図である。監視システム2は、身長推定装置12と、監視カメラ22とを備えている。本実施の形態にかかる身長推定装置12は、第1の実施の形態にかかる身長推定装置10の機能構成に加えてパラメータ特定部130をさらに備えている。
(Second Embodiment)
FIG. 8 is a diagram illustrating an overall configuration of the monitoring system 2 according to the second embodiment. The monitoring system 2 includes a
監視カメラ22は、基準物体を被写体として含む基準物体画像を撮影する。画像取得部110は、監視カメラ22から基準物体画像を取得する。パラメータ特定部130は、基準物体画像を処理することにより、基準距離、基準座標、第1基準長画素数および消失点座標を特定する。そして、これらのパラメータをパラメータ保持部102に格納する。
The monitoring
図9は、監視カメラ22により撮影された基準物体画像400を示す図である。基準物体410は、1本の直線状の横治具と、横治具の両端それぞれから互いに垂直な方向に延びる2本の直線状の治具とを有している。この基準物体410の横治具と監視カメラ22により撮影された画像の横方向とが垂直になり、横治具から伸びる互いに平行な2本の2組のうち1組が監視カメラ22により撮影された画像の奥行き方向に延び、残りの1組が監視カメラ22により撮影された画像の縦方向に延びるように設置しておく。監視カメラ22よりこの基準物体410を撮影することにより基準物体画像400を得る。
FIG. 9 is a diagram showing a
図10は、第2の実施の形態にかかる身長推定装置12による身長推定処理を示すフローチャートである。第2の実施の形態にかかる身長推定処理においては、背景画像を取得した後(ステップS100)、図9に示すように基準物体を設置する(ステップS200)。次に、画像取得部110は、監視カメラ22により撮影された基準物体画像を取得する(ステップS202)。次に、パラメータ特定部130は、基準物体画像に基づいて、各種パラメータを特定する(ステップS204)。次に、パラメータ設定処理(ステップS102)に進む。パラメータ設定処理(ステップS102)以降の処理は、第1の実施の形態にかかる処理と同様である。
FIG. 10 is a flowchart illustrating the height estimation process performed by the
図11は、パラメータ特定処理(ステップS204)における詳細な処理を示すフローチャートである。パラメータ特定処理(ステップS204)においては、パラメータ特定部130は、まず基準物体画像と背景画像との差分を算出し(ステップS300)、さらに2値化処理を施す(ステップS302)。これにより、図12に示すような2値画像を得る。2値画像から例えばハフ変換などにより直線成分を検出する(ステップS304)。これにより、各治具に相当する直線を得ることができる。
FIG. 11 is a flowchart showing detailed processing in the parameter identification processing (step S204). In the parameter specifying process (step S204), the
次に、パラメータ特定部130は、図13に示すように監視カメラ22の奥行き方向に延びる2つの直線成分の延長線の交点を消失点(VP)として特定し、消失点座標を得る(ステップS306)。次に、パラメータ特定部130は、図14に示すように、2値画像の横方向の各位置において得られた検知画素(図12における黒画素数)の画素数を累積させる。この累積分布に基づいて、端点(A1,A2,B1,B2)を検出する(ステップS308)。図14に示すように、2本の縦治具の位置において検知画素数が多くなる。そこで、パラメータ特定部130は、検知画素数の多い位置を2本の縦治具の位置として特定する。さらに、この縦治具の上端位置(A1,B1)および下端位置(A2,B2)を特定する。2本の縦治具のうち任意の1本の縦治具を用いてパラメータを特定する。
Next, as shown in FIG. 13, the
次に、パラメータ特定部130は、各種パラメータを特定する(ステップS310)。具体的には、上端位置(A1)と下端位置(A2)の間の距離を第1基準長画素数(Pb1)として特定し、下端位置(A2)の座標を基準座標(Qb)として特定する。
Next, the
パラメータ特定部130は、さらに基準距離(Db)を算出する。具体的には、図15に示すように、奥行き方向に延びる2本の治具のうちA2,B2以外の端点をA3,B3として検出する。さらに図16に示すように、A3と画像における横方向の位置が等しい点であって、かつA1と消失点(VP)を通る直線上の点をA4として検出する。同様に、B3と横方向の位置が等しく、かつB1と消失点(VP)を通る直線上の点をB4として検出する。なお、基準距離(Db)を算出するためには、A1〜A4またはB1〜B4のいずれかを検出すればよい。以下、A1〜A4を利用して基準距離を算出する場合について説明する。
The
基準距離(Db)における第1基準長画素数(Pb)は、A1からA2までの画素数に相当する。したがって、式(7)が成立する。
パラメータ特定部130は、以上の処理により得られた各パラメータをパラメータ保持部102に格納する。
The
なお、第2の実施の形態にかかる監視システム2のこれ以外の構成および処理は、第1の実施の形態にかかる監視システム1の構成および処理と同様である。 The remaining configuration and processing of the monitoring system 2 according to the second embodiment are the same as the configuration and processing of the monitoring system 1 according to the first embodiment.
1,2 監視システム
10,12 身長推定装置
20,22 監視カメラ
51 CPU
52 ROM
53 RAM
57 通信I/F
62 バス
100 パラメータ設定部
102 パラメータ保持部
110 画像取得部
112 画像保持部
120 人物領域抽出部
122 人物距離推定部
124 身長推定部
130 パラメータ特定部
1, 2
52 ROM
53 RAM
57 Communication I / F
62
Claims (7)
前記カメラから被写体として人物を含む人物画像を取得する人物画像取得手段と、
前記人物画像取得手段が取得した前記人物画像中の人物の身長に相当する人物長画素数をカウントする人物長画素数特定手段と、
前記人物画像取得手段が取得した前記人物画像中の人物の下端から、前記人物画像中の消失点までの人物消失点画素数をカウントする人物消失点画素数特定手段と、
前記保持手段が保持する前記基準座標と前記消失点座標とに基づいて、前記基準物体画像中の前記基準物体の下端位置から前記消失点の位置までの基準消失点画素数を算出する基準消失点画素数算出手段と、
前記人物消失点画素数特定手段により特定された前記人物消失点画素数と前記基準消失点画素数との比と、前記保持手段が保持する前記基準距離とに基づいて、前記カメラから前記人物までの実際の人物距離を算出する人物距離算出手段と、
前記人物距離算出手段により算出された前記人物距離と、前記保持手段が保持する前記基準距離と、前記第1基準長画素数とに基づいて、前記人物距離に前記基準物体が配置された場合の前記基準長に相当する第2基準長画素数を算出する第2基準長画素数算出手段と、
前記第2基準長画素数算出手段が算出した前記第2基準長画素数と前記人物長画素数特定手段により特定された前記人物長画素数との比と、前記保持手段が保持する前記基準長とに基づいて、前記人物の実際の身長を算出する身長算出手段と
を備えたことを特徴とする身長推定装置。 A reference length indicating an actual height of the reference object, a reference distance indicating an actual distance from the camera fixed at a predetermined position to the reference object, and the reference object in the reference object image photographed by the camera A reference coordinate indicating the lower end position of the image, a first reference length pixel number corresponding to the reference length in the reference object image, and the reference object image where the reference object is located when the camera is moved to infinity. Holding means for holding the vanishing point coordinates indicating the position of the vanishing point which is the position of
Person image acquisition means for acquiring a person image including a person as a subject from the camera;
Person length pixel number specifying means for counting the number of person length pixels corresponding to the height of the person in the person image acquired by the person image acquisition means;
Person vanishing point pixel number specifying means for counting the number of person vanishing point pixels from the lower end of the person in the person image acquired by the person image acquiring means to the vanishing point in the person image;
A reference vanishing point that calculates a reference vanishing point pixel number from the lower end position of the reference object to the vanishing point position in the reference object image based on the reference coordinates and the vanishing point coordinates held by the holding unit. Pixel number calculating means;
From the camera to the person based on the ratio of the person vanishing point pixel number specified by the person vanishing point pixel number specifying means and the reference vanishing point pixel number and the reference distance held by the holding means. Human distance calculation means for calculating the actual human distance of
When the reference object is arranged at the person distance based on the person distance calculated by the person distance calculation unit, the reference distance held by the holding unit, and the first reference long pixel number A second reference length pixel number calculating means for calculating a second reference length pixel number corresponding to the reference length;
The ratio between the second reference length pixel number calculated by the second reference length pixel number calculation means and the person length pixel number specified by the person length pixel number specifying means and the reference length held by the holding means And a height calculating means for calculating the actual height of the person based on the above.
人物距離算出手段は、前記比例定数と、前記人物消失点画素数とに基づいて、前記人物距離を算出することを特徴とする請求項1または2に記載の身長推定装置。 Proportional constant calculating means for calculating a proportionality constant in an inversely proportional relationship between the reference vanishing point pixel number and the reference distance,
The height estimation apparatus according to claim 1, wherein the person distance calculation unit calculates the person distance based on the proportionality constant and the number of person vanishing point pixels.
前記背景画像取得手段が取得した前記背景画像と前記人物画像取得手段が取得した前記人物画像とに基づいて、前記人物画像中から人物領域を抽出する人物領域抽出手段と
をさらに備え、
前記人物長画素数特定手段は、前記人物領域抽出手段により抽出された前記人物領域において前記人物長画素数をカウントし、
前記人物消失点画素数特定手段は、前記人物領域抽出手段により抽出された前記人物領域の下端から前記消失点までの前記人物消失点画素数をカウントすることを特徴とする請求項1から3のいずれか一項に記載の身長推定装置。 Background image acquisition means for acquiring a background image not including the person from the camera;
A person area extracting means for extracting a person area from the person image based on the background image acquired by the background image acquiring means and the person image acquired by the person image acquiring means;
The person length pixel number specifying means counts the person length pixel number in the person area extracted by the person area extraction means,
4. The person vanishing point pixel number specifying unit counts the number of person vanishing point pixels from the lower end of the person region extracted by the person region extracting unit to the vanishing point. The height estimation apparatus according to any one of the above.
前記人物画像取得手段が取得した複数の前記人物画像の差分に基づいて、前記人物画像中から人物領域を抽出する人物領域抽出手段をさらに備え、
前記人物長画素数特定手段は、前記人物領域抽出手段により抽出された前記人物領域において前記人物長画素数をカウントし、
前記人物消失点画素数特定手段は、前記人物領域抽出手段により抽出された前記人物領域の下端から前記消失点までの前記人物消失点画素数をカウントすることを特徴とする請求項1から3のいずれか一項に記載の身長推定装置。 The person image acquisition means acquires a plurality of the person images,
Further comprising a person area extracting means for extracting a person area from the person image based on the difference between the plurality of person images acquired by the person image acquiring means;
The person length pixel number specifying means counts the person length pixel number in the person area extracted by the person area extraction means,
4. The person vanishing point pixel number specifying unit counts the number of person vanishing point pixels from the lower end of the person region extracted by the person region extracting unit to the vanishing point. The height estimation apparatus according to any one of the above.
前記基準物体画像取得手段が取得した前記基準物体画像に基づいて、前記基準距離、前記基準座標、前記第1基準長画素数および前記消失点座標を特定するパラメータ特定手段と
をさらに備え、
前記保持手段は、前記パラメータ特定手段により特定された前記基準距離、前記基準座標、前記第1基準長画素数および前記消失点座標を保持することを特徴とする請求項1から5のいずれか一項に記載の身長推定装置。 Reference object image acquisition means for acquiring, from the camera, a reference object image having two straight lines in the camera depth direction and a reference object having a vertical straight line as a subject;
Parameter specifying means for specifying the reference distance, the reference coordinates, the first reference long pixel number, and the vanishing point coordinates based on the reference object image acquired by the reference object image acquisition means;
The said holding | maintenance means hold | maintains the said reference distance specified by the said parameter specific | specification means, the said reference coordinate, the said 1st reference | standard long pixel number, and the said vanishing point coordinate. The height estimation apparatus according to item.
前記身長推定装置は、基準物体の実際の高さを示す基準長と、所定の位置に固定されたカメラから前記基準物体までの実際の距離を示す基準距離と、前記カメラにより撮影された基準物体画像中における前記基準物体の下端位置を示す基準座標と、前記基準物体画像中における前記基準長に相当する第1基準長画素数と、前記カメラを無限遠に遠ざけた場合に前記基準物体が位置する前記基準物体画像中の位置である消失点の位置を示す消失点座標とを保持する保持手段を備え、
人物画像取得手段が、前記カメラから被写体として人物を含む人物画像を取得する人物画像取得ステップと、
人物長画素数特定手段が、前記人物画像取得ステップにおいて取得した前記人物画像中の人物の身長に相当する人物長画素数をカウントする人物長画素数特定ステップと、
人物消失点画素数特定手段が、前記人物画像取得ステップにおいて取得した前記人物画像中の人物の下端から、前記人物画像中の消失点までの人物消失点画素数をカウントする人物消失点画素数特定ステップと、
基準消失点画素数算出手段が、前記保持手段が保持する前記基準座標と前記消失点座標とに基づいて、前記基準物体画像中の前記基準物体の下端位置から前記消失点の位置までの基準消失点画素数を算出する基準消失点画素数算出ステップと、
人物距離算出手段が、前記人物消失点画素数特定ステップにおいて特定された前記人物消失点画素数と前記基準消失点画素数との比と、前記保持手段が保持する前記基準距離とに基づいて、前記カメラから前記人物までの実際の人物距離を算出する人物距離算出ステップと、
第2基準長画素数算出手段が、前記人物距離算出ステップにおいて算出された前記人物距離と、前記保持手段が保持する前記基準距離と、前記第1基準長画素数とに基づいて、前記人物距離に前記基準物体が配置された場合の前記基準長に相当する第2基準長画素数を算出する第2基準長画素数算出ステップと、
身長算出手段が、前記第2基準長画素数算出ステップにおいて算出した前記第2基準長画素数と前記人物長画素数特定ステップにおいて特定された前記人物長画素数との比と、前記保持手段が保持する前記基準長とに基づいて、前記人物の実際の身長を算出する身長算出ステップと
を有することを特徴とする身長推定方法。 A height estimation method executed by a height estimation device that estimates the height of a person,
The height estimation device includes a reference length indicating an actual height of a reference object, a reference distance indicating an actual distance from the camera fixed to a predetermined position to the reference object, and a reference object photographed by the camera Reference coordinates indicating the lower end position of the reference object in the image, a first reference length pixel number corresponding to the reference length in the reference object image, and the reference object position when the camera is moved to infinity Holding means for holding vanishing point coordinates indicating the position of the vanishing point that is a position in the reference object image,
A person image acquisition means for acquiring a person image including a person as a subject from the camera;
A person length pixel number specifying means for counting a person length pixel number corresponding to the height of the person in the person image acquired in the person image acquisition step;
The person vanishing point pixel number specifying means counts the number of person vanishing point pixels from the lower end of the person in the person image acquired in the person image acquisition step to the vanishing point in the person image. Steps,
The reference vanishing point pixel number calculating means, based on the reference coordinates and the vanishing point coordinates held by the holding means, a reference vanishing point from the lower end position of the reference object in the reference object image to the vanishing point position. A reference vanishing point pixel number calculating step for calculating a point pixel number;
Based on the ratio between the person vanishing point pixel number specified in the person vanishing point pixel number specifying step and the reference vanishing point pixel number and the reference distance held by the holding means, A person distance calculating step of calculating an actual person distance from the camera to the person;
Based on the person distance calculated in the person distance calculating step, the reference distance held by the holding means, and the first reference long pixel number, the second reference long pixel number calculating means A second reference length pixel number calculating step of calculating a second reference length pixel number corresponding to the reference length when the reference object is arranged in
A ratio of the second reference length pixel number calculated by the height calculation means in the second reference length pixel number calculation step and the person length pixel number specified in the person length pixel number specification step; And a height calculating step of calculating an actual height of the person based on the reference length to be held.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007131977A JP4848312B2 (en) | 2007-05-17 | 2007-05-17 | Height estimating apparatus and height estimating method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007131977A JP4848312B2 (en) | 2007-05-17 | 2007-05-17 | Height estimating apparatus and height estimating method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008286638A JP2008286638A (en) | 2008-11-27 |
JP4848312B2 true JP4848312B2 (en) | 2011-12-28 |
Family
ID=40146497
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007131977A Active JP4848312B2 (en) | 2007-05-17 | 2007-05-17 | Height estimating apparatus and height estimating method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4848312B2 (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7853038B2 (en) * | 2007-01-04 | 2010-12-14 | Industrial Technology Research Institute | Systems and methods for object dimension estimation |
JP2010237872A (en) * | 2009-03-30 | 2010-10-21 | Sogo Keibi Hosho Co Ltd | Device, method and program for detecting person area |
JP2017174343A (en) | 2016-03-25 | 2017-09-28 | 富士ゼロックス株式会社 | Customer attribute extraction device and customer attribute extraction program |
TWI621827B (en) * | 2016-10-07 | 2018-04-21 | 萬里科技股份有限公司 | Method of length measurement for 2d photography |
JP7107697B2 (en) * | 2018-03-01 | 2022-07-27 | 清水建設株式会社 | POSITION DETECTION SYSTEM AND POSITION DETECTION METHOD |
JP7224832B2 (en) * | 2018-10-01 | 2023-02-20 | キヤノン株式会社 | Information processing device, information processing method, and program |
WO2021247228A1 (en) | 2020-06-03 | 2021-12-09 | Google Llc | Depth estimation based on object bottom position |
CN112464747B (en) * | 2020-11-10 | 2024-07-23 | 广州富港生活智能科技有限公司 | Height detection method and device based on image acquisition equipment |
CN112101389B (en) * | 2020-11-17 | 2021-02-02 | 支付宝(杭州)信息技术有限公司 | Method and device for measuring warehoused goods |
WO2022168252A1 (en) * | 2021-02-05 | 2022-08-11 | 日本電信電話株式会社 | Body height estimation method, body height estimation device, and program |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09318351A (en) * | 1996-05-24 | 1997-12-12 | Kokusai Electric Co Ltd | Distance survey apparatus and size measuring method of object |
JP2000098081A (en) * | 1998-09-17 | 2000-04-07 | Nuclear Fuel Ind Ltd | Fuel rod gap measuring method |
JP2002042142A (en) * | 2000-07-28 | 2002-02-08 | Matsushita Electric Ind Co Ltd | Distance measurement device and monitoring device using it |
JP2003296745A (en) * | 2002-03-29 | 2003-10-17 | Casio Comput Co Ltd | Image processor, photographing device, image processing system and program |
JP4291048B2 (en) * | 2003-06-09 | 2009-07-08 | ティーオーエー株式会社 | Imaging device |
JP4466065B2 (en) * | 2003-12-18 | 2010-05-26 | カシオ計算機株式会社 | Camera photographing apparatus and program |
JP2005189052A (en) * | 2003-12-25 | 2005-07-14 | Casio Comput Co Ltd | Camera photographing equipment and program |
JP2005189051A (en) * | 2003-12-25 | 2005-07-14 | Casio Comput Co Ltd | Size measurement device and program |
-
2007
- 2007-05-17 JP JP2007131977A patent/JP4848312B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2008286638A (en) | 2008-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4848312B2 (en) | Height estimating apparatus and height estimating method | |
JP6362442B2 (en) | Lane boundary line extraction device, lane boundary line extraction method, and program | |
KR101534259B1 (en) | Method of measuring tread abrasion of tire and apparatus thereof | |
JP4341564B2 (en) | Object judgment device | |
US8983131B2 (en) | Video analysis | |
JP3072730B2 (en) | Vehicle detection method and device | |
JP6638723B2 (en) | Image analysis device, image analysis method, and image analysis program | |
JP7354767B2 (en) | Object tracking device and object tracking method | |
KR20190076271A (en) | Method and System for Analysis of Road Congestion robust to Vehicle Stagnation Using CCTV | |
CN112053397A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
JP2018503195A (en) | Object detection method and object detection apparatus | |
JP2009211122A (en) | Image processor and object estimation program | |
JP2006234682A (en) | Object discriminating device | |
JP2017068789A (en) | Article recognition apparatus and smoke determination method | |
JP5651659B2 (en) | Object detection system and program | |
JP5846140B2 (en) | Information processing apparatus and program | |
JP2008033818A (en) | Object tracking device and its control method, object tracking system, object tracking program, and recording medium recording the program | |
JP4756357B2 (en) | Video surveillance device | |
KR100911493B1 (en) | Method for image processing and apparatus for the same | |
JP2009070097A (en) | Vehicle length measuring device and vehicle model determination device | |
JP6348020B2 (en) | Image processing apparatus, image processing method, and inspection method using the same | |
JP4005409B2 (en) | Background image estimation method and background image estimation apparatus | |
JP4812743B2 (en) | Face recognition device, face recognition method, face recognition program, and recording medium recording the program | |
KR101882271B1 (en) | Distance measuring system for atypical line | |
JP2016194847A (en) | Image detection device, image detection method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100507 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20111004 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20111017 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141021 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4848312 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |