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
JP6772059B2 - Electronic control devices, electronic control systems and electronic control methods - Google Patents
[go: Go Back, main page]

JP6772059B2 - Electronic control devices, electronic control systems and electronic control methods - Google Patents

Electronic control devices, electronic control systems and electronic control methods Download PDF

Info

Publication number
JP6772059B2
JP6772059B2 JP2016256693A JP2016256693A JP6772059B2 JP 6772059 B2 JP6772059 B2 JP 6772059B2 JP 2016256693 A JP2016256693 A JP 2016256693A JP 2016256693 A JP2016256693 A JP 2016256693A JP 6772059 B2 JP6772059 B2 JP 6772059B2
Authority
JP
Japan
Prior art keywords
unit
electronic control
boundary
correction
end position
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
JP2016256693A
Other languages
Japanese (ja)
Other versions
JP2018109824A (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.)
Denso Ten Ltd
Original Assignee
Denso Ten Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP2016256693A priority Critical patent/JP6772059B2/en
Publication of JP2018109824A publication Critical patent/JP2018109824A/en
Application granted granted Critical
Publication of JP6772059B2 publication Critical patent/JP6772059B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Optical Distance (AREA)
  • Regulating Braking Force (AREA)
  • Image Processing (AREA)
  • Traffic Control Systems (AREA)
  • Image Analysis (AREA)

Description

本発明は、電子制御装置、電子制御システムおよび電子制御方法に関する。 The present invention relates to electronic control devices, electronic control systems and electronic control methods.

従来、車載カメラ等の撮像装置によって撮像される撮像画像から歩行者を検知し、歩行者までの距離を算出する歩行者検知装置がある(例えば、特許文献1参照)。 Conventionally, there is a pedestrian detection device that detects a pedestrian from an image captured by an image pickup device such as an in-vehicle camera and calculates the distance to the pedestrian (see, for example, Patent Document 1).

特開2001−351193号公報Japanese Unexamined Patent Publication No. 2001-351193

しかしながら、上記した従来技術では、撮像画像から特定した歩行者の位置が正確でない場合があり、かかる場合に、歩行者までの正確な距離を算出することができないという問題がある。 However, in the above-mentioned conventional technique, the position of the pedestrian specified from the captured image may not be accurate, and in such a case, there is a problem that the accurate distance to the pedestrian cannot be calculated.

本発明は、上記に鑑みてなされたものであって、歩行者までの距離の算出精度を向上させることができる電子制御装置、電子制御システムおよび電子制御方法を提供することを目的とする。 The present invention has been made in view of the above, and an object of the present invention is to provide an electronic control device, an electronic control system, and an electronic control method capable of improving the calculation accuracy of a distance to a pedestrian.

本発明は、電子制御装置において検出部と、探索部と、補正部と、算出部とを備える。検出部は、撮像画像から人物の形状が存在する人物領域を検出する。探索部は、前記撮像画像における明領域と暗領域との境界を探索する。補正部は、前記探索部によって探索された前記境界に基づいて前記人物領域の下端位置を補正する。算出部は、前記補正部によって補正された前記下端位置に基づいて前記人物までの距離を算出する。 The present invention includes a detection unit, a search unit, a correction unit, and a calculation unit in an electronic control device. The detection unit detects a person area in which the shape of the person exists from the captured image. The search unit searches for the boundary between the bright region and the dark region in the captured image. The correction unit corrects the lower end position of the person area based on the boundary searched by the search unit. The calculation unit calculates the distance to the person based on the lower end position corrected by the correction unit.

本発明によれば、歩行者までの距離の算出精度を向上させることができる。 According to the present invention, the accuracy of calculating the distance to a pedestrian can be improved.

図1は、電子制御装置が行う制御方法の概要を示す図である。FIG. 1 is a diagram showing an outline of a control method performed by an electronic control device. 図2は、電子制御システムのブロック図である。FIG. 2 is a block diagram of an electronic control system. 図3は、探索範囲の一例を示す図である。FIG. 3 is a diagram showing an example of the search range. 図4Aは、2値化部による異常判定処理を説明する図(その1)である。FIG. 4A is a diagram (No. 1) for explaining the abnormality determination process by the binarization unit. 図4Bは、2値化部による異常判定処理を説明する図(その2)である。FIG. 4B is a diagram (No. 2) for explaining the abnormality determination process by the binarization unit. 図5Aは、補正部による異常判定処理を説明する図(その1)である。FIG. 5A is a diagram (No. 1) for explaining the abnormality determination process by the correction unit. 図5Bは、補正部による異常判定処理を説明する図(その2)である。FIG. 5B is a diagram (No. 2) for explaining the abnormality determination process by the correction unit. 図6は、電子制御装置が実行する処理手順を示すフローチャートである。FIG. 6 is a flowchart showing a processing procedure executed by the electronic control device.

以下に添付図面を参照して、実施形態に係る電子制御装置、電子制御システムおよび電子制御方法について詳細に説明する。なお、この実施形態により本発明が限定されるものではない。 The electronic control device, the electronic control system, and the electronic control method according to the embodiment will be described in detail with reference to the accompanying drawings. The present invention is not limited to this embodiment.

以下では、自車両に設けられて自車両の前方を撮像するカメラから入力される撮像画像に基づいて自車両から撮像画像に写る人物(以下、歩行者Hという)までの距離を算出する場合について説明する。 In the following, the case of calculating the distance from the own vehicle to the person (hereinafter referred to as pedestrian H) reflected in the captured image based on the captured image input from the camera provided in the own vehicle and capturing the front of the own vehicle. explain.

まず、図1を用いて実施形態に係る電子制御装置が行う制御方法の概要について説明する。図1は、電子制御装置が行う制御方法の概要を示す図である。なお、かかる制御方法は、図2にて後述する電子制御装置1によって実行される。 First, the outline of the control method performed by the electronic control device according to the embodiment will be described with reference to FIG. FIG. 1 is a diagram showing an outline of a control method performed by an electronic control device. The control method is executed by the electronic control device 1 described later in FIG.

図1に示すように、実施形態に係る電子制御装置1は、カメラから歩行者Hが写る撮像画像Fが入力された場合、まず、撮像画像Fから歩行者Hの形状が存在する人物領域Mを検出する。 As shown in FIG. 1, in the electronic control device 1 according to the embodiment, when the captured image F in which the pedestrian H is captured is input from the camera, first, the person region M in which the shape of the pedestrian H exists from the captured image F Is detected.

例えば、電子制御装置1は、撮像画像Fに写る物体が歩行者Hか否かを判定する基準となる人物辞書情報を使用して撮像画像Fから人物領域Mを検出する。 For example, the electronic control device 1 detects the person region M from the captured image F by using the person dictionary information that serves as a reference for determining whether or not the object reflected in the captured image F is a pedestrian H.

そして、電子制御装置1は、撮像画像Fにおける人物領域Mの下端位置Mbを歩行者Hの接地位置Hbとして使用し、自車両から歩行者Hまでの距離を算出する。 Then, the electronic control device 1 uses the lower end position Mb of the person region M in the captured image F as the ground contact position Hb of the pedestrian H, and calculates the distance from the own vehicle to the pedestrian H.

このとき、電子制御装置1は、撮像画像Fにおける歩行者の接地位置Hbと、人物領域Mにおける下端位置Mbとが一致していれば、歩行者Hまでの正確な距離を算出することができる。 At this time, the electronic control device 1 can calculate an accurate distance to the pedestrian H if the ground contact position Hb of the pedestrian in the captured image F and the lower end position Mb in the person area M match. ..

しかしながら、図1に示すように、人物領域Mにおける下端位置Mbと、歩行者Hの接地位置Hbにズレが生じる場合がある。かかる場合に、従来の電子制御装置では、自車両から歩行者Hまでの距離を正しく算出できなかった。 However, as shown in FIG. 1, the lower end position Mb in the person area M and the ground contact position Hb of the pedestrian H may be misaligned. In such a case, the conventional electronic control device cannot correctly calculate the distance from the own vehicle to the pedestrian H.

そこで、実施形態に係る電子制御装置1は、撮像画像Fから人物領域Mを検出したのちに、人物領域Mにおける下端位置Mbを補正し、補正後の人物領域Mの下端位置Mbを用いて歩行者Hまでの距離を算出することとした。 Therefore, the electronic control device 1 according to the embodiment corrects the lower end position Mb in the person area M after detecting the person area M from the captured image F, and walks using the corrected lower end position Mb of the person area M. It was decided to calculate the distance to person H.

具体的には、図1に示すように、撮像画像Fにおいて、歩行者Hおよび歩行者H以外の領域(例えば、路面)で輝度や彩度、明度などが異なる。このため、撮像画像Fにおいて歩行者Hとその他の領域との間に明領域と暗領域との境界が存在する。 Specifically, as shown in FIG. 1, in the captured image F, the brightness, saturation, brightness and the like are different between the pedestrian H and the region other than the pedestrian H (for example, the road surface). Therefore, in the captured image F, there is a boundary between the bright region and the dark region between the pedestrian H and the other region.

図1では、歩行者Hが暗領域Zdであり、その他の領域(路面)が明領域Zlである場合について示している。なお、歩行者Hの服装や路面の色等によって歩行者Hとその他の領域で明領域Zlと暗領域Zdが反転することもある。 FIG. 1 shows a case where the pedestrian H is the dark region Zd and the other region (road surface) is the bright region Zl. The bright region Zl and the dark region Zd may be reversed between the pedestrian H and other regions depending on the clothes of the pedestrian H, the color of the road surface, and the like.

そこで、電子制御装置1は、撮像画像Fから明領域Zlおよび暗領域Zdの境界を探索し、探索した境界をあらたに下端位置Mbとする補正を行う。したがって、電子制御装置1は、人物領域Mの下端位置Mbを歩行者Hの接地位置Hbへ正確に一致させることができる。 Therefore, the electronic control device 1 searches for the boundary between the bright region Zl and the dark region Zd from the captured image F, and corrects the searched boundary to be the lower end position Mb. Therefore, the electronic control device 1 can accurately match the lower end position Mb of the person area M with the ground contact position Hb of the pedestrian H.

これにより、電子制御装置1は、補正後の下端位置Mbに基づいて歩行者Hまでの距離を算出することで、歩行者Hまでの距離の算出精度を向上させることができる。 As a result, the electronic control device 1 can improve the calculation accuracy of the distance to the pedestrian H by calculating the distance to the pedestrian H based on the corrected lower end position Mb.

ところで、上述した例では、電子制御装置1が、単に撮像画像Fから明領域と暗領域の境界を探索する場合について説明したが、撮像画像Fを2値化した2値化画像から上記の境界を探索することもできる。 By the way, in the above-mentioned example, the case where the electronic control device 1 simply searches the boundary between the bright region and the dark region from the captured image F has been described, but the above boundary is obtained from the binarized image obtained by binarizing the captured image F. You can also search for.

また、かかる場合に、電子制御装置1が、2値化処理に用いる2値化閾値を用いて異常判定処理を行うこともできる。この点の詳細については、図4Aおよび図4Bを用いて後述する。 Further, in such a case, the electronic control device 1 can also perform the abnormality determination process using the binarization threshold value used for the binarization process. Details of this point will be described later with reference to FIGS. 4A and 4B.

また、電子制御装置1は、補正した下端位置Mbの履歴に基づいて異常判定処理を行うこともできる。この点の詳細については、図5Aおよび図5Bを用いて後述する。 Further, the electronic control device 1 can also perform the abnormality determination process based on the history of the corrected lower end position Mb. Details of this point will be described later with reference to FIGS. 5A and 5B.

次に、図2を用いて実施形態に係る電子制御システム50の構成について説明する。図2は、電子制御システム50のブロック図である。なお、電子制御システム50は、電子制御装置1、カメラ5および車両制御装置40を備える。また、電子制御装置1は、カメラ5および車両制御装置40に接続される。 Next, the configuration of the electronic control system 50 according to the embodiment will be described with reference to FIG. FIG. 2 is a block diagram of the electronic control system 50. The electronic control system 50 includes an electronic control device 1, a camera 5, and a vehicle control device 40. Further, the electronic control device 1 is connected to the camera 5 and the vehicle control device 40.

カメラ5は、例えば、CCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)などの撮像素子を備え、例えば、自車両の前方を撮像する。 The camera 5 includes, for example, an image sensor such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor), and for example, images the front of the own vehicle.

電子制御装置1は、制御部2と、記憶部3とを備える。制御部2は、変換部21と、検出部22と、探索部23と、補正部24および算出部25を備える。 The electronic control device 1 includes a control unit 2 and a storage unit 3. The control unit 2 includes a conversion unit 21, a detection unit 22, a search unit 23, a correction unit 24, and a calculation unit 25.

制御部2は、例えば、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)、HDD(Hard Disk Drive)、入出力ポートなどを有するコンピュータや各種の回路を含む。 The control unit 2 includes, for example, a computer having a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), an HDD (Hard Disk Drive), an input / output port, and various circuits.

コンピュータのCPUは、例えば、ROMに記憶されたプログラムを読み出して実行することによって、制御部2の変換部21、検出部22、探索部23、補正部24および算出部25として機能する。 The CPU of the computer functions as a conversion unit 21, a detection unit 22, a search unit 23, a correction unit 24, and a calculation unit 25 of the control unit 2, for example, by reading and executing a program stored in the ROM.

また、制御部2の変換部21、検出部22、探索部23、補正部24および算出部25の少なくともいずれか一つまたは全部をASIC(Application Specific Integrated Circuit)やFPGA(Field Programmable Gate Array)等のハードウェアで構成することもできる。 Further, at least one or all of the conversion unit 21, the detection unit 22, the search unit 23, the correction unit 24, and the calculation unit 25 of the control unit 2 are ASIC (Application Specific Integrated Circuit), FPGA (Field Programmable Gate Array), or the like. It can also be configured with the hardware of.

また、記憶部3は、例えば、RAMやHDDに対応する。RAMやHDDは、人物辞書情報31、閾値履歴情報32および境界履歴情報33や各種プログラムを記憶することができる。 Further, the storage unit 3 corresponds to, for example, a RAM or an HDD. The RAM or HDD can store the person dictionary information 31, the threshold history information 32, the boundary history information 33, and various programs.

なお、電子制御装置1は、有線や無線のネットワークで接続された他のコンピュータや可搬型記録媒体を介して上記したプログラムや各種情報を取得することとしてもよい。 The electronic control device 1 may acquire the above-mentioned program and various information via another computer or a portable recording medium connected by a wired or wireless network.

人物辞書情報31は、撮像画像Fに写る物体が歩行者Hか否かを判定する基準となる情報であり、機械学習によって予め作成される。人物辞書情報31は、例えば、形状が既知の複数種類の人物の画像と、人物以外の物体の画像とを学習データとしてそれぞれ所定数(例えば、数100〜数10000枚の画像)準備する。 The person dictionary information 31 is information that serves as a reference for determining whether or not the object reflected in the captured image F is a pedestrian H, and is created in advance by machine learning. The person dictionary information 31 prepares, for example, a predetermined number (for example, several hundred to several 10,000 images) of images of a plurality of types of persons whose shapes are known and images of objects other than the person as learning data.

続いて、準備した各画像から、例えば、HOG(Histogram of Gradient)特徴量を抽出する。そして、前述の予め準備した画像を、抽出したHOG特徴量に基づいて2次元平面状にプロットする。 Subsequently, for example, a HOG (Histogram of Gradient) feature amount is extracted from each prepared image. Then, the above-mentioned prepared image is plotted in a two-dimensional plane based on the extracted HOG features.

続いて、例えば、SVM(Support Vector Machine)等の識別器によって、2次元平面上における人物の画像と人物以外の物体の画像とを分離する分離線を生成する。かかる2次元平面の座標軸および識別器によって生成された分離線の情報が人物辞書情報31となる。 Subsequently, for example, a classifier such as an SVM (Support Vector Machine) is used to generate a separation line that separates an image of a person and an image of an object other than the person on a two-dimensional plane. The information of the coordinate axes of the two-dimensional plane and the separation line generated by the classifier becomes the person dictionary information 31.

なお、予め準備した画像から抽出する特徴量は、HOG特徴量に限定されず、SIFT(Scale Invariant Feature Transform)特徴量であってもよい。また、人物の画像と人物以外の物体の画像との分離に用いる識別器は、SVMに限定されず、例えば、アダブースト(AdaBoost)等の識別器であってもよい。なお、閾値履歴情報32および境界履歴情報33については図4Aおよび図5A等を用いて後述するため、ここでの説明は省略する。 The feature amount extracted from the image prepared in advance is not limited to the HOG feature amount, and may be a SIFT (Scale Invariant Feature Transform) feature amount. Further, the discriminator used for separating the image of a person and the image of an object other than the person is not limited to SVM, and may be, for example, a discriminator such as AdaBoost. Since the threshold value history information 32 and the boundary history information 33 will be described later with reference to FIGS. 4A and 5A, the description thereof is omitted here.

制御部2の変換部21は、カメラ5から撮像画像Fを取得し、かかる撮像画像Fをグレースケール化することで、撮像画像Fをグレースケール画像へ変換する。そして、変換部21は、グレースケール画像を検出部22へ出力する。 The conversion unit 21 of the control unit 2 acquires the captured image F from the camera 5 and converts the captured image F into a grayscale image by grayscale the captured image F. Then, the conversion unit 21 outputs the grayscale image to the detection unit 22.

ここで、グレースケール化とは、撮像画像Fにおける各画素を輝度に応じて白から黒までの各階調(例えば256階調)で表現するように変換する処理である。なお、撮像画像Fがカラー画像でない場合、グレースケール化は省略される。 Here, the grayscale conversion is a process of converting each pixel in the captured image F so as to be expressed in each gradation from white to black (for example, 256 gradations) according to the brightness. If the captured image F is not a color image, grayscale conversion is omitted.

検出部22は、人物辞書情報31を使用して、変換部21から入力されるグレースケール画像について人物、すなわち歩行者Hが存在する人物領域M(図1参照)を検出する。 The detection unit 22 uses the person dictionary information 31 to detect a person, that is, a person area M (see FIG. 1) in which a pedestrian H exists in the grayscale image input from the conversion unit 21.

検出部22は、例えば、人物領域Mを検出した場合、人物領域Mに関する人物領域情報を生成して、グレースケール画像とあわせて探索部23へ出力する。また、検出部22は、人物領域情報を補正部24へ出力する処理を行う。 For example, when the person area M is detected, the detection unit 22 generates the person area information regarding the person area M and outputs the information to the search unit 23 together with the grayscale image. Further, the detection unit 22 performs a process of outputting the person area information to the correction unit 24.

人物領域情報は、撮像画像Fにおける人物領域Mの位置および大きさを示す情報であり、例えば、XY直交座標系に変換した撮像画像Fにおける人物領域Mが存在するXY座標値である。 The person area information is information indicating the position and size of the person area M in the captured image F, and is, for example, an XY coordinate value in which the person area M in the captured image F converted into the XY orthogonal coordinate system exists.

探索部23は、撮像画像Fから明領域および暗領域の境界を探索し、探索した境界を補正部24へ出力する。また、探索部23は、設定部23a、2値化部23bおよび決定部23cを備える。 The search unit 23 searches for the boundary between the bright region and the dark region from the captured image F, and outputs the searched boundary to the correction unit 24. Further, the search unit 23 includes a setting unit 23a, a binarization unit 23b, and a determination unit 23c.

設定部23aは、検出部22によって検出された人物領域Mに基づいて撮像画像Fにおける探索範囲Rを設定する。例えば、設定部23aは、設定した探索範囲Rの撮像画像FにおけるXY座標値をグレースケール画像に関連付けて2値化部23bへ出力する。なお、設定部23aによる処理の具体例については、図3を用いて後述する。 The setting unit 23a sets the search range R in the captured image F based on the person area M detected by the detection unit 22. For example, the setting unit 23a associates the XY coordinate values in the captured image F of the set search range R with the grayscale image and outputs them to the binarization unit 23b. A specific example of the processing by the setting unit 23a will be described later with reference to FIG.

2値化部23bは、設定部23aによって設定された探索範囲Rにおける各画素の輝度分布に応じた2値化閾値Thを用いてグレースケール画像を2値化する。 The binarization unit 23b binarizes the grayscale image using the binarization threshold Th according to the brightness distribution of each pixel in the search range R set by the setting unit 23a.

まず、2値化部23bは、例えば、判別分析法(いわゆる「大津の2値化」手法)を用いて2値化閾値Thを算出する。具体的には、2値化部23bは、探索範囲R内の画素の輝度値の分布についてヒストグラムを作成し、ヒストグラムにおいて輝度値の分離度が最も大きくなる値を2値化閾値Thとして算出する。 First, the binarization unit 23b calculates the binarization threshold Th by using, for example, a discriminant analysis method (so-called “Otsu binarization” method). Specifically, the binarization unit 23b creates a histogram for the distribution of the luminance values of the pixels in the search range R, and calculates the value at which the degree of separation of the luminance values is the largest in the histogram as the binarization threshold Th. ..

このように、電子制御装置1は、探索範囲Rについて設定判別法を用いることで、周囲の状況にあわせて2値化閾値Thを最適な値に導出することができる。これにより、歩行者Hおよび歩行者H以外の領域を精度よく分離することができる。 As described above, the electronic control device 1 can derive the binarization threshold Th to the optimum value according to the surrounding situation by using the setting determination method for the search range R. As a result, the regions other than the pedestrian H and the pedestrian H can be accurately separated.

ここで、2値化部23bは、2値化に使用する2値化閾値Thをグレースケール画像のフレーム番号とともに閾値履歴情報32として記憶しておく。そして、2値化部23bは、かかる閾値履歴情報32に基づいて2値化処理を行うか否かを判定することもできる。かかる点の詳細については、図4Aおよび図4Bを用いて後述する。 Here, the binarization unit 23b stores the binarization threshold Th used for binarization as the threshold history information 32 together with the frame number of the grayscale image. Then, the binarization unit 23b can also determine whether or not to perform the binarization process based on the threshold history information 32. Details of this point will be described later with reference to FIGS. 4A and 4B.

2値化部23bは、上記の判定において2値化処理を行うと判定した場合、2値化閾値Thを用いてグレースケール画像を2値化した2値化画像を生成し、決定部23cへ出力する。なお、2値化部23bは、例えば、撮像画像Fにおける明領域の画素に「0」、暗領域の画素に「1」をそれぞれ割り当てることで、2値化画像を生成する。 When the binarization unit 23b determines that the binarization process is performed in the above determination, the binarization unit 23b generates a binarized image obtained by binarizing the grayscale image using the binarization threshold Th, and sends the binarization unit 23c to the determination unit 23c. Output. The binarization unit 23b generates a binarized image by, for example, assigning "0" to the pixels in the bright region and "1" to the pixels in the dark region in the captured image F.

決定部23cは、2値化部23bから入力される2値化画像において、設定部23aが設定した探索範囲Rを探索し、明領域(画素が「0」の領域)と暗領域(画素が「1」の領域)の境界を決定する。 The determination unit 23c searches the search range R set by the setting unit 23a in the binarized image input from the binarization unit 23b, and searches for a bright area (area where the pixel is "0") and a dark area (pixels are). The boundary of "1" area) is determined.

例えば、決定部23cは、探索範囲Rの下端から上端に向かって境界を探索する。そして、決定部23cは、境界を検出した場合に、かかる境界に関する境界情報を生成し、補正部24へ出力する。境界情報は、例えば、撮像画像Fにおける境界のXY座標値である。 For example, the determination unit 23c searches the boundary from the lower end to the upper end of the search range R. Then, when the determination unit 23c detects the boundary, the determination unit 23c generates boundary information regarding the boundary and outputs the boundary information to the correction unit 24. The boundary information is, for example, the XY coordinate value of the boundary in the captured image F.

例えば、決定部23cは、探索範囲Rを探索し、1画素分の明領域と暗領域との境界を検出した場合に、かかる境界の境界情報を生成する。つまり、電子制御装置1は、境界の検出条件を最少の単位である1画素とすることで、決定部23cによる境界の見落としを抑制することができる。 For example, when the determination unit 23c searches the search range R and detects the boundary between the bright region and the dark region for one pixel, the determination unit 23c generates boundary information of the boundary. That is, the electronic control device 1 can suppress oversight of the boundary by the determination unit 23c by setting the boundary detection condition to one pixel, which is the minimum unit.

しかしながら、検出条件は、これに限定されるものではない。例えば、隣り合う複数の画素(例えば、3画素以上)にわたって明領域と暗領域の境界を検出したことを境界の検出条件とすることにしてもよい。このようにすることで、決定部23cが、接地位置Hb以外のノイズ成分を境界として決定するのを抑制することができる。 However, the detection conditions are not limited to this. For example, the boundary detection condition may be that the boundary between the bright region and the dark region is detected over a plurality of adjacent pixels (for example, three or more pixels). By doing so, it is possible to suppress the determination unit 23c from determining a noise component other than the grounding position Hb as a boundary.

補正部24は、決定部23cによって生成された境界情報に基づいて検出部22から入力される人物領域Mの下端位置Mbを補正する。例えば、補正部24は、決定部23cから入力される境界情報のXY座標値と、検出部22によって検出された人物領域Mの下端位置MbのXY座標値とを比較する。 The correction unit 24 corrects the lower end position Mb of the person area M input from the detection unit 22 based on the boundary information generated by the determination unit 23c. For example, the correction unit 24 compares the XY coordinate value of the boundary information input from the determination unit 23c with the XY coordinate value of the lower end position Mb of the person area M detected by the detection unit 22.

そして、補正部24は、双方のXY座標値が異なる値である場合に、下端位置MbのXY座標値から境界情報のXY座標値へ補正して、補正後のXY座標値を算出部25へ出力する。これにより、算出部25は、歩行者Hまでの正確な距離を算出することができる。 Then, when the XY coordinate values of both are different values, the correction unit 24 corrects the XY coordinate value of the lower end position Mb to the XY coordinate value of the boundary information, and returns the corrected XY coordinate value to the calculation unit 25. Output. As a result, the calculation unit 25 can calculate an accurate distance to the pedestrian H.

ここで、補正部24は、補正した下端位置MbのXY座標値を境界履歴情報33として記憶部3に記憶しておき、かかる境界履歴情報33に基づいて補正の確からしさを判定することもできる。かかる点の詳細については、図5Aおよび図5Bを用いて後述する。 Here, the correction unit 24 can store the corrected XY coordinate value of the lower end position Mb in the storage unit 3 as the boundary history information 33, and can determine the certainty of the correction based on the boundary history information 33. .. Details of this point will be described later with reference to FIGS. 5A and 5B.

算出部25は、補正部24から入力される補正後のXY座標値に基づいて歩行者Hまでの距離を算出する。例えば、算出部25は、カメラ5の取り付け位置に関する情報(取り付け高さや取り付け角度など)を予め設定値として記憶しておき、かかる設定値と、上記した補正後のXY座標値から三角測量を用いて自車両から歩行者Hまでの距離を算出する。 The calculation unit 25 calculates the distance to the pedestrian H based on the corrected XY coordinate values input from the correction unit 24. For example, the calculation unit 25 stores information (mounting height, mounting angle, etc.) regarding the mounting position of the camera 5 as set values in advance, and uses triangulation from the set values and the corrected XY coordinate values described above. The distance from the own vehicle to the pedestrian H is calculated.

そして、算出部25は、算出した距離を車両制御装置40へ出力する。車両制御装置40は、算出部25から入力される距離に基づいて自車両を制御する。 Then, the calculation unit 25 outputs the calculated distance to the vehicle control device 40. The vehicle control device 40 controls its own vehicle based on the distance input from the calculation unit 25.

車両制御装置40は、算出部25から入力される距離が所定距離以下(例えば、1メートル以下)である場合に、自車両のブレーキを制御して自車両を停止させる。 When the distance input from the calculation unit 25 is not more than a predetermined distance (for example, 1 meter or less), the vehicle control device 40 controls the brake of the own vehicle to stop the own vehicle.

これにより、自車両と歩行者Hとの衝突を未然に防ぐことができる。なお、かかる所定距離については、上記の例に限定されるものではなく、任意の値に設定することができる。また、車両制御装置40は、例えば、歩行者Hとの衝突を回避するように自車両のステアリングを制御することにしてもよい。 As a result, it is possible to prevent a collision between the own vehicle and the pedestrian H. The predetermined distance is not limited to the above example, and can be set to any value. Further, the vehicle control device 40 may control the steering of the own vehicle so as to avoid a collision with the pedestrian H, for example.

次に、図3を用いて設定部23aによって設定される探索範囲Rについて説明する。図3は、探索範囲Rの一例を示す図である。 Next, the search range R set by the setting unit 23a will be described with reference to FIG. FIG. 3 is a diagram showing an example of the search range R.

同図に示すように、設定部23aは、人物領域Mの下端位置Mbの近傍を探索範囲Rとして設定する。具体的には、設定部23aは、例えば、下端位置Mbを中心として人物領域Mの大きさの上下左右±20%の幅を探索範囲Rとして設定する。 As shown in the figure, the setting unit 23a sets the vicinity of the lower end position Mb of the person area M as the search range R. Specifically, the setting unit 23a sets, for example, a width of ± 20% of the size of the person area M as the search range R centered on the lower end position Mb.

すなわち、設定部23aは、探索範囲Rを人物領域Mの下端近傍に設定する。これにより、決定部23cは、人物領域Mの下端近傍の領域を集中的に探索することとなる。 That is, the setting unit 23a sets the search range R near the lower end of the person area M. As a result, the determination unit 23c intensively searches the area near the lower end of the person area M.

このため、決定部23cは、効率よく境界を決定することができる。また、決定部23cによる境界の探索処理に先立って予め探索範囲Rを限定しておくことで、決定部23cの探索に掛かる処理負荷を軽減することもできる。 Therefore, the determination unit 23c can efficiently determine the boundary. Further, by limiting the search range R in advance prior to the boundary search process by the determination unit 23c, the processing load on the search of the determination unit 23c can be reduced.

なお、上記した探索範囲Rは、一例に過ぎず、設定部23aは、探索範囲Rをさらに大きく設定することにしてもよいし、小さく設定することにしてもよい。 The search range R described above is only an example, and the setting unit 23a may set the search range R to be larger or smaller.

次に、図4Aおよび図4Bを用いて2値化部23bによる異常判定処理について説明する。図4Aおよび図4Bは、2値化部23bによる異常判定処理を説明する図である。 Next, the abnormality determination process by the binarization unit 23b will be described with reference to FIGS. 4A and 4B. 4A and 4B are diagrams for explaining the abnormality determination process by the binarization unit 23b.

なお、図4Aは、閾値履歴情報32の一例であり、縦軸に2値化閾値Thの値を示しており、横軸に対応するフレーム番号を示している。また、図4Bは、図4Aに示したフレーム番号F1およびフレーム番号F2におけるグレースケール画像の一例を示す。 Note that FIG. 4A is an example of the threshold history information 32, in which the vertical axis shows the value of the binarization threshold Th, and the horizontal axis shows the frame number corresponding to the horizontal axis. Further, FIG. 4B shows an example of the grayscale image at the frame number F1 and the frame number F2 shown in FIG. 4A.

2値化部23bは、異常判定処理として、図4Aに示した閾値履歴情報32に基づいて2値化閾値Thの時系列的な変動量が所定値ThAを超えた場合に、2値化閾値Thを異常として判定する。 The binarization unit 23b performs the binarization threshold value as an abnormality determination process when the time-series fluctuation amount of the binarization threshold value Th exceeds a predetermined value ThA based on the threshold value history information 32 shown in FIG. 4A. Th is determined as abnormal.

図4Aの例では、フレーム番号F1およびフレーム番号F2の間で、2値化閾値Thの変動量A1が所定値ThAを超えている。このとき、2値化部23bは、フレーム番号F2の2値化閾値Thについて異常と判定する。 In the example of FIG. 4A, the fluctuation amount A1 of the binarization threshold Th exceeds the predetermined value ThA between the frame number F1 and the frame number F2. At this time, the binarization unit 23b determines that the binarization threshold Th of the frame number F2 is abnormal.

これは、図4Bに示すように、フレーム番号F1からフレーム番号F2の間に、探索範囲Rに他車両Cや他車両Cの影Csが写り込むなど、歩行者H以外の領域にノイズの混入が想定されるためである。 This is because, as shown in FIG. 4B, noise is mixed in a region other than the pedestrian H, such as the shadow Cs of another vehicle C or another vehicle C being reflected in the search range R between the frame numbers F1 and the frame number F2. This is because

かかる場合に、歩行者Hよりも下端側に明領域および暗領域の境界が存在することがある。このため、決定部23cが、境界を歩行者Hの下端位置Mb以外に決定してしまうおそれがある。 In such a case, the boundary between the bright region and the dark region may exist on the lower end side of the pedestrian H. Therefore, the determination unit 23c may determine the boundary other than the lower end position Mb of the pedestrian H.

このため、2値化部23bは、異常対応処理としてフレーム番号F2のグレースケール画像について2値化処理を実行せず、補正部24に対して検出部22によって検出された人物領域Mの下端位置MbのXY座標値を算出部25へ出力するように指示する。 Therefore, the binarization unit 23b does not execute the binarization process for the grayscale image of the frame number F2 as the abnormality handling process, and the lower end position of the person area M detected by the detection unit 22 with respect to the correction unit 24. It is instructed to output the XY coordinate value of Mb to the calculation unit 25.

これにより、決定部23cが境界を誤って決定することを未然に回避することができる。したがって、補正部24による誤った補正を未然に防ぐことが可能となる。また、かかる場合に、2値化部23bによる2値化処理および決定部23cによる処理を省略することができる。 As a result, it is possible to prevent the determination unit 23c from erroneously determining the boundary. Therefore, it is possible to prevent erroneous correction by the correction unit 24. Further, in such a case, the binarization process by the binarization unit 23b and the process by the determination unit 23c can be omitted.

つまり、補正部24による補正の精度を担保しつつ、2値化部23bや決定部23cによる処理負荷を抑えることができる。このように、2値化部23bは、判別分析法を用いることで、歩行者Hと他の領域を適切に分離するのみならず、2値化閾値Thの履歴に基づいて異常判定処理を行うこともできる。 That is, the processing load by the binarization unit 23b and the determination unit 23c can be suppressed while ensuring the accuracy of the correction by the correction unit 24. In this way, the binarization unit 23b not only appropriately separates the pedestrian H from the other region by using the discriminant analysis method, but also performs the abnormality determination process based on the history of the binarization threshold Th. You can also do it.

なお、上記したフレーム番号F1とフレーム番号F2は、連続していてもよいし、あるいは、任意のフレーム数を隔てていてもよい。このことは、図5Aおよび図5Bを用いて後述するフレーム番号F3、F4についても同様である。 The frame number F1 and the frame number F2 described above may be continuous or may be separated by an arbitrary number of frames. This also applies to the frame numbers F3 and F4, which will be described later with reference to FIGS. 5A and 5B.

なお、2値化部23bは、異常判定処理として、設定部23aによって設定された探索範囲Rを狭めて2値化閾値Thを設定し、かかる2値化閾値Thについて上記した判定を行うようにしてもよい。これにより、探索範囲Rにノイズが混入しにくくなるため、2値化部23bは、正常な値の2値化閾値Thを設定することができる。 The binarization unit 23b narrows the search range R set by the setting unit 23a to set the binarization threshold Th as an abnormality determination process, and makes the above determination for the binarization threshold Th. You may. As a result, noise is less likely to be mixed in the search range R, so that the binarization unit 23b can set the binarization threshold Th of a normal value.

次に、図5Aおよび図5Bを用いて補正部24による異常判定処理について説明する。図5Aおよび図5Bは、補正部24による異常判定処理を説明する図である。 Next, the abnormality determination process by the correction unit 24 will be described with reference to FIGS. 5A and 5B. 5A and 5B are diagrams for explaining the abnormality determination process by the correction unit 24.

図5Aは、図2に示した境界履歴情報33の一例である。なお、図5Aでは縦軸に補正後の境界のY座標の値を示しており、横軸に対応するフレーム番号を示している。また、図5Bには、図5Aに示すフレーム番号F3およびフレーム番号F4における2値化画像の一例を示している。 FIG. 5A is an example of the boundary history information 33 shown in FIG. In FIG. 5A, the vertical axis shows the value of the Y coordinate of the corrected boundary, and the horizontal axis shows the frame number corresponding to the horizontal axis. Further, FIG. 5B shows an example of the binarized image at the frame number F3 and the frame number F4 shown in FIG. 5A.

補正部24は、異常判定処理として、図5Aに示した境界履歴情報33に基づいて下端位置MbのY座標の時系列的な変動量が所定値ThDを超えた場合に、かかる下端位置Mbを異常として判定する。 As an abnormality determination process, the correction unit 24 determines the lower end position Mb when the time-series fluctuation amount of the Y coordinate of the lower end position Mb exceeds a predetermined value ThD based on the boundary history information 33 shown in FIG. 5A. Judge as abnormal.

図5Aの例では、フレーム番号F3およびフレーム番号F4の間で、Y座標の値の変動量D1が所定値ThDを超えている。このとき、補正部24は、フレーム番号F4の下端位置Mbについて異常と判定する。 In the example of FIG. 5A, the fluctuation amount D1 of the Y coordinate value exceeds the predetermined value ThD between the frame number F3 and the frame number F4. At this time, the correction unit 24 determines that the lower end position Mb of the frame number F4 is abnormal.

これは、図5Bに示すように、フレーム番号F3における探索範囲Rになかったノイズがフレーム番号F4で発生し、決定部23cが、フレーム番号F4においてかかるノイズを境界として決定した可能性が高いためである。つまり、Y座標の値の時系列的な変動量が大きい場合、決定部23cによって決定された境界の信頼度が低下するためである。 This is because, as shown in FIG. 5B, it is highly possible that noise that was not in the search range R in frame number F3 was generated in frame number F4, and the determination unit 23c determined the noise in frame number F4 as a boundary. Is. That is, when the amount of time-series fluctuation of the value of the Y coordinate is large, the reliability of the boundary determined by the determination unit 23c decreases.

このため、かかる場合に、補正部24は、異常対応処理として補正後の下端位置Mbを補正結果の候補から除外する。そして、補正部24は、例えば、決定部23cから入力される境界情報に代えて、検出部22によって検出された人物領域Mの下端位置MbのXY座標値を補正値として算出部25へ出力する。 Therefore, in such a case, the correction unit 24 excludes the corrected lower end position Mb from the correction result candidates as an abnormality handling process. Then, for example, the correction unit 24 outputs the XY coordinate value of the lower end position Mb of the person area M detected by the detection unit 22 as a correction value to the calculation unit 25 instead of the boundary information input from the determination unit 23c. ..

したがって、補正部24による信頼性の低い補正を回避することになり、補正の信頼度を向上させることができる。なお、補正部24は、検出部22によって検出された下端位置Mbおよび決定部23cによって決定された境界の座標のうち、前回の座標に近い方の座標を補正結果とするようにしてもよい。 Therefore, it is possible to avoid the unreliable correction by the correction unit 24, and it is possible to improve the reliability of the correction. The correction unit 24 may use the coordinates closer to the previous coordinates among the coordinates of the lower end position Mb detected by the detection unit 22 and the boundary determined by the determination unit 23c as the correction result.

また、ここでは、補正部24がY座標の値に基づいて異常判定する場合について説明したが、補正部24は、X座標の値についても異常判定処理を行うことができる。 Further, although the case where the correction unit 24 determines the abnormality based on the value of the Y coordinate has been described here, the correction unit 24 can also perform the abnormality determination process for the value of the X coordinate.

また、補正部24による異常対応処理は、上記の例に限定されるものではない。例えば、補正部24は、決定部23cに対して下端位置Mbの変動量が小さくなる向きに境界の探索を継続するように指示することにしてもよい。 Further, the abnormality handling process by the correction unit 24 is not limited to the above example. For example, the correction unit 24 may instruct the determination unit 23c to continue the search for the boundary in a direction in which the amount of fluctuation of the lower end position Mb becomes smaller.

そして、決定部23cがかかる指示に基づき、新たに境界を決定した場合に、補正部24は、かかる境界へ下端位置Mbを補正する。 Then, when the determination unit 23c newly determines the boundary based on the instruction, the correction unit 24 corrects the lower end position Mb to the boundary.

これにより、補正部24による補正の精度を向上させることができる。なお、決定部23cが新たに境界を決定しなかった場合については、補正部24は、検出部22の検出結果を補正結果とすることとすればよい。 As a result, the accuracy of correction by the correction unit 24 can be improved. When the determination unit 23c does not newly determine the boundary, the correction unit 24 may use the detection result of the detection unit 22 as the correction result.

また、例えば、決定部23cが、予め全ての境界を探索したうえで、補正部24は、かかる全ての境界の中から最も確からしい境界へ下端位置Mbを補正することにしてもよい。 Further, for example, the determination unit 23c may search all the boundaries in advance, and then the correction unit 24 may correct the lower end position Mb from all the boundaries to the most probable boundary.

また、補正部24は、境界履歴情報33から予測されるXY座標値を導出し、かかるXY座標値を設定部23aに出力し、かかるXY座標値に基づいて探索範囲Rを設定するように指示することにしてもよい。 Further, the correction unit 24 derives the XY coordinate values predicted from the boundary history information 33, outputs the XY coordinate values to the setting unit 23a, and instructs the setting unit 23 to set the search range R based on the XY coordinate values. You may decide to do it.

換言すると、設定部23aは、境界履歴情報33に基づいて探索範囲Rを設定することにしてもよい。これにより、設定部23aでは、探索範囲Rを適切に設定することができるため、2値化部23bや決定部23cによる処理の精度を向上させることができる。 In other words, the setting unit 23a may set the search range R based on the boundary history information 33. As a result, the search range R can be appropriately set in the setting unit 23a, so that the accuracy of processing by the binarization unit 23b and the determination unit 23c can be improved.

このように、電子制御装置1は、2値化部23bおよび補正部24の2つの処理部によって異常判定処理を行うこととしている。換言すると、電子制御装置1は、決定部23cによる境界の探索処理の前後で異常判定処理を行う。 In this way, the electronic control device 1 is determined to perform the abnormality determination process by the two processing units of the binarization unit 23b and the correction unit 24. In other words, the electronic control device 1 performs the abnormality determination process before and after the boundary search process by the determination unit 23c.

そのため、決定部23cによる境界の決定処理の精度を向上させるとともに、補正部24による誤った補正を回避することができる。なお、異常判定処理は、2値化部23bおよび補正部24のうち、一方の処理部のみで行うようにしてもよい。かかる場合に、制御部2の処理負荷を抑制することができる。 Therefore, it is possible to improve the accuracy of the boundary determination process by the determination unit 23c and avoid erroneous correction by the correction unit 24. The abnormality determination process may be performed only by one of the binarization section 23b and the correction section 24. In such a case, the processing load of the control unit 2 can be suppressed.

次に、図6を用いて実施形態に係る電子制御装置1が実行する処理手順について説明する。図6は、実施形態に係る電子制御装置1が実行する処理手順を示すフローチャートである。なお、かかる処理は、電子制御装置1の制御部2によって繰り返し実行される。 Next, a processing procedure executed by the electronic control device 1 according to the embodiment will be described with reference to FIG. FIG. 6 is a flowchart showing a processing procedure executed by the electronic control device 1 according to the embodiment. It should be noted that such processing is repeatedly executed by the control unit 2 of the electronic control device 1.

同図に示すように、まず、変換部21は、カメラ5から撮像画像Fを取得し、撮像画像Fをグレースケール化する(ステップS101)。 As shown in the figure, first, the conversion unit 21 acquires the captured image F from the camera 5 and grayscales the captured image F (step S101).

続いて、検出部22は、グレースケール画像から人物領域Mを検出する(ステップS102)。その後、設定部23aは、人物領域Mに基づいて探索範囲Rを設定し(ステップS103)、2値化部23bは、2値化閾値Thを算出する(ステップS104)。 Subsequently, the detection unit 22 detects the person region M from the grayscale image (step S102). After that, the setting unit 23a sets the search range R based on the person area M (step S103), and the binarization unit 23b calculates the binarization threshold Th (step S104).

そして、2値化部23bは、図4Aおよび図4Bに示したように算出した2値化閾値Thが正常か否かを判定する(ステップS105)。ここで、2値化部23bは、2値化閾値Thが正常であった場合(ステップS105,Yes)、グレースケール画像を2値化する(ステップS106)。 Then, the binarization unit 23b determines whether or not the binarization threshold Th calculated as shown in FIGS. 4A and 4B is normal (step S105). Here, the binarization unit 23b binarizes the grayscale image when the binarization threshold Th is normal (step S105, Yes) (step S106).

続いて、決定部23cは、探索範囲Rを探索し、境界を決定する(ステップS107)。その後、補正部24は、図5Aおよび図5Bに示したように決定部23cによって決定された境界の座標値が正常か否かを判定する(ステップS108)。 Subsequently, the determination unit 23c searches the search range R and determines the boundary (step S107). After that, the correction unit 24 determines whether or not the coordinate values of the boundary determined by the determination unit 23c are normal as shown in FIGS. 5A and 5B (step S108).

かかる判定において、補正部24は、境界の座標値が正常であると判定した場合(ステップS108,Yes)、人物領域Mの下端位置Mbを補正する(ステップS109)。そして、算出部25は、歩行者Hまでの距離を算出して(ステップS110)、処理を終了する。 In such a determination, when the correction unit 24 determines that the coordinate values of the boundary are normal (steps S108, Yes), the correction unit 24 corrects the lower end position Mb of the person area M (step S109). Then, the calculation unit 25 calculates the distance to the pedestrian H (step S110), and ends the process.

一方、ステップS105の判定において、2値化閾値Thが異常であった場合(ステップS105,No)、算出部25は、検出部22によって検出された人物領域Mの下端位置Mbに基づいて歩行者までの距離を算出する(ステップS110)。 On the other hand, in the determination of step S105, when the binarization threshold Th is abnormal (step S105, No), the calculation unit 25 is a pedestrian based on the lower end position Mb of the person area M detected by the detection unit 22. The distance to is calculated (step S110).

また、ステップS108の判定において、境界の座標値が異常であった場合(ステップS108,No)、電子制御装置1は、ステップS107以降の処理を繰り返すこととなる。 Further, in the determination of step S108, if the coordinate value of the boundary is abnormal (steps S108, No), the electronic control device 1 repeats the processes after step S107.

なお、境界の座標値が異常であった場合(ステップS108,No)、上記したように、算出部25は、検出部22によって検出された人物領域Mの下端位置Mbに基づいて歩行者Hまでの距離を算出するようにすることにしてもよい。 When the coordinate values of the boundary are abnormal (steps S108, No), as described above, the calculation unit 25 reaches the pedestrian H based on the lower end position Mb of the person area M detected by the detection unit 22. It may be decided to calculate the distance of.

上述したように、本実施形態に係る電子制御装置1は、検出部22と、探索部23と、補正部24と、算出部25とを備える。検出部22は、撮像画像Fから人物(歩行者H)の形状が存在する人物領域Mを検出する。探索部23は、撮像画像Fにおける明領域と暗領域との境界を探索する。補正部24は、探索部23によって探索された境界に基づいて人物領域Mの下端位置Mbを補正する。算出部25は、補正部24によって補正された下端位置Mbに基づいて人物(歩行者H)までの距離を算出する。したがって、実施形態に係る電子制御装置1によれば、歩行者Hまでの距離の算出精度を向上させることができる。 As described above, the electronic control device 1 according to the present embodiment includes a detection unit 22, a search unit 23, a correction unit 24, and a calculation unit 25. The detection unit 22 detects a person region M in which the shape of a person (pedestrian H) exists from the captured image F. The search unit 23 searches for the boundary between the bright region and the dark region in the captured image F. The correction unit 24 corrects the lower end position Mb of the person area M based on the boundary searched by the search unit 23. The calculation unit 25 calculates the distance to the person (pedestrian H) based on the lower end position Mb corrected by the correction unit 24. Therefore, according to the electronic control device 1 according to the embodiment, it is possible to improve the calculation accuracy of the distance to the pedestrian H.

ところで、上述した実施形態では、2値化部23bが、撮像画像の輝度に基づいて各画素を2値化する場合について説明したが、撮像画像の明度や彩度に応じて撮像画像を2値化することにしてもよい。 By the way, in the above-described embodiment, the case where the binarization unit 23b binarizes each pixel based on the brightness of the captured image has been described, but the captured image is binarized according to the brightness and saturation of the captured image. It may be binarized.

また、上述した実施形態では、探索部23が、2値化画像から明領域と暗領域の境界を決定する場合について説明したが、これに限定されるものではない。 Further, in the above-described embodiment, the case where the search unit 23 determines the boundary between the bright region and the dark region from the binarized image has been described, but the present invention is not limited to this.

例えば、探索部23は、撮像画像Fから歩行者Hのエッジを抽出し、かかるエッジに基づいて明領域と暗領域の境界として決定することにしてもよい。なお、例えば、エッジ抽出法として、ソベルフィルタやラプラシアンフィルタ等を用いることができる。なお、かかる場合に、例えば、カメラ5として赤外線カメラを用いることにしてもよい。 For example, the search unit 23 may extract the edge of the pedestrian H from the captured image F and determine it as the boundary between the bright region and the dark region based on the edge. For example, a Sobel filter, a Laplacian filter, or the like can be used as the edge extraction method. In such a case, for example, an infrared camera may be used as the camera 5.

また、上述してきた実施形態では、カメラ5が自車両の前方を撮像する場合について説明したが、自車両の側方や後方を撮像するカメラから入力される撮像画像に写る歩行者Hまでの距離を算出する場合についても適用することができる。また、本実施形態は、街灯や建物等に設けられる固定カメラから入力される撮像画像から歩行者Hまでの距離を算出することも可能である。 Further, in the above-described embodiment, the case where the camera 5 images the front of the own vehicle has been described, but the distance to the pedestrian H in the captured image input from the camera that images the side or the rear of the own vehicle. It can also be applied to the case of calculating. Further, in the present embodiment, it is also possible to calculate the distance to the pedestrian H from the captured image input from the fixed camera provided in the street light, the building, or the like.

さらなる効果や変形例は、当業者によって容易に導き出すことができる。このため、本発明のより広範な様態は、以上のように表しかつ記述した特定の詳細および代表的な実施形態に限定されるものではない。したがって、添付の特許請求の範囲および、その均等物によって定義される統括的な発明の概念の精神または範囲から逸脱することなく、様々な変化が可能である。 Further effects and variations can be easily derived by those skilled in the art. For this reason, the broader aspects of the invention are not limited to the particular details and representative embodiments expressed and described above. Therefore, various changes are possible without departing from the spirit or scope of the overall concept of the invention as defined by the appended claims and their equivalents.

1 電子制御装置
5 カメラ
21 変換部
22 検出部
23 探索部
23a 設定部
23b 2値化部
23c 決定部
24 補正部
25 算出部
40 車両制御装置
50 電子制御システム
M 人物領域
Mb 下端位置
H 歩行者(人物の一例)
Hb 接地位置
1 Electronic control device 5 Camera 21 Conversion unit 22 Detection unit 23 Search unit 23a Setting unit 23b Binarization unit 23c Determination unit 24 Correction unit 25 Calculation unit 40 Vehicle control system 50 Electronic control system M Person area Mb Lower end position H Pedestrian ( An example of a person)
Hb grounding position

Claims (7)

撮像画像から人物の形状が存在する人物領域を検出する検出部と、
前記撮像画像における明領域と暗領域との境界を探索する探索部と、
前記探索部によって探索された前記境界に基づいて前記人物領域の下端位置を補正する補正部と、
前記補正部によって補正された前記下端位置に基づいて前記人物までの距離を算出する算出部と
を備えることを特徴とする電子制御装置。
A detection unit that detects the human area where the shape of the person exists from the captured image,
A search unit for searching the boundary between the bright region and the dark region in the captured image,
A correction unit that corrects the lower end position of the person area based on the boundary searched by the search unit, and a correction unit.
An electronic control device including a calculation unit that calculates a distance to the person based on the lower end position corrected by the correction unit.
前記補正部は、
前記境界を用いた補正後の前記下端位置の時系列的な変動量が所定値を超える場合に、当該補正後の前記下端位置を補正結果の候補から除外すること
を特徴とする請求項1に記載の電子制御装置。
The correction unit
The first aspect of the present invention is to exclude the corrected lower end position from the candidates for the correction result when the time-series fluctuation amount of the lower end position after the correction using the boundary exceeds a predetermined value. The electronic control device described.
前記探索部は、
前記下端位置の時系列的な変動量が所定値を超える場合に、当該変動量が小さくなる向きへ前記境界の探索を続けること
を特徴とする請求項2に記載の電子制御装置。
The search unit
The electronic control device according to claim 2, wherein when the time-series fluctuation amount of the lower end position exceeds a predetermined value, the search for the boundary is continued in the direction in which the fluctuation amount becomes smaller.
前記探索部は、
前記検出部によって検出された前記人物領域に基づいて探索範囲を設定する設定部と、
前記設定部によって設定された前記探索範囲における各画素の輝度分布に基づいて決定される2値化閾値を用いて前記撮像画像を2値化する2値化部と、
前記2値化部によって2値化された前記撮像画像の前記探索範囲を探索し、前記境界を決定する決定部と
をさらに備えること
を特徴とする請求項1、2または3に記載の電子制御装置。
The search unit
A setting unit that sets a search range based on the person area detected by the detection unit, and a setting unit.
A binarization unit that binarizes the captured image using a binarization threshold value determined based on the brightness distribution of each pixel in the search range set by the setting unit.
The electronic control according to claim 1, 2 or 3, further comprising a determination unit that searches the search range of the captured image binarized by the binarization unit and determines the boundary. apparatus.
前記2値化部は、
前記2値化閾値の時系列的な変動量が所定値を超える場合に、前記検出部によって検出された前記下端位置を補正結果とするように前記補正部へ指示すること
を特徴とする請求項4に記載の電子制御装置。
The binarization unit
The claim is characterized in that when the time-series fluctuation amount of the binarization threshold value exceeds a predetermined value, the correction unit is instructed to use the lower end position detected by the detection unit as the correction result. The electronic control device according to 4.
車両に設けられる請求項1〜5のいずれか一つに記載の電子制御装置と、
前記車両の周囲の前記撮像画像を撮像する撮像装置と、
前記電子制御装置によって算出された前記距離に基づいて前記車両のブレーキを制御する車両制御装置と
を備えることを特徴とする電子制御システム。
The electronic control device according to any one of claims 1 to 5 provided on the vehicle, and
An image pickup device that captures the captured image around the vehicle, and
An electronic control system including a vehicle control device that controls a brake of the vehicle based on the distance calculated by the electronic control device.
撮像画像から人物の形状が存在する人物領域を検出する検出工程と、
前記撮像画像における明領域と暗領域との境界を探索する探索工程と、
前記探索工程によって探索された前記境界に基づいて前記人物領域の下端位置を補正する補正工程と、
前記補正工程によって補正された前記下端位置に基づいて前記人物までの距離を算出する算出工程と
を含むことを特徴とする電子制御方法。
A detection process that detects a human area in which the shape of a person exists from an captured image,
A search step for searching the boundary between the bright region and the dark region in the captured image, and
A correction step of correcting the lower end position of the person area based on the boundary searched by the search step, and a correction step of correcting the lower end position of the person area.
An electronic control method including a calculation step of calculating a distance to the person based on the lower end position corrected by the correction step.
JP2016256693A 2016-12-28 2016-12-28 Electronic control devices, electronic control systems and electronic control methods Active JP6772059B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016256693A JP6772059B2 (en) 2016-12-28 2016-12-28 Electronic control devices, electronic control systems and electronic control methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016256693A JP6772059B2 (en) 2016-12-28 2016-12-28 Electronic control devices, electronic control systems and electronic control methods

Publications (2)

Publication Number Publication Date
JP2018109824A JP2018109824A (en) 2018-07-12
JP6772059B2 true JP6772059B2 (en) 2020-10-21

Family

ID=62844445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016256693A Active JP6772059B2 (en) 2016-12-28 2016-12-28 Electronic control devices, electronic control systems and electronic control methods

Country Status (1)

Country Link
JP (1) JP6772059B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6812894B2 (en) * 2017-04-24 2021-01-13 トヨタ自動車株式会社 Peripheral monitoring device
JP7201706B2 (en) * 2018-12-18 2023-01-10 日立Astemo株式会社 Image processing device
JP7355974B2 (en) * 2019-10-17 2023-10-04 清水建設株式会社 Distance estimation device and method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3982473B2 (en) * 2003-09-19 2007-09-26 日産自動車株式会社 Detectable region determination device and detectable region determination method
JP4734884B2 (en) * 2004-09-30 2011-07-27 日産自動車株式会社 Person detection apparatus and method
JP4534700B2 (en) * 2004-09-30 2010-09-01 日産自動車株式会社 Person detection apparatus and method
JP5077088B2 (en) * 2008-06-17 2012-11-21 住友電気工業株式会社 Image processing apparatus and image processing method
JP2011065280A (en) * 2009-09-15 2011-03-31 Sumitomo Heavy Ind Ltd Image processing apparatus, surroundings monitoring system and operation support system
JP2012084056A (en) * 2010-10-14 2012-04-26 Foundation For The Promotion Of Industrial Science Object detection device
JP5904925B2 (en) * 2012-10-25 2016-04-20 本田技研工業株式会社 Vehicle periphery monitoring device
WO2015145917A1 (en) * 2014-03-28 2015-10-01 日本電気株式会社 Image-correcting device, image correction method, and program-recording medium

Also Published As

Publication number Publication date
JP2018109824A (en) 2018-07-12

Similar Documents

Publication Publication Date Title
US10679358B2 (en) Learning image automatic sorting device, learning image automatic sorting method, and learning image automatic sorting program
US9076056B2 (en) Text detection in natural images
KR101279712B1 (en) Apparatus and method for providing real-time lane detection, recording medium thereof
US10521915B2 (en) Distance measurement device and distance measurement method
US12482130B2 (en) Object detection method and object detection device
US10496874B2 (en) Facial detection device, facial detection system provided with same, and facial detection method
JP6177541B2 (en) Character recognition device, character recognition method and program
WO2016059643A1 (en) System and method for pedestrian detection
US11275963B2 (en) Image identification apparatus, image identification method, and non-transitory computer-readable storage medium for storing image identification program
CN105869148A (en) Target detection method and device
JP6772059B2 (en) Electronic control devices, electronic control systems and electronic control methods
JP2015103249A (en) Device and method for detecting zebra crossings in images
KR101769741B1 (en) Method and apparatus for recognizing iris through pupil detection
US9122935B2 (en) Object detection method, storage medium, integrated circuit, and object detection apparatus
US11170252B2 (en) Face recognition method and computer system thereof
US20190279392A1 (en) Medium recognition device and medium recognition method
US20240071028A1 (en) Information processing device and information processing method
US10997743B2 (en) Attachable matter detection apparatus
US20200334483A1 (en) Reading system, reading device, and storage medium
KR101429271B1 (en) Target tracking method and target tracking apparatus using the same
US9665938B2 (en) Image processing apparatus and specific figure detecting method
US9536137B2 (en) Object detection apparatus
JP6688091B2 (en) Vehicle distance deriving device and vehicle distance deriving method
KR20140042551A (en) Method of extracting feature for human detection and apparatus for performing the same
US10304195B2 (en) Information processing apparatus, computer-readable storage medium, and information processing method for judging a recognition target area

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190930

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200930

R150 Certificate of patent or registration of utility model

Ref document number: 6772059

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250