Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7740107B2 - Person detection device and person detection method - Google Patents
[go: Go Back, main page]

JP7740107B2 - Person detection device and person detection method - Google Patents

Person detection device and person detection method

Info

Publication number
JP7740107B2
JP7740107B2 JP2022066380A JP2022066380A JP7740107B2 JP 7740107 B2 JP7740107 B2 JP 7740107B2 JP 2022066380 A JP2022066380 A JP 2022066380A JP 2022066380 A JP2022066380 A JP 2022066380A JP 7740107 B2 JP7740107 B2 JP 7740107B2
Authority
JP
Japan
Prior art keywords
feet
captured image
image
camera
detection unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2022066380A
Other languages
Japanese (ja)
Other versions
JP2023156802A (en
Inventor
卓人 三歩一
健 岡山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Industries Corp
Original Assignee
Toyota Industries Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyota Industries Corp filed Critical Toyota Industries Corp
Priority to JP2022066380A priority Critical patent/JP7740107B2/en
Publication of JP2023156802A publication Critical patent/JP2023156802A/en
Application granted granted Critical
Publication of JP7740107B2 publication Critical patent/JP7740107B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)

Description

本発明は、人検出装置及び人検出方法に関する。 The present invention relates to a human detection device and a human detection method.

特許文献1には、作業機械の周辺を監視する作業機械の周辺監視装置が開示されている。作業機械の周辺監視装置は、撮影装置と、プロセッサとを備えている。撮影装置は、作業機械の周囲を撮影する。プロセッサは、撮影装置が撮影した作業機械の周囲画像を表す撮影画像データから人物画像を抽出する。プロセッサは、抽出した人物画像と撮影装置の設置パラメータとに基づいて、作業機械と人との距離を測定する。具体的には、プロセッサは、撮像画像データにおける人物画像の足元の二次元座標である足元座標を取得する。プロセッサは、取得した足元座標と撮影装置の設置パラメータとに基づいて、作業機械と人との距離を測定する。 Patent Document 1 discloses a work machine periphery monitoring device that monitors the periphery of a work machine. The work machine periphery monitoring device includes a camera and a processor. The camera captures images of the periphery of the work machine. The processor extracts a person image from captured image data that represents the image of the periphery of the work machine captured by the camera. The processor measures the distance between the work machine and the person based on the extracted person image and the installation parameters of the camera. Specifically, the processor acquires foot coordinates, which are the two-dimensional coordinates of the feet of the person image in the captured image data. The processor measures the distance between the work machine and the person based on the acquired foot coordinates and the installation parameters of the camera.

特許第6940906号公報Patent No. 6940906

撮影画像データにおいて足元が障害物によって隠れていると、足元座標の取得が困難になるため、足元座標を用いた作業機械と人との距離の測定も困難になる。 If the feet are obscured by obstacles in the captured image data, it becomes difficult to obtain the foot coordinates, which makes it difficult to measure the distance between the work machine and the person using the foot coordinates.

上記問題点を解決するための人検出装置は、カメラが撮像した画像である撮像画像から人を検出し、前記カメラから前記人までの距離を算出する検出部を備える人検出装置であって、前記検出部は、前記撮像画像に前記人を構成する部位である足元が含まれているか否かを判定し、前記撮像画像に前記足元が含まれていると判定した場合には、前記撮像画像における前記足元の位置に基づいて前記カメラから前記足元までの距離を算出し、前記撮像画像に前記足元が含まれていないと判定した場合には、前記撮像画像において前記人を構成する部位である第1部位及び第2部位の位置を検出し、検出した前記撮像画像における前記第1部位及び前記第2部位の位置から、前記撮像画像における前記第1部位と前記第2部位との距離である2点間距離を算出し、算出した前記2点間距離に基づいて前記撮像画像における前記足元の位置を推定し、推定した前記撮像画像における前記足元の位置に基づいて前記カメラから前記足元までの距離を算出することを要旨とする。 A human detection device that solves the above problems includes a detection unit that detects a person from a captured image captured by a camera and calculates the distance from the camera to the person. The detection unit determines whether the captured image includes the feet, which are a part of the person, and if it determines that the feet are included in the captured image, calculates the distance from the camera to the feet based on the position of the feet in the captured image. If it determines that the feet are not included in the captured image, it detects the positions of a first part and a second part, which are parts of the person, in the captured image, and calculates a point-to-point distance between the first part and the second part in the captured image from the detected positions of the first part and the second part in the captured image. It estimates the position of the feet in the captured image based on the calculated point-to-point distance. It also calculates the distance from the camera to the feet based on the estimated position of the feet in the captured image.

検出部は、撮像画像に足元が含まれていないと判定した場合には、撮像画像に含まれている人を構成する第1部位及び第2部位を用いることによって、撮像画像における足元の位置を推定する。よって、撮像画像に足元が含まれていなくても、カメラから人までの距離を算出できる。 If the detection unit determines that the feet are not included in the captured image, it estimates the position of the feet in the captured image by using the first and second parts that make up the person included in the captured image. Therefore, even if the feet are not included in the captured image, the distance from the camera to the person can be calculated.

上記人検出装置において、前記検出部は、前記撮像画像における前記第1部位の位置として前記人の頭部の位置を検出し、前記撮像画像における前記第2部位の位置として前記人の腰部又は肩部の位置を検出してもよい。 In the above-described human detection device, the detection unit may detect the position of the person's head as the position of the first part in the captured image, and detect the position of the person's waist or shoulders as the position of the second part in the captured image.

頭部、腰部、及び肩部は、人を構成する部位の中でも特徴的な部位であるため、検出部による第1部位及び第2部位の位置の検出が容易になる。
上記人検出装置において、前記検出部は、前記撮像画像における前記第2部位の位置として前記腰部の位置を検出し、前記頭部から前記腰部までの寸法に対する前記頭部から前記足元までの寸法比を用いて前記撮像画像における前記足元の位置を推定してもよい。
The head, waist, and shoulders are distinctive parts of a human body, and therefore the detection unit can easily detect the positions of the first and second parts.
In the above-mentioned human detection device, the detection unit may detect the position of the waist as the position of the second part in the captured image, and estimate the position of the feet in the captured image using the ratio of the dimension from the head to the feet to the dimension from the head to the waist.

第2部位として腰部を用いる場合、第2部位として肩部を用いる場合と比較して、2点間距離が長くなる。このため、頭部から腰部までの寸法に対する頭部から足元までの寸法比は、頭部から肩部までの寸法に対する頭部から足元までの寸法比よりも小さくなる。よって、撮像画像における足元の位置の推定精度が向上する。その結果、カメラから人までの距離の算出誤差を低減できる。 When the waist is used as the second part, the distance between the two points is longer than when the shoulders are used as the second part. Therefore, the ratio of the dimension from head to feet to the dimension from head to waist is smaller than the ratio of the dimension from head to feet to the dimension from head to shoulders. This improves the accuracy of estimating the position of the feet in the captured image. As a result, the calculation error of the distance from the camera to the person can be reduced.

上記人検出装置において、前記検出部は、画像が入力されると、当該画像における前記人を構成する部位の位置を出力するように学習された学習済みモデルを有し、前記学習済みモデルによって、前記撮像画像における前記人を構成する部位の位置を推定してもよい。 In the above-described human detection device, the detection unit may have a trained model that has been trained to output the positions of the body parts that make up the person in an image when the image is input, and the positions of the body parts that make up the person in the captured image may be estimated using the trained model.

学習済みモデルの学習度合いによっては、撮像画像における人を構成する部位の位置の検出精度を上げることができる。
上記問題点を解決するための人検出方法は、検出部が、カメラが撮像した画像である撮像画像から人を検出し、前記カメラから前記人までの距離を算出する人検出方法であって、前記検出部が前記撮像画像に前記人を構成する部位である足元が含まれているか否かを判定するステップを有し、前記撮像画像に前記足元が含まれていると判定された場合には、前記検出部が前記撮像画像における前記足元の位置に基づいて前記カメラから前記足元までの距離を算出するステップが行われ、前記撮像画像に前記足元が含まれていないと判定された場合には、前記検出部が、前記撮像画像において前記人を構成する部位である第1部位及び第2部位の位置を検出するステップと、前記検出部が、検出した前記撮像画像における前記第1部位及び前記第2部位の位置から、前記撮像画像における前記第1部位と前記第2部位との距離である2点間距離を算出するステップと、前記検出部が、算出した前記2点間距離に基づいて前記撮像画像における前記足元の位置を推定するステップと、前記検出部が、推定した前記撮像画像における前記足元の位置に基づいて前記カメラから前記足元までの距離を算出するステップと、が行われることを要旨とする。
Depending on the degree of learning of the trained model, the accuracy of detecting the positions of parts that make up a person in a captured image can be improved.
A human detection method for solving the above problems is a human detection method in which a detection unit detects a person from a captured image, which is an image captured by a camera, and calculates a distance from the camera to the person, the method comprising a step in which the detection unit determines whether the captured image includes feet, which are a part of the person, and if it is determined that the feet are included in the captured image, a step in which the detection unit calculates a distance from the camera to the feet based on the position of the feet in the captured image is carried out; and if it is determined that the feet are not included in the captured image, a step in which the detection unit detects positions of a first part and a second part, which are parts of the person, in the captured image, a step in which the detection unit calculates a point-to-point distance, which is the distance between the first part and the second part in the captured image, from the detected positions of the first part and the second part in the captured image, a step in which the detection unit estimates the position of the feet in the captured image based on the calculated point-to-point distance, and a step in which the detection unit calculates the distance from the camera to the feet based on the estimated position of the feet in the captured image.

撮像画像に足元が含まれていない場合には、撮像画像に含まれている人を構成する第1部位及び第2部位が用いられることによって、撮像画像における足元の位置が推定される。よって、撮像画像に足元が含まれていなくても、カメラから人までの距離を算出できる。 If the feet are not included in the captured image, the position of the feet in the captured image is estimated by using the first and second parts that make up the person included in the captured image. Therefore, even if the feet are not included in the captured image, the distance from the camera to the person can be calculated.

本発明によれば、撮像画像に足元が含まれていなくても、カメラから人までの距離を算出できる。 According to the present invention, the distance from the camera to a person can be calculated even if the feet are not included in the captured image.

フォークリフトの側面図である。FIG. 1 is a side view of a forklift. 人検出装置の構成を示すブロック図である。FIG. 2 is a block diagram showing the configuration of a human detection device. フォークリフトの平面図である。FIG. 1 is a plan view of a forklift. 人検出方法を示すフローチャートである。1 is a flowchart illustrating a human detection method. 撮像画像の一例である。10 is an example of a captured image. 撮像画像の一例である。10 is an example of a captured image. 撮像画像の一例である。10 is an example of a captured image. カメラから人の足元までの距離の算出方法を説明するための図である。FIG. 10 is a diagram for explaining a method for calculating the distance from the camera to the feet of a person. 変更例における足の位置の推定結果を示す図である。FIG. 10 is a diagram showing the estimation result of the foot position in a modified example. カメラが傾いている場合のカメラから人の足元までの距離の算出方法を説明するための図である。FIG. 10 is a diagram for explaining a method for calculating the distance from the camera to the feet of a person when the camera is tilted.

以下、人検出装置及び人検出方法を具体化した一実施形態を図1~図8にしたがって説明する。本実施形態の人検出装置及び人検出方法は、フォークリフトに適用される。以下の説明において、「前」、「後」、「左」、「右」、「上」、「下」とは、フォークリフトの前進方向を基準とした場合の「前」、「後」、「左」、「右」、「上」、「下」のことをいう。 An embodiment of a human detection device and human detection method will be described below with reference to Figures 1 to 8. The human detection device and human detection method of this embodiment are applied to a forklift. In the following description, "front," "rear," "left," "right," "up," and "down" refer to the forward direction of the forklift.

<フォークリフト>
図1に示すように、フォークリフト10は、機台11と、2つの駆動輪12aと、2つの操舵輪12bと、荷役装置13とを備えている。2つの駆動輪12aは、機台11の前下部に設けられている。2つの操舵輪12bは、機台11の後下部に設けられている。機台11は、ヘッドガード14と、2つのフロントピラー15と、2つのリアピラー16とを有している。リアピラー16は、フロントピラー15よりも後方に設けられている。ヘッドガード14は、2つのフロントピラー15及び2つのリアピラー16に支持されている。
<Forklift>
As shown in FIG. 1 , the forklift 10 includes a base 11, two drive wheels 12a, two steered wheels 12b, and a cargo handling device 13. The two drive wheels 12a are provided at the front lower portion of the base 11. The two steered wheels 12b are provided at the rear lower portion of the base 11. The base 11 has a head guard 14, two front pillars 15, and two rear pillars 16. The rear pillars 16 are provided rearward of the front pillars 15. The head guard 14 is supported by the two front pillars 15 and the two rear pillars 16.

本実施形態のフォークリフト10は、工場内や倉庫内において、フロアF上を走行したり、荷役装置13によって荷役動作を行ったりする。このとき、フォークリフト10の周囲には、作業者等の人100が存在することがある。例えば、人100は、フォークリフト10の左後方に存在している。人100の足元101は、工場や倉庫のフロアF上に位置している。 The forklift 10 of this embodiment travels on the floor F in a factory or warehouse and performs loading and unloading operations using the loading and unloading device 13. At this time, a person 100, such as a worker, may be present around the forklift 10. For example, the person 100 is present to the left rear of the forklift 10. The feet 101 of the person 100 are located on the floor F of the factory or warehouse.

<人検出装置>
図2に示すように、人検出装置20は、カメラ21と、カメラ21に接続された検出部22とを有している。本実施形態の人検出装置20は、フォークリフト10に搭載されている。人検出装置20は、フォークリフト10の周囲に存在する人100を検出する。人検出装置20は、フォークリフト10の周囲に存在する人100を検出した場合、カメラ21から人100までの距離を算出する。
<Human detection device>
2, the human detection device 20 has a camera 21 and a detection unit 22 connected to the camera 21. The human detection device 20 of this embodiment is mounted on the forklift 10. The human detection device 20 detects a person 100 present around the forklift 10. When the human detection device 20 detects a person 100 present around the forklift 10, it calculates the distance from the camera 21 to the person 100.

カメラ21は、単眼カメラである。カメラ21は、デジタルカメラである。カメラ21は、レンズと撮像素子とを有している。撮像素子は、例えば、CCDイメージセンサ(Charge Coupled Device image sensor)やCMOSイメージセンサ(Complementary Metal Oxide Semiconductor image sensor)である。撮像素子は、複数の画素から構成されている。 Camera 21 is a monocular camera. Camera 21 is a digital camera. Camera 21 has a lens and an image sensor. The image sensor is, for example, a CCD image sensor (Charge Coupled Device image sensor) or a CMOS image sensor (Complementary Metal Oxide Semiconductor image sensor). The image sensor is composed of multiple pixels.

図1及び図3に示すように、カメラ21は、フォークリフト10に取り付けられている。フロアFからカメラ21までの高さやフロアFに対するカメラ21の光軸の傾きは、カメラ21の画角を考慮した上で、カメラ21の撮像範囲が人に相当する範囲と同等以上になるように設定されている。 As shown in Figures 1 and 3, the camera 21 is attached to the forklift 10. The height from the floor F to the camera 21 and the inclination of the optical axis of the camera 21 relative to the floor F are set, taking into account the angle of view of the camera 21, so that the imaging range of the camera 21 is equal to or greater than the range corresponding to a person.

本実施形態のカメラ21は、ヘッドガード14の後部における左右方向の中央に取り付けられている。カメラ21は、後方を向くように配置されている。カメラ21は、フォークリフト10の後方を撮像する。フロアFからカメラ21までの高さはHである。本実施形態のカメラ21の光軸は、フロアFに対して傾いていない。カメラ21の光軸は、前後方向に沿って延びている。カメラ21の光軸は、左右方向及び上下方向のそれぞれに対して直交するように延びている。 In this embodiment, the camera 21 is attached to the rear of the head guard 14 at the center in the left-right direction. The camera 21 is positioned so as to face rearward. The camera 21 captures images of the area behind the forklift 10. The height from the floor F to the camera 21 is H. In this embodiment, the optical axis of the camera 21 is not tilted with respect to the floor F. The optical axis of the camera 21 extends in the front-to-rear direction. The optical axis of the camera 21 extends perpendicular to both the left-to-right and up-to-down directions.

図2に示すように、検出部22は、プロセッサ23と、記憶部24とを有している。プロセッサ23としては、例えば、CPU(Central Processing Unit)、GPU(Graphics Processing Unit)、又はDSP(Digital Signal Processor)が用いられる。記憶部24は、RAM(Random Access Memory)及びROM(Read Only Memory)を含む。記憶部24には、人検出装置20を動作させるためのプログラムが記憶されている。記憶部24は、処理をプロセッサ23に実行させるように構成されたプログラムコードまたは指令を格納しているといえる。記憶部24、すなわちコンピュータ可読媒体は、汎用または専用のコンピュータでアクセスできるあらゆる利用可能な媒体を含む。検出部22は、ASIC(Application Specific Integrated Circuit)やFPGA(Field Programmable Gate Array)等のハードウェア回路によって構成されていてもよい。処理回路である検出部22は、コンピュータプログラムに従って動作する1つ以上のプロセッサ、ASICやFPGA等の1つ以上のハードウェア回路、或いは、それらの組み合わせを含み得る。 As shown in FIG. 2, the detection unit 22 includes a processor 23 and a memory unit 24. The processor 23 may be, for example, a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), or a DSP (Digital Signal Processor). The memory unit 24 includes RAM (Random Access Memory) and ROM (Read Only Memory). The memory unit 24 stores a program for operating the human detection device 20. The memory unit 24 stores program code or instructions configured to cause the processor 23 to execute processing. The memory unit 24, i.e., a computer-readable medium, includes any available medium accessible by a general-purpose or dedicated computer. The detection unit 22 may be configured with a hardware circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array). The detection unit 22, which is a processing circuit, may include one or more processors operating according to a computer program, one or more hardware circuits such as an ASIC or FPGA, or a combination thereof.

本実施形態の記憶部24は、学習済みモデルMを記憶している。学習済みモデルMは、画像が入力されると、当該画像における人を構成する部位の位置を出力するように生成されたモデルである。学習済みモデルMは、教師有り学習によって学習されている。教師データは、複数のデータセットを有している。データセットは、人100の画像を含む学習用画像と、学習用画像における人100を構成する部位の位置の正解データとを有している。学習済みモデルMの学習手法としては、例えば、HOG(Histgram Of Gradient)を用いた機械学習手法や、SSD(Single Shot Multibox Detector)やYOLO(You Only Look Once)、CenterNetなどのディープラーニング手法を挙げることができる。本実施形態の学習済みモデルMは、画像が入力されると、当該画像における人を構成する部位の位置として足元101、頭部102、腰部103、及び肩部104の位置を出力する。 The memory unit 24 of this embodiment stores a trained model M. The trained model M is a model generated so that, when an image is input, it outputs the positions of body parts that make up a person in the image. The trained model M is trained using supervised learning. The training data includes multiple datasets. The datasets include training images including images of people 100 and ground truth data for the positions of body parts that make up the person 100 in the training images. Examples of training methods for the trained model M include machine learning methods using HOG (Histgram of Gradient), and deep learning methods such as SSD (Single Shot Multibox Detector), YOLO (You Only Look Once), and CenterNet. When an image is input, the trained model M of this embodiment outputs the positions of feet 101, head 102, waist 103, and shoulders 104 as the positions of body parts that make up a person in the image.

<人検出方法>
人検出装置20は、以下の人検出方法によって、カメラ21からフォークリフト10の周囲に存在する人100までの距離を算出する。本実施形態の人検出装置20は、カメラ21からフォークリフト10の後方に存在する人100までの距離を算出する。
<Human detection method>
The human detection device 20 calculates the distance from the camera 21 to the person 100 present around the forklift 10 by the following human detection method. The human detection device 20 of this embodiment calculates the distance from the camera 21 to the person 100 present behind the forklift 10.

カメラ21から人100までの距離の算出は、所定の周期で繰り返し行われるルーチンである。本実施形態では、カメラ21から人100までの距離の算出は、カメラ21が撮像を行う度に行われるが、例えば、カメラ21が所定の回数だけ撮像を行った場合に行われてもよい。 Calculation of the distance from the camera 21 to the person 100 is a routine that is repeated at a predetermined interval. In this embodiment, calculation of the distance from the camera 21 to the person 100 is performed each time the camera 21 captures an image, but it may also be performed, for example, when the camera 21 captures an image a predetermined number of times.

図4に示すように、ステップS10において、カメラ21は、フォークリフト10の後方を撮像する。
図5、図6、及び図7は、カメラ21が撮像した画像である撮像画像Iの一例である。フォークリフト10の後方に人100が存在する場合、撮像画像Iには、人100の画像が含まれている。また、撮像画像Iには、フォークリフト10の後部の画像が含まれている。
As shown in FIG. 4, in step S10, the camera 21 captures an image of the area behind the forklift 10.
5, 6, and 7 are examples of captured image I, which is an image captured by camera 21. If a person 100 is present behind forklift 10, captured image I includes an image of person 100. Captured image I also includes an image of the rear of forklift 10.

次に、ステップS11において、検出部22は、撮像画像Iに足元101の画像が含まれているか否かを判定する。本実施形態の検出部22は、学習済みモデルMによって、撮像画像Iに足元101の画像が含まれているか否かを判定する。 Next, in step S11, the detection unit 22 determines whether the captured image I includes an image of the feet 101. In this embodiment, the detection unit 22 uses the trained model M to determine whether the captured image I includes an image of the feet 101.

例えば、図5に示す撮像画像Iには、人100の全身の画像が含まれている。したがって、図5に示す撮像画像Iには、人100の足元101の画像が含まれている。この場合、検出部22は、学習済みモデルMによって、撮像画像Iにおける足元101の位置を推定することができる。詳しくは、学習済みモデルMは、撮像画像Iが入力されると、撮像画像Iにおける足元101の位置として足元101を示す領域A101を出力する。足元101を示す領域A101は、一方の足101aのくるぶしから足裏までを示す矩形の第1領域A101aと、他方の足101bのくるぶしから足裏までを示す矩形の第2領域A101bとから構成されている。なお、図5では、説明の便宜上、撮像画像Iにおける第1領域A101a及び第2領域A101bを枠で表示しているが、実際の撮像画像Iでは、枠は表示されていなくてもよい。検出部22は、撮像画像Iにおける足元101の位置を検出できた場合、撮像画像Iに足元101の画像が含まれていると判定する。 For example, the captured image I shown in FIG. 5 includes an image of the entire body of the person 100. Therefore, the captured image I shown in FIG. 5 includes an image of the feet 101 of the person 100. In this case, the detection unit 22 can estimate the position of the feet 101 in the captured image I using the trained model M. More specifically, when the captured image I is input, the trained model M outputs an area A101 indicating the feet 101 as the position of the feet 101 in the captured image I. The area A101 indicating the feet 101 is composed of a rectangular first area A101a indicating the area from the ankle to the sole of one foot 101a, and a rectangular second area A101b indicating the area from the ankle to the sole of the other foot 101b. Note that, for ease of explanation, the first area A101a and the second area A101b in the captured image I are displayed with frames in FIG. 5, but the frames may not be displayed in the actual captured image I. If the detection unit 22 can detect the position of the feet 101 in the captured image I, it determines that the captured image I includes an image of the feet 101.

一方、図6及び図7に示す撮像画像Iでは、人100の一部は、フォークリフト10の後部が障害物になることによって隠れている。図6に示す撮像画像Iでは、人100の足元101がフォークリフト10の後部によって隠れている。このため、図6に示す撮像画像Iには、足元101の画像は含まれてない。図6に示す撮像画像Iには、人100の頭部102、腰部103、肩部104の画像は含まれている。図7に示す撮像画像Iでは、人100の腰部103より下側がフォークリフト10の後部によって隠れている。このため、図7に示す撮像画像Iには、足元101及び腰部103の画像は含まれていない、図7に示す撮像画像Iには、人100の頭部102及び肩部104の画像は含まれている。この場合、検出部22は、学習済みモデルMによって、撮像画像Iにおける足元101の領域A101を推定することができない。したがって、検出部22は、撮像画像Iに足元101の画像が含まれていないと判定する。 On the other hand, in the captured images I shown in Figures 6 and 7, part of the person 100 is hidden by the rear of the forklift 10, which acts as an obstacle. In the captured image I shown in Figure 6, the feet 101 of the person 100 are hidden by the rear of the forklift 10. For this reason, the captured image I shown in Figure 6 does not include an image of the feet 101. The captured image I shown in Figure 6 includes images of the head 102, waist 103, and shoulders 104 of the person 100. In the captured image I shown in Figure 7, the part of the person 100 below the waist 103 is hidden by the rear of the forklift 10. For this reason, the captured image I shown in Figure 7 does not include images of the feet 101 and waist 103, but does include images of the head 102 and shoulders 104 of the person 100. In this case, the detection unit 22 cannot estimate the area A101 of the feet 101 in the captured image I using the trained model M. Therefore, the detection unit 22 determines that the captured image I does not include an image of the feet 101.

ステップS11の判定結果が肯定の場合、すなわち検出部22が撮像画像Iに足元101の画像が含まれていると判定した場合、検出部22は、ステップS12の処理を行う。ステップS11の判定結果が否定の場合、すなわち検出部22が撮像画像Iに足元101の画像が含まれていないと判定した場合、検出部22は、ステップS13の処理を行う。 If the determination result in step S11 is positive, i.e., if the detection unit 22 determines that the captured image I contains an image of the feet 101, the detection unit 22 performs the process of step S12. If the determination result in step S11 is negative, i.e., if the detection unit 22 determines that the captured image I does not contain an image of the feet 101, the detection unit 22 performs the process of step S13.

ステップS12において、検出部22は、撮像画像Iにおける足元101の位置に基づいて、カメラ21から人100までの距離を算出する。以下では、本実施形態でのステップS12における検出部22の処理について詳述する。 In step S12, the detection unit 22 calculates the distance from the camera 21 to the person 100 based on the position of the feet 101 in the captured image I. The processing performed by the detection unit 22 in step S12 in this embodiment is described in detail below.

図8に示すように、実世界座標系は、X軸、Y軸、及びZ軸を有している。X軸、Y軸、及びZ軸は、互いに直交している。X軸は、左右方向に沿って延びる軸である。Y軸は、上下方向に沿って延びる軸である。Z軸は、前後方向に沿って延びる軸である。X軸方向におけるカメラ21から人100の足元101までの距離をDxとする。Y軸方向におけるカメラ21から人100の足元101までの距離をDyとする。上述したように、人100の足元101はフロアF上に位置していることから、距離DyはフロアFからカメラ21までの高さHと一致している。Z軸方向におけるカメラ21から人100の足元101までの距離をDzとする。 As shown in FIG. 8, the real-world coordinate system has an X-axis, a Y-axis, and a Z-axis. The X-axis, Y-axis, and Z-axis are perpendicular to one another. The X-axis extends in the left-right direction. The Y-axis extends in the up-down direction. The Z-axis extends in the front-to-back direction. The distance from the camera 21 to the feet 101 of the person 100 in the X-axis direction is defined as Dx. The distance from the camera 21 to the feet 101 of the person 100 in the Y-axis direction is defined as Dy. As mentioned above, since the feet 101 of the person 100 are located on the floor F, the distance Dy is equal to the height H from the floor F to the camera 21. The distance from the camera 21 to the feet 101 of the person 100 in the Z-axis direction is defined as Dz.

カメラ21の光軸と直交するとともに、カメラ21の光軸が延びる方向においてカメラ21から焦点距離fだけ離れた位置に存在する平面を画像平面Pとする。画像平面Pの中心Cは、カメラ21の光軸が画像平面Pを通過する点である。上述したように、本実施形態のカメラ21の光軸は、前後方向に沿って延びている。したがって、画像平面Pは、Z軸方向に対して直交している。画像平面Pは、画像平面Pの中心Cを通るとともにX軸方向に対して平行に延びるU軸と、画像平面Pの中心Cを通るとともにY軸方向に対して平行に延びるV軸とを有している。U軸及びV軸は互いに直交している。 The image plane P is a plane that is perpendicular to the optical axis of the camera 21 and is located at a focal length f away from the camera 21 in the direction in which the optical axis of the camera 21 extends. The center C of the image plane P is the point at which the optical axis of the camera 21 passes through the image plane P. As described above, the optical axis of the camera 21 in this embodiment extends along the front-to-rear direction. Therefore, the image plane P is perpendicular to the Z-axis direction. The image plane P has a U-axis that passes through the center C of the image plane P and extends parallel to the X-axis direction, and a V-axis that passes through the center C of the image plane P and extends parallel to the Y-axis direction. The U-axis and V-axis are perpendicular to each other.

本実施形態の検出部22は、撮像画像Iにおける足元101を示す領域A101を用いて、画像平面Pにおける足元101の位置を推定する。検出部22は、撮像画像Iにおける領域A101の最下端を、V軸方向における足元101の位置vとして推定する。検出部22は、撮像画像Iにおける領域A101におけるV軸に最も近い端を、U軸方向における足元101の位置uとして推定する。 The detection unit 22 of this embodiment estimates the position of the feet 101 in the image plane P using an area A101 indicating the feet 101 in the captured image I. The detection unit 22 estimates the lowest end of the area A101 in the captured image I as the position vf of the feet 101 in the V-axis direction. The detection unit 22 estimates the end of the area A101 in the captured image I that is closest to the V-axis as the position uf of the feet 101 in the U-axis direction.

検出部22は、画像平面Pにおける足元101の座標(u,v)に基づいて、実世界におけるカメラ21から足元101までの距離を算出する。検出部22は、実世界におけるカメラ21から足元101までの距離として、X軸方向におけるカメラ21から足元101までの距離Dxと、Z軸方向におけるカメラ21から足元101までの距離Dzとを算出する。 The detection unit 22 calculates the distance from the camera 21 to the feet 101 in the real world based on the coordinates (u f , v f ) of the feet 101 in the image plane P. The detection unit 22 calculates, as the distance from the camera 21 to the feet 101 in the real world, a distance Dx from the camera 21 to the feet 101 in the X-axis direction and a distance Dz from the camera 21 to the feet 101 in the Z-axis direction.

まず、検出部22は、U軸方向における画像平面Pの中心Cから足元101までの距離u[pixel]を算出する。検出部22は、距離u[pixel]にU軸方向における画素サイズ[mm/pixel]を乗算することによって、距離u[mm]に換算する。なお、U軸方向における画素サイズ[mm/pixel]は、U軸方向における撮像素子の寸法を、U軸方向における画素数によって除算することによって得られる。 First, the detection unit 22 calculates the distance u [pixel] from the center C of the image plane P to the feet 101 in the U-axis direction. The detection unit 22 converts the distance u [pixel] into distance u [mm] by multiplying the distance u [pixel] by the pixel size [mm/pixel] in the U-axis direction. The pixel size [mm/pixel] in the U-axis direction is obtained by dividing the dimension of the image sensor in the U-axis direction by the number of pixels in the U-axis direction.

検出部22は、V軸方向における画像平面Pの中心Cから足元101までの距離v[pixel]を算出する。検出部22は、距離v[pixel]にV軸方向における画素サイズ[mm/pixel]を乗算することによって、距離v[mm]に換算する。なお、V軸方向における画素サイズ[mm/pixel]は、V軸方向における撮像素子の寸法を、V軸方向における画素数によって除算することによって得られる。 The detection unit 22 calculates the distance v [pixels] from the center C of the image plane P to the feet 101 in the V-axis direction. The detection unit 22 converts the distance v [mm] by multiplying the distance v [pixels] by the pixel size [mm/pixel] in the V-axis direction. The pixel size [mm/pixel] in the V-axis direction is obtained by dividing the dimension of the image sensor in the V-axis direction by the number of pixels in the V-axis direction.

次に、検出部22は、Z軸方向におけるカメラ21から足元101までの距離Dzを算出する。距離Dzは、距離vと、カメラ21の焦点距離fと、フロアFからカメラ21までの高さHとから、Dz=f/vと表される。また、検出部22は、X軸方向におけるカメラ21から足元101までの距離Dxを算出する。距離Dxは、距離uと、焦点距離fと、距離Dzとから、Dx=Dzu/fと表される。Dz=fH/vであるため、Dx=uH/vと表される。 Next, the detection unit 22 calculates the distance Dz from the camera 21 to the feet 101 in the Z-axis direction. The distance Dz is expressed as Dz = f/v from the distance v, the focal length f of the camera 21, and the height H of the camera 21 from the floor F. The detection unit 22 also calculates the distance Dx from the camera 21 to the feet 101 in the X-axis direction. The distance Dx is expressed as Dx = Dzu/f from the distance u, the focal length f, and the distance Dz. Since Dz = fH/v, it can be expressed as Dx = uH/v.

ステップS13において、検出部22は、撮像画像Iに人100の頭部102及び腰部103の画像が含まれているか否かを判定する。頭部102は、人100を構成する第1部位である。腰部103は、人100を構成する第2部位である。本実施形態の検出部22は、学習済みモデルMによって、撮像画像Iに頭部102及び腰部103の画像が含まれているか否かを判定する。 In step S13, the detection unit 22 determines whether the captured image I contains images of the head 102 and waist 103 of the person 100. The head 102 is the first part of the person 100. The waist 103 is the second part of the person 100. In this embodiment, the detection unit 22 uses the trained model M to determine whether the captured image I contains images of the head 102 and waist 103.

上述したように、図6に示す撮像画像Iには、人100の頭部102及び腰部103の画像が含まれている。この場合、検出部22は、学習済みモデルMによって、撮像画像Iにおける頭部102及び腰部103の位置を推定することができる。詳しくは、学習済みモデルMは、撮像画像Iが入力されると、撮像画像Iにおける頭部102の位置として頭頂部を示す点を出力する。また、学習済みモデルMは、撮像画像Iにおける腰部103の位置として腰幅の中央を示す点を出力する。なお、図6では、説明の便宜上、撮像画像Iにおける頭部102及び腰部103の位置をバツ印で表示しているが、実際の撮像画像Iでは、バツ印は表示されていなくてもよい。検出部22は、撮像画像Iにおける頭部102及び腰部103の位置を検出できた場合、撮像画像Iに頭部102及び腰部103の画像が含まれていると判定する。 As described above, captured image I shown in FIG. 6 includes images of the head 102 and waist 103 of person 100. In this case, the detection unit 22 can estimate the positions of the head 102 and waist 103 in captured image I using the trained model M. Specifically, when captured image I is input, the trained model M outputs a point indicating the top of the head as the position of the head 102 in captured image I. The trained model M also outputs a point indicating the center of the waist width as the position of the waist 103 in captured image I. Note that, for ease of explanation, the positions of the head 102 and waist 103 in captured image I are indicated by crosses in FIG. 6, but the crosses do not need to be displayed in the actual captured image I. If the detection unit 22 can detect the positions of the head 102 and waist 103 in captured image I, it determines that captured image I includes images of the head 102 and waist 103.

一方、図7に示す撮像画像Iには、頭部102の画像は含まれているが、腰部103の画像は含まれていない。この場合、検出部22は、学習済みモデルMによって、撮像画像Iにおける腰部103の位置を推定することができない。したがって、検出部22は、撮像画像Iに頭部102及び腰部103の画像が含まれていないと判定する。 On the other hand, captured image I shown in Figure 7 includes an image of the head 102, but does not include an image of the waist 103. In this case, the detection unit 22 cannot estimate the position of the waist 103 in captured image I using the trained model M. Therefore, the detection unit 22 determines that captured image I does not include images of the head 102 or waist 103.

ステップS13の判定結果が肯定の場合、すなわち検出部22が撮像画像Iに頭部102及び腰部103の画像が含まれていると判定した場合、検出部22は、ステップS14の処理を行う。ステップS13の判定結果が否定の場合、すなわち検出部22が撮像画像Iに頭部102及び腰部103の画像が含まれていないと判定した場合、検出部22は、ステップS15の処理を行う。 If the determination result in step S13 is positive, i.e., if the detection unit 22 determines that the captured image I contains images of the head 102 and waist 103, the detection unit 22 performs the process of step S14. If the determination result in step S13 is negative, i.e., if the detection unit 22 determines that the captured image I does not contain images of the head 102 and waist 103, the detection unit 22 performs the process of step S15.

ステップS14において、検出部22は、撮像画像Iにおける頭部102及び腰部103の位置から、撮像画像Iにおける頭部102と腰部103との距離である2点間距離を算出する。具体的には、検出部22は、画像平面Pにおける頭部102の座標(u,v)及び腰部103の座標(u,v)から、画像平面PにおけるU軸方向での2点間距離Lu=u-uと、画像平面PにおけるV軸方向での2点間距離Lv=v-vとを算出する。 In step S14, the detection unit 22 calculates the point-to-point distance between the head 102 and the waist 103 in the captured image I, from the positions of the head 102 and the waist 103 in the captured image I. Specifically, the detection unit 22 calculates the point-to-point distance Lu = u w - u h in the U-axis direction on the image plane P and the point-to-point distance Lv = v w - v h in the V-axis direction on the image plane P, from the coordinates (u h , v h ) of the head 102 and the coordinates (u w , v w ) of the waist 103 in the image plane P.

次に、ステップS16において、検出部22は、ステップS14で算出した2点間距離に基づいて、画像平面Pにおける足元101の位置を推定する。具体的には、検出部22は、画像平面PにおけるU軸方向での2点間距離Lu及びV軸方向での2点間距離Lvに基づいて、画像平面Pにおける足元101の座標(u,v)を推定する。足元101の座標(u,v)は、(Lu×α+u,Lv×α+u)と表される。ここで、αとは、人間の体の寸法比に基づいて設定される値である。一般に、頭部102から足元101までの寸法は、頭部102から腰部103までの寸法の約2倍である。したがって、本実施形態では、α=2に設定されている。つまり、検出部22は、頭部102から腰部103までの寸法に対する頭部102から足元101までの寸法比を用いて画像平面Pにおける足元101の位置を推定する。 Next, in step S16, the detection unit 22 estimates the position of the feet 101 on the image plane P based on the distance between the two points calculated in step S14. Specifically, the detection unit 22 estimates the coordinates (u f , v f ) of the feet 101 on the image plane P based on the distance Lu between the two points in the U-axis direction and the distance Lv between the two points in the V-axis direction on the image plane P. The coordinates (u f , v f ) of the feet 101 are expressed as (Lu×α+u h , Lv×α+u h ). Here, α is a value set based on the dimensional ratio of the human body. Generally, the dimension from the head 102 to the feet 101 is approximately twice the dimension from the head 102 to the waist 103. Therefore, in this embodiment, α is set to 2. That is, the detection unit 22 estimates the position of the feet 101 on the image plane P using the ratio of the dimension from the head 102 to the feet 101 to the dimension from the head 102 to the waist 103 .

これにより、図6に示すように、撮像画像Iにおける足元101の位置が推定される。なお、図6では、説明の便宜上、撮像画像Iにおける足元101の位置をバツ印で表示しているが、実際の撮像画像Iでは、バツ印は表示されていなくてもよい。 As a result, the position of feet 101 in captured image I is estimated, as shown in Figure 6. Note that in Figure 6, for ease of explanation, the position of feet 101 in captured image I is indicated by a cross, but in the actual captured image I, the cross does not need to be displayed.

例えば、検出部22は、ステップS13において、画像平面Pにおける頭部102の座標(u,v)=(100,-100)と、画像平面Pにおける腰部103の座標(u,v)=(104,-200)とを推定する。検出部22は、ステップS14において、U軸方向における2点間距離Lu=4と、V軸方向における2点間距離Lv=-100とを算出する。検出部22は、ステップS16において、画像平面Pにおける足元101の座標(u,v)=(4×2+100,-100×2+(-100))=(108,-300)を推定する。 For example, in step S13, the detection unit 22 estimates the coordinates ( uh , vh ) = (100, -100) of the head 102 on the image plane P and the coordinates ( uw , vw ) = (104, -200) of the waist 103 on the image plane P. In step S14, the detection unit 22 calculates the distance between the two points in the U-axis direction Lu = 4 and the distance between the two points in the V-axis direction Lv = -100. In step S16, the detection unit 22 estimates the coordinates ( uf , vf ) = (4 × 2 + 100, -100 × 2 + (-100)) = (108, -300) of the feet 101 on the image plane P.

次に、ステップS17において、検出部22は、ステップS16で推定した画像平面Pにおける足元101の位置に基づいて、カメラ21から人100までの距離を算出する。なお、画像平面Pにおける足元101の位置に基づいて、カメラ21から人100の足元101までの距離を算出する方法については、ステップS12の説明で詳述したため、説明を省略する。 Next, in step S17, the detection unit 22 calculates the distance from the camera 21 to the person 100 based on the position of the feet 101 on the image plane P estimated in step S16. Note that the method for calculating the distance from the camera 21 to the feet 101 of the person 100 based on the position of the feet 101 on the image plane P has been described in detail in the description of step S12, and therefore will not be described here.

ステップS15において、検出部22は、撮像画像Iに人100の頭部102及び肩部104の画像が含まれているか否かを判定する。頭部102は、人100を構成する第1部位である。肩部104は、人100を構成する第2部位である。本実施形態の検出部22は、学習済みモデルMによって、撮像画像Iに頭部102及び肩部104の画像が含まれているか否かを判定する。 In step S15, the detection unit 22 determines whether the captured image I contains images of the head 102 and shoulders 104 of the person 100. The head 102 is the first part that makes up the person 100. The shoulders 104 are the second part that makes up the person 100. In this embodiment, the detection unit 22 uses the trained model M to determine whether the captured image I contains images of the head 102 and shoulders 104.

上述したように、図7に示す撮像画像Iには、人100の頭部102及び肩部104の画像が含まれている。この場合、検出部22は、学習済みモデルMによって、撮像画像Iにおける頭部102及び肩部104の位置を推定することができる。詳しくは、学習済みモデルMは、撮像画像Iが入力されると、撮像画像Iにおける頭部102の位置として頭頂部を示す点を出力する。また、学習済みモデルMは、撮像画像Iにおける肩部104の位置として肩幅の中央を示す点を出力する。なお、図7では、説明の便宜上、撮像画像Iにおける頭部102及び肩部104の位置をバツ印で表示しているが、実際の撮像画像Iでは、バツ印は表示されていなくてもよい。検出部22は、撮像画像Iにおける頭部102及び肩部104の位置を検出できた場合、撮像画像Iに頭部102及び肩部104の画像が含まれていると判定する。 As described above, captured image I shown in FIG. 7 includes images of the head 102 and shoulders 104 of person 100. In this case, the detection unit 22 can estimate the positions of the head 102 and shoulders 104 in captured image I using the trained model M. More specifically, when captured image I is input, the trained model M outputs a point indicating the top of the head as the position of the head 102 in captured image I. The trained model M also outputs a point indicating the center of the shoulder width as the position of the shoulders 104 in captured image I. Note that, for ease of explanation, the positions of the head 102 and shoulders 104 in captured image I are indicated by crosses in FIG. 7, but the crosses do not necessarily need to be displayed in the actual captured image I. If the detection unit 22 can detect the positions of the head 102 and shoulders 104 in captured image I, it determines that captured image I includes images of the head 102 and shoulders 104.

一方、撮像画像Iに頭部102及び腰部103の画像が含まれていない場合、検出部22は、学習済みモデルMによって、撮像画像Iにおける頭部102及び腰部103の位置を推定することができない。したがって、検出部22は、撮像画像Iに頭部102及び腰部103の画像が含まれていないと判定する。 On the other hand, if the captured image I does not include images of the head 102 and waist 103, the detection unit 22 cannot estimate the positions of the head 102 and waist 103 in the captured image I using the trained model M. Therefore, the detection unit 22 determines that the captured image I does not include images of the head 102 and waist 103.

ステップS15の判定結果が肯定の場合、すなわち検出部22が撮像画像Iに頭部102及び肩部104の画像が含まれていると判定した場合、検出部22は、ステップS18の処理を行う。ステップS15の判定結果が否定の場合、すなわち検出部22が撮像画像Iに頭部102及び肩部104の画像が含まれていないと判定した場合、検出部22は、フローを終了する。 If the determination result in step S15 is positive, i.e., if the detection unit 22 determines that the captured image I contains images of the head 102 and shoulders 104, the detection unit 22 performs the process of step S18. If the determination result in step S15 is negative, i.e., if the detection unit 22 determines that the captured image I does not contain images of the head 102 and shoulders 104, the detection unit 22 ends the flow.

ステップS18において、検出部22は、撮像画像Iにおける頭部102及び肩部104の位置から、撮像画像Iにおける頭部102と肩部104との距離である2点間距離を算出する。具体的には、検出部22は、画像平面Pにおける頭部102の座標(u,v)及び肩部104の座標(u,v)から、画像平面PにおけるU軸方向での2点間距離Lu=u-uと、画像平面PにおけるV軸方向での2点間距離Lv=v-vとを算出する。 In step S18, the detection unit 22 calculates the point-to-point distance between the head 102 and the shoulders 104 in the captured image I, from the positions of the head 102 and the shoulders 104 in the captured image I. Specifically, the detection unit 22 calculates the point-to-point distance Lu=u s −u h in the U-axis direction on the image plane P and the point-to-point distance Lv=v s −v h in the V-axis direction on the image plane P , from the coordinates (u h , v h ) of the head 102 and the coordinates (u s , v s ) of the shoulders 104 in the image plane P.

次に、ステップS19において、検出部22は、ステップS18で算出した2点間距離に基づいて、画像平面Pにおける足元101の位置を推定する。具体的には、検出部22は、画像平面PにおけるU軸方向での2点間距離Lu及びV軸方向での2点間距離Lvに基づいて、画像平面Pにおける足元101の座標(u,v)を推定する。足元101の座標(u,v)は、(Lu×β+u,Lv×β+u)と表される。ここで、βとは、人間の体の寸法比に基づいて設定される値である。一般に、頭部102から足元101までの寸法は、頭部102から肩部104までの寸法の約4倍である。したがって、本実施形態では、β=4に設定されている。つまり、検出部22は、頭部102から肩部104までの寸法に対する頭部102から足元101までの寸法比を用いて画像平面Pにおける足元101の位置を推定する。 Next, in step S19, the detection unit 22 estimates the position of the feet 101 on the image plane P based on the distance between the two points calculated in step S18. Specifically, the detection unit 22 estimates the coordinates (u f , v f ) of the feet 101 on the image plane P based on the distance Lu between the two points in the U-axis direction and the distance Lv between the two points in the V-axis direction on the image plane P. The coordinates (u f , v f ) of the feet 101 are expressed as (Lu×β+u h , Lv×β+u h ). Here, β is a value set based on the dimensional ratio of the human body. Generally, the dimension from the head 102 to the feet 101 is approximately four times the dimension from the head 102 to the shoulders 104. Therefore, in this embodiment, β is set to 4. That is, the detection unit 22 estimates the position of the feet 101 on the image plane P using the ratio of the dimension from the head 102 to the feet 101 to the dimension from the head 102 to the shoulders 104 .

これにより、図7に示すように、撮像画像Iにおける足元101の位置が推定される。なお、図7では、説明の便宜上、撮像画像Iにおける足元101の位置をバツ印で表示しているが、実際の撮像画像Iでは、バツ印は表示されていなくてもよい。 As a result, the position of feet 101 in captured image I is estimated, as shown in Figure 7. Note that in Figure 7, for ease of explanation, the position of feet 101 in captured image I is indicated by a cross, but in the actual captured image I, the cross does not need to be displayed.

例えば、検出部22は、ステップS15において、画像平面Pにおける頭部102の座標(u,v)=(100,-100)と、画像平面Pにおける肩部104の座標(u,v)=(102,-150)とを推定する。検出部22は、ステップS18において、U軸方向における2点間距離Lu=2と、V軸方向における2点間距離Lv=-50とを算出する。検出部22は、ステップS19において、画像平面Pにおける足元101の座標(u,v)=(2×4+100,-50×4+(-100))=(108,-300)を推定する。 For example, in step S15, the detection unit 22 estimates the coordinates (u h , v h ) = (100, -100) of the head 102 on the image plane P and the coordinates (u s , v s ) = (102, -150) of the shoulders 104 on the image plane P. In step S18, the detection unit 22 calculates the distance between the two points in the U-axis direction Lu = 2 and the distance between the two points in the V-axis direction Lv = -50. In step S19, the detection unit 22 estimates the coordinates (u f , v f ) = (2 × 4 + 100, -50 × 4 + (-100)) = (108, -300) of the feet 101 on the image plane P.

次に、ステップS17において、検出部22は、ステップS19で推定した画像平面Pにおける足元101の位置に基づいて、カメラ21から人100の足元101までの距離を算出する。 Next, in step S17, the detection unit 22 calculates the distance from the camera 21 to the feet 101 of the person 100 based on the position of the feet 101 on the image plane P estimated in step S19.

[本実施形態の作用及び効果]
本実施形態の作用及び効果を説明する。
(1)撮像画像Iに足元101が含まれている場合には、検出部22は、撮像画像Iにおける足元101の位置に基づいて、カメラ21から人100の足元101までの距離を算出する。一方、撮像画像Iに足元101の画像が含まれていない場合には、検出部22は、撮像画像Iにおける人100を構成する第1部位及び第2部位の位置に基づいて、撮像画像Iにおける足元101の位置を推定する。そして、検出部22は、推定した撮像画像Iにおける足元101の位置に基づいて、カメラ21から人100の足元101までの距離を算出する。したがって、撮像画像Iに足元101が含まれていなくても、カメラ21から人100までの距離を算出できる。
[Actions and Effects of the Present Embodiment]
The operation and effects of this embodiment will be described.
(1) When the captured image I includes feet 101, the detection unit 22 calculates the distance from the camera 21 to the feet 101 of the person 100 based on the position of the feet 101 in the captured image I. On the other hand, when the captured image I does not include an image of the feet 101, the detection unit 22 estimates the position of the feet 101 in the captured image I based on the positions of the first and second parts that make up the person 100 in the captured image I. Then, the detection unit 22 calculates the distance from the camera 21 to the feet 101 of the person 100 based on the estimated position of the feet 101 in the captured image I. Therefore, even if the captured image I does not include feet 101, the distance from the camera 21 to the person 100 can be calculated.

(2)検出部22は、人100を構成する第1部位として頭部102を用いるとともに、人100を構成する第2部位として腰部103又は肩部104を用いる。頭部102、腰部103、及び肩部104は、人100を構成する部位の中でも特徴的な部位であるため、検出部22による第1部位及び第2部位の検出が容易になる。 (2) The detection unit 22 uses the head 102 as the first part of the person 100, and the waist 103 or shoulders 104 as the second part of the person 100. The head 102, waist 103, and shoulders 104 are distinctive parts of the parts of the person 100, making it easy for the detection unit 22 to detect the first and second parts.

(3)ステップS13は、ステップS15よりも先に行われる。このため、撮像画像Iに腰部103及び肩部104の両方が含まれていたとしても、人100を構成する第2部位として肩部104よりも腰部103が優先的に用いられる。第2部位として腰部103を用いる場合、第2部位として肩部104を用いる場合と比較して、2点間距離が長くなる。このため、頭部102から腰部103までの寸法に対する頭部102から足元101までの寸法比は、頭部102から肩部104までの寸法に対する頭部102から足元101までの寸法比よりも小さくなる。よって、撮像画像Iにおける足元101の位置の推定精度が向上する。その結果、カメラ21から人100までの距離の算出誤差を低減できる。 (3) Step S13 is performed before step S15. Therefore, even if the captured image I includes both the waist 103 and the shoulders 104, the waist 103 is used preferentially over the shoulders 104 as the second part of the person 100. When the waist 103 is used as the second part, the distance between the two points is longer than when the shoulders 104 are used as the second part. Therefore, the ratio of the dimension from the head 102 to the waist 103 to the dimension from the head 102 to the feet 101 is smaller than the ratio of the dimension from the head 102 to the shoulders 104 to the dimension from the head 102 to the feet 101. This improves the accuracy of estimating the position of the feet 101 in the captured image I. As a result, the calculation error of the distance from the camera 21 to the person 100 can be reduced.

(4)検出部22は、画像が入力されると、当該画像における人100を構成する部位の位置を出力するように機械学習された学習済みモデルMを有している。検出部22は、学習済みモデルMによって、撮像画像Iにおける人100を構成する部位の位置を推定する。この場合、学習済みモデルMの学習度合いによっては、撮像画像Iにおける人100を構成する部位の位置の推定精度を上げることができる。 (4) The detection unit 22 has a trained model M that has been machine-learned to output the positions of the body parts that make up the person 100 in the image when an image is input. The detection unit 22 estimates the positions of the body parts that make up the person 100 in the captured image I using the trained model M. In this case, depending on the degree of learning of the trained model M, the accuracy of estimating the positions of the body parts that make up the person 100 in the captured image I can be improved.

(5)検出部22は、例えば、次のようにしてカメラ21から人100の足元101までの距離を算出することができる。検出部22は、図5に示すように、撮像画像Iにおける人100を示す領域A100を推定する。検出部22は、撮像画像Iにおける領域A100の下端の位置を、撮像画像Iにおける足元101の位置として推定する。検出部22は、領域A100に基づいて推定された足元101の位置に基づいて、カメラ21から人100の足元101までの距離を算出する。しかしながら、この方法では、撮像画像Iにおける足元101の位置の推定に誤差が生じやすい。特に、図6及び図7に示すように、撮像画像Iに足元101が含まれていない場合、撮像画像Iにおける足元101の位置の推定結果の誤差は大きくなる。したがって、カメラ21から人100の足元101までの距離を算出する際の誤差も大きくなる。 (5) The detection unit 22 can calculate the distance from the camera 21 to the feet 101 of the person 100, for example, as follows. As shown in FIG. 5 , the detection unit 22 estimates an area A100 representing the person 100 in the captured image I. The detection unit 22 estimates the position of the bottom edge of area A100 in the captured image I as the position of the feet 101 in the captured image I. The detection unit 22 calculates the distance from the camera 21 to the feet 101 of the person 100 based on the position of the feet 101 estimated based on area A100. However, this method is prone to errors in estimating the position of the feet 101 in the captured image I. In particular, as shown in FIGS. 6 and 7 , if the feet 101 are not included in the captured image I, the error in the estimation result of the position of the feet 101 in the captured image I will be large. Therefore, the error in calculating the distance from the camera 21 to the feet 101 of the person 100 will also be large.

これに対し、本実施形態では、検出部22は、人100を構成する第1部位及び第2部位を用いて、撮像画像Iにおける足元101の位置を推定する。このため、上記の方法と比較して、撮像画像Iにおける足元101の位置の推定結果の誤差が低減される。よって、カメラ21から人100の足元101までの距離を算出する際の誤差を低減できる。 In contrast, in this embodiment, the detection unit 22 estimates the position of the feet 101 in the captured image I using the first and second parts of the person 100. Therefore, compared to the above method, the error in the estimation result of the position of the feet 101 in the captured image I is reduced. Therefore, the error in calculating the distance from the camera 21 to the feet 101 of the person 100 can be reduced.

[変更例]
なお、上記各実施形態は、以下のように変更して実施できる。上記各実施形態及び以下の変更例は、技術的に矛盾しない範囲で互いに組み合わせて実施できる。
[Example of change]
The above-described embodiments can be modified as follows: The above-described embodiments and the following modifications can be combined with each other within the scope of technical compatibility.

○ 撮像画像Iにおける足元101の位置の推定に用いられる人100を構成する部位は、頭部102、腰部103、及び肩部104に限定されない。撮像画像Iにおける足元101の位置の推定に用いられる人100を構成する部位は、例えば、膝部や腹部であってもよい。 - The parts of the person 100 used to estimate the position of the feet 101 in the captured image I are not limited to the head 102, waist 103, and shoulders 104. The parts of the person 100 used to estimate the position of the feet 101 in the captured image I may be, for example, the knees or abdomen.

○ 撮像画像Iにおける足元101の位置の推定に用いられる人100の第1部位及び第2部位の組み合わせは、適宜変更されてもよい。撮像画像Iにおける足元101の位置の推定に用いられる人100の第1部位及び第2部位の組み合わせは、例えば、腰部103及び肩部104の組み合わせであってもよい。 - The combination of the first and second parts of the person 100 used to estimate the position of the feet 101 in the captured image I may be changed as appropriate. The combination of the first and second parts of the person 100 used to estimate the position of the feet 101 in the captured image I may be, for example, the combination of the waist 103 and shoulders 104.

○ ステップS13及びステップS15の何れか一方は省略されてもよい。すなわち、撮像画像Iにおける足元101の位置の推定は、頭部102及び腰部103の組み合わせ、又は頭部102及び肩部104の組み合わせの何れか一方を用いて行われてもよい。 ○ Either step S13 or step S15 may be omitted. That is, the position of the feet 101 in the captured image I may be estimated using either the combination of the head 102 and waist 103, or the combination of the head 102 and shoulders 104.

○ ステップS13よりもステップS15が先に行われてもよい。すなわち、撮像画像Iに頭部102及び肩部104の両方が含まれている場合、撮像画像Iにおける足元101の位置の推定には、腰部103よりも肩部104が優先的に用いられてもよい。 Step S15 may be performed before step S13. That is, if the captured image I includes both the head 102 and the shoulders 104, the shoulders 104 may be used preferentially over the waist 103 to estimate the position of the feet 101 in the captured image I.

○ 検出部22は、カメラ21から人100までの距離を算出した後、さらに、フォークリフト10から人100までの距離を算出してもよい。検出部22は、フォークリフト10の形状やフォークリフト10に対するカメラ21の取り付け位置などの情報を記憶している。検出部22は、記憶している情報と、算出したカメラ21から人100までの距離とに基づいて、フォークリフト10から人100までの距離を算出する。検出部22が算出したフォークリフト10から人100までの距離は、フォークリフト10の動作の制御に用いられてもよい。例えば、フォークリフト10から人100までの距離が所定の距離以下になった場合に、フォークリフト10の報知装置を作動させたり、フォークリフト10の動作を強制的に停止させたりする。 - After calculating the distance from the camera 21 to the person 100, the detection unit 22 may further calculate the distance from the forklift 10 to the person 100. The detection unit 22 stores information such as the shape of the forklift 10 and the mounting position of the camera 21 relative to the forklift 10. The detection unit 22 calculates the distance from the forklift 10 to the person 100 based on the stored information and the calculated distance from the camera 21 to the person 100. The distance from the forklift 10 to the person 100 calculated by the detection unit 22 may be used to control the operation of the forklift 10. For example, if the distance from the forklift 10 to the person 100 becomes equal to or less than a predetermined distance, an alarm device of the forklift 10 may be activated or the operation of the forklift 10 may be forcibly stopped.

○ 検出部22は、撮像画像Iに足元101が含まれている場合であっても、撮像画像Iに含まれている人100を構成する第1部位及び第2部位を用いて、撮像画像Iにおける足元101の位置を推定してもよい。この場合、検出部22は、検出した撮像画像Iにおける足元101の位置に基づいて、カメラ21から人100の足元101までの距離を算出する。また、検出部22は、推定した撮像画像Iにおける足元101の位置に基づいて、カメラ21から人100の足元101までの距離を算出する。そして、算出した2つの距離を比較することによって、短い方の距離をカメラ21から人100までの距離として採用してもよい。カメラ21から人100までの距離がフォークリフト10の動作の制御に用いられる場合には、2つの距離を比較した上で短い方の距離が採用される方が安全性の観点から好ましい。 ○ Even if the feet 101 are included in the captured image I, the detection unit 22 may estimate the position of the feet 101 in the captured image I using the first and second parts constituting the person 100 included in the captured image I. In this case, the detection unit 22 calculates the distance from the camera 21 to the feet 101 of the person 100 based on the detected position of the feet 101 in the captured image I. The detection unit 22 also calculates the distance from the camera 21 to the feet 101 of the person 100 based on the estimated position of the feet 101 in the captured image I. The two calculated distances may then be compared and the shorter distance may be adopted as the distance from the camera 21 to the person 100. If the distance from the camera 21 to the person 100 is used to control the operation of the forklift 10, it is preferable from a safety standpoint to compare the two distances and adopt the shorter distance.

○ 検出部22は、学習済みモデルMを有していなくてもよい。この場合、撮像画像Iにおける人100を構成する部位の位置を検出する方法としては、例えば、次のような方法が考えられる。検出部22は、撮像画像Iから人100のエッジを抽出する。検出部22は、抽出したエッジの形状から人100を構成する部位を推定する。例えば、検出部22は、抽出したエッジの形状が略円形状の場合には、当該エッジが人100の頭部102であると推定する。 ○ The detection unit 22 does not need to have a trained model M. In this case, the following method, for example, can be considered as a method for detecting the positions of the body parts that make up the person 100 in the captured image I. The detection unit 22 extracts the edges of the person 100 from the captured image I. The detection unit 22 estimates the body parts that make up the person 100 from the shape of the extracted edges. For example, if the shape of the extracted edge is approximately circular, the detection unit 22 estimates that the edge is the head 102 of the person 100.

○ 上記実施形態では、検出部22は、撮像画像Iから撮像画像Iにおける人100を構成する部位の位置を推定していたが、撮像画像Iから人100の画像を抽出した後、抽出した人100の画像から人100を構成する部位の位置を推定してもよい。この場合、学習済みモデルMは、入力された画像から人の画像を抽出するように学習されているのが好ましい。学習済みモデルMは、教師有り学習によって学習されている。教師データは、複数のデータセットを有している。データセットは、人の画像を含む学習用画像と、学習用画像における人の画像の正解データとを有している。検出部22は、学習済みモデルMによって、撮像画像Iから人100の画像を抽出する。この場合、上記実施形態におけるステップS11以降のステップは、撮像画像Iから人100の画像が抽出された場合に行われる。 - In the above embodiment, the detection unit 22 estimated the positions of the body parts that make up the person 100 in the captured image I from the captured image I. However, it is also possible to extract an image of the person 100 from the captured image I and then estimate the positions of the body parts that make up the person 100 from the extracted image of the person 100. In this case, it is preferable that the trained model M has been trained to extract images of people from input images. The trained model M has been trained by supervised learning. The training data has multiple datasets. The datasets have training images that include images of people and ground truth data for images of people in the training images. The detection unit 22 extracts the image of the person 100 from the captured image I using the trained model M. In this case, the steps from step S11 onwards in the above embodiment are performed when an image of the person 100 has been extracted from the captured image I.

○ 図9に示すように、学習済みモデルMは、画像が入力されると、当該画像における足101a,101bの位置を点で出力するように学習されていてもよい。
○ フォークリフト10は、駆動輪12aや操舵輪12bの摩耗等によって傾くことがある。フォークリフト10が傾くとカメラ21も傾く。また、カメラ21は、傾いた状態でフォークリフト10に取り付けられることもある。この場合、検出部22は、カメラ21の傾きを考慮してカメラ21から人100までの距離を算出してもよい。
As shown in FIG. 9, the trained model M may be trained to output the positions of the feet 101a and 101b in an image as points when an image is input.
The forklift 10 may tilt due to wear of the drive wheels 12 a or the steering wheels 12 b, etc. When the forklift 10 tilts, the camera 21 also tilts. The camera 21 may also be attached to the forklift 10 in a tilted state. In this case, the detection unit 22 may calculate the distance from the camera 21 to the person 100 taking into account the tilt of the camera 21.

図10に示すように、カメラ21の光軸は、前後方向に対応する軸であるZ軸に対して角度θ1だけ傾いている。なお、カメラ21の光軸は、左右方向に対しては傾斜していない。この場合、Z軸方向におけるカメラ21から足元101までの距離Dzは、Dz=H/tanθと表される。ここで、角度θとは、Z軸に対する、カメラ21及び足元101を通る直線Lの傾きである。角度θは、θ=θ1+θ2と表される。角度θ2は、カメラ21の光軸に対する直線Lの傾きである。なお、θ2=tan-1(v/f)と表される。 As shown in Figure 10, the optical axis of the camera 21 is tilted at an angle θ1 with respect to the Z axis, which is the axis corresponding to the front-to-rear direction. The optical axis of the camera 21 is not tilted with respect to the left-to-right direction. In this case, the distance Dz from the camera 21 to the feet 101 in the Z axis direction is expressed as Dz = H/tan θ. Here, the angle θ is the tilt of the line L passing through the camera 21 and the feet 101 with respect to the Z axis. The angle θ is expressed as θ = θ1 + θ2. The angle θ2 is the tilt of the line L with respect to the optical axis of the camera 21. It is expressed as θ2 = tan -1 (v/f).

○ 人検出装置20は、複数のカメラ21を備えていてもよい。この場合、撮像範囲が広くなるため、人100の検出可能範囲は広くなる。
○ フォークリフト10に対するカメラ21の取り付け位置は適宜変更されてもよい。例えば、カメラ21は、フロントピラー15や荷役装置13に取り付けられていてもよい。フロントピラー15や荷役装置13に取り付けられたカメラ21は、フォークリフト10の前方を撮像する。
The human detection device 20 may include a plurality of cameras 21. In this case, the imaging range is widened, and therefore the range in which the human 100 can be detected is widened.
The mounting position of the camera 21 on the forklift 10 may be changed as appropriate. For example, the camera 21 may be mounted on the front pillar 15 or the cargo handling device 13. The camera 21 mounted on the front pillar 15 or the cargo handling device 13 captures an image of the area in front of the forklift 10.

○ 人検出装置20及び人検出方法は、フォークリフト10以外の産業車両、例えば、トーイングトラクタに適用されてもよい。
○ 人検出装置20及び人検出方法は、産業車両以外の車両に適用されてもよい。産業車両以外の車両としては、例えば、自動車やトラックが挙げられる。
The human detection device 20 and the human detection method may be applied to industrial vehicles other than the forklift 10, such as a towing tractor.
The human detection device 20 and the human detection method may be applied to vehicles other than industrial vehicles, such as automobiles and trucks.

○ 人検出装置20及び人検出方法は、車両以外に適用されてもよい。
例えば、人検出装置20は、ドローンに適用されてもよい。この場合、カメラ21はドローンに搭載される。検出部22は、カメラ21とともにドローンに搭載されてもよいし、地上にあってもよい。検出部22が地上にある場合、検出部22は、カメラ21と無線通信することにより、カメラ21から撮像画像Iを取得する。
The human detection device 20 and the human detection method may be applied to things other than vehicles.
For example, the human detection device 20 may be applied to a drone. In this case, the camera 21 is mounted on the drone. The detection unit 22 may be mounted on the drone together with the camera 21, or may be located on the ground. When the detection unit 22 is located on the ground, the detection unit 22 acquires the captured image I from the camera 21 by wirelessly communicating with the camera 21.

20…人検出装置、21…カメラ、22…検出部、100…人、101…足元、102…第1部位としての頭部、103…第2部位としての腰部、104…第2部位としての肩部、I…撮像画像、M…学習済みモデル。 20...Human detection device, 21...Camera, 22...Detection unit, 100...Person, 101...Feet, 102...Head as first part, 103...Waist as second part, 104...Shoulder as second part, I...Captured image, M...Trained model.

Claims (5)

フォークリフトに取り付けられたカメラが撮像した画像である撮像画像から人を検出し、前記カメラから前記人までの距離を算出する検出部を備える人検出装置であって、
前記撮像画像には、前記フォークリフトの後部の画像が含まれており、
前記検出部は、
前記撮像画像に前記人を構成する部位である足元が含まれているか否かを判定し、
前記撮像画像に前記足元が含まれていると判定した場合には、前記撮像画像における前記足元の位置を推定し、
前記撮像画像に前記足元が含まれていないと判定した場合には、
前記撮像画像において前記人を構成する部位である第1部位及び第2部位の位置を検出し、
検出した前記撮像画像における前記第1部位及び前記第2部位の位置から、前記撮像画像における前記第1部位と前記第2部位との距離である2点間距離を算出し、
算出した前記2点間距離と、前記第1部位から前記第2部位までの寸法に対する前記第1部位から前記足元までの寸法比として設定されている所定の値に基づいて前記撮像画像における前記足元の位置を推定し、
推定した前記撮像画像における前記足元の位置から画像平面における前記足元の座標を取得し、
前記画像平面は、前記カメラの光軸と直交するとともに、前記カメラの光軸が延びる方向において前記カメラから離れた位置に存在する平面であり、前記カメラの光軸が通過する点を前記画像平面の中心とした場合、前記画像平面は、前記画像平面の中心を通るとともに実世界のX軸方向に対して平行に延びるU軸と、前記画像平面の中心を通るとともに実世界のY軸方向に対して平行に延びるV軸とを有しており、
前記U軸方向における前記画像平面の中心から前記取得された前記画像平面における前記足元の座標までの距離を画素サイズを用いて実世界の寸法に換算した距離と、前記V軸方向における前記画像平面の中心から前記取得された前記画像平面における前記足元の座標までの距離を画素サイズを用いて実世界の寸法に換算した距離とを用いて前記カメラから前記足元までの距離を算出することを特徴とする人検出装置。
A human detection device including a detection unit that detects a person from a captured image that is an image captured by a camera attached to a forklift and calculates a distance from the camera to the person,
the captured image includes an image of a rear portion of the forklift;
The detection unit
determining whether the captured image includes feet, which are a part of the person;
If it is determined that the feet are included in the captured image, the position of the feet in the captured image is estimated;
If it is determined that the captured image does not include the feet,
Detecting positions of a first part and a second part that constitute the person in the captured image;
calculating a point-to-point distance between the first portion and the second portion in the captured image from the detected positions of the first portion and the second portion in the captured image;
estimating the position of the feet in the captured image based on the calculated distance between the two points and a predetermined value set as a ratio of a dimension from the first location to the feet to a dimension from the first location to the second location;
acquiring coordinates of the feet in an image plane from the estimated position of the feet in the captured image;
the image plane is a plane that is orthogonal to the optical axis of the camera and exists at a position away from the camera in the direction in which the optical axis of the camera extends, and when a point through which the optical axis of the camera passes is defined as the center of the image plane, the image plane has a U-axis that passes through the center of the image plane and extends parallel to an X-axis direction in the real world, and a V-axis that passes through the center of the image plane and extends parallel to a Y-axis direction in the real world,
A human detection device characterized by calculating the distance from the camera to the feet using a distance converted to real-world dimensions using pixel size from the center of the image plane in the U-axis direction to the coordinates of the feet in the acquired image plane, and a distance converted to real-world dimensions using pixel size from the center of the image plane in the V -axis direction to the coordinates of the feet in the acquired image plane.
前記検出部は、前記撮像画像における前記第1部位の位置として前記人の頭部の位置を検出し、前記撮像画像における前記第2部位の位置として前記人の腰部又は肩部の位置を検出する請求項1に記載の人検出装置。 The human detection device described in claim 1, wherein the detection unit detects the position of the person's head as the position of the first part in the captured image, and detects the position of the person's waist or shoulders as the position of the second part in the captured image. 前記検出部は、前記撮像画像における前記第2部位の位置として前記腰部の位置を検出し、前記頭部から前記腰部までの寸法に対する前記頭部から前記足元までの寸法比を用いて前記撮像画像における前記足元の位置を推定する請求項2に記載の人検出装置。 The human detection device described in claim 2, wherein the detection unit detects the position of the waist as the position of the second body part in the captured image, and estimates the position of the feet in the captured image using a ratio of the dimension from the head to the feet to the dimension from the head to the waist. 前記検出部は、画像が入力されると、当該画像における前記人を構成する部位の位置を出力するように学習された学習済みモデルを有し、前記学習済みモデルによって、前記撮像画像における前記人を構成する部位の位置を推定する請求項1~3の何れか一項に記載の人検出装置。 The human detection device described in any one of claims 1 to 3, wherein the detection unit has a trained model that has been trained to output the positions of the body parts that make up the person in an image when the image is input, and the positions of the body parts that make up the person in the captured image are estimated using the trained model. 検出部が、フォークリフトに取り付けられたカメラが撮像した画像である撮像画像から人を検出し、前記カメラから前記人までの距離を算出する人検出方法であって、
前記撮像画像には、前記フォークリフトの後部の画像が含まれており、
前記カメラの光軸と直交するとともに、前記カメラの光軸が延びる方向において前記カメラから離れた位置には画像平面が想定され、前記カメラの光軸が通過する点を前記画像平面の中心とした場合、前記画像平面は、前記画像平面の中心を通るとともに実世界のX軸方向に対して平行に延びるU軸と、前記画像平面の中心を通るとともに実世界のY軸方向に対して平行に延びるV軸とを有しており、
前記検出部が前記撮像画像に前記人を構成する部位である足元が含まれているか否かを判定するステップを有し、
前記撮像画像に前記足元が含まれていると判定された場合には、前記検出部が前記撮像画像における前記足元の位置を推定するステップが行われ、
前記撮像画像に前記足元が含まれていないと判定された場合には、
前記検出部が、前記撮像画像において前記人を構成する部位である第1部位及び第2部位の位置を検出するステップと、
前記検出部が、検出した前記撮像画像における前記第1部位及び前記第2部位の位置から、前記撮像画像における前記第1部位と前記第2部位との距離である2点間距離を算出するステップと、
前記検出部が、算出した前記2点間距離と、記第1部位から前記第2部位までの寸法に対する前記第1部位から前記足元までの寸法比として設定されている所定の値に基づいて前記撮像画像における前記足元の位置を推定するステップとが行われ
前記検出部が、推定した前記撮像画像における前記足元の位置から前記画像平面における前記足元の座標を取得するステップと、
前記検出部が、前記U軸方向における前記画像平面の中心から前記取得された前記画像平面における前記足元の座標までの距離を画素サイズを用いて実世界の寸法に換算した距離と、前記V軸方向における前記画像平面の中心から前記取得された前記画像平面における前記足元の座標までの距離を画素サイズを用いて実世界の寸法に換算した距離とを用いて前記カメラから前記足元までの距離を算出するステップと、を有することを特徴とする人検出方法。
A human detection method in which a detection unit detects a human from a captured image that is an image captured by a camera attached to a forklift , and calculates a distance from the camera to the human,
the captured image includes an image of a rear portion of the forklift;
an image plane is assumed to be orthogonal to the optical axis of the camera and at a position away from the camera in the direction in which the optical axis of the camera extends, and when a point through which the optical axis of the camera passes is taken as the center of the image plane, the image plane has a U-axis that passes through the center of the image plane and extends parallel to an X-axis direction in the real world, and a V-axis that passes through the center of the image plane and extends parallel to a Y-axis direction in the real world;
a step in which the detection unit determines whether or not the captured image includes feet, which are a part of the person;
When it is determined that the feet are included in the captured image, the detection unit estimates the position of the feet in the captured image;
If it is determined that the captured image does not include the feet,
a step in which the detection unit detects positions of a first part and a second part that are parts constituting the person in the captured image;
a step in which the detection unit calculates a point-to-point distance between the first portion and the second portion in the captured image from the positions of the first portion and the second portion detected in the captured image;
the detection unit estimates the position of the feet in the captured image based on the calculated distance between the two points and a predetermined value set as a ratio of a dimension from the first location to the feet to a dimension from the first location to the second location ,
the detection unit acquiring coordinates of the feet in the image plane from the estimated position of the feet in the captured image;
A human detection method characterized by comprising a step in which the detection unit calculates the distance from the camera to the feet using a distance from the center of the image plane in the U-axis direction to the coordinates of the feet in the acquired image plane converted to real-world dimensions using pixel size, and a distance from the center of the image plane in the V-axis direction to the coordinates of the feet in the acquired image plane converted to real-world dimensions using pixel size.
JP2022066380A 2022-04-13 2022-04-13 Person detection device and person detection method Active JP7740107B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022066380A JP7740107B2 (en) 2022-04-13 2022-04-13 Person detection device and person detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022066380A JP7740107B2 (en) 2022-04-13 2022-04-13 Person detection device and person detection method

Publications (2)

Publication Number Publication Date
JP2023156802A JP2023156802A (en) 2023-10-25
JP7740107B2 true JP7740107B2 (en) 2025-09-17

Family

ID=88468868

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022066380A Active JP7740107B2 (en) 2022-04-13 2022-04-13 Person detection device and person detection method

Country Status (1)

Country Link
JP (1) JP7740107B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020056644A (en) 2018-10-01 2020-04-09 キヤノン株式会社 Information processing apparatus, information processing method, and program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020056644A (en) 2018-10-01 2020-04-09 キヤノン株式会社 Information processing apparatus, information processing method, and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Zhe Cao et.al.,OpenPose: Realtime Multi-Person 2D Pose Estimation Using Part Affinity Fields,IEEE Transactions on Pattern Analysis and Machine Intelligence,Volume: 43, Issue: 1,米国,IEEE,2019年07月17日,p.172-p. 186,https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8765346

Also Published As

Publication number Publication date
JP2023156802A (en) 2023-10-25

Similar Documents

Publication Publication Date Title
CN111414794B (en) Method for calculating position of trailer hitch point
US10452931B2 (en) Processing method for distinguishing a three dimensional object from a two dimensional object using a vehicular system
KR102098140B1 (en) Method for monotoring blind spot of vehicle and blind spot monitor using the same
JP7025912B2 (en) In-vehicle environment recognition device
EP3552926B1 (en) Apparatus for determining an angle of a trailer attached to a vehicle
KR101776622B1 (en) Apparatus for recognizing location mobile robot using edge based refinement and method thereof
US9202106B2 (en) Eyelid detection device
KR101169533B1 (en) Face posture estimating device, face posture estimating method, and computer readable recording medium recording face posture estimating program
EP3716145A1 (en) Object detection device and method
WO2014199929A1 (en) Monocular-motion-stereo distance estimation method, and monocular-motion-stereo distance estimation apparatus
JP2021060720A (en) Object detection device
CN112230652A (en) Walking robot and its movement control method, computer storage medium
EP4216176B1 (en) Image processing device of person detection system
JP5785515B2 (en) Pedestrian detection device and method, and vehicle collision determination device
JP7732363B2 (en) Obstacle detection device, industrial vehicle, and obstacle detection method
JP6708152B2 (en) Driver state estimating device and driver state estimating method
JP7740107B2 (en) Person detection device and person detection method
KR20240178529A (en) Method and apparatus for estimating object distance based on static object and ground height difference
CN120164159B (en) A motorcycle helmet wearing identification and driving safety control method and system
US11704911B2 (en) Apparatus and method for identifying obstacle around vehicle
CN114937250A (en) Vehicle body relative pose calculation method, device, vehicle, equipment and storage medium
JP7700707B2 (en) Obstacle detection device and obstacle detection method
JP7683546B2 (en) Seat position estimation device, seat position estimation method, and computer program for seat position estimation
AU2024204296B2 (en) Obstacle detection device and obstacle detection method
CN114565974A (en) Human body dumping identification algorithm based on 3D vision

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240919

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20250519

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250527

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250725

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: 20250805

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250818

R150 Certificate of patent or registration of utility model

Ref document number: 7740107

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150