JP6340227B2 - Human detection device - Google Patents
Human detection device Download PDFInfo
- Publication number
- JP6340227B2 JP6340227B2 JP2014066860A JP2014066860A JP6340227B2 JP 6340227 B2 JP6340227 B2 JP 6340227B2 JP 2014066860 A JP2014066860 A JP 2014066860A JP 2014066860 A JP2014066860 A JP 2014066860A JP 6340227 B2 JP6340227 B2 JP 6340227B2
- Authority
- JP
- Japan
- Prior art keywords
- window
- likelihood
- pedestrian
- lower body
- upper body
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/50—Context or environment of the image
- G06V20/56—Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
- G06V20/58—Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
- Traffic Control Systems (AREA)
Description
本発明は、人物検出装置に関し、さらに詳しくは、カメラにより撮影された撮影画像から人物を検出する人物検出装置に関する。 The present invention relates to a person detection apparatus, and more particularly to a person detection apparatus that detects a person from a captured image taken by a camera.
カメラが撮影した画像などに検出対象が存在するか否かを判定する物体検出装置が存在する。物体検出装置は、たとえば、カメラとともに車両に搭載される。物体検出装置は、カメラが撮影した画像に人物が存在するか否かを判定することにより、運転手に歩行者の存在を知らせることができる。物体検出装置を利用することにより、運転手は、車両の外部の状況を容易に把握することができる。 There is an object detection device that determines whether or not a detection target exists in an image taken by a camera. For example, the object detection device is mounted on a vehicle together with a camera. The object detection device can notify the driver of the presence of a pedestrian by determining whether or not a person is present in an image captured by the camera. By using the object detection device, the driver can easily grasp the situation outside the vehicle.
物体検出装置は、検出対象が画像に存在するか否かを判定するために、パターンマッチングを用いる。パターンマッチングのアルゴリズムとして、ニューラルネットワークや、サポートベクターマシンなどが挙げられる。物体検出装置は、入力された画像に対して、物体を検出する領域(窓領域)を設定する。物体検出装置は、上記のアルゴリズムが実装されたプログラムを用いて、検出対象が窓領域に含まれているか否かを判定する。 The object detection apparatus uses pattern matching to determine whether or not a detection target exists in an image. Examples of pattern matching algorithms include neural networks and support vector machines. The object detection device sets an area (window area) for detecting an object for the input image. The object detection device determines whether or not the detection target is included in the window region using a program in which the above algorithm is implemented.
パターンマッチングを用いる物体検出装置が、特許文献1及び2に開示されている。 Patent Documents 1 and 2 disclose object detection apparatuses using pattern matching.
上記特許文献1に係る歩行者認識装置は、歩行者の画像に類似する撮影画像の領域を、歩行者候補として特定する。歩行者認識装置は、特定された歩行者候補において、歩行者の下半身の特徴を示すエッジを検出することにより、撮影画像から歩行者を検出する。下半身の特徴を示すエッジは、歩行者の両脚に対応する右斜め方向のエッジと左斜め方向のエッジである。また、歩行者候補から、右斜め方向のエッジと左斜め方向のエッジとを結ぶエッジが検出される。歩行者認識装置は、これら3つのエッジの長さの比率に基づいて、歩行者候補内に歩行者が存在するか否かが判定される。 The pedestrian recognition device according to Patent Document 1 specifies a region of a captured image similar to a pedestrian image as a pedestrian candidate. The pedestrian recognition device detects a pedestrian from the photographed image by detecting an edge indicating the characteristics of the lower body of the pedestrian in the identified pedestrian candidate. The edges indicating the characteristics of the lower body are an obliquely right edge and an obliquely left edge corresponding to both legs of the pedestrian. In addition, an edge connecting the diagonally right edge and the diagonally left edge is detected from the pedestrian candidate. The pedestrian recognition device determines whether a pedestrian exists in the pedestrian candidate based on the ratio of the lengths of these three edges.
上記特許文献2に係る対象物識別装置は、人物の6個のパーツ(頭、右肩、左肩、股下、右足、及び左足)の類似度を撮影画像のブロックごとに計算する。対象物識別装置は、予め設定された各パーツの位置関係に基づいて、各パーツの類似度を統合した統合類似度を算出する。統合類似度を所定のしきい値と比較した結果に基づいて、歩行者が撮影画像内に存在するか否かが判定される。 The object identification device according to Patent Document 2 calculates the similarity of six parts of a person (head, right shoulder, left shoulder, inseam, right foot, and left foot) for each block of a captured image. The target object identification device calculates an integrated similarity obtained by integrating similarities of parts based on a preset positional relationship between the parts. Based on the result of comparing the integrated similarity with a predetermined threshold value, it is determined whether or not a pedestrian exists in the captured image.
上述のように、特許文献1に係る歩行者認識装置は、歩行者の画像を用いて歩行者を特定する。予め設定された歩行者の画像は、全身を含む画像であるため、上半身又は下半身が隠れた歩行者が撮影画像に存在しても、これらの歩行者を含む領域を歩行者候補として特定することができない。 As described above, the pedestrian recognition device according to Patent Document 1 specifies a pedestrian using a pedestrian image. Since the pedestrian image set in advance is an image including the whole body, even if a pedestrian whose upper or lower body is hidden is present in the photographed image, an area including these pedestrians is specified as a pedestrian candidate. I can't.
特許文献2に係る対象物識別装置は、人物の6個のパーツ(頭、右肩、左肩、股下、右足、及び左足)の類似度を統合し、統合された類似度がしきい値を上回る場合に、人物が存在すると判定する。しかし、人物のパーツのいずれかが隠れている場合、統合された類似度が減少する。この結果、一部の部位が隠れている歩行者が撮影画像に存在する場合、この歩行者に対応する統合類似度がしきい値を下回る可能性がある。この場合、この歩行者を検出できないおそれがある。 The object identification device according to Patent Document 2 integrates similarities of six parts of a person (head, right shoulder, left shoulder, inseam, right foot, and left foot), and the integrated similarity exceeds a threshold value. In this case, it is determined that a person exists. However, if any part of the person is hidden, the integrated similarity decreases. As a result, when a pedestrian whose part is hidden is present in the captured image, the integrated similarity corresponding to this pedestrian may be lower than the threshold value. In this case, there is a possibility that this pedestrian cannot be detected.
このように、従来の人物検出装置は、撮影画像から人物を検出する精度が低下するという問題があった。 As described above, the conventional person detection device has a problem that the accuracy of detecting a person from a captured image is lowered.
本発明は、上記課題に鑑み、撮影画像から人物を検出する精度を向上することができる人物検出装置を提供することを目的とする。 In view of the above problems, an object of the present invention is to provide a person detection device that can improve the accuracy of detecting a person from a captured image.
上記課題を解決するため、請求項1記載の発明は、人物検出装置であって、フレーム画像に対して、第1窓領域を設定し、前記第1窓領域の下に位置する第2窓領域を設定する検出窓設定部と、前記第1窓領域が人物の上半身を含むであろう第1上半身尤度と、前記第2窓領域が人物の上半身を含むであろう第2上半身尤度とを算出する上半身尤度算出部と、前記第1窓領域が人物の下半身を含むであろう第1下半身尤度と、前記第2窓領域が人物の下半身を含むであろう第2下半身尤度とを算出する下半身尤度算出部と、前記第1上半身尤度と、前記第2上半身尤度と、前記第1下半身尤度と、前記第2下半身尤度とに基づいて、前記フレーム画像に人物が存在するか否かを判断する判断部と、を備える。 In order to solve the above-mentioned problem, the invention according to claim 1 is a human detection device, wherein a first window region is set for a frame image, and a second window region located below the first window region. A detection window setting unit that sets the first upper body likelihood that the first window region will include the upper body of the person, and the second upper body likelihood that the second window region will include the upper body of the person, An upper body likelihood calculating unit that calculates the first lower body likelihood that the first window region will include the lower body of the person, and the second lower body likelihood that the second window region will include the lower body of the person. The frame image is calculated based on the lower body likelihood calculating unit for calculating the first upper body likelihood, the second upper body likelihood, the first lower body likelihood, and the second lower body likelihood. A determination unit that determines whether or not a person exists.
請求項2記載の発明は、請求項1に記載の人物検出装置であって、前記判断部は、前記第1上半身尤度と前記第2下半身尤度との積算値が第1のしきい値以上であり、かつ、前記第2上半身尤度と前記第1下半身尤度との積算値が第2のしきい値以下である場合、前記フレーム画像に人物が存在すると判断する。 The invention according to claim 2 is the person detection device according to claim 1, wherein the determination unit is configured such that an integrated value of the first upper body likelihood and the second lower body likelihood is a first threshold value. If the integrated value of the second upper body likelihood and the first lower body likelihood is equal to or smaller than a second threshold value, it is determined that a person exists in the frame image.
請求項3記載の発明は、請求項1に記載の人物検出装置であって、前記判断部は、前記第1上半身尤度と前記第2上半身尤度との差分絶対値が所定の上半身基準値以上である場合、又は、前記第1下半身尤度と前記第2下半身尤度との差分絶対値が所定の下半身基準値以上である場合、前記フレーム画像に人物が存在すると判断する。 The invention according to claim 3 is the person detection device according to claim 1, wherein the determination unit determines that the difference absolute value between the first upper body likelihood and the second upper body likelihood is a predetermined upper body reference value. If it is above, or if the difference absolute value between the first lower body likelihood and the second lower body likelihood is greater than or equal to a predetermined lower body reference value, it is determined that a person exists in the frame image.
請求項4記載の発明は、請求項1ないし請求項3のいずれかに記載の人物検出装置であって、さらに、前記判断部により前記フレーム画像に人物が存在すると判断された場合、前記フレーム画像内の人物の上半身又は下半身が隠れているか否かを判断する隠れ検出部、を備える。 The invention according to claim 4 is the person detection device according to any one of claims 1 to 3, wherein the frame image is determined when the determination unit determines that a person is present in the frame image. A hidden detection unit that determines whether or not the upper or lower body of the person is hidden.
請求項5記載の発明は、請求項1ないし請求項4のいずれかに記載の人物検出装置であって、さらに、前記第1窓領域に対して第1特徴抽出処理を実行して第1上部特徴データを生成し、前記第2窓領域に対して前記第1特徴抽出処理を実行して第1下部特徴データを生成する第1特徴抽出部と、前記第1窓領域に対して第2特徴抽出処理を実行して第2上部特徴データを生成し、前記第2窓領域に対して前記第2特徴抽出処理を実行して第2下部特徴データを生成する第2特徴抽出部と、を備え、前記上半身尤度算出部は、前記第1上部特徴データから前記第1上半身尤度を算出し、前記第1下部特徴データから前記第2上半身尤度を算出し、前記下半身尤度算出部は、前記第2上部特徴データから前記第1下半身尤度を算出し、前記第2下部特徴データから前記第2下半身尤度を算出する。 A fifth aspect of the present invention is the person detection device according to any one of the first to fourth aspects, wherein a first feature extraction process is further performed on the first window region to perform a first upper portion. A first feature extraction unit configured to generate feature data and execute the first feature extraction process on the second window region to generate first lower feature data; and a second feature for the first window region A second feature extraction unit that executes extraction processing to generate second upper feature data, and executes the second feature extraction processing on the second window region to generate second lower feature data. The upper body likelihood calculation unit calculates the first upper body likelihood from the first upper feature data, calculates the second upper body likelihood from the first lower feature data, and the lower body likelihood calculation unit The first lower body likelihood is calculated from the second upper feature data, and the second Calculating the second lower body likelihood from part feature data.
請求項7記載の発明は、人物検出装置に搭載されるコンピュータに、フレーム画像に対して、第1窓領域を設定し、前記第1窓領域の下に位置する第2窓領域を設定するステップと、前記第1窓領域が人物の上半身を含むであろう第1上半身尤度と、前記第2窓領域が人物の上半身を含むであろう第2上半身尤度とを算出するステップと、前記第1窓領域が人物の下半身を含むであろう第1下半身尤度と、前記第2窓領域が人物の下半身を含むであろう第2下半身尤度とを算出するステップと、前記第1上半身尤度と、前記第2上半身尤度と、前記第1下半身尤度と、前記第2下半身尤度とに基づいて、前記フレーム画像に人物が存在するか否かを判断するステップと、を実行させるための人物検出プログラムである。 According to a seventh aspect of the present invention, a step of setting a first window area and a second window area positioned below the first window area for a frame image in a computer mounted on the person detection apparatus. Calculating a first upper body likelihood that the first window area will include the upper body of a person and a second upper body likelihood that the second window area will include the upper body of the person; Calculating a first lower body likelihood that the first window region will include the lower body of the person and a second lower body likelihood that the second window region will include the lower body of the person; and the first upper body Determining whether a person is present in the frame image based on likelihood, the second upper body likelihood, the first lower body likelihood, and the second lower body likelihood; It is a person detection program for making it happen.
本発明に係る人物検出装置は、第1窓領域から第1上半身尤度及び第1下半身尤度を算出し、第2窓領域から第2上半身尤度及び第2下半身尤度を算出する。本発明に係る人物検出装置は、これら4つの尤度を用いることにより、撮影画像に人物が存在するか否かを高い精度で判定することができる。 The person detection apparatus according to the present invention calculates a first upper body likelihood and a first lower body likelihood from the first window region, and calculates a second upper body likelihood and a second lower body likelihood from the second window region. The person detection apparatus according to the present invention can determine whether or not a person is present in the captured image with high accuracy by using these four likelihoods.
以下、図面を参照し、本発明の実施の形態を詳しく説明する。図中同一又は相当部分には同一符号を付してその説明は繰り返さない。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals and description thereof will not be repeated.
[第1の実施の形態]
{1.全体構成}
図1は、本発明の第1の実施の形態に係る人物検出装置1の構成を示す機能ブロック図である。人物検出装置1は、カメラ100が撮影した画像から、人物(歩行者)を検出する。人物検出装置1は、カメラ100とともに自動車などの車両に搭載される。
[First Embodiment]
{1. overall structure}
FIG. 1 is a functional block diagram showing the configuration of the person detection apparatus 1 according to the first embodiment of the present invention. The person detection device 1 detects a person (pedestrian) from an image captured by the camera 100. The person detection device 1 is mounted on a vehicle such as an automobile together with the camera 100.
カメラ100は、自動車のダッシュボード上に設置され、前方の景色を撮影して画像データ20を生成する。画像データ20は、複数のフレームにより構成される動画像であり、フレーム単位で人物検出装置1に入力される。人物検出装置1は、1つのフレーム(以下、「撮影画像21」と呼ぶ。)内に歩行者が存在するか否かを判断する。 The camera 100 is installed on the dashboard of the automobile, and generates image data 20 by photographing the scenery in front. The image data 20 is a moving image composed of a plurality of frames, and is input to the person detection device 1 in units of frames. The person detection device 1 determines whether or not there is a pedestrian in one frame (hereinafter referred to as “captured image 21”).
図1に示すように、人物検出装置1は、画像変換部11と、検出窓設定部12と、特徴抽出部13A,13Bと、尤度算出部14と、判断部15と、学習部16と、記憶部17とを備える。画像変換部11は、カラーの撮影画像21をグレースケール画像22に変換する。 As shown in FIG. 1, the person detection device 1 includes an image conversion unit 11, a detection window setting unit 12, feature extraction units 13 </ b> A and 13 </ b> B, a likelihood calculation unit 14, a determination unit 15, and a learning unit 16. And a storage unit 17. The image conversion unit 11 converts the color photographed image 21 into a grayscale image 22.
検出窓設定部12は、グレースケール画像22に対して検出窓を設定する。検出窓は、撮影画像21から歩行者を検出するための単位領域である。さらに、検出窓設定部12は、検出窓の上の領域を上部窓31に設定し、上部窓31をグレースケール画像22から切り出す。検出窓設定部12は、検出窓の下の領域を下部窓41に設定し、下部窓41をグレースケール画像22から切り出す。検出窓、上部窓31、及び下部窓41の詳細については、後述する。 The detection window setting unit 12 sets a detection window for the grayscale image 22. The detection window is a unit area for detecting a pedestrian from the captured image 21. Further, the detection window setting unit 12 sets the area above the detection window as the upper window 31 and cuts out the upper window 31 from the grayscale image 22. The detection window setting unit 12 sets an area under the detection window as the lower window 41 and cuts out the lower window 41 from the grayscale image 22. Details of the detection window, the upper window 31, and the lower window 41 will be described later.
特徴抽出部13Aは、上部窓31及び下部窓41に対して、歩行者の上半身の特徴量を抽出するための画像処理を実行する。具体的には、特徴抽出部13Aは、上部窓31のHOG(Histograms Of Oriented Gradients)特徴量を抽出することにより、上部特徴データ32Aを生成する。また、下部窓41のHOG特徴量が抽出されることにより、下部特徴データ42Aが生成される。 The feature extraction unit 13A performs image processing for extracting the feature amount of the upper body of the pedestrian on the upper window 31 and the lower window 41. Specifically, the feature extraction unit 13A extracts the HOG (Histograms Of Oriented Gradients) feature amount of the upper window 31 to generate the upper feature data 32A. Further, by extracting the HOG feature amount of the lower window 41, lower feature data 42A is generated.
特徴抽出部13Bは、上部窓31及び下部窓41に対して、歩行者の下半身の特徴量を抽出するための画像処理を実行する。具体的には、特徴抽出部13Bは、右斜め方向に延びるエッジ及び左斜め方向に延びるエッジを強調する処理を上部窓31に対して実行することにより、上部特徴データ32Bを生成する。同様に、エッジを強調する処理が下部窓41に対して実行されることにより、下部特徴データ42Bが生成される。 The feature extraction unit 13 </ b> B performs image processing for extracting the feature amount of the lower body of the pedestrian on the upper window 31 and the lower window 41. Specifically, the feature extraction unit 13B generates the upper feature data 32B by executing processing for emphasizing the edge extending in the diagonally right direction and the edge extending in the diagonally leftward direction on the upper window 31. Similarly, the lower feature data 42 </ b> B is generated by executing the processing for enhancing the edge on the lower window 41.
尤度算出部14は、上半身尤度算出部14Aと、下半身尤度算出部14Bとを備える。 The likelihood calculating unit 14 includes an upper body likelihood calculating unit 14A and a lower body likelihood calculating unit 14B.
上半身尤度算出部14Aは、上部窓31が歩行者の上半身を含むであろう上半身尤度33Aを、上部特徴データ32Aから算出する。上半身尤度算出部14Aは、下部窓41が歩行者の上半身を含むであろう上半身尤度43Aを、下部特徴データ42Aから算出する。上半身尤度33A,43Aの算出には、歩行者の上半身のパターンが記録されたパターンデータ50Aが用いられる。 The upper body likelihood calculating unit 14A calculates the upper body likelihood 33A from which the upper window 31 will include the upper body of the pedestrian from the upper feature data 32A. The upper body likelihood calculation unit 14A calculates the upper body likelihood 43A from which the lower window 41 will include the upper body of the pedestrian from the lower feature data 42A. For the calculation of the upper body likelihoods 33A and 43A, pattern data 50A in which a pattern of the upper body of a pedestrian is recorded is used.
下半身尤度算出部14Bは、上部窓31が歩行者の下半身を含むであろう下半身尤度33Bを、上部特徴データ32Bから算出する。下半身尤度算出部14Bは、下部窓41が歩行者の下半身を含むであろう下半身尤度43Bを、下部特徴データ42Bから算出する。下半身尤度33B,43Bの算出には、歩行者の下半身のパターンが記録されたパターンデータ50Bが用いられる。 The lower body likelihood calculating unit 14B calculates a lower body likelihood 33B from which the upper window 31 will include the lower body of the pedestrian from the upper feature data 32B. The lower body likelihood calculating unit 14B calculates a lower body likelihood 43B from which the lower window 41 will include the lower body of the pedestrian from the lower feature data 42B. For calculation of the lower body likelihoods 33B and 43B, pattern data 50B in which a pattern of the lower body of the pedestrian is recorded is used.
判断部15は、上半身尤度算出部14Aにより算出された上半身尤度33A,43Aと、下半身尤度算出部14Bにより算出された下半身尤度33B,43Bとに基づいて、検出窓に歩行者が存在するか否かを判断する。判断部15の動作の詳細については、後述する。 Based on the upper body likelihoods 33A and 43A calculated by the upper body likelihood calculation unit 14A and the lower body likelihoods 33B and 43B calculated by the lower body likelihood calculation unit 14B, the determination unit 15 determines whether the pedestrian is in the detection window. Determine if it exists. Details of the operation of the determination unit 15 will be described later.
学習部16は、撮影画像21から歩行者を検出する処理を開始する前に、歩行者の上半身のパターンを学習してパターンデータ50Aを生成し、歩行者の下半身のパターンを学習してパターンデータ50Aを生成する。学習部16の詳細については、後述する。 Before starting the process of detecting the pedestrian from the captured image 21, the learning unit 16 learns the pattern of the upper body of the pedestrian to generate the pattern data 50A, and learns the pattern of the lower body of the pedestrian to obtain the pattern data. 50A is generated. Details of the learning unit 16 will be described later.
記憶部17は、例えば、ハードディスク装置やフラッシュメモリなどである。記憶部17は、パターンデータ50A,50Bを格納する。 The storage unit 17 is, for example, a hard disk device or a flash memory. The storage unit 17 stores pattern data 50A and 50B.
{2.人物検出装置1の動作}
{2.1.歩行者の学習}
人物検出装置1は、撮影画像21から歩行者の検出を開始する前に、歩行者を含む画像を学習して、パターンデータ50A,50Bを作成する。
{2. Operation of Person Detection Device 1}
{2.1. Pedestrian learning}
The person detecting device 1 learns an image including a pedestrian and creates pattern data 50A and 50B before starting detection of the pedestrian from the captured image 21.
図2は、人物検出装置1により学習される画像の一例を示す図である。図2に示す歩行者画像51は、グレースケールであり、検出窓と同じ幅及び高さを有する。歩行者画像51は、画像変換部11を介さず、検出窓設定部12に直接入力される。検出窓設定部12が、歩行者画像51から上部歩行者画像51Aと、下部歩行者画像51Bとを生成する。検出窓設定部12は、上部歩行者画像51Aと下部歩行者画像51Bとを生成する際に、歩行者画像51に対して検出窓を設定する処理を実行しない。 FIG. 2 is a diagram illustrating an example of an image learned by the person detection device 1. The pedestrian image 51 shown in FIG. 2 is grayscale and has the same width and height as the detection window. The pedestrian image 51 is directly input to the detection window setting unit 12 without going through the image conversion unit 11. The detection window setting unit 12 generates an upper pedestrian image 51A and a lower pedestrian image 51B from the pedestrian image 51. When the detection window setting unit 12 generates the upper pedestrian image 51 </ b> A and the lower pedestrian image 51 </ b> B, the detection window setting unit 12 does not perform a process of setting a detection window on the pedestrian image 51.
上部歩行者画像51Aは、歩行者画像51内の歩行者60の上半身を含むように、歩行者画像51から切り出される。歩行者画像51の高さをHとした場合、上部歩行者画像51Aは、歩行者画像51の下端を基準にして、0.45×Hの高さにある横方向の直線L1より上の画像である。 The upper pedestrian image 51A is cut out from the pedestrian image 51 so as to include the upper half of the pedestrian 60 in the pedestrian image 51. When the height of the pedestrian image 51 is H, the upper pedestrian image 51A is an image above the horizontal straight line L1 at a height of 0.45 × H with reference to the lower end of the pedestrian image 51. It is.
下部歩行者画像51Bは、歩行者60の下半身を含むように、歩行者画像51から切り出される。下部歩行者画像51Bは、歩行者画像51の下端を基準にして、0.55×Hの高さにある横方向の直線L2より下の画像である。 The lower pedestrian image 51B is cut out from the pedestrian image 51 so as to include the lower half of the pedestrian 60. The lower pedestrian image 51B is an image below the horizontal straight line L2 at a height of 0.55 × H with the lower end of the pedestrian image 51 as a reference.
図2では、上部歩行者画像51Aの一部の領域が、下部歩行者画像51Bの一部の領域と重複しているが、上部歩行者画像51Aと下部歩行者画像51Bとは、重複しなくてもよい。また、図2において、上部歩行者画像51Aの高さは、下部歩行者画像51Bの高さと同じであるが、上部歩行者画像51Aの高さを、下部歩行者画像51Bの高さと異なるようにしてもよい。 In FIG. 2, a part of the upper pedestrian image 51A overlaps with a part of the lower pedestrian image 51B, but the upper pedestrian image 51A and the lower pedestrian image 51B do not overlap. May be. In FIG. 2, the height of the upper pedestrian image 51A is the same as the height of the lower pedestrian image 51B, but the height of the upper pedestrian image 51A is different from the height of the lower pedestrian image 51B. May be.
特徴抽出部13Aは、上部歩行者画像51AからHOG特徴量を抽出する処理を実行して、学習用の特徴データ62Aを生成する。学習部16は、上部歩行者画像51Aから生成された学習用の特徴データ62Aを用いて、歩行者の上半身のパターンを学習する。学習部16は、上半身のパターンの学習結果を反映したパターンデータ50Aを生成する。 The feature extraction unit 13A executes a process of extracting the HOG feature amount from the upper pedestrian image 51A to generate feature data 62A for learning. The learning unit 16 learns the pattern of the upper body of the pedestrian using the learning feature data 62A generated from the upper pedestrian image 51A. The learning unit 16 generates pattern data 50A reflecting the learning result of the upper body pattern.
特徴抽出部13Bは、下部歩行者画像51Bに対してエッジを強調する処理を実行して、学習用の特徴データ62Bを生成する。学習部16は、下部歩行者画像51Bから生成された学習用の特徴データ62Bを用いて、歩行者の下半身のパターンを学習する。学習部16は、下半身のパターンの学習結果を反省したパターンデータ50Bを生成する。 The feature extraction unit 13B executes processing for emphasizing edges on the lower pedestrian image 51B to generate feature data 62B for learning. The learning unit 16 learns the pattern of the lower body of the pedestrian using the learning feature data 62B generated from the lower pedestrian image 51B. The learning unit 16 generates pattern data 50B reflecting the learning result of the lower body pattern.
人物検出装置1は、複数の歩行者画像51を用いて、パターンデータ50A,50Bを作成する。これにより、歩行者の上半身及び下半身の様々なパターンを、パターンデータ50A及び50Bに反映させることができる。学習に用いられる複数の歩行者画像51において、各画像に含まれる歩行者は、正規化されていることが望ましい。ここで、歩行者が正規化されているとは、歩行者画像51のそれぞれに含まれる歩行者のサイズ、頭の位置、足の位置などが揃っていることを示す。 The person detection device 1 creates pattern data 50A and 50B using a plurality of pedestrian images 51. Thereby, various patterns of the upper body and lower body of the pedestrian can be reflected in the pattern data 50A and 50B. In a plurality of pedestrian images 51 used for learning, it is desirable that the pedestrians included in each image are normalized. Here, that the pedestrian is normalized means that the size of the pedestrian, the position of the head, the position of the foot, etc. included in each of the pedestrian images 51 are aligned.
{2.2.歩行者の検出}
図3は、撮影画像21から歩行者を検出する人物検出装置1の動作を示すフローチャートである。人物検出装置1は、カメラ100から撮影画像21が入力されるたびに、図3に示す処理を実行して、入力された撮影画像21から歩行者を検出する。
{2.2. Detection of pedestrians}
FIG. 3 is a flowchart showing the operation of the person detection apparatus 1 that detects a pedestrian from the captured image 21. The person detection device 1 executes the process shown in FIG. 3 each time a captured image 21 is input from the camera 100 and detects a pedestrian from the input captured image 21.
人物検出装置1がカメラ100から撮影画像21を入力した場合、画像変換部11が、撮影画像21をグレースケール画像22に変換する(ステップS1)。人物検出装置1は、ステップS2〜S6を実行して、グレースケール画像22に対して検出窓を設定し、検出窓に歩行者が存在するか否かを判断する。ステップS2〜S6の詳細は、後述する。 When the person detection device 1 receives the captured image 21 from the camera 100, the image conversion unit 11 converts the captured image 21 into a grayscale image 22 (step S1). The person detection device 1 executes steps S2 to S6, sets a detection window for the grayscale image 22, and determines whether a pedestrian exists in the detection window. Details of steps S2 to S6 will be described later.
人物検出装置1は、判断処理(ステップS5)が終了した後に、グレースケール画像22に対する検出窓の設定が終了したか否かを確認する(ステップS6)。検出窓の設定が終了していない場合(ステップS6においてNo)、人物検出装置1は、新たな検出窓を設定するために、ステップS2に戻る。一方、全ての検出窓の設定が終了した場合(ステップS6においてYes)、人物検出装置1は、図3に示す処理を終了する。人物検出装置1は、新たな撮影画像21が入力された場合、図3に示す処理を再び実行する。 The person detection device 1 checks whether or not the setting of the detection window for the grayscale image 22 is completed after the determination process (step S5) is completed (step S6). If the setting of the detection window has not ended (No in step S6), the person detection device 1 returns to step S2 in order to set a new detection window. On the other hand, when all the detection windows have been set (Yes in step S6), the person detection device 1 ends the process shown in FIG. The person detection device 1 executes the process shown in FIG. 3 again when a new captured image 21 is input.
以下、ステップS2〜S5について詳しく説明する。 Hereinafter, steps S2 to S5 will be described in detail.
(検出窓の設定(ステップS2))
検出窓設定部12は、画像変換部11により生成されたグレースケール画像22を入力する。検出窓設定部12は、入力されたグレースケール画像22に対して、検出窓、上部窓31及び下部窓41を設定する(ステップS2)。
(Setting of detection window (step S2))
The detection window setting unit 12 inputs the grayscale image 22 generated by the image conversion unit 11. The detection window setting unit 12 sets the detection window, the upper window 31, and the lower window 41 for the input grayscale image 22 (step S2).
図4は、グレースケール画像22の一例を示す図である。検出窓設定部12は、歩行者を検出するための検出窓23を設定する。つまり、ステップS2が実行されるたびに、検出窓23が1つ設定される。 FIG. 4 is a diagram illustrating an example of the grayscale image 22. The detection window setting unit 12 sets a detection window 23 for detecting a pedestrian. That is, each time step S2 is executed, one detection window 23 is set.
図3に示すように、ステップS2〜S6が繰り返されることにより、グレースケール画像22に対して複数の検出窓23が設定される。グレースケール画像22(図4参照)の左上頂点に位置する検出窓23が、最初に設定される。検出窓設定部12は、グレースケール画像22を左上から右下にかけてスキャンするように複数の検出窓23を設定する。検出窓設定部12は、検出窓23を新たに設定する場合、既に設定された検出窓23の一部と重複するように新しい検出窓23を設定することが望ましい。 As shown in FIG. 3, by repeating steps S <b> 2 to S <b> 6, a plurality of detection windows 23 are set for the grayscale image 22. The detection window 23 located at the upper left vertex of the gray scale image 22 (see FIG. 4) is set first. The detection window setting unit 12 sets a plurality of detection windows 23 so as to scan the grayscale image 22 from the upper left to the lower right. When the detection window 23 is newly set, the detection window setting unit 12 desirably sets a new detection window 23 so as to overlap a part of the detection window 23 that has already been set.
検出窓設定部12は、設定した検出窓23から、上部窓31及び下部窓41を生成する。図5は、図4に示すグレースケール画像22に対して設定された検出窓23から、上部窓31及び下部窓41を生成する手順を示す図である。上部窓31及び下部窓41を生成する手順は、歩行者画像51(図2参照)から上部歩行者画像51A及び下部歩行者画像51Bを生成する手順と同じである。 The detection window setting unit 12 generates an upper window 31 and a lower window 41 from the set detection window 23. FIG. 5 is a diagram showing a procedure for generating the upper window 31 and the lower window 41 from the detection window 23 set for the grayscale image 22 shown in FIG. The procedure for generating the upper window 31 and the lower window 41 is the same as the procedure for generating the upper pedestrian image 51A and the lower pedestrian image 51B from the pedestrian image 51 (see FIG. 2).
つまり、図5に示すように、検出窓23の高さがHである場合、検出窓設定部12は、検出窓23の下端を基準にして、0.45×Hの高さにある横方向の直線L3より上の領域を、上部窓31に設定する。検出窓設定部12は、この上の領域をグレースケール画像22から切り出すことにより、上部窓31を生成する。検出窓設定部12は、検出窓23の下端を基準にして、0.55×Hの高さにある横方向の直線L4より下の領域を下部窓41に設定する。検出窓設定部12は、この下の領域をグレースケール画像22から切り出すことにより、下部窓41を生成する。 That is, as shown in FIG. 5, when the height of the detection window 23 is H, the detection window setting unit 12 has a horizontal direction at a height of 0.45 × H with respect to the lower end of the detection window 23. The region above the straight line L3 is set in the upper window 31. The detection window setting unit 12 generates the upper window 31 by cutting out the upper region from the grayscale image 22. The detection window setting unit 12 sets an area below the horizontal straight line L4 at a height of 0.55 × H in the lower window 41 with the lower end of the detection window 23 as a reference. The detection window setting unit 12 generates the lower window 41 by cutting out the lower region from the grayscale image 22.
このようにして、検出窓設定部12は、グレースケール画像22に対して、上部窓31と、上部窓31の下に位置する下部窓41とを設定する(ステップS2)。なお、上部歩行者画像51A及び下部歩行者画像51Bと同様に、上部窓31と下部窓41とにおいて、一部の領域が重複しなくてもよい。上部窓31の高さを下部窓41と異なるようにしてもよい。 In this way, the detection window setting unit 12 sets the upper window 31 and the lower window 41 located below the upper window 31 for the grayscale image 22 (step S2). Note that, as in the upper pedestrian image 51A and the lower pedestrian image 51B, the upper window 31 and the lower window 41 do not have to partially overlap each other. The height of the upper window 31 may be different from that of the lower window 41.
(特徴抽出(ステップS3))
ステップS3において、特徴抽出部13Aは、上部窓31及び下部窓41の各々から、歩行者の上半身の特徴量を抽出する。特徴抽出部13Bは、上部窓31及び下部窓41の各々から、歩行者の下半身の特徴量を抽出する。特徴抽出部13Aは、上部窓31のHOG特徴量を抽出して、上部特徴データ32Aを生成し、下部窓41のHOG特徴量を抽出して、下部特徴データ42Aを生成する。
(Feature extraction (step S3))
In step S <b> 3, the feature extraction unit 13 </ b> A extracts the feature amount of the upper body of the pedestrian from each of the upper window 31 and the lower window 41. The feature extraction unit 13B extracts the feature amount of the lower body of the pedestrian from each of the upper window 31 and the lower window 41. The feature extraction unit 13A extracts the HOG feature value of the upper window 31 to generate the upper feature data 32A, and extracts the HOG feature value of the lower window 41 to generate the lower feature data 42A.
特徴抽出部13Bは、右斜め方向に延びるエッジ及び左斜め方向に延びるエッジを強調する処理を上部窓31に対して実行して、上部特徴データ32Bを生成する。特徴抽出部13Bは、右斜め方向に延びるエッジ及び左斜め方向に延びるエッジを強調する処理を実行して、下部特徴データ42Bを生成する。 The feature extraction unit 13B performs processing for emphasizing the edge extending in the right diagonal direction and the edge extending in the left diagonal direction on the upper window 31 to generate the upper feature data 32B. The feature extraction unit 13B executes processing for emphasizing an edge extending in the right oblique direction and an edge extending in the left oblique direction, and generates the lower feature data 42B.
(尤度算出(ステップS4))
ステップS4において、上半身尤度算出部14Aが、パターンデータ50Aを用いて、上部特徴データ32Aから上半身尤度33Aを算出し、下部特徴データ42Aから上半身尤度43Aを算出する。上半身尤度33Aは、上部窓31が歩行者の上半身を含む度合いを示す数値である。上半身尤度43Aは、下部窓41が歩行者の上半身を含む度合いを示す数値である。
(Likelihood calculation (step S4))
In step S4, the upper body likelihood calculating unit 14A calculates the upper body likelihood 33A from the upper feature data 32A and the upper body likelihood 43A from the lower feature data 42A using the pattern data 50A. The upper body likelihood 33A is a numerical value indicating the degree that the upper window 31 includes the upper body of the pedestrian. The upper body likelihood 43A is a numerical value indicating the degree that the lower window 41 includes the upper body of the pedestrian.
また、ステップS4において、下半身尤度算出部14Bが、パターンデータ50Bを用いて、上部特徴データ32Bから下半身尤度33Bを算出し、下部特徴データ42Bから下半身尤度43Bを算出する。下半身尤度33Bは、上部窓31が歩行者の下半身を含む度合いを示す数値である。下半身尤度43Bは、下部窓41が歩行者の下半身を含む度合いを示す数値である。 In step S4, the lower body likelihood calculating unit 14B calculates the lower body likelihood 33B from the upper feature data 32B and the lower body likelihood 43B from the lower feature data 42B using the pattern data 50B. The lower body likelihood 33B is a numerical value indicating the degree to which the upper window 31 includes the lower body of the pedestrian. The lower body likelihood 43B is a numerical value indicating the degree that the lower window 41 includes the lower body of the pedestrian.
図6は、上半身尤度33A,43A及び下半身尤度33B,43B5の具体例を示す図である。図6に示す検出窓123,223,323は、図4に示すグレースケール画像22と異なるグレースケール画像22に対して設定された画像である。 FIG. 6 is a diagram illustrating specific examples of upper body likelihoods 33A and 43A and lower body likelihoods 33B and 43B5. Detection windows 123, 223, and 323 shown in FIG. 6 are images set for a grayscale image 22 different from the grayscale image 22 shown in FIG.
上半身尤度33A,43A及び下半身尤度33B,43Bは、それぞれ、0以上1以下の数値である。上部窓31、下部窓41が歩行者の上半身を含む場合、上半身尤度33A,43Aは、1に近づく。上部窓31、下部窓41が歩行者の上半身を含まない場合、上半身尤度33A,43Aは、0に近づく。同様に、上部窓31、下部窓41が歩行者の下半身を含む場合、下半身尤度33B,43Bは、1に近づき、上部窓31、下部窓41が歩行者の下半身を含まない場合、下半身尤度33B,43Bは、0に近づく。 Upper body likelihoods 33A and 43A and lower body likelihoods 33B and 43B are numerical values of 0 or more and 1 or less, respectively. When the upper window 31 and the lower window 41 include the upper body of the pedestrian, the upper body likelihoods 33A and 43A approach one. When the upper window 31 and the lower window 41 do not include the upper body of the pedestrian, the upper body likelihoods 33A and 43A approach zero. Similarly, when the upper window 31 and the lower window 41 include the lower body of the pedestrian, the lower body likelihoods 33B and 43B approach 1 and when the upper window 31 and the lower window 41 do not include the lower body of the pedestrian, the lower body likelihood. The degrees 33B and 43B approach zero.
検出窓123は、左方向に進む歩行者の全身を含む。上部窓123a及び下部窓123bは、検出窓123から生成される。 The detection window 123 includes the whole body of a pedestrian that proceeds in the left direction. The upper window 123 a and the lower window 123 b are generated from the detection window 123.
上部窓123aは、左方向に進む歩行者の上半身を含む。上部窓123aから算出される上半身尤度33Aは、0.94であり、1に近い値(例えば、0.7以上)を有する。一方、下部窓123bは、歩行者の上半身を含まない。下部窓123bから算出される上半身尤度43Aは、0.43であり、0に近い値(例えば、0.5以下)を有する。 The upper window 123a includes the upper body of a pedestrian that proceeds in the left direction. The upper body likelihood 33A calculated from the upper window 123a is 0.94, and has a value close to 1 (for example, 0.7 or more). On the other hand, the lower window 123b does not include the upper body of the pedestrian. The upper body likelihood 43A calculated from the lower window 123b is 0.43 and has a value close to 0 (for example, 0.5 or less).
下部窓123bは、左方向に進む歩行者の下半身を含む。下部窓123bから算出される下半身尤度43Bは、0.89であり、1に近い値を有する。一方、上部窓123aは、歩行者の下半身を含まない。上部窓123aから算出される下半身尤度33Bは、0.32であり、0に近い値を有する。 The lower window 123b includes the lower body of a pedestrian that proceeds in the left direction. The lower body likelihood 43B calculated from the lower window 123b is 0.89 and has a value close to 1. On the other hand, the upper window 123a does not include the lower body of the pedestrian. The lower body likelihood 33B calculated from the upper window 123a is 0.32, and has a value close to 0.
検出窓123の例のように、検出窓23が歩行者の全身を含む場合、上部窓31が歩行者の上半身を含み、下部窓41が歩行者の下半身を含む。この場合、上半身尤度33A及び下半身尤度43Bは、1に近い値を有するのに対して、上半身尤度43A及び下半身尤度33Bは、0に近い値を有する。 When the detection window 23 includes the whole body of the pedestrian as in the example of the detection window 123, the upper window 31 includes the upper body of the pedestrian and the lower window 41 includes the lower body of the pedestrian. In this case, the upper body likelihood 33A and the lower body likelihood 43B have values close to 1, whereas the upper body likelihood 43A and the lower body likelihood 33B have values close to 0.
検出窓223は、後ろを向く歩行者を含んでおり、この歩行者の全身のうち、下半身が隠れている。上部窓223a及び下部窓223bは、検出窓223から生成される。 The detection window 223 includes a pedestrian facing backward, and the lower half of the pedestrian's whole body is hidden. The upper window 223a and the lower window 223b are generated from the detection window 223.
上部窓223aは、後ろを向く歩行者の上半身を含む。上部窓223aから算出される上半身尤度33Aは、0.91であり、1に近い値を有する。一方、下部窓223bは、歩行者の上半身を含まない。下部窓223bから算出される上半身尤度43Aは、0.26であり、0に近い値を有する。 The upper window 223a includes the upper body of a pedestrian facing backward. The upper body likelihood 33A calculated from the upper window 223a is 0.91, and has a value close to 1. On the other hand, the lower window 223b does not include the upper body of the pedestrian. The upper body likelihood 43A calculated from the lower window 223b is 0.26 and has a value close to 0.
検出窓223において、後ろを向く歩行者の下半身が隠れている。このため、下部窓223bは、歩行者の下半身を含まない。下部窓223bから算出される下半身尤度43Bは、0.28であり、0に近い値を有する。上部窓223aも、下部窓223bと同様に、歩行者の下半身を含まない。上部窓223aから算出される下半身尤度33Bは、0.39であり、0に近い値を有する。 In the detection window 223, the lower body of the pedestrian facing backward is hidden. For this reason, the lower window 223b does not include the lower body of the pedestrian. The lower body likelihood 43B calculated from the lower window 223b is 0.28 and has a value close to zero. Similarly to the lower window 223b, the upper window 223a does not include the lower body of the pedestrian. The lower body likelihood 33B calculated from the upper window 223a is 0.39 and has a value close to 0.
検出窓223のように、検出窓23が歩行者を含むが、この歩行者の下半身が隠れている場合、上部窓31が歩行者の上半身を含み、下部窓41が歩行者の下半身を含まない。この場合、上半身尤度33Aは、1に近い値を有するのに対して、上半身尤度43A及び下半身尤度33B,43Bは、0に近い値を有する。 Like the detection window 223, the detection window 23 includes a pedestrian, but when the lower body of the pedestrian is hidden, the upper window 31 includes the upper body of the pedestrian and the lower window 41 does not include the lower body of the pedestrian. . In this case, the upper body likelihood 33A has a value close to 1, whereas the upper body likelihood 43A and the lower body likelihoods 33B and 43B have values close to 0.
検出窓223とは逆に、検出窓23が歩行者を含むが、この歩行者の上半身が隠れている場合、上部窓31が歩行者の上半身を含まず、下部窓41が歩行者の下半身を含む。この場合、下半身尤度43Bが、1に近い値を有するのに対して、上半身尤度33A,43A及び下半身尤度33Bが、0に近い値を有する。 Contrary to the detection window 223, the detection window 23 includes a pedestrian, but when the upper body of the pedestrian is hidden, the upper window 31 does not include the upper body of the pedestrian and the lower window 41 covers the lower body of the pedestrian. Including. In this case, the lower body likelihood 43B has a value close to 1, whereas the upper body likelihoods 33A and 43A and the lower body likelihood 33B have values close to 0.
検出窓323は、歩行者を含まず、右側の領域に電信柱を含む。このため、上部窓323a及び下部窓323bは、歩行者の上半身及び下半身を含まない。上部窓323aから算出される上半身尤度33A及び下半身尤度33Bは、それぞれ、0.25及び0.42であり、0に近い値を有する。同様に、下部窓323bから算出される上半身尤度43A及び下半身尤度43Bは、それぞれ、0.42及び0.34であり、0に近い値を有する。検出窓323のように、検出窓23が歩行者を含まない場合、上半身尤度33A,43A及び下半身尤度33B,43Bはいずれも0に近い値を有する。 The detection window 323 does not include a pedestrian and includes a telephone pole in the right region. For this reason, the upper window 323a and the lower window 323b do not include the upper body and the lower body of the pedestrian. The upper body likelihood 33A and the lower body likelihood 33B calculated from the upper window 323a are 0.25 and 0.42, respectively, and have values close to 0. Similarly, the upper body likelihood 43A and the lower body likelihood 43B calculated from the lower window 323b are 0.42 and 0.34, respectively, and have values close to 0. When the detection window 23 does not include a pedestrian as in the detection window 323, the upper body likelihoods 33A and 43A and the lower body likelihoods 33B and 43B all have values close to zero.
このように、上部窓31及び下部窓41が歩行者を含むか否かによって、4種類の尤度が変化する。後述する判断処理(ステップS5)では、これら4種類の尤度の関係を考慮して、検出窓23に歩行者が存在するか否かが判断される。 Thus, four kinds of likelihood changes with whether the upper window 31 and the lower window 41 include a pedestrian. In the determination process (step S5) described later, it is determined whether or not there is a pedestrian in the detection window 23 in consideration of the relationship between these four types of likelihoods.
(判断処理(ステップS5))
再び、図3を参照する。判断部15は、尤度算出部14により4種類の尤度が算出された(ステップS4)後に、これら4種類の尤度に基づいて、検出窓23に歩行者が存在するか否かを判断する(ステップS5)。以下、判断処理(ステップS5)について詳しく説明する。
(Judgment process (step S5))
Reference is again made to FIG. After the four types of likelihood are calculated by the likelihood calculating unit 14 (step S4), the determining unit 15 determines whether or not a pedestrian exists in the detection window 23 based on these four types of likelihood. (Step S5). Hereinafter, the determination process (step S5) will be described in detail.
図7は、判断部15により実行される判断処理(ステップS5)のフローチャートである。図7において、Lu1は、上半身尤度33Aが有する値を示し、Lu2は、上半身尤度43Aが有する値を示す。Ld1は、下半身尤度33Bが有する値を示し、Ld2は、下半身尤度43Bが有する値を示す。 FIG. 7 is a flowchart of the determination process (step S5) executed by the determination unit 15. In FIG. 7, Lu1 indicates the value of the upper body likelihood 33A, and Lu2 indicates the value of the upper body likelihood 43A. Ld1 indicates the value of the lower body likelihood 33B, and Ld2 indicates the value of the lower body likelihood 43B.
判断部15は、2種類の積算値S1,S2を算出する(ステップS51)。積算値S1は、上部窓31から算出された上半身尤度33Aと下部窓41から算出された下半身尤度43Bとを積算することにより算出される。積算値S2は、下部窓41から算出された上半身尤度43Aと上部窓31から算出された下半身尤度33Bとを積算することにより算出される。 The determination unit 15 calculates two types of integrated values S1 and S2 (step S51). The integrated value S1 is calculated by integrating the upper body likelihood 33A calculated from the upper window 31 and the lower body likelihood 43B calculated from the lower window 41. The integrated value S2 is calculated by integrating the upper body likelihood 43A calculated from the lower window 41 and the lower body likelihood 33B calculated from the upper window 31.
判断部15は、積算値S1を予め設定されたしきい値Th1と比較する(ステップS52)。 The determination unit 15 compares the integrated value S1 with a preset threshold value Th1 (step S52).
図6の検出窓123,223から算出された4種類の尤度を参照して、しきい値Th1を決定する基準について説明する。検出窓123は、歩行者の全身を含む。このため、上部窓123aから算出される上半身尤度33Aと、下部窓123bから算出される下半身尤度43Bとは、共に1に近い値を有する。検出窓223は、下半身が隠れた歩行者を含む。このため、上部窓223aから算出される上半身尤度33Aは、1に近い値を有し、下部窓223bから算出される下半身尤度43Bは、0に近い値を有する。従って、検出窓23が、歩行者の全身を含む場合、下半身が隠れた歩行者を含む場合、上半身が隠れた歩行者を含む場合のいずれにおいても、上半身尤度33A及び下半身尤度43Bの少なくとも一方が1に近い値を有する。これらの場合、積算値S1は、1よりも大きくなると考えられる。しきい値Th1は、検出窓23が歩行者の全身、下半身が隠れた歩行者、又は上半身が隠れた歩行者を含む場合における上半身尤度33A及び下半身尤度43Bの傾向を考慮して決定される。しきい値Th1は、例えば、1.0に設定される。積算値S1がしきい値Th1よりも小さい場合(ステップS52においてNo)、判断部15は、検出窓23に歩行者が存在しないと判断し(ステップS56)、図7に示す処理を終了する。 The criteria for determining the threshold value Th1 will be described with reference to the four types of likelihood calculated from the detection windows 123 and 223 in FIG. The detection window 123 includes the whole body of the pedestrian. Therefore, the upper body likelihood 33A calculated from the upper window 123a and the lower body likelihood 43B calculated from the lower window 123b both have values close to 1. The detection window 223 includes a pedestrian whose lower body is hidden. Therefore, the upper body likelihood 33A calculated from the upper window 223a has a value close to 1, and the lower body likelihood 43B calculated from the lower window 223b has a value close to 0. Therefore, in the case where the detection window 23 includes the whole body of the pedestrian, the pedestrian whose lower body is hidden, or the pedestrian whose upper body is hidden, at least the upper body likelihood 33A and the lower body likelihood 43B are included. One has a value close to 1. In these cases, the integrated value S1 is considered to be larger than 1. The threshold value Th1 is determined in consideration of the tendency of the upper body likelihood 33A and the lower body likelihood 43B when the detection window 23 includes a pedestrian's whole body, a pedestrian whose lower body is hidden, or a pedestrian whose upper body is hidden. The The threshold value Th1 is set to 1.0, for example. When integrated value S1 is smaller than threshold value Th1 (No in step S52), determination unit 15 determines that there is no pedestrian in detection window 23 (step S56), and ends the process shown in FIG.
一方、積算値S1がしきい値Th1以上である場合(ステップS52においてYes)、判断部15は、積算値S2を予め設定されたしきい値Th2と比較する(ステップS53)。 On the other hand, when integrated value S1 is equal to or greater than threshold value Th1 (Yes in step S52), determination unit 15 compares integrated value S2 with preset threshold value Th2 (step S53).
図6の検出窓223から算出された4種類の尤度を参照して、しきい値Th2を決定する基準について説明する。検出窓223は、上半身が隠れた歩行者を含む。このため、上部窓223aから算出される上半身尤度33Aは、1に近い値を有し、上部窓223aから算出される下半身尤度33Bは、0に近い値を有する。下部窓123bは、歩行者の下半身が隠れているため、歩行者の下半身を含まない。このため、下部窓123bから算出される上半身尤度43A及び下半身尤度43Bは、0に近い値を有する。つまり、検出窓23が、下半身が隠れた歩行者を含む場合、上半身尤度43A及び下半身尤度33Bが共に0に近い値を有する。同様に、検出窓23が、歩行者の全身を含む場合、及び、上半身が隠れた歩行者を含む場合においても、上半身尤度43A及び下半身尤度33Bが共に0に近い値を有する。このように、しきい値Th2は、検出窓23が歩行者の全身を含む場合、上半身が隠れた歩行者を含む場合、下半身が隠れた歩行者を含む場合に算出される上半身尤度43A及び下半身尤度33Bの傾向を考慮して決定される。例えば、しきい値Th2は、0.9に設定される。 The criteria for determining the threshold value Th2 will be described with reference to the four types of likelihood calculated from the detection window 223 of FIG. The detection window 223 includes a pedestrian whose upper body is hidden. For this reason, the upper body likelihood 33A calculated from the upper window 223a has a value close to 1, and the lower body likelihood 33B calculated from the upper window 223a has a value close to 0. The lower window 123b does not include the lower body of the pedestrian because the lower body of the pedestrian is hidden. For this reason, the upper body likelihood 43A and the lower body likelihood 43B calculated from the lower window 123b have values close to zero. That is, when the detection window 23 includes a pedestrian whose lower body is hidden, both the upper body likelihood 43A and the lower body likelihood 33B have values close to zero. Similarly, when the detection window 23 includes the whole body of a pedestrian and a pedestrian whose upper body is hidden, the upper body likelihood 43A and the lower body likelihood 33B both have values close to zero. Thus, the threshold Th2 is calculated when the detection window 23 includes the pedestrian's whole body, the pedestrian whose upper body is hidden, the upper body likelihood 43A calculated when the lower body includes a pedestrian whose lower body is hidden, and It is determined in consideration of the tendency of the lower body likelihood 33B. For example, the threshold value Th2 is set to 0.9.
積算値S2がしきい値Th2よりも大きい場合(ステップS53においてNo)、判断部15は、検出窓23に歩行者が存在しないと判断し(ステップS56)、図7に示す処理を終了する。 When integrated value S2 is larger than threshold value Th2 (No in step S53), determination unit 15 determines that there is no pedestrian in detection window 23 (step S56), and ends the process shown in FIG.
一方、積算値S2がしきい値Th2以下である場合(ステップS53においてYes)、判断部15は、検出窓23に歩行者が存在すると判断する(ステップS54)。判断部15は、ステップS55を実行して、検出窓23に存在する歩行者の上半身又は下半身が隠れているか否かを判断する。ステップS55の詳細は、後述する。 On the other hand, when integrated value S2 is equal to or smaller than threshold value Th2 (Yes in step S53), determination unit 15 determines that there is a pedestrian in detection window 23 (step S54). The determination part 15 performs step S55, and determines whether the upper body or lower body of the pedestrian who exists in the detection window 23 is hidden. Details of step S55 will be described later.
以下、具体例として、図6に示す各検出窓を対象とした判断処理(ステップS5)を説明する。しきい値Th1が1.0に設定され、しきい値Th2が0.9に設定されている。 Hereinafter, as a specific example, the determination process (step S5) for each detection window shown in FIG. 6 will be described. The threshold value Th1 is set to 1.0, and the threshold value Th2 is set to 0.9.
最初に、検出窓123について説明する。上部窓123aから算出された上半身尤度33A及び下半身尤度33Bは、0.94及び0.32である。下部窓123bから算出された上半身尤度43A及び下半身尤度43Bは、0.43及び0.89である。ステップS51の結果、積算値S1は、1.83である。積算値S2は、0.75である。積算値S1がしきい値Th1以上である(ステップS52においてYes)。積算値S2がしきい値Th2以下である(ステップS53においてYes)。従って、判断部15は、検出窓123に歩行者が存在すると判断する(ステップS54)。 First, the detection window 123 will be described. The upper body likelihood 33A and the lower body likelihood 33B calculated from the upper window 123a are 0.94 and 0.32. The upper body likelihood 43A and the lower body likelihood 43B calculated from the lower window 123b are 0.43 and 0.89. As a result of step S51, the integrated value S1 is 1.83. The integrated value S2 is 0.75. Integrated value S1 is equal to or greater than threshold value Th1 (Yes in step S52). Integrated value S2 is equal to or smaller than threshold value Th2 (Yes in step S53). Therefore, the determination unit 15 determines that there is a pedestrian in the detection window 123 (step S54).
検出窓223において、上部窓223aから算出された上半身尤度33A及び下半身尤度33Bは、0.91及び0.39である。下部窓223bから算出された上半身尤度43A及び下半身尤度43Bは、0.26及び0.28である。ステップS51の結果、積算値S1は、1.19である。積算値S2は、0.65である。 積算値S1がしきい値Th1以上である(ステップS52においてYes)。積算値S2がしきい値Th2以下である(ステップS53においてYes)。従って、判断部15は、検出窓223に歩行者が存在すると判断する(ステップS54)。 In the detection window 223, the upper body likelihood 33A and the lower body likelihood 33B calculated from the upper window 223a are 0.91 and 0.39. The upper body likelihood 43A and the lower body likelihood 43B calculated from the lower window 223b are 0.26 and 0.28. As a result of step S51, the integrated value S1 is 1.19. The integrated value S2 is 0.65. Integrated value S1 is equal to or greater than threshold value Th1 (Yes in step S52). Integrated value S2 is equal to or smaller than threshold value Th2 (Yes in step S53). Therefore, the determination unit 15 determines that there is a pedestrian in the detection window 223 (step S54).
検出窓323において、上部窓323aから算出された上半身尤度33A及び下半身尤度33Bは、0.25及び0.42である。下部窓323bから算出された上半身尤度43A及び下半身尤度43Bは、0.26及び0.0.34である。ステップS51の結果、積算値S1は、0.59である。積算値S2は、0.68である。判断部15は、積算値S1がしきい値Th1よりも小さいため(ステップS52においてNo)、検出窓23に歩行者が存在しないと判断する(ステップS56)。 In the detection window 323, the upper body likelihood 33A and the lower body likelihood 33B calculated from the upper window 323a are 0.25 and 0.42. The upper body likelihood 43A and the lower body likelihood 43B calculated from the lower window 323b are 0.26 and 0.0.34. As a result of step S51, the integrated value S1 is 0.59. The integrated value S2 is 0.68. Since integrated value S1 is smaller than threshold value Th1 (No in step S52), determination unit 15 determines that there is no pedestrian in detection window 23 (step S56).
このように、判断部15は、上部窓31から算出される上半身尤度33Aと下部窓41から算出される下半身尤度43Bとを積算した積算値S1と、上部窓31から算出される下半身尤度33Bと下部窓41から算出される上半身尤度43Aとを積算した積算値S2とを用いて、検出窓23に歩行者が存在するか否かを判断する。これにより、検出窓23に歩行者が存在するか否かを高い精度で判断できる。以下、この理由を説明する。 Thus, the determination unit 15 integrates the integrated value S1 obtained by integrating the upper body likelihood 33A calculated from the upper window 31 and the lower body likelihood 43B calculated from the lower window 41, and the lower body likelihood calculated from the upper window 31. Whether or not there is a pedestrian in the detection window 23 is determined using the integrated value S2 obtained by integrating the degree 33B and the upper body likelihood 43A calculated from the lower window 41. Thereby, it can be judged with high accuracy whether a pedestrian exists in the detection window 23 or not. Hereinafter, the reason will be described.
検出窓23が歩行者を含まないにも関わらず、上部窓31から算出される上半身尤度33A及び下部窓41から算出される下半身尤度43Bが1に近い値を有する場合がある。この場合、積算値S1がしきい値Th1以上となる可能性が高い(ステップS52においてYes)。ステップS52のみを用いて、検出窓23に歩行者が存在するか否かを判断した場合には、歩行者でないものを誤って歩行者として検出するおそれがある。 Although the detection window 23 does not include a pedestrian, the upper body likelihood 33A calculated from the upper window 31 and the lower body likelihood 43B calculated from the lower window 41 may have values close to 1. In this case, there is a high possibility that the integrated value S1 will be equal to or greater than the threshold value Th1 (Yes in step S52). When it is determined whether or not there is a pedestrian in the detection window 23 using only step S52, there is a possibility that a non-pedestrian is erroneously detected as a pedestrian.
しかし、検出窓23が歩行者の全身、上半身が隠れた歩行者、又は下半身が隠れた歩行者を含む場合、上部窓31から算出される上半身尤度33A及び下半身尤度33Bが共に1に近い値となることはなく、下部窓41から算出される上半身尤度43A及び下半身尤度43Bが共に1に近い値となることはない。従って、積算値S1がしきい値Th1以上となる場合(ステップS52においてYes)、判断部15は、積算値S2をしきい値Th2と比較することにより、歩行者でないものを誤って歩行者として検出することを防ぐことができる。 However, when the detection window 23 includes a pedestrian's whole body, a pedestrian whose upper body is hidden, or a pedestrian whose lower body is hidden, the upper body likelihood 33A and the lower body likelihood 33B calculated from the upper window 31 are both close to 1. The upper body likelihood 43A and the lower body likelihood 43B calculated from the lower window 41 are not both close to 1. Therefore, when integrated value S1 is equal to or greater than threshold value Th1 (Yes in step S52), determination unit 15 compares the integrated value S2 with threshold value Th2, thereby erroneously determining a non-pedestrian as a pedestrian. Detection can be prevented.
(隠れ検出処理(ステップS55))
図8は、隠れ検出処理(ステップS55)のフローチャートである。図8に示す処理は、判断部15が検出窓23に歩行者が存在すると判断した場合(ステップS54)に実行される。
(Hidden detection process (step S55))
FIG. 8 is a flowchart of the hidden detection process (step S55). The process shown in FIG. 8 is executed when the determination unit 15 determines that there is a pedestrian in the detection window 23 (step S54).
隠れ検出処理(ステップS55)では、4種類の尤度のうち、上部窓31から算出される上半身尤度33A及び下部窓41から算出される下半身尤度43Bが用いられる。 In the hidden detection process (step S55), among the four types of likelihood, the upper body likelihood 33A calculated from the upper window 31 and the lower body likelihood 43B calculated from the lower window 41 are used.
判断部15は、上半身尤度33Aをしきい値Th3と比較する(ステップS551)。しきい値Th3は、上部窓31に歩行者の上半身が存在するか否かを判断するための基準値であり、例えば、0.8である。 Determination unit 15 compares upper body likelihood 33A with threshold value Th3 (step S551). The threshold value Th3 is a reference value for determining whether or not the upper body of the pedestrian exists in the upper window 31, and is, for example, 0.8.
上半身尤度33Aがしきい値Th3以下である場合(ステップS551においてYes)、判断部15は、検出窓23に存在する歩行者の上半身が隠れていると判断する(ステップS552)。一方、上半身尤度33Aがしきい値Th3よりも大きい場合(ステップS551においてNo)、判断部15は、検出窓23に存在する歩行者の上半身が隠れていないと判断する(ステップS555)。つまり、判断部15は、検出窓23において歩行者の上半身を視認できると判断する。 When upper body likelihood 33A is equal to or less than threshold value Th3 (Yes in step S551), determination unit 15 determines that the upper body of the pedestrian existing in detection window 23 is hidden (step S552). On the other hand, when upper body likelihood 33A is larger than threshold value Th3 (No in step S551), determination unit 15 determines that the upper body of the pedestrian existing in detection window 23 is not hidden (step S555). That is, the determination unit 15 determines that the upper body of the pedestrian can be visually recognized in the detection window 23.
次に、判断部15は、下半身尤度43Bをしきい値Th4と比較する(ステップS553)。しきい値Th4は、下部窓41に歩行者の下半身が存在するか否かを判断するための基準値であり、例えば、0.8である。なお、しきい値Th4は、しきい値Th3と異なっていてもよい。 Next, the determination unit 15 compares the lower body likelihood 43B with the threshold value Th4 (step S553). The threshold value Th4 is a reference value for determining whether or not the lower body of the pedestrian is present in the lower window 41, and is, for example, 0.8. The threshold value Th4 may be different from the threshold value Th3.
下半身尤度43Bがしきい値Th4以下である場合(ステップS553においてYes)、判断部15は、検出窓23に存在する歩行者の下半身が隠れていると判断する(ステップS554)。一方、下半身尤度43Bがしきい値Th4よりも大きい場合(ステップS553においてNo)、判断部15は、検出窓23に存在する歩行者の下半身が隠れていないと判断する(ステップS556)。つまり、判断部15は、検出窓23において歩行者の下半身を視認できると判断する。 If lower body likelihood 43B is equal to or less than threshold value Th4 (Yes in step S553), determination unit 15 determines that the lower body of the pedestrian existing in detection window 23 is hidden (step S554). On the other hand, when lower body likelihood 43B is larger than threshold Th4 (No in step S553), determination unit 15 determines that the lower body of the pedestrian existing in detection window 23 is not hidden (step S556). That is, the determination unit 15 determines that the lower body of the pedestrian can be visually recognized in the detection window 23.
以下、検出窓123,223を用いて、隠れ検出処理(ステップS55)の具体例を説明する。判断部15は、検出窓123に歩行者が存在すると判断する(ステップS54。図7参照)。この場合、検出窓123について図8に示す処理が実行される。 Hereinafter, a specific example of the hidden detection process (step S55) will be described using the detection windows 123 and 223. The determination unit 15 determines that a pedestrian is present in the detection window 123 (step S54, see FIG. 7). In this case, the processing shown in FIG.
図6に示すように、上部窓123aから算出された上半身尤度33Aは、0.94であり、下部窓123bから算出された下半身尤度43Bは、0.89である。判断部15は、上半身尤度33Aがしきい値Th3よりも大きいため(ステップS551においてNo)、検出窓123において上半身の隠れがないと判断する(ステップS555)。判断部15は、下半身尤度43Bがしきい値Th4よりも大きいため(ステップS553においてNo)、検出窓123において下半身の隠れがないと判断する(ステップS556)。判断部15は、検出窓123から歩行者が検出され、検出された歩行者の上半身及び下半身が隠れていないことを示す結果データ25を生成する。 As shown in FIG. 6, the upper body likelihood 33A calculated from the upper window 123a is 0.94, and the lower body likelihood 43B calculated from the lower window 123b is 0.89. Since the upper body likelihood 33A is larger than the threshold value Th3 (No in step S551), the determination unit 15 determines that the upper body is not hidden in the detection window 123 (step S555). The determination unit 15 determines that there is no hiding of the lower body in the detection window 123 (step S556) because the lower body likelihood 43B is greater than the threshold value Th4 (No in step S553). The determination unit 15 detects the pedestrian from the detection window 123 and generates result data 25 indicating that the detected upper and lower pedestrians are not hidden.
次に、検出窓223について説明する。上述のように、判断部15は、検出窓223に歩行者が存在すると判断する(ステップS54。図7参照)。この場合、検出窓223について図8に示す処理が実行される。 Next, the detection window 223 will be described. As described above, the determination unit 15 determines that there is a pedestrian in the detection window 223 (step S54, see FIG. 7). In this case, the process shown in FIG. 8 is executed for the detection window 223.
図6に示すように、上部窓223aから算出された上半身尤度33Aは、0.91であり、下部窓223bから算出された下半身尤度43Bは、0.28である。判断部15は、上半身尤度33Aがしきい値Th3よりも大きいため(ステップS551においてNo)、検出窓223において上半身の隠れがないと判断する(ステップS555)。判断部15は、下半身尤度43Bがしきい値Th4以下であるため(ステップS553においてYes)、検出窓223において下半身が隠れていると判断する(ステップS554)。判断部15は、検出窓223から歩行者が検出され、検出された歩行者の下半身が隠れていることを示す結果データ25を生成する。 As shown in FIG. 6, the upper body likelihood 33A calculated from the upper window 223a is 0.91, and the lower body likelihood 43B calculated from the lower window 223b is 0.28. The determination unit 15 determines that the upper body is not hidden in the detection window 223 because the upper body likelihood 33A is larger than the threshold Th3 (No in step S551) (step S555). The determination unit 15 determines that the lower body is hidden in the detection window 223 because the lower body likelihood 43B is equal to or less than the threshold value Th4 (Yes in Step S553) (Step S554). The determination unit 15 generates result data 25 indicating that a pedestrian is detected from the detection window 223 and that the lower body of the detected pedestrian is hidden.
以上説明したように、人物検出装置1は、上部窓31から上半身尤度33A及び下半身尤度33Bを算出し、下部窓41から上半身尤度43A及び下半身尤度43Bを算出する。人物検出装置1は、これら4種類の尤度を用いて、検出窓23に歩行者が存在するか否かを判断する。これにより、撮影画像21から歩行者を高精度で検出することができる。 As described above, the person detection apparatus 1 calculates the upper body likelihood 33A and the lower body likelihood 33B from the upper window 31, and calculates the upper body likelihood 43A and the lower body likelihood 43B from the lower window 41. The person detection device 1 determines whether there is a pedestrian in the detection window 23 using these four types of likelihoods. Thereby, a pedestrian can be detected from the captured image 21 with high accuracy.
[第2の実施の形態]
本発明の第2の実施の形態に係る物体検出装置は、上記第1の実施の形態に係る人物検出装置1と同じ構成を備える(図1参照)。本実施の形態に係る物体検出装置は、図3に示す処理を実行して、撮影画像21から歩行者を検出する。
[Second Embodiment]
The object detection device according to the second embodiment of the present invention has the same configuration as the person detection device 1 according to the first embodiment (see FIG. 1). The object detection apparatus according to the present embodiment detects the pedestrian from the captured image 21 by executing the process shown in FIG.
本実施の形態において、判断部15の動作(判断処理(ステップS5))が、第1の実施の形態における判断部15の動作と異なる。以下、本実施の形態における判断部15の動作を中心に説明する。 In the present embodiment, the operation of the determination unit 15 (determination process (step S5)) is different from the operation of the determination unit 15 in the first embodiment. Hereinafter, the operation of the determination unit 15 in the present embodiment will be mainly described.
図9は、本実施の形態に係る物体検出装置により実行される判断処理(ステップS5)のフローチャートである。以下、図6及び図9を参照しながら、本実施の形態に係る物体検出装置により実行される判断処理を説明する。 FIG. 9 is a flowchart of the determination process (step S5) executed by the object detection apparatus according to the present embodiment. Hereinafter, the determination process executed by the object detection device according to the present embodiment will be described with reference to FIGS. 6 and 9.
図9において、Lu1は、上半身尤度33Aが有する値を示し、Lu2は、上半身尤度43Aが有する値を示す。Ld1は、下半身尤度33Bが有する値を示し、Ld2は、下半身尤度43Bが有する値を示す。 In FIG. 9, Lu1 shows the value which upper body likelihood 33A has, and Lu2 shows the value which upper body likelihood 43A has. Ld1 indicates the value of the lower body likelihood 33B, and Ld2 indicates the value of the lower body likelihood 43B.
判断部15は、2種類の差分絶対値D1,D2を算出する(ステップS71)。差分絶対値D1は、上部窓31から算出された上半身尤度33A及び下半身尤度33Bから算出される。差分絶対値D1は、上半身尤度33Aから下半身尤度33Bを減算し、減算により得られた差分値の絶対値を取ることにより算出される。差分絶対値D2は、下部窓41から算出された上半身尤度43A及び下半身尤度43Bから算出される。差分絶対値D2は、下半身尤度43Bから上半身尤度43Aを減算し、減算により得られた差分値の絶対値を取ることにより算出される。 The determination unit 15 calculates two types of absolute difference values D1 and D2 (step S71). The difference absolute value D1 is calculated from the upper body likelihood 33A and the lower body likelihood 33B calculated from the upper window 31. The difference absolute value D1 is calculated by subtracting the lower body likelihood 33B from the upper body likelihood 33A and taking the absolute value of the difference value obtained by the subtraction. The difference absolute value D2 is calculated from the upper body likelihood 43A and the lower body likelihood 43B calculated from the lower window 41. The difference absolute value D2 is calculated by subtracting the upper body likelihood 43A from the lower body likelihood 43B and taking the absolute value of the difference value obtained by the subtraction.
判断部15は、差分絶対値D1を予め設定されたしきい値Th5と比較する(ステップS72)。 The determination unit 15 compares the absolute difference value D1 with a preset threshold value Th5 (step S72).
検出窓23が、歩行者の全身を含む場合、上部窓31から算出される上半身尤度33Aは、1に近い値を有し、上部窓31から算出される下半身尤度33Bは、0に近い値を有する。検出窓23が、下半身が隠れた歩行者を含む場合、上部窓31から算出される上半身尤度33Aは、1に近い値を有し、上部窓31から算出される下半身尤度33Bが0に近い値を有する。このように、検出窓23が、歩行者の全身又は下半身が隠れた歩行者を含む場合、差分絶対値D1は、一定値以上の値を有すると考えられる。しきい値Th5は、検出窓23が、歩行者の全身又は下半身が隠れた歩行者を含む場合における上半身尤度33A及び下半身尤度33Bの傾向を考慮して決定される。例えば、しきい値Th5は、0.4に設定される。 When the detection window 23 includes the whole body of a pedestrian, the upper body likelihood 33A calculated from the upper window 31 has a value close to 1, and the lower body likelihood 33B calculated from the upper window 31 is close to 0. Has a value. When the detection window 23 includes a pedestrian whose lower body is hidden, the upper body likelihood 33A calculated from the upper window 31 has a value close to 1, and the lower body likelihood 33B calculated from the upper window 31 is 0. Has a close value. Thus, when the detection window 23 includes a pedestrian whose pedestrian's whole body or lower body is hidden, the difference absolute value D1 is considered to have a value equal to or greater than a certain value. The threshold value Th5 is determined in consideration of the tendency of the upper body likelihood 33A and the lower body likelihood 33B when the detection window 23 includes a pedestrian whose entire body or lower body of the pedestrian is hidden. For example, the threshold value Th5 is set to 0.4.
差分絶対値D1がしきい値Th5以上である場合(ステップS72においてYes)、判断部15は、検出窓23に歩行者が存在すると判断する(ステップS74)。そして、判断部15は、隠れ検出処理(ステップS55)を実行する。 When the difference absolute value D1 is equal to or greater than the threshold Th5 (Yes in Step S72), the determination unit 15 determines that a pedestrian exists in the detection window 23 (Step S74). And the judgment part 15 performs a hidden detection process (step S55).
一方、差分絶対値D1がしきい値Th5よりも小さい場合(ステップS72においてNo)、判断部15は、差分絶対値D2をしきい値Th6と比較する(ステップS73)。 On the other hand, when difference absolute value D1 is smaller than threshold value Th5 (No in step S72), determination unit 15 compares difference absolute value D2 with threshold value Th6 (step S73).
検出窓23が、歩行者の全身を含む場合、下部窓41から算出される上半身尤度43Aが0に近い値を有し、下部窓41から算出される下半身尤度43Bが1に近い値を有する。検出窓23が、上半身が隠れた歩行者を含む場合、下部窓41から算出される上半身尤度43Aが0に近い値を有し、下部窓41から算出される下半身尤度43Bが1に近い値を有する。このように、検出窓23が歩行者の全身又は上半身が隠れた歩行者を含む場合、差分絶対値D2は、差分絶対値D1と同様に、一定値以上の値を有すると考えられる。しきい値Th6は、検出窓23が、歩行者の全身、又は上半身が隠れた歩行者を含む場合における上半身尤度33A及び下半身尤度33Bの傾向を考慮して決定される。例えば、しきい値Th6は、0.4に設定される。しきい値Th6は、しきい値Th5と異なっていてもよい。 When the detection window 23 includes the whole body of a pedestrian, the upper body likelihood 43A calculated from the lower window 41 has a value close to 0, and the lower body likelihood 43B calculated from the lower window 41 has a value close to 1. Have. When the detection window 23 includes a pedestrian whose upper body is hidden, the upper body likelihood 43A calculated from the lower window 41 has a value close to 0, and the lower body likelihood 43B calculated from the lower window 41 is close to 1. Has a value. Thus, when the detection window 23 includes a pedestrian whose pedestrian's whole body or upper body is hidden, the difference absolute value D2 is considered to have a value equal to or greater than a certain value, like the difference absolute value D1. The threshold value Th6 is determined in consideration of the tendency of the upper body likelihood 33A and the lower body likelihood 33B when the detection window 23 includes a pedestrian whose entire body or pedestrian is hidden. For example, the threshold value Th6 is set to 0.4. The threshold value Th6 may be different from the threshold value Th5.
差分絶対値D2がしきい値Th6よりも小さい場合(ステップS73においてNo)、判断部15は、検出窓23に歩行者が存在しないと判断する(ステップS75)。一方、差分絶対値D2がしきい値Th6以上である場合(ステップS73においてYes)、判断部15は、検出窓23に歩行者が存在すると判断する(ステップS74)。 When difference absolute value D2 is smaller than threshold value Th6 (No in step S73), determination unit 15 determines that there is no pedestrian in detection window 23 (step S75). On the other hand, when the difference absolute value D2 is greater than or equal to the threshold Th6 (Yes in step S73), the determination unit 15 determines that a pedestrian is present in the detection window 23 (step S74).
以下、具体例として、図6に示す各検出窓を対象とした判断処理(ステップS5)を説明する。ここで、しきい値Th5,Th6が0.4に設定されている。 Hereinafter, as a specific example, the determination process (step S5) for each detection window shown in FIG. 6 will be described. Here, the threshold values Th5 and Th6 are set to 0.4.
最初に、検出窓123について説明する。上部窓123aから算出された上半身尤度33A及び下半身尤度33Bは、0.94及び0.32である。下部窓123bから算出された上半身尤度43A及び下半身尤度43Bは、0.43及び0.89である。ステップS71の結果、差分絶対値D1,D2は、それぞれ0.62,0.46である。判断部15は、差分絶対値D1がしきい値Th5以上であるため(ステップS72においてYes)。検出窓123に歩行者が存在すると判断する(ステップS74)。 First, the detection window 123 will be described. The upper body likelihood 33A and the lower body likelihood 33B calculated from the upper window 123a are 0.94 and 0.32. The upper body likelihood 43A and the lower body likelihood 43B calculated from the lower window 123b are 0.43 and 0.89. As a result of step S71, the absolute difference values D1 and D2 are 0.62 and 0.46, respectively. The determination unit 15 has the absolute difference value D1 equal to or greater than the threshold value Th5 (Yes in step S72). It is determined that there is a pedestrian in the detection window 123 (step S74).
次に、検出窓223について説明する。上部窓223aから算出された上半身尤度33A及び下半身尤度33Bは、0.91及び0.39である。下部窓223bから算出された上半身尤度43A及び下半身尤度43Bは、0.26及び0.28である。ステップS71の結果、差分絶対値D1,D2は、それぞれ0.52,0.02である。判断部15は、差分絶対値D1がしきい値Th5以上であるため(ステップS72においてYes)、検出窓223に歩行者が存在すると判断する(ステップS74)。 Next, the detection window 223 will be described. The upper body likelihood 33A and the lower body likelihood 33B calculated from the upper window 223a are 0.91 and 0.39. The upper body likelihood 43A and the lower body likelihood 43B calculated from the lower window 223b are 0.26 and 0.28. As a result of step S71, the absolute difference values D1 and D2 are 0.52 and 0.02, respectively. The determination unit 15 determines that there is a pedestrian in the detection window 223 because the absolute difference value D1 is equal to or greater than the threshold Th5 (Yes in Step S72) (Step S74).
次に、検出窓323について説明する。上部窓323aから算出された上半身尤度33A及び下半身尤度33Bは、0.25及び0.42である。下部窓123bから算出された上半身尤度43A及び下半身尤度43Bは、0.26及び0.0.34である。ステップS71の結果、差分絶対値D1,D2は、それぞれ0.17,0.08である。差分絶対値D1がしきい値Th5よりも小さく(ステップS72においてNo)、差分絶対値D2がしきい値Th6よりも小さい(ステップS73においてNo)。従って、判断部15は、検出窓23に歩行者が存在しないと判断する(ステップS75)。 Next, the detection window 323 will be described. The upper body likelihood 33A and the lower body likelihood 33B calculated from the upper window 323a are 0.25 and 0.42. The upper body likelihood 43A and the lower body likelihood 43B calculated from the lower window 123b are 0.26 and 0.0.34. As a result of step S71, the absolute difference values D1 and D2 are 0.17 and 0.08, respectively. Difference absolute value D1 is smaller than threshold value Th5 (No in step S72), and difference absolute value D2 is smaller than threshold value Th6 (No in step S73). Accordingly, the determination unit 15 determines that there is no pedestrian in the detection window 23 (step S75).
このように、判断部15は、上部窓31から算出される上半身尤度33Aと下半身尤度33Bとの差分絶対値D1と、下部窓41から算出される上半身尤度43Aと下半身尤度43Bとの差分絶対値D2とに基づいて、検出窓23に歩行者が存在するか否かを判断する。これにより、上記第1の実施の形態と同様に、検出窓23に歩行者が存在するか否かを高い精度で判断できる。 Thus, the determination unit 15 calculates the absolute difference D1 between the upper body likelihood 33A and the lower body likelihood 33B calculated from the upper window 31, and the upper body likelihood 43A and the lower body likelihood 43B calculated from the lower window 41. Whether or not there is a pedestrian in the detection window 23 is determined based on the difference absolute value D2. Thereby, similarly to the said 1st Embodiment, it can be judged with high precision whether a pedestrian exists in the detection window 23 or not.
上記実施の形態では、検出窓設定部12が、上部窓31及び下部窓41の設定に検出窓23を用いる例を説明したが、これに限られない。例えば、検出窓設定部12は、上部窓31を最初に設定し、上部窓31の中心と所定の位置関係にある座標を下部窓41の中心に設定することにより、下部窓41を設定してもよい。この場合、上部窓31の下に位置し、上部窓31から所定の距離にある座標を、下部窓41の中心に設定すればよい。 In the above-described embodiment, the detection window setting unit 12 uses the detection window 23 for setting the upper window 31 and the lower window 41. However, the present invention is not limited to this. For example, the detection window setting unit 12 sets the lower window 41 by first setting the upper window 31 and setting a coordinate having a predetermined positional relationship with the center of the upper window 31 at the center of the lower window 41. Also good. In this case, a coordinate located below the upper window 31 and at a predetermined distance from the upper window 31 may be set at the center of the lower window 41.
あるいは、検出窓設定部12は、下部窓41を最初に設定してもよい。この場合、検出窓設定部12は、下部窓41の中心よりも上に位置し、下部窓41の中心から所定の距離にある座標を上部窓31の中心に設定すればよい。 Alternatively, the detection window setting unit 12 may set the lower window 41 first. In this case, the detection window setting unit 12 may be set at the center of the upper window 31 at a predetermined distance from the center of the lower window 41 and positioned above the center of the lower window 41.
上記実施の形態では、特徴抽出部13Aが上部窓31、下部窓41及び上部歩行者画像51Aの各々からHOG特徴量を抽出する例を説明したが、これに限られない。特徴抽出部13Aは、上部歩行者画像51Aから歩行者の上半身の特徴を抽出することができる画像処理を実行すればよい。例えば、特徴抽出部13Aは、エッジを強調する処理を実行してもよい。つまり、特徴抽出部13Aは、上部歩行者画像51Aに対して実行される画像処理と同じ画像処理を、上部窓31及び下部窓41に対して実行すればよい。 In the above embodiment, the example in which the feature extraction unit 13A extracts the HOG feature amount from each of the upper window 31, the lower window 41, and the upper pedestrian image 51A has been described, but the present invention is not limited thereto. The feature extraction unit 13A may perform image processing that can extract the features of the upper body of the pedestrian from the upper pedestrian image 51A. For example, the feature extraction unit 13A may execute processing for enhancing an edge. That is, the feature extraction unit 13A may perform the same image processing as that performed on the upper pedestrian image 51A on the upper window 31 and the lower window 41.
同様に、特徴抽出部13Bが、上部窓31、下部窓41及び下部歩行者画像51Bの各々に対してエッジを強調する処理を実行する例を説明したが、これに限られない。特徴抽出部13Bは、下部歩行者画像51Bから歩行者の下半身の特徴を抽出することができる画像処理を実行すればよい。例えば、特徴抽出部13Bは、HOG特徴量を抽出する処理を実行してもよい。つまり、特徴抽出部13Bは、下部歩行者画像51Bに対して実行される画像処理と同じ画像処理を、上部窓31及び下部窓41に対して実行すればよい。 Similarly, although the feature extraction part 13B demonstrated the example which performs the process which emphasizes an edge with respect to each of the upper window 31, the lower window 41, and the lower pedestrian image 51B, it is not restricted to this. The feature extraction unit 13B may perform image processing that can extract the features of the lower body of the pedestrian from the lower pedestrian image 51B. For example, the feature extraction unit 13B may execute a process of extracting the HOG feature amount. That is, the feature extraction unit 13B may perform the same image processing as that performed on the lower pedestrian image 51B on the upper window 31 and the lower window 41.
上記実施の形態では、上半身尤度算出部14A及び下半身尤度算出部14Bがニューラルネットワークを用いる例を説明したが、これに限られない。上半身尤度算出部14A及び下半身尤度算出部14Bは、尤度を算出するためのアルゴリズムとして、ニューラルネットワーク以外のアルゴリズムを用いてもよい。また、上半身尤度算出部14A及び下半身尤度算出部14Bは、尤度を算出するためのアルゴリズムとして、互いに異なるアルゴリズムを使用してもよい。例えば、上半身尤度算出部14Aがサポートベクターマシンを使用し、下半身尤度算出部14Bが、ニューラルネットワークを使用してもよい。 In the above embodiment, an example in which the upper body likelihood calculation unit 14A and the lower body likelihood calculation unit 14B use a neural network has been described, but the present invention is not limited thereto. The upper body likelihood calculation unit 14A and the lower body likelihood calculation unit 14B may use an algorithm other than the neural network as an algorithm for calculating the likelihood. Further, the upper body likelihood calculating unit 14A and the lower body likelihood calculating unit 14B may use different algorithms as algorithms for calculating the likelihood. For example, the upper body likelihood calculation unit 14A may use a support vector machine, and the lower body likelihood calculation unit 14B may use a neural network.
なお、上記実施の形態では、学習の際に、歩行者画像51が人物検出装置1に入力される例を説明したが、これに限られない。例えば、上部歩行者画像51A及び下部歩行者画像51Bが、人物検出装置1に入力されてもよい。この場合、上部歩行者画像51Aは、画像変換部11及び検出窓設定部12を介さずに、特徴抽出部13Aに直接入力される。同様に、下部歩行者画像51Bは、特徴抽出部13Bに直接入力される。 In the above embodiment, an example in which the pedestrian image 51 is input to the person detection device 1 during learning has been described, but the present invention is not limited to this. For example, the upper pedestrian image 51 </ b> A and the lower pedestrian image 51 </ b> B may be input to the person detection device 1. In this case, the upper pedestrian image 51A is directly input to the feature extraction unit 13A without going through the image conversion unit 11 and the detection window setting unit 12. Similarly, the lower pedestrian image 51B is directly input to the feature extraction unit 13B.
また、上記実施の形態では、検出窓23に歩行者が検出された場合、判断部15が、隠れ検出処理(ステップS55)を実行する例を説明したが、これに限られない。判断部15は、隠れ検出処理(ステップS55)を実行しなくてもよい。 Moreover, although the said part demonstrated the example in which the judgment part 15 performs a hidden detection process (step S55) when a pedestrian is detected in the detection window 23 in the said embodiment, it is not restricted to this. The determination unit 15 may not execute the hidden detection process (step S55).
なお、上記実施の形態において、物体検出装置1に入力される歩行者画像のサイズが検出窓23のサイズと同じである例を説明したが、これに限られない。物体検出装置1に入力される歩行者画像51のアスペクト比が検出窓23のアスペクト比に一致していれば、歩行者画像51のサイズが検出窓23のサイズと同じでなくてもよい。この場合、上部窓31及び下部窓41が特徴抽出部13A,13Bに入力される前に、上部窓31及び下部窓41のサイズを上部歩行者画像51A及び下部歩行者画像51Bのサイズに一致するように変更すればよい。あるいは、上部特徴データ32A及び下部特徴データ42Aが上半身尤度算出部14Aに入力される前、上部特徴データ32B及び下部特徴データ42Bが下半身尤度算出部14Bに入力される前に、これらの特徴データのサイズを上部歩行者画像51A及び下部歩行者画像51Bのサイズに一致するように変更すればよい。あるいは、検出窓23から上部窓31及び下部窓41を生成する前に、検出窓23のサイズを歩行者画像31のサイズに一致するように変更すればよい。 In the above embodiment, the example in which the size of the pedestrian image input to the object detection device 1 is the same as the size of the detection window 23 has been described, but the present invention is not limited to this. As long as the aspect ratio of the pedestrian image 51 input to the object detection device 1 matches the aspect ratio of the detection window 23, the size of the pedestrian image 51 may not be the same as the size of the detection window 23. In this case, before the upper window 31 and the lower window 41 are input to the feature extraction units 13A and 13B, the sizes of the upper window 31 and the lower window 41 are matched with the sizes of the upper pedestrian image 51A and the lower pedestrian image 51B. It should be changed as follows. Alternatively, before the upper feature data 32A and the lower feature data 42A are input to the upper body likelihood calculation unit 14A, and before the upper feature data 32B and the lower feature data 42B are input to the lower body likelihood calculation unit 14B, these features What is necessary is just to change the size of data so that it may correspond to the size of 51 A of upper pedestrian images, and the lower pedestrian image 51B. Alternatively, the size of the detection window 23 may be changed to match the size of the pedestrian image 31 before the upper window 31 and the lower window 41 are generated from the detection window 23.
上記実施の形態で説明した人物検出装置1において、各機能部は、LSIなどの半導体装置により個別に1チップ化されても良いし、一部又は全部を含むように1チップ化されてもよい。集積回路化の手法はLSIに限るものではなく、専用回路又は汎用プロセッサーで実現してもよい。LSI製造後に、プログラムすることが可能なFPGA(Field Programmable Gate Array)や、LSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサを利用しても良い。 In the human detection device 1 described in the above embodiment, each functional unit may be individually made into one chip by a semiconductor device such as an LSI, or may be made into one chip so as to include a part or the whole. . The method of circuit integration is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. An FPGA (Field Programmable Gate Array) that can be programmed after manufacturing the LSI, or a reconfigurable processor that can reconfigure the connection and setting of circuit cells inside the LSI may be used.
また、上記実施の形態の各機能ブロックの処理の一部または全部は、プログラムにより実現されるものであってもよい。そして、上記実施の形態の各機能ブロックの処理の一部または全部は、コンピュータにおいて、中央演算装置(CPU)により行われる。また、それぞれの処理を行うためのプログラムは、ハードディスク、ROMなどの記憶装置に格納されており、ROMにおいて、あるいはRAMに読み出されて実行される。 In addition, a part or all of the processing of each functional block of the above embodiment may be realized by a program. A part or all of the processing of each functional block in the above embodiment is performed by a central processing unit (CPU) in the computer. In addition, a program for performing each processing is stored in a storage device such as a hard disk or a ROM, and is read out and executed in the ROM or the RAM.
また、上記実施形態の各処理をハードウェアにより実現してもよいし、ソフトウェア(OS(オペレーティングシステム)、ミドルウェア、あるいは、所定のライブラリとともに実現される場合を含む。)により実現してもよい。さらに、ソフトウェアおよびハードウェアの混在処理により実現しても良い。 Each processing of the above embodiment may be realized by hardware, or may be realized by software (including a case where the processing is realized together with an OS (Operating System), middleware, or a predetermined library). Further, it may be realized by mixed processing of software and hardware.
前述した方法をコンピュータに実行させるコンピュータプログラム及びそのプログラムを記録したコンピュータ読み取り可能な記録媒体は、本発明の範囲に含まれる。ここで、コンピュータ読み取り可能な記録媒体としては、例えば、フレキシブルディスク、ハードディスク、CD−ROM、MO、DVD、DVD−ROM、DVD−RAM、BD(Blu−ray Disc)、半導体メモリを挙げることができる。 A computer program that causes a computer to execute the above-described method and a computer-readable recording medium that records the program are included in the scope of the present invention. Here, examples of the computer-readable recording medium include a flexible disk, a hard disk, a CD-ROM, an MO, a DVD, a DVD-ROM, a DVD-RAM, a BD (Blu-ray Disc), and a semiconductor memory. .
上記コンピュータプログラムは、上記記録媒体に記録されたものに限られず、電気通信回線、無線又は有線通信回線、インターネットを代表とするネットワーク等を経由して伝送されるものであってもよい。 The computer program is not limited to the one recorded on the recording medium, and may be transmitted via a telecommunication line, a wireless or wired communication line, a network represented by the Internet, or the like.
1 人物検出装置
11 画像変換部
12 検出窓設定部
13A,13B 特徴抽出部
14 尤度算出部
14A 上半身尤度算出部
14B 下半身尤度算出部
15 判断部
16 学習部
17 記憶部
21 撮影画像
23,123,223,323 検出窓
31,123a,223a,323a 上部窓
41,123b,223b,323b 下部窓
33A,43A 上半身尤度
33B,43B 下半身尤度
DESCRIPTION OF SYMBOLS 1 Person detection apparatus 11 Image conversion part 12 Detection window setting part 13A, 13B Feature extraction part 14 Likelihood calculation part 14A Upper body likelihood calculation part 14B Lower body likelihood calculation part 15 Judgment part 16 Learning part 17 Storage part 21 Captured image 23, 123, 223, 323 Detection window 31, 123a, 223a, 323a Upper window 41, 123b, 223b, 323b Lower window 33A, 43A Upper body likelihood 33B, 43B Lower body likelihood
Claims (6)
前記第1窓領域が人物の上半身を含むであろう第1上半身尤度と、前記第2窓領域が人物の上半身を含むであろう第2上半身尤度とを算出する上半身尤度算出部と、
前記第1窓領域が人物の下半身を含むであろう第1下半身尤度と、前記第2窓領域が人物の下半身を含むであろう第2下半身尤度とを算出する下半身尤度算出部と、
前記第1上半身尤度と、前記第2上半身尤度と、前記第1下半身尤度と、前記第2下半身尤度とに基づいて、前記フレーム画像に人物が存在するか否かを判断する判断部と、
を備える人物検出装置。 A detection window setting unit that sets a first window area for a frame image and sets a second window area located below the first window area;
An upper body likelihood calculating unit that calculates a first upper body likelihood that the first window region will include the upper body of the person and a second upper body likelihood that the second window region will include the upper body of the person; ,
A lower body likelihood calculator that calculates a first lower body likelihood that the first window region will include the lower body of the person and a second lower body likelihood that the second window region will include the lower body of the person; ,
Judgment whether or not a person is present in the frame image based on the first upper body likelihood, the second upper body likelihood, the first lower body likelihood, and the second lower body likelihood And
A person detection device comprising:
前記判断部は、前記第1上半身尤度と前記第2下半身尤度との積算値が第1のしきい値以上であり、かつ、前記第2上半身尤度と前記第1下半身尤度との積算値が第2のしきい値以下である場合、前記フレーム画像に人物が存在すると判断する人物検出装置。 The person detection device according to claim 1,
The determination unit is configured such that an integrated value of the first upper body likelihood and the second lower body likelihood is not less than a first threshold value, and the second upper body likelihood and the first lower body likelihood are A person detection device that determines that a person is present in the frame image when the integrated value is equal to or less than a second threshold value.
前記判断部は、前記第1上半身尤度と前記第2上半身尤度との差分絶対値が所定の上半身基準値以上である場合、又は、前記第1下半身尤度と前記第2下半身尤度との差分絶対値が所定の下半身基準値以上である場合、前記フレーム画像に人物が存在すると判断する人物検出装置。 The person detection device according to claim 1,
The determination unit, when the difference absolute value between the first upper body likelihood and the second upper body likelihood is greater than or equal to a predetermined upper body reference value, or the first lower body likelihood and the second lower body likelihood A person detection device that determines that a person is present in the frame image when the absolute difference value of the frame is equal to or greater than a predetermined lower body reference value.
前記判断部により前記フレーム画像に人物が存在すると判断された場合、前記フレーム画像内の人物の上半身又は下半身が隠れているか否かを判断する隠れ検出部、
を備える人物検出装置。 The person detection device according to any one of claims 1 to 3, further comprising:
When the determination unit determines that a person is present in the frame image, a hidden detection unit that determines whether the upper body or lower body of the person in the frame image is hidden;
A person detection device comprising:
前記第1窓領域に対して第1特徴抽出処理を実行して第1上部特徴データを生成し、前記第2窓領域に対して前記第1特徴抽出処理を実行して第1下部特徴データを生成する第1特徴抽出部と、
前記第1窓領域に対して第2特徴抽出処理を実行して第2上部特徴データを生成し、前記第2窓領域に対して前記第2特徴抽出処理を実行して第2下部特徴データを生成する第2特徴抽出部と、
を備え、
前記上半身尤度算出部は、前記第1上部特徴データから前記第1上半身尤度を算出し、前記第1下部特徴データから前記第2上半身尤度を算出し、
前記下半身尤度算出部は、前記第2上部特徴データから前記第1下半身尤度を算出し、前記第2下部特徴データから前記第2下半身尤度を算出する人物検出装置。 The person detection device according to any one of claims 1 to 4, further comprising:
First feature extraction processing is performed on the first window region to generate first upper feature data, and first feature extraction processing is performed on the second window region to generate first lower feature data. A first feature extraction unit to be generated;
Second feature extraction processing is performed on the first window region to generate second upper feature data, and second feature extraction processing is performed on the second window region to generate second lower feature data. A second feature extraction unit to be generated;
With
The upper body likelihood calculating unit calculates the first upper body likelihood from the first upper feature data, calculates the second upper body likelihood from the first lower feature data,
The lower body likelihood calculating unit calculates the first lower body likelihood from the second upper feature data and calculates the second lower body likelihood from the second lower feature data.
フレーム画像に対して、第1窓領域を設定し、前記第1窓領域の下に位置する第2窓領域を設定するステップと、
前記第1窓領域が人物の上半身を含むであろう第1上半身尤度と、前記第2窓領域が人物の上半身を含むであろう第2上半身尤度とを算出するステップと、
前記第1窓領域が人物の下半身を含むであろう第1下半身尤度と、前記第2窓領域が人物の下半身を含むであろう第2下半身尤度とを算出するステップと、
前記第1上半身尤度と、前記第2上半身尤度と、前記第1下半身尤度と、前記第2下半身尤度とに基づいて、前記フレーム画像に人物が存在するか否かを判断するステップと、
を実行させるための人物検出プログラム。 In the computer installed in the person detection device,
Setting a first window area for the frame image and setting a second window area located below the first window area;
Calculating a first upper body likelihood that the first window region will include the upper body of a person and a second upper body likelihood that the second window region will include the upper body of the person;
Calculating a first lower body likelihood that the first window region will include the lower body of a person and a second lower body likelihood that the second window region will include the lower body of the person;
Determining whether a person exists in the frame image based on the first upper body likelihood, the second upper body likelihood, the first lower body likelihood, and the second lower body likelihood. When,
A person detection program for running.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014066860A JP6340227B2 (en) | 2014-03-27 | 2014-03-27 | Human detection device |
| PCT/JP2015/055010 WO2015146414A1 (en) | 2014-03-27 | 2015-02-23 | Person detection device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014066860A JP6340227B2 (en) | 2014-03-27 | 2014-03-27 | Human detection device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2015191338A JP2015191338A (en) | 2015-11-02 |
| JP6340227B2 true JP6340227B2 (en) | 2018-06-06 |
Family
ID=54194949
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2014066860A Expired - Fee Related JP6340227B2 (en) | 2014-03-27 | 2014-03-27 | Human detection device |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP6340227B2 (en) |
| WO (1) | WO2015146414A1 (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3583450A1 (en) | 2017-02-20 | 2019-12-25 | 3M Innovative Properties Company | Optical articles and systems interacting with the same |
| CN108665476B (en) * | 2017-03-31 | 2022-03-11 | 华为技术有限公司 | A pedestrian tracking method and electronic device |
| KR20200061370A (en) | 2017-09-27 | 2020-06-02 | 쓰리엠 이노베이티브 프로퍼티즈 캄파니 | Personal protective equipment management system using optical patterns for equipment and safety monitoring |
| JP2021182298A (en) * | 2020-05-20 | 2021-11-25 | 株式会社デンソー | Pattern learning device, object recognition device, and driving assistance device for vehicle |
| CN112101139B (en) * | 2020-08-27 | 2024-05-03 | 普联国际有限公司 | Human shape detection method, device, equipment and storage medium |
| JP7707643B2 (en) * | 2021-05-17 | 2025-07-15 | 富士通株式会社 | Identification program, identification method, and information processing device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5712968B2 (en) * | 2012-05-31 | 2015-05-07 | 株式会社デンソー | Human detection device |
-
2014
- 2014-03-27 JP JP2014066860A patent/JP6340227B2/en not_active Expired - Fee Related
-
2015
- 2015-02-23 WO PCT/JP2015/055010 patent/WO2015146414A1/en not_active Ceased
Also Published As
| Publication number | Publication date |
|---|---|
| JP2015191338A (en) | 2015-11-02 |
| WO2015146414A1 (en) | 2015-10-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11789545B2 (en) | Information processing device and method, program and recording medium for identifying a gesture of a person from captured image data | |
| JP6340227B2 (en) | Human detection device | |
| JP5726125B2 (en) | Method and system for detecting an object in a depth image | |
| US9020251B2 (en) | Image processing apparatus and method | |
| JP5554984B2 (en) | Pattern recognition method and pattern recognition apparatus | |
| JP5376906B2 (en) | Feature amount extraction device, object identification device, and feature amount extraction method | |
| JP2008286725A (en) | Person detection apparatus and method | |
| CN109074646B (en) | Image recognition device and image recognition program | |
| CN110298318A (en) | Number of people human body associated detecting method, device and electronic equipment | |
| JP2012123626A (en) | Object detector and program | |
| JP4699298B2 (en) | Human body region extraction method, apparatus, and program | |
| CN1892702A (en) | Tracking apparatus | |
| JP6280412B2 (en) | Object detection device | |
| JP5648452B2 (en) | Image processing program and image processing apparatus | |
| JP6340228B2 (en) | Object detection device | |
| JP2010262576A (en) | Object detection apparatus and program | |
| JP5020920B2 (en) | Pedestrian detection device and program | |
| US10223583B2 (en) | Object detection apparatus | |
| JP5829155B2 (en) | Pedestrian detection device and program | |
| CN119229518A (en) | A method, system, device and storage medium for building a target behavior detection model | |
| JP6076128B2 (en) | Character recognition device and character recognition method | |
| US20260073672A1 (en) | Object subpart-guided filtering for object detection | |
| JP2024127790A (en) | MAPPING SYSTEM, METHOD AND PROGRAM FOR USING A MAPPING SYSTEM - Patent application | |
| JP6161931B2 (en) | Object detection device | |
| JP6565650B2 (en) | Object detection apparatus and object detection method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170215 |
|
| 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: 20180424 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180514 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6340227 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |