KR102363924B1 - Distance measuring device and method for nearing vehicle using image - Google Patents

Distance measuring device and method for nearing vehicle using image Download PDF

Info

Publication number
KR102363924B1
KR102363924B1 KR1020200128931A KR20200128931A KR102363924B1 KR 102363924 B1 KR102363924 B1 KR 102363924B1 KR 1020200128931 A KR1020200128931 A KR 1020200128931A KR 20200128931 A KR20200128931 A KR 20200128931A KR 102363924 B1 KR102363924 B1 KR 102363924B1
Authority
KR
South Korea
Prior art keywords
vehicle
distance
inter
dotted lines
road
Prior art date
Application number
KR1020200128931A
Other languages
Korean (ko)
Inventor
이재명
Original Assignee
한국산업기술대학교산학협력단
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 한국산업기술대학교산학협력단 filed Critical 한국산업기술대학교산학협력단
Priority to KR1020200128931A priority Critical patent/KR102363924B1/en
Application granted granted Critical
Publication of KR102363924B1 publication Critical patent/KR102363924B1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/02Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to ambient conditions
    • B60W40/06Road conditions
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/10Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to vehicle motion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • B60W2420/42
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2552/00Input parameters relating to infrastructure
    • B60W2552/05Type of road, e.g. motorways, local streets, paved or unpaved roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30248Vehicle exterior or interior
    • G06T2207/30252Vehicle exterior; Vicinity of vehicle
    • G06T2207/30256Lane; Road marking

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Mathematical Physics (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Geometry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Traffic Control Systems (AREA)

Abstract

The present invention relates to a device for measuring a distance between vehicles using an image. More specifically, the present invention can measure an actual distance from a preceding vehicle by using screen information displayed on a display of a black box installed in a vehicle. A method for measuring a distance between vehicles using an image comprises: a step of obtaining position information by using a position obtaining unit of the boarding vehicle; a step of obtaining front image information of the boarding vehicle including two lanes by using an image obtaining unit; a step of determining whether the two lanes are a dotted line or a solid line by using the front image information; and a step of calculating the distance between the boarding vehicle and the preceding vehicle according to whether the plurality of dotted lines are included in the two lanes.

Description

영상을 이용한 차간 거리 측정 장치 및 방법{DISTANCE MEASURING DEVICE AND METHOD FOR NEARING VEHICLE USING IMAGE}Apparatus and method for measuring distance between vehicles using images

본 발명은 영상을 이용한 차간 거리 측정 장치 및 방법에 관한 것으로, 더욱 상세하게는 차량에 설치된 블랙박스 등의 디스플레이에 표시되는 화면 정보를 이용하여 선행 차량과의 실제 거리를 측정할 수 있는 영상을 이용한 차간 거리 측정 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for measuring an inter-vehicle distance using an image, and more particularly, to an image capable of measuring an actual distance to a preceding vehicle using screen information displayed on a display such as a black box installed in a vehicle. The present invention relates to an apparatus and method for measuring an inter-vehicle distance.

일반적으로 차량간 거리를 측정하는 방법은 차량에 설치된 카메라에서 취득된 영상 정보를 통해 차량과 외부 차량 사이의 거리를 측정할 수 있다.In general, a method of measuring the distance between vehicles may measure the distance between the vehicle and an external vehicle through image information acquired from a camera installed in the vehicle.

종래에는 차량의 후면을 촬영한 영상을 이용하여 차간 거리를 추정하는 방법이 사용되고 있다. 이러한 차간 거리 추정 방법은 차량을 촬영하는 카메라 설치정보 및 영상에서 검출되는 전방 차량의 넓이 또는 차량의 위치 등을 이용하게 된다. 그러나, 차량의 넓이를 이용하여 차간 거리를 추정하는 방법은 차량의 크기가 모두 동일하다는 가정하에서 차간 거리를 추정하게 되므로 그 결과값의 신뢰도가 떨어지게 된다.Conventionally, a method of estimating the inter-vehicle distance using an image photographed from the rear of the vehicle is used. This method of estimating the inter-vehicle distance uses camera installation information for photographing the vehicle and the width of the vehicle in front or the location of the vehicle detected from the image. However, since the method of estimating the inter-vehicle distance using the vehicle width estimates the inter-vehicle distance under the assumption that all vehicles are the same size, the reliability of the result is lowered.

또한, 종래의 차량의 넓이를 이용하여 차간 거리를 추정하는 방법은 카메라의 초점거리, 카메라의 설치 높이 정보를 이용하여 상황별 측정 오차에 대한 보정을 실시하게 되므로 영상차량에 설치된 카메라의 설치높이, 설치각도 등을 미리 알고 있어야만 차량간 거리를 추정할 수 있고, 만약 이러한 카메라 설치 정보를 모르는 경우는 촬영 영상만으로 차량간 거리를 추정할 수 없는 한계점이 있었다.In addition, in the conventional method of estimating the inter-vehicle distance using the width of the vehicle, the measurement error for each situation is corrected using the focal length of the camera and the installation height information of the camera, so the installation height of the camera installed in the video vehicle; It is possible to estimate the distance between vehicles only if the installation angle is known in advance, and if such camera installation information is not known, there is a limitation in that the distance between vehicles cannot be estimated using only the captured image.

한편, 종래의 차간 거리 측정 방법은 현재 차량에서 가까운 거리에 위치하는 지점에서의 좌우 양측 차선을 연결하는 수평선의 폭 거리 정보와, 대상 차량이 위치한 지점에서의 좌우 양측 차선을 연결하는 수평선의 폭 거리 정보의 비율에 기초하여 전방 영상에 포함된 대상 차량과 현재 차량 사이의 거리 정보를 측정할 수 있다.Meanwhile, in the conventional method for measuring the inter-vehicle distance, information on the width of a horizontal line connecting both left and right lanes at a point located at a close distance from the current vehicle and a width distance of a horizontal line connecting both left and right lanes at a point where the target vehicle is located Distance information between the target vehicle and the current vehicle included in the front image may be measured based on the information ratio.

그런데, 종래의 차간 거리 측정 방법은, 점선 사이의 거리 정보를 이용하기 때문에 카메라의 전방 주시 중인 상하 각도가 흔들리게 되는 경우 계산 오차를 발생시키는 문제가 있었다.However, since the conventional method for measuring the distance between vehicles uses distance information between dotted lines, there is a problem of generating a calculation error when the vertical angle while the camera is looking forward is shaken.

또한, 종래의 차간 거리 측정 방법은 기준 위치와 대상 위치에서의 양측 차선을 연결하는 수평선에 대한 거리 정보를 이용하게 되므로, 실질적으로 거리 계산에 사용되는 화면 영역 크기가 상당하므로 검출해야 하는 영상 정보의 면적이 크게 형성됨에 따라 측정 및 계산에 필요한 시간이 증가되고 요구되는 메모리 용량이 커진다는 문제가 있었다.In addition, since the conventional method for measuring the inter-vehicle distance uses distance information on a horizontal line connecting both lanes at the reference position and the target position, the size of the screen area used for calculating the distance is substantially large. As the area is formed to be large, there is a problem in that the time required for measurement and calculation increases and the required memory capacity increases.

대한민국 등록특허 10-1722258호(2017.03.27 등록)Republic of Korea Patent No. 10-1722258 (registered on March 27, 2017)

본 발명은 상기와 같은 문제점을 해결하기 위하여 안출된 것으로, 본 발명은 카메라의 설치 높이나 설치 각도 등 카메라의 설치 정보 없이도 촬영 영상을 이용하여 차간 거리를 측정할 수 있는 영상을 이용한 차간 거리 측정 장치 및 방법을 제공하는 것을 과제로 한다.The present invention has been devised to solve the above problems, and the present invention provides an apparatus for measuring an inter-vehicle distance using an image capable of measuring the inter-vehicle distance using a captured image without installation information of the camera, such as the installation height or installation angle of the camera, and The challenge is to provide a method.

또한, 본 발명은 촬영 영상에서의 기준 거리에 대한 정보 없이, 촬영 영상에 나타나는 점선의 길이 또는 점선 간격 길이와 실제 점선의 길이 또는 간격 길이의 비율에 따라 촬영 영상에서의 차간 거리를 측정할 수 있는 영상을 이용한 차간 거리 측정 장치 및 방법을 제공하는 것을 과제로 한다.In addition, the present invention can measure the inter-vehicle distance in a captured image according to the ratio of the length of the dotted line or the dotted line interval length appearing in the captured image to the actual dotted line length or interval length without information on the reference distance in the captured image. An object of the present invention is to provide an apparatus and method for measuring an inter-vehicle distance using an image.

또한, 본 발명은 화면 전체가 아닌 차선들 중 점선이 있는 부분만 이용하여 메모리 용량과 계산 시간을 줄일 수 있는 영상을 이용한 차간 거리 측정 장치 및 방법을 제공하는 것을 과제로 한다.Another object of the present invention is to provide an apparatus and method for measuring an inter-vehicle distance using an image that can reduce memory capacity and calculation time by using only a portion with a dotted line among lanes, not the entire screen.

상기한 과제를 해결하기 위하여, 본 발명의 영상을 이용한 차간 거리 측정 방법은 탑승 차량의 위치 획득부를 이용하여 위치 정보를 획득하는 단계, 2개의 도로선이 포함된 탑승 차량의 전방 영상 정보를 영상 획득부를 이용하여 획득하는 단계, 전방 영상 정보를 이용하여 2개의 도로선이 점선인지 실선인지 여부를 판단하는 단계 및 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 탑승 차량과 선행 차량 사이의 차간 거리를 계산하는 단계를 포함할 수 있다.In order to solve the above problems, the method for measuring the distance between vehicles using an image of the present invention includes acquiring location information using a location acquisition unit of the vehicle, and acquiring image information of the front of the vehicle including two road lines. A step of acquiring using a part, determining whether two road lines are a dotted line or a solid line by using front image information, and the distance between the vehicle and the preceding vehicle according to whether the two road lines include a plurality of dotted lines It may include calculating the distance.

또한, 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 탑승 차량과 선행 차량 사이의 차간 거리를 계산하는 단계는, 복수의 점선이 2개의 도로선 중 적어도 하나에 포함되는지 여부를 판단하는 단계, 복수의 점선이 2개의 도로선 중 적어도 하나에 포함된 경우, 탑승 차량과 선행 차량 사이의 차간 거리를 위치 정보에 따른 2개의 도로선 중 복수의 점선이 포함된 하나의 도로선의 복수의 점선의 각각의 길이 및 복수의 점선 사이의 각각의 간격를 이용하여 계산하는 단계를 포함할 수 있다.In addition, the calculating of the inter-vehicle distance between the boarding vehicle and the preceding vehicle according to whether the plurality of dotted lines is included in the two road lines may include determining whether the plurality of dotted lines are included in at least one of the two road lines , when the plurality of dotted lines is included in at least one of the two road lines, the inter-vehicle distance between the boarding vehicle and the preceding vehicle is the It may include calculating using each length and each spacing between the plurality of dotted lines.

한편, 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 탑승 차량과 선행 차량 사이의 차간 거리를 계산하는 단계는, 복수의 점선이 2개의 도로선 중 적어도 하나에 포함되는지 여부를 판단하는 단계, 2개의 도로선 중 복수의 점선이 포함된 제1 차선의 복수의 점선의 각각의 길이 및 복수의 점선 사이의 각각의 간격이 일정한지 여부를 판단하는 단계, 2개의 도로선의 제1 차선의 복수의 점선의 각각의 길이 및 복수의 점선 사이의 각각의 간격이 일정하지 않은 경우, 탑승 차량과 선행 차량 사이의 제1 차간 거리를 위치 정보에 따른 제1 차선의 복수의 점선의 각각의 길이 및 복수의 점선 사이의 각각의 간격을 이용하여 계산하는 단계, 2개의 도로선의 제1 차선 및 제1 차선과 일정한 간격으로 이격된 제2 차선의 정보를 이용하여 탑승차량과 선행 차량과의 제2 차간거리를 계산하는 단계, 제1 차간 거리와 제2 차간 거리와의 차이를 반영하여 제1 차선의 복수의 점선의 각각의 길이를 동일하게 보정하고, 복수의 점선 사이의 각각의 간격을 동일하게 보정하여 제1 차선 정보에 반영하는 단계 및 제1 차선의 보정된 복수의 점선의 각각의 길이 및 보정된 복수의 점선 사이의 각각의 간격 정보를 이용하여 탑승 차량과 선행 차량 사이의 제3 차간 거리를 계산하는 단계를 포함할 수 있다.Meanwhile, the calculating of the inter-vehicle distance between the boarding vehicle and the preceding vehicle according to whether the two road lines include a plurality of dotted lines may include determining whether the plurality of dotted lines are included in at least one of the two road lines. , determining whether each length of a plurality of dotted lines of a first lane including a plurality of dotted lines among the two road lines and each interval between the plurality of dotted lines are constant, the plurality of first lanes of the two road lines When the lengths of each of the dotted lines and the distances between the plurality of dotted lines are not constant, the first inter-vehicle distance between the boarding vehicle and the preceding vehicle is the length and plurality of each of the plurality of dotted lines of the first lane according to the location information. Calculating using the respective intervals between the dotted lines of calculating the length of each of the plurality of dotted lines of the first lane by reflecting the difference between the first inter-vehicle distance and the second inter-vehicle distance, and equally correcting each interval between the plurality of dotted lines The third inter-vehicle distance between the boarding vehicle and the preceding vehicle is calculated using the step of reflecting in the first lane information and the corrected lengths of the plurality of dotted lines of the first lane and the information of the respective distances between the plurality of corrected dotted lines may include the step of

본 실시예에 따르면 카메라의 설치 높이나 설치 각도 등 카메라의 설치 정보 없이도 촬영 영상을 이용하여 차간 거리를 측정할 수 있으며, 화면 전체가 아닌 차선들 중 점선이 있는 부분만 이용하므로 메모리 용량과 계산 시간을 줄일 수 있는 효과가 있다.According to this embodiment, the distance between vehicles can be measured using the captured image without camera installation information such as the installation height or installation angle of the camera. has the effect of reducing it.

도 1은 본 발명의 일 실시예에 따른 탑승 차량에서 영상 획득부를 통해 획득한 전방 영상의 일례를 도시한 도면이다.
도 2는 본 발명의 일 실시예에 따른 영상을 이용한 차간 거리 측정 장치가 전방 영상을 통해 차간 거리를 측정하는 방법을 설명하기 위한 흐름도이다.
도 3은 본 발명의 일 실시예에 따른 차간 거리 정보를 측정하는 방법을 설명하기 위한 도면이다.
도 4는 본 발명의 일 실시예에 따른 차간 거리 정보를 측정하는 방법을 설명하기 위한 도면이다.
도 5는 본 발명의 일 실시예에 따른 차간 거리 정보를 측정하는 방법을 설명하기 위한 도면이다.
도 6은 본 발명의 다른 실시예에 따른 영상을 이용한 차간 거리 측정 장치가 전방 영상을 통해 차간 거리를 측정하는 방법을 설명하기 위한 흐름도이다.
도 7은 본 발명의 일 실시예에 따른 영상을 이용한 차간 거리 측정 장치의 구성을 나타내는 도면이다
1 is a diagram illustrating an example of a front image acquired through an image acquisition unit in a vehicle on board according to an embodiment of the present invention.
2 is a flowchart illustrating a method of measuring an inter-vehicle distance using an image by an apparatus for measuring an inter-vehicle distance using an image according to an embodiment of the present invention.
3 is a view for explaining a method of measuring inter-vehicle distance information according to an embodiment of the present invention.
4 is a view for explaining a method of measuring inter-vehicle distance information according to an embodiment of the present invention.
5 is a view for explaining a method of measuring inter-vehicle distance information according to an embodiment of the present invention.
6 is a flowchart illustrating a method of measuring an inter-vehicle distance using an image by an apparatus for measuring an inter-vehicle distance using an image according to another embodiment of the present invention.
7 is a diagram illustrating the configuration of an apparatus for measuring an inter-vehicle distance using an image according to an embodiment of the present invention;

본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되는 실시 예를 참조하면 명확해질 것이다. 그러나 본 발명은 이하에서 개시되는 실시 예에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 것이다. Advantages and features of the present invention, and a method for achieving them will become apparent with reference to the embodiments described below in detail in conjunction with the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, but will be implemented in various different forms.

이하, 첨부된 도면들을 참조하여 본 발명의 기술적 특징을 구체적으로 설명한다. Hereinafter, the technical features of the present invention will be described in detail with reference to the accompanying drawings.

본 명세서에서 설명하는 영상을 이용한 차간 거리 측정 시스템은 블랙박스와 같이 현재 차량의 전방 영상을 획득할 수 있는 영상 획득부를 통해 획득한 전방 영상에 기초하여 현재 차량과 선행 차량 사이의 거리 정보를 측정할 수 있다. The inter-vehicle distance measuring system using an image described in this specification measures distance information between the current vehicle and the preceding vehicle based on a front image acquired through an image acquisition unit capable of acquiring a front image of the current vehicle, such as a black box. can

본 발명의 영상을 이용한 차간 거리 측정 시스템은 도로 규격 정보에 대한 데이터 베이스로부터 획득한 기설정된 차선 길이 정보와, 전방 영상에서 획득한 취득 차선 길이 정보의 비율에 기초하여 차량 간 거리 정보를 측정할 수 있다. 영상을 이용한 차간 거리 측정 시스템은 영상에 표시되는 차선의 점선 길이 또는 점선 사이의 길이 정보를 이용하여 차간 거리를 계산하므로, 카메라의 전방 주시 상하 각도의 변화에 영향을 받지 않고 거리 계산을 할 수 있다.The inter-vehicle distance measuring system using the image of the present invention can measure the inter-vehicle distance information based on the ratio of the preset lane length information acquired from the database for road standard information and the acquired lane length information acquired from the front image. have. Since the inter-vehicle distance measurement system using an image calculates the inter-vehicle distance using the dotted line length of the lanes displayed in the image or the length information between the dotted lines, the distance can be calculated without being affected by the change in the vertical angle of the camera's forward gaze. .

도 1은 본 발명의 일 실시예에 따른 탑승 차량에서 영상 획득부를 통해 획득한 전방 영상의 일례를 도시한 도면이다.1 is a diagram illustrating an example of a front image acquired through an image acquisition unit in a vehicle on board according to an embodiment of the present invention.

도 1의 전방 영상(10)은 현재 탑승 차량에 설치된 블랙 박스와 같은 영상 획득부를 통해 획득할 수 있다.The front image 10 of FIG. 1 may be acquired through an image acquisition unit such as a black box installed in the current vehicle.

전방 영상(10)은 3차로 도로를 달리고 있는 차량(11)을 포함하고 있다. 현재 탑승 차량에 설치된 영상 획득부를 통해 획득한 전방 영상에 포함된 차량(11)은 현재 탑승 차량과 떨어진 거리에 따라 영상에 표시되는 차량(11)의 크기 및 전방 영상 내에서의 차량(11)의 위치가 변화될 수 있다. 예를 들어, 현재 탑승 차량과 멀리 떨어져 있는 차량은 전방 영상(10)에 작게 나타나고 전방 영상(10)의 상단부에 위치할 수 있으며, 현재 탑승 차량과 가까이 있는 차량은 더 큰 크기로 전방 영상의 하단부에 나타날 수 있다.The front image 10 includes a vehicle 11 running on a three-lane road. The vehicle 11 included in the front image acquired through the image acquisition unit installed in the currently boarded vehicle is the size of the vehicle 11 displayed in the image and the size of the vehicle 11 in the front image according to the distance from the currently boarded vehicle. The location can be changed. For example, a vehicle that is far away from the currently boarded vehicle may appear small in the front image 10 and may be located at an upper portion of the front image 10 , and a vehicle close to the currently boarded vehicle has a larger size and a lower portion of the front image 10 . may appear in

이때, 전방 영상(10)에서 차량(11)의 양측에 각각 위치되는 2개의 도로선(12)은 차로의 위치에 따라 중앙선, 차선 및 길가장자리 구역선 중 어느 하나가 될 수 있으며, 각각의 선들은 실선이나 점선으로 표시될 수 있다. 여기서, 전방 영상(10)에 포함되는 도로선(12)이 점선으로 표시되는 경우 가까운 거리로부터 거리가 멀어질수록 점선의 도색 길이 또는 연속된 점선 사이의 빈 길이가 짧아질 수 있다.At this time, the two road lines 12 respectively located on both sides of the vehicle 11 in the front image 10 may be any one of a center line, a lane line, and a road edge zone line depending on the location of the lane, and each line may be indicated by a solid line or a dotted line. Here, when the road line 12 included in the front image 10 is displayed as a dotted line, the painted length of the dotted line or the blank length between consecutive dotted lines may be shortened as the distance increases from a close distance.

즉, 전방 영상(10)의 점선 길이(도색 길이) 또는 점선 사이의 간격(빈 길이)은 현재 탑승 차량에서 거리에 비례하여 그 길이가 상이하게 표시될 수 있다.That is, the length of the dotted line (the length of the painting) or the interval between the dotted lines (the length of the blank) of the front image 10 may be displayed differently in proportion to the distance from the current vehicle.

부연하자면, 영상 획득부를 통해 획득한 전방 영상에 나타나는 도로선들은 현재 탑승 차량으로부터 거리가 멀어짐에 따라 화면 윗부분에 하나의 점(소실점)으로 수렴하는 형태를 나타낸다. In other words, the road lines appearing in the front image acquired through the image acquisition unit converge to a single point (vanishing point) at the top of the screen as the distance from the current vehicle increases.

여기서, 도로선들이 점선으로 된 경우 실제 도로선의 점선 길이나 점선 간격 길이는 동일하지만 전방 영상에 나타나는 도로선의 점선 길이나 점선 간격 길이는 거리에 따라 차이가 난다.Here, when the road lines are dotted lines, the dotted line length or the dotted line interval length of the actual road line is the same, but the dotted line length or the dotted line interval length of the road line displayed in the front image differs depending on the distance.

예를 들어, 현재 탑승 차량에 가까운 거리 D1에 위치하는 점선(또는 점선 사이의 간격)의 길이(A)는 현재 탑승 차량에서 거리 D2만큼 떨어져 있는 점선(또는 점선 사이의 간격)의 길이(B) 보다 길게 전방 영상에 나타날 수 있다.For example, the length (A) of the dotted line (or the interval between the dotted lines) located at a distance D1 close to the currently boarded vehicle is the length (B) of the dotted line (or the interval between the dashed lines) located at a distance D2 from the currently boarded vehicle It may appear in the anterior image for a longer period of time.

일반적으로, 도로에서 동일한 도로선의 점선 길이 및 점선 간격 길이는 도로의 종류(예를 들어, 고속도로, 국도 등)가 변경되지 않는 이상 일정하다. In general, the dotted line length and the dotted line interval length of the same road line on a road are constant unless the type of road (eg, highway, national road, etc.) is changed.

아래의 표 1은 도로 구분에 따른 선의 설치규격을 나타낸다. 각 길이는 cm의 단위로 표기될 수 있다.Table 1 below shows the installation standards of lines according to road division. Each length can be expressed in cm.

 선종류linetype 구분division 도로교통법
시행규칙
road traffic law
enforcement rules
표준Standard
도심지역도로downtown area road 지방지역도로local road 자동차전용도로
(고속도로)
road for automobiles
(highway)
중앙선center line 도색길이(L1)Paint length (L1) 300300 300300 300300 300300 빈길이(L2)Hollow length (L2) 300300 300300 300300 300300 차선lane 도색길이(L1)Paint length (L1) 300~1,000300~1,000 300300 500500 1,0001,000 빈길이(L2)Hollow length (L2) (1~2) * L1(1~2) * L1 500500 800800 1,0001,000 진로변경
제한선
career change
limit line
도색길이(L1)Paint length (L1) 300300 300300 300300 300300
빈길이(L2)Hollow length (L2) 200~300200-300 200~300200-300 200~300200-300 200~300200-300 전용차선dedicated lane 도색길이(L1)Paint length (L1) 300300 300300 300300 300300 빈길이(L2)Hollow length (L2) 300300 300300 300300 300300 유도선guide line 도색길이(L1)Paint length (L1) 50~10050 to 100 50~10050 to 100 50~10050 to 100 50~10050 to 100 빈길이(L2)Hollow length (L2) 50~10050 to 100 50~10050 to 100 50~10050 to 100 50~10050 to 100

위의 표를 참고하면, 점선으로 된 도로선의 길이(도색 길이) 및 연속된 점선 사이의 간격(빈 길이)은 도로의 종류에 따라 다른 길이로 결정되지만, 주행중인 도로의 종류가 변경되지 않는 이상 일정하다. 즉, 점선의 길이 및 점선 사이의 간격을 이용하면, 주행 중인 도로의 종류에 따라 실제 차간 거리 정보를 측정할 수 있다.Referring to the table above, the length of the dotted line (painting length) and the interval between consecutive dotted lines (empty length) are determined to be different lengths depending on the type of road, but unless the type of road being driven is changed constant That is, if the length of the dotted line and the interval between the dotted lines are used, the actual inter-vehicle distance information can be measured according to the type of road being driven.

도 2는 본 발명의 일 실시예에 따른 영상을 이용한 차간 거리 측정 장치가 전방 영상을 통해 차간 거리를 측정하는 방법을 설명하기 위한 흐름도이다.2 is a flowchart illustrating a method of measuring an inter-vehicle distance using an image by an apparatus for measuring an inter-vehicle distance using an image according to an embodiment of the present invention.

도 2를 참고하여 본 발명의 실시예에 따른 영상을 이용한 차간 거리 측정 방법을 설명한다.A method of measuring an inter-vehicle distance using an image according to an embodiment of the present invention will be described with reference to FIG. 2 .

단계(S110)에서 영상을 이용한 차간 거리 측정 장치는 현재 탑승 차량에 설치된 위치 획득부를 통해 현재 탑승 차량이 주행중인 도로의 위치 정보를 획득할 수 있다. 위치 획득부는 차량에 설치되는 블랙박스의 GPS 센서를 포함할 수 있다. 일 실시예에 따르면, 차간 거리 측정 장치는 획득된 위치 정보를 통해 위치별 도로 정보로부터 현재 주행중인 도로의 도로선 정보를 획득할 수 있다. 예를 들어, GPS 센서에서 획득된 위치 정보가 고속 도로 상의 위치로 나타나는 경우, 현재 탑승 차량이 주행중인 도로가 고속 도로인 것으로 파악할 수 있다. 이렇게 도로의 도로선 정보를 데이터 베이스 또는 서버로부터 획득할 수 있으며, 획득된 도로선 정보는 장치 내 데이터베이스 또는 서버에 저장될 수 있다.In step S110 , the apparatus for measuring the distance between vehicles using the image may acquire location information of the road on which the vehicle is currently traveling through the location acquisition unit installed in the vehicle currently being boarded. The location acquisition unit may include a GPS sensor of a black box installed in the vehicle. According to an embodiment, the apparatus for measuring the inter-vehicle distance may acquire road line information of a currently driving road from road information for each location through the obtained location information. For example, when the location information obtained from the GPS sensor appears as a location on a highway, it may be determined that the road on which the vehicle is currently traveling is the highway. In this way, road line information of a road may be obtained from a database or a server, and the obtained road line information may be stored in a database or a server in the device.

단계(S120)에서, 영상을 이용한 차간 거리 측정 장치는 현재 탑승 차량에 설치된 영상 획득부를 통해 현재 탑승 차량의 전방이 촬영되는 전방 영상 정보를 획득할 수 있다. 예를 들어, 영상 획득부는 차량에 설치되는 블랙박스를 포함할 수 있으며, 영상 획득부를 통해 획득된 전방 영상 정보에는 적어도 현재 탑승 차량이 주행중인 차로의 도로선인 차량의 양측 2개의 도로선이 포함될 수 있다. 이때, 전방 영상 정보에는 주행중인 도로의 차로 수에 따라 다수개의 도로선이 포함될 수 있다.In step S120 , the apparatus for measuring the inter-vehicle distance using the image may acquire front image information in which the front of the currently boarded vehicle is photographed through an image acquisition unit installed in the currently boarded vehicle. For example, the image acquisition unit may include a black box installed in the vehicle, and the front image information acquired through the image acquisition unit may include at least two road lines on both sides of the vehicle that are the road lines of the lane in which the currently boarded vehicle is driving. have. In this case, the front image information may include a plurality of road lines according to the number of lanes on the road being driven.

단계(S130)에서, 영상을 이용한 차간 거리 측정 장치는 2개의 도로선이 점선인지 실선인지 여부를 판단할 수 있다. 예를 들어, 차간 거리 측정 장치는 획득된 전방 영상의 화면에 포함된 2개의 도로선이 점선인지 실선인지를 판단하게 된다. 이때, 일 실시예에 따르면, 차간 거리 측정 장치는 전방 영상에 포함된 2개의 도로선의 종류를 판단할 수 있다.In step S130 , the apparatus for measuring the inter-vehicle distance using the image may determine whether two road lines are a dotted line or a solid line. For example, the inter-vehicle distance measuring apparatus determines whether two road lines included in the screen of the acquired front image are a dotted line or a solid line. In this case, according to an embodiment, the inter-vehicle distance measuring apparatus may determine the types of two road lines included in the front image.

즉, 영상을 이용한 차간 거리 측정 장치는 위치 획득부에서 획득된 위치 정보를 기반으로 하여 현재 주행중인 도로의 종류를 파악하고, 파악된 도로의 종류에 따라 데이터 베이스로부터 점선의 길이 또는 점선 사이의 간격 정보를 획득하게 된다.That is, the inter-vehicle distance measuring apparatus using an image determines the type of road currently being driven based on the location information obtained from the location acquisition unit, and the length of the dotted line or the interval between the dotted lines from the database according to the identified road type. information will be obtained.

여기서, 단계(S130)에서는 2개의 도로선 중 하나 이상의 차선의 종류를 판단하는 단계(S131)가 추가로 수행될 수 있다. 이때, 2개의 도로선 중 적어도 하나는, 중앙선, 차선, 진로변경 제한선, 전용차선, 유도선 또는 길가장자리 구역선 중 어느 하나가 될 수 있다. 즉, 같은 점선이더라도 도로선의 종류에 따라 길이가 상이하게 형성되므로, 이에 대한 정확한 판단이 필요하게 되며, 도로선의 종류를 파악함으로써 차간 거리 계산에 사용되는 점선의 길이 및 점선 사이의 간격을 판별할 수 있게 된다.Here, in step S130, a step S131 of determining the type of one or more lanes among the two road lines may be additionally performed. In this case, at least one of the two road lines may be any one of a center line, a lane, a course change restriction line, an exclusive lane, a guide line, or a road edge zone line. That is, even with the same dotted line, the length is formed differently depending on the type of road line, so an accurate determination is required. there will be

단계(S140)에서, 영상을 이용한 차간 거리 측정 장치는 획득한 전방 영상에 포함된 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 탑승 차량과 선행 차량 사이의 차간 거리를 계산할 수 있다.In step S140 , the apparatus for measuring the inter-vehicle distance using the image may calculate the inter-vehicle distance between the boarding vehicle and the preceding vehicle according to whether a plurality of dotted lines are included in two road lines included in the acquired front image.

일 실시예에 따르면, 영상을 이용한 차간 거리 측정 장치는 단계(S141)에서, 획득한 전방 영상에 포함된 2개의 도로선 중 적어도 하나 이상의 도로선에 복수의 점선이 포함되는지 여부를 판단하고, 단계(S142)에서, 복수의 점선이 2개의 도로선 중 적어도 하나에 포함될 경우, 현재 탑승 차량과 선행 차량 사이의 차간 거리를 위치 정보에 따른 복수의 점선의 길이 및 복수의 점선 사이의 각각의 간격 정보를 이용하여 차간 거리를 계산할 수 있다. 차간 거리가 결정되는 구체적인 방법에 대해서는 도 3 및 도 4를 통해 구체적으로 설명된다.According to an embodiment, the apparatus for measuring the inter-vehicle distance using the image determines whether a plurality of dotted lines is included in at least one of two road lines included in the acquired front image in step S141, In ( S142 ), when the plurality of dotted lines are included in at least one of the two road lines, the length of the plurality of dotted lines according to the location information of the inter-vehicle distance between the current boarding vehicle and the preceding vehicle, and each interval information between the plurality of dotted lines can be used to calculate the inter-vehicle distance. A specific method for determining the inter-vehicle distance will be described in detail with reference to FIGS. 3 and 4 .

이와 같이, 본 발명의 일 실시예에 따른 영상을 이용한 차간 거리 측정 방법에 따르면, 위치 정보를 기반으로 하여 현재 주행중인 도로 정보로부터 점선 차선의 길이 정보를 획득하고, 점선으로 된 차선의 길이 정보를 통해 현재 탑승 차량과 선행 차량 사이의 거리를 측정할 수 있다. As described above, according to the method for measuring the inter-vehicle distance using an image according to an embodiment of the present invention, information on the length of the dotted line is obtained from information on the currently driving road based on the location information, and information on the length of the dotted line is obtained. It is possible to measure the distance between the currently boarded vehicle and the preceding vehicle.

결국, 본 실시예에 따르면 주행중인 차로의 양측 2개의 도로선 중에서 하나의 차선을 이용하여 거리 계산에 사용하게 되므로, 전체 영역이 아닌 점선이 있는 부분만을 이용하게 된다.As a result, according to the present embodiment, one lane is used to calculate the distance by using one of the two road lines on both sides of the driving lane, so that only the portion with the dotted line is used instead of the entire area.

따라서, 본 발명은 화면 상의 넓은 영역이 아닌 일부 영역만 이용하여 사용되는 메모리 용량과 계산에 요구되는 시간을 줄일 수 있게 되므로 계산을 빠르게 수행할 수 있게 된다. Accordingly, according to the present invention, it is possible to reduce the amount of memory used and the time required for calculation by using only a partial area instead of a large area on the screen, so that the calculation can be performed quickly.

도 3 및 도 4는 본 발명의 일 실시예에 따른 차간 거리 정보를 측정하는 방법을 설명하기 위한 도면이다.3 and 4 are diagrams for explaining a method of measuring inter-vehicle distance information according to an embodiment of the present invention.

도 3을 참고하면, 영상 획득부는 렌즈(13)를 통해 현재 탑승 차량의 전방 영상 정보를 획득할 수 있으며, 전방 영상 정보는 상으로 맺혀져 화면으로 출력될 수 있다. 여기서, 영상 획득부의 렌즈(13)를 통해 획득된 전방 영상 정보의 화면에서 선행 차량(11)의 위치는 앞서 도 1에 도시된 것처럼 현재 탑승 차량과의 거리에 따라 가깝게 또는 멀게 표시될 수 있다.Referring to FIG. 3 , the image acquisition unit may acquire front image information of the currently boarded vehicle through the lens 13 , and the front image information may be imaged and output to a screen. Here, the position of the preceding vehicle 11 on the screen of the front image information acquired through the lens 13 of the image acquisition unit may be displayed closer or farther according to the distance from the current vehicle as shown in FIG. 1 .

이때, 현재 탑승 차량으로부터 선행 차량과의 실제 차량 간 거리(Lx)는, 렌즈(13)로부터 상이 맺히는 위치까지의 거리(h)와, 렌즈(13)의 설치 높이(h)에 비례하여 화면 상의 거리(Vx)로 나타나게 된다.At this time, the actual vehicle distance (L x ) from the current boarding vehicle to the preceding vehicle is proportional to the distance (h) from the lens 13 to the image forming position and the installation height (h) of the lens 13 to the screen It is expressed as the distance (V x ) of the phase.

즉, 도 4에 도시된 바와 같이, 현재 탑승 차량의 전방의 연속하는 임의의 위치에 대한 거리(L1 내지 L4) 각각은 하나의 렌즈(13)를 통해 상으로 맺히게 되고, 이는 화면 상의 위치에 대한 거리(V1 내지 V4)로 나타나게 되므로 비례식을 이용하면 실제 차간 거리(Lx)를 다음의 식으로 나타낼 수 있다That is, as shown in FIG. 4 , each of the distances L1 to L4 for consecutive arbitrary positions in front of the currently boarded vehicle is imaged through one lens 13, which corresponds to the position on the screen. Since it is expressed as the distances V1 to V4, the actual inter-vehicle distance L x can be expressed by the following equation using the proportional expression.

Figure 112020105596125-pat00001
Figure 112020105596125-pat00001

위 수학식에서, Vx는 현재 탑승 차량의 전방 영상 정보가 표시되는 화면의 윗부분에서 선행 차량이 화면에 표시되는 부분까지의 수직 거리이므로, 전방 영상 정보를 통해 해당 길이의 계산이 가능하다. 그리고, f는 렌즈(13)로부터 상이 맺히는 위치까지의 거리이고, h는 렌즈(13)의 설치 높이가 되는데, f값과 h값은 렌즈(13)의 위치나 각도가 변경되지 않는 이상 고정되므로, f*h값을 상수 k로 대치하여 계산식에 사용할 수 있다.In the above equation, V x is the vertical distance from the upper part of the screen where the front image information of the currently boarded vehicle is displayed to the part where the preceding vehicle is displayed on the screen, so the corresponding length can be calculated through the front image information. And, f is the distance from the lens 13 to the position where the image is formed, and h is the installation height of the lens 13, since the f and h values are fixed unless the position or angle of the lens 13 is changed. , f*h can be used in the calculation formula by replacing the constant k.

이렇게, 실제 거리(Lx)를 계산하기 위해서는 렌즈(13)의 설치 높이와 렌즈(13)의 초점 거리 등의 정보가 필요하게 된다.In this way, in order to calculate the actual distance (L x ), information such as the installation height of the lens 13 and the focal length of the lens 13 is required.

이에, 본 발명은 위치 정보에 따른 점선의 길이 및 점선 사이의 간격 길이를 이용함으로써, f와 h의 정보를 입력하지 않고 차간 거리를 측정할 수 있도록 하였다.Accordingly, in the present invention, the inter-vehicle distance can be measured without inputting information on f and h by using the length of the dotted line and the length of the interval between the dotted lines according to the location information.

도 5는 본 발명의 일 실시예에 따른 영상을 이용한 차간 거리를 측정하는 방법을 설명하기 위한 도면이다.5 is a diagram for explaining a method of measuring an inter-vehicle distance using an image according to an embodiment of the present invention.

도 5를 참고하면, 영상 획득부는 렌즈(13)를 통해 현재 탑승 차량의 전방 영상 정보를 획득할 수 있으며, 획득된 전방 영상 정보의 화면에서 점선으로 된 도로선(12)이 표시될 수 있다.Referring to FIG. 5 , the image acquisition unit may acquire front image information of the currently boarded vehicle through the lens 13 , and a dotted road line 12 may be displayed on the screen of the acquired front image information.

여기서, 도로 구분에 따른 도로선의 설치규격을 나타낸 상기 표 1을 참고하면, 점선 차선(12)의 실제 길이는 위치 정보에 따라 정해진 길이로 설정된다. 예를 들어, 주행 중인 도로가 고속도로라면 점선으로 된 도로선(12)의 점선의 길이는 10m가 될 수 있으며, 해당 점선의 길이를 차간 거리 계산에 사용할 수 있다.Here, referring to Table 1 showing the installation standards of road lines according to road division, the actual length of the dotted line 12 is set to a length determined according to location information. For example, if the road being driven is a highway, the length of the dotted line of the dotted line 12 may be 10 m, and the length of the dotted line may be used to calculate the inter-vehicle distance.

즉, 본 실시예에 따른 차간 거리 측정 장치는 위치 정보에 따라 대응되는 도로 정보를 통해 실제 길이 정보를 획득한 도로 상의 어느 한 점선으로 된 도로선을 기준으로 하여, 현재 탑승 차량에서 제1 가상지점과 제2 가상지점을 점선으로 된 도로선(12)의 하나의 점선(또는 점선 사이의 간격) 길이의 시작 지점과 끝 지점에 표시하게 되면, 제1 가상지점까지의 실제 제1 거리(Li)와, 제2 가상지점까지의 실제 제2 거리(Li+1)의 차이 값이 곧 점선으로 된 도로선(12)의 한 점선(또는 점선 사이의 간격)의 길이가 된다.That is, the device for measuring the inter-vehicle distance according to the present embodiment is based on the first virtual point in the currently boarded vehicle, based on the dotted road line on the road for which the actual length information is obtained through the corresponding road information according to the location information. and the second virtual point are displayed at the starting point and the end point of the length of one dotted line (or the interval between the dotted lines) of the dotted road line 12, the actual first distance (L i ) to the first virtual point ) and the actual second distance (L i+1 ) to the second virtual point becomes the length of one dotted line (or the interval between the dotted lines) of the dotted road line 12 .

이에, 전방 영상 정보에서는 해당 점선 차선(12)과 대응되게 제1 가상지점까지의 화면 내의 거리(Vi)와, 제2 가상지점까지의 화면 내의 거리(Vi+1)의 차이 값이 상기 점선 차선(12)의 길이에 비례한 길이로 화면에 표시되며, 이를 화면 상에서 측정하고 계산에 활용함에 따라 차간 거리를 계산할 수 있다.Accordingly, in the front image information, the difference between the distance (V i ) in the screen to the first virtual point and the distance (V i+1 ) in the screen to the second virtual point corresponding to the dotted line 12 is the above A length proportional to the length of the dotted line 12 is displayed on the screen, and the inter-vehicle distance can be calculated by measuring it on the screen and using it for calculation.

결국, k는 아래의 수학식을 통해 계산될 수 있다.After all, k can be calculated through the following equation.

Figure 112020105596125-pat00002
Figure 112020105596125-pat00002

위 수학식에서, Li는 위치 정보에 따른 점선의 길이 및 점선 사이의 간격에 의해 결정되는 탑승차량에서 제1 가상지점까지의 제1 거리이고, Li+1은 Li보다 일정 배율로 크고 위치 정보에 따른 점선의 길이 및 점선 사이의 간격에 의해 결정되는 탑승차량과의 제2 가상지점까지의 제2 거리이며, Vi는 전방 영상 정보가 표시되는 화면의 윗부분에서 제1 가상지점의 영상이 표시되는 부분까지의 제1 수직 거리이고, Vi+1은 전방 영상 정보가 표시되는 화면의 윗부분에서 제2 가상지점의 영상이 표시되는 부분까지의 제2 수직 거리이며, Δl은 제1 거리와 제2 거리의 차이 값이다.In the above equation, L i is the first distance from the boarding vehicle to the first virtual point determined by the length of the dotted line according to the location information and the interval between the dotted lines, and L i+1 is larger than L i by a certain magnification and the location The second distance to the second virtual point from the vehicle is determined by the length of the dotted line according to the information and the interval between the dotted lines, and V i is the image of the first virtual point in the upper part of the screen on which the front image information is displayed. the first vertical distance to the displayed portion, V i+1 is the second vertical distance from the upper part of the screen on which the front image information is displayed to the portion where the image of the second virtual point is displayed, and Δl is the first distance and It is the difference value of the second distance.

이때, Vi 값과 Vi+1 값은 전방 영상 정보의 화면으로부터 측정될 수 있으며, Δl은 위치 정보에 따라 획득된 점선의 길이 또는 점선 사이의 간격 길이로 지정하여 측정하게 되므로, 위치 정보로부터 현재 주행 중인 도로선의 점선 길이 또는 점선 사이의 간격 길이 값을 입력하여 k값을 계산할 수 있게 된다.At this time, the Vi value and the V i +1 value can be measured from the screen of the front image information, and Δl is measured by specifying the length of the dotted line or the length of the interval between the dotted lines obtained according to the position information. It is possible to calculate the k value by inputting the length of the dotted line of the currently driving road line or the length of the interval between the dotted lines.

이렇게, 계산된 k값을 위의 수학식 1에 대입하게 되면, 현재 주행중인 도로 상에서의 실제 차간 거리(Lx)를 측정할 수 있다.In this way, when the calculated value of k is substituted into Equation 1 above, the actual inter-vehicle distance L x on the currently driving road can be measured.

이와 같이, 본 실시예에 따르면, 위치 정보에 따른 점선의 길이 또는 점선 사이의 거리를 이용하여 차간 거리를 계산할 수 있다.As described above, according to the present embodiment, the inter-vehicle distance may be calculated using the length of the dotted line or the distance between the dotted lines according to the location information.

따라서, 본 실시예에 따른 영상을 이용한 차간 거리 측정 방법은 화면 상에 표시되는 점선 차선의 길이 정보를 위치 정보를 기반으로 하여 실제 주행 중인 도로 상의 차선 정보로부터 획득된 점선 차선의 길이 정보를 통해 실제 차간 거리를 계산하게 되므로, 전방 영상 정보를 촬영하는 렌즈의 사양이나 설치 높이 또는 설치 각도와 무관하게 차간 거리를 측정할 수 있다.Therefore, in the method of measuring the distance between vehicles using an image according to the present embodiment, information on the length of the dotted line displayed on the screen is based on the location information, and the length information of the dotted line obtained from the information on the lane on the actual driving road is used. Since the inter-vehicle distance is calculated, the inter-vehicle distance can be measured irrespective of the specification, installation height, or installation angle of a lens that captures front image information.

또한, 본 실시예에 따른 영상을 이용한 차간 거리 측정 방법에 따르면, 도로 상의 도로선 정보 즉 도로선의 길이 정보를 이용하여 차간 거리를 측정하므로 미리 지정된 위치까지의 기준 거리에 대한 정보를 입력하지 않더라도 차간 거리를 측정할 수 있게 된다.한편, 본 실시예에 따른 영상을 이용한 차간 거리 측정 방법은, 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 탑승 차량과 선행 차량 사이의 차간 거리를 계산하는 단계(S140)에서, 복수의 점선의 길이 및 복수의 점선 사이의 간격이 변하는 경우에, 전방 영상 정보의 화면에 표시되는 다수의 점선의 길이와 점선 사이의 간격 길이를 화면상에서 측정하고, 해당 측정 값들의 평균값을 구하여 변화된 길이 및 간격에 대한 보정을 실시할 수 있다.In addition, according to the method for measuring the inter-vehicle distance using an image according to the present embodiment, since the inter-vehicle distance is measured using road line information on the road, that is, the length information of the road line, even if information on the reference distance to a predetermined location is not input, the inter-vehicle distance is measured. The distance can be measured. Meanwhile, in the method for measuring the inter-vehicle distance using an image according to the present embodiment, the inter-vehicle distance between the vehicle and the preceding vehicle is calculated depending on whether two road lines include a plurality of dotted lines. In step S140, when the lengths of the plurality of dotted lines and the intervals between the plurality of dotted lines are changed, the lengths of the plurality of dotted lines displayed on the screen of the front image information and the lengths of the intervals between the dotted lines are measured on the screen, and the corresponding measurement Correction for the changed length and interval can be performed by obtaining the average of the values.

이는, 현재 탑승 차량이 곡선 도로를 주행중인 경우와 같이, 점선의 길이 또는 점선 사이의 간격이 변하는 경우일 수 있다. 이러한 경우에는 화면 상에 표시되는 도로선이 어느 한쪽의 점선은 짧고, 다른 한쪽의 점선은 길게 나타나게 되므로, 측정된 이들 두 점선 길이의 평균 값을 이용하여 차간 거리 계산에 사용할 수 있다.This may be a case in which the length of the dotted line or the interval between the dotted lines is changed, such as when the currently boarded vehicle is traveling on a curved road. In this case, since one dotted line is short and the other dotted line is long, the average value of the measured lengths of the two dotted lines can be used to calculate the inter-vehicle distance.

결국, 본 실시예에 따르면, 점선의 길이 및 점선 사이의 간격이 변화되더라도 높은 정확도의 차간 거리 계산 작업을 수행할 수 있게 된다.As a result, according to the present embodiment, it is possible to perform an inter-vehicle distance calculation with high accuracy even when the length of the dotted line and the interval between the dotted lines are changed.

또한, 본 실시예에 따른 영상을 이용한 차간 거리 측정 방법은, 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 탑승 차량과 선행 차량 사이의 차간 거리를 계산하는 단계(S140)가, 전방 영상 정보의 화면을 저장하는 단계와, 저장된 화면에 기초하여 복수의 점선의 각각의 거리 및 복수의 점선 사이의 각각의 간격 정보를 미리 측정하여 흔들리는 화면에서의 차간 거리를 보정하는 단계를 포함할 수 있다.In addition, in the method of measuring the inter-vehicle distance using an image according to the present embodiment, the step of calculating the inter-vehicle distance between the boarding vehicle and the preceding vehicle according to whether two road lines includes a plurality of dotted lines ( S140 ) is a front image It may include storing the screen of information, and correcting the inter-vehicle distance on the shaking screen by pre-measuring each distance of a plurality of dotted lines and each distance between the plurality of dotted lines based on the stored screen. .

여기서, 본 실시예에 따르면, 도로상황이나 날씨 등의 외부 요인으로 인해 전방 영상 정보의 화면이 흔들려 도로선이나 선행 차량의 정보를 정확하게 획득하는 것이 어려울 경우에, 상기와 같이 주행 중인 전방 영상 정보의 화면을 일정 시간 간격으로 저장부에 저장해두고, 저장된 복수의 화면들로부터 복수의 점선의 각각의 길이 및 복수의 점선 사이의 간격 정보의 평균 값을 미리 측정하여, 흔들리는 화면에서 차간 거리 계산시 보정 값으로 활용할 수 있게 된다.Here, according to the present embodiment, when it is difficult to accurately obtain information on a road line or a preceding vehicle because the screen of the front image information is shaken due to external factors such as road conditions or weather, The screen is stored in the storage unit at regular time intervals, and the average value of each length of the plurality of dotted lines and the interval information between the plurality of dotted lines is measured in advance from the plurality of stored screens, and the correction value when calculating the inter-vehicle distance on a shaking screen can be used as

이에 따라, 본 실시예에 따른 영상을 이용한 차간 거리 측정 방법에 의하면, 영상 획득부에서 획득되는 전방 영상 정보의 화면이 고르지 못한 경우라도 미리 저장된 화면들을 통한 보정을 실시하여 차간 거리 계산의 정확도를 높일 수 있다.Accordingly, according to the method for measuring the inter-vehicle distance using an image according to the present embodiment, even when the screen of the front image information obtained from the image acquisition unit is uneven, the accuracy of the inter-vehicle distance calculation is improved by performing correction through the pre-stored screens. can

한편, 본 실시예에 따른 영상을 이용한 차간 거리 측정 방법은, 주행중인 도로의 위치 정보가 동일할 경우에, 위에서 측정된 차간 거리 정보를 이용하여 다른 선행 차량과의 차간 거리를 계산하는데 사용할 수 있다.Meanwhile, the method for measuring the inter-vehicle distance using an image according to the present embodiment can be used to calculate the inter-vehicle distance with another preceding vehicle by using the inter-vehicle distance information measured above when the location information of the driving road is the same. .

즉, 같은 도로를 주행중인 경우에는, 시간이 지나더라도 현재 탑승 차량의 영상 획득부를 통해 획득되는 전방 영상 정보가 동일한 렌즈에 의해 촬영되는 화면이 된다. 이에 따라, 위의 수학식 1 및 수학식 2에서의 k값이 동일한 값으로 나타나게 되고 이에 따라 화면 상에서 측정되는 길이와 실제 길이의 비율도 동일할 수 있으므로, 주행중인 도로의 위치 정보가 동일할 경우 위에서 계산된 k값을 그대로 사용하여 제2의 선행 차량과의 차간 거리 계산을 수행할 수 있다.That is, when driving on the same road, even if time passes, the front image information acquired through the image acquisition unit of the currently boarded vehicle becomes a screen shot by the same lens. Accordingly, the k value in Equations 1 and 2 above appears as the same value, and accordingly, the ratio between the length measured on the screen and the actual length may be the same. Calculation of the inter-vehicle distance with the second preceding vehicle may be performed using the k value calculated above as it is.

따라서, 본 실시예에 따른 영상을 이용한 차간 거리 측정 방법에 따르면, 같은 도로를 주행중인 경우라면 연속하여 여러 선행 차량과의 차간 거리 계산을 빠르게 수행할 수 있다는 이점을 갖는다. Accordingly, according to the method for measuring the inter-vehicle distance using an image according to the present embodiment, if the vehicle is traveling on the same road, it is possible to quickly calculate the inter-vehicle distance with several preceding vehicles in succession.

도 6은 본 발명의 다른 실시예에 따른 영상을 이용한 차간 거리 측정 장치가 전방 영상을 통해 차간 거리를 측정하는 방법을 설명하기 위한 흐름도이다.6 is a flowchart illustrating a method of measuring an inter-vehicle distance using an image by an apparatus for measuring an inter-vehicle distance using an image according to another embodiment of the present invention.

도 6을 참고하면, 단계(S210)에서 차간 거리 측정 장치는 현재 탑승 차량에 설치된 위치 획득부를 통해 현재 탑승 차량이 주행중인 도로의 위치 정보를 획득할 수 있다.Referring to FIG. 6 , in step S210 , the device for measuring the inter-vehicle distance may acquire location information of the road on which the vehicle is currently driving through the location acquisition unit installed in the vehicle.

그리고, 단계(S220)에서, 차간 거리 측정 장치는 현재 탑승 차량에 설치된 영상 획득부를 통해 현재 탑승 차량의 전방이 촬영되는 전방 영상 정보를 획득할 수 있다.And, in step S220 , the inter-vehicle distance measuring apparatus may acquire front image information in which the front of the currently boarded vehicle is photographed through an image acquisition unit installed in the currently boarded vehicle.

다음으로, 단계(S230)에서, 차간 거리 측정 장치는 2개의 도로선이 점선인지 실선인지 여부를 판단할 수 있다. 즉, 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 다른 방식으로 차간 거리가 계산될 수 있다.Next, in step S230 , the inter-vehicle distance measuring apparatus may determine whether two road lines are a dotted line or a solid line. That is, the inter-vehicle distance may be calculated in different ways depending on whether the two road lines include a plurality of dotted lines.

이때, 단계(S231)에서, 2개의 도로선 중 적어도 하나 이상의 차선이 점선일 경우, 점선으로 된 차선이 일정한지를 판단할 수 있다. 즉, 복수의 점선의 각각의 길이 및 복수의 점선 사이의 각각의 간격이 일정한지 여부를 판단하고, 판단 여부에 따라 각기 다른 방식으로 차간 거리가 계산될 수 있다.In this case, in step S231 , when at least one of the two road lines is a dotted line, it may be determined whether the dotted line is constant. That is, it may be determined whether each length of the plurality of dotted lines and each interval between the plurality of dotted lines are constant, and the inter-vehicle distance may be calculated in different ways depending on whether the determination is made.

이에, 단계(S241)에서는, 2개의 도로선 중 적어도 하나 이상의 도로선에 복수의 점선이 포함되고, 점선으로 된 도로선의 점선 간격이 일정한 경우에 다음과 같이 차간 거리 계산을 실시하게 된다. 즉, 제1 실시예에에서의 단계(S141)와 같이, 2개의 도로선 중 점선으로 된 하나의 차선을 선택하고, 현재 탑승 차량과 선행 차량 사이의 차간 거리를 위치 정보에 따른 점선의 길이 및 점선 사이의 길이 정보를 이용하여 차간 거리를 계산할 수 있다.Accordingly, in step S241, when a plurality of dotted lines are included in at least one of the two road lines and the dotted line spacing of the dotted road lines is constant, the inter-vehicle distance is calculated as follows. That is, as in step S141 in the first embodiment, one of the two road lines is selected with a dotted line, and the inter-vehicle distance between the current boarding vehicle and the preceding vehicle is determined by the length of the dotted line according to the location information and The inter-vehicle distance may be calculated using length information between the dotted lines.

한편, 단계(S242)에서는, 2개의 도로선 중 적어도 하나 이상의 도로선에 복수의 점선이 포함되고, 점선으로 된 도로선의 점선 간격이 일정하지 않을 경우에는, 2개의 도로선 중 하나의 차선 정보를 이용하여 현재 탑승 차량과 선행 차량과의 차간 거리를 계산하고, 2개의 도로선 정보를 이용하여 현재 탑승 차량과 선행 차량과의 차간 거리를 계산할 수 있다.Meanwhile, in step S242, when at least one of the two road lines includes a plurality of dotted lines and the dotted line spacing of the dotted road lines is not constant, information on one of the two road lines is retrieved. It is possible to calculate the inter-vehicle distance between the currently occupied vehicle and the preceding vehicle using the

부연하자면, 단계(S242)에서, 탑승 차량의 위치 정보에 따른 2개의 도로선 중 제1 차선의 점선 정보, 즉 복수의 점선 각각의 길이 및 복수의 점선 사이의 각각의 간격을 이용하여 선행 차량과의 제1 차간 거리를 계산할 수 있다. In other words, in step S242, by using dotted line information of the first lane among the two road lines according to the location information of the boarding vehicle, that is, the length of each of the plurality of dotted lines and each interval between the plurality of dotted lines, can calculate the first inter-vehicle distance of .

그리고, 2개의 도로선의 제1 차선 및 제1 차선과 일정한 간격으로 이격된 제2 차선의 정보를 이용하여 탑승 차량과 선행 차량과의 제2 차간 거리를 계산할 수 있다. In addition, the second inter-vehicle distance between the boarding vehicle and the preceding vehicle may be calculated using information on the first lane of the two road lines and the second lane spaced apart from the first lane by a predetermined interval.

이때, 제1 차선 및 제2 차선의 이격 거리를 산출하여 차선 폭 길이의 비율에 따라 제2 차간 거리를 계산할 수 있으며, 차선 폭 길이의 비율에 따라 차간 거리를 계산하는 방법에 대해서는 아래에서 구체적으로 설명된다. In this case, by calculating the separation distance between the first and second lanes, the second inter-vehicle distance may be calculated according to the ratio of the lane width to the length of the lane. explained.

이렇게 계산된 제1 차간 거리와 제2 차간 거리와의 차이를 반영하여 제1 차선의 복수의 점선의 각각의 길이 및 복수의 점선 사이의 각각의 간격을 보정하고, 이를 제1 차선 정보에 반영할 수 있다.By reflecting the calculated difference between the first inter-vehicle distance and the second inter-vehicle distance, each length of the plurality of dotted lines of the first lane and each interval between the plurality of dotted lines are corrected, and this is reflected in the first lane information. can

결국, 보정된 제1 차선 정보를 이용하여 탑승 차량과 선행 차량 사이의 제3 차간 거리를 계산함으로써 차간 거리를 계산할 수 있게 된다.As a result, the inter-vehicle distance can be calculated by calculating the third inter-vehicle distance between the occupant vehicle and the preceding vehicle using the corrected first lane information.

이와 같은 계산 방법은, 예를 들어, 주행중인 도로의 도색 불량 또는 도로의 부분적 파손 등과 같이, 2개의 도로선의 점선의 길이 또는 점선의 간격 길이가 일정하지 않은 경우에 활용될 수 있다.Such a calculation method may be utilized when, for example, the length of the dotted line of the two road lines or the length of the interval between the dotted lines is not constant, such as poor painting or partial damage to the road while driving.

한편, 단계(S243)에서는, 2개의 도로선 중 적어도 하나에 복수의 점선이 포함되는지 여부를 판단한 후, 2개의 도로선 중 적어도 하나에 복수의 점선이 포함되지 않을 경우 전방 영상 정보에서 선행 차량 양측의 2개의 도로선을 통해 차간 거리를 계산할 수 있다.Meanwhile, in step S243, after determining whether at least one of the two road lines includes a plurality of dotted lines, if at least one of the two road lines does not include a plurality of dotted lines, both sides of the preceding vehicle in the front image information It is possible to calculate the inter-vehicle distance through the two road lines of

즉, 단계(S243)에서, 선행 차량 양측의 2개의 도로선을 인식하고, 전방 영상 정보의 화면 내 임의의 제1 위치에서 2개의 도로선의 수평 이격 거리를 산출하여 제1 차선 폭을 결정하며, 전방 영상 정보의 화면에서 선행 차량이 위치한 제2 위치에서 2개의 도로선의 수평 이격 거리를 산출하여 제2 차선 폭을 결정하고, 제1 차선 폭과 제2 차선 폭의 비율에 기초하여 탑승 차량과 선행 차량과의 차간 거리를 계산할 수 있다.That is, in step S243, the first lane width is determined by recognizing two road lines on both sides of the preceding vehicle, calculating the horizontal separation distance of the two road lines at an arbitrary first position in the screen of the front image information, The second lane width is determined by calculating the horizontal separation distance of two road lines from the second position where the preceding vehicle is located on the screen of the front image information, and based on the ratio of the first lane width to the second lane width, the vehicle and the preceding vehicle The distance between the vehicle and the vehicle can be calculated.

일반적으로, 도로에서 동일한 차선의 차선 간격은 도로의 종류가 변경되지 않는 이상 일정하다. 이에, 본 실시예에 따른 차간 거리 측정 장치는 미리 정해진 위치에 대응하는 차선 간격 정보를 통해 결정되는 기준 차선 간격 정보와, 전방 영상 정보에 나타나는 차량에 대응하여 획득되는 양측 2개의 차선의 간격 정보의 비율에 기초하여 현재 탑승 차량과 선행 차량 사이의 차간 거리를 측정할 수 있다.In general, the lane spacing of the same lane on a road is constant unless the type of road is changed. Accordingly, the apparatus for measuring the inter-vehicle distance according to the present embodiment includes reference lane spacing information determined through lane spacing information corresponding to a predetermined location and spacing information of two lanes on both sides obtained in response to a vehicle appearing in the front image information. Based on the ratio, an inter-vehicle distance between the current occupant vehicle and the preceding vehicle may be measured.

이때, 현재 차량과 미리 정해진 위치 사이의 실제 거리는 미리 측정될 수 있으며, 미리 측정된 실제 거리와 기준 차선 간격 정보 및 전방 영상 정보에 포함된 선행 차량에 대응하여 획득한 차선 간격 정보의 비율에 기초하여 현재 탑승 차량과 전방 영상 정보에 포함된 선행 차량 사이의 거리 정보가 결정될 수 있다.In this case, the actual distance between the current vehicle and the predetermined location may be measured in advance, and based on the ratio of the pre-measured actual distance to the reference lane spacing information and lane spacing information obtained in response to the preceding vehicle included in the front image information Distance information between the currently boarded vehicle and the preceding vehicle included in the front image information may be determined.

결국, 본 실시예에 따르면, 양측 2개의 도로선의 폭 간격의 비율을 통해 차간 거리를 측정할 수 있으므로, 점선 차선이 아닐 경우라도 차간 거리를 계산할 수 있게 된다.As a result, according to the present embodiment, since the inter-vehicle distance can be measured through the ratio of the width intervals of the two road lines on both sides, the inter-vehicle distance can be calculated even when the lane is not a dotted line.

도 7은 본 발명의 일 실시예에 따른 영상을 이용한 차간 거리 측정 장치의 구성을 나타내는 도면이다.7 is a diagram illustrating a configuration of an apparatus for measuring an inter-vehicle distance using an image according to an embodiment of the present invention.

도 7을 참고하면, 영상을 이용한 차간 거리 측정 장치(300)는 탑승 차량의 위치 정보를 획득하는 위치 획득부(310), 2개의 도로선이 포함된 탑승 차량의 전방 영상 정보를 획득하는 영상 획득부(320), 전방 영상 정보를 이용하여 2개의 도로선의 점선 또는 실선 유무를 판단하는 차선 판단부(330), 전방 영상 정보로부터 선행 차량과 탑승 차량 사이의 차간 거리를 측정하는 거리 측정부(340) 및 차간 거리의 보정 필요여부를 판단하는 보정 여부 판단부(350)를 포함할 수 있다.Referring to FIG. 7 , the inter-vehicle distance measuring apparatus 300 using an image acquires a position acquisition unit 310 for acquiring location information of a vehicle, and an image acquisition for acquiring front image information of a vehicle including two road lines. The unit 320, a lane determination unit 330 that determines whether there are dotted or solid lines of two road lines using the front image information, and a distance measurement unit 340 that measures the inter-vehicle distance between the preceding vehicle and the boarding vehicle from the front image information ) and a correction determination unit 350 for determining whether the inter-vehicle distance needs to be corrected.

일 실시예에 따르면, 영상을 이용한 차간 거리 측정 장치(300)는 앞서 설명한 바와 같이, 전방 영상 정보에 포함된 2개의 도로선이 점선인지 또는 실선인지 여부에 따라 차간 거리를 계산할 수 있다.According to an embodiment, as described above, the inter-vehicle distance measuring apparatus 300 using an image may calculate the inter-vehicle distance according to whether two road lines included in the front image information are a dotted line or a solid line.

즉, 거리 측정부(340)는 2개의 도로선이 점선일 경우 2개의 도로선 중 하나를 선택하여 현재 탑승 차량과 선행 차량 사이의 차간 거리를 위치 정보에 따른 점선의 길이 및 점선 사이의 거리를 이용하여 계산할 수 있다.That is, when the two road lines are dotted lines, the distance measuring unit 340 selects one of the two road lines to determine the inter-vehicle distance between the current boarding vehicle and the preceding vehicle. can be calculated using

결국, 영상을 이용한 차간 거리 측정 장치(300)는 위치 정보를 기반으로 하여 현재 주행중인 도로의 종류를 파악하고, 파악된 도로의 종류에 따라 점선의 길이 또는 점선 사이의 간격 길이 정보를 획득하며, 위치 정보를 기반으로 획득된 점선 정보를 통해 선행 차량과의 차간 거리를 계산하게 된다.As a result, the inter-vehicle distance measuring apparatus 300 using the image determines the type of road currently being driven based on the location information, and acquires information on the length of the dotted line or the length of the interval between the dotted lines according to the type of the identified road, The inter-vehicle distance with the preceding vehicle is calculated based on the dotted line information obtained based on the location information.

그리고, 수학식 1 및 수학식 2를 통해 현재 탑승 차량과 전방 영상 정보에 포함된 차량 사이의 거리 정보를 계산할 수 있다. 수학식에서 사용되는 점선 차선의 길이 정보는 위치 정보에 따라 주행중인 도로 정보로부터 획득되는 차선 정보일 수 있으며, 위치 정보에 따른 도로 정보 및 차선 정보는 데이터베이스화되어 저장부(360)에 저장되거나 별도의 데이터가 저장된 서버부(미도시)를 통해 제공받을 수 있다.In addition, distance information between the currently boarded vehicle and the vehicle included in the front image information may be calculated through Equations 1 and 2. The length information of the dotted line used in the equation may be lane information obtained from road information being driven according to the location information, and the road information and lane information according to the location information are converted into a database and stored in the storage unit 360 or separate Data may be provided through a stored server unit (not shown).

이때, 보정 여부 판단부(350)는 2개의 도로선 중 하나 이상의 차선이 점선인 경우, 점선으로 된 차선의 길이나 점선 사이의 간격 길이가 일정하지 않은 경우, 점선으로 된 차선의 길이나 점선 사이의 간격 길이가 변하는 경우, 또는 2개의 도로선이 실선인 경우 등과 같이, 점선 차선을 이용한 차간 거리의 계산시 보정이 필요한 경우들을 판단하여 필요에 따라 다양한 방식으로 차간 거리를 계산할 수 있다.At this time, the correction determination unit 350 determines whether one or more of the two road lines is a dotted line, when the length of the dotted line or the length of the interval between the dotted lines is not constant, the length of the dotted line or between the dotted lines It is possible to calculate the inter-vehicle distance in various ways as needed by determining cases in which correction is required when calculating the inter-vehicle distance using a dotted line, such as a case in which the length of the interval of .

따라서, 본 실시예에 따른 영상을 이용한 차간 거리 측정 장치는 2개의 도로선 중 적어도 하나의 차선 정보만을 이용하여 차간 거리를 계산하므로 사용되는 메모리 용량과 계산 시간을 줄일 수 있으며, 점선 차선의 길이 정보를 위치 정보를 기반으로 하여 실제 주행 중인 도로 상의 차선 정보로부터 획득된 점선 차선의 길이 정보를 통해 실제 차간 거리를 계산하게 되므로, 전방 영상 정보를 촬영하는 렌즈의 사양이나 설치 높이 또는 설치 각도와 무관하게 차간 거리를 측정할 수 있다.Accordingly, since the inter-vehicle distance measuring apparatus using an image according to the present embodiment calculates the inter-vehicle distance using only information on at least one of the two road lines, the amount of memory used and the calculation time can be reduced, and information on the length of the dotted line Based on the location information, the actual inter-vehicle distance is calculated through the length information of the dotted line obtained from the lane information on the actual driving road. You can measure the distance between vehicles.

실시예들에서 설명된 구성요소들은 하나 이상의 DSP (digital signal processor), 프로세서, 컨트롤러, ASIC(application specific integrated circuit), FPGA (field programmable gate array)와 같은 프로그래머블 논리 소자, 다른 전자 기기들 및 이것들의 조합 중 하나 이상을 포함하는 하드웨어 구성 요소에 의해 구현될 수 있다. 실시예들에서 설명된 과정들 또는 기능들 중 적어도 일부는 소프트웨어에 의해 구현될 수 있고, 해당 소프트웨어는 기록 매체에 기록될 수 있다. 실시예들에서 설명된 구성요소들, 기능들 및 과정들은 하드웨어와 소프트웨어의 조합에 의해 구현될 수 있다.Components described in the embodiments include one or more digital signal processors (DSPs), processors, controllers, application specific integrated circuits (ASICs), programmable logic devices such as field programmable gate arrays (FPGAs), other electronic devices, and their It may be implemented by a hardware component comprising one or more of the combinations. At least some of the processes or functions described in the embodiments may be implemented by software, and the software may be recorded on a recording medium. Components, functions and processes described in the embodiments may be implemented by a combination of hardware and software.

전술한 본 발명의 실시예들은 컴퓨터에서 실행될 수 있는 프로그램으로 작성 가능하고, 컴퓨터로 읽을 수 있는 기록매체를 이용하여 상기 프로그램을 동작시키는 범용 컴퓨터에서 구현될 수 있다. 상기 컴퓨터로 읽을 수 있는 기록매체는 롬(ROM), 플로피 디스크, 하드 디스크 등의 자기적 매체, CD, DVD 등의 광학적 매체 및 인터넷을 통한 전송과 같은 캐리어 웨이브와 같은 형태로 구현된다. 또한, 컴퓨터가 읽을 수 있는 기록매체는 네크워크로 연결된 컴퓨터 시스템에 분산되어 분산 방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.The above-described embodiments of the present invention can be written as a program that can be executed on a computer, and can be implemented in a general-purpose computer that operates the program using a computer-readable recording medium. The computer-readable recording medium is implemented in the form of a magnetic medium such as a ROM, a floppy disk, a hard disk, an optical medium such as a CD or DVD, and a carrier wave such as transmission through the Internet. In addition, the computer-readable recording medium is distributed in a computer system connected to a network, so that the computer-readable code can be stored and executed in a distributed manner.

그리고, 본 발명의 실시예에서 사용되는 구성요소 또는 '~부'는 메모리 상의 소정 영역에서 수행되는 태스크, 클래스, 서브 루틴, 프로세스, 오브젝트, 실행 쓰레드, 프로그램과 같은 소프트웨어(software)나, FPGA(field-programmable gate array)나 ASIC(application-specific integrated circuit)과 같은 하드웨어(hardware)로 구현될 수 있으며, 또한 상기 소프트웨어 및 하드웨어의 조합으로 이루어질 수도 있다. 상기 구성요소 또는 '~부'는 컴퓨터로 판독 가능한 저장 매체에 포함되어 있을 수도 있고, 복수의 컴퓨터에 그 일부가 분산되어 분포될 수도 있다.And, the component or '~ unit' used in the embodiment of the present invention is a task, class, subroutine, process, object, execution thread, software such as a program or FPGA ( It may be implemented in hardware such as a field-programmable gate array or an application-specific integrated circuit (ASIC), or may be implemented in a combination of software and hardware. The component or '~ unit' may be included in a computer-readable storage medium, or a part thereof may be distributed and distributed among a plurality of computers.

이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로, 본 발명이 속하는 기술분야에서 통상의 지식을 갖는 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 발명에 게시된 실시 예는 본 발명의 기술 사상을 한정하기 위한 것이 아닌 설명을 위한 것이고, 이런 실시 예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. The above description is merely illustrative of the technical spirit of the present invention, and various modifications and variations will be possible without departing from the essential characteristics of the present invention by those skilled in the art to which the present invention pertains. Accordingly, the embodiments disclosed in the present invention are for explanation rather than limiting the technical spirit of the present invention, and the scope of the technical spirit of the present invention is not limited by these embodiments.

따라서 본 발명의 보호 범위는 전술한 실시예에 의해 제한되기보다는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.Therefore, the protection scope of the present invention should be interpreted by the following claims rather than being limited by the above-described embodiments, and all technical ideas within an equivalent range should be interpreted as being included in the scope of the present invention.

10 : 전방 영상 정보의 화면 11 : 선행 차량
12 : 도로선 13 : 렌즈
10: front image information screen 11: preceding vehicle
12: road line 13: lens

Claims (13)

탑승 차량의 위치 획득부를 이용하여 위치 정보를 획득하는 단계;
2개의 도로선이 포함된 상기 탑승 차량의 전방 영상 정보를 영상 획득부를 이용하여 획득하는 단계;
상기 전방 영상 정보를 이용하여 상기 2개의 도로선이 점선인지 실선인지 여부를 판단하는 단계; 및
상기 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 상기 탑승 차량과 선행 차량 사이의 차간 거리를 계산하는 단계;를 포함하고,
상기 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 상기 탑승 차량과 선행 차량 사이의 차간 거리를 계산하는 단계는,
상기 복수의 점선이 상기 2개의 도로선 중 적어도 하나에 포함되는지 여부를 판단하는 단계;
상기 2개의 도로선 중 상기 복수의 점선이 포함된 제1 차선의 상기 복수의 점선의 각각의 길이 및 상기 복수의 점선 사이의 각각의 간격이 일정한지 여부를 판단하는 단계;
상기 2개의 도로선의 상기 제1 차선의 상기 복수의 점선의 각각의 길이 및 상기 복수의 점선 사이의 각각의 간격이 일정하지 않은 경우, 상기 탑승 차량과 상기 선행 차량 사이의 제1 차간 거리를 상기 위치 정보에 따른 상기 제1 차선의 복수의 점선의 각각의 길이 및 상기 복수의 점선 사이의 각각의 간격을 이용하여 계산하는 단계;
상기 2개의 도로선의 상기 제1 차선 및 상기 제1 차선과 일정한 간격으로 이격된 제2 차선의 정보를 이용하여 상기 탑승차량과 상기 선행 차량과의 제2 차간거리를 계산하는 단계;
상기 제1 차간 거리와 상기 제2 차간 거리와의 차이를 반영하여 상기 제1 차선의 상기 복수의 점선의 각각의 길이를 동일하게 보정하고, 상기 복수의 점선 사이의 각각의 간격을 동일하게 보정하여 상기 제1 차선 정보에 반영하는 단계; 및
상기 제1 차선의 상기 보정된 복수의 점선의 각각의 길이 및 상기 보정된 복수의 점선 사이의 각각의 간격 정보를 이용하여 상기 탑승 차량과 상기 선행 차량 사이의 제3 차간 거리를 계산하는 단계;를 포함하는 영상을 이용한 차간 거리 측정 방법.
obtaining location information by using a location obtaining unit of the boarding vehicle;
acquiring front image information of the boarding vehicle including two road lines using an image acquisition unit;
determining whether the two road lines are a dotted line or a solid line using the front image information; and
calculating an inter-vehicle distance between the boarding vehicle and the preceding vehicle according to whether the two road lines include a plurality of dotted lines;
Calculating the inter-vehicle distance between the boarding vehicle and the preceding vehicle according to whether the two road lines include a plurality of dotted lines,
determining whether the plurality of dotted lines are included in at least one of the two road lines;
determining whether lengths of each of the plurality of dotted lines of a first lane including the plurality of dotted lines among the two road lines and intervals between the plurality of dotted lines are constant;
When the lengths of each of the plurality of dotted lines of the first lane of the two road lines and the respective intervals between the plurality of dotted lines are not constant, the first inter-vehicle distance between the boarding vehicle and the preceding vehicle is the position calculating using each length of the plurality of dotted lines of the first lane according to the information and each interval between the plurality of dotted lines;
calculating a second inter-vehicle distance between the boarding vehicle and the preceding vehicle using information on the first lane of the two road lines and a second lane spaced apart from the first lane at a regular interval;
By reflecting the difference between the first inter-vehicle distance and the second inter-vehicle distance, each length of the plurality of dotted lines of the first lane is equally corrected, and each interval between the plurality of dotted lines is equally corrected, reflecting the first lane information; and
calculating a third inter-vehicle distance between the boarding vehicle and the preceding vehicle by using each length of each of the corrected plurality of dotted lines of the first lane and information on each interval between the corrected plurality of dotted lines; A method of measuring the inter-vehicle distance using the included image.
삭제delete 삭제delete 제1항에 있어서,
상기 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 상기 탑승 차량과 선행 차량 사이의 차간 거리를 계산하는 단계에서,
상기 탑승 차량과 상기 선행 차량 사이의 실제 차간 거리(Lx)는 아래의 수학식 1에 의해 계산되는,
<수학식 1>
Figure 112021091702657-pat00003

여기서, Vx는 상기 탑승 차량의 상기 전방 영상 정보가 표시되는 화면의 윗부분에서 상기 선행 차량이 상기 화면에 표시되는 부분 까지의 수직 거리이고, k는 아래의 수학식 2에 의해 계산되는,
<수학식 2>
Figure 112021091702657-pat00004

여기서, Li는 상기 위치 정보에 따른 상기 2개의 도로선 중 상기 복수의 점선이 포함된 하나의 도로선의 상기 복수의 점선의 각각의 길이 및 상기 점선 사이의 각각의 간격에 의해 결정되는 상기 탑승 차량에서 제1 가상지점까지의 제1 거리이고, Li+1은 상기 Li보다 일정 배율로 크며 상기 위치 정보에 따른 상기 2개의 도로선 중 상기 복수의 점선이 포함된 하나의 도로선의 상기 복수의 점선의 각각의 길이 및 상기 점선 사이의 각각의 간격에 의해 결정되는 상기 탑승차량과의 제2 가상지점까지의 제2 거리이며, Vi는 상기 화면의 윗부분에서 상기 제1 가상지점이 표시되는 부분 까지의 제1 수직 거리이고, Vi+1은 상기 화면의 윗부분에서 상기 제2 가상지점이 표시되는 부분 까지의 제2 수직 거리이며, Δl은 상기 제1 거리와 상기 제2 거리의 차이인 영상을 이용한 차간 거리 측정 방법.
According to claim 1,
In the step of calculating the inter-vehicle distance between the boarding vehicle and the preceding vehicle according to whether a plurality of dotted lines are included in the two road lines,
The actual inter-vehicle distance Lx between the boarding vehicle and the preceding vehicle is calculated by Equation 1 below,
<Equation 1>
Figure 112021091702657-pat00003

Here, Vx is the vertical distance from the upper part of the screen on which the front image information of the boarding vehicle is displayed to the part where the preceding vehicle is displayed on the screen, and k is calculated by Equation 2 below,
<Equation 2>
Figure 112021091702657-pat00004

Here, L i is each length of the plurality of dotted lines of one road line including the plurality of dotted lines among the two road lines according to the location information and each interval between the dotted lines. is a first distance from to a first virtual point, and L i+1 is greater than the L i by a predetermined magnification, and the plurality of The second distance to the second virtual point with the boarding vehicle is determined by the length of each dotted line and each interval between the dotted lines, and V i is the portion where the first virtual point is displayed on the upper part of the screen. is the first vertical distance to , V i+1 is the second vertical distance from the upper part of the screen to the portion where the second virtual point is displayed, and Δl is the difference between the first distance and the second distance. A method of measuring the distance between vehicles using
삭제delete 제1 항에 있어서,
상기 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 상기 탑승 차량과 선행 차량 사이의 차간 거리를 계산하는 단계에서,
상기 복수의 점선의 길이 및 상기 복수의 점선 사이의 간격이 변하는 경우, 상기 전방 영상 정보의 화면에 잡히는 다수의 점선과 점선 사이의 거리를 화면상에서 측정하여 해당 값들의 평균값을 구하는 영상을 이용한 차간 거리 측정 방법.
According to claim 1,
In the step of calculating the inter-vehicle distance between the boarding vehicle and the preceding vehicle according to whether a plurality of dotted lines are included in the two road lines,
When the length of the plurality of dotted lines and the interval between the plurality of dotted lines change, the distance between the plurality of dotted lines and the dotted lines captured on the screen of the front image information is measured on the screen to obtain the average value of the values. How to measure.
제1 항에 있어서,
상기 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 상기 탑승 차량과 선행 차량 사이의 차간 거리를 계산하는 단계는,
상기 전방 영상 정보의 화면을 저장하는 단계; 및
상기 저장된 화면에 기초하여 상기 복수의 점선의 각각의 거리 및 상기 복수의 점선 사이의 각각의 간격 정보를 미리 측정하여, 흔들리는 화면에서의 차간 거리를 보정하는 단계;를 포함하는 영상을 이용한 차간 거리 측정 방법.
According to claim 1,
Calculating the inter-vehicle distance between the boarding vehicle and the preceding vehicle according to whether the two road lines include a plurality of dotted lines,
storing a screen of the front image information; and
Measuring the inter-vehicle distance using an image comprising: measuring each distance of the plurality of dotted lines and information on each interval between the plurality of dotted lines in advance on the basis of the stored screen to correct the inter-vehicle distance on a shaking screen; Way.
제1 항에 있어서,
상기 도로선의 종류를 판단하는 단계를 더 포함하는 차간 거리 측정 방법.
According to claim 1,
The inter-vehicle distance measuring method further comprising the step of determining the type of the road line.
제8 항에 있어서,
상기 도로선은 중앙선, 차선 및 길가장자리 구역선을 포함하는 차간 거리 측정 방법.
9. The method of claim 8,
The road line is an inter-vehicle distance measuring method including a center line, a lane, and a road edge zone line.
탑승 차량의 위치 정보를 획득하는 위치 획득부;
2개의 도로선이 포함된 상기 탑승 차량의 전방 영상 정보를 획득하는 영상 획득부;
상기 전방 영상 정보를 이용하여 상기 2개의 도로선의 점선 또는 실선 여부를 판단하는 차선 판단부;
상기 2개의 도로선에 복수의 점선이 포함되는지 여부에 따라 상기 전방 영상 정보로부터 선행 차량과 상기 탑승 차량 사이의 차간 거리를 측정하는 거리 측정부; 및
상기 차간 거리의 보정 필요여부를 판단하는 보정 여부 판단부;를 포함하고,
상기 거리 측정부는,
상기 탑승 차량과 상기 선행 차량 사이의 실제 차간 거리(Lx)를 아래의 수학식 1에 의해 계산하는,
<수학식 1>
Figure 112021091702657-pat00014

여기서, Vx는 상기 탑승 차량의 전방 영상 정보가 표시되는 화면의 윗부분에서 상기 선행 차량이 상기 화면에 표시되는 부분 까지의 수직 거리이고, k를 아래의 수학식 2에 의해 계산하는,
<수학식 2>
Figure 112021091702657-pat00015

여기서, Li는 상기 위치 정보에 따른 상기 2개의 도로선 중 상기 복수의 점선이 포함된 하나의 도로선의 상기 복수의 점선의 각각의 길이 및 상기 점선 사이의 각각의 간격에 의해 결정되는 상기 탑승 차량에서 제1 가상지점까지의 제1 거리이고, Li+1은 상기 Li보다 일정 배율로 크며 상기 위치 정보에 따른 상기 2개의 도로선 중 상기 복수의 점선이 포함된 하나의 도로선의 상기 복수의 점선의 각각의 길이 및 상기 점선 사이의 각각의 간격에 의해 결정되는 상기 탑승차량과의 제2 가상지점까지의 제2 거리이며, Vi는 상기 화면의 윗부분에서 상기 제1 가상지점이 표시되는 부분 까지의 제1 수직 거리이고, Vi+1은 상기 화면의 윗부분에서 상기 제2 가상지점이 표시되는 부분 까지의 제2 수직 거리이며, Δl은 상기 제1 거리와 상기 제2 거리의 차이인 영상을 이용한 차간 거리 측정 장치.
a location acquisition unit for acquiring location information of the vehicle;
an image acquisition unit for acquiring front image information of the boarding vehicle including two road lines;
a lane determination unit for determining whether the two road lines are a dotted line or a solid line using the front image information;
a distance measuring unit measuring an inter-vehicle distance between a preceding vehicle and the boarding vehicle from the front image information according to whether the two road lines include a plurality of dotted lines; and
and a correction or not determining unit that determines whether the inter-vehicle distance needs to be corrected.
The distance measuring unit,
Calculating the actual inter-vehicle distance (L x ) between the boarding vehicle and the preceding vehicle by Equation 1 below,
<Equation 1>
Figure 112021091702657-pat00014

Here, V x is the vertical distance from the upper part of the screen on which the front image information of the boarding vehicle is displayed to the part where the preceding vehicle is displayed on the screen, and k is calculated by Equation 2 below,
<Equation 2>
Figure 112021091702657-pat00015

Here, L i is each length of the plurality of dotted lines of one road line including the plurality of dotted lines among the two road lines according to the location information and each interval between the dotted lines. is a first distance from to a first virtual point, and L i+1 is greater than the L i by a predetermined magnification, and the plurality of The second distance to the second virtual point from the boarding vehicle is determined by the length of each dotted line and each interval between the dotted lines, and V i is the portion where the first virtual point is displayed on the upper part of the screen. is the first vertical distance to , V i+1 is the second vertical distance from the upper part of the screen to the portion where the second virtual point is displayed, and Δl is the difference between the first distance and the second distance. A device for measuring the distance between vehicles.
제10항에 있어서,
상기 거리 측정부는,
상기 2개의 도로선에 상기 복수의 점선이 포함될 경우 상기 2개의 도로선 중 하나를 선택하여 상기 탑승 차량과 선행 차량 사이의 차간 거리를 상기 위치 정보에 따른 점선의 길이 및 점선 사이의 거리를 이용하여 계산하는 영상을 이용한 차간 거리 측정 장치.
11. The method of claim 10,
The distance measuring unit,
When the two road lines include the plurality of dotted lines, one of the two road lines is selected to determine the inter-vehicle distance between the boarding vehicle and the preceding vehicle using the length of the dotted line and the distance between the dotted lines according to the location information. A vehicle-to-vehicle distance measurement device using the calculated image.
삭제delete 제10항에 있어서,
상기 보정 여부 판단부는,
상기 2개의 도로선의 점선의 길이 및 점선의 간격이 일정하지 않거나, 상기 점선의 길이 및 상기 점선 사이의 길이가 변하거나 또는 상기 영상 정보의 화면이 흔들리는 경우로부터 상기 차간 거리의 보정 필요여부를 판단하는 영상을 이용한 차간 거리 측정 장치.
11. The method of claim 10,
The correction determination unit,
When the length of the dotted line of the two road lines and the interval between the dotted lines are not constant, the length of the dotted line and the length between the dotted lines change, or the screen of the image information shakes, it is determined whether the inter-vehicle distance needs to be corrected A device for measuring the distance between vehicles using an image.
KR1020200128931A 2020-10-06 2020-10-06 Distance measuring device and method for nearing vehicle using image KR102363924B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200128931A KR102363924B1 (en) 2020-10-06 2020-10-06 Distance measuring device and method for nearing vehicle using image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200128931A KR102363924B1 (en) 2020-10-06 2020-10-06 Distance measuring device and method for nearing vehicle using image

Publications (1)

Publication Number Publication Date
KR102363924B1 true KR102363924B1 (en) 2022-02-15

Family

ID=80325726

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200128931A KR102363924B1 (en) 2020-10-06 2020-10-06 Distance measuring device and method for nearing vehicle using image

Country Status (1)

Country Link
KR (1) KR102363924B1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006153565A (en) * 2004-11-26 2006-06-15 Nissan Motor Co Ltd In-vehicle navigation device and own car position correction method
KR20120021445A (en) * 2010-07-30 2012-03-09 (주)엠아이웨어 Method of calculating distance between cars
KR101609819B1 (en) * 2014-12-30 2016-04-06 한국기술교육대학교 산학협력단 Apparatus for Inter-Vehicle Distance Estimation
KR101977493B1 (en) * 2017-11-10 2019-05-10 한국산업기술대학교산학협력단 Apparatus and method for measuring distance between vehicles
KR20190103508A (en) * 2018-02-12 2019-09-05 경북대학교 산학협력단 Method for extracting driving lane, device and computer readable medium for performing the method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006153565A (en) * 2004-11-26 2006-06-15 Nissan Motor Co Ltd In-vehicle navigation device and own car position correction method
KR20120021445A (en) * 2010-07-30 2012-03-09 (주)엠아이웨어 Method of calculating distance between cars
KR101722258B1 (en) 2010-07-30 2017-04-10 (주)엠아이웨어 Method of calculating distance between cars
KR101609819B1 (en) * 2014-12-30 2016-04-06 한국기술교육대학교 산학협력단 Apparatus for Inter-Vehicle Distance Estimation
KR101977493B1 (en) * 2017-11-10 2019-05-10 한국산업기술대학교산학협력단 Apparatus and method for measuring distance between vehicles
KR20190103508A (en) * 2018-02-12 2019-09-05 경북대학교 산학협력단 Method for extracting driving lane, device and computer readable medium for performing the method

Similar Documents

Publication Publication Date Title
US11348266B2 (en) Estimating distance to an object using a sequence of images recorded by a monocular camera
US8964031B2 (en) Method and system for measuring the speed of a vehicle
JP6950170B2 (en) Information processing device, imaging device, device control system, information processing method, and program
JP2010537331A (en) Video image online calibration method and system
CN109532662B (en) Method and device for calculating distance between vehicles and collision time
WO2015125298A1 (en) Local location computation device and local location computation method
JP6237874B2 (en) Self-position calculation device and self-position calculation method
TWI609807B (en) Image evaluation method and electronic apparatus thereof
CN105809669A (en) Method and apparatus of calibrating an image detecting device
CN110068826B (en) Distance measurement method and device
JP3807583B2 (en) Road area determination device
JP6398218B2 (en) Self-position calculation device and self-position calculation method
KR102363924B1 (en) Distance measuring device and method for nearing vehicle using image
CN112784633B (en) Lane boundary processing method and device, electronic equipment and storage medium
KR101977493B1 (en) Apparatus and method for measuring distance between vehicles
JP2019219180A (en) Object detection device for vehicle
JP6507590B2 (en) Image conversion apparatus and image conversion method
JP7134780B2 (en) stereo camera device
JP2000149181A (en) Traffic stream measurement system
WO2022102371A1 (en) Object detection device and object detection method
KR102663836B1 (en) Method and apparatus for measuring distance between vehicles
JP7322576B2 (en) Information processing device, imaging device, and moving object
CN112926493B (en) License plate detection method, device, equipment and medium
CN112513572B (en) Image processing apparatus
KR102327342B1 (en) Calibration apparatus for vehicle camera

Legal Events

Date Code Title Description
GRNT Written decision to grant