JP4848312B2 - Height estimating apparatus and height estimating method - Google Patents

Height estimating apparatus and height estimating method Download PDF

Info

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
Application number
JP2007131977A
Other languages
Japanese (ja)
Other versions
JP2008286638A (en
Inventor
聡 二見
健宏 馬渕
伸一 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SOHGO SECURITY SERVICES CO.,LTD.
Original Assignee
SOHGO SECURITY SERVICES CO.,LTD.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SOHGO SECURITY SERVICES CO.,LTD. filed Critical SOHGO SECURITY SERVICES CO.,LTD.
Priority to JP2007131977A priority Critical patent/JP4848312B2/en
Publication of JP2008286638A publication Critical patent/JP2008286638A/en
Application granted granted Critical
Publication of JP4848312B2 publication Critical patent/JP4848312B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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.

特開2003−46911号公報JP 2003-46911 A 特開2006−172063号公報JP 2006-172063 A

しかしながら、特許文献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 height estimation device 10 and a monitoring camera 20. The monitoring camera 20 is installed horizontally at a predetermined position with respect to the ground, and takes a moving image of the monitoring area.

身長推定装置10は、人物を被写体として含む人物画像中の人物の身長を推定する。身長推定装置10は、このための機能構成として、パラメータ設定部100と、パラメータ保持部102と、画像取得部110と、画像保持部112と、人物領域抽出部120と、人物距離推定部122と、身長推定部124とを備えている。   The height estimation device 10 estimates the height of a person in a person image including the person as a subject. The height estimation apparatus 10 includes a parameter setting unit 100, a parameter holding unit 102, an image acquisition unit 110, an image holding unit 112, a person region extraction unit 120, and a person distance estimation unit 122 as functional configurations for this purpose. And a height estimation unit 124.

パラメータ設定部100は、ユーザからの指示にしたがいパラメータ保持部102に各種パラメータを設定する。パラメータ保持部102に設定されるパラメータとしては以下に示す5つがある。
基準長 Hb
基準距離 Db
基準座標Qb(Xb,Yb
第1基準長画素数 Pb1
消失点座標 VP(Xvp,Yvp
The parameter setting unit 100 sets various parameters in the parameter holding unit 102 according to instructions from the user. There are the following five parameters set in the parameter holding unit 102.
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 height estimation apparatus 10. The reference object is an object whose height and arrangement position are known. As shown in FIG. 2, the reference length (H b ) is the actual height of the reference object 200. The reference distance (D b ) is an actual distance from the monitoring camera 20 to the reference object 200.

また、図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 reference object 212 in the reference object image 210 photographed by the monitoring camera 20. The first reference long pixel number (P b1 ) is the number of pixels corresponding to the height of the reference object 212 in the reference object image 210. The vanishing point coordinates (VP) are the coordinates of the vanishing point position in the reference object image 210. Here, the vanishing point is a point where the subject converges when the subject is moved away from the surveillance camera 20 to infinity.

画像取得部110は、監視カメラ20より毎フレームの画像を取得し、画像保持部112に格納する。なお、監視カメラ20により撮影された動画像中のフレームには、人物を被写体として含む人物画像の他、人物を含まない背景画像が含まれている。   The image acquisition unit 110 acquires an image of each frame from the monitoring camera 20 and stores it in the image holding unit 112. Note that the frame in the moving image taken by the monitoring camera 20 includes a background image that does not include a person in addition to a person image that includes a person as a subject.

人物領域抽出部120は、画像から人物領域を抽出する。図4に示すように、人物領域312とは、画像310内の領域であって、人物の外形に接する矩形領域である。人物領域抽出部120は、具体的には、人物画像と背景画像において差分を算出することにより、人物領域を抽出する。   The person area extraction unit 120 extracts a person area from the image. As shown in FIG. 4, the person area 312 is an area in the image 310 and a rectangular area in contact with the outline of the person. Specifically, the person area extraction unit 120 extracts a person area by calculating a difference between the person image and the background image.

他の例としては、人物領域抽出部120は、フレーム間差分を算出することにより、人物領域を抽出してもよい。このように、人物領域抽出部120は、人物の影など人物以外のものを包含することなく人物部分のみを精度よく包含する矩形領域を抽出可能な技術により人物領域を抽出できればよく、その方法は本例に限定されるものではない。   As another example, the person area extraction unit 120 may extract a person area by calculating a difference between frames. As described above, the person area extracting unit 120 only needs to be able to extract a person area by a technique that can extract a rectangular area that accurately includes only a person portion without including anything other than a person such as a shadow of a person. It is not limited to this example.

人物距離推定部122は、パラメータ保持部102に保持されているパラメータに基づいて、人物距離(Dp)を推定する。図4に示すように、人物距離(Dp)は、人物領域抽出部120により抽出された人物領域と監視カメラ20との間の距離である。身長推定部124は、パラメータ保持部102に保持されているパラメータ、人物画像中の人物の身長に相当する人物長画素数(Pp)および人物距離推定部122により推定された人物距離(Dp)に基づいて、人物画像中の人物の実際の身長(Hp)を推定する。 The person distance estimation unit 122 estimates the person distance (D p ) based on the parameters held in the parameter holding unit 102. As shown in FIG. 4, the person distance (D p ) is the distance between the person area extracted by the person area extraction unit 120 and the monitoring camera 20. The height estimation unit 124 includes the parameters held in the parameter holding unit 102, the number of person length pixels corresponding to the height of the person in the person image (P p ), and the person distance estimated by the person distance estimation unit 122 (D p ) To estimate the actual height (H p ) of the person in the person image.

図5は、身長推定装置10による身長推定処理を示すフローチャートである。まず、画像取得部110は、背景画像を取得する(ステップS100)。次に、パラメータ設定部100は、ユーザによって入力された各種パラメータをパラメータ保持部102に設定する(ステップS102)。なお、パラメータ保持部102に既に各種パラメータが保持されている場合には、この処理は不要である。   FIG. 5 is a flowchart showing the height estimation process by the height estimation apparatus 10. First, the image acquisition unit 110 acquires a background image (step S100). Next, the parameter setting unit 100 sets various parameters input by the user in the parameter holding unit 102 (step S102). Note that this processing is not necessary when various parameters are already held in the parameter holding unit 102.

次に、画像取得部110が画像を取得するまで待機し(ステップS104,No)、画像を取得すると(ステップS104,Yes)、人物領域抽出部120は、画像中から人物領域を抽出する(ステップS106)。さらに、人物領域中の人物の身長に相当する画素数である人物長画素数(Pp)をカウントする。ここで、人物領域抽出部120は、人物長画素数特定手段に相当する。 Next, the process waits until the image acquisition unit 110 acquires an image (No at Step S104). When the image is acquired (Yes at Step S104), the person area extraction unit 120 extracts a person area from the image (Step S104). S106). Furthermore, the number of person length pixels (P p ), which is the number of pixels corresponding to the height of the person in the person area, is counted. Here, the person region extraction unit 120 corresponds to a person length pixel number specifying unit.

人物領域が抽出された場合、すなわち監視領域内に人物が存在する場合には(ステップ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 distance estimating unit 122 estimates the person distance (step S110). Next, the height estimation unit 124 estimates the actual height of the person (step S112). If no person area is extracted in step S108, that is, if no person exists in the monitoring area (No in step S108), the process returns to step S104 to acquire the next image.

人物距離推定処理(ステップS110)において、人物距離推定部122は、実空間における監視カメラ20から被写体までの距離(D)と、画像中における被写体の高さに相当する画素数(P)が式(1)に示すように反比例の関係にあることを利用する。なお、式(1)において、aは比例定数である。

Figure 0004848312
In the person distance estimation process (step S110), the person distance estimation unit 122 calculates the distance (D) from the monitoring camera 20 to the subject in the real space and the number of pixels (P) corresponding to the height of the subject in the image. As shown in (1), the fact that there is an inversely proportional relationship is used. In the formula (1), a is a proportionality constant.
Figure 0004848312

式(2)に示すように、式(1)にパラメータ保持部102に保持されている基準距離(Db)および第1基準画素数(Pb1)を代入することにより係数abを算出することが可能である。

Figure 0004848312
As shown in the equation (2), the coefficient a b is calculated by substituting the reference distance (D b ) and the first reference pixel number (P b1 ) held in the parameter holding unit 102 into the equation (1). It is possible.
Figure 0004848312

被写体の高さに相当する画素数(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)の関係が成立する。

Figure 0004848312
人物距離推定部122は、式(4)に示すように、式(3)に基準座標(Qp)および消失点座標(VP)を代入することにより係数avを得る。人物距離推定部122は、この係数avをパラメータ保持部102に設定しておく。さらに、消失点座標(VP)と基準座標(Qp)のy座標の差分を基準消失点画素数(Pvb)としてパラメータ保持部102に設定する。
Figure 0004848312
さらに、人物距離推定部122は、式(4)により得られた係数avを用い、式(3)に人物画像から得られた消失点から人物の下端までの縦画素数、すなわち人物消失点画素数(Pvp)を代入することにより人物距離(Dp)を算出する。このように、人物距離推定部122は、人物消失点画素数(Pvp)と基準消失点画素数(Pvb=Yb−Yvb)との比と、基準距離(Db)とに基づいて人物距離を算出する。 As shown in equation (3), the relationship of equation (1) is also established for the number of person vanishing point pixels (P vp ).
Figure 0004848312
The person distance estimation unit 122 obtains a coefficient a v by substituting the reference coordinates (Q p ) and the vanishing point coordinates (VP) into Expression (3) as shown in Expression (4). The person distance estimating unit 122 sets the coefficient av in the parameter holding unit 102. Further, the difference between the y coordinate of the vanishing point coordinate (VP) and the reference coordinate (Q p ) is set in the parameter holding unit 102 as the reference vanishing point pixel number (P vb ).
Figure 0004848312
Further, the person distance estimation unit 122 uses the coefficient a v obtained from the equation (4), and uses the coefficient a v obtained from the equation (4) to calculate the number of vertical pixels from the vanishing point obtained from the person image to the lower end of the person, that is, the person vanishing point. The person distance (D p ) is calculated by substituting the number of pixels (P vp ). Thus, the person distance estimation unit 122 is based on the ratio between the number of person vanishing point pixels (P vp ) and the reference vanishing point pixel number (P vb = Y b −Y vb ) and the reference distance (D b ). To calculate the person distance.

なお、本実施の形態にかかる人物距離推定部122は、人物消失点特定手段、基準消失点画素数算出手段および人物距離算出手段に相当する。   The person distance estimating unit 122 according to the present embodiment corresponds to a person vanishing point specifying unit, a reference vanishing point pixel number calculating unit, and a person distance calculating unit.

身長推定処理(ステップS112)において、身長推定部124は、人物距離推定部122により既知となった人物距離(Dp)を利用して、人物の実際の身長(Hp)を推定する。具体的には、まず、基準物体が人物距離(Dp)に位置する場合における基準物体の縦画素数、すなわち第2基準長画素数(P(D))を求める。第2基準長画素数(P(D))は、式(2)より式(5)で得られる。

Figure 0004848312
式(5)により得られた第2基準長画素数(P(D))と人物長画素数(Pp)の比と、基準長(Hb)と人物の身長(Hp)との比が等しいことから、式(6)により身長(Hp)を得る。
Figure 0004848312
基準物体についての係数abは、式(5)に示すように、式(1)に基準距離(Db)および基準画素数(Pb)を代入することにより得られる。このように、身長推定部124は、第2基準長画素数(P(D))と人物長画素数(Pp)との比と、基準長(Hb)とに基づいて人物の実際の身長(Hp)を算出する。 In the height estimation process (step S112), the height estimation unit 124 estimates the actual height (H p ) of the person using the person distance (D p ) known by the person distance estimation unit 122. Specifically, first, the number of vertical pixels of the reference object when the reference object is located at the person distance (D p ), that is, the second reference long pixel number (P (D)) is obtained. The second reference long pixel number (P (D)) is obtained from Equation (2) by Equation (5).
Figure 0004848312
The ratio between the second reference length pixel number (P (D)) and the person length pixel number (P p ) obtained by Expression (5), and the ratio between the reference length (H b ) and the person's height (H p ). Are equal, the height (H p ) is obtained by the equation (6).
Figure 0004848312
The coefficient ab for the reference object is obtained by substituting the reference distance (D b ) and the number of reference pixels (Pb) into Equation (1) as shown in Equation (5). As described above, the height estimation unit 124 determines the actual human figure based on the ratio between the second reference length pixel number (P (D)) and the person length pixel number (P p ) and the reference length (H b ). Height (H p ) is calculated.

なお、本実施の形態にかかる身長推定部124は、人物長画素数特定手段および第2基準長画素数特定手段および身長算出手段に相当する。   The height estimation unit 124 according to the present embodiment corresponds to a person length pixel number specifying unit, a second reference length pixel number specifying unit, and a height calculating unit.

図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 height estimation apparatus 10 according to the first embodiment. The height estimation device 10 includes, as a hardware configuration, a ROM 52 that stores a height estimation program for executing a height estimation process in the height estimation device 10, and a CPU 51 that controls each unit of the height estimation device 10 according to a program in the ROM 52. A RAM 53 that stores various data necessary for controlling the height estimation apparatus 10, a communication I / F 57 that communicates by connecting to a network, and a bus 62 that connects each unit are provided.

先に述べた身長推定装置10における身長推定プログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フロッピー(登録商標)ディスク(FD)、DVD等のコンピュータで読み取り可能な記録媒体に記録されて提供されてもよい。   The above-described height estimation program in the height estimation apparatus 10 is a file in an installable or executable format, and is a computer-readable recording medium such as a CD-ROM, floppy (registered trademark) disk (FD), or DVD. May be recorded and provided.

この場合には、身長推定プログラムは、身長推定装置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 height estimation device 10 so that each unit described in the software configuration is generated on the main storage device. It has become.

また、本実施の形態の身長推定プログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。   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 height estimation device 12 and a monitoring camera 22. The height estimation apparatus 12 according to the present embodiment further includes a parameter specifying unit 130 in addition to the functional configuration of the height estimation apparatus 10 according to the first embodiment.

監視カメラ22は、基準物体を被写体として含む基準物体画像を撮影する。画像取得部110は、監視カメラ22から基準物体画像を取得する。パラメータ特定部130は、基準物体画像を処理することにより、基準距離、基準座標、第1基準長画素数および消失点座標を特定する。そして、これらのパラメータをパラメータ保持部102に格納する。   The monitoring camera 22 captures a reference object image including the reference object as a subject. The image acquisition unit 110 acquires a reference object image from the monitoring camera 22. The parameter specifying unit 130 specifies the reference distance, the reference coordinates, the first reference long pixel number, and the vanishing point coordinates by processing the reference object image. These parameters are stored in the parameter holding unit 102.

図9は、監視カメラ22により撮影された基準物体画像400を示す図である。基準物体410は、1本の直線状の横治具と、横治具の両端それぞれから互いに垂直な方向に延びる2本の直線状の治具とを有している。この基準物体410の横治具と監視カメラ22により撮影された画像の横方向とが垂直になり、横治具から伸びる互いに平行な2本の2組のうち1組が監視カメラ22により撮影された画像の奥行き方向に延び、残りの1組が監視カメラ22により撮影された画像の縦方向に延びるように設置しておく。監視カメラ22よりこの基準物体410を撮影することにより基準物体画像400を得る。   FIG. 9 is a diagram showing a reference object image 400 taken by the monitoring camera 22. The reference object 410 has one linear lateral jig and two linear jigs extending in directions perpendicular to each other from both ends of the lateral jig. The horizontal jig of the reference object 410 and the horizontal direction of the image photographed by the monitoring camera 22 are perpendicular to each other, and one of the two sets parallel to each other extending from the horizontal jig is photographed by the monitoring camera 22. It is installed so that it extends in the depth direction of the image and the other set extends in the vertical direction of the image taken by the surveillance camera 22. The reference object image 400 is obtained by photographing the reference object 410 from the monitoring camera 22.

図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 height estimation device 12 according to the second embodiment. In the height estimation process according to the second embodiment, after obtaining a background image (step S100), a reference object is installed as shown in FIG. 9 (step S200). Next, the image acquisition unit 110 acquires a reference object image captured by the monitoring camera 22 (step S202). Next, the parameter specifying unit 130 specifies various parameters based on the reference object image (step S204). Next, the process proceeds to parameter setting processing (step S102). The processing after the parameter setting processing (step S102) is the same as the processing according to the first embodiment.

図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 parameter specifying unit 130 first calculates a difference between the reference object image and the background image (step S300), and further performs binarization processing (step S302). Thereby, a binary image as shown in FIG. 12 is obtained. A linear component is detected from the binary image by, for example, Hough transform (step S304). Thereby, a straight line corresponding to each jig can be obtained.

次に、パラメータ特定部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 parameter specifying unit 130 specifies the intersection point of the extension lines of the two linear components extending in the depth direction of the monitoring camera 22 as a vanishing point (VP), and obtains vanishing point coordinates (step S306). ). Next, as shown in FIG. 14, the parameter specifying unit 130 accumulates the number of detection pixels (the number of black pixels in FIG. 12) obtained at each position in the horizontal direction of the binary image. Based on this cumulative distribution, end points (A1, A2, B1, B2) are detected (step S308). As shown in FIG. 14, the number of detection pixels increases at the position of the two vertical jigs. Therefore, the parameter specifying unit 130 specifies the position where the number of detected pixels is large as the position of the two vertical jigs. Furthermore, the upper end position (A1, B1) and the lower end position (A2, B2) of this vertical jig are specified. A parameter is specified using any one of the two vertical jigs.

次に、パラメータ特定部130は、各種パラメータを特定する(ステップS310)。具体的には、上端位置(A1)と下端位置(A2)の間の距離を第1基準長画素数(Pb1)として特定し、下端位置(A2)の座標を基準座標(Qb)として特定する。 Next, the parameter specifying unit 130 specifies various parameters (step S310). Specifically, the distance between the upper end position (A1) and the lower end position (A2) is specified as the first reference length pixel number (P b1 ), and the coordinates of the lower end position (A2) are set as the reference coordinates (Q b ). Identify.

パラメータ特定部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 parameter specifying unit 130 further calculates a reference distance (D b ). Specifically, as shown in FIG. 15, end points other than A2 and B2 are detected as A3 and B3 among the two jigs extending in the depth direction. Further, as shown in FIG. 16, a point on the straight line passing through A1 and the vanishing point (VP), which is the point where the position in the horizontal direction in A3 and the image is equal, is detected as A4. Similarly, a point on the straight line that has the same horizontal position as B3 and passes B1 and the vanishing point (VP) is detected as B4. In order to calculate the reference distance (D b ), any one of A1 to A4 or B1 to B4 may be detected. Hereinafter, a case where the reference distance is calculated using A1 to A4 will be described.

基準距離(Db)における第1基準長画素数(Pb)は、A1からA2までの画素数に相当する。したがって、式(7)が成立する。

Figure 0004848312
さらに、A1およびA2を端点とする縦治具パーツがA3の位置まで奥行き方向に遠ざかった場合には、基準物体画像中における縦治具パーツの画素数はA3からA4までの画素数に相当する。これをPb'とし、奥行き方向のパーツの実際の長さをLとすると、式(8)が成立する。
Figure 0004848312
式(7)および式(8)を連立方程式として、式(9)のように基準距離(Db)を得ることができる。
Figure 0004848312
The first reference length pixel number (P b ) at the reference distance (D b ) corresponds to the number of pixels from A1 to A2. Therefore, Formula (7) is materialized.
Figure 0004848312
Further, when the vertical jig parts having the end points A1 and A2 move away in the depth direction to the position A3, the number of pixels of the vertical jig parts in the reference object image corresponds to the number of pixels from A3 to A4. . When this is P b ′ and the actual length of the part in the depth direction is L, Expression (8) is established.
Figure 0004848312
Using the equations (7) and (8) as simultaneous equations, the reference distance (D b ) can be obtained as in the equation (9).
Figure 0004848312

パラメータ特定部130は、以上の処理により得られた各パラメータをパラメータ保持部102に格納する。   The parameter specifying unit 130 stores each parameter obtained by the above processing in the parameter holding unit 102.

なお、第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の実施の形態にかかる監視システム1の全体構成を示す図である。It is a figure which shows the whole structure of the monitoring system 1 concerning 1st Embodiment. 基準長(Hb)および基準距離(Db)を説明するための図である。It is a figure for demonstrating reference | standard length ( Hb ) and reference | standard distance ( Db ). 基準座標(Qb)、第1基準長画素数(Pb)および消失点座標(VP)を説明するための図である。Reference coordinates (Q b), which is a diagram for explaining a first reference length number of pixels (P b) and vanishing point coordinates (VP). 人物画像を示す図である。It is a figure which shows a person image. 身長推定装置10による身長推定処理を示すフローチャートである。It is a flowchart which shows the height estimation process by the height estimation apparatus. 基準消失点画素数(Pvb)および人物消失点画素数(Pvp)を説明するための図である。It is a figure for demonstrating a reference | standard vanishing point pixel number ( Pvb ) and a person vanishing point pixel number ( Pvp ). 身長推定装置10のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the height estimation apparatus. 第2の実施の形態にかかる監視システム2の全体構成を示す図である。It is a figure which shows the whole structure of the monitoring system 2 concerning 2nd Embodiment. 監視カメラ22により撮影された基準物体画像400を示す図である。It is a figure which shows the reference | standard object image 400 image | photographed with the monitoring camera. 身長推定装置12による身長推定処理を示すフローチャートである。It is a flowchart which shows the height estimation process by the height estimation apparatus 12. FIG. パラメータ特定処理(ステップS204)における詳細な処理を示すフローチャートである。It is a flowchart which shows the detailed process in a parameter specific process (step S204). 2値化画像を示す図である。It is a figure which shows a binarized image. 消失点(VP)検出処理を説明するための図である。It is a figure for demonstrating a vanishing point (VP) detection process. 端点検出処理を説明するための図である。It is a figure for demonstrating an endpoint detection process. 端点(A3,B3)を示す図である。It is a figure which shows an end point (A3, B3). 端点(A4,B4)を示す図である。It is a figure which shows an end point (A4, B4).

符号の説明Explanation of symbols

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 Monitoring system 10, 12 Height estimation device 20, 22 Surveillance camera 51 CPU
52 ROM
53 RAM
57 Communication I / F
62 Bus 100 Parameter setting unit 102 Parameter holding unit 110 Image acquisition unit 112 Image holding unit 120 Human region extraction unit 122 Human distance estimation unit 124 Height estimation unit 130 Parameter identification unit

Claims (7)

基準物体の実際の高さを示す基準長と、所定の位置に固定されたカメラから前記基準物体までの実際の距離を示す基準距離と、前記カメラにより撮影された基準物体画像中における前記基準物体の下端位置を示す基準座標と、前記基準物体画像中における前記基準長に相当する第1基準長画素数と、前記カメラを無限遠に遠ざけた場合に前記基準物体が位置する前記基準物体画像中の位置である消失点の位置を示す消失点座標とを保持する保持手段と、
前記カメラから被写体として人物を含む人物画像を取得する人物画像取得手段と、
前記人物画像取得手段が取得した前記人物画像中の人物の身長に相当する人物長画素数をカウントする人物長画素数特定手段と、
前記人物画像取得手段が取得した前記人物画像中の人物の下端から、前記人物画像中の消失点までの人物消失点画素数をカウントする人物消失点画素数特定手段と、
前記保持手段が保持する前記基準座標と前記消失点座標とに基づいて、前記基準物体画像中の前記基準物体の下端位置から前記消失点の位置までの基準消失点画素数を算出する基準消失点画素数算出手段と、
前記人物消失点画素数特定手段により特定された前記人物消失点画素数と前記基準消失点画素数との比と、前記保持手段が保持する前記基準距離とに基づいて、前記カメラから前記人物までの実際の人物距離を算出する人物距離算出手段と、
前記人物距離算出手段により算出された前記人物距離と、前記保持手段が保持する前記基準距離と、前記第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つを外部から取得し、前記保持手段に保持させる設定手段をさらに備えたことを特徴とする請求項1に記載の身長推定装置。   The height according to claim 1, further comprising setting means for acquiring at least one of the reference length, the reference distance, the reference coordinates, and the vanishing point from outside and holding the holding means in the holding means. Estimating device. 前記基準消失点画素数と前記基準距離の反比例の関係における比例定数を算出する比例定数算出手段をさらに備え、
人物距離算出手段は、前記比例定数と、前記人物消失点画素数とに基づいて、前記人物距離を算出することを特徴とする請求項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.
前記カメラから、カメラの奥行き方向に2本の直線を有し、かつ縦方向の直線を有する基準物体を被写体とする基準物体画像を取得する基準物体画像取得手段と、
前記基準物体画像取得手段が取得した前記基準物体画像に基づいて、前記基準距離、前記基準座標、前記第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.
JP2007131977A 2007-05-17 2007-05-17 Height estimating apparatus and height estimating method Active JP4848312B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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