JP2009070097A - Vehicle length measuring device and vehicle model determination device - Google Patents

Vehicle length measuring device and vehicle model determination device Download PDF

Info

Publication number
JP2009070097A
JP2009070097A JP2007237177A JP2007237177A JP2009070097A JP 2009070097 A JP2009070097 A JP 2009070097A JP 2007237177 A JP2007237177 A JP 2007237177A JP 2007237177 A JP2007237177 A JP 2007237177A JP 2009070097 A JP2009070097 A JP 2009070097A
Authority
JP
Japan
Prior art keywords
vehicle
shadow
length
area
shadow area
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.)
Pending
Application number
JP2007237177A
Other languages
Japanese (ja)
Inventor
Hiroaki Shimizu
宏明 清水
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 Motor Corp
Original Assignee
Toyota Motor 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 Motor Corp filed Critical Toyota Motor Corp
Priority to JP2007237177A priority Critical patent/JP2009070097A/en
Publication of JP2009070097A publication Critical patent/JP2009070097A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a vehicle length measuring device capable of accurately calculating a vehicle length, and a vehicle model determination device using the same. <P>SOLUTION: The vehicle model determination device 10 comprises a vehicle detection means 21 for detecting a vehicle from an image; vehicle shadow extraction means 22 and 23 for separating and extracting a shadow area 52 located just below the vehicle of shadow areas 52 and 54 of the vehicle from the image; a vehicle length calculation means 25 for calculating the length of the vehicle based on the length of the shadow area 52 located just below the vehicle; and a vehicle model determination means 26 for determining the model of the vehicle from the length of the vehicle. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、車両を撮影して得られた画像を処理して当該車両の長さを計測する車長計測装置、および車両を撮影して得られた画像を処理して当該車両の車種を判定する車種判定装置に関する。   The present invention relates to a vehicle length measurement device that processes an image obtained by photographing a vehicle and measures the length of the vehicle, and processes an image obtained by photographing the vehicle to determine a vehicle type of the vehicle. The present invention relates to a vehicle type determination device.

従来文献(特許文献1)には、車両の長さを算出するための装置が示されている。この従来文献に係る装置では、カメラで車両の画像を撮影し、この画像を利用して車両の長さを算出する。
特開平9−35197号公報
A conventional document (Patent Document 1) shows an apparatus for calculating the length of a vehicle. In the apparatus according to this conventional document, an image of a vehicle is taken with a camera, and the length of the vehicle is calculated using this image.
JP-A-9-35197

車両を撮影した画像を利用して車両の長さを算出するためには、画像における車両の前面、側面、背面などの一部または車両の影を利用することとなる。しかし、画像において車両の前面、側面、背面などの一部しか撮影されていない場合には、画像に表れない車両の長さを正確に算出することができない。   In order to calculate the length of the vehicle using an image obtained by photographing the vehicle, a part of the front, side, back, etc. of the vehicle in the image or the shadow of the vehicle is used. However, when only a part of the front, side, back, etc. of the vehicle is captured in the image, the length of the vehicle that does not appear in the image cannot be calculated accurately.

本発明は、上記の課題を解決するためになされたもので、より正確に車両の長さを算出する車長計測装置、およびそれを利用した車種判定装置を提供することを目的とする。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a vehicle length measurement device that calculates the length of a vehicle more accurately and a vehicle type determination device that uses the vehicle length measurement device.

上述した目的を達成するために、本発明に係る車長計測装置は、画像から車両を検出する車両検出手段と、画像から車両の影領域のうち車両の真下にある影領域を分離して抽出する車両影抽出手段と、車両の真下にある影領域の長さに基づいて車両の長さを算出する車長算出手段と、を備えることを特徴とする。   In order to achieve the above-described object, a vehicle length measurement device according to the present invention separates and extracts a vehicle detection unit that detects a vehicle from an image and a shadow region directly below the vehicle from the image. Vehicle shadow extracting means, and vehicle length calculating means for calculating the length of the vehicle based on the length of the shadow area directly under the vehicle.

本発明に係る車長計測装置によれば、画像から車両を検出し、画像から車両の影領域のうち車両の真下にある影領域を分離して抽出し、車両の真下にある影領域の長さに基づいて車両の長さを算出する。このため、画像において車両の前面、側面、背面などの一部しか撮影されておらず、画像における車両の形状のみからでは車両の長さを算出することができない場合であっても、画像から車両の影領域のうち特に車両の真下にある影領域を抽出し、車両の真下にある影領域の長さに基づいて車両の長さを正確に算出することができる。   According to the vehicle length measurement device of the present invention, a vehicle is detected from an image, and a shadow region directly below the vehicle is extracted from the shadow region of the vehicle, and the length of the shadow region directly below the vehicle is extracted. Based on this, the length of the vehicle is calculated. For this reason, even if only a part of the front, side, back, etc. of the vehicle is photographed in the image and the vehicle length cannot be calculated only from the shape of the vehicle in the image, the vehicle from the image In particular, a shadow area directly under the vehicle is extracted from the shadow areas, and the length of the vehicle can be accurately calculated based on the length of the shadow area directly under the vehicle.

本発明に係る車長計測装置において、車両影抽出手段は、車両の下側にある低輝度領域を車両の影領域として抽出し、低輝度領域を輝度を基準として複数の分割領域に分割し、当該複数の分割領域の中で最も輝度の低い分割領域を車両の真下にある影領域として抽出することが好ましい。この構成によれば、車両の真下にある影領域を好適に抽出することができる。   In the vehicle length measurement device according to the present invention, the vehicle shadow extraction means extracts a low luminance area on the lower side of the vehicle as a shadow area of the vehicle, divides the low luminance area into a plurality of divided areas based on luminance, It is preferable to extract a divided area having the lowest luminance among the plurality of divided areas as a shadow area directly under the vehicle. According to this configuration, it is possible to suitably extract the shadow region directly under the vehicle.

本発明に係る車長計測装置において、車両影抽出手段は、車両の下側にある低輝度領域を車両の影領域として抽出し、車両の高さに基づいて車両の斜め下側にある影領域を推定し、車両の影領域から車両の斜め下側にある影領域を除去した領域を車両の真下にある影領域として抽出することが好ましい。この構成によれば、車両の真下にある影領域を好適に抽出することができる。   In the vehicle length measuring device according to the present invention, the vehicle shadow extracting means extracts the low luminance area on the lower side of the vehicle as the shadow area of the vehicle, and the shadow area on the lower oblique side of the vehicle based on the height of the vehicle. It is preferable to extract a region obtained by removing the shadow region obliquely below the vehicle from the shadow region of the vehicle as a shadow region directly below the vehicle. According to this configuration, it is possible to suitably extract the shadow region directly under the vehicle.

本発明に係る車長計測装置において、車長算出手段は、車両の真下にある影領域を車両の上方から見た俯瞰図に投影し、当該俯瞰図における車両の真下にある影領域の長さを車両の長さとして算出することが好ましい。この構成によれば、車両の真下にある影領域の長さを算出することで、車両の長さを正確に算出することができる。   In the vehicle length measurement device according to the present invention, the vehicle length calculation means projects the shadow area directly below the vehicle onto an overhead view as viewed from above the vehicle, and the length of the shadow area immediately below the vehicle in the overhead view. Is preferably calculated as the length of the vehicle. According to this configuration, the length of the vehicle can be accurately calculated by calculating the length of the shadow region directly under the vehicle.

上述した目的を達成するために、本発明に係る車種判定装置は、画像から車両を検出する車両検出手段と、画像から車両の影領域のうち車両の真下にある影領域を分離して抽出する車両影抽出手段と、車両の真下にある影領域の長さに基づいて車両の長さを算出する車長算出手段と、車両の長さから車種を判定する車種判定手段と、を備えることを特徴とする。   In order to achieve the above-described object, a vehicle type determination device according to the present invention separates and extracts a vehicle detection unit that detects a vehicle from an image and a shadow region directly below the vehicle from the image. Vehicle shadow extraction means, vehicle length calculation means for calculating the length of the vehicle based on the length of the shadow area directly under the vehicle, and vehicle type determination means for determining the vehicle type from the length of the vehicle. Features.

本発明に係る車種判定装置によれば、画像から車両を検出し、画像から車両の影領域のうち車両の真下にある影領域を分離して抽出し、車両の真下にある影領域の長さに基づいて車両の長さを算出し、車両の長さから車種を判定する。このため、画像において車両の前面、側面、背面などの一部しか撮影されておらず、画像における車両の形状のみからでは車両の長さを算出することができない場合であっても、画像から車両の影領域のうち特に車両の真下にある影領域を抽出し、車両の真下にある影領域の長さに基づいて車両の長さを正確に算出することができる。よって、正確に算出された車両の長さに基づいて、車両の車種を的確に判定することができる。   According to the vehicle type determination device of the present invention, a vehicle is detected from an image, and a shadow area directly below the vehicle is extracted from the shadow area of the vehicle, and the length of the shadow area immediately below the vehicle is extracted. The vehicle length is calculated based on the above, and the vehicle type is determined from the vehicle length. For this reason, even if only a part of the front, side, back, etc. of the vehicle is photographed in the image and the vehicle length cannot be calculated only from the shape of the vehicle in the image, the vehicle from the image In particular, a shadow area directly under the vehicle is extracted from the shadow areas, and the length of the vehicle can be accurately calculated based on the length of the shadow area directly under the vehicle. Therefore, the vehicle type of the vehicle can be accurately determined based on the accurately calculated vehicle length.

本発明に係る車種判定装置において、車両影抽出手段は、車両の下側にある低輝度領域を車両の影領域として抽出し、低輝度領域を輝度を基準として複数の分割領域に分割し、当該複数の分割領域の中で最も輝度の低い分割領域を車両の真下にある影領域として抽出することが好ましい。この構成によれば、車両の真下にある影領域を好適に抽出することができる。   In the vehicle type determination device according to the present invention, the vehicle shadow extraction means extracts the low luminance area on the lower side of the vehicle as a shadow area of the vehicle, divides the low luminance area into a plurality of divided areas based on the luminance, It is preferable to extract a divided area having the lowest luminance among the plurality of divided areas as a shadow area directly under the vehicle. According to this configuration, it is possible to suitably extract the shadow region directly under the vehicle.

本発明に係る車種判定装置において、車両影抽出手段は、車両の下側にある低輝度領域を車両の影領域として抽出し、車両の高さに基づいて車両の斜め下側にある影領域を推定し、車両の影領域から車両の斜め下側にある影領域を除去した領域を車両の真下にある影領域として抽出することが好ましい。この構成によれば、車両の真下にある影領域を好適に抽出することができる。   In the vehicle type determination device according to the present invention, the vehicle shadow extraction means extracts a low luminance region on the lower side of the vehicle as a shadow region of the vehicle, and determines a shadow region on the lower oblique side of the vehicle based on the height of the vehicle. It is preferable to extract an area obtained by estimating and removing a shadow area obliquely below the vehicle from the shadow area of the vehicle as a shadow area directly below the vehicle. According to this configuration, it is possible to suitably extract the shadow region directly under the vehicle.

本発明に係る車種判定装置において、車長算出手段は、車両の真下にある影領域を車両の上方から見た俯瞰図に投影し、当該俯瞰図における車両の真下にある影領域の長さを車両の長さとして算出することが好ましい。この構成によれば、車両の真下にある影領域の長さを算出することで、車両の長さを正確に算出することができる。   In the vehicle type determination device according to the present invention, the vehicle length calculation means projects a shadow region directly under the vehicle onto an overhead view as viewed from above the vehicle, and calculates the length of the shadow region immediately below the vehicle in the overhead view. It is preferable to calculate the length of the vehicle. According to this configuration, the length of the vehicle can be accurately calculated by calculating the length of the shadow region directly under the vehicle.

本発明によれば、より正確に車両の長さを算出する車長計測装置、およびそれを利用した車種判定装置を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the vehicle length measuring apparatus which calculates the length of a vehicle more correctly, and the vehicle type determination apparatus using it can be provided.

以下、添付図面を参照して、本発明の好適な実施形態について詳細に説明する。なお、説明において、同一要素または同一機能を有する要素には、同一符号を用いることとし、重複する説明は省略する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the description, the same reference numerals are used for the same elements or elements having the same function, and redundant description is omitted.

図1は、本発明の実施形態に係る自動車に搭載された装置(以下、車載装置と呼ぶ)10を示している。本発明の実施形態に係る車載装置10は、車両の長さを計測するための車長計測装置であり、また、車両の種別を判定するための車種判定装置である。   FIG. 1 shows an apparatus (hereinafter referred to as an in-vehicle apparatus) 10 mounted on an automobile according to an embodiment of the present invention. The in-vehicle device 10 according to the embodiment of the present invention is a vehicle length measuring device for measuring the length of the vehicle, and is a vehicle type determining device for determining the type of the vehicle.

車載装置10は、自車両1の前方を撮影するためのカメラ12と、カメラ12により撮影された画像を処理するための画像処理装置20と、を備えている。画像処理装置20は、物理的には、CPU(Central Processing Unit)、RAM(Random Access Memory)、ROM(Read OnlyMemory)などを含んで構成されている。また、画像処理装置20は、機能的には、車両検出部21、第1影領域抽出部22、第2影領域抽出部23、俯瞰画像生成部24、車長算出部25、車種判定部26を含んで構成されている。   The in-vehicle device 10 includes a camera 12 for photographing the front of the host vehicle 1 and an image processing device 20 for processing an image photographed by the camera 12. The image processing apparatus 20 physically includes a CPU (Central Processing Unit), a RAM (Random Access Memory), a ROM (Read Only Memory), and the like. In addition, the image processing device 20 functionally includes a vehicle detection unit 21, a first shadow region extraction unit 22, a second shadow region extraction unit 23, an overhead image generation unit 24, a vehicle length calculation unit 25, and a vehicle type determination unit 26. It is comprised including.

車両検出部21は、カメラ12により撮影された自車両1前方の画像を処理して、自車両1前方に存在する先行車両50を検出する。ここで、車両検出部21は、先行車両50を検出するためにパターンマッチング等の既存の検出技術を利用すればよい。例えば、図2に示される画像では、画像中央にある先行車両50が検出される。   The vehicle detection unit 21 processes the image in front of the host vehicle 1 captured by the camera 12 and detects the preceding vehicle 50 existing in front of the host vehicle 1. Here, the vehicle detection unit 21 may use an existing detection technique such as pattern matching in order to detect the preceding vehicle 50. For example, in the image shown in FIG. 2, the preceding vehicle 50 in the center of the image is detected.

第1影領域抽出部22は、カメラ12により撮影された自車両1前方の画像から車両検出部21により検出された先行車両50およびその周辺の画素の画素値を取り出し、これらの複数の画素の各々について輝度値が影領域検出用の所定閾値TH1以下であるか否かを判定する。そして、第1影領域抽出部22は、輝度値が影領域検出用の所定閾値TH1以下である画素からなる領域52および54を、先行車両50の影領域52および54として抽出する。   The first shadow region extraction unit 22 extracts the pixel values of the preceding vehicle 50 and surrounding pixels detected by the vehicle detection unit 21 from the image in front of the host vehicle 1 taken by the camera 12, and extracts the plurality of pixels. For each, it is determined whether or not the luminance value is equal to or less than a predetermined threshold value TH1 for shadow area detection. Then, the first shadow region extraction unit 22 extracts the regions 52 and 54 including pixels whose luminance values are equal to or less than the predetermined threshold TH1 for detecting the shadow region as the shadow regions 52 and 54 of the preceding vehicle 50.

第1影領域抽出部22により抽出される先行車両50の影領域52および54には、先行車両50の真下にある暗い影領域52と、先行車両50の斜め下側にある比較的に明るい影領域54と、を含んでいる。先行車両50の真下にある影領域52は、日光が先行車両50により遮られてできる影領域であり、周辺からの反射光を殆ど受けないため、周囲の影領域と比較しても顕著に暗くなっている。一方、先行車両50の斜め下側にある影領域54は、日光が先行車両50により遮られてできる影領域であるが、周辺からの反射光を受けるため、周辺の影領域と比較すると比較的に明るくなっている。   The shadow areas 52 and 54 of the preceding vehicle 50 extracted by the first shadow area extracting unit 22 include a dark shadow area 52 that is directly below the preceding vehicle 50 and a relatively bright shadow that is obliquely below the preceding vehicle 50. Region 54. The shadow area 52 directly below the preceding vehicle 50 is a shadow area that is formed when sunlight is blocked by the preceding vehicle 50 and receives almost no reflected light from the surroundings, so that it is significantly darker than the surrounding shadow area. It has become. On the other hand, the shadow area 54 obliquely below the preceding vehicle 50 is a shadow area that is formed when sunlight is blocked by the preceding vehicle 50. However, since it receives reflected light from the surrounding area, the shadow area 54 is relatively smaller than the surrounding shadow area. It is getting brighter.

第2影領域抽出部23は、第1影領域抽出部22で抽出された影領域52および54から、先行車両50の真下にある暗い影領域52を抽出する。第2影領域抽出部23は、先行車両50の真下のある影領域52を抽出するために、次に説明する第1の方法または第2の方法のいずれか一方を利用する。なお、第2影領域抽出部23は、第1の方法および第2の方法の双方を利用してもよい。   The second shadow region extraction unit 23 extracts a dark shadow region 52 directly below the preceding vehicle 50 from the shadow regions 52 and 54 extracted by the first shadow region extraction unit 22. The second shadow area extraction unit 23 uses either the first method or the second method described below in order to extract a shadow area 52 directly below the preceding vehicle 50. Note that the second shadow area extraction unit 23 may use both the first method and the second method.

第1の方法では、第2影領域抽出部23は、第1影領域抽出部22で抽出された影領域52および54を、輝度値を基準として2以上の領域に分割し、異なる輝度値範囲の複数の分割領域を生成する。そして、第2影領域抽出部23は、先行車両50の真下にある暗い影領域52として、複数の分割領域の中で最も輝度値範囲の低い分割領域を抽出する。ここで、第2影領域抽出部23は、影領域52および54を分割するために、1つまたは2以上の影領域分割用の所定閾値TH2を用いる。例えば、影領域分割用の所定閾値TH2が1つである場合には、第2影領域抽出部23は、輝度値がその所定閾値TH2よりも小さい影領域52と、輝度値がその所定閾値TH2よりも大きい影領域54とに分割する。   In the first method, the second shadow region extraction unit 23 divides the shadow regions 52 and 54 extracted by the first shadow region extraction unit 22 into two or more regions based on the luminance value, and provides different luminance value ranges. A plurality of divided regions are generated. Then, the second shadow area extraction unit 23 extracts a divided area having the lowest luminance value range among the plurality of divided areas as the dark shadow area 52 immediately below the preceding vehicle 50. Here, in order to divide the shadow areas 52 and 54, the second shadow area extraction unit 23 uses one or more predetermined threshold values TH2 for dividing the shadow area. For example, when there is one predetermined threshold TH2 for shadow area division, the second shadow area extraction unit 23 has a shadow area 52 whose luminance value is smaller than the predetermined threshold TH2 and a luminance value that is the predetermined threshold TH2. Is divided into a larger shadow area 54.

なお、第2影領域抽出部23は、影領域52および54を複数の領域に分割する際に、影領域52および54の輝度分布のヒストグラムを生成し、このヒストグラムを用いて影領域分割用の所定閾値TH2を決定してもよい。すなわち、図3に示されるように、影領域52および54の輝度分布のヒストグラムが、比較的に高い輝度値のピークと比較的に低い輝度値のピークとを有する場合には、影領域52および54は2種類に分離できる領域から構成されるものと推測されるため、2つのピークの間に影領域分割用の所定閾値TH2を設定する。これにより、第2影領域抽出部23は、比較的に輝度値の低い影領域52と比較的に輝度値の高い影領域54とを分離して、先行車両50の真下にある暗い影領域52を抽出することができる。   Note that the second shadow area extraction unit 23 generates a histogram of the luminance distribution of the shadow areas 52 and 54 when dividing the shadow areas 52 and 54 into a plurality of areas, and uses this histogram for shadow area division. The predetermined threshold TH2 may be determined. That is, as shown in FIG. 3, when the histogram of the luminance distribution of the shadow regions 52 and 54 has a relatively high luminance value peak and a relatively low luminance value peak, the shadow region 52 and Since 54 is assumed to be composed of two separable areas, a predetermined threshold TH2 for shadow area division is set between the two peaks. As a result, the second shadow region extraction unit 23 separates the shadow region 52 having a relatively low luminance value and the shadow region 54 having a relatively high luminance value, so that the dark shadow region 52 directly below the preceding vehicle 50 is obtained. Can be extracted.

第2の方法では、第2影領域抽出部23は、カメラ12により撮影された画像から先行車両50の高さを検出する。次に、第2影領域抽出部23は、先行車両50の高さおよび太陽の高度に基づいて、先行車両50の高さに応じた影の長さを算出する。ここで、算出される影の長さは、先行車両50の斜め下側にある影領域54の長さに相当する。そして、第2影領域抽出部23は、第1影領域抽出部22で抽出された影領域52および54から、先行車両50の高さによる影領域54の長さ分を除去する。この結果、第2影領域抽出部23は、先行車両50の真下にある暗い影領域52を抽出することができる。   In the second method, the second shadow region extraction unit 23 detects the height of the preceding vehicle 50 from the image captured by the camera 12. Next, the second shadow area extraction unit 23 calculates the length of the shadow according to the height of the preceding vehicle 50 based on the height of the preceding vehicle 50 and the altitude of the sun. Here, the calculated shadow length corresponds to the length of the shadow region 54 that is obliquely below the preceding vehicle 50. Then, the second shadow region extraction unit 23 removes the length of the shadow region 54 due to the height of the preceding vehicle 50 from the shadow regions 52 and 54 extracted by the first shadow region extraction unit 22. As a result, the second shadow area extraction unit 23 can extract the dark shadow area 52 immediately below the preceding vehicle 50.

俯瞰画像生成部24は、第2影領域抽出部23により抽出された先行車両50の真下にある暗い影領域52を射影変換して、先行車両50を上方から見た俯瞰画像を生成する。例えば、俯瞰画像生成部24は、図2に示される画像を射影変換して、図4に示される俯瞰画像を生成する。なお、図4では、理解を容易にするために、射影変換後の影領域52に加えて、射影変換後の先行車両50を示している。   The overhead image generation unit 24 performs projective conversion on the dark shadow region 52 immediately below the preceding vehicle 50 extracted by the second shadow region extraction unit 23, and generates an overhead image when the preceding vehicle 50 is viewed from above. For example, the overhead image generation unit 24 performs projective conversion on the image shown in FIG. 2 to generate the overhead image shown in FIG. In FIG. 4, in order to facilitate understanding, in addition to the shadow region 52 after projective transformation, the preceding vehicle 50 after projective transformation is shown.

図5を参照して、俯瞰画像生成部24による俯瞰画像の生成方法について説明する。俯瞰画像生成部24は、自車両1の中央上部に前方に向けて取り付けられた車載カメラ12により撮影された画像を、先行車両50の上方に仮想的に存在する仮想カメラ12’により撮影された俯瞰画像に射影変換する。ここで、カメラ12により撮影された画像の画素座標をm=(u,v,1)と定義し、俯瞰画像の画素座標をm=(u,v,1)と定義すると、俯瞰画像生成部24により射影変換は、次の数式(1)で表される。 With reference to FIG. 5, the overhead image generation method by the overhead image generation unit 24 will be described. The bird's-eye view image generation unit 24 captures an image captured by the in-vehicle camera 12 attached to the center upper portion of the host vehicle 1 with the virtual camera 12 ′ virtually existing above the preceding vehicle 50. Projective conversion to a bird's-eye view image. Here, the pixel coordinates of the image photographed by the camera 12 are defined as m i = (u i , v i , 1) T, and the pixel coordinates of the overhead image are m v = (u v , v v , 1) T Then, the projective transformation by the overhead image generation unit 24 is expressed by the following formula (1).

Figure 2009070097
Figure 2009070097

なお、数式(1)において、Rvは車載カメラ12から仮想カメラ12’への運動の回転成分であり、tvは車載カメラ12から仮想カメラ12’への運動の並進成分であり、Kは車載カメラ12の内部変数であり、nは道路の法線ベクトルである。また、数式(1)において、2次元画像中の点の座標はm=(u,v,1)と表現し、3次元空間中の点の座標はM=(X,Y,Z,1)と表現している。また、射影変換前については、車幅方向をX軸とし、車両高さ方向をY軸とし、車両前後方向をZ軸としている。また、射影変換後については、車幅方向をX軸とし、車両前後方向をY軸とし、車両高さ方向をZ軸としている。   In Equation (1), Rv is the rotational component of the motion from the in-vehicle camera 12 to the virtual camera 12 ′, tv is the translational component of the motion from the in-vehicle camera 12 to the virtual camera 12 ′, and K is the in-vehicle camera. 12 are internal variables, and n is a normal vector of the road. In the equation (1), the coordinates of the point in the two-dimensional image are expressed as m = (u, v, 1), and the coordinates of the point in the three-dimensional space are M = (X, Y, Z, 1). It expresses. Before projective transformation, the vehicle width direction is the X axis, the vehicle height direction is the Y axis, and the vehicle longitudinal direction is the Z axis. Further, after projective transformation, the vehicle width direction is taken as the X axis, the vehicle longitudinal direction is taken as the Y axis, and the vehicle height direction is taken as the Z axis.

車長算出部25は、俯瞰画像を利用して先行車両50の長さを算出する。図4に示すように、俯瞰画像において、縦方向は車両前後方向であり、横方向は車幅方向である。車長算出部25は、俯瞰画像の車両前後方向の各座標値ごとに、車幅方向に並んだ影領域52の画素数を計数する。この結果、図4において右側に示される影領域52の画素数のヒストグラムが得られる。このヒストグラムでは、横方向にバーの長さで影領域52の画素数の計数値が示されている。車長算出部25は、このヒストグラムにおいて、影領域52の画素数の計数値が連続して車長検出用の所定閾値TH3以上となる車両前後方向の区間の長さを、先行車両50の長さとして算出する。   The vehicle length calculation unit 25 calculates the length of the preceding vehicle 50 using the overhead view image. As shown in FIG. 4, in the overhead view image, the vertical direction is the vehicle front-rear direction, and the horizontal direction is the vehicle width direction. The vehicle length calculation unit 25 counts the number of pixels in the shadow region 52 arranged in the vehicle width direction for each coordinate value in the vehicle front-rear direction of the overhead view image. As a result, a histogram of the number of pixels in the shadow area 52 shown on the right side in FIG. 4 is obtained. In this histogram, the count value of the number of pixels of the shadow region 52 is shown in the horizontal direction with the length of the bar. In this histogram, the vehicle length calculation unit 25 determines the length of the section in the vehicle front-rear direction in which the count value of the number of pixels in the shadow region 52 is continuously equal to or greater than the vehicle length detection threshold TH3 as the length of the preceding vehicle 50. Calculate as

車種判定部26は、車長算出部25により算出された先行車両50の長さに基づいて先行車両50の種別を判定する。すなわち、車種判定部26は、先行車両50の種別ごとに車両の長さが登録されたデータベースを有しており、車長算出部25により算出された先行車両50の長さがデータベースに登録された車両の長さと近似する場合に、先行車両50の種別がその一致した車両の種別であることを判定する。これにより、車種判定部26は、先行車両50の種別が小型車、中型車、大型車、大型トラックなどのいずれかであることを判定することができる。   The vehicle type determination unit 26 determines the type of the preceding vehicle 50 based on the length of the preceding vehicle 50 calculated by the vehicle length calculation unit 25. That is, the vehicle type determination unit 26 has a database in which the vehicle length is registered for each type of the preceding vehicle 50, and the length of the preceding vehicle 50 calculated by the vehicle length calculation unit 25 is registered in the database. When the vehicle length is approximated, it is determined that the type of the preceding vehicle 50 is the type of the matched vehicle. Thereby, the vehicle type determination unit 26 can determine that the type of the preceding vehicle 50 is any one of a small vehicle, a medium vehicle, a large vehicle, and a large truck.

次に、図6のフローチャートを参照して、車載装置10の画像処理装置20による処理手順について説明する。なお、図6のフローチャートの処理は、画像処理装置20がプログラムを実行することにより実現される。   Next, a processing procedure performed by the image processing device 20 of the in-vehicle device 10 will be described with reference to the flowchart of FIG. Note that the processing of the flowchart in FIG. 6 is realized by the image processing apparatus 20 executing a program.

画像処理装置20は、カメラ12により撮影された画像を取り込んで、画像内から先行車両50を検出する(S601,S602)。次に、画像処理装置20は、検出された先行車両50の下側にある暗い影領域52および54を抽出する(S603)。さらに、画像処理装置20は、画素の輝度値を基準として影領域52および54を複数の分割領域に分割し、最も暗い分割領域を車両真下にある影領域52として抽出する(S604,S605)。次に、画像処理装置20は、車両真下にある影領域52を俯瞰画像に投影し、俯瞰画像における影領域52の長さから先行車両50の長さを算出する(S606,S607)。   The image processing apparatus 20 captures an image captured by the camera 12 and detects the preceding vehicle 50 from within the image (S601, S602). Next, the image processing apparatus 20 extracts dark shadow regions 52 and 54 on the lower side of the detected preceding vehicle 50 (S603). Further, the image processing apparatus 20 divides the shadow areas 52 and 54 into a plurality of divided areas on the basis of the luminance value of the pixel, and extracts the darkest divided area as the shadow area 52 directly under the vehicle (S604, S605). Next, the image processing device 20 projects the shadow region 52 directly below the vehicle onto the overhead image, and calculates the length of the preceding vehicle 50 from the length of the shadow region 52 in the overhead image (S606, S607).

本実施形態の車載装置10によれば、カメラ12により撮影された画像から先行車両50を検出し、先行車両50の影領域52および54のうち先行車両50の真下にある影領域52を分離して抽出し、先行車両50の真下にある影領域52の長さに基づいて先行車両50の長さを算出し、先行車両50の長さから先行車両50の車種を判定する。このため、カメラ12により撮影された画像において先行車両50の背面しか撮影されておらず、画像における先行車両50の形状のみからでは先行車両50の長さを算出することができない場合であっても、先行車両50の影領域52および54のうち特に先行車両50の真下にある影領域52を抽出し、先行車両50の真下にある影領域52の長さに基づいて先行車両50の長さを正確に算出することができる。さらに、正確に算出された先行車両50の長さに基づいて、先行車両50の車種を的確に判定することができる。   According to the in-vehicle device 10 of the present embodiment, the preceding vehicle 50 is detected from the image captured by the camera 12, and the shadow region 52 immediately below the preceding vehicle 50 is separated from the shadow regions 52 and 54 of the preceding vehicle 50. The length of the preceding vehicle 50 is calculated based on the length of the shadow region 52 directly below the preceding vehicle 50, and the vehicle type of the preceding vehicle 50 is determined from the length of the preceding vehicle 50. For this reason, even when only the back surface of the preceding vehicle 50 is photographed in the image photographed by the camera 12, the length of the preceding vehicle 50 cannot be calculated from only the shape of the preceding vehicle 50 in the image. The shadow area 52 that is directly below the preceding vehicle 50 is extracted from the shadow areas 52 and 54 of the preceding vehicle 50, and the length of the preceding vehicle 50 is determined based on the length of the shadow area 52 that is immediately below the preceding vehicle 50. It can be calculated accurately. Further, the vehicle type of the preceding vehicle 50 can be accurately determined based on the accurately calculated length of the preceding vehicle 50.

なお、以上に説明した実施形態では、車載装置10は、先行車両50の背面のみを撮影した画像を処理して先行車両50の車両前後方向の長さを算出したり車種を判定したが、本発明はこれに限らない。他の実施形態では、車載装置10は、先行車両50の前面のみを撮影した画像を処理して先行車両50の車両前後方向の長さを算出したり車種を判定してもよい。また、他の実施形態では、車載装置10は、先行車両50の側面のみを撮影した画像を処理して先行車両50の車幅方向の長さを算出したり車種を判定してもよい。   In the embodiment described above, the in-vehicle device 10 processes an image obtained by capturing only the back surface of the preceding vehicle 50 to calculate the length of the preceding vehicle 50 in the vehicle front-rear direction and determines the vehicle type. The invention is not limited to this. In another embodiment, the in-vehicle device 10 may calculate an length of the preceding vehicle 50 in the vehicle front-rear direction or determine a vehicle type by processing an image obtained by capturing only the front surface of the preceding vehicle 50. In another embodiment, the in-vehicle device 10 may process an image obtained by capturing only the side surface of the preceding vehicle 50 to calculate the length in the vehicle width direction of the preceding vehicle 50 or determine the vehicle type.

本発明の実施形態に係る車載装置の構成を示すブロック図である。It is a block diagram which shows the structure of the vehicle-mounted apparatus which concerns on embodiment of this invention. カメラにより撮影された先行車両を含む画像を示す図である。It is a figure which shows the image containing the preceding vehicle image | photographed with the camera. 先行車両の影領域における輝度値‐度数のグラフである。It is a graph of the luminance value-frequency in the shadow area of the preceding vehicle. 射影変換後の画像を示す図である。It is a figure which shows the image after projective transformation. 射影変換を説明するための模式図である。It is a schematic diagram for demonstrating projective transformation. 車載装置の処理を示すフローチャートである。It is a flowchart which shows the process of a vehicle-mounted apparatus.

符号の説明Explanation of symbols

1…自車両、10…車載装置(車長計測装置、車種判定装置)、12…カメラ、12’…仮想カメラ、20…画像処理装置、21…車両検出部、22…第1影領域抽出部、23…第2影領域抽出部、24…俯瞰画像生成部、25…車長算出部、26…車種判定部、50…先行車両、52,54…影領域。   DESCRIPTION OF SYMBOLS 1 ... Own vehicle, 10 ... In-vehicle apparatus (vehicle length measuring device, vehicle type determination apparatus), 12 ... Camera, 12 '... Virtual camera, 20 ... Image processing device, 21 ... Vehicle detection part, 22 ... 1st shadow area extraction part , 23 ... second shadow region extraction unit, 24 ... overhead view image generation unit, 25 ... vehicle length calculation unit, 26 ... vehicle type determination unit, 50 ... preceding vehicle, 52, 54 ... shadow region.

Claims (8)

画像から車両を検出する車両検出手段と、
画像から前記車両の影領域のうち前記車両の真下にある影領域を分離して抽出する車両影抽出手段と、
前記車両の真下にある影領域の長さに基づいて前記車両の長さを算出する車長算出手段と、
を備えることを特徴とする車長計測装置。
Vehicle detection means for detecting the vehicle from the image;
Vehicle shadow extraction means for separating and extracting a shadow area directly below the vehicle from the image of the shadow area of the vehicle;
Vehicle length calculating means for calculating the length of the vehicle based on the length of the shadow region directly under the vehicle;
A vehicle length measuring device comprising:
前記車両影抽出手段は、前記車両の下側にある低輝度領域を前記車両の影領域として抽出し、前記低輝度領域を輝度を基準として複数の分割領域に分割し、当該複数の分割領域の中で最も輝度の低い分割領域を前記車両の真下にある影領域として抽出することを特徴とする請求項1に記載の車長計測装置。   The vehicle shadow extraction means extracts a low luminance area below the vehicle as a shadow area of the vehicle, divides the low luminance area into a plurality of divided areas based on luminance, and The vehicle length measuring device according to claim 1, wherein a divided area having the lowest luminance is extracted as a shadow area directly below the vehicle. 前記車両影抽出手段は、前記車両の下側にある低輝度領域を前記車両の影領域として抽出し、前記車両の高さに基づいて前記車両の斜め下側にある影領域を推定し、前記車両の影領域から前記車両の斜め下側にある影領域を除去した領域を前記車両の真下にある影領域として抽出することを特徴とする請求項1に記載の車長計測装置。   The vehicle shadow extraction means extracts a low luminance area on the lower side of the vehicle as a shadow area of the vehicle, estimates a shadow area on an oblique lower side of the vehicle based on the height of the vehicle, The vehicle length measurement device according to claim 1, wherein an area obtained by removing a shadow area obliquely below the vehicle from a shadow area of the vehicle is extracted as a shadow area immediately below the vehicle. 前記車長算出手段は、前記車両の真下にある影領域を前記車両の上方から見た俯瞰図に投影し、当該俯瞰図における前記車両の真下にある影領域の長さを前記車両の長さとして算出することを特徴とする請求項1〜3のいずれか1項に記載の車長計測装置。   The vehicle length calculation means projects a shadow area directly below the vehicle onto an overhead view as viewed from above the vehicle, and calculates the length of the shadow area directly below the vehicle in the overhead view as the length of the vehicle. The vehicle length measuring device according to claim 1, wherein the vehicle length measuring device is calculated as follows. 画像から車両を検出する車両検出手段と、
画像から前記車両の影領域のうち前記車両の真下にある影領域を分離して抽出する車両影抽出手段と、
前記車両の真下にある影領域の長さに基づいて前記車両の長さを算出する車長算出手段と、
前記車両の長さから車種を判定する車種判定手段と、
を備えることを特徴とする車種判定装置。
Vehicle detection means for detecting the vehicle from the image;
Vehicle shadow extraction means for separating and extracting a shadow area directly below the vehicle from the image of the shadow area of the vehicle;
Vehicle length calculating means for calculating the length of the vehicle based on the length of the shadow region directly under the vehicle;
Vehicle type determination means for determining the vehicle type from the length of the vehicle;
A vehicle type determination device comprising:
前記車両影抽出手段は、前記車両の下側にある低輝度領域を前記車両の影領域として抽出し、前記低輝度領域を輝度を基準として複数の分割領域に分割し、当該複数の分割領域の中で最も輝度の低い分割領域を前記車両の真下にある影領域として抽出することを特徴とする請求項5に記載の車種判定装置。   The vehicle shadow extraction means extracts a low luminance area below the vehicle as a shadow area of the vehicle, divides the low luminance area into a plurality of divided areas based on luminance, and 6. The vehicle type determination device according to claim 5, wherein a divided area having the lowest luminance among the divided areas is extracted as a shadow area directly below the vehicle. 前記車両影抽出手段は、前記車両の下側にある低輝度領域を前記車両の影領域として抽出し、前記車両の高さに基づいて前記車両の斜め下側にある影領域を推定し、前記車両の影領域から前記車両の斜め下側にある影領域を除去した領域を前記車両の真下にある影領域として抽出することを特徴とする請求項5に記載の車種判定装置。   The vehicle shadow extraction means extracts a low luminance area on the lower side of the vehicle as a shadow area of the vehicle, estimates a shadow area on an oblique lower side of the vehicle based on the height of the vehicle, The vehicle type determination device according to claim 5, wherein an area obtained by removing a shadow area obliquely below the vehicle from a shadow area of the vehicle is extracted as a shadow area directly below the vehicle. 前記車長算出手段は、前記車両の真下にある影領域を前記車両の上方から見た俯瞰図に投影し、当該俯瞰図における前記車両の真下にある影領域の長さを前記車両の長さとして算出することを特徴とする請求項5〜7のいずれか1項に記載の車種判定装置。   The vehicle length calculation means projects a shadow area directly below the vehicle onto an overhead view as viewed from above the vehicle, and calculates the length of the shadow area directly below the vehicle in the overhead view as the length of the vehicle. The vehicle type determination device according to claim 5, wherein the vehicle type determination device is calculated as follows.
JP2007237177A 2007-09-12 2007-09-12 Vehicle length measuring device and vehicle model determination device Pending JP2009070097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007237177A JP2009070097A (en) 2007-09-12 2007-09-12 Vehicle length measuring device and vehicle model determination device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007237177A JP2009070097A (en) 2007-09-12 2007-09-12 Vehicle length measuring device and vehicle model determination device

Publications (1)

Publication Number Publication Date
JP2009070097A true JP2009070097A (en) 2009-04-02

Family

ID=40606290

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007237177A Pending JP2009070097A (en) 2007-09-12 2007-09-12 Vehicle length measuring device and vehicle model determination device

Country Status (1)

Country Link
JP (1) JP2009070097A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012003708A (en) * 2010-06-21 2012-01-05 Mitsubishi Heavy Ind Ltd Vehicle width estimation device, vehicle estimation device, vehicle width estimation method and program
US11164031B2 (en) 2018-06-26 2021-11-02 Here Global B.V. System and method for analyzing an image of a vehicle
US11182942B2 (en) 2018-06-26 2021-11-23 Here Global B.V. Map generation system and method for generating an accurate building shadow

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012003708A (en) * 2010-06-21 2012-01-05 Mitsubishi Heavy Ind Ltd Vehicle width estimation device, vehicle estimation device, vehicle width estimation method and program
US11164031B2 (en) 2018-06-26 2021-11-02 Here Global B.V. System and method for analyzing an image of a vehicle
US11182942B2 (en) 2018-06-26 2021-11-23 Here Global B.V. Map generation system and method for generating an accurate building shadow

Similar Documents

Publication Publication Date Title
JP6125188B2 (en) Video processing method and apparatus
JP4899424B2 (en) Object detection device
JP6233345B2 (en) Road surface gradient detector
CN110826499A (en) Object space parameter detection method and device, electronic equipment and storage medium
JP2007527569A (en) Imminent collision detection based on stereoscopic vision
JP2009187135A (en) Vehicle periphery monitoring device, vehicle, program for monitoring vehicle periphery, and vehicle periphery monitoring method
KR102507248B1 (en) Egomotion estimation system and method thereof
JP2006236104A (en) Object determining device
JP2007256029A (en) Stereo image processing device
CN101876535A (en) Method, device and monitoring system for height measurement
KR101483742B1 (en) Lane Detection method for Advanced Vehicle
EP2476999B1 (en) Method for measuring displacement, device for measuring displacement, and program for measuring displacement
JP2008286638A (en) Height estimation device and method
Lion et al. Smart speed bump detection and estimation with kinect
JP2007272292A (en) Shadow recognition method and shadow boundary extraction method
US9367759B2 (en) Cooperative vision-range sensors shade removal and illumination field correction
JP4123138B2 (en) Vehicle detection method and vehicle detection device
JP2007011490A (en) Device and method for detecting road parameter
JP2009070097A (en) Vehicle length measuring device and vehicle model determination device
JP6466679B2 (en) Object detection device
JP4704998B2 (en) Image processing device
KR101289386B1 (en) Obstacle detection and division method using stereo vision and apparatus for performing the same
JP5946125B2 (en) Image processing apparatus, image processing method, program, and recording medium
CN115526897A (en) Flame positioning method and system for fire-fighting robot of extra-high voltage converter station
US11393128B2 (en) Adhered substance detection apparatus