JPH0954892A - Vehicle width measuring method and device - Google Patents
Vehicle width measuring method and deviceInfo
- Publication number
- JPH0954892A JPH0954892A JP7210345A JP21034595A JPH0954892A JP H0954892 A JPH0954892 A JP H0954892A JP 7210345 A JP7210345 A JP 7210345A JP 21034595 A JP21034595 A JP 21034595A JP H0954892 A JPH0954892 A JP H0954892A
- Authority
- JP
- Japan
- Prior art keywords
- vehicle
- density
- width
- image
- vehicle width
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000005259 measurement Methods 0.000 claims abstract description 30
- 238000012545 processing Methods 0.000 claims abstract description 27
- 238000000605 extraction Methods 0.000 claims abstract description 18
- 238000001514 detection method Methods 0.000 claims description 6
- 238000000691 measurement method Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 5
- 239000003086 colorant Substances 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 2
- 238000003708 edge detection Methods 0.000 description 2
- 239000002131 composite material Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000011179 visual inspection Methods 0.000 description 1
Landscapes
- Image Processing (AREA)
- Traffic Control Systems (AREA)
- Image Analysis (AREA)
Abstract
(57)【要約】
【目的】 車体色やその濃度によらず、かつ車両が計測
部を斜めに通過しても正確な車幅を確実に計測すること
ができる車幅計測方法及び装置を提供する。
【構成】 車両の幅方向に直線状に延びた縞模様を有す
る計測床面22と、計測床面の上部に鉛直下向きに設置
されたCCDカメラ24と、撮像画像を処理する画像処
理装置26とを備え、(A)CCDカメラにより、計測
床面を背景とする車両両側面の画像を撮像し、(C)画
像上の車両濃度と縞模様の濃度との差を微分処理して濃
度の急変線分を抽出し、(D)急変線分のうち、ほぼ前
後方向に所定の長さ以上延び、かつ幅方向に最も間隔を
隔てた線分を抽出セグメントとし、(E)ほぼ同一線上
に位置する抽出セグメントを結んで1対の平行線を求
め、該平行線の間隔を車幅とする。
(57) [Summary] [Purpose] To provide a vehicle width measuring method and device which can accurately measure the vehicle width regardless of the vehicle body color and its density and even when the vehicle obliquely passes through the measuring section. To do. A measurement floor surface 22 having a striped pattern linearly extending in the width direction of the vehicle, a CCD camera 24 installed vertically downward on the top of the measurement floor surface, and an image processing device 26 for processing a captured image. (A) The CCD camera captures images of both sides of the vehicle against the measured floor surface, and (C) the difference between the vehicle density and the stripe density on the image is differentiated to perform a sudden change in density. A line segment is extracted. (D) Of the sudden change line segments, a line segment that extends for a predetermined length or more in the front-rear direction and is spaced most in the width direction is set as an extraction segment, and (E) is positioned on substantially the same line. The extracted segments are connected to obtain a pair of parallel lines, and the interval between the parallel lines is defined as the vehicle width.
Description
【0001】[0001]
【発明の属する技術分野】本発明は走行車両の車幅を自
動計測する車幅計測方法及び装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a vehicle width measuring method and apparatus for automatically measuring the vehicle width of a traveling vehicle.
【0002】[0002]
【従来の技術】高速道路や駐車設備において、車両寸法
(車長、車高、車幅、等)を目測でクラス分けすること
が、従来、一般的に行われている。しかし、この方法で
は、精度が低く、大まかなクラス分けしかできない問題
点がある。また、建設省及び警察庁では、道路の保全等
のため、特殊車両の通行規制を行っており、かかる特殊
車両を自動識別するための「車両諸元自動計測装置」が
提案されている(例えば、特開平4−270497号公
報)。2. Description of the Related Art Conventionally, it has been common to classify vehicle dimensions (vehicle length, vehicle height, vehicle width, etc.) by visual inspection in highways and parking facilities. However, this method has a problem that the accuracy is low and only rough classification is possible. In addition, the Ministry of Construction and the National Police Agency restrict the passage of special vehicles for road maintenance, etc., and have proposed an "automatic vehicle specification measurement device" for automatically identifying such special vehicles (for example, , JP-A-4-270497).
【0003】特開平4−270497号の装置は、図8
に示すように、超音波ヘッド6a〜6h、CCDカメラ
7a〜7h、投光器8,10、受光器9,11を備え、
投光器10と受光器11との間の光の遮断によって車高
を計測し、投光器8と受光器9との間の光の遮断によっ
て車両の先端を検出し、その時点でCCDカメラ7a〜
7hにより車両の後端側を撮影し、画像データにエッジ
検出処理を施して、車両の後端及び左右両端のエッジを
検出し、超音波ヘッド6a〜6hによってCCDカメラ
位置での車高を求め、エッジ検出位置の誤差を補正し、
設置位置データと併せて、車幅及び車長を計算するもの
である。The device disclosed in Japanese Patent Laid-Open No. 4-270497 is shown in FIG.
As shown in FIG. 3, the ultrasonic heads 6a to 6h, the CCD cameras 7a to 7h, the light projectors 8 and 10, and the light receivers 9 and 11 are provided.
The vehicle height is measured by blocking the light between the light projector 10 and the light receiver 11, and the front end of the vehicle is detected by blocking the light between the light projector 8 and the light receiver 9. At that time, the CCD camera 7a ...
The rear end side of the vehicle is photographed by 7h, the edge detection processing is performed on the image data, the rear end and the left and right edges of the vehicle are detected, and the vehicle height at the CCD camera position is obtained by the ultrasonic heads 6a to 6h. , Correct the edge detection position error,
The vehicle width and vehicle length are calculated together with the installation position data.
【0004】[0004]
【発明が解決しようとする課題】しかし、かかる従来の
自動計測装置には、以下の問題点があった。 超音波センサによる検出精度は低く、そのため、高
速道路等における普通車、大型車、特殊車両、等の大ま
かなクラス分けはできるが、車両寸法を数mm程度の高
精度で計測して、車両寸法毎に設けられた駐車箇所(駐
車パレット等)に誘導するには、精度が低すぎて適用で
きない。 CCDカメラを用いても、車体色が背景色と同色系
のときは、画像処理による抽出がほとんどできない。 車両が計測部を斜めに通過すると、自動計測ができ
ない場合が多く、計測できても正確な車幅が得られな
い。However, such a conventional automatic measuring device has the following problems. The detection accuracy of the ultrasonic sensor is low, so it is possible to roughly classify ordinary vehicles, large vehicles, special vehicles, etc. on highways etc., but measure the vehicle dimensions with a high accuracy of about several mm to determine the vehicle dimensions. The accuracy is too low to guide to the parking place (parking pallet etc.) provided for each of them, so it cannot be applied. Even if a CCD camera is used, when the vehicle body color is the same as the background color, extraction by image processing is almost impossible. When the vehicle passes the measuring section diagonally, automatic measurement is often impossible, and even if it is possible, an accurate vehicle width cannot be obtained.
【0005】上述した種々の問題点のため、従来の車幅
自動計測では、大規模(例えば500台以上)の機械式
駐車装置において絶え間なく入車する多種の車両(主と
して乗用車)を走行中に正確にクラス分けすることがで
きない問題点があった。Due to the above-mentioned various problems, in the conventional automatic vehicle width measurement, various kinds of vehicles (mainly passenger cars) constantly entering a large-scale (for example, 500 or more) mechanical parking device are continuously traveling. There was a problem that we could not classify accurately.
【0006】本発明は、かかる問題点を解決するために
創案されたものである。すなわち本発明の目的は、車両
の車幅を、車両通過時に瞬時に精度よく計測することが
でき、これにより車両寸法の近い多種の車両を正確にク
ラス分けすることができる車幅計測方法及び装置を提供
することにある。また、本発明の別の目的は、車体色や
その濃度によらず、車両の最大幅を確実に計測でき、か
つ、車両が計測部を斜めに通過しても、正確な車幅を確
実に計測することができる車幅計測方法及び装置を提供
することにある。The present invention has been made to solve such a problem. That is, an object of the present invention is to provide a vehicle width measuring method and apparatus capable of instantaneously and accurately measuring the vehicle width of a vehicle when passing through the vehicle, thereby accurately classifying various vehicles having similar vehicle dimensions. To provide. Another object of the present invention is to reliably measure the maximum width of the vehicle regardless of the vehicle body color and its density, and to ensure the accurate vehicle width even when the vehicle diagonally passes through the measuring section. An object of the present invention is to provide a vehicle width measuring method and device capable of measuring.
【0007】[0007]
【課題を解決するための手段】本発明によれば、車両の
幅方向に直線状に延びた縞模様を有する計測床面と、計
測床面の上部に鉛直下向きに設置されたCCDカメラ
と、を備え、CCDカメラにより、計測床面を背景と
する車両両側面の画像を撮像し、画像上の車両濃度と
縞模様の濃度との差を微分処理して濃度の急変線分を抽
出し、該急変線分のうち、ほぼ前後方向に所定の長さ
以上延び、かつ幅方向に最も間隔を隔てた線分を抽出セ
グメントとし、ほぼ同一線上に位置する抽出セグメン
トを結んで1対の平行線を求め、該平行線の間隔を車幅
とする、ことを特徴とする車幅計測方法が提供される。
また、車両の幅方向に直線状に延びた縞模様を有する計
測床面と、計測床面の上部に鉛直下向きに設置され、計
測床面を背景とする車両両側面の画像を撮像するCCD
カメラと、撮像画像を処理する画像処理装置と、を備
え、画像処理装置により、画像上の車両濃度と縞模様の
濃度との差を微分処理して濃度の急変線分を抽出し、該
急変線分のうち、ほぼ前後方向に所定の長さ以上延び、
かつ幅方向に最も間隔を隔てた線分を抽出セグメントと
し、ほぼ同一線上に位置する抽出セグメントを結んで1
対の平行線を求め、該平行線の間隔を車幅とする、こと
を特徴とする車幅計測装置が提供される。According to the present invention, there is provided a measurement floor having a striped pattern extending linearly in the width direction of the vehicle, and a CCD camera installed vertically downward on the measurement floor. With a CCD camera, images of both sides of the vehicle with the measurement floor surface as the background are captured, and the difference between the vehicle density on the image and the density of the striped pattern is differentiated to extract a sudden change line segment of the density, Of the sudden change line segments, a line segment that extends for a predetermined length or more in the front-rear direction and is spaced most in the width direction is used as an extraction segment, and extraction segments located on substantially the same line are connected to each other to form a pair of parallel lines. Is obtained and the interval between the parallel lines is set as the vehicle width, and a vehicle width measuring method is provided.
In addition, the measurement floor having a striped pattern extending linearly in the width direction of the vehicle, and a CCD installed vertically downward on the measurement floor and capturing images of both sides of the vehicle with the measurement floor as the background
The image processing device includes a camera and an image processing device that processes a captured image. The image processing device differentially processes the difference between the vehicle density on the image and the density of a striped pattern to extract a sudden change line segment of the density, Of the line segments, extend in the front-back direction for a specified length or more,
In addition, the line segment that is most distant in the width direction is set as the extraction segment, and the extraction segments that are almost on the same line are connected to each other.
There is provided a vehicle width measuring device characterized in that a pair of parallel lines is obtained, and an interval between the parallel lines is set as a vehicle width.
【0008】この方法及び装置によれば、縞模様を有す
る計測床面を背景として撮像するので、縞模様の濃色部
と淡色部の少なくともいずれかとの比較により、車体色
やその濃度によらず、車両の両側面を濃度の急変線分と
して確実に抽出することができる。また、急変線分のう
ち、ほぼ前後方向に所定の長さ以上延び、かつ幅方向に
最も間隔を隔てた線分を抽出セグメントとするので、ミ
ラー等の部分的な突出部分を車幅として認識することな
く正確な車幅を検出することができる。更に、ほぼ同一
線上に位置する抽出セグメントを結んで1対の平行線を
求め、該平行線の間隔を車幅とするので、車両が計測部
を斜めに通過しても、正確な車幅を確実に計測すること
ができる。According to this method and apparatus, since the measurement floor surface having a striped pattern is imaged with the background as a background, by comparing at least one of the dark-colored portion and the light-colored portion of the striped pattern, regardless of the vehicle body color or its density. As a result, it is possible to reliably extract both side surfaces of the vehicle as a sudden change in density. Also, among the sudden change line segments, the line segment that extends for a predetermined length or more in the front-rear direction and that is most spaced in the width direction is used as the extraction segment, so a partially protruding portion such as a mirror is recognized as the vehicle width. It is possible to detect the accurate vehicle width without performing. Furthermore, since a pair of parallel lines is obtained by connecting the extraction segments located on substantially the same line and the interval between the parallel lines is taken as the vehicle width, even if the vehicle passes diagonally through the measuring section, the accurate vehicle width can be obtained. It is possible to measure reliably.
【0009】本発明の好ましい実施形態によれば、車両
の通過領域に車両検知センサを設置し、該センサにより
車両を検知した際に、CCDカメラにより車両両側面の
画像を撮像する。この方法により、車両中央部の両側面
画像を上部から確実に撮像することができる。また、更
に、車高計測装置を備え、CCDカメラと車高から車幅
を補正する。この補正により、CCDカメラと車両上部
との間隔による測定誤差をなくすことができる。According to a preferred embodiment of the present invention, a vehicle detection sensor is installed in the passage area of the vehicle, and when the vehicle is detected by the sensor, images of both side surfaces of the vehicle are taken by the CCD camera. With this method, both side images of the central portion of the vehicle can be reliably captured from above. Further, a vehicle height measuring device is further provided to correct the vehicle width from the CCD camera and the vehicle height. By this correction, it is possible to eliminate the measurement error due to the distance between the CCD camera and the upper part of the vehicle.
【0010】前記縞模様は、交互に配置された同一幅の
濃色部と淡色部からなる、ことが好ましい。この濃淡部
は黒色と白色であってもよく、別の色であってもよい。
この構成により、車体色やその濃度によらず、車両の両
側面を濃度の急変線分として確実に抽出することができ
る。また、前記CCDカメラは、幅方向に間隔を隔てて
配置されかつ同時に撮像する1対のCCDカメラからな
ることが好ましい。この構成により、CCDカメラの位
置による誤差を低減し、かつ車体色にかかわらず濃淡の
処理により車幅を正確に測定することができる。It is preferable that the striped pattern is composed of dark color portions and light color portions of the same width, which are arranged alternately. The shaded portion may be black and white, or may be a different color.
With this configuration, it is possible to reliably extract both side surfaces of the vehicle as a sudden change line segment of the density regardless of the vehicle body color and the density thereof. Further, it is preferable that the CCD camera is composed of a pair of CCD cameras arranged at an interval in the width direction and capturing images simultaneously. With this configuration, the error due to the position of the CCD camera can be reduced, and the vehicle width can be accurately measured by the shading process regardless of the vehicle body color.
【0011】[0011]
【発明の実施の形態】以下、本発明の好ましい実施形態
を図面を参照して説明する。なお、各図において共通す
る部分には同一の符号を付して使用する。図1は、本発
明による車幅計測装置の全体構成図である。この図にお
いて、本発明の車幅計測装置20は、計測床面22、C
CDカメラ24、及び画像処理装置26を備える。ま
た、この図において、車両12の通過領域に車両検知セ
ンサ27が設置され、このセンサ27により車両12を
検知した際に、CCDカメラ24により車両12の両側
面の画像を上方から床面を含めて撮像するようになって
いる。DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the drawings. In the drawings, common parts are denoted by the same reference numerals. FIG. 1 is an overall configuration diagram of a vehicle width measuring device according to the present invention. In this figure, a vehicle width measuring device 20 according to the present invention has a measurement floor surface 22, C
A CD camera 24 and an image processing device 26 are provided. Further, in this figure, a vehicle detection sensor 27 is installed in a passage area of the vehicle 12, and when the vehicle 12 is detected by the sensor 27, images of both side surfaces of the vehicle 12 are included by the CCD camera 24 from above to the floor surface. To capture images.
【0012】CCDカメラ24は、計測床面22の上部
に鉛直下向きに設置され、計測床面22を背景とする車
両12の両側面の画像を上方から撮像するようになって
いる。この実施形態において、CCDカメラ24は、幅
方向に間隔を隔てて配置され、かつ同時に撮像するよう
になった1対のモノクロCCDカメラである。なお、こ
の実施形態では左右にカメラを1台ずつ、計2台設置す
るが、車幅の測定精度が粗くてもよい場合には1台でも
よい。また、更に高精度で測定する必要がある場合には
3台以上を併用してもよい。また、ここでは、モノクロ
CCDカメラを利用するが、カラーCCDカメラを利用
してもよい。なお、複数台のカメラを利用する場合に
は、カメラ間で撮像する時間によるズレをなくすため
に、全てのカメラで同時撮像する。The CCD camera 24 is installed vertically downward on the measurement floor surface 22 so as to capture images of both side surfaces of the vehicle 12 with the measurement floor surface 22 as a background from above. In this embodiment, the CCD cameras 24 are a pair of monochrome CCD cameras which are arranged at intervals in the width direction and are adapted to pick up images simultaneously. In this embodiment, two cameras are installed, one on the left and one on the right, but one may be installed if the vehicle width measurement accuracy may be rough. Further, when it is necessary to measure with higher accuracy, three or more units may be used together. Although a monochrome CCD camera is used here, a color CCD camera may be used. When using a plurality of cameras, all cameras simultaneously capture images in order to eliminate a shift due to the time of capturing images between the cameras.
【0013】図2は計測床面22の平面図である。この
図に示すように、計測床面22は、車両12の幅方向に
直線状に延びた縞模様を有している。また、この縞模様
は、交互に配置された同一幅の濃色部22aと淡色部2
2bからなる。すなわち、車体色は、真っ白から真っ黒
まで濃淡様々であり、かつ多様な色を有しているので、
これらの車両に対応させて、必ず車体色と床面との間に
濃淡の差がはっきりでて両側面を識別できるように、車
両通過領域の床面を図2に示す一定の幅を持つ濃色部2
2a(例えば黒)と淡色部22b(例えば白)の交互の
縞模様としている。これより、縞模様の濃色部22aと
淡色部22bの少なくともいずれかとの比較により、車
体色やその濃度によらず、車両の両側面を濃度の急変線
分として確実に抽出することができる。FIG. 2 is a plan view of the measurement floor surface 22. As shown in this figure, the measurement floor surface 22 has a striped pattern extending linearly in the width direction of the vehicle 12. In addition, the striped pattern has dark color portions 22a and light color portions 2 of the same width which are alternately arranged.
2b. That is, since the body color has various shades from pure white to pure black, and has various colors,
Corresponding to these vehicles, the floor surface of the vehicle passage area has a certain width as shown in FIG. 2 so that there is always a clear difference in shade between the vehicle body color and the floor surface and both sides can be identified. Color part 2
2a (for example, black) and the light color portion 22b (for example, white) are alternately striped. Thus, by comparing at least one of the striped dark color portion 22a and the light color portion 22b, it is possible to reliably extract both side surfaces of the vehicle as a sudden change line segment of the density regardless of the vehicle body color and the density thereof.
【0014】濃色部22aと淡色部22bの幅は、ミラ
ー等の突起部との識別のために、ミラー等より十分に長
くするのがよい。なお、床面濃淡色は、ある程度濃淡の
色が明確に別れてくれれば白、黒とは限らない。The widths of the dark color portion 22a and the light color portion 22b are preferably made sufficiently longer than that of the mirror or the like in order to distinguish the width from the protrusion of the mirror or the like. The floor light and shade colors are not limited to white and black as long as the light and shade colors are clearly separated to some extent.
【0015】図3は、画像処理装置26における画像処
理フローチャートであり、図4は、この画像処理の模式
図である。画像処理装置26は、CCDカメラ24によ
り撮像された撮像画像を処理して車幅を出力するように
なっている。すなわち、画像処理装置26により、画像
上の車両濃度と縞模様の濃度との差を微分処理して濃度
の急変線分を抽出し(図4C)、この急変線分のうち、
ほぼ前後方向に所定の長さ以上延び、かつ幅方向に最も
間隔を隔てた線分を抽出セグメントとし(図4D)、ほ
ぼ同一線上に位置する抽出セグメントを結んで1対の平
行線を求め、この平行線の間隔を車幅とする(図4E)
ようになっている。FIG. 3 is an image processing flowchart in the image processing device 26, and FIG. 4 is a schematic diagram of this image processing. The image processing device 26 processes the captured image captured by the CCD camera 24 and outputs the vehicle width. That is, the image processing device 26 differentiates the difference between the vehicle density on the image and the density of the striped pattern to extract a sudden change line segment of the density (FIG. 4C).
A line segment that extends substantially a predetermined length or more in the front-rear direction and is most spaced in the width direction is used as an extraction segment (FIG. 4D), and extraction segments located on substantially the same line are connected to obtain a pair of parallel lines. The distance between these parallel lines is the vehicle width (Fig. 4E).
It has become.
【0016】以下、図3を更に詳しく説明する。 画像入力(撮像) 上述した車両検知センサ27によるトリガ信号により、
左右のCCDカメラ24より画像を同時に入力する。各
々の画像から車体左側、右側を含む部分を取り出し、1
つの画像に合成する。なお、ここでは、2つの画像を1
つの画像にしているが、1つにせず、左右それぞれにつ
いて、以下の処理を施してもよい。また、必要に応じ
て、入力画像に対して、平滑化処理等のノイズ処理を行
う。Hereinafter, FIG. 3 will be described in more detail. Image input (imaging) By the trigger signal from the vehicle detection sensor 27 described above,
Images are simultaneously input from the left and right CCD cameras 24. Take out the parts including the left and right sides of the car body from each image, 1
Combine into one image. Note that here, two images are
Although there are two images, the following processing may be performed on each of the right and left sides instead of the single image. Further, noise processing such as smoothing processing is performed on the input image as necessary.
【0017】エッジ強度画像・方向画像の作成 画像の濃淡レベルに対して微分を行い微分値の強さ(濃
淡変化の強さ)を示した「エッジ強度画像」と、微分の
方向(濃淡変化の方向)を示した「エッジ方向画像」を
作成する。また、「エッジ強度画像」について、強度に
対してしきい値を予め設けておき、このしきい値で2値
化する。更に、「エッジ方向画像」についても同様に、
方向に対してしきい値を設けておき(車両の通過方向に
見合った角度・方向)、このしきい値で2値化する。Creation of Edge Strength Image / Direction Image An "edge strength image" showing the strength of the differential value (strength of gray level change) by differentiating the gray level of the image and the direction of differentiation (of the gray level change) "Edge direction image" indicating the direction) is created. Further, with respect to the “edge strength image”, a threshold value is set in advance for the strength, and the threshold value is binarized. Furthermore, similarly for the "edge direction image",
A threshold value is set for the direction (angle / direction corresponding to the passing direction of the vehicle), and the threshold value is binarized.
【0018】エッジ画像作成 「エッジ強度画像」と「エッジ方向画像」の論理積(A
ND)をとる。すなわち、ある程度のエッジ強度を持
ち、車両進行方向に延びているエッジを抽出する。 ノイズ処理 ある値以下の面積(長さの線分)しか持たないエッジを
取り除く。Edge Image Creation Logical product (A of edge strength image) and edge direction image (A
ND). That is, an edge having a certain degree of edge strength and extending in the vehicle traveling direction is extracted. Noise processing Removes edges that have an area (line segment of length) that is less than a certain value.
【0019】エッジの折れ線近似 ノイズ処理により残ったエッジに対して折れ線近似を施
す。残っているエッジは直線であるとは限らない(円弧
を描いたり、折れ線表示になっている)ので、この処理
を行う。折れ線近似実行時には、しきい値以下の直線成
分は削除する。近似で残ったエッジは、直線のセグメン
トであるとみなす。Polygonal Approximation of Edges Polygonal approximation is applied to the edges remaining by the noise processing. This processing is performed because the remaining edges are not always straight lines (circular arcs and broken lines are displayed). When executing the polygonal line approximation, the straight line component below the threshold is deleted. The edges remaining in the approximation are considered to be straight line segments.
【0020】左右両端にあるセグメントの選択 折れ線近似したセグメントの中から画像中の左右両端の
セグメント、すなわち、車両の左右両端のセグメントを
選択する。各セグメントは、直線式 ax+by+c=0...式1 で表現されているので、式の係数(a,b,c)より、
左右両端のセグメントを選択する。Selection of Segments at Left and Right Ends Segments at left and right ends in the image, that is, segments at both left and right ends of the vehicle are selected from the segments approximated to the broken line. Each segment is a linear expression ax + by + c = 0. . . Since it is expressed by Equation 1, from the coefficients (a, b, c) of the equation,
Select the left and right segments.
【0021】セグメントの統合 左右両端それぞれのセグメントに対して残ったセグメン
トとの統合を行う。すなわち、式1の係数の比較およ
び、比較対象となるセグメント上の点(x1,y1)の
値(y1)を左(右)端の式に代入し、そこから得たx
の値とx1の値とを比較し、しきい値以下ならば、同一
の直線式とみなす(統合する)。この検定は残っている
全てのセグメントに対して行う。Integration of Segments The left and right ends of each segment are integrated with the remaining segments. That is, the coefficient comparison of Expression 1 and the value (y1) of the point (x1, y1) on the segment to be compared are substituted into the expression at the left (right) end, and x obtained from that is substituted.
And the value of x1 are compared, and if they are equal to or less than the threshold value, they are regarded as the same linear expression (integrated). This test is performed on all remaining segments.
【0022】直線式のあてはめ 統合した左右両端の各々のセグメントの集合に対して、
直線式をあてはめる。直線式のあてはめは、例えば最小
二乗近似法による。また、最小二乗近似法を用いる際
の、参照点は、各セグメントの両端点とする。このと
き、車高の情報を用いて高さの補正を行う。すなわち、
車の高さが床面に対して高くなればなるほど、車幅が短
く測定されるため、別個に測定した車高値を使って、高
さ方向の補正を行う。Linear fitting For the set of each segment at the left and right ends that have been integrated,
Apply the linear formula. The linear fitting is performed by, for example, the least squares approximation method. Further, the reference points when using the least-squares approximation method are both end points of each segment. At this time, the height is corrected using the vehicle height information. That is,
The higher the vehicle height is with respect to the floor surface, the shorter the vehicle width is measured. Therefore, the vehicle height value measured separately is used to correct the height direction.
【0023】車幅の算出 で求めた左右両端の直線式の距離、すなわち車幅を算
出する。A linear distance between the left and right ends obtained by the calculation of the vehicle width, that is, the vehicle width is calculated.
【0024】次に、図4を図3との比較で説明する。図
4(A)において、CCDカメラにより、計測床面を背
景とする車両両側面の画像を撮像し、図4(B)におい
て、左右の画像を合成する。これらの処理は、図3にお
けるに相当する。次に図4(C)において、画像上の
車両濃度と縞模様の濃度との差を微分処理して濃度の急
変線分を抽出する。この処理は、図3におけるに相
当する。Next, FIG. 4 will be described in comparison with FIG. In FIG. 4A, the CCD camera captures images of both sides of the vehicle with the measurement floor surface as the background, and in FIG. 4B, the left and right images are combined. These processes correspond to those in FIG. Next, in FIG. 4C, the difference between the vehicle density on the image and the density of the striped pattern is differentiated to extract a sudden change line segment of the density. This process corresponds to that in FIG.
【0025】次いで、図4(D)において、急変線分の
うち、ほぼ前後方向に所定の長さ以上延び、かつ幅方向
に最も間隔を隔てた線分を抽出セグメントとする。この
処理は、図3における〜に相当する。最後に、図4
(E)において、ほぼ同一線上に位置する抽出セグメン
トを結んで1対の平行線を求め、この平行線の間隔を車
幅とする。これらの処理は、図3における〜に相当
する。また更に、車高計測装置を備え、図4(E)にお
いて、CCDカメラ24と車高から算出された車幅を補
正することが好ましい。Next, in FIG. 4 (D), among the abruptly changing line segments, the line segment extending in the front-rear direction by a predetermined length or more and having the most space in the width direction is set as the extraction segment. This process is equivalent to in FIG. Finally, FIG.
In (E), a pair of parallel lines is obtained by connecting the extraction segments located substantially on the same line, and the interval between the parallel lines is taken as the vehicle width. These processes correspond to in FIG. Further, it is preferable that a vehicle height measuring device is further provided to correct the vehicle width calculated from the CCD camera 24 and the vehicle height in FIG. 4 (E).
【0026】上述した本発明の方法及び装置によれば、
縞模様を有する計測床面22を背景として撮像するの
で、縞模様の濃色部22aと淡色部22bの少なくとも
いずれかとの比較により、車体色やその濃度によらず、
車両12の両側面を濃度の急変線分として確実に抽出す
ることができる。また、急変線分のうち、ほぼ前後方向
に所定の長さ以上延び、かつ幅方向に最も間隔を隔てた
線分を抽出セグメントとするので、ミラー等の部分的な
突出部分を車幅として認識することなく正確な車幅を検
出することができる。更に、ほぼ同一線上に位置する抽
出セグメントを結んで1対の平行線を求め、該平行線の
間隔を車幅とするので、車両が計測部を斜めに通過して
も、正確な車幅を確実に計測することができる。According to the method and apparatus of the present invention described above,
Since the measurement floor surface 22 having a striped pattern is imaged against the background, comparison with at least one of the dark color portion 22a and the light color portion 22b of the striped pattern indicates that the color is independent of the vehicle body color and its density.
Both side surfaces of the vehicle 12 can be reliably extracted as a sudden change in density. Also, among the sudden change line segments, the line segment that extends for a predetermined length or more in the front-rear direction and that is most spaced in the width direction is used as the extraction segment, so a partially protruding portion such as a mirror is recognized as the vehicle width. It is possible to detect the accurate vehicle width without performing. Furthermore, since a pair of parallel lines is obtained by connecting the extraction segments located on substantially the same line and the interval between the parallel lines is taken as the vehicle width, even if the vehicle passes diagonally through the measuring section, the accurate vehicle width can be obtained. It is possible to measure reliably.
【0027】[0027]
【実施例】図5〜図7は、上述した本発明の実施例を示
すディスプレー上に表示した処理画像である。各図の
(A)は合成画像、(B)は画像処理後の画像であり、
(A)は図4の(B)に相当し、(B)は図4の(D)
に相当する。図5は、車体色が黒又は濃い色の場合であ
り、図5(B)から計測側面22上の淡色部22b(こ
の例では白)で、濃度の急変線分が抽出されているのが
わかる。また、図6は逆に車体色が白又は淡い色の場合
であり、図6(B)から計測側面22上の濃色部22a
(この例では黒)で、濃度の急変線分が抽出されてい
る。更に、図7は、車両が斜めに通過した場合であり、
この場合でも、図7(C)から正確な車幅を確実に計測
することができることがわかる。Embodiments FIGS. 5 to 7 are processed images displayed on a display showing the embodiment of the present invention described above. In each figure, (A) is a composite image, (B) is an image after image processing,
4A corresponds to FIG. 4B, and FIG. 4B corresponds to FIG. 4D.
Is equivalent to FIG. 5 shows the case where the vehicle body color is black or a dark color. From FIG. 5 (B), the light-colored portion 22b (white in this example) on the measurement side surface 22 has a sharp density change line segment extracted. Recognize. On the contrary, FIG. 6 shows the case where the vehicle body color is white or a light color, and the dark color portion 22a on the measurement side surface 22 is seen from FIG. 6B.
(In this example, black), the sudden change line segment of the density is extracted. Further, FIG. 7 shows a case where the vehicle passes diagonally,
Even in this case, it can be seen from FIG. 7C that the accurate vehicle width can be reliably measured.
【0028】従って、これらの実施例から、車体色やそ
の濃度によらず、車両の最大幅を確実に計測でき、か
つ、車両が計測部を斜めに通過しても、正確な車幅を確
実に計測することができることがわかる。Therefore, from these embodiments, the maximum width of the vehicle can be reliably measured regardless of the vehicle body color and its density, and the accurate vehicle width can be ensured even when the vehicle obliquely passes through the measuring section. You can see that it can be measured.
【0029】なお、本発明は上述した実施例に限定され
ず、本発明の要旨を逸脱しない範囲で種々に変更できる
ことは勿論である。The present invention is not limited to the above-described embodiments, and it goes without saying that various modifications can be made without departing from the gist of the present invention.
【0030】[0030]
【発明の効果】上述したように、本発明の車幅計測方法
及び装置は、車両の車幅を、車両通過時に瞬時に精度よ
く計測することができ、これにより車両寸法の近い多種
の車両を正確にクラス分けすることができる。また、車
体色やその濃度によらず、車両の最大幅を確実に計測で
き、かつ、車両が計測部を斜めに通過しても、正確な車
幅を確実に計測することができる。As described above, the vehicle width measuring method and apparatus according to the present invention can measure the vehicle width of a vehicle instantaneously and accurately when the vehicle passes, and thus various types of vehicles having similar vehicle dimensions can be measured. Can be classified accurately. Further, the maximum width of the vehicle can be reliably measured regardless of the vehicle body color and its density, and the vehicle width can be accurately measured even when the vehicle obliquely passes through the measuring section.
【図面の簡単な説明】[Brief description of drawings]
【図1】本発明による車幅計測装置の全体構成図であ
る。FIG. 1 is an overall configuration diagram of a vehicle width measuring device according to the present invention.
【図2】計測床面22の平面図である。FIG. 2 is a plan view of a measurement floor surface 22.
【図3】画像処理装置26における画像処理フローチャ
ートである。FIG. 3 is an image processing flowchart in the image processing device 26.
【図4】画像処理の模式図である。FIG. 4 is a schematic diagram of image processing.
【図5】車体色が濃い場合のディスプレー上に表示した
中間調画像である。FIG. 5 is a halftone image displayed on the display when the vehicle body color is dark.
【図6】車体色が薄い場合のディスプレー上に表示した
中間調画像である。FIG. 6 is a halftone image displayed on the display when the vehicle body color is light.
【図7】車両が斜めに通過した場合のディスプレー上に
表示した中間調画像である。FIG. 7 is a halftone image displayed on the display when the vehicle passes diagonally.
【図8】従来の車幅計測装置の模式的構成図である。FIG. 8 is a schematic configuration diagram of a conventional vehicle width measuring device.
6a〜6h 超音波ヘッド 7a〜7h CCDカメラ 8,10 投光器 9,11 受光器 12 車両 20 車幅計測装置 22 計測床面 22a 濃色部 22b 淡色部 24 CCDカメラ 26 画像処理装置 27 車両検知センサ 6a to 6h Ultrasonic head 7a to 7h CCD camera 8,10 Light projector 9,11 Light receiver 12 Vehicle 20 Vehicle width measuring device 22 Measurement floor surface 22a Dark color portion 22b Light color portion 24 CCD camera 26 Image processing device 27 Vehicle detection sensor
Claims (6)
有する計測床面と、計測床面の上部に鉛直下向きに設置
されたCCDカメラと、を備え、 CCDカメラにより、計測床面を背景とする車両両側面
の画像を撮像し、 画像上の車両濃度と縞模様の濃度との差を微分処理して
濃度の急変線分を抽出し、 該急変線分のうち、ほぼ前後方向に所定の長さ以上延
び、かつ幅方向に最も間隔を隔てた線分を抽出セグメン
トとし、 ほぼ同一線上に位置する抽出セグメントを結んで1対の
平行線を求め、該平行線の間隔を車幅とする、ことを特
徴とする車幅計測方法。1. A measurement floor surface having a striped pattern linearly extending in the width direction of a vehicle, and a CCD camera installed vertically downward on an upper portion of the measurement floor surface. An image of both sides of the vehicle is taken against the background, and the difference between the vehicle density on the image and the density of the striped pattern is differentiated to extract a sudden change line segment of the density. A segment that extends for a predetermined length or more and that is most spaced in the width direction is used as an extraction segment, and extraction segments that are located substantially on the same line are connected to obtain a pair of parallel lines. A vehicle width measuring method characterized by being width.
し、該センサにより車両を検知した際に、CCDカメラ
により車両両側面の画像を撮像する、ことを特徴とする
請求項1に記載の車幅測定方法。2. A vehicle detection sensor is installed in a passage area of the vehicle, and when the vehicle is detected by the sensor, images of both side surfaces of the vehicle are picked up by a CCD camera. Vehicle width measurement method.
ラと車高から車幅を補正する、ことを特徴とする請求項
1に記載の車幅測定方法。3. The vehicle width measuring method according to claim 1, further comprising a vehicle height measuring device, wherein the vehicle width is corrected based on the CCD camera and the vehicle height.
有する計測床面と、計測床面の上部に鉛直下向きに設置
され、計測床面を背景とする車両両側面の画像を撮像す
るCCDカメラと、撮像画像を処理する画像処理装置
と、を備え、 画像処理装置により、画像上の車両濃度と縞模様の濃度
との差を微分処理して濃度の急変線分を抽出し、該急変
線分のうち、ほぼ前後方向に所定の長さ以上延び、かつ
幅方向に最も間隔を隔てた線分を抽出セグメントとし、
ほぼ同一線上に位置する抽出セグメントを結んで1対の
平行線を求め、該平行線の間隔を車幅とする、ことを特
徴とする車幅計測装置。4. An image of a measurement floor having a striped pattern extending linearly in the width direction of the vehicle, and vertically downward on the measurement floor, and capturing images of both sides of the vehicle against the background of the measurement floor. A CCD camera and an image processing device for processing the picked-up image, and the image processing device differentiates the difference between the vehicle density on the image and the density of the striped pattern to extract a sudden change line segment of the density, Of the sudden change line segments, a line segment that extends substantially a predetermined length or more in the front-rear direction and is most spaced in the width direction is an extraction segment,
A vehicle width measuring device, characterized in that a pair of parallel lines is obtained by connecting extraction segments located on substantially the same line, and a space between the parallel lines is defined as a vehicle width.
の濃色部と淡色部からなる、ことを特徴とする請求項4
に記載の車幅計測装置。5. The striped pattern is composed of dark color portions and light color portions having the same width and arranged alternately.
Vehicle width measuring device described in.
てて配置されかつ同時に撮像する1対のCCDカメラか
らなる、ことを特徴とする請求項4に記載の車幅計測装
置。6. The vehicle width measuring device according to claim 4, wherein the CCD cameras are composed of a pair of CCD cameras arranged at intervals in the width direction and capturing images at the same time.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7210345A JPH0954892A (en) | 1995-08-18 | 1995-08-18 | Vehicle width measuring method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7210345A JPH0954892A (en) | 1995-08-18 | 1995-08-18 | Vehicle width measuring method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0954892A true JPH0954892A (en) | 1997-02-25 |
Family
ID=16587874
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7210345A Pending JPH0954892A (en) | 1995-08-18 | 1995-08-18 | Vehicle width measuring method and device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0954892A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6954550B2 (en) | 2000-11-29 | 2005-10-11 | Omron Corporation | Image processing method and apparatus |
| JP2015067386A (en) * | 2013-09-27 | 2015-04-13 | シンフォニアテクノロジー株式会社 | Parts feeder |
-
1995
- 1995-08-18 JP JP7210345A patent/JPH0954892A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6954550B2 (en) | 2000-11-29 | 2005-10-11 | Omron Corporation | Image processing method and apparatus |
| JP2015067386A (en) * | 2013-09-27 | 2015-04-13 | シンフォニアテクノロジー株式会社 | Parts feeder |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2917661B2 (en) | Traffic flow measurement processing method and device | |
| JP3307335B2 (en) | Vehicle region detection device and vehicle region verification method | |
| US10943131B2 (en) | Image based lane marking classification | |
| JP4603970B2 (en) | Road marking line detection device | |
| JP4032727B2 (en) | Lane boundary detection device | |
| US20160343139A1 (en) | Method for detecting a parking area | |
| WO2016129301A1 (en) | Entry possibility determining device for vehicle | |
| WO2014054328A1 (en) | Vehicle detection apparatus | |
| KR20150025714A (en) | Image recognition apparatus and method thereof | |
| JP3807651B2 (en) | White line recognition device | |
| JPH05157558A (en) | Inter-vehicle distance detector | |
| JPH11353581A (en) | Method and device for discriminating vehicle kind in the daytime | |
| JP2940296B2 (en) | Parked vehicle detection method | |
| US20180012084A1 (en) | Apparatus and method of recognizing division lines on a road | |
| KR20160089786A (en) | Integrated warning system for lane departure and forward vehicle collision using camera for improved image acquisition in dark environment | |
| JP3211732B2 (en) | Distance measuring device | |
| WO2014050285A1 (en) | Stereo camera device | |
| JP3373363B2 (en) | Obstacle detection device for vehicles | |
| JPH05324954A (en) | Device for counting the number of parked cars | |
| JPH11353580A (en) | Method and device for discriminating kind of vehicle at night | |
| JPH0954891A (en) | Method for discriminating vehicle type by image processing and device therefor | |
| JP4165966B2 (en) | Object recognition device | |
| JPH09212791A (en) | Method and device for monitoring road surface | |
| JPH11351842A (en) | Wheel shape measuring device | |
| JPH09259388A (en) | Vehicle information detection device and car type judging device |