KR102365361B1 - An apparatus and method for determining a driving state of a vehicle - Google Patents

An apparatus and method for determining a driving state of a vehicle Download PDF

Info

Publication number
KR102365361B1
KR102365361B1 KR1020210052465A KR20210052465A KR102365361B1 KR 102365361 B1 KR102365361 B1 KR 102365361B1 KR 1020210052465 A KR1020210052465 A KR 1020210052465A KR 20210052465 A KR20210052465 A KR 20210052465A KR 102365361 B1 KR102365361 B1 KR 102365361B1
Authority
KR
South Korea
Prior art keywords
vehicle
lane
driving
processor
section
Prior art date
Application number
KR1020210052465A
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 KR1020210052465A priority Critical patent/KR102365361B1/en
Application granted granted Critical
Publication of KR102365361B1 publication Critical patent/KR102365361B1/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
    • B60W30/00Purposes of road vehicle drive control systems not related to the control of a particular sub-unit, e.g. of systems using conjoint control of vehicle sub-units
    • B60W30/10Path keeping
    • B60W30/12Lane keeping
    • 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
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/588Recognition of the road, e.g. of lane markings; Recognition of the vehicle driving pattern in relation to the road
    • 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
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W2050/0001Details of the control system
    • B60W2050/0002Automatic control, details of type of controller or control system architecture
    • B60W2050/0004In digital systems, e.g. discrete-time systems involving sampling
    • B60W2050/0005Processor details or data handling, e.g. memory registers or chip architecture
    • B60W2420/42
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60YINDEXING SCHEME RELATING TO ASPECTS CROSS-CUTTING VEHICLE TECHNOLOGY
    • B60Y2300/00Purposes or special features of road vehicle drive control systems
    • B60Y2300/10Path keeping
    • B60Y2300/12Lane keeping

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Mathematical Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Traffic Control Systems (AREA)

Abstract

The present invention relates to an apparatus and a method for determining a driving state of a vehicle. The apparatus for determining a driving status of a vehicle of the present invention comprises: a camera; and a processor which obtains a driving image of the vehicle by the camera, obtains road coordinate information with respect to the vehicle, obtains information of a vehicle driving lane, and sets at least one section on the driving image to determine whether the vehicle is out of the lane based on the road coordinate information and the lane information. Therefore, according to the present invention, the driving state of the vehicle is accurately determined.

Description

차량의 주행 상태를 판단하는 장치 및 방법{AN APPARATUS AND METHOD FOR DETERMINING A DRIVING STATE OF A VEHICLE}Apparatus and method for determining the driving state of a vehicle

본 발명은 차량의 주행 상태를 판단하는 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for determining a driving state of a vehicle.

일반적으로 차량은 주행중인 상태를 녹화 및 저장하는 장치(예: 블랙박스)를 탑재할 수 있다. 이러한 장치(예: 블랙박스)는 차량 제조사에서 차량 내부에 내장하여 출시하거나, 또는 운전자가 별도로 구매하여 차량에 설치할 수 있다.In general, a vehicle may be equipped with a device (eg, a black box) that records and stores a driving state. Such a device (eg, a black box) may be released by a vehicle manufacturer embedded in the vehicle, or may be separately purchased by a driver and installed in the vehicle.

그리고, 트럭, 버스, 택시 등 사업용 차량은 블랙박스로 영상을 저장할 수 있다. 또한, 사업용 차량은 저장된 영상을 광대역망 통신(예: LTE, 4G, 5G 등)을 통해 사업용 차량을 관리하는 서버로 전송하거나, 또는 지정된 차고지에서 무선 인터넷(예: Wi-Fi)를 통해 영상을 서버로 전송할 수 있다. 이 경우, 차량을 관리하는 사업자는 촬영된 영상을 통해 사고 발생, 주행 위반 등에 대한 자료를 확보할 수 있다.In addition, commercial vehicles such as trucks, buses, and taxis can store images in a black box. In addition, the business vehicle transmits the stored image to the server managing the business vehicle through broadband network communication (eg, LTE, 4G, 5G, etc.) can be sent to the server. In this case, the operator who manages the vehicle can secure data on the occurrence of an accident, driving violation, etc. through the captured image.

이와 같이, 차량을 관리하는 사업자가 주행 상황에 대한 영상을 확보함으로써, 사업자는 사고 원인을 정확히 판단하거나, 또는 부주의한 운전자를 평가 및 교육하기 위한 자료로 영상을 활용할 수 있다.As such, since the operator managing the vehicle secures the image of the driving situation, the operator can accurately determine the cause of the accident or utilize the image as data for evaluating and educating a careless driver.

그런데, 차량 운전자가 신호 위반, 또는 차선 위반을 할 경우, 사업자는 이를 확인하기 위해 차량에서 촬영된 영상 모두를 분석하는 것은 많은 시간이 소요될 수 있을 뿐만 아니라, 인건비 상승을 초래할 수 있다.However, when the driver of the vehicle violates a signal or a lane, it may take a lot of time for the operator to analyze all the images taken from the vehicle in order to confirm this, and may result in an increase in labor costs.

그리고, 종래의 선행 기술(등록특허공보 제10-1840974)은 자율 주행용 차선 식별 시스템에 관한 것으로서, 차선을 식별하는 내용을 개시하고 있다.And, the prior art (Registered Patent Publication No. 10-1840974) relates to a lane identification system for autonomous driving, and discloses content for identifying a lane.

그런데, 선행 기술은 카메라를 통해 촬영된 영상에서 불필요한 화소를 삭제하여 차선을 식별할 뿐, 차량이 차선을 닿은 채 주행 중인지, 또는 차선을 넘어서 주행 중인지에 대한 전반적인 주행 상태를 판단하지 않는다.However, the prior art only identifies the lane by deleting unnecessary pixels from the image captured by the camera, and does not determine the overall driving state as to whether the vehicle is driving while touching the lane or driving across the lane.

따라서, 차량이 차선을 닿은 채 주행하는지, 또는 차선을 넘은 채 주행하는지에 대한 전반적인 주행 상태를 판단하기 위해, 주행 중에 차선을 자동으로 식별할 필요성이 제기된다.Accordingly, there is a need to automatically identify a lane while driving in order to determine the overall driving state as to whether the vehicle travels while touching the lane or driving across the lane.

등록특허공보 제10-1840974Registered Patent Publication No. 10-1840974

따라서, 본 발명의 목적은 차량의 주행 상태를 판단하는 장치 및 방법을 제공하는 것이다.Accordingly, it is an object of the present invention to provide an apparatus and method for determining a driving state of a vehicle.

또한 본 발명은 차량 기준의 도로 좌표 정보와 차선 정보를 이용하여 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정하는 장치 및 방법을 제공하는 것이다.Another object of the present invention is to provide an apparatus and method for setting, in a driving image, at least one section for determining whether to depart from a lane by using vehicle-based road coordinate information and lane information.

본 발명의 목적들은 이상에서 언급한 목적으로 제한되지 않으며, 언급되지 않은 본 발명의 다른 목적 및 장점들은 하기의 설명에 의해서 이해될 수 있고, 본 발명의 실시 예에 의해 보다 분명하게 이해될 것이다. 또한, 본 발명의 목적 및 장점들은 특허 청구 범위에 나타낸 수단 및 그 조합에 의해 실현될 수 있음을 쉽게 알 수 있을 것이다.The objects of the present invention are not limited to the objects mentioned above, and other objects and advantages of the present invention not mentioned may be understood by the following description, and will be more clearly understood by the examples of the present invention. It will also be readily apparent that the objects and advantages of the present invention may be realized by the means and combinations thereof indicated in the appended claims.

이러한 목적을 달성하기 위해 본 발명은 차량의 주행 상태를 판단하는 장치는 카메라, 및 상기 카메라를 통해 차량의 주행 영상을 획득하고, 상기 차량 기준의 도로 좌표 정보를 획득하고, 상기 차량이 주행하는 차선 정보를 획득하고, 상기 좌표 정보 및 상기 차선 정보에 기반하여 상기 차량의 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정하는 프로세서를 포함할 수 있다.In order to achieve this object, the present invention provides an apparatus for determining the driving state of a vehicle, a camera, and a driving image of the vehicle through the camera, obtains road coordinate information based on the vehicle, and a lane in which the vehicle travels and a processor for acquiring information and setting, in the driving image, at least one section for determining whether the vehicle departs from a lane based on the coordinate information and the lane information.

또한, 본 발명은 차량의 주행 상태를 판단하는 방법에 있어서, 카메라를 통해 차량의 주행 영상을 획득하는 과정, 상기 차량 기준의 도로 좌표 정보를 획득하는 과정, 상기 차량이 주행하는 차선 정보를 획득하는 과정, 상기 도로 좌표 정보 및 상기 차선 정보에 기반하여 상기 차량의 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정하는 과정을 포함할 수 있다.In addition, the present invention provides a method for determining the driving state of a vehicle, comprising: acquiring a driving image of the vehicle through a camera; acquiring road coordinate information based on the vehicle; The method may include setting, in the driving image, at least one section for determining whether the vehicle departs from a lane based on the process, the road coordinate information and the lane information.

본 발명은 차량의 차량 기준의 도로 좌표 정보 및 차선 정보를 획득함으로써, 차량의 주행 상태를 정확히 판단할 수 있다.The present invention can accurately determine the driving state of the vehicle by obtaining the vehicle reference road coordinate information and lane information of the vehicle.

또한, 본 발명은 차량 기준의 도로 좌표 정보 및 차선 정보에 기반하여 상기 차량의 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정함으로써, 차량의 현재 주행 상태를 판단할 수 있을 뿐만 아니라, 자율 주행 차량에 적용할 수 있다.In addition, the present invention can determine the current driving state of the vehicle as well as determine the current driving state by setting at least one section for determining whether the vehicle departs from the lane based on the vehicle reference road coordinate information and lane information in the driving image. , can be applied to autonomous vehicles.

또한, 본 발명은 주행 영상에서의 소실점의 좌우로 마진을 설정하고, 상기 주행 영상의 하단에서의 차량의 폭의 중간 지점을 기준 위치로 설정하고, 상기 주행 영상에서의 지평선과 만나는 지점과 상기 주행 영상의 하단이 교차하는 지점을 통해 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정함으로써, 차선 이탈에 대한 보다 정확한 데이터를 확보할 수 있다.In addition, the present invention sets a margin to the left and right of a vanishing point in the driving image, sets a midpoint of the width of the vehicle at the lower end of the driving image as a reference position, and sets a point meeting the horizon in the driving image and the driving By setting in the driving image at least one section for determining whether or not lane departure is made through a point where the lower end of the image intersects, more accurate data on lane departure may be secured.

또한, 본 발명은 차량의 탑승자의 무게, 차선의 굴곡 상태, 및 차량의 흔들림에 기반하여 소실점의 좌우로 설정되는 마진을 결정함으로써, 다양한 도로 환경에서도 적용될 수 있다.In addition, the present invention can be applied to various road environments by determining the margin set to the left and right of the vanishing point based on the weight of an occupant of the vehicle, the bending state of the lane, and the shaking of the vehicle.

또한, 본 발명은 상기 기준 위치를 중심으로 완전 침범 구간, 일시 침범 구간 및 정상 구간을 설정함으로써, 보다 정확한 주행 상태를 판단할 수 있을 뿐만 아니라, 운전자의 운전 습관도 분석할 수 있다.In addition, according to the present invention, by setting the complete invasion section, the temporary invasion section, and the normal section based on the reference position, it is possible to not only determine a more accurate driving state but also analyze the driver's driving habits.

상술한 효과와 더불어 본 발명의 구체적인 효과는 이하 발명을 실시하기 위한 구체적인 사항을 설명하면서 함께 기술한다.In addition to the above-described effects, the specific effects of the present invention will be described together while describing specific details for carrying out the invention below.

도 1a는 본 발명의 일 실시 예에 따른 중앙 차선이 점선인 경우를 나타낸 예시도이다.
도 1b는 본 발명의 일 실시 예에 따른 중앙 차선이 실선인 경우를 나타낸 예시도이다.
도 1a는 본 발명의 일 실시 예에 따른 중앙 차선이 복선인 경우를 나타낸 예시도이다.
도 2는 본 발명의 일 실시 예에 따른 차량의 주행 상태를 판단하는 장치의 블록도이다.
도 3은 본 발명의 일 실시 예에 따른 차량의 주행 상태를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정하는 방법을 나타낸 순서도이다.
도 4는 본 발명의 일 실시 예에 따른 차로에 대한 실질적인 도로 좌표와 도로가 카메라로 투영된 영상에서의 차로의 좌표의 관계를 나타낸 예시도이다.
도 5a는 본 발명의 일 실시 예에 따른 차량이 차로의 정 중앙으로 주행하는 예시도이다.
도 5b는 도 5a에서의 소실점을 나타낸 예시도이다.
도 6a는 본 발명의 일 실시 예에 따른 차량이 좌측 차선을 닿은 채 주행하는 예시도이다.
도 6b는 도 6a에서의 소실점을 나타낸 예시도이다.
도 7a는 본 발명의 일 실시 예에 따른 차량이 우측 차선을 닿은 채 주행하는 예시도이다.
도 7b는 도 7a에서의 소실점을 나타낸 예시도이다.
도 8a는 본 발명의 일 실시 예에 따른 차량이 좌측 차선을 넘은 채 주행하는 예시도이다.
도 8b는 도 8a에서의 소실점을 나타낸 예시도이다.
도 9는 본 발명의 일 실시 예에 따른 차량의 차선 이탈 여부를 판단하기 위해 주행 영상에 설정된 적어도 하나의 구간을 나타낸 예시도이다.
도 10은 본 발명의 일 실시 예에 따른 차량의 차선 이탈 여부를 판단하여 주행 영상을 저장 및 전송하는 과정을 나타낸 순서도이다.
도 11은 본 발명의 일 실시 예에 따른 차로내 정상 주행을 나타낸 예시도이다.
도 12a는 본 발명의 일 실시 예에 따른 좌측 차선을 일시 침범하여 주행하는 예시도이다.
도 12b는 본 발명의 일 실시 예에 따른 우측 차선을 일시 침범하여 주행하는 예시도이다.
도 13a는 본 발명의 일 실시 예에 따른 좌측 차선을 완전 침범하여 주행하는 예시도이다.
도 13b는 본 발명의 일 실시 예에 따른 우측 차선을 완전 침범하여 주행하는 예시도이다.
도 14a는 본 발명의 일 실시 예에 따른 좌측 차선을 일시 침범하여 비정상 주행하는 예시도이다.
도 14b는 본 발명의 일 실시 예에 따른 우측 차선을 일시 침범하여 비정상 주행하는 예시도이다.
도 15a는 본 발명의 일 실시 예에 따른 좌측 차선을 완전 침범하여 비정상 주행하는 예시도이다.
도 15b는 본 발명의 일 실시 예에 따른 우측 차선을 일시 침범하여 비정상 주행하는 예시도이다.
도 16은 본 발명의 일 실시 예에 따른 차량이 좌측 차선으로 변경할 경우의 GPS 진행 방향의 변화를 나타낸 예시도이다.
도 17은 본 발명의 일 실시 예에 따른 차량이 유턴하는 경우의 GPS 진행 방향의 변화를 나타낸 예시도이다.
도 18은 본 발명의 일 실시 예에 따른 GPRMC 메시지의 포맷과 각 필드의 정의를 나타낸 예시도이다.
도 19는 본 발명의 일 실시 예에 따른 차량의 회전을 식별하는 예시도이다.
도 20은 본 발명의 일 실시 예에 따른 차량이 좌측 차선을 변경할 경우의 요율 변화를 나타낸 예시도이다.
도 21은 본 발명의 일 실시 예에 따른 차량이 유턴할 경우의 요율 변화를 나타낸 예시도이다.
도 22는 본 발명의 일 실시 예에 따른 차량의 중앙 차선 침범을 식별하는 과정을 나타낸 순서도이다.
도 23은 본 발명의 일 실시 예에 따른 차량의 중앙 차선 침범을 식별하는 과정을 나타낸 예시도이다.
도 24는 본 발명의 일 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 순서도이다.
도 25는 본 발명의 일 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 예시도이다.
도 26은 본 발명의 다른 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 순서도이다.
도 27은 본 발명의 다른 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 예시도이다.
도 28은 본 발명의 또 다른 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 순서도이다.
도 29는 본 발명의 또 다른 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 예시도이다.
도 30은 본 발명의 일 실시 예에 따른 차량이 금지 구간에서 유턴하는 것을 식별하는 과정을 나타낸 순서도이다.
도 31a 및 도 31b는 본 발명의 일 실시 예에 따른 차량이 금지 구간에서 유턴하는 과정을 나타낸 예시도이다.
도 32는 본 발명의 다른 실시 예에 따른 차량이 금지 구간에서 유턴하는 것을 식별하는 과정을 나타낸 순서도이다.
도 33은 본 발명의 다른 실시 예에 따른 차량이 금지 구간에서 유턴하는 과정을 나타낸 예시도이다.
1A is an exemplary diagram illustrating a case in which a center lane is a dotted line according to an embodiment of the present invention.
1B is an exemplary view illustrating a case in which a center lane is a solid line according to an embodiment of the present invention.
1A is an exemplary diagram illustrating a case in which a center lane is a double track according to an embodiment of the present invention.
2 is a block diagram of an apparatus for determining a driving state of a vehicle according to an embodiment of the present invention.
3 is a flowchart illustrating a method of setting at least one section for determining a driving state of a vehicle in a driving image according to an embodiment of the present invention.
4 is an exemplary diagram illustrating a relationship between actual road coordinates for a lane and coordinates of a lane in an image of a road projected by a camera according to an embodiment of the present invention.
5A is an exemplary view in which a vehicle travels in the center of a lane according to an embodiment of the present invention.
5B is an exemplary diagram illustrating a vanishing point in FIG. 5A .
6A is an exemplary view in which a vehicle travels while touching a left lane according to an embodiment of the present invention.
FIG. 6B is an exemplary view illustrating a vanishing point in FIG. 6A .
7A is an exemplary view in which a vehicle travels while touching a right lane according to an embodiment of the present invention.
7B is an exemplary view showing the vanishing point in FIG. 7A.
8A is an exemplary view in which a vehicle travels while crossing a left lane according to an embodiment of the present invention.
8B is an exemplary diagram illustrating a vanishing point in FIG. 8A .
9 is an exemplary view illustrating at least one section set in a driving image to determine whether a vehicle departs from a lane according to an embodiment of the present invention.
10 is a flowchart illustrating a process of storing and transmitting a driving image by determining whether a vehicle departs from a lane according to an embodiment of the present invention.
11 is an exemplary view illustrating normal driving in a lane according to an embodiment of the present invention.
12A is an exemplary diagram of driving while temporarily infiltrating a left lane according to an embodiment of the present invention.
12B is an exemplary diagram of driving while temporarily infiltrating a right lane according to an embodiment of the present invention.
13A is an exemplary view of driving while completely encroaching on the left lane according to an embodiment of the present invention.
13B is an exemplary view of driving while completely encroaching on the right lane according to an embodiment of the present invention.
14A is an exemplary diagram illustrating abnormal driving by temporarily infiltrating a left lane according to an embodiment of the present invention.
14B is an exemplary diagram illustrating abnormal driving by temporarily infiltrating a right lane according to an embodiment of the present invention.
15A is an exemplary diagram illustrating abnormal driving by completely encroaching on the left lane according to an embodiment of the present invention.
15B is an exemplary diagram illustrating abnormal driving by temporarily infiltrating a right lane according to an embodiment of the present invention.
16 is an exemplary diagram illustrating a change in a GPS travel direction when a vehicle changes to a left lane according to an embodiment of the present invention.
17 is an exemplary diagram illustrating a change in a GPS traveling direction when a vehicle makes a U-turn according to an embodiment of the present invention.
18 is an exemplary diagram illustrating a format of a GPRMC message and definitions of each field according to an embodiment of the present invention.
19 is an exemplary view for identifying the rotation of a vehicle according to an embodiment of the present invention.
20 is an exemplary diagram illustrating a rate change when a vehicle changes a left lane according to an embodiment of the present invention.
21 is an exemplary diagram illustrating a rate change when the vehicle makes a U-turn according to an embodiment of the present invention.
22 is a flowchart illustrating a process of identifying a vehicle intrusion into a center lane according to an embodiment of the present invention.
23 is an exemplary diagram illustrating a process of identifying a vehicle intrusion into a center lane according to an embodiment of the present invention.
24 is a flowchart illustrating a process of identifying driving in an opposite lane of a vehicle according to an embodiment of the present invention.
25 is an exemplary diagram illustrating a process of identifying driving in an opposite lane of a vehicle according to an embodiment of the present invention.
26 is a flowchart illustrating a process of identifying driving in an opposite lane of a vehicle according to another embodiment of the present invention.
27 is an exemplary diagram illustrating a process of identifying driving in an opposite lane of a vehicle according to another embodiment of the present invention.
28 is a flowchart illustrating a process of identifying driving in an opposite lane of a vehicle according to another embodiment of the present invention.
29 is an exemplary diagram illustrating a process of identifying driving in an opposite lane of a vehicle according to another embodiment of the present invention.
30 is a flowchart illustrating a process of identifying that a vehicle makes a U-turn in a prohibited section according to an embodiment of the present invention.
31A and 31B are exemplary views illustrating a process in which a vehicle makes a U-turn in a prohibited section according to an embodiment of the present invention.
32 is a flowchart illustrating a process of identifying that a vehicle makes a U-turn in a prohibited section according to another embodiment of the present invention.
33 is an exemplary diagram illustrating a process in which a vehicle makes a U-turn in a prohibited section according to another embodiment of the present invention.

전술한 목적, 특징 및 장점은 첨부된 도면을 참조하여 상세하게 후술되며, 이에 따라 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 것이다. 본 발명을 설명함에 있어서 본 발명과 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 상세한 설명을 생략한다. 이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시 예를 상세히 설명하기로 한다. 도면에서 동일한 참조부호는 동일 또는 유사한 구성요소를 가리키는 것으로 사용된다.The above-described objects, features and advantages will be described below in detail with reference to the accompanying drawings, and accordingly, those of ordinary skill in the art to which the present invention pertains will be able to easily implement the technical idea of the present invention. In describing the present invention, if it is determined that a detailed description of a known technology related to the present invention may unnecessarily obscure the gist of the present invention, the detailed description will be omitted. Hereinafter, preferred embodiments according to the present invention will be described in detail with reference to the accompanying drawings. In the drawings, the same reference numerals are used to indicate the same or similar components.

비록 제1, 제2 등이 다양한 구성요소들을 서술하기 위해서 사용되나, 이들 구성요소들은 이들 용어에 의해 제한되지 않음은 물론이다. 이들 용어들은 단지 하나의 구성요소를 다른 구성요소와 구별하기 위하여 사용하는 것으로, 특별히 반대되는 기재가 없는 한, 제1 구성요소는 제2 구성요소일 수도 있음은 물론이다.Although the first, second, etc. are used to describe various elements, these elements are not limited by these terms, of course. These terms are only used to distinguish one component from other components, and unless otherwise stated, it goes without saying that the first component may be the second component.

이하에서 구성요소의 "상부 (또는 하부)" 또는 구성요소의 "상 (또는 하)"에 임의의 구성이 배치된다는 것은, 임의의 구성이 상기 구성요소의 상면 (또는 하면)에 접하여 배치되는 것뿐만 아니라, 상기 구성요소와 상기 구성요소 상에 (또는 하에) 배치된 임의의 구성 사이에 다른 구성이 개재될 수 있음을 의미할 수 있다. In the following, that an arbitrary component is disposed on the "upper (or lower)" of a component or "upper (or below)" of a component means that any component is disposed in contact with the upper surface (or lower surface) of the component. Furthermore, it may mean that other components may be interposed between the component and any component disposed on (or under) the component.

또한 어떤 구성요소가 다른 구성요소에 "연결", "결합" 또는 "접속"된다고 기재된 경우, 상기 구성요소들은 서로 직접적으로 연결되거나 또는 접속될 수 있지만, 각 구성요소 사이에 다른 구성요소가 "개재"되거나, 각 구성요소가 다른 구성요소를 통해 "연결", "결합" 또는 "접속"될 수도 있는 것으로 이해되어야 할 것이다. In addition, when it is described that a component is “connected”, “coupled” or “connected” to another component, the components may be directly connected or connected to each other, but other components are “interposed” between each component. It should be understood that “or, each component may be “connected,” “coupled,” or “connected,” through another component.

명세서 전체에서, 특별히 반대되는 기재가 없는 한, 각 구성요소는 단수일수도 있고 복수일 수도 있다.Throughout the specification, unless otherwise stated, each element may be singular or plural.

본 명세서에서 사용되는 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "구성된다" 또는 "포함한다" 등의 용어는 명세서 상에 기재된 여러 구성 요소들, 또는 여러 단계들을 반드시 모두 포함하는 것으로 해석되지 않아야 하며, 그 중 일부 구성 요소들 또는 일부 단계들은 포함되지 않을 수도 있고, 또는 추가적인 구성 요소 또는 단계들을 더 포함할 수 있는 것으로 해석되어야 한다.As used herein, the singular expression includes the plural expression unless the context clearly dictates otherwise. In the present application, terms such as “consisting of” or “comprising” should not be construed as necessarily including all of the various components or various steps described in the specification, some of which components or some steps are It should be construed that it may not include, or may further include additional components or steps.

명세서 전체에서, "A 및/또는 B" 라고 할 때, 이는 특별한 반대되는 기재가 없는 한, A, B 또는 A 및 B 를 의미하며, "C 내지 D" 라고 할 때, 이는 특별한 반대되는 기재가 없는 한, C 이상이고 D 이하인 것을 의미한다Throughout the specification, when “A and/or B” is used, it means A, B or A and B, unless otherwise stated, and when “C to D” is used, it means that there is no specific opposite description. Unless otherwise specified, it means that it is greater than or equal to C and less than or equal to D.

이하에서는, 본 발명의 몇몇 실시 예에 따른 차량의 주행 상태를 판단하는 장치 및 방법을 설명하도록 한다.Hereinafter, an apparatus and method for determining a driving state of a vehicle according to some embodiments of the present invention will be described.

도 1a는 본 발명의 일 실시 예에 따른 중앙 차선이 점선인 경우를 나타낸 예시도이다. 도 1b는 본 발명의 일 실시 예에 따른 중앙 차선이 실선인 경우를 나타낸 예시도이다. 도 1a는 본 발명의 일 실시 예에 따른 중앙 차선이 복선인 경우를 나타낸 예시도이다.1A is an exemplary diagram illustrating a case in which a center lane is a dotted line according to an embodiment of the present invention. 1B is an exemplary view illustrating a case in which a center lane is a solid line according to an embodiment of the present invention. 1A is an exemplary diagram illustrating a case in which a center lane is a double track according to an embodiment of the present invention.

일반적으로 차량이 우측으로 주행하거나 또는 좌측으로 주행하는 것은 국가마다 다르다. 본 명세서에서는 차량이 우측으로 주행하는 경우에 대해 기술하지만, 좌측으로 주행하는 경우에도 적용될 수 있다.In general, whether vehicles drive to the right or to the left differs from country to country. In this specification, a case in which the vehicle travels to the right is described, but it may also be applied to a case in which the vehicle travels to the left.

도 1a를 참조하면, 차량(101)은 우측으로 주행(110)할 수 있다. 그리고, 주행 방향과 역 방향을 구분하는 중앙 차선(111)은 홑선의 황색 점선일 수 있다. 중앙 차선(111)이 홑선의 황색 점선인 경우는 도로가 편도 1차로인 경우에 해당될 수 있으며, 차선 침범을 일시적으로 허용하는 것을 의미한다. 이와 같이, 차량(101)이 우측 도로로 주행하는 경우, 중앙 차선(111)은 차량(101)의 좌측에 위치하게 된다.Referring to FIG. 1A , the vehicle 101 may drive 110 to the right. In addition, the center lane 111 that separates the driving direction and the reverse direction may be a single yellow dotted line. A case in which the center lane 111 is a single yellow dotted line may correspond to a case in which the road is a one-lane one-way road, which means that lane intrusion is temporarily permitted. As such, when the vehicle 101 travels on the right road, the center lane 111 is located on the left side of the vehicle 101 .

도 1b를 참조하면, 차량(101)은 우측으로 주행(120)할 수 있다. 그리고, 주행 방향과 역 방향을 구분하는 중앙 차선(121)은 홑선의 황색 실선일 수 있다. 중앙 차선(121)이 홑선의 황색 실선인 경우는 차선 침범을 금지하는 것을 의미한다. 이와 같이, 차량(101)이 우측 도로로 주행하는 경우, 중앙 차선(121)은 차량(101)의 좌측에 위치하게 된다.Referring to FIG. 1B , the vehicle 101 may drive 120 to the right. In addition, the center lane 121 that separates the driving direction and the reverse direction may be a single yellow solid line. When the center lane 121 is a solid yellow line of a single lane, it means that the lane intrusion is prohibited. As such, when the vehicle 101 travels on the right road, the center lane 121 is located on the left side of the vehicle 101 .

도 1c를 참조하면, 차량(101)은 우측으로 주행(130)할 수 있다. 그리고, 주행 방향과 역 방향을 구분하는 중앙 차선(131)은 복선의 황색 실선일 수 있다. 중앙 차선(121)이 복선의 황색 실선인 경우는 차선 침범을 절대적으로 금지하는 것을 의미한다. 이와 같이, 차량(101)이 우측 도로로 주행하는 경우, 중앙 차선(121)은 차량(101)의 좌측에 위치하게 된다.Referring to FIG. 1C , the vehicle 101 may drive 130 to the right. In addition, the center lane 131 that separates the driving direction and the reverse direction may be a double-track yellow solid line. When the center lane 121 is a solid yellow line of a double-track, it means that the intrusion of the lane is absolutely prohibited. As such, when the vehicle 101 travels on the right road, the center lane 121 is located on the left side of the vehicle 101 .

차로를 주행중인 차량(101)은 운전자의 운전 미숙 또는 주변 상황에 따라 중앙 차선(131)의 내측 기준선(132)을 맞닿은 채로 주행되거나, 또는 상기 중앙 차선(131)를 침범하여 주행될 수 있다. 본 발명은 이와 같이 차량이 중앙 차선을 맞닿은 채로 주행되거나 중앙 차선(131)을 침범하는 것을 자동으로 식별할 수 있도록 하기 위해, 차량 기준의 도로 좌표 정보와 차선 정보에 기반하여 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정하는 것이다.The vehicle 101 traveling in the lane may be driven while contacting the inner reference line 132 of the center lane 131 or may be driven by invading the center lane 131 depending on the driver's inexperienced driving or surrounding circumstances. The present invention is such that, in order to automatically identify whether the vehicle is driven in contact with the center lane or invades the center lane 131, it is determined whether the vehicle departs from the lane based on the vehicle standard road coordinate information and lane information. to set at least one section for the driving image.

이하에서는 차량에 장착된 카메라에서 획득된 영상의 차선 정보에 기반하여 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정하는 구체적인 기술을 설명한다.Hereinafter, a specific technique for setting at least one section for determining whether to depart a lane based on lane information of an image obtained from a camera mounted on a vehicle in a driving image will be described.

도 2는 본 발명의 일 실시 예에 따른 차량의 주행 상태를 판단하는 장치의 블록도이다.2 is a block diagram of an apparatus for determining a driving state of a vehicle according to an embodiment of the present invention.

도 2를 참조하면, 본 발명의 일 실시 예에 따른 차량의 주행 상태를 판단하는 장치(200)는 카메라(210), 센서부(220), 통신부(230), 저장부(240), 표시부(250), 및 프로세서(260)를 포함할 수 있다.Referring to FIG. 2 , an apparatus 200 for determining a driving state of a vehicle according to an embodiment of the present invention includes a camera 210 , a sensor unit 220 , a communication unit 230 , a storage unit 240 , and a display unit ( 250 ), and a processor 260 .

도 2에 도시된 차량의 주행 상태를 판단하는 장치(200)의 구성은 일 실시 예에 따른 것이고, 차량의 주행 상태를 판단하는 장치(200)의 구성 요소들이 도 2에 도시된 실시 예에 한정되는 것은 아니며, 필요에 따라 일부 구성 요소가 부가, 변경 또는 삭제될 수 있다.The configuration of the device 200 for determining the driving state of the vehicle shown in FIG. 2 is according to an embodiment, and the components of the device 200 for determining the driving state of the vehicle are limited to the embodiment shown in FIG. 2 . Not necessarily, and some components may be added, changed, or deleted as necessary.

일 실시 예에 따르면, 상기 카메라(210)는 적어도 하나의 이미지 센서를 포함할 수 있다. 상기 카메라(210)는 주행중인 차량(101)의 전방 또는 후방에 대한 이미지를 획득할 수 있다. 상기 카메라부(250)는 인공지능 칩이 내장된 영상 지능 카메라(또는 스마트 영상 지능 카메라)를 포함할 수 있다. 이러한 영상 지능 카메라를 통해 차량(101)의 전방 또는 후방의 사물, 사람, 차선, 횡단 보도, 교차로 등을 인식할 수 있다. According to an embodiment, the camera 210 may include at least one image sensor. The camera 210 may acquire an image of the front or rear of the vehicle 101 being driven. The camera unit 250 may include an image intelligence camera (or smart image intelligence camera) with an embedded artificial intelligence chip. Objects, people, lanes, crosswalks, intersections, etc. in front or behind the vehicle 101 can be recognized through the image intelligence camera.

일 실시 예에 따르면, 상기 카메라(210)는 조명에 의한 조도가 높은 상황에서도 차량(101)의 전방 또는 후방에 대한 이미지를 획득할 수 있는 카메라(예: RGB(Red Green Blue) 카메라)), 조도가 낮은 상황에서 이미지를 획득할 수 있는 IR(infrared) 카메라를 포함할 수 있다. 상기 카메라(210)는 이미지를 획득하는데 필요한 조명을 발광하는 소자(예: LED, IR 패턴 조명)를 포함할 수 있다. 상기 카메라(210)는 상기 장치(200)에 포함되거나, 또는 상기 장치(200)와 분리될 수 있다. 예를 들면, 상기 카메라(210)가 상기 장치(200)와 분리되는 경우, 유선 또는 무선을 통해 상기 카메라(210)와 상기 장치(200)는 이미지, 영상 또는 데이터를 송수신할 수 있다.According to an embodiment, the camera 210 is a camera capable of acquiring an image of the front or rear of the vehicle 101 even in a situation in which illumination is high due to lighting (eg, a Red Green Blue (RGB) camera); It may include an IR (infrared) camera capable of acquiring an image in a low-illuminance situation. The camera 210 may include a device (eg, LED, IR pattern lighting) that emits light necessary to acquire an image. The camera 210 may be included in the device 200 or may be separated from the device 200 . For example, when the camera 210 is separated from the device 200 , the camera 210 and the device 200 may transmit/receive images, images, or data via wired or wireless.

일 실시 예에 따르면, 상기 센서부(220)는 GPS(Global Positioning System) 신호에 기반하여 차량(101)의 주행 방향, 차로 변경, 유턴 등을 감지하는 GPS 센서(미도시), 상기 차량(101)의 좌측 또는 우측으로의 회전(예: X축 방향), 및 회전 변화량을 감지하는 롤(Roll) 센서, 상기 차량(101)의 전방 또는 후방으로의 의 흔들림(예: Y축 방향) 및 흔들림의 변화량을 감지하는 피치(Pitch) 센서, 및 상기 차량(101)의 좌우로의 회전(예: Z축 방향) 및 회전 변화량을 감지하는 요(Yaw) 센서(미도시) 중 적어도 하나를 포함할 수 있다. 상기 센서부(220)는, 예를 들면, GPS로부터 획득된 차량의 진행 방향의 변화에 대한 정보, 및 요(Yaw) 센서로부터 획득된 차량의 회전각에 대한 정보를 프로세서(260)로 전달할 수 있다.According to an embodiment, the sensor unit 220 includes a GPS sensor (not shown) that detects a driving direction, lane change, U-turn, etc. of the vehicle 101 based on a Global Positioning System (GPS) signal, and the vehicle 101 . ) to the left or right (eg, in the X-axis direction), and a roll sensor that detects the amount of rotation change, forward or backward of the vehicle 101 (eg, in the Y-axis direction) and shake At least one of a pitch sensor that detects a change in can The sensor unit 220 may, for example, transmit information about a change in the traveling direction of the vehicle obtained from GPS and information about a rotation angle of the vehicle obtained from a yaw sensor to the processor 260 . there is.

일 실시 예에 따르면, 상기 센서부(220)는 차량(101)에 접근하는 보행자의 거리, 보행자의 움직임, 또는 차량(101) 주변의 밝기 등을 감지할 수 있는 적어도 하나의 센서를 포함할 수 있다. 예를 들면, 상기 센서부(270)는 거리 측정 센서(미도시), 움직임 감지 센서(미도시), 및 조도 센서(미도시)를 포함할 수 있다.According to an embodiment, the sensor unit 220 may include at least one sensor capable of detecting a distance of a pedestrian approaching the vehicle 101 , a movement of a pedestrian, or brightness around the vehicle 101 . there is. For example, the sensor unit 270 may include a distance measuring sensor (not shown), a motion detection sensor (not shown), and an illuminance sensor (not shown).

일 실시 예에 따르면, 상기 통신부(230)는 차량의 주행 상태를 판단하는 장치(200)에 포함된 적어도 하나의 구성 요소(예: 카메라(210), 센서부(220), 저장부(240), 표시부(250), 및 프로세서(260))와 유선 통신 또는 무선 통신을 통해 적어도 하나의 신호 또는 정보를 송수신할 수 있는 적어도 하나의 회로를 포함할 수 있다.According to an embodiment, the communication unit 230 includes at least one component (eg, a camera 210 , a sensor unit 220 , and a storage unit 240 ) included in the device 200 for determining the driving state of the vehicle. , the display unit 250 , and the processor 260) and at least one circuit capable of transmitting and receiving at least one signal or information through wired communication or wireless communication.

일 실시 예에 따르면, 상기 통신부(230)는 외부 전자 장치(미도시)(예: 차량 주행 정보를 수집하는 서버)로 무선 통신을 통해 적어도 하나의 신호 또는 정보를 송수신할 수 있는 적어도 하나의 회로를 포함할 수 있다. 예를 들면, 상기 통신부(230)는 상기 프로세서(260)의 제어 하에, 상기 저장부(240)에 저장된 상기 차량(101)의 주행에 관련한 사진, 동영상, 데이터를 상기 외부 전자 장치(미도시)(예: 차량 주행 정보를 수집하는 서버)로 무선 통신을 통해 송신할 수 있다.According to an embodiment, the communication unit 230 is at least one circuit capable of transmitting and receiving at least one signal or information through wireless communication to an external electronic device (not shown) (eg, a server for collecting vehicle driving information). may include For example, the communication unit 230 transmits, under the control of the processor 260 , photos, videos, and data related to driving of the vehicle 101 stored in the storage unit 240 to the external electronic device (not shown). It can be transmitted through wireless communication to (eg, a server that collects vehicle driving information).

일 실시 예에 따르면, 상기 저장부(240)는 휘발성 메모리 또는 비휘발성 메모리를 포함할 수 있다. 예를 들면, 상기 저장부(240)는 차량(101)의 주행 상태를 판단하는 장치(200)의 동작에 필요한 정보, 데이터, 프로그램 등이 저장될 수 있다. 이에 따라, 상기 프로세서(260)는 저장부(240)에 저장된 정보를 참조하여 후술하는 제어 동작을 수행할 수 있다. 상기 저장부(240)는 다양한 플랫폼(platform)을 저장할 수도 있다. 상기 저장부(240)는, 예를 들어 플래시 메모리 타입(flash memory type), 하드디스크 타입(hard disk type), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 램(RAM), 롬(EEPROM 등), USB 메모리 중 적어도 하나의 타입의 저장매체를 포함할 수 있다.According to an embodiment, the storage unit 240 may include a volatile memory or a non-volatile memory. For example, the storage unit 240 may store information, data, and programs necessary for the operation of the device 200 for determining the driving state of the vehicle 101 . Accordingly, the processor 260 may perform a control operation to be described later with reference to the information stored in the storage unit 240 . The storage unit 240 may store various platforms. The storage unit 240 is, for example, a flash memory type, a hard disk type, a multimedia card micro type, a card type memory (eg, SD or XD memory, etc.), RAM (RAM), ROM (EEPROM, etc.), and may include at least one type of storage medium among USB memory.

일 실시 예에 따르면, 상기 저장부(240)는 상기 차량(101)의 주행 상태를 판단하는 장치(200)의 적어도 하나의 구성요소(예: 카메라(210), 센서부(220), 통신부(230), 표시부(250), 및 프로세서(260))에 의해 획득되거나 또는 사용되는 다양한 데이터(예: 소프트웨어, 어플리케이션, 획득된 정보, 측정된 정보, 제어 신호 등), 및 이와 관련된 명령어들을 저장할 수 있다. 예를 들면, 상기 저장부(240)는 상기 카메라(210)를 통해 획득한 상기 차량(101)의 주행 상태에 관한 사진, 동영상, 데이터를 저장할 수 있다. 또한, 상기 저장부(240)는 상기 센서부(220)에 포함된 적어도 하나의 센서에 의해 획득된 데이터, 정보, 또는 신호를 저장할 수 있다.According to an embodiment, the storage unit 240 includes at least one component (eg, a camera 210 , a sensor unit 220 , and a communication unit 200 ) of the device 200 for determining the driving state of the vehicle 101 . 230), the display unit 250, and the processor 260) may store various data acquired or used (eg, software, applications, acquired information, measured information, control signals, etc.), and instructions related thereto. there is. For example, the storage unit 240 may store photos, videos, and data regarding the driving state of the vehicle 101 acquired through the camera 210 . Also, the storage unit 240 may store data, information, or signals acquired by at least one sensor included in the sensor unit 220 .

일 실시 예에 따르면, 상기 표시부(250)는 각종 정보(예: 멀티미디어 데이터 또는 텍스트 데이터 등)을 표시할 수 있다. 상기 표시부(250)는 상기 프로세서(260)에 의해 처리된, 처리중, 또는 처리될 결과를 표시할 수 있다. 상기 표시부(260)는 상기 카메라(210)를 통해 획득한 사진, 동영상, 또는 데이터를 상기 프로세서(260)의 제어 하에, 시각적으로 표시할 수 있고, 이러한 다양한 정보를 표시하는 제어 회로를 포함할 수 있다. 예를 들면, 상기 표시부(260)는 상기 카메라(210)를 통해 획득한 상기 차량(101)의 주행에 관련한 동영상을 실시간으로 표시할 수 있다. According to an embodiment, the display unit 250 may display various types of information (eg, multimedia data or text data). The display unit 250 may display a result processed, in process, or to be processed by the processor 260 . The display unit 260 may visually display photos, videos, or data acquired through the camera 210 under the control of the processor 260, and may include a control circuit for displaying such various information. there is. For example, the display unit 260 may display a moving picture related to the driving of the vehicle 101 acquired through the camera 210 in real time.

일 실시 예에 따르면, 상기 표시부(230)는 차량의 주행 상태를 판단하는 장치에 대한 동작 상태, 통신 상태, GPS 수신 상태 등을 표시할 수 있다. According to an embodiment, the display unit 230 may display an operation state, a communication state, a GPS reception state, and the like of a device for determining the driving state of the vehicle.

일 실시 예에 따르면, 상기 표시부(230)는 터치를 감지하는 터치 회로(touch circuitry), 또는 터치에 대한 압력의 세기를 측정할 수 있는 압력 센서를 포함할 수 있다.According to an embodiment, the display unit 230 may include a touch circuitry for sensing a touch or a pressure sensor capable of measuring the intensity of the pressure applied to the touch.

일 실시 예에 따르면, 상기 프로세서(260)는 소프트웨어를 구동하여 상기 프로세서(260)에 연결된 적어도 하나의 구성요소(예: 카메라(210), 센서부(220), 통신부(230), 저장부(240), 및 표시부(250))를 유선 통신 또는 무선 통신에 기반하여 제어할 수 있다. 그리고, 상기 프로세서(260)는 상기 유선 통신 또는 상기 무선 통신에 기반하여 다양한 데이터 처리 및 연산을 수행할 수 있다.According to an embodiment, the processor 260 drives software to operate at least one component connected to the processor 260 (eg, a camera 210, a sensor unit 220, a communication unit 230, a storage unit ( 240), and the display unit 250) may be controlled based on wired communication or wireless communication. In addition, the processor 260 may perform various data processing and operations based on the wired communication or the wireless communication.

일 실시 예에 따르면, 상기 프로세서(260)는 카메라(210), 센서부(220), 통신부(230), 저장부(240), 및 표시부(250)등으로부터 수신된 명령 또는 데이터를 상기 저장부(240)에 로드하여 처리하고, 처리된 데이터를 저장부(240)에 저장할 수 있다. 또는, 상기 프로세서(260)는 상기 처리된 데이터를 표시부(250)를 통해 표시하거나, 또는 스피커(미도시)를 통해 출력할 수 있다.According to an embodiment, the processor 260 stores commands or data received from the camera 210 , the sensor unit 220 , the communication unit 230 , the storage unit 240 , and the display unit 250 , etc. It may be loaded and processed in 240 , and the processed data may be stored in the storage unit 240 . Alternatively, the processor 260 may display the processed data through the display unit 250 or output it through a speaker (not shown).

일 실시 예에 따르면, 상기 프로세서(260)는 상기 카메라(210)를 통해 상기 차량(101)의 주행 상태에 관한 이미지, 또는 영상을 획득할 수 있다. 상기 프로세서(260)는 상기 차량(101)의 전방 및/또는 후방에 배치된 카메라(210)를 통해 상기 차량(101)이 주행하고 있는 도로에 대한 영상을 실시간으로 획득할 수 있다. 그리고, 상기 프로세서(260)는 상기 차량(101)이 주행하고 있는 도로에 대한 영상을 상기 표시부(250)를 통해 실시간으로 표시할 수 있다.According to an embodiment, the processor 260 may acquire an image or an image regarding the driving state of the vehicle 101 through the camera 210 . The processor 260 may acquire an image of a road on which the vehicle 101 is traveling in real time through a camera 210 disposed in front and/or rear of the vehicle 101 . In addition, the processor 260 may display an image of a road on which the vehicle 101 is traveling in real time through the display unit 250 .

일 실시 예에 따르면, 상기 프로세서(260)는 상기 차량(101) 기준의 도로 좌표 정보(예: 좌표 정보)를 획득할 수 있다. 상기 프로세서(260)는 상기 차량(101)이 주행중인 차로에 대한 실질 좌표(예: X, Y, Z)(또는 (X, 0, Z)), 도로가 카메라로 투영된 영상에서의 차로의 좌표(예: x, y), 상기 카메라(210)의 초점 거리, 및 상기 차로에서의 상기 카메라(210)의 장착 높이(h) 중 적어도 일부를 포함하는 좌표 정보를 획득할 수 있다. 상기 프로세서(260)는 상기 센서부(220) 및 상기 카메라(210)를 통해서 상기 차량(101) 기준의 도로 좌표 정보를 획득할 수 있다. According to an embodiment, the processor 260 may obtain road coordinate information (eg, coordinate information) based on the vehicle 101 . The processor 260 determines the actual coordinates (eg, X, Y, Z) (or (X, 0, Z)) of the lane on which the vehicle 101 is traveling, Coordinate information including at least a part of coordinates (eg, x, y), a focal length of the camera 210 , and a mounting height h of the camera 210 in the lane may be acquired. The processor 260 may obtain road coordinate information based on the vehicle 101 through the sensor unit 220 and the camera 210 .

일 실시 예에 따르면, 상기 프로세서(260)는 상기 차량(101)이 주행하는 도로의 차선에 대한 차선 정보를 획득할 수 있다. 상기 프로세서(260)는 상기 카메라(210)를 통해 획득된 주행 영상에서, 상기 차량(101)을 기준으로 좌측 차선의 제1 내측 기준선(예: 상기 차량(101)의 좌측에 가장 가까운 선), 우측 차선의 제2 내측 기준선(예: 상기 차량(101)의 우측에 가장 가까운 선), 상기 제1 내측 기준선과 상기 제2 내측 기준선이 맞닿은 소실점, 및 상기 제1 내측 기준선과 상기 제2 내측 기준선 간의 차선 폭, 상기 차선을 넘은 차폭 비율, 상기 소실점의 좌표, 및 상기 소실점의 좌우 마진 중 적어도 일부를 포함하는 차선 정보를 획득할 수 있다. 상기 프로세서(260)는 상기 센서부(220) 및 상기 카메라(210)를 통해서 상기 차량(101)이 주행하는 도로의 차선에 대한 차선 정보를 획득할 수 있다.According to an embodiment, the processor 260 may obtain lane information on a lane of a road on which the vehicle 101 travels. In the driving image obtained through the camera 210 , the processor 260 determines a first inner reference line of a left lane with respect to the vehicle 101 (eg, a line closest to the left side of the vehicle 101 ); A second inner reference line of the right lane (eg, the line closest to the right side of the vehicle 101 ), a vanishing point at which the first inner reference line and the second inner reference line meet, and the first inner reference line and the second inner reference line It is possible to obtain lane information including at least a portion of a lane width between the lanes, a ratio of a vehicle width crossing the lane, coordinates of the vanishing point, and a left and right margin of the vanishing point. The processor 260 may obtain lane information on a lane of a road on which the vehicle 101 travels through the sensor unit 220 and the camera 210 .

일 실시 예에 따르면, 상기 프로세서(260)는 상기 차량(101) 기준의 도로 좌표 정보 및 상기 차선 정보에 기반하여, 상기 차량(101)의 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 주행 영상(예: 좌표)에 설정할 수 있다. 상기 주행 영상에 설정된 적어도 하나의 구간은 표시부(250)에 표시되거나, 또는 표시되지 않을 수도 있다. 상기 프로세서(260)는 차선이 상기 설정된 구간 내에 존재하는지, 또는 존재하지 않는지에 따라 상기 차량(101)이 차선을 이탈했는지 또는 이탈하지 않았는지를 판단할 수 있다.According to an embodiment, the processor 260 performs at least one section for determining whether the vehicle 101 departs from a lane based on the road coordinate information of the vehicle 101 and the lane information as a driving image. (eg coordinates) can be set. At least one section set in the driving image may or may not be displayed on the display unit 250 . The processor 260 may determine whether or not the vehicle 101 deviated from the lane according to whether or not the lane exists within the set section.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 카메라(210)를 통해 획득된 주행 영상에서 상기 차량(101)의 좌측 차선과 우측 차선이 맞닿은 소실점을 식별할 수 있다. 일반적으로 차량(101)의 전면 방향(예: Z 방향)으로 멀리 있는 정보는 화면상의 한 점, 즉, 소실점(vanishing point)에 모이게 된다. 상기 프로세서(260)는 상기 소실점을 기준으로 화면 좌표를 주행 영상에 설정할 수 있다. 그리고, 상기 프로세서(260)는 상기 소실점의 좌우로 마진(또는 일정 간격)을 주행 영상에 설정할 수 있다.According to an embodiment, the processor 260 may identify a vanishing point where a left lane and a right lane of the vehicle 101 contact each other in the driving image acquired through the camera 210 . In general, information far away in the front direction (eg, Z direction) of the vehicle 101 is collected at a point on the screen, that is, a vanishing point. The processor 260 may set screen coordinates in the driving image based on the vanishing point. In addition, the processor 260 may set a margin (or a predetermined interval) to the left and right of the vanishing point in the driving image.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 차량(101)의 탑승자의 무게, 차선의 굴곡 상태, 및 상기 차량(10)의 흔들림을 식별하여 상기 마진을 결정할 수 있다.According to an embodiment, the processor 260 may determine the margin by identifying the weight of the occupant of the vehicle 101 , the curvature of the lane, and the shaking of the vehicle 10 .

일 실시 예에 따르면, 상기 프로세서(260)는 상기 카메라(210)를 통해 획득된 주행 영상(예: 상기 표시부(250) 상에 표시된 영상)의 하단에서의 상기 차량(101)의 폭(예: 상기 차량(101)의 폭)의 중간 지점(예: 상기 카메라(210)의 위치)을 기준 위치로 설정할 수 있다. 상기 프로세서(260)는 상기 기준 위치를 중심으로 좌우로 제1 일정 간격을 갖는 구간을 완전 침범 구간으로 설정할 수 있다. 상기 제1 일정 간격은, 상기 기준 위치를 중심으로 상기 차량(101)의 폭의 1/2에 해당되는 지점에서 상기 차량(101)의 폭과 차선을 침범한 상기 차량(101)의 폭에 대한 비율을 곱한 값을 차감한 간격일 수 있다. 상기 제1 일정 간격은 차량의 크기, 주행 방향, 높이, 폭에 따라 가변적으로 조절될 수 있다. 예를 들면, 차량(예: 차량의 왼쪽 바퀴)이 중앙 차선을 넘어 주행하는 경우, 이를 완전 침범이라 할 수 있다.According to an embodiment, the processor 260 is configured to configure the width (eg: A midpoint (eg, the position of the camera 210 ) of the vehicle 101 ) may be set as a reference position. The processor 260 may set a section having a first predetermined interval to the left and right with respect to the reference position as a complete invasion section. The first predetermined interval corresponds to the width of the vehicle 101 at a point corresponding to 1/2 of the width of the vehicle 101 with respect to the reference position and the width of the vehicle 101 that invades the lane. It may be an interval obtained by subtracting a value multiplied by a ratio. The first predetermined interval may be variably adjusted according to the size, driving direction, height, and width of the vehicle. For example, if a vehicle (eg, the vehicle's left wheel) travels beyond the center lane, this may be considered complete intrusion.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 제1 내측 기준선, 및 상기 제2 내측 기준선 각각과, 상기 획득된 주행 영상에서의 지평선과 만나는 지점을 제1 가로 방향 좌표로 설정할 수 있다. 상기 프로세서(260)는 상기 완전 침범 구간의 좌우로 제2 일정 간격을 갖는 구간을 일시 침범 구간으로 설정할 수 있다. 상기 제2 일정 간격은 상기 차량의 폭의 1/2에 해당되는 지점에서 상기 기준 위치 방향으로 상기 제1 일정 간격을 차감한 간격일 수 있다. 상기 제2 일정 간격은 차량의 크기, 주행 방향, 높이, 폭에 따라 가변적으로 조절될 수 있다. 예를 들면, 차량의 왼쪽 바퀴가 중앙 차선을 닿은 채 주행하는 경우, 이를 일시 침범이라 할 수 있다. 상기 완전 침범과 상기 일시 침범은 차량의 바퀴가 차선을 넘어 주행하는 정도의 차이에 따라 구분될 수 있다. According to an embodiment, the processor 260 may set a point where each of the first inner reference line and the second inner reference line meet a horizon in the obtained driving image as a first horizontal coordinate. The processor 260 may set a section having a second predetermined interval to the left and right of the complete invasion section as a temporary invasion section. The second predetermined interval may be an interval obtained by subtracting the first predetermined interval in the direction of the reference position from a point corresponding to 1/2 of the width of the vehicle. The second predetermined interval may be variably adjusted according to the size, driving direction, height, and width of the vehicle. For example, when the left wheel of the vehicle travels while touching the center lane, this may be referred to as a temporary intrusion. The complete encroachment and the temporary encroachment may be classified according to a difference in the degree to which the wheel of the vehicle travels over a lane.

예를 들면, 차량의 왼쪽 바퀴가 차선을 닿은 채 주행하는 것을 일시 침범이라 하고, 차량의 왼쪽 바퀴가 차선을 넘어서 주행하는 것을 완전 침범이라 할 수 있다. For example, driving with the left wheel of a vehicle in contact with a lane is referred to as temporary intrusion, and driving with the left wheel of the vehicle crossing the lane may be referred to as complete intrusion.

예를 들면, 상기 일시 침범과 상기 완전 침범은 차선의 내측 기준 선을 넘는 차량 바퀴의 비율에 의해 구분되며, 이러한 비율은 가변적으로 조절될 수 있다.For example, the temporary encroachment and the complete encroachment are distinguished by a ratio of vehicle wheels crossing an inner reference line of a lane, and this ratio may be variably adjusted.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 제1 내측 기준선 및 상기 제2 내측 기준선 각각과, 상기 획득된 주행 영상의 하단이 교차하는 지점을 제2 가로 방향 좌표로 설정할 수 있다. 상기 프로세서(260)는 상기 일시 침범 구간을 좌우로 벗어나는 구간을 정상 구간으로 설정할 수 있다.According to an embodiment, the processor 260 may set a point where each of the first inner reference line and the second inner reference line and the lower end of the obtained driving image intersect as the second horizontal coordinates. The processor 260 may set a section that deviates from the temporary intrusion section to the left and right as a normal section.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 설정된 적어도 하나의 구간에 기반하여 상기 차량의 차선 이탈 여부를 판단할 수 있다.According to an embodiment, the processor 260 may determine whether the vehicle departs from a lane based on the set at least one section.

일 실시 예에 따르면, 상기 프로세서(260)는 주행 영상에서 상기 차량을 기준으로 하는 좌측 차선의 제1 내측 기준선과 우측 차선의 제2 내측 기준선이 맞닿은 소실점을 식별하고, 상기 식별된 소실점의 좌우로 마진을 설정할 수 있다. 그리고, 상기 프로세서(260)는 상기 획득된 주행 영상의 하단에서의 차량의 폭의 중간 지점을 기준 위치로 설정할 수 있다.According to an embodiment, the processor 260 identifies a vanishing point where the first inner reference line of the left lane with respect to the vehicle and the second inner reference line of the right lane are in contact in the driving image, and to the left and right of the identified vanishing point. You can set margins. In addition, the processor 260 may set a midpoint of the width of the vehicle at the lower end of the obtained driving image as a reference position.

또한, 상기 프로세서(260)는 상기 제1 내측 기준선, 및 상기 제2 내측 기준선 각각과, 상기 획득된 주행 영상에서의 지평선과 만나는 지점을 제1 가로 방향 좌표로 설정할 수 있다.Also, the processor 260 may set a point where each of the first inner reference line and the second inner reference line meet a horizon in the obtained driving image as a first horizontal coordinate.

또한, 상기 프로세서(260)는 상기 제1 내측 기준선 및 상기 제2 내측 기준선 각각과, 상기 획득된 주행 영상의 하단이 교차하는 지점을 제2 가로 방향 좌표로 설정할 수 있다.Also, the processor 260 may set a point where each of the first inner reference line and the second inner reference line and the lower end of the obtained driving image intersect as second horizontal coordinates.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 기준 위치의 좌우로 일정 간격을 갖는 제1 구간을 완전 침범 구간으로 설정하고, 상기 완전 침범 구간의 좌우로 일정 간격을 갖는 제2 구간을 일시 침범 구간으로 설정할 수 있다. 또한, 상기 프로세서(260)는 상기 일시 침범 구간을 좌우로 벗어나는 제3 구간을 정상 구간으로 설정할 수 있다.According to an embodiment, the processor 260 sets a first section having a predetermined interval to the left and right of the reference position as a complete invasion section, and temporarily invades a second section having a predetermined interval to the left and right of the complete invasion section It can be set as a section. In addition, the processor 260 may set the third section that deviates from the temporary intrusion section to the left and right as the normal section.

일 실시 예에 따르면, 상기 프로세서(260)는 소실점이 상기 설정된 마진 내에 위치하고, 상기 설정된 제2 가로 방향 좌표의 왼쪽 좌표 또는 오른쪽 좌표가 상기 제1 구간에 존재하는 경우, 상기 차량이 상기 제1 내측 기준선, 또는 상기 제2 내측 기준선을 완전 침범한 것으로 판단할 수 있다.According to an embodiment, when the vanishing point is located within the set margin and the left or right coordinates of the set second horizontal coordinates exist in the first section, the processor 260 is configured to move the vehicle to the first inner side. It may be determined that the reference line or the second inner reference line is completely violated.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 소실점이 상기 설정된 마진 내에 위치하고, 상기 설정된 제2 가로 방향 좌표의 왼쪽 좌표 또는 오른쪽 좌표가 상기 제2 구간에 존재하는 경우, 상기 차량이 상기 제1 내측 기준선, 또는 상기 제2 내측 기준선을 일시 침범한 것으로 판단할 수 있다.According to an embodiment, when the vanishing point is located within the set margin and the left or right coordinates of the set second horizontal coordinates exist in the second section, the processor 260 is configured to control the vehicle in the first section. It may be determined that the inner reference line or the second inner reference line is temporarily violated.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 소실점이 상기 설정된 마진 내에 위치하고, 상기 설정된 제2 가로 방향 좌표의 왼쪽 좌표 또는 오른쪽 좌표가 상기 제3 구간에 존재하는 경우, 상기 차량이 정상 주행 중인 것으로 판단할 수 있다.According to an embodiment, when the vanishing point is located within the set margin and the set left or right coordinates of the second horizontal coordinates exist in the third section, the processor 260 determines that the vehicle is running normally. can be judged as

일 실시 예에 따르면, 상기 프로세서(260)는 상기 소실점이 상기 설정된 마진 내에 위치하지 않고, 상기 설정된 제2 가로 방향 좌표의 왼쪽 좌표 또는 오른쪽 좌표가 상기 제1 구간에 존재하는 경우, 상기 차량이 상기 제1 내측 기준선, 또는 상기 제2 내측 기준선을 완전 침범하여 비정상 주행하는 것으로 판단할 수 있다.According to an embodiment, when the vanishing point is not located within the set margin and the left coordinate or right coordinate of the set second horizontal coordinate exists in the first section, the processor 260 determines that the vehicle The first inner reference line or the second inner reference line may be completely violated and it may be determined that the vehicle is abnormally driven.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 소실점이 상기 설정된 마진 내에 위치하지 않고, 상기 설정된 제2 가로 방향 좌표의 왼쪽 좌표 또는 오른쪽 좌표가 상기 제2 구간에 존재하는 경우, 상기 차량이 상기 제1 내측 기준선, 또는 상기 제2 내측 기준선을 일시 침범하여 비정상 주행하는 것으로 판단할 수 있다.According to an embodiment, when the vanishing point is not located within the set margin and the left or right coordinates of the set second horizontal coordinates exist in the second section, the processor 260 determines that the vehicle The first inner reference line or the second inner reference line may be temporarily violated and it may be determined that the vehicle is driving abnormally.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 카메라(210)를 통해 차량의 주행 영상을 획득하고, 상기 획득된 주행 영상에 설정된 적어도 하나의 구간에 기반하여, 상기 차량이 주행중인 차로의 좌측 차선이 중앙 차선인지 또는 일반 차선(예: 차로를 구분 짓는 백색 선)인지를 판단할 수 있다.According to an embodiment, the processor 260 acquires a driving image of the vehicle through the camera 210, and based on at least one section set in the acquired driving image, the left side of the lane in which the vehicle is driving It can determine whether the lane is a center lane or a general lane (eg, a white line that separates lanes).

일 실시 예에 따르면, 상기 프로세서(260)는 상기 좌측 차선이 중앙 차선인 경우, 상기 차량이 차로내 정상 주행 중인 것으로 판단할 수 있다. 상기 정상 주행은 차량이 차로로 주행하고 있는 중에, 좌측 차선과 우측 차선의 소실점의 좌표가 마진 이내에 있고, 좌측 차선과 우측 차선(예: 제2 가로 방향 좌표의 왼쪽 좌표 또는 오른쪽 좌표)가 제3 구간에 존재하는 경우, 상기 차량이 정상 주행 중인 것으로 판단할 수 있다.According to an embodiment, when the left lane is the center lane, the processor 260 may determine that the vehicle is normally driving within the lane. In the normal driving, the coordinates of the vanishing points of the left and right lanes are within the margin while the vehicle is driving in the lane, and the left and right lanes (eg, the left coordinates or the right coordinates of the second horizontal coordinates) are the third When it exists in the section, it may be determined that the vehicle is driving normally.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 차량이 상기 좌측 차선에 대해 완전 침범 주행 중인지 식별하고, 상기 차량이 상기 완전 침범 주행 이후, 상기 차량의 우측 차선이 상기 중앙 차선인 것으로 식별되면, 상기 차량이 반대 차로로 주행하고 있는 것으로 판단할 수 있다. 상기 프로세서(260)는 상기 차량이 상기 좌측 차선을 완전히 침범한 후, 반대 차로로 주행하고 있는 상태에서 차량의 우측에 위치한 중앙 차선이 식별되면, 상기 차량은 현재 반대 차로로 주행하고 있는 것으로 식별할 수 있다. 이러한 경우는, 운전자가 고의로 중앙 차선을 넘는 경우일 수 있다.According to an embodiment, the processor 260 identifies whether the vehicle is driving completely encroaching on the left lane, and after the vehicle has completely encroached on the vehicle, when it is identified that the right lane of the vehicle is the center lane, It may be determined that the vehicle is traveling in the opposite lane. The processor 260 determines that the vehicle is currently traveling in the opposite lane when the center lane located on the right side of the vehicle is identified while the vehicle is driving in the opposite lane after the vehicle completely invades the left lane. can In this case, the driver may intentionally cross the center lane.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 카메라(210)를 통해 차량의 주행 영상을 획득하고, 상기 획득된 주행 영상에 설정된 적어도 하나의 구간에 기반하여, 상기 차량이 주행중인 차로의 양측 차선이 일반 차선인지를 판단할 수 있다. 예를 들면, 상기 양측 차선이 일반 차선인 경우, 상기 프로세서(260)는 상기 차량이 차로내 정상 주행 중인 것으로 판단할 수 있다.According to an embodiment, the processor 260 acquires a driving image of the vehicle through the camera 210, and based on at least one section set in the acquired driving image, both sides of the lane in which the vehicle is driving It can be determined whether the lane is a normal lane. For example, when the both lanes are normal lanes, the processor 260 may determine that the vehicle is driving normally in the lane.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 차량이 양측 차선 중 우측 차선에 대해 완전 침범 주행 중인지 식별하고, 상기 차량이 상기 완전 침범 주행 이후, 상기 차량의 우측 차선이 중앙 차선인 것으로 식별되면, 상기 차량이 반대 차로로 주행하고 있는 것으로 판단할 수 있다. 이러한 경우는, 운전자가 방향을 구분하지 못하여 중앙 차선을 넘는 경우일 수 있다.According to an embodiment, the processor 260 identifies whether the vehicle is driving completely encroaching on the right lane among both lanes, and after the vehicle is completely encroached on, the right lane of the vehicle is identified as the center lane. , it may be determined that the vehicle is traveling in the opposite lane. In this case, it may be a case in which the driver crosses the center lane due to inability to distinguish directions.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 카메라(210)를 통해 획득되는 주행 영상에서 차선이 인식되는지 또는 인식되지 않는지를 식별할 수 있다. 상기 프로세서(260)는 상기 차선이 인식되지 않는 것으로 판단된 이후, 상기 차량의 우측 차선이 중앙 차선으로 식별되는지 판단할 수 있다.According to an embodiment, the processor 260 may identify whether a lane is recognized or not recognized in the driving image obtained through the camera 210 . After determining that the lane is not recognized, the processor 260 may determine whether a right lane of the vehicle is identified as a center lane.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 우측 차선이 중앙 차선으로 식별되면, 상기 차량이 반대 차로로 주행하고 있는 것으로 판단할 수 있다. 이러한 경우는, 우측 통행이 익숙하지 않은 외국인 운전자(예: 일본 운전자)가 도로에 반대 방향으로 진입하는 경우일 수 있다.According to an embodiment, when the right lane is identified as the center lane, the processor 260 may determine that the vehicle is traveling in the opposite lane. In this case, a foreign driver (eg, a Japanese driver) who is not familiar with right-hand traffic may enter the road in the opposite direction.

이와 같이, 상기 프로세서(260)는 상기 차량은 현재 반대 차로로 주행하고 있는 것으로 식별된 이후, 상기 차량이 반대 차로로 주행한 시각을 기준으로 미리 결정된 시간 동안(예: 상기 차량이 반대 차로로 주행한 시각을 기준으로 앞뒤 약 30초 동안)에 해당되는 주행 영상을 상기 저장부(240)에 저장할 수 있다.In this way, after it is identified that the vehicle is currently traveling in the opposite lane, the processor 260 determines that the vehicle is traveling in the opposite lane for a predetermined period of time (eg, the vehicle is traveling in the opposite lane). A driving image corresponding to about 30 seconds before and after one time) may be stored in the storage unit 240 .

일 실시 예에 따르면, 상기 프로세서(260)는 카메라(210)를 통해 획득된 주행 영상에 설정된 적어도 하나의 구간에 기반하여, 상기 차량이 주행중인 차로의 좌측 차선이 중앙 차선인 경우, 상기 차량이 차로내 정상 주행 중인 것으로 판단할 수 있다. According to an embodiment, the processor 260 determines that, based on at least one section set in the driving image acquired through the camera 210 , when the left lane of the lane in which the vehicle is traveling is the center lane, the vehicle It can be determined that the vehicle is driving normally in the vehicle.

그리고, 상기 프로세서(260)는 상기 차량이 좌측 차선에 대해 완전 침범하는지를 식별할 수 있다. 그리고, 상기 프로세서(260)는 상기 차량이 상기 좌측 차선에 대해 완전 침범하여 주행한 이후, 반대 차로(예: 차량이 주행 방향이 반대인 차로)의 일반 차선(예: 차로를 구분 짓는 백색 선)에 대해 완전 침범한지를 판단할 수 있다. In addition, the processor 260 may identify whether the vehicle completely invades the left lane. Then, after the vehicle completely invades the left lane and drives, the processor 260 determines a general lane (eg, a white line dividing lanes) of an opposite lane (eg, a lane in which the vehicle travels in the opposite direction). It can be determined whether there is a complete invasion of

이와 같이, 차량이 좌측 차선(예: 중앙 차선)에 대해 완전 침범하여 주행한 이후, 반대 차로의 일반 차선(예: 백색 차선)에 대해 완전 침범하여 주행하는 것을 비정상 주행이라 할 수 있다.In this way, after the vehicle completely invades the left lane (eg, the center lane) and then completely invades the general lane (eg, the white lane) of the opposite lane, it may be referred to as abnormal driving.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 비정상 주행에 기반하여, 중앙 차선이 식별되면, 상기 차량이 금지 구간에서 유턴하여 주행하고 있는 것으로 판단할 수 있다. 일반적으로 유턴할 수 있는 구간은 중앙 차선이 황색 이중 실선에서 흰색 점선으로 바뀌는 구간이다. 금지 구간에서 유턴이라 함은 이러한 흰색 점선에서 유턴하는 것이 아니라 황색 이중 실선에서 유턴하는 것을 의미한다.According to an embodiment, when a center lane is identified based on the abnormal driving, the processor 260 may determine that the vehicle is driving by making a U-turn in the prohibited section. In general, the section where U-turns can be made is the section where the center lane changes from a double solid yellow line to a dotted white line. A U-turn in the prohibited section means making a U-turn on a double solid yellow line, not on a white dotted line.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 좌측 차선(예: 중앙 차선)에 대해 완전 침범한 이후, 상기 반대 차로에서 차량의 우측의 일반 차선(예: 백색 차선)이 인식되는지 판단할 수 있다. 그리고, 상기 프로세서(260)는 상기 일반 차선이 인식되면, 상기 일반 차선에 대해 완전 침범하여 정상 주행 중인지를 식별할 수 있다. According to an embodiment, after the vehicle completely invades the left lane (eg, the center lane), the processor 260 determines whether a general lane (eg, a white lane) on the right side of the vehicle is recognized in the opposite lane. can In addition, when the general lane is recognized, the processor 260 may identify whether the vehicle is driving normally by completely encroaching on the general lane.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 완전 침범 주행 이후, 상기 반대 차로의 상기 일반 차선이 인식되지 않으면, 센서부(220)를 통해 차량의 진행 방향의 변화에 대한 정보 및 회전각에 대한 정보 중 적어도 일부를 획득할 수 있다.According to an embodiment, if the general lane of the opposite lane is not recognized after the vehicle has completely invaded the vehicle, the processor 260 provides information on the change in the traveling direction of the vehicle and the rotation angle through the sensor unit 220 . At least some of the information on

예를 들면, 상기 프로세서(260)는 상기 센서부(220) 내의 GPS로부터 차량의 진행 방향의 변화에 대한 정보를 획득하고, 요 센서(미도시)로부터 차량의 회전각에 대한 정보를 획득할 수 있다.For example, the processor 260 may obtain information about a change in the traveling direction of the vehicle from the GPS in the sensor unit 220, and obtain information about the rotation angle of the vehicle from a yaw sensor (not shown). there is.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 획득된 적어도 일부의 정보에 기반하여 상기 차량이 상기 일반 차선에 대해 완전 침범하여 비정상 주행 중인 것으로 판단할 수 있다.According to an embodiment, the processor 260 may determine that the vehicle is driving abnormally because it completely invades the general lane based on the at least part of the obtained information.

일 실시 예에 따르면, 상기 프로세서(260)는 차량의 좌측 차선이 중앙 차선인 것으로 식별되고, 상기 차량이 반대 차로에서 정상 주행 중인 것으로 판단되면, 상기 차량이 금지 구간에서 유턴하여 주행하고 있는 것으로 판단할 수 있다.According to an embodiment, the processor 260 determines that the left lane of the vehicle is the center lane, and when it is determined that the vehicle is driving normally in the opposite lane, it is determined that the vehicle is driving by making a U-turn in the prohibited section can do.

일 실시 예에 따르면, 상기 프로세서(260)는 차량의 좌측 차선이 중앙 차선인 것으로 식별된 이후, 미리 결정된 시간 동안 상기 차량의 좌측 차선이 상기 중앙 차선인 것으로 유지되면, 상기 차량이 금지 구간에서 유턴하여 주행하고 있는 것으로 판단할 수 있다.According to an embodiment, after the processor 260 identifies that the left lane of the vehicle is the center lane, if the left lane of the vehicle is maintained as the center lane for a predetermined time, the vehicle makes a U-turn in the prohibited section Thus, it can be judged that it is driving.

이와 같이, 상기 프로세서(260)는 상기 차량이 금지 구간에서 유턴하여 주행하고 있는 것으로 식별되면, 상기 차량이 금지 구간에서 유턴하여 주행한 시각을 기준으로 미리 결정된 시간 동안(예: 상기 차량이 금지 구간에서 유턴하여 주행한 시각을 기준으로 앞뒤 약 30초 동안)에 해당되는 주행 영상을 상기 저장부(240)에 저장할 수 있다.As such, when it is identified that the vehicle is driving by making a U-turn in the prohibited section, the processor 260 determines that the vehicle is driving after making a U-turn in the prohibited section for a predetermined time (eg, the vehicle is in the prohibited section). The driving image corresponding to the driving time (for about 30 seconds before and after the U-turn in the ) may be stored in the storage unit 240 .

일 실시 예에 따르면, 상기 프로세서(260)는 저장부(240)에 저장된 주행 영상을 통신부(230)를 통해 서버로 전송할 수 있다. 예를 들면, 상기 프로세서(260)는 차선을 침범한 시각을 기준으로 일정 시간에 해당되는 주행 영상, 차량이 중앙 차선을 침범한 시각을 기준으로 일정 시간에 해당되는 주행 영상, 차량이 반대 차로로 주행한 시각을 기준으로 일정 시간에 해당되는 주행 영상, 및 차량이 금지 구간에서 유턴한 시각을 기준으로 일정 시간에 해당되는 주행 영상 중 적어도 하나를 상기 통신부(230)를 통해 전송할 수 있다. According to an embodiment, the processor 260 may transmit the driving image stored in the storage unit 240 to the server through the communication unit 230 . For example, the processor 260 may generate a driving image corresponding to a predetermined time based on the time at which the lane is invaded, a driving image corresponding to a predetermined time based on the time when the vehicle invades the center lane, and the vehicle moving into the opposite lane. At least one of a driving image corresponding to a predetermined time based on the driving time and a driving image corresponding to a predetermined time based on the time when the vehicle makes a U-turn in the prohibited section may be transmitted through the communication unit 230 .

일 실시 예에 따르면, 상기 프로세서(260)는 외부 전자 장치(미도시)(예: 차량 주행 정보를 수집하는 서버)와의 통신 채널이 셋업되는지를 주기적으로 식별할 수 있다. 예를 들면, 상기 통신 채널이 셋업되는 경우, 상기 프로세서(260)는 상기 셋업된 통신 채널(예: 3G, 4G, WiFi, Bluetooth 등)을 통해 저장부(240)에 저장된 주행 영상(예: 차선 위반, 역주행, 중앙선 침범, 금지구간에서의 유턴 등을 나타내는 영상)을 상기 외부 전자 장치로 전송할 수 있다.According to an embodiment, the processor 260 may periodically identify whether a communication channel with an external electronic device (not shown) (eg, a server collecting vehicle driving information) is set up. For example, when the communication channel is set up, the processor 260 stores a driving image (eg, a lane) stored in the storage unit 240 through the set communication channel (eg, 3G, 4G, WiFi, Bluetooth, etc.) An image indicating violation, reverse driving, center line violation, U-turn in a prohibited section, etc.) may be transmitted to the external electronic device.

일 실시 예에 따르면, 상기 프로세서(260)는 차량의 전면에 장착된 카메라(210)에서 연속적으로 획득되는 영상을 순차적으로 실시간 분석할 수 있다. 상기 프로세서(260)는 차선을 일관되게 인식하고 추적 가능하다. 상기 추적은 이전 프레임에서 인식된 차선과 현재 프레임에서 인식된 차선의 위치가 달라지게 되어도 같은 차선임을 인식하는 의미이다.According to an embodiment, the processor 260 may sequentially analyze in real time images continuously acquired from the camera 210 mounted on the front of the vehicle. The processor 260 can consistently recognize and track a lane. The tracking means recognizing that the lane recognized in the previous frame is the same lane even if the positions of the lane recognized in the current frame are different.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 중앙 차선을 침범하는 것으로 판단되면, 중앙 차선을 침범한 시각의 앞뒤로의 일정 시간(예: 15초) 동안에 해당되는 주행 영상을 저장부(240)에 저장할 수 있다. 이러한 저장된 주행영상은 덮어쓰기가 금지되는 영역에 저장된 후, 서버로 전송될 수 있다.According to an embodiment, when it is determined that the vehicle invades the center lane, the processor 260 stores a driving image corresponding to a predetermined time (eg, 15 seconds) before and after the time when the vehicle invades the center lane. ) can be stored in The stored driving image may be stored in an area where overwriting is prohibited and then transmitted to the server.

도 3은 본 발명의 일 실시 예에 따른 차량의 주행 상태를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정하는 방법을 나타낸 순서도이다. 도 4는 본 발명의 일 실시 예에 따른 차로에 대한 실질적인 도로 좌표와 도로가 카메라로 투영된 영상에서의 차로의 좌표의 관계를 나타낸 예시도이다. 도 5a는 본 발명의 일 실시 예에 따른 차량이 차로의 정 중앙으로 주행하는 예시도이다. 도 5b는 도 5a에서의 소실점을 나타낸 예시도이다. 도 6a는 본 발명의 일 실시 예에 따른 차량이 좌측 차선을 닿은 채 주행하는 예시도이다. 도 6b는 도 6a에서의 소실점을 나타낸 예시도이다. 도 7a는 본 발명의 일 실시 예에 따른 차량이 우측 차선을 닿은 채 주행하는 예시도이다. 도 7b는 도 7a에서의 소실점을 나타낸 예시도이다. 도 8a는 본 발명의 일 실시 예에 따른 차량이 좌측 차선을 넘은 채 주행하는 예시도이다. 도 8b는 도 8a에서의 소실점을 나타낸 예시도이다. 도 9는 본 발명의 일 실시 예에 따른 차량의 차선 이탈 여부를 판단하기 위해 주행 영상에 설정된 적어도 하나의 구간을 나타낸 예시도이다.3 is a flowchart illustrating a method of setting at least one section for determining a driving state of a vehicle in a driving image according to an embodiment of the present invention. 4 is an exemplary diagram illustrating a relationship between actual road coordinates for a lane and coordinates of a lane in an image of a road projected by a camera according to an embodiment of the present invention. 5A is an exemplary view in which a vehicle travels in the center of a lane according to an embodiment of the present invention. 5B is an exemplary diagram illustrating a vanishing point in FIG. 5A . 6A is an exemplary view in which a vehicle travels while touching a left lane according to an embodiment of the present invention. FIG. 6B is an exemplary view illustrating a vanishing point in FIG. 6A . 7A is an exemplary view in which a vehicle travels while touching a right lane according to an embodiment of the present invention. 7B is an exemplary view showing the vanishing point in FIG. 7A. 8A is an exemplary view in which a vehicle travels while crossing a left lane according to an embodiment of the present invention. 8B is an exemplary diagram illustrating a vanishing point in FIG. 8A . 9 is an exemplary view illustrating at least one section set in a driving image to determine whether a vehicle departs from a lane according to an embodiment of the present invention.

이하, 도 3 내지 도 8b를 참조하여, 본 발명의 일 실시 예에 따른 차량의 주행 상태를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정하는 방법을 상세히 설명하면 다음과 같다.Hereinafter, a method of setting at least one section for determining a driving state of a vehicle in a driving image according to an embodiment of the present invention will be described in detail with reference to FIGS. 3 to 8B .

일 실시 예에 따르면, 상기 장치(200)(예: 프로세서(260))는 차량의 주행 영상이 획득되는지 식별할 수 있다(S310). 상기 장치(200)(예: 프로세서(260))는 상기 장치(200)에 포함된 적어도 하나의 카메라(210)에서 촬영된 상기 차량(101)의 전방 및/또는 후방에 대한 영상이 획득되는지 판단할 수 있다. According to an embodiment, the device 200 (eg, the processor 260 ) may identify whether a driving image of the vehicle is acquired ( S310 ). The device 200 (eg, the processor 260 ) determines whether an image of the front and/or rear of the vehicle 101 captured by at least one camera 210 included in the device 200 is acquired can do.

일 실시 예에 따르면, 상기 장치(200)(예: 프로세서(260))는 상기 카메라(210)를 통해 상기 차량(101)의 주행 상태에 관한 이미지, 또는 영상을 획득할 수 있다. 상기 장치(200)(예: 프로세서(260))는 상기 차량(101)의 전방 및/또는 후방에 배치된 카메라(210)를 통해 상기 차량(101)이 주행하고 있는 도로의 차선에 대한 영상을 실시간으로 획득할 수 있다.According to an embodiment, the device 200 (eg, the processor 260 ) may acquire an image or an image regarding the driving state of the vehicle 101 through the camera 210 . The device 200 (eg, the processor 260 ) captures an image of a lane of the road on which the vehicle 101 is traveling through the camera 210 disposed in front and/or rear of the vehicle 101 . It can be obtained in real time.

일 실시 예에 따르면, 상기 장치(200)(예: 프로세서(260))는 차량(101) 기준의 도로 좌표에 대한 정보를 획득할 수 있다(S312). 상기 장치(200)(예: 프로세서(260))는 차량(101)이 현재 주행하고 있는 차로에 대한 실질적인 좌표(예: X, Y, Z)(또는 (X, 0, Z)), 도로가 카메라를 통해 투영된 영상에 대한 차로의 좌표(x, y), 상기 카메라(210)의 초점 거리, 및 차선과 상기 카메라(210)간의 거리(예: 차로에서 카메라의 높이) 중 적어도 일부를 포함하는 좌표 정보를 식별 또는 획득할 수 있다. According to an embodiment, the device 200 (eg, the processor 260 ) may obtain information on the road coordinates based on the vehicle 101 ( S312 ). The device 200 (eg, the processor 260 ) determines the actual coordinates (eg, X, Y, Z) (or (X, 0, Z)) of the lane on which the vehicle 101 is currently traveling, the At least part of the coordinates (x, y) of the lane for the image projected through the camera, the focal length of the camera 210, and the distance between the lane and the camera 210 (eg, the height of the camera in the lane) coordinate information to be identified or obtained.

또한, 도로 위의 한 점의 좌표는 Y 축 좌표 값이 0이기 때문에 (X, 0, Z)로 표현될 수 있다. 이러한 도로의 2차원 좌표(X, Z)는 카메라에 의해 투영된 영상에 2차원 좌표 (x, y)로 표현될 수 있고, 이에 따라 실제 차선의 위치를 영상을 통해 역으로 알 수 있다.Also, the coordinates of a point on the road can be expressed as (X, 0, Z) because the Y-axis coordinate value is 0. The two-dimensional coordinates (X, Z) of the road may be expressed as two-dimensional coordinates (x, y) on the image projected by the camera, and accordingly, the location of the actual lane may be reversely known through the image.

[차량 기준의 도로 좌표 정보][Vehicle-based road coordinate information]

도 4를 참조하면, 상기 차량(101)는 Z 축 방향으로 주행하고 있다. 상기 차량(101)의 좌측에는 두 개의 실선(131)이 있고, 우측에는 하나의 실선(132)이 있다. 이 경우, 상기 장치(200)(예: 프로세서(260))는 상기 카메라(210)를 통해 도로에 관한 영상을 획득할 수 있다. 그리고, 상기 장치(200)(예: 프로세서(260))는 상기 획득된 영상의 차로 좌표(x, y)를 분석하여 상기 차량(101)이 주행하고 있는 차로의 실질 좌표(X, 0, Z) 를 획득할 수 있다. 또한, 상기 장치(200)(예: 프로세서(260))는 차량(101) 내부에 배치된 상기 카메라(210)의 높이(h)를 식별할 수 있다. 상기 카메라(210)의 높이는 카메라(210)를 장착한 후, 실제 높이를 측정하여 입력된 값이거나, 또는 차량 앞에 일정한 절차에 따라 규정된 보정판을 설치한 후, 보정 절차를 통해 획득되어 저장된 값일 수 있다. 또는, 상기 카메라(210)의 높이는 차량의 종류와 장착 위치에 따라 이전의 설치 경험이 축적되어 만들어진 표의 값을 통해 획득될 수 있다. 예를 들면, 상기 차량(101)는 Z 축 방향으로 주행하고 있는 경우, 상기 카메라 좌표는(0, h, 0)일 수 있다. Referring to FIG. 4 , the vehicle 101 is traveling in the Z-axis direction. There are two solid lines 131 on the left side of the vehicle 101 and one solid line 132 on the right side of the vehicle 101 . In this case, the device 200 (eg, the processor 260 ) may acquire an image about the road through the camera 210 . Then, the device 200 (eg, the processor 260 ) analyzes the lane coordinates (x, y) of the obtained image, and the actual coordinates (X, 0, Z) of the lane on which the vehicle 101 is traveling ) can be obtained. Also, the device 200 (eg, the processor 260 ) may identify the height h of the camera 210 disposed inside the vehicle 101 . The height of the camera 210 may be a value input by measuring the actual height after mounting the camera 210, or a value obtained and stored through a correction procedure after installing a prescribed correction plate according to a predetermined procedure in front of the vehicle there is. Alternatively, the height of the camera 210 may be obtained through a value in a table made by accumulating previous installation experience according to a vehicle type and a mounting position. For example, when the vehicle 101 is traveling in the Z-axis direction, the camera coordinates may be (0, h, 0).

또한, 도로 위의 한 점의 좌표는 Y 축 좌표 값이 0이기 때문에 (X, 0, Z)로 표현될 수 있다. 이러한 도로의 2차원 좌표(X, Z)는 도로가 카메라를 통해 투영된 영상에 (x, y)로 표현될 수 있고, 이에 따라 실제 차선의 위치를 영상을 통해 역으로 알 수 있다.Also, the coordinates of a point on the road can be expressed as (X, 0, Z) because the Y-axis coordinate value is 0. The two-dimensional coordinates (X, Z) of the road may be expressed as (x, y) in the image projected through the camera, and accordingly, the location of the actual lane may be reversed through the image.

일 실시 예에 따르면, 상기 장치(200)(예: 프로세서(260))는 아래 [수학식 1]을 통해 도로가 카메라에 투영된 영상에 나타나는 차로의 좌표를 획득할 수 있다.According to an embodiment, the device 200 (eg, the processor 260 ) may obtain the coordinates of the lane shown in the image in which the road is projected by the camera through [Equation 1] below.

Figure 112021047280929-pat00001
Figure 112021047280929-pat00001

Figure 112021047280929-pat00002
Figure 112021047280929-pat00002

상기 [수학식 1]에서 x, y는 도로가 카메라에 투영된 영상에서의 차로의 좌표 값을 나타내고, X, Z는 차량(210)이 주행하고 있는 차로의 실질 좌표 값을 나타내고,

Figure 112021047280929-pat00003
는 카메라(210)의 초점 거리를 나타내고, h는 차로에서 카메라(210)의 높이를 나타낸다.In [Equation 1], x and y represent the coordinate values of the lane in the image where the road is projected to the camera, and X and Z represent the actual coordinate values of the lane on which the vehicle 210 is traveling,
Figure 112021047280929-pat00003
denotes a focal length of the camera 210 , and h denotes a height of the camera 210 in the lane.

다시 도 3을 참조하면, 상기 장치(200)(예: 프로세서(260))는 상기 차량이 주행하는 차선 정보를 획득할 수 있다(S314). 상기 장치(200)(예: 프로세서(260))는 상기 카메라(210)에서 촬영된 주행 영상을 획득하고, 상기 획득된 주행 영상에서, 상기 차량(101)을 기준으로 좌측 차선의 제1 내측 기준선(예: 상기 차량(101)의 좌측에 가장 가까운 선), 우측 차선의 제2 내측 기준선(예: 상기 차량(101)의 우측에 가장 가까운 선), 상기 제1 내측 기준선과 상기 제2 내측 기준선이 맞닿은 소실점, 및 상기 제1 내측 기준선과 상기 제2 내측 기준선 간의 차선 폭, 상기 차선을 넘은 차폭 비율, 상기 소실점의 좌표, 및 상기 소실점의 좌우 마진 중 적어도 일부를 포함하는 차선 정보를 획득할 수 있다. 상기 장치(200)(예: 프로세서(260))는 상기 센서부(220) 및 상기 카메라(210)를 통해서 상기 차량(101)이 주행하는 도로의 차선에 대한 차선 정보를 획득할 수 있다.Referring back to FIG. 3 , the device 200 (eg, the processor 260 ) may obtain information on a lane in which the vehicle travels ( S314 ). The device 200 (eg, the processor 260 ) acquires the driving image captured by the camera 210 , and in the acquired driving image, the first inner reference line of the left lane with respect to the vehicle 101 . (eg, the line closest to the left side of the vehicle 101), the second inner reference line of the right lane (eg, the line closest to the right side of the vehicle 101), the first inner reference line and the second inner reference line Lane information including at least a portion of the vanishing point, the lane width between the first inner reference line and the second inner reference line, the ratio of the vehicle width crossing the lane, the coordinates of the vanishing point, and the left and right margins of the vanishing point can be obtained there is. The device 200 (eg, the processor 260 ) may obtain lane information on a lane of a road in which the vehicle 101 travels through the sensor unit 220 and the camera 210 .

[정 중앙 주행][Central driving]

일 실시 예에 따르면, 상기 장치(200)(예: 프로세서(260))는 상기 차량(101)이 현재 주행하고 있는 도로의 차선에 대한 정보를 식별 또는 획득할 수 있다.According to an embodiment, the device 200 (eg, the processor 260 ) may identify or obtain information on a lane of a road on which the vehicle 101 is currently traveling.

도 5a, 및 도 5b를 참조하면, 상기 차량(101)이 차로의 정 중앙으로 주행하고 있는 상태(510)에서, 상기 차량(101)의 위치(511)에서 상기 카메라(210)가 획득하여 도로가 카메라(210)로 투영된 영상에 표시되는 가장 가까운 도로 위 지점들(512)까지의 거리를 Z_bottom이라 하고, 상기 소실점(521)에서 화면(520) 하단(522)까지의 거리를 y_bottom이라고 할 경우, 아래 [수학식 2]가 성립될 수 있다.5A and 5B , in a state 510 in which the vehicle 101 is driving in the middle of a lane, the camera 210 acquires the road at a location 511 of the vehicle 101 . Let Z_bottom be the distance to the points 512 on the nearest road displayed in the image projected by the camera 210, and the distance from the vanishing point 521 to the bottom 522 of the screen 520 is y_bottom. In this case, the following [Equation 2] may be established.

Figure 112021047280929-pat00004
Figure 112021047280929-pat00004

상기 [수학식 2]에서

Figure 112021047280929-pat00005
는 카메라(210)의 초점 거리를 나타내고, h는 차로에서 카메라(210)의 높이를 나타낸다. 상기 장치(200)(예: 프로세서(260))는 상기 [수학식 2]를 통해 도로가 카메라로 투영된 영상에 표시되는 가장 가까운 도로 위 지점들(512)까지의 거리(Z_bottom)와 상기 소실점(521)에서 화면(520) 하단(522)까지의 거리(y_bottom)를 획득할 수 있다.In the above [Equation 2]
Figure 112021047280929-pat00005
denotes a focal length of the camera 210 , and h denotes a height of the camera 210 in the lane. The device 200 (eg, the processor 260 ) calculates the distance Z_bottom and the vanishing point to the nearest points 512 on the road displayed in the image projected with the camera through Equation 2 above [Equation 2] A distance (y_bottom) from 521 to the bottom 522 of the screen 520 may be obtained.

그리고, 평행한 두 차선(525, 526)이 화면(520)의 하단과 교차하는 두 점 사이의 길이(523과 524를 합한 길이)(w_lane)는 실제 도로 상에서의 두 차선 간의(W_lane)와 비례 관계일 수 있다. In addition, the length (the sum of 523 and 524) (w_lane) between two points where two parallel lanes 525 and 526 intersect with the lower end of the screen 520 is proportional to the actual distance between the two lanes on the road (W_lane) could be a relationship.

예를 들면, 카메라(210)가 차량에 설치되면, 도로가 카메라(210)로 투영된 영상의 하단에 맺히는 도로 상의 거리는 고정될 수 있다. 따라서, 차량(101)이 폭이 일정한 차로 안에서 주행하는 경우, 양 차선(525, 526)의 내측 기준선이 영상의 하단과 교차하는 두 점 사이의 길이(w)는 일정하고, 이것을 차로폭 지표(lane width parameter)라고 한다. 상기 장치(200)(예: 프로세서(260))는 이러한 차로폭 지표(wlane)는 아래 [수학식 3]을 통해 획득될 수 있다.For example, when the camera 210 is installed in a vehicle, the distance on the road at which the road is formed at the lower end of the image projected by the camera 210 may be fixed. Accordingly, when the vehicle 101 drives in a lane with a constant width, the length w between two points where the inner reference lines of both lanes 525 and 526 intersect the lower end of the image is constant, and this is width parameter). In the device 200 (eg, the processor 260 ), such a lane width index may be obtained through Equation 3 below.

Figure 112021047280929-pat00006
Figure 112021047280929-pat00006

[좌측 차선을 닿은 채 주행][Drive while touching the left lane]

도 6a 및 도 6b를 참조하면, 차량(101)이 왼쪽 차선과 오른쪽 차선 중 어느 한 차선(예: 왼쪽 차선(611))과 닿은 채 차선(611)과 나란히 주행하고 있는 경우(610), 두 차선(611, 612, 또는 625, 626)의 연장선은 도 6b(820)와 같이, 여전히 소실점(621)에서 만난다. 상기 카메라(210)는 차량(101) 내부의 중앙에 위치하기 때문에, 차량(101)이 닿는 차선의 내측 기준선과 영상 하단(622)이 교차하는 지점은 상기 소실점(621)을 기준으로 차량(101)의 폭의 절반(1/2)에 해당된다.Referring to FIGS. 6A and 6B , when the vehicle 101 is driving in parallel with the lane 611 in contact with any one of the left and right lanes (eg, the left lane 611) (610), two Extensions of lanes 611 , 612 , or 625 , 626 still meet at vanishing point 621 , as shown in FIG. 6B 820 . Since the camera 210 is located in the center of the inside of the vehicle 101, the point where the inner reference line of the lane the vehicle 101 touches and the lower end of the image 622 intersect is the vehicle 101 based on the vanishing point 621. ) is half (1/2) of the width.

이와 같이, 상기 차량(101)이 좌측 차선(611)과 닿게 주행하는 경우, 도로가 카메라로 투영된 영상에서의 차량의 폭(1/2)에 해당하는 길이(623)는 w_vehicle, left/2로 표현될 수 있다. As such, when the vehicle 101 travels in contact with the left lane 611 , the length 623 corresponding to the width (1/2) of the vehicle in the image projected by the camera is w_vehicle, left/2 can be expressed as

[우측 차선을 닿은 채 주행][Drive while touching the right lane]

도 7a 및 도 7b를 참조하면, 차량(101)이 왼쪽 차선과 오른쪽 차선 중 어느 한 차선(예: 오른쪽 차선(712))과 닿은 채 차선(712)과 나란히 주행하고 있는 경우(710), 두 차선(711, 712, 또는 725, 726)의 연장선은 도 7b(720)와 같이 여전히 소실점(721)에서 만난다. 상기 카메라(210)는 차량(101) 내부의 중앙에 위치하기 때문에, 차량(101)이 닿는 차선의 내측 기준선과 영상 하단(722)이 교차하는 지점은 상기 소실점(721)을 기준으로 차량(101)의 폭의 절반(1/2)에 해당된다.Referring to FIGS. 7A and 7B , when the vehicle 101 is driving in parallel with the lane 712 while in contact with any one of the left and right lanes (eg, the right lane 712) (710), two Extensions of lanes 711 , 712 , or 725 , 726 still meet at vanishing point 721 as shown in FIG. 7B 720 . Since the camera 210 is located in the center inside the vehicle 101 , the point where the inner reference line of the lane that the vehicle 101 touches and the lower end of the image 722 intersect is the vehicle 101 based on the vanishing point 721 . ) is half (1/2) of the width.

이와 같이, 상기 차량(101)이 우측 차선(712)과 닿게 주행하는 경우, 도로가 카메라(210)로 투영된 영상에서의 차량의 폭(1/2)에 해당하는 길이(724)는 w_vehicle, right/2로 표현될 수 있다. As such, when the vehicle 101 travels in contact with the right lane 712, the length 724 corresponding to the width (1/2) of the vehicle in the image projected by the camera 210 is w_vehicle, It can be expressed as right/2.

영상에서 차량(101)의 폭에 해당하는 길이는 아래 [수학식 4]를 통해 획득될 수 있고, 이러한 차량의 폭을 차량폭 지표(vehicle width parameter)라 할 수 있다. 그리고, w_vehicle, left/2와 w_vehicle, right/2의 합은 w_vehicle라 할 수 있다. 이와 같이, 상기 장치(200)(예: 프로세서(260))는 아래 [수학식 4]을 통해 차량의 폭(wvehicle)을 계산할 수 있다.The length corresponding to the width of the vehicle 101 in the image may be obtained through [Equation 4] below, and the width of the vehicle may be referred to as a vehicle width parameter. And, the sum of w_vehicle, left/2 and w_vehicle, right/2 can be called w_vehicle. In this way, the device 200 (eg, the processor 260 ) may calculate the vehicle width w vehicle through Equation 4 below.

Figure 112021047280929-pat00007
Figure 112021047280929-pat00007

[좌측 차선을 넘은 채 주행][Driving over the left lane]

도 8a 및 도 8b를 참조하면, 차량(101)이 왼쪽 차선(811)을 넘어서 차선과 나란히 주행하고 있는 경우(810), 두 차선(811, 812, 또는 825, 826)의 연장선은 도 8b(820)와 같이 여전히 소실점(821)에서 만난다. 그리고, 상기 왼쪽 차선(811)을 넘은 차량(101)의 폭에 대한 비율을 α(오른쪽 차선(812)를 넘은 차량(101)의 폭에 대한 비율은 β라 함)라고 하면, 상기 왼쪽 차선(811)이 영상 하단(822)과 교차하는 점은 차량(101)이 상기 왼쪽 차선(811)을 닿은 채 주행할 때 보다, αw_vehicle만큼(823) 소실점(821)에 가까워진다. 예를 들면, 상기 차량(101)의 20%가 상기 왼쪽 차선(811)을 넘은 경우, α는 0.2이다.8A and 8B, when the vehicle 101 crosses the left lane 811 and travels side by side with the lane 810, the extension line of the two lanes 811, 812, or 825, 826 is shown in FIG. 8B ( 820 ) still meet at the vanishing point 821 . And, if the ratio to the width of the vehicle 101 crossing the left lane 811 is α (the ratio to the width of the vehicle 101 crossing the right lane 812 is referred to as β), the left lane ( The point at which 811 intersects the lower end 822 of the image is closer to the vanishing point 821 by αw_vehicle 823 than when the vehicle 101 drives while touching the left lane 811 . For example, when 20% of the vehicle 101 crosses the left lane 811 , α is 0.2.

그리고, 도로가 카메라(210)로 투영된 영상에서의 차량의 폭(1/2)에 해당하는 길이(823, 824)는 각각 w_vehicle, left/2와 w_vehicle, right/2로 표현될 수 있다.Also, lengths 823 and 824 corresponding to the width 1/2 of the vehicle in the image of the road projected by the camera 210 may be expressed as w_vehicle, left/2 and w_vehicle and right/2, respectively.

이와 같이, 상기 장치(200)(예: 프로세서(260))는 상술한 바를 통해 상기 차량(101)이 주행하는 차선 정보를 획득할 수 있다. 상기 차선 정보는 상기 획득된 주행 영상에서, 상기 차량(101)을 기준으로 좌측 차선의 제1 내측 기준선, 우측 차선의 제2 내측 기준선, 상기 제1 내측 기준선과 상기 제2 내측 기준선이 맞닿은 소실점, 및 상기 제1 내측 기준선과 상기 제2 내측 기준선 간의 차선 폭, 상기 차선을 넘은 차폭 비율, 상기 소실점의 좌표, 및 상기 소실점의 좌우 마진 중 적어도 일부를 포함 할 수 있다.In this way, the device 200 (eg, the processor 260 ) may acquire information on the lane in which the vehicle 101 travels through the above description. The lane information includes, in the obtained driving image, a vanishing point where a first inner reference line of a left lane, a second inner reference line of a right lane, and the first inner reference line and the second inner reference line are in contact with the vehicle 101, and a lane width between the first inner reference line and the second inner reference line, a ratio of a vehicle width crossing the lane, coordinates of the vanishing point, and a left and right margin of the vanishing point.

다시 도 3을 참조하면, 상기 장치(200)(예: 프로세서(260))는 상기 획득된 차량(101) 기준의 도로 좌표 정보, 및 상기 차선 정보에 기반하여, 상기 차량(101)의 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정할 수 있다(S316). Referring back to FIG. 3 , the device 200 (eg, the processor 260 ) determines that the vehicle 101 departs from a lane based on the obtained vehicle 101 reference road coordinate information and the lane information. At least one section for determining whether or not there is may be set in the driving image (S316).

일 실시 예에 따르면, 상기 장치(200)(예: 프로세서(260))는 상기 과정(S310)에서 획득된 주행 영상에서의 소실점을 기준으로 마진을 설정할 수 있다. 상기 마진은 상기 차량(101)의 탑승자의 무게, 차선의 굴곡 상태, 및 상기 차량(101)의 흔들림 중 적어도 하나에 기반하여 설정될 수 있다.According to an embodiment, the device 200 (eg, the processor 260 ) may set a margin based on a vanishing point in the driving image acquired in the process S310 . The margin may be set based on at least one of a weight of an occupant of the vehicle 101 , a bending state of a lane, and shaking of the vehicle 101 .

일 실시 예에 따르면, 상기 장치(200)(예: 프로세서(260))는 상기 카메라(210)를 통해 획득된 주행 영상의 하단에서의 상기 차량(101)의 폭(w)의 중간 지점을 기준 위치로 설정할 수 있다. 상기 장치(200)(예: 프로세서(260))는 상기 기준 위치를 중심으로 좌우로 제1 일정 간격을 갖는 구간을 완전 침범 구간(즉, 차량(101)의 왼쪽 바퀴 또는 오른쪽 바퀴가 차선을 완전히 넘은 것을 식별하는 구간)을 주행 영상에 설정할 수 있다. 상기 제1 일정 간격은 상기 기준 위치를 중심으로 상기 차량(101)의 폭의 1/2에 해당되는 지점에서 상기 차량(101)의 폭(w)과 상기 차선을 침범한 상기 차량(101)의 폭에 대한 비율을 곱한 값을 차감한 간격이다.According to an embodiment, the device 200 (eg, the processor 260 ) is based on a midpoint of the width w of the vehicle 101 at the lower end of the driving image acquired through the camera 210 . position can be set. The device 200 (eg, the processor 260 ) completely invades a section having a first predetermined interval to the left and right with respect to the reference position (ie, the left wheel or the right wheel of the vehicle 101 completely covers the lane). section) to identify what has been crossed can be set in the driving video. The first predetermined interval is the width w of the vehicle 101 at a point corresponding to 1/2 of the width of the vehicle 101 with respect to the reference position and the width w of the vehicle 101 that invades the lane. It is the interval minus the value multiplied by the ratio to the width.

일 실시 예에 따르면, 상기 장치(200)(예: 프로세서(260))는 상기 차량을 기준으로 좌측 차선의 제1 내측 기준선과 우측 차선의 제2 내측 기준선 각각에 대해, 상기 획득된 주행 영상에서의 지평선(또는 소실점)과 만나는 지점을 제1 가로 방향 좌표로 설정할 수 있다. 상기 장치(200)(예: 프로세서(260))는 상기 완전 침범 구간의 좌우로 제2 일정 간격을 갖는 구간을 일시 침범 구간(즉, 차량(101)의 왼쪽 바퀴 또는 오른쪽 바퀴가 차선을 닿은 채 주행하는 것을 식별하는 구간)을 주행 영상에 설정할 수 있다. 상기 제2 일정 간격은 상기 차량(101)의 폭의 1/2에 해당되는 지점에서 상기 기준 위치 방향으로 상기 제1 일정 간격을 차감한 간격이다.According to an embodiment, the device 200 (eg, the processor 260 ), with respect to the vehicle, for each of the first inner reference line of the left lane and the second inner reference line of the right lane with respect to the vehicle, in the obtained driving image, A point that meets the horizon (or vanishing point) of may be set as the first horizontal coordinate. The device 200 (eg, the processor 260 ) sets a section having a second predetermined interval to the left and right of the complete intrusion section in a temporary intrusion section (ie, while the left wheel or right wheel of the vehicle 101 is in contact with the lane) section to identify driving) can be set in the driving image. The second predetermined interval is an interval obtained by subtracting the first predetermined interval in the direction of the reference position from a point corresponding to 1/2 of the width of the vehicle 101 .

일 실시 예에 따르면, 상기 장치(200)(예: 프로세서(260))는 상기 제1 내측 기준선 및 상기 제2 내측 기준선 각각과, 상기 획득된 주행 영상의 하단이 교차하는 지점을 제2 가로 방향 좌표로 설정할 수 있다. 상기 장치(200)(예: 프로세서(260))는 상기 일시 침범 구간을 좌우로 벗어나는 구간을 정상 구간(즉, 차량(101)이 차선을 닿지 않은 채 차로의 중앙에서 주행하는 것을 식별하는 구간)을 주행 영상에 설정할 수 있다.According to an embodiment, the device 200 (eg, the processor 260 ) sets a point where each of the first inner reference line and the second inner reference line and the lower end of the acquired driving image intersect in the second horizontal direction. It can be set by coordinates. The device 200 (eg, the processor 260 ) determines that the section deviating from the temporary intrusion section to the left and right is a normal section (that is, the section in which the vehicle 101 is driving in the center of the lane without touching the lane) can be set in the driving video.

도 9를 참조하면, 상기 장치(200)(예: 프로세서(260))는 차선과 차량의 관계를 영상 좌표로 도식화할 수 있다. 상기 장치(200)(예: 프로세서(260))는 소실점(921)의 좌표를 기준으로 영상의 하단에 차폭의 1/2에 해당되는 기준 위치(922)를 설정하고, 상기 기준 위치(922)를 기준으로 소실점(921) 방향으로 차량 폭(wvehicle)을 기준으로 하는 일시 침범 구간(914, 915)을 주행 영상에 설정할 수 있다. 상기 장치(200)(예: 프로세서(260))는 차선의 종류 또는 차량을 기준으로 좌측 또는 우측에 따라 상기 일시 침범 구간(914, 915)을 다르게 설정할 수 있다.Referring to FIG. 9 , the device 200 (eg, the processor 260 ) may map a relationship between a lane and a vehicle using image coordinates. The device 200 (eg, the processor 260) sets a reference position 922 corresponding to 1/2 of the vehicle width at the lower end of the image based on the coordinates of the vanishing point 921, and the reference position 922 Temporary encroachment sections 914 and 915 based on the vehicle width w vehicle in the direction of the vanishing point 921 based on can be set in the driving image. The device 200 (eg, the processor 260 ) may differently set the temporary intrusion sections 914 and 915 according to the left or right side based on the type of lane or the vehicle.

그리고, 상기 장치(200)(예: 프로세서(260))는 상기 차량의 탑승자의 무게, 차선의 굴곡 상태, 및 상기 차량의 흔들림을 식별하고, 상기 차량의 탑승자의 무게, 상기 차선의 굴곡 상태, 및 상기 차량의 흔들림 중 적어도 하나에 기반하여, 상기 소실점(921)을 중심으로 마진(918)(wv.p.)을 주행 영상에 설정할 수 있다. 그리고, 두 차선간의 거리(911)(wlane)는 차량 폭(wvehicle)보다 크기 때문에, 두 차선이 동시에 침범 구간 안에 있을 수 없다.Then, the device 200 (eg, the processor 260) identifies the weight of the occupant of the vehicle, the curvature state of the lane, and the shaking of the vehicle, the weight of the occupant of the vehicle, the curvature state of the lane, and based on at least one of the shaking of the vehicle, a margin 918 (w vp ) may be set in the driving image around the vanishing point 921 . And, since the distance 911 (w lane ) between the two lanes is greater than the vehicle width (w vehicle ), the two lanes cannot be in the encroaching section at the same time.

예를 들면, 두 차선의 연장선이 지평선과 만나는 교점의 가로 방향 좌표를 x_t(top)이라 하고, 각 차선이 영상 하단과 교차하는 점의 가로 방향 좌표를 x_b(bottom)이라고 하면, 상기 장치(200)(예: 프로세서(260))는 x_t, x_b를 이용하여 차량과 차선(예: 중앙 차선)의 위치와 주행 상태를 정의할 수 있다.For example, if the horizontal coordinate of a point where the extension line of two lanes meets the horizon is x_t(top), and the horizontal coordinate of the point where each lane intersects the bottom of the image is x_b(bottom), the device 200 ) (eg, the processor 260 ) may define the position and driving state of the vehicle and the lane (eg, the center lane) using x_t and x_b.

이와 같이, 상기 장치(200)(예: 프로세서(260))는 카메라(210)를 통해 획득된 주행 영상(예: 도로가 카메라로 투영된 영상)의 하단에서의 상기 차량(101)의 폭(예: 상기 차량(101)의 폭)의 중간 지점(예: 상기 카메라(210)의 위치)을 기준 위치로 설정할 수 있다. 그리고, 상기 프로세서(260)는 상기 기준 위치를 중심으로 상기 차량(101)의 폭의 1/2에 해당되는 지점에서 상기 차량(101)의 폭과 차선을 침범한 상기 차량(101)의 폭에 대한 비율을 곱한 값을 차감한 간격을 갖는 구간을 완전 침범 구간(912, 913)으로 주행 영상에 설정할 수 있다. In this way, the device 200 (eg, the processor 260) determines the width ( For example, a midpoint (eg, the position of the camera 210 ) of the width of the vehicle 101 may be set as the reference position. Then, the processor 260 determines the width of the vehicle 101 at a point corresponding to 1/2 of the width of the vehicle 101 with respect to the reference position and the width of the vehicle 101 that invades the lane. A section having an interval obtained by subtracting a value multiplied by a ratio of the corresponding values may be set in the driving image as the complete intrusion sections 912 and 913 .

그리고, 상기 장치(200)(예: 프로세서(260))는 상기 제1 내측 기준선, 및 상기 제2 내측 기준선 각각과, 상기 획득된 주행 영상에서의 지평선과 만나는 지점을 제1 가로 방향 좌표로 설정할 수 있다. 상기 장치(200)(예: 프로세서(260))는 상기 차량의 폭의 1/2에 해당되는 지점에서 상기 기준 위치 방향으로 상기 제1 일정 간격을 차감한 간격을 갖는 구간을 일시 침범 구간(914, 915)으로 주행 영상에 설정할 수 있다. In addition, the device 200 (eg, the processor 260 ) sets a point where each of the first inner reference line and the second inner reference line and the horizon in the obtained driving image meet as the first horizontal coordinates. can The device 200 (eg, the processor 260 ) temporarily invades a section 914 having an interval obtained by subtracting the first predetermined interval from a point corresponding to 1/2 of the width of the vehicle in the direction of the reference position. , 915) can be set in the driving video.

또한, 상기 장치(200)(예: 프로세서(260))는 상기 제1 내측 기준선 및 상기 제2 내측 기준선 각각과, 상기 획득된 주행 영상의 하단이 교차하는 지점을 제2 가로 방향 좌표로 설정할 수 있다. 상기 장치(200)(예: 프로세서(260))는 상기 일시 침범 구간(914, 915)을 좌우로 벗어나는 구간을 정상 구간(916, 917)으로 주행 영상에 설정할 수 있다.Also, the device 200 (eg, the processor 260 ) may set a point where each of the first inner reference line and the second inner reference line and the lower end of the obtained driving image intersect as the second horizontal coordinates. there is. The device 200 (eg, the processor 260 ) may set a section that deviates from the temporary intrusion sections 914 and 915 to the left and right as the normal sections 916 and 917 in the driving image.

도 10은 본 발명의 일 실시 예에 따른 차량의 차선 이탈 여부를 판단하여 주행 영상을 저장 및 전송하는 과정을 나타낸 순서도이다. 도 11은 본 발명의 일 실시 예에 따른 차로내 정상 주행을 나타낸 예시도이다. 도 12a는 본 발명의 일 실시 예에 따른 좌측 차선을 일시 침범하여 주행하는 예시도이다. 도 12b는 본 발명의 일 실시 예에 따른 우측 차선을 일시 침범하여 주행하는 예시도이다. 도 13a는 본 발명의 일 실시 예에 따른 좌측 차선을 완전 침범하여 주행하는 예시도이다. 도 13b는 본 발명의 일 실시 예에 따른 우측 차선을 완전 침범하여 주행하는 예시도이다. 도 14a는 본 발명의 일 실시 예에 따른 좌측 차선을 일시 침범하여 비정상 주행하는 예시도이다. 도 14b는 본 발명의 일 실시 예에 따른 우측 차선을 일시 침범하여 비정상 주행하는 예시도이다. 도 15a는 본 발명의 일 실시 예에 따른 좌측 차선을 완전 침범하여 비정상 주행하는 예시도이다. 도 15b는 본 발명의 일 실시 예에 따른 우측 차선을 일시 침범하여 비정상 주행하는 예시도이다.10 is a flowchart illustrating a process of storing and transmitting a driving image by determining whether a vehicle departs from a lane according to an embodiment of the present invention. 11 is an exemplary view illustrating normal driving in a lane according to an embodiment of the present invention. 12A is an exemplary diagram of driving while temporarily infiltrating a left lane according to an embodiment of the present invention. 12B is an exemplary diagram of driving while temporarily infiltrating a right lane according to an embodiment of the present invention. 13A is an exemplary view of driving while completely encroaching on the left lane according to an embodiment of the present invention. 13B is an exemplary view of driving while completely encroaching on the right lane according to an embodiment of the present invention. 14A is an exemplary diagram illustrating abnormal driving by temporarily infiltrating a left lane according to an embodiment of the present invention. 14B is an exemplary diagram illustrating abnormal driving by temporarily infiltrating a right lane according to an embodiment of the present invention. 15A is an exemplary diagram illustrating abnormal driving by completely encroaching on the left lane according to an embodiment of the present invention. 15B is an exemplary diagram illustrating abnormal driving by temporarily infiltrating a right lane according to an embodiment of the present invention.

이하, 도 10 내지 도 15b를 참조하여, 본 발명의 일 실시 예에 따른 차량의 차선 이탈 여부를 판단하여 주행 영상을 저장 및 전송하는 과정을 상세히 설명하면 다음과 같다.Hereinafter, a process of storing and transmitting a driving image by determining whether a vehicle departs from a lane according to an embodiment of the present invention will be described in detail with reference to FIGS. 10 to 15B .

일 실시 예에 따르면, 상기 프로세서(260)는 차량의 주행 영상을 획득할 수 있다(S1010). 상기 과정(S1010)은 도 3의 과정(S310)에서 수행되는 적어도 하나의 동작을 포함할 수 있다.According to an embodiment, the processor 260 may acquire a driving image of the vehicle ( S1010 ). The process ( S1010 ) may include at least one operation performed in the process ( S310 ) of FIG. 3 .

일 실시 예에 따르면, 상기 프로세서(260)는 차량 기준의 도로 좌표 정보와 차선 정보를 획득할 수 있다(S1012). 상기 과정(S1012)은 도 3의 과정들(S312, S314)에서 수행되는 적어도 하나의 동작을 포함할 수 있다.According to an embodiment, the processor 260 may obtain vehicle-based road coordinate information and lane information (S1012). The process S1012 may include at least one operation performed in the processes S312 and S314 of FIG. 3 .

일 실시 예에 따르면, 상기 프로세서(260)는 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정할 수 있다(S1014). 상기 과정(S1014)은 도 3의 과정(S316)에서 수행되는 적어도 하나의 동작을 포함할 수 있다.According to an embodiment, the processor 260 may set at least one section for determining whether to depart a lane in the driving image (S1014). The process ( S1014 ) may include at least one operation performed in the process ( S316 ) of FIG. 3 .

일 실시 예에 따르면, 상기 프로세서(260)는 차량의 차선 이탈 여부를 판단할 수 있다(S1016). 상기 프로세서(260)는 차량의 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 주행 영상에 설정한 후, 차량의 차선 이탈 여부를 판단할 수 있다. 예를 들면, 상기 프로세서(260)는 상기 주행 영상에 설정된 적어도 하나의 구간에 기반하여, 상기 차량이 차로내 정상 주행인지, 일시 침범 정상 주행인지, 완전 침범 정상 주행인지, 일시 침범 비정상 주행인지, 완전 침범 비정상 주행인지를 판단할 수 있다.According to an embodiment, the processor 260 may determine whether the vehicle departs from a lane (S1016). The processor 260 may determine whether the vehicle departs from the lane after setting at least one section for determining whether the vehicle departs from the lane in the driving image. For example, based on the at least one section set in the driving image, the processor 260 determines whether the vehicle is driving in a lane, whether it is a normal driving in the lane, whether it is temporarily intrusive driving, whether it is completely intrusion normal driving, or whether it is temporarily intrusive abnormal driving, It can be determined whether the driving is completely intrusive or abnormal.

일 실시 예에 따르면, 상기 프로세서(260)는 소실점이 기 설정된 마진 내에 위치하고, 상기 제2 가로 방향 좌표의 왼쪽 좌표 또는 오른쪽 좌표가 상기 제3 구간에 존재하는 경우, 상기 차량이 정상 주행 중인 것으로 판단할 수 있다.According to an embodiment, the processor 260 determines that the vehicle is driving normally when the vanishing point is located within a preset margin and the left or right coordinates of the second horizontal coordinates exist in the third section. can do.

정상 주행은 차량이 차선을 따라 주행하는 것을 의미한다. 이러한 정상 주행은 차로내 정상 주행과 일시 침범 정상 주행을 포함할 수 있다. 그리고, 일시 침범 정상 주행은 좌측 일시침범 정상 주행과 우측 일시침범 정상 주행을 포함할 수 있다. 상기 좌측 일시침범 정상 주행과 상기 우측 일시침범 정상 주행은 차량의 타이어의 차선 점유 비율에 기반하여 판단될 수 있다.Normal driving means that the vehicle travels along the lane. Such normal driving may include normal driving in the lane and normal driving temporarily intrusive. In addition, the temporary invasion normal driving may include a left temporary invasion normal driving and a right temporary invasion normal driving. The left temporary invasion normal driving and the right temporary invasion normal driving may be determined based on a lane occupancy ratio of tires of the vehicle.

도 11을 참조하면, 소실점(921)이 마진(918) 이내에 있고, 차선(1111, 11112)이 모두 정상 구간(916, 917) 내에 있는 경우(1110), 상기 프로세서(260)는 차량은 차로 내에서 정상 주행한다고 판단할 수 있다. 예를 들면, 상기 프로세서(260)는 좌측 차선(1111)이 제1 정상 구간(916) 범위 이내에 있고, 우측 차선(1112)이 제2 정상 구간(917) 범위 이내에 있는 경우, 상기 차량이 차로 내에서 정상적으로 주행하고 있는 것으로 판단할 수 있다.Referring to FIG. 11 , when the vanishing point 921 is within the margin 918 and the lanes 1111 and 11112 are both within the normal sections 916 and 917 ( 1110 ), the processor 260 determines that the vehicle is within the lane. can be judged to be running normally. For example, if the left lane 1111 is within the range of the first normal section 916 and the right lane 1112 is within the range of the second normal section 917, the processor 260 determines that the vehicle is within the lane. It can be judged that the vehicle is driving normally.

일 실시 예에 따르면, 상기 프로세서(260)는 아래 [수학식 5]를 통해 차량이 차로내 정상 주행인지 판단할 수 있다.According to an embodiment, the processor 260 may determine whether the vehicle is normally driving within a lane through Equation 5 below.

Figure 112021047280929-pat00008
Figure 112021047280929-pat00008

상기 [수학식 5]에서 xtl은 오른쪽 차선의 소실점의 좌표이고, xtr은 왼쪽 차선의 소실점의 좌표이고, wv.p.는 마진이다. 그리고, xbl은 왼쪽 차선(1111)이 영상(1110)의 하단과 교차하는 좌표이고, xbr은 오른쪽 차선(1112)이 영상(1110)의 하단과 교차하는 좌표이다. 그리고, wvehicle는 차량의 폭을 나타낸다.In [Equation 5], x tl is the coordinate of the vanishing point of the right lane, x tr is the coordinate of the vanishing point of the left lane, and w vp is the margin. And, x bl is a coordinate at which the left lane 1111 intersects the lower end of the image 1110 , and x br is a coordinate at which the right lane 1112 intersects the lower end of the image 1110 . And, w vehicle represents the width of the vehicle.

도 12a를 참조하면, 소실점(921)이 마진(918) 이내에 있고, 왼쪽 차선(1211)이 일시 침범 구간(914) 내에 있고, 오른쪽 차선(1212)이 정상 구간(917) 내에 있는 경우(1210), 상기 프로세서(260)는 차량이 좌측 차선(1211)을 일시 침범하여 주행한다고 판단할 수 있다. Referring to FIG. 12A , when the vanishing point 921 is within the margin 918 , the left lane 1211 is within the temporary intrusion section 914 , and the right lane 1212 is within the normal section 917 ( 1210 ) , the processor 260 may determine that the vehicle travels by temporarily infiltrating the left lane 1211 .

일 실시 예에 따르면, 상기 프로세서(260)는 아래 [수학식 6]를 통해 차량이 좌측 차선(1211)을 일시 침범하여 주행하는지 판단할 수 있다.According to an embodiment, the processor 260 may determine whether the vehicle temporarily invades the left lane 1211 and travels through Equation 6 below.

Figure 112021047280929-pat00009
Figure 112021047280929-pat00009

상기 [수학식 6]에서 xtl은 오른쪽 차선의 소실점의 좌표이고, xtr은 왼쪽 차선의 소실점의 좌표이고, wv.p.는 마진이다. 그리고, xbl은 왼쪽 차선(1211)이 영상(1210)의 하단과 교차하는 좌표이다. 그리고, wvehicle는 차량의 폭을 나타내고, α는 일시 침범과 완전 침범을 판단하는 비율이다. 예를 들면, α는 차량의 왼쪽 타이어가 왼쪽 차선(1211)을 침범한 비율을 나타낸다.In [Equation 6], x tl is the coordinate of the vanishing point of the right lane, x tr is the coordinate of the vanishing point of the left lane, and w vp is the margin. And, x bl is a coordinate at which the left lane 1211 intersects the lower end of the image 1210 . And, w vehicle represents the width of the vehicle, and α is the ratio of determining temporary invasion and complete invasion. For example, α represents the ratio at which the left tire of the vehicle invades the left lane 1211 .

도 12b를 참조하면, 소실점(921)이 마진(918) 이내에 있고, 오른쪽 차선(1222)이 일시 침범 구간(915) 내에 있고, 왼쪽 차선(1221)이 정상 구간(916) 내에 있는 경우(1220), 상기 프로세서(260)는 차량이 오른쪽 차선(1222)을 일시 침범하여 주행한다고 판단할 수 있다. Referring to FIG. 12B , when the vanishing point 921 is within the margin 918 , the right lane 1222 is within the temporary intrusion section 915 , and the left lane 1221 is within the normal section 916 ( 1220 ) , the processor 260 may determine that the vehicle travels by temporarily infiltrating the right lane 1222 .

일 실시 예에 따르면, 상기 프로세서(260)는 아래 [수학식 7]를 통해 차량이 오른쪽 차선(1222)을 일시 침범하여 주행하는지 판단할 수 있다.According to an embodiment, the processor 260 may determine whether the vehicle temporarily invades the right lane 1222 and travels through Equation 7 below.

Figure 112021047280929-pat00010
Figure 112021047280929-pat00010

상기 [수학식 7]에서 xtl은 오른쪽 차선의 소실점의 좌표이고, xtr은 왼쪽 차선의 소실점의 좌표이고, wv.p.는 마진이다. 그리고, xbr은 오른쪽 차선(1222)이 영상(1220)의 하단과 교차하는 좌표이다. 그리고, wvehicle는 차량의 폭을 나타내고, β는 일시 침범과 완전 침범을 판단하는 비율이다. 예를 들면, β는 차량의 오른쪽 타이어가 오른쪽 차선(1222)을 침범한 비율을 나타낸다.In [Equation 7], x tl is the coordinate of the vanishing point of the right lane, x tr is the coordinate of the vanishing point of the left lane, and w vp is the margin. And, x br is a coordinate at which the right lane 1222 intersects the lower end of the image 1220 . And, w vehicle represents the width of the vehicle, and β is the ratio of determining temporary invasion and complete invasion. For example, β represents the ratio at which the right tire of the vehicle invades the right lane 1222 .

도 13a를 참조하면, 소실점(921)이 마진(918) 이내에 있고, 왼쪽 차선(1311)이 완전 침범 구간(912) 내에 있고, 오른쪽 차선(1312)이 정상 구간(917) 내에 있는 경우(1310), 상기 프로세서(260)는 차량이 좌측 차선(1211)을 완전 침범하여 주행(예: 완전 침범하여 정상 주행)한다고 판단할 수 있다. Referring to FIG. 13A , when the vanishing point 921 is within the margin 918 , the left lane 1311 is within the full encroachment section 912 , and the right lane 1312 is within the normal section 917 ( 1310 ) , the processor 260 may determine that the vehicle completely invades the left lane 1211 and drives (eg, completely invades and drives normally).

일 실시 예에 따르면, 상기 프로세서(260)는 아래 [수학식 8]를 통해 차량이 좌측 차선(1311)을 완전 침범하여 주행하는지 판단할 수 있다.According to an embodiment, the processor 260 may determine whether the vehicle travels completely in the left lane 1311 through Equation 8 below.

Figure 112021047280929-pat00011
Figure 112021047280929-pat00011

상기 [수학식 8]에서 xtl은 오른쪽 차선의 소실점의 좌표이고, xtr은 왼쪽 차선의 소실점의 좌표이고, wv.p.는 마진이다. 그리고, xbl은 왼쪽 차선(1311)이 영상(1310)의 하단과 교차하는 좌표이다. 그리고, wvehicle는 차량의 폭을 나타내고, α는 일시 침범과 완전 침범을 판단하는 비율이다. 예를 들면, α는 차량의 왼쪽 타이어가 왼쪽 차선(1311)을 침범한 비율을 나타낸다.In [Equation 8], x tl is the coordinate of the vanishing point of the right lane, x tr is the coordinate of the vanishing point of the left lane, and w vp is the margin. And, x bl is a coordinate at which the left lane 1311 intersects the lower end of the image 1310 . And, w vehicle represents the width of the vehicle, and α is the ratio of determining temporary invasion and complete invasion. For example, α represents the ratio at which the left tire of the vehicle invades the left lane 1311 .

도 13b를 참조하면, 소실점(921)이 마진(918) 이내에 있고, 오른쪽 차선(1322)이 완전 침범 구간(913) 내에 있고, 왼쪽 차선(1321)이 정상 구간(916) 내에 있는 경우(1320), 상기 프로세서(260)는 차량이 오른쪽 차선(1322)을 완전 침범하여 주행(예: 완전 침범하여 정상 주행)한다고 판단할 수 있다. Referring to FIG. 13B , when the vanishing point 921 is within the margin 918 , the right lane 1322 is within the full encroachment section 913 , and the left lane 1321 is within the normal section 916 ( 1320 ) , the processor 260 may determine that the vehicle completely invades the right lane 1322 and drives (eg, completely invades and drives normally).

일 실시 예에 따르면, 상기 프로세서(260)는 아래 [수학식 9]를 통해 차량이 오른쪽 차선(1322)을 완전 침범하여 주행하는지 판단할 수 있다.According to an embodiment, the processor 260 may determine whether the vehicle travels by completely encroaching on the right lane 1322 through Equation 9 below.

Figure 112021047280929-pat00012
Figure 112021047280929-pat00012

상기 [수학식 9]에서 xtl은 오른쪽 차선의 소실점의 좌표이고, xtr은 왼쪽 차선의 소실점의 좌표이고, wv.p.는 마진이다. 그리고, xbr은 오른쪽 차선(1322)이 영상(1320)의 하단과 교차하는 좌표이다. 그리고, wvehicle는 차량의 폭을 나타내고, β는 일시 침범과 완전 침범을 판단하는 비율이다. 예를 들면, β는 차량의 오른쪽 타이어가 오른쪽 차선(1322)을 침범한 비율을 나타낸다.In [Equation 9], x tl is the coordinate of the vanishing point of the right lane, x tr is the coordinate of the vanishing point of the left lane, and w vp is the margin. And, x br is a coordinate at which the right lane 1322 intersects the lower end of the image 1320 . And, w vehicle represents the width of the vehicle, and β is the ratio of determining temporary invasion and complete invasion. For example, β represents the rate at which the right tire of the vehicle invades the right lane 1322 .

도 14a를 참조하면, 소실점(921)이 마진(918) 밖에 있고(예: 제2 구간(1432)), 왼쪽 차선(1411)이 일시 침범 구간(914) 내에 있는 경우(1410), 상기 프로세서(260)는 차량이 좌측 차선(1411)을 일시 침범하여 주행(예: 일시 침범하여 비정상 주행)한다고 판단할 수 있다. 14A , when the vanishing point 921 is outside the margin 918 (eg, the second section 1432) and the left lane 1411 is within the temporary intrusion section 914 (1410), the processor ( 260 may determine that the vehicle temporarily invades the left lane 1411 and drives (eg, temporarily invades and drives abnormally).

일 실시 예에 따르면, 상기 프로세서(260)는 아래 [수학식 10]를 통해 차량이 좌측 차선(1411)을 일시 침범하여 주행(예: 일시 침범하여 비정상 주행)하는지 판단할 수 있다.According to an embodiment, the processor 260 may determine whether the vehicle temporarily invades the left lane 1411 and travels (eg, temporarily invades and drives abnormally) through Equation 10 below.

Figure 112021047280929-pat00013
Figure 112021047280929-pat00013

상기 [수학식 10]에서 xtl은 오른쪽 차선의 소실점의 좌표이고, wv.p.는 마진이다. 그리고, xbl은 왼쪽 차선(1411)이 영상(1410)의 하단과 교차하는 좌표이다. 그리고, wvehicle는 차량의 폭을 나타내고, α는 일시 침범과 완전 침범을 판단하는 비율이다. 예를 들면, α는 차량의 왼쪽 타이어가 왼쪽 차선(1411)을 침범한 비율을 나타낸다.In [Equation 10], x tl is the coordinate of the vanishing point of the right lane, and w vp is the margin. And, x bl is a coordinate at which the left lane 1411 intersects the lower end of the image 1410 . And, w vehicle represents the width of the vehicle, and α is the ratio of determining temporary invasion and complete invasion. For example, α represents the ratio at which the left tire of the vehicle invades the left lane 1411 .

도 14b를 참조하면, 소실점(921)이 마진(918) 밖에 있고(예: 제1 구간(1431)), 오른쪽 차선(1421)이 일시 침범 구간(915) 내에 있는 경우(1420), 상기 프로세서(260)는 차량이 오른쪽 차선(1421)을 일시 침범하여 주행(예: 일시 침범하여 비정상 주행)한다고 판단할 수 있다. 14B, when the vanishing point 921 is outside the margin 918 (eg, the first section 1431), and the right lane 1421 is within the temporary intrusion section 915 (1420), the processor ( 260 may determine that the vehicle temporarily invades the right lane 1421 and drives (eg, temporarily invades and drives abnormally).

일 실시 예에 따르면, 상기 프로세서(260)는 아래 [수학식 11]를 통해 차량이 오른쪽 차선(1421)을 일시 침범하여 주행하는지 판단할 수 있다.According to an embodiment, the processor 260 may determine whether the vehicle temporarily invades the right lane 1421 and travels through Equation 11 below.

Figure 112021047280929-pat00014
Figure 112021047280929-pat00014

상기 [수학식 11]에서 xtr은 왼쪽 차선의 소실점의 좌표이고, wv.p.는 마진이다. 그리고, xbr은 오른쪽 차선(1421)이 영상(1420)의 하단과 교차하는 좌표이다. 그리고, wvehicle는 차량의 폭을 나타내고, β는 일시 침범과 완전 침범을 판단하는 비율이다. 예를 들면, β는 차량의 오른쪽 타이어가 오른쪽 차선(1421)을 침범한 비율을 나타낸다.In [Equation 11], x tr is the coordinate of the vanishing point of the left lane, and w vp is the margin. And, x br is a coordinate at which the right lane 1421 intersects the lower end of the image 1420 . And, w vehicle represents the width of the vehicle, and β is the ratio of determining temporary invasion and complete invasion. For example, β represents the rate at which the right tire of the vehicle invades the right lane 1421 .

도 15a를 참조하면, 소실점(921)이 마진(918) 밖에 있고(예: 제2 구간(1432)), 왼쪽 차선(1511)이 완전 침범 구간(912) 내에 있는 경우(1510), 상기 프로세서(260)는 차량이 좌측 차선(1511)을 완전 침범하여 주행(예: 완전 침범하여 비정상 주행)한다고 판단할 수 있다. 15A , when the vanishing point 921 is outside the margin 918 (eg, the second section 1432) and the left lane 1511 is within the completely encroached section 912 (1510), the processor ( 260 may determine that the vehicle completely invades the left lane 1511 and drives (eg, completely invades and drives abnormally).

일 실시 예에 따르면, 상기 프로세서(260)는 아래 [수학식 12]를 통해 차량이 좌측 차선(1511)을 완전 침범하여 주행(예: 일시 침범하여 비정상 주행)하는지 판단할 수 있다.According to an embodiment, the processor 260 may determine whether the vehicle completely invades the left lane 1511 and drives (eg, temporarily invades and drives abnormally) through Equation 12 below.

Figure 112021047280929-pat00015
Figure 112021047280929-pat00015

상기 [수학식 12]에서 xtl은 오른쪽 차선의 소실점의 좌표이고, wv.p.는 마진이다. 그리고, xbl은 왼쪽 차선(1511)이 영상(1510)의 하단과 교차하는 좌표이다. 그리고, wvehicle는 차량의 폭을 나타내고, α는 일시 침범과 완전 침범을 판단하는 비율이다. 예를 들면, α는 차량의 왼쪽 타이어가 왼쪽 차선(1511)을 침범한 비율을 나타낸다.In [Equation 12], x tl is the coordinate of the vanishing point of the right lane, and w vp is the margin. And, x bl is a coordinate at which the left lane 1511 intersects the lower end of the image 1510 . And, w vehicle represents the width of the vehicle, and α is the ratio of determining temporary invasion and complete invasion. For example, α represents the ratio at which the left tire of the vehicle invades the left lane 1511 .

도 15b를 참조하면, 소실점(921)이 마진(918) 밖에 있고(예: 제1 구간(1431)), 오른쪽 차선(1521)이 완전 침범 구간(913) 내에 있는 경우(1520), 상기 프로세서(260)는 차량이 오른쪽 차선(1521)을 완전 침범하여 주행(예: 완전 침범하여 비정상 주행)한다고 판단할 수 있다. 15B , when the vanishing point 921 is outside the margin 918 (eg, the first section 1431) and the right lane 1521 is within the completely encroached section 913 (1520), the processor ( 260 may determine that the vehicle completely invades the right lane 1521 and drives (eg, completely invades and drives abnormally).

일 실시 예에 따르면, 상기 프로세서(260)는 아래 [수학식 13]를 통해 차량이 오른쪽 차선(1521)을 완전 침범하여 주행하는지 판단할 수 있다.According to an embodiment, the processor 260 may determine whether the vehicle completely invades the right lane 1521 and travels through Equation 13 below.

Figure 112021047280929-pat00016
Figure 112021047280929-pat00016

상기 [수학식 13]에서 xtr은 왼쪽 차선의 소실점의 좌표이고, wv.p.는 마진이다. 그리고, xbr은 오른쪽 차선(1421)이 영상(1420)의 하단과 교차하는 좌표이다. 그리고, wvehicle는 차량의 폭을 나타내고, β는 일시 침범과 완전 침범을 판단하는 비율이다. 예를 들면, β는 차량의 오른쪽 타이어가 오른쪽 차선(1421)을 침범한 비율을 나타낸다.In [Equation 13], x tr is the coordinate of the vanishing point of the left lane, and w vp is the margin. And, x br is a coordinate at which the right lane 1421 intersects the lower end of the image 1420 . And, w vehicle represents the width of the vehicle, and β is the ratio of determining temporary invasion and complete invasion. For example, β represents the rate at which the right tire of the vehicle invades the right lane 1421 .

일 실시 예에 따르면, 상기 프로세서(260)는 상기 [수학식 1] 내지 [수학식 13]을 통해 차량이 차로내 정상 주행인지, 일시 침범(예: 좌측 일시 침범 또는 우측 일시 침범) 정상 주행인지, 완전 침범(예: 좌측 완전 침범 또는 우측 완전 침범) 정상 주행인지, 일시 침범 비정상 주행인지, 완전 침범 비정상 주행인지를 판단할 수 있다.According to an embodiment, the processor 260 determines whether the vehicle is driving normally in the lane or temporarily intruding (eg, temporarily violating the left side or temporarily violating the right side) normal driving through [Equation 1] to [Equation 13]. , it is possible to determine whether the driving is normal, whether it is completely invaded (eg, completely invaded the left side or completely invaded the right side), whether it is an abnormal driving with temporary invasion, or abnormal driving with complete invasion.

일 실시 예에 따르면, 상기 프로세서(260)는 차선인지가 불가능한지를 식별할 수 있다. 예를 들면, 통상적으로 차선은 자동차 주행 방향의 긴 선으로 간주되기 때문에, 화면을 가로지르는 선은 차선으로 인지되지 않거나, 또는 차선이 보이지 않는 경우, 상기 프로세서(260)는 차선인지가 불가능한 것으로 판단할 수 있다.According to an embodiment, the processor 260 may identify whether a lane is impossible. For example, since a lane is generally regarded as a long line in the driving direction of a vehicle, when a line crossing the screen is not recognized as a lane or the lane is not visible, the processor 260 determines that it is impossible to recognize a lane can do.

일 실시 예에 따르면, 상기 프로세서(260)는 차선을 침범한 시각을 기준으로 일정 시간 내의 주행 영상을 저장할 수 있다(S1018). 상기 프로세서(260)는 도 11 내지 도 15에 개시된 내용에 기반하여 차량이 차선을 침범하는 것으로 판단되면, 상기 차선을 침범한 시각을 기준으로 일정 시간 내의 주행 영상을 저장부(240)에 저장할 수 있다.According to an embodiment, the processor 260 may store the driving image within a predetermined time based on the time when the lane is invaded ( S1018 ). When it is determined that the vehicle invades the lane based on the contents disclosed in FIGS. 11 to 15 , the processor 260 may store the driving image within a predetermined time in the storage unit 240 based on the time at which the lane is violated. there is.

예를 들면, 상기 프로세서(260)는 카메라(210)를 통해 획득된 주행 영상을 실시간으로 저장부(240)에 저장(예: 일시적)할 수 있다. 이후, 차량이 차선을 침범하는 것으로 판단되면, 상기 차선을 침범한 시각을 판단하여 상기 저장된 주행 영상 중에서 상기 판단된 시각을 기준으로 이전과 이후의 일정 시간(예: 30초)에 해당되는 주행 영상을 별도로 저장할 수 있다. 상기 별도로 저장된 주행 영상은 상기 저장부(240)의 저장 용량이 부족해도 삭제되지 않을 수 있다.For example, the processor 260 may store (eg, temporarily) the driving image acquired through the camera 210 in the storage unit 240 in real time. Thereafter, when it is determined that the vehicle invades the lane, a driving image corresponding to a predetermined time (eg, 30 seconds) before and after the determined time from among the stored driving images is determined by determining the time at which the vehicle has invaded the lane. can be stored separately. The separately stored driving image may not be deleted even if the storage capacity of the storage unit 240 is insufficient.

일 실시 예에 따르면, 상기 프로세서(260)는 통신 채널이 연결되는지 식별할 수 있다(S1020). 예를 들면, 상기 차량이 차고지(예: 차량 주행 정보를 수집하는 서버가 위치한 지역)에 인접한 곳에 위치하는 경우, 상기 프로세서(260)는 상기 통신부(230)를 통해 상기 서버와 통신 채널을 셋업할 수 있다. 상기 프로세서(260)는 저장부(240)에 저장된 적어도 하나의 영상을 상기 서버로 전송하기 위해 상기 서버와 통신 채널(예: 3G, 4G, WiFi, Bluetooth 등)을 설정할 수 있다.According to an embodiment, the processor 260 may identify whether a communication channel is connected (S1020). For example, when the vehicle is located adjacent to a garage (eg, an area where a server collecting vehicle driving information is located), the processor 260 may set up a communication channel with the server through the communication unit 230 . can The processor 260 may establish a communication channel (eg, 3G, 4G, WiFi, Bluetooth, etc.) with the server in order to transmit at least one image stored in the storage unit 240 to the server.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 연결된 통신 채널을 통해 저장된 주행 영상을 전송할 수 있다(S1022). 상기 프로세서(260)는 상기 설정된 통신 채널을 통해 저장부(240)에 저장된 적어도 하나의 영상을 상기 서버로 전송할 수 있다. 상기 프로세서(260)는 상기 저장부(240)에 저장된 적어도 하나의 영상이 상기 서버로 전송되는 동안에 상기 통신 채널을 유지할 수 있다.According to an embodiment, the processor 260 may transmit the stored driving image through the connected communication channel (S1022). The processor 260 may transmit at least one image stored in the storage unit 240 to the server through the set communication channel. The processor 260 may maintain the communication channel while at least one image stored in the storage unit 240 is transmitted to the server.

도 16은 본 발명의 일 실시 예에 따른 차량이 좌측 차선으로 변경할 경우의 GPS 진행 방향의 변화를 나타낸 예시도이다.16 is an exemplary diagram illustrating a change in a GPS travel direction when a vehicle changes to a left lane according to an embodiment of the present invention.

도 16을 참조하면, 차량이 왼쪽으로 차로를 변경하여(예: 2차로에서 1차로로 변경) 주행하는 경우, 주행 방향의 각도는 일시적으로 줄었다가 다시 원래의 값으로 돌아온다(1610). 상기 프로세서(260)는 원래의 각도가 기준 값 이하인 경우, 주행 방향이 유지된 것으로 판단할 수 있다. 주행 방향의 각도의 피크 값은 주행 속도에 따라 다를 수 있다. 예를 들면, 상기 피크 값은 고속 주행 시에는 작고 저속 주행 시에는 클 수 있다.Referring to FIG. 16 , when the vehicle drives by changing the lane to the left (eg, changing from the second lane to the first lane), the angle of the driving direction temporarily decreases and then returns to the original value ( 1610 ). When the original angle is equal to or less than the reference value, the processor 260 may determine that the driving direction is maintained. The peak value of the angle of the traveling direction may be different depending on the traveling speed. For example, the peak value may be small during high-speed driving and large during low-speed driving.

도 17은 본 발명의 일 실시 예에 따른 차량이 유턴하는 경우의 GPS 진행 방향의 변화를 나타낸 예시도이다.17 is an exemplary diagram illustrating a change in a GPS traveling direction when a vehicle makes a U-turn according to an embodiment of the present invention.

도 17을 참조하면, 차량이 유턴하는 경우, 차량의 회전 각도는 -180o로 변하게 된다. 이 경우, 회전 각도가 0o 밑으로 내려가면 360o 를 기준으로 롤-오버(roll-over)가 될 수 있다. 이를 고려하여, 상기 프로세서(260)는 각도 변화(예: -180o)가 기준치 이하가 되면, 주행 방향이 역전(1710)된 것으로 판단할 수 있다.Referring to FIG. 17 , when the vehicle makes a U-turn, the rotation angle of the vehicle changes to -180 o . In this case, if the rotation angle falls below 0 o , roll-over may be performed based on 360 o . In consideration of this, when the angle change (eg, -180 o ) is less than or equal to the reference value, the processor 260 may determine that the driving direction is reversed (1710).

도 18은 본 발명의 일 실시 예에 따른 GPRMC 메시지의 포맷과 각 필드의 정의를 나타낸 예시도이다.18 is an exemplary diagram illustrating a format of a GPRMC message and definitions of each field according to an embodiment of the present invention.

일반적으로 GPS(global positioning system)은 NMEA(National Marine Electronics Association)-0183이라는 표준 포맷의 데이터를 전송한다. NMEA의 표준은 해양 전자 장비 기자재들 간의 통신을 위해 정의된 전기적 인터페이스 및 데이터 프로토콜이다. NMEA-0183 프로토콜의 GPRMC(Recommended Minimum data라 칭하기도 함) 메시지 중, Course over ground 필드(1810, 1820)는 진북 방향을 기준으로 시계 방향으로 진행 방향을 360o도로 표시한다. In general, a global positioning system (GPS) transmits data in a standard format called NMEA (National Marine Electronics Association)-0183. The NMEA standard is an electrical interface and data protocol defined for communication between marine electronic equipment and equipment. In the GPRMC (referred to as recommended minimum data) message of the NMEA-0183 protocol, the Course over ground fields 1810 and 1820 indicate the progress direction 360 degrees clockwise based on the true north direction.

예를 들면, 차량이 왼쪽으로 회전하면 각도가 줄어들고, 오른쪽으로 회전하면 각도가 늘어난다(360↔전환).For example, when the vehicle turns left, the angle decreases, and when the vehicle turns right, the angle increases (360↔ conversion).

일 실시 예에 따르면, 상기 프로세서(260)는 GPS 신호를 이용하여 차량의 주행 방향(예: 회전)을 식별할 수 있다.According to an embodiment, the processor 260 may identify a driving direction (eg, rotation) of the vehicle using a GPS signal.

도 19는 본 발명의 일 실시 예에 따른 차량의 회전을 식별하는 예시도이다. 도 20은 본 발명의 일 실시 예에 따른 차량이 좌측 차선을 변경할 경우의 요 레이트 변화를 나타낸 예시도이다. 도 21은 본 발명의 일 실시 예에 따른 차량이 유턴할 경우의 요 레이트 변화를 나타낸 예시도이다.19 is an exemplary view for identifying the rotation of a vehicle according to an embodiment of the present invention. 20 is an exemplary diagram illustrating a yaw rate change when the vehicle changes a left lane according to an embodiment of the present invention. 21 is an exemplary view illustrating a yaw rate change when the vehicle makes a U-turn according to an embodiment of the present invention.

도 19, 도 20, 및 도 21을 참조하면, 차량(101)은 주행 방향을 기준으로 종 방향으로 회전(예: Roll)할 수 있거나, 수직 방향(1930)으로 회전(예: Yaw)할 수 있거나, 또는 횡 방향(1910)으로 회전(예: Pitch)할 수 있다. 차량(101)은 종 방향(1920)으로 회전(예: Roll), 수직 방향으로 회전(예: Yaw), 및 횡 방향으로 회전(예: Pitch)이 복합적으로 이루어질 수 있다.19, 20, and 21 , the vehicle 101 may rotate in the longitudinal direction (eg, Roll) based on the driving direction or rotate in the vertical direction 1930 (eg, Yaw). or may be rotated (eg, pitched) in the transverse direction 1910 . The vehicle 101 may be rotated in the longitudinal direction 1920 (eg, Roll), rotated in a vertical direction (eg, Yaw), and rotated in a transverse direction (eg, Pitch) in combination.

차량(101)이 좌우로 회전하는 움직임을 요(Yaw)라고 하고, 시간에 따라 좌우로 회전하는 각의 변화량을 요 레이트(Yaw Rate)이라 한다. 이러한 요 레이트는 센서부(220)(예: 관성 센서)에서 출력된다. 또는 상기 요 레이트는 상기 차량(101)(또는 장치(200))에 내장된 센서부(220)에서 출력되거나, 또는 충격을 감지하기 위한 가속도 센서에서 각회전률 센서에서 출력될 수 있다.The movement in which the vehicle 101 rotates left and right is called yaw, and the amount of change in the angle of rotation in the left and right with time is called yaw rate. This yaw rate is output from the sensor unit 220 (eg, an inertial sensor). Alternatively, the yaw rate may be output from the sensor unit 220 built into the vehicle 101 (or the device 200), or may be output from an angular rotation rate sensor from an acceleration sensor for detecting an impact.

예를 들면, 차량(101)이 직진으로 주행하는 경우 요(Yaw)는 0이며, 오른쪽으로 회전하는 경우를 (+), 왼쪽으로 회전하는 경우를 (-) 부호로 표시한다.For example, when the vehicle 101 travels in a straight line, yaw is 0, and a case in which the vehicle 101 rotates to the right is indicated by (+) and a case in which the vehicle 101 rotates to the left is indicated by a (-) sign.

상기 프로세서(260)는 관심을 시간 구간 동안 차량(101)의 진행 방향의 변화는 일정 시간 간격(Δt)으로 측정한 요 레이트(Yaw Rate)를 누적하여 계산할 수 있다.The processor 260 may calculate the change in the traveling direction of the vehicle 101 during the time period of interest by accumulating the yaw rate measured at a predetermined time interval Δt.

일 실시 예에 따르면, 차량(101)이 주행 중에 왼쪽으로 차선을 변경한 후, 왼쪽 차선에서 원래의 주행 방향을 유지하는 경우(2010), 상기 프로세서(260)는 요 레이트가 번갈아 (-)와 (+)값이 되는 것을 판단한다. 그리고, 상기 프로세서(260)는 이 시간 구간에서의 누적 회전각이 기준치 이하면, 주행 방향이 유지되는 것으로 판단할 수 있다.According to an embodiment, when the vehicle 101 changes a lane to the left while driving and maintains the original driving direction in the left lane (2010), the processor 260 changes the yaw rate to (-) and It is judged to be a (+) value. In addition, the processor 260 may determine that the driving direction is maintained when the accumulated rotation angle in this time section is less than or equal to a reference value.

일 실시 예에 따르면, 차량(101)이 유턴하는 경우, 유턴하는 구간 동안의 누적된 회전각은 약 -180o에 가깝다(누적 회전각은 +180o). 상기 프로세서(260)는 이 시간 구간에서의 누적 회전각(2111)이 기준치 이하이면, 차량(101)의 주행 방향이 반대인 것으로 판단할 수 있다(2110). According to an embodiment, when the vehicle 101 makes a U-turn, the accumulated rotation angle during the U-turn section is close to about -180 o (the accumulated rotation angle is +180 o ). The processor 260 may determine that the driving direction of the vehicle 101 is opposite when the accumulated rotation angle 2111 in this time period is equal to or less than the reference value ( 2110 ).

도 22는 본 발명의 일 실시 예에 따른 차량의 중앙 차선 침범을 식별하는 과정을 나타낸 순서도이다. 도 23은 본 발명의 일 실시 예에 따른 차량의 중앙 차선 침범을 식별하는 과정을 나타낸 예시도이다.22 is a flowchart illustrating a process of identifying a vehicle intrusion into a center lane according to an embodiment of the present invention. 23 is an exemplary diagram illustrating a process of identifying a vehicle intrusion into a center lane according to an embodiment of the present invention.

이하, 도 22를 참조하여, 본 발명의 일 실시 예에 따른 차량의 중앙 차선 침범을 식별하는 과정을 상세히 설명하면 다음과 같다.Hereinafter, with reference to FIG. 22 , a process for identifying an intrusion of a center lane of a vehicle according to an embodiment of the present invention will be described in detail as follows.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 차로 내에서 정상 주행 상태인지를 식별할 수 있다(S2210). 도 23의 (a)에 도시된 바와 같이, 상기 프로세서(260)는 소실점(2313)이 마진(2314) 이내에 있고, 중앙 차선(2311)이 정상 구간(2315) 내에 있고, 일반 차선(2312)이 정상 구간(2316) 내에 있는 경우(2310), 차량이 차로 내에서 정상 주행하고 있는 것으로 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 5]를 통해 차량이 차로내 정상 주행인지 판단할 수 있다.According to an embodiment, the processor 260 may identify whether the vehicle is in a normal driving state in a lane (S2210). As shown in (a) of FIG. 23 , in the processor 260 , the vanishing point 2313 is within the margin 2314 , the center lane 2311 is within the normal section 2315 , and the general lane 2312 is When the vehicle is within the normal section 2316 ( 2310 ), it may be determined that the vehicle is normally driving within the lane. The processor 260 may determine whether the vehicle is normally driving within the lane through Equation 5.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 일시 침범 주행 상태로 진행됨을 식별할 수 있다(S2212). 도 23의 (b)에 도시된 바와 같이, 상기 프로세서(260)는 소실점(2323)이 마진(2324) 이내에 있고, 중앙 차선(2321)이 일시 침범 구간(2325) 내에 있고, 일반 차선(2322)이 정상 구간(2326) 내에 있는 경우(2320), 차량이 중앙 차선(2321)을 일시 침범하여 주행하고 있는 것으로 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 6] 및 [수학식 7]을 통해 차량이 중앙 차선(2321)을 일시 침범하여 주행하는지 판단할 수 있다. According to an embodiment, the processor 260 may identify that the vehicle proceeds to a temporary intrusion driving state (S2212). As shown in (b) of FIG. 23 , in the processor 260 , the vanishing point 2323 is within the margin 2324 , the center lane 2321 is within the temporary intrusion section 2325 , and the general lane 2322 . When the vehicle is within the normal section 2326 ( 2320 ), it may be determined that the vehicle is traveling by temporarily infiltrating the center lane 2321 . The processor 260 may determine whether the vehicle temporarily invades the center lane 2321 and travels through [Equation 6] and [Equation 7].

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 완전 침범 주행 상태로 진행됨을 식별할 수 있다(S2214). 도 23의 (c)에 도시된 바와 같이, 상기 프로세서(260)는 소실점(2333)이 마진(2334) 이내에 있고, 중앙 차선(2311)이 완전 침범 구간(2335) 내에 있고, 일반 차선(2332)이 정상 구간(2336) 내에 있는 경우(2330), 차량이 중앙 차선(2331)을 완전 침범하여 주행(예: 완전 침범하여 정상 주행)한다고 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 8] 및 [수학식 9]를 통해 차량이 중앙 차선(2331)을 완전 침범하여 주행하는지 판단할 수 있다.According to an embodiment, the processor 260 may identify that the vehicle proceeds to a fully intrusive driving state (S2214). As shown in (c) of FIG. 23 , in the processor 260 , the vanishing point 2333 is within the margin 2334 , the center lane 2311 is within the completely encroached section 2335 , and the general lane 2332 . When the vehicle is within the normal section 2336 ( 2330 ), it may be determined that the vehicle completely invades the center lane 2331 and drives (eg, completely invades and drives normally). The processor 260 may determine whether the vehicle completely invades the center lane 2331 and travels through Equation 8 and Equation 9 above.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 완전 침범 주행 상태로 미리 결정된 시간 동안 주행하는지 식별할 수 있다(S2216). 상기 프로세서(260)는 상기 과정들(S2210, S2212, S2214)이 순차적으로 발생되는 것을 식별할 수 있다. 상기 프로세서(260)는 상기 과정들(S2210, S2212, S2214)이 순차적으로 발생된 후, 차량이 완전 침범 주행 상태로 미리 결정된 시간(예: 15초) 동안 유지되는지를 식별할 수 있다.According to an embodiment, the processor 260 may identify whether the vehicle is driving for a predetermined period of time in a completely intrusive driving state (S2216). The processor 260 may identify that the processes S2210, S2212, and S2214 are sequentially generated. After the processes S2210, S2212, and S2214 are sequentially performed, the processor 260 may identify whether the vehicle is maintained in a completely intrusive driving state for a predetermined time (eg, 15 seconds).

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 중앙 차선을 침범한 것으로 판단할 수 있다(S2218). 상기 프로세서(260)는 상기 과정들(S2210, S2212, S2214)이 순차적으로 발생된 후, 차량이 완전 침범 주행 상태로 미리 결정된 시간(예: 15초) 동안 유지되면, 차량이 중앙 차선을 침범한 것으로 판단할 수 있다.According to an embodiment, the processor 260 may determine that the vehicle has invaded the center lane (S2218). After the processes S2210, S2212, and S2214 are sequentially generated, the processor 260 determines that the vehicle has invaded the center lane when the vehicle is maintained for a predetermined period of time (eg, 15 seconds) in a fully intrusive driving state. can be judged as

예를 들면, 상기 프로세서(260)는 차량이 완전 침범 상태로 일정 시간(예: 15초) 동안 지속적으로 유지되는 것으로 판단되면, 중앙 차선을 침범한 것으로 판단할 수 있다. For example, when it is determined that the vehicle is continuously maintained for a predetermined period of time (eg, 15 seconds) in a completely intrusive state, the processor 260 may determine that the vehicle has invaded the center lane.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 차선을 침범한 시각을 기준으로 미리 결정된 시간에 해당되는 주행 영상을 저장할 수 있다(S2220). 상기 프로세서(260)는 중앙 차선을 침범한 시각(예: 1시 30분)을 기준으로 미리 결정된 시간(예: 중앙 차선을 침범하기 이전의 시각(예: 1시 29분 45초)에서 중앙 차선을 침범한 이후의 시각(예: 1시 30분 15초)) 동안에 획득된 주행 영상을 저장부(240)에 저장할 수 있다. 상기 미리 결정된 시간은 가변적으로 조절될 수 있다.According to an embodiment, the processor 260 may store a driving image corresponding to a predetermined time based on the time when the vehicle invades the lane (S2220). The processor 260 is configured to operate in the center lane at a predetermined time (eg, at a time before crossing the center lane (eg 1:29:45 seconds) based on the time (eg 1:30) when the center lane is violated). The driving image acquired during the time (eg, 1:30:15) after the intrusion of the may be stored in the storage unit 240 . The predetermined time may be variably adjusted.

일 실시 예에 따르면, 상기 프로세서(260)는 상기 과정들(S2210 내지 S2214) 중 임의 시점에 센서부(220)(예: GPS, 요 레이트(Yaw Rate) 센서)를 통해 차량의 진행 방향이 유지되는지를 식별할 수 있다.According to an embodiment, the processor 260 maintains the traveling direction of the vehicle through the sensor unit 220 (eg, GPS, yaw rate sensor) at any time during the processes S2210 to S2214. It can be identified whether

도 24는 본 발명의 일 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 순서도이다. 도 25는 본 발명의 일 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 예시도이다.24 is a flowchart illustrating a process of identifying driving in an opposite lane of a vehicle according to an embodiment of the present invention. 25 is an exemplary diagram illustrating a process of identifying driving in an opposite lane of a vehicle according to an embodiment of the present invention.

도 24 및 도 25는 운전자가 고의로 중앙 차선을 넘는 경우에서의 반대 차로 주행을 식별하는 예이다.24 and 25 are examples of identifying driving in the opposite lane when the driver intentionally crosses the center lane.

이하, 도 24 및 도 25를 참조하여, 본 발명의 일 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 상세히 설명하면 다음과 같다.Hereinafter, with reference to FIGS. 24 and 25 , a process for identifying driving in the opposite lane of a vehicle according to an embodiment of the present invention will be described in detail as follows.

일 실시 예에 따르면, 상기 프로세서(260)는 좌측이 중앙 차선인 차로 내에 차량이 정상 주행 상태임을 식별할 수 있다(S2410). According to an embodiment, the processor 260 may identify that the vehicle is in a normal driving state in a lane in which the left side is the center lane (S2410).

도 25의 (a)에 도시된 바와 같이, 소실점(2513)이 마진(2514) 이내에 있고, 중앙 차선(2511)이 정상 구간(2515) 내에 있고, 일반 차선(2512)이 정상 구간(2516) 내에 있는 경우(2510), 상기 프로세서(260)는 차량은 차로 내에서 정상 주행한다고 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 5]를 통해 차량이 차로내 정상 주행인지 판단할 수 있다.As shown in (a) of FIG. 25 , the vanishing point 2513 is within the margin 2514 , the center lane 2511 is within the normal section 2515 , and the general lane 2512 is within the normal section 2516 . If there is (2510), the processor 260 may determine that the vehicle normally travels within the lane. The processor 260 may determine whether the vehicle is normally driving within the lane through Equation 5.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 완전 침범 주행 상태로 진행됨을 식별할 수 있다(S2412). According to an embodiment, the processor 260 may identify that the vehicle proceeds to a completely intrusive driving state (S2412).

도 25의 (b)에 도시된 바와 같이, 소실점(2523)이 마진(2524) 이내에 있고, 중앙 차선(2521)이 완전 침범 구간(2525) 내에 있고, 일반 차선(2522)이 정상 구간(2526) 내에 있는 경우(2520), 상기 프로세서(260)는 차량이 중앙 차선(2321)을 완전 침범하여 주행하고 있는 것으로 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 8] 및 [수학식 9]를 통해 차량이 중앙 차선(2521)을 완전 침범하여 주행하는지 판단할 수 있다.As shown in (b) of FIG. 25 , the vanishing point 2523 is within the margin 2524 , the center lane 2521 is within the full encroachment section 2525 , and the general lane 2522 is the normal section 2526 . In the case of being inside the vehicle ( 2520 ), the processor 260 may determine that the vehicle is driving while completely encroaching on the center lane 2321 . The processor 260 may determine whether the vehicle completely invades the center lane 2521 and travels through Equation 8 and Equation 9 above.

일 실시 예에 따르면, 상기 프로세서(260)는 우측이 중앙 차선인 차로 내에 차량이 정상 주행 상태임을 식별할 수 있다(S2414). According to an embodiment, the processor 260 may identify that the vehicle is in a normal driving state in a lane in which the right side is the center lane ( S2414 ).

도 25의 (c)에 도시된 바와 같이, 소실점(2533)이 마진(2534) 이내에 있고, 일반 차선(2531)이 정상 구간(2535) 내에 있고, 중앙 차선(2532)이 정상 구간(2536) 내에 있는 경우(2530), 상기 프로세서(260)는 차량이 중앙 차선(2321)을 완전 침범하여 주행하고 있는 것으로 판단할 수 있다. 이러한 경우는 상기 차량이 중앙 차선을 완전히 침범하여 역주행 하는 경우이다. 상기 프로세서(260)는 상기 [수학식 8] 및 [수학식 9]를 통해 차량이 중앙 차선(2521)을 완전 침범하여 주행(예: 역주행)하는지 판단할 수 있다.As shown in (c) of FIG. 25 , the vanishing point 2533 is within the margin 2534 , the general lane 2531 is within the normal section 2535 , and the center lane 2532 is within the normal section 2536 . If there is ( 2530 ), the processor 260 may determine that the vehicle is driving while completely infiltrating the center lane 2321 . In this case, the vehicle completely invades the center lane and travels in the reverse direction. The processor 260 may determine whether the vehicle completely invades the center lane 2521 and travels (eg, reverses driving) through [Equation 8] and [Equation 9].

일 실시 예에 따르면, 상기 프로세서(260)는 우측이 중앙 차선인 차로내에 차량이 정상 주행 상태로 미리 결정된 시간 동안 주행하는지 식별할 수 있다(S2416). 상기 프로세서(260)는 상기 과정들(S2410, S2412, S2414)이 순차적으로 발생되는 것을 식별할 수 있다. 상기 프로세서(260)는 상기 과정들(S2410, S2412, S2414)이 순차적으로 발생된 후, 차량이 정상 주행 상태로 미리 결정된 시간(예: 15초) 동안 유지되는지를 식별할 수 있다.According to an embodiment, the processor 260 may identify whether the vehicle travels in a normal driving state for a predetermined time in a lane whose right side is the center lane ( S2416 ). The processor 260 may identify that the processes S2410, S2412, and S2414 are sequentially generated. The processor 260 may identify whether the vehicle is maintained in a normal driving state for a predetermined period of time (eg, 15 seconds) after the processes S2410 , S2412 , and S2414 are sequentially performed.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 반대 차로로 주행하고 있는 것으로 판단할 수 있다(S2418). 상기 프로세서(260)는 상기 과정들(S2410, S2412, S2414)이 순차적으로 발생된 후, 차량이 정상 주행 상태로 미리 결정된 시간(예: 15초) 동안 유지되면, 차량이 반대 차로로 주행하고 있는 것으로 판단할 수 있다.According to an embodiment, the processor 260 may determine that the vehicle is traveling in the opposite lane (S2418). The processor 260 determines that after the processes S2410, S2412, and S2414 occur sequentially, when the vehicle is maintained in a normal driving state for a predetermined time (eg, 15 seconds), the vehicle is driving in the opposite lane can be judged as

예를 들면, 상기 프로세서(260)는 차량이 중앙 차선을 침범한 상태로 일정 시간(예: 15초) 동안 지속적으로 유지되는 것으로 판단되면, 반대 차로로 주행하고 있는 것으로 판단할 수 있다.For example, when it is determined that the vehicle is continuously maintained for a predetermined time (eg, 15 seconds) in a state in which the vehicle has invaded the center lane, it may be determined that the vehicle is traveling in the opposite lane.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 반대 차로로 주행한 시각을 기준으로 미리 결정된 시간에 해당되는 주행 영상을 저장할 수 있다(S2420). 상기 프로세서(260)는 반대 차로로 주행한 시각(예: 1시 30분)을 기준으로 미리 결정된 시간(예: 중앙 차선을 침범하기 이전의 시각(예: 1시 29분 45초)에서 반대 차로로 주행한 이후의 시각(예: 1시 30분 15초)) 동안에 획득된 주행 영상을 저장부(240)에 저장할 수 있다. 상기 미리 결정된 시간은 가변적으로 조절될 수 있다.According to an embodiment, the processor 260 may store a driving image corresponding to a predetermined time based on a time when the vehicle is driven in the opposite lane ( S2420 ). The processor 260 is configured to operate in the opposite lane at a predetermined time (eg, a time prior to intrusion of the center lane (eg 1:29:45)) based on the time (eg, 1:30) of driving in the opposite lane. The driving image acquired during the time (eg, 1:30:15 seconds) after driving to . The predetermined time may be variably adjusted.

도 26은 본 발명의 다른 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 순서도이다. 도 27은 본 발명의 다른 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 예시도이다.26 is a flowchart illustrating a process of identifying driving in an opposite lane of a vehicle according to another embodiment of the present invention. 27 is an exemplary diagram illustrating a process of identifying driving in an opposite lane of a vehicle according to another embodiment of the present invention.

도 26 및 도 27은 운전자가 방향을 구분하지 못하여 중앙 차선을 넘는 경우에서의 반대 차로 주행을 식별하는 예이다.26 and 27 are examples of identifying driving in the opposite lane when the driver crosses the center lane due to inability to distinguish directions.

이하, 도 26 및 도 27을 참조하여, 본 발명의 다른 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 상세히 설명하면 다음과 같다.Hereinafter, with reference to FIGS. 26 and 27 , a process for identifying driving in an opposite lane of a vehicle according to another embodiment of the present invention will be described in detail as follows.

일 실시 예에 따르면, 상기 프로세서(260)는 좌측 및 우측이 일반 차선인 차로 내에 차량이 정상 주행 상태임을 식별할 수 있다(S2610). According to an embodiment, the processor 260 may identify that the vehicle is in a normal driving state in a lane in which the left and right sides are a normal lane ( S2610 ).

도 27의 (a)에 도시된 바와 같이, 소실점(2713)이 마진(2714) 이내에 있고, 일반 차선들(2711, 2712) 각각이 정상 구간(2715, 2716) 내에 있는 경우(2710), 상기 프로세서(260)는 차량은 차로 내에서 정상 주행한다고 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 5]를 통해 차량이 차로내 정상 주행인지 판단할 수 있다.As shown in (a) of FIG. 27 , when the vanishing point 2713 is within the margin 2714 and the normal lanes 2711 and 2712 are respectively within the normal sections 2715 and 2716 ( 2710 ), the processor At 260 , it may be determined that the vehicle normally travels within the lane. The processor 260 may determine whether the vehicle is normally driving within the lane through Equation 5.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 우측 완전 침범 주행 상태로 진행됨을 식별할 수 있다(S2612). According to an embodiment, the processor 260 may identify that the vehicle proceeds to the right-side complete intrusion driving state (S2612).

도 27의 (b)에 도시된 바와 같이, 소실점(2723)이 마진(2724) 이내에 있고, 좌측 일반 차선(2721)이 정상 구간(2725) 내에 있고, 우측 일반 차선(2722)이 완전 침범 구간(2726) 내에 있는 경우(2720), 상기 프로세서(260)는 차량은 중앙 차선을 완전히 침범하여 차로 내에서 정상 주행한다고 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 9]를 통해 차량이 중앙 차선을 완전히 침범하여 정상 주행인지 판단할 수 있다.As shown in (b) of FIG. 27, the vanishing point 2723 is within the margin 2724, the left general lane 2721 is within the normal section 2725, and the right general lane 2722 is completely encroached on ( 2726), the processor 260 may determine that the vehicle completely invades the center lane and normally travels within the lane. The processor 260 may determine whether the vehicle is driving normally by completely encroaching on the center lane through [Equation 9].

일 실시 예에 따르면, 상기 프로세서(260)는 우측이 중앙 차선인 차로 내에 차량이 정상 주행 상태임을 식별할 수 있다(S2614). According to an embodiment, the processor 260 may identify that the vehicle is in a normal driving state in a lane in which the right side is a center lane (S2614).

도 27의 (c)에 도시된 바와 같이, 소실점(2733)이 마진(2734) 이내에 있고, 좌측 일반 차선(2731)이 정상 구간(2735) 내에 있고, 우측 중앙 차선(2732)이 정상 구간(2736) 내에 있는 경우(2730), 상기 프로세서(260)는 우측이 중앙 차선인 차로 내에 차량이 정상 주행 상태인 것으로 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 5]를 통해 차량이 중앙 차선을 완전히 침범하여 정상 주행인지 판단할 수 있다.As shown in (c) of FIG. 27 , the vanishing point 2733 is within the margin 2734 , the left general lane 2731 is within the normal section 2735 , and the right center lane 2732 is within the normal section 2736 . ), the processor 260 may determine that the vehicle is in a normal driving state in a lane in which the right side is a center lane. The processor 260 may determine whether the vehicle is driving normally by completely encroaching on the center lane through [Equation 5].

일 실시 예에 따르면, 상기 프로세서(260)는 우측이 중앙 차선인 차로 내에 차량이 정상 주행 상태로 미리 결정된 시간 동안 주행하는지 식별할 수 있다(S2616). 상기 프로세서(260)는 상기 과정들(S2610, S2612, S2614)이 순차적으로 발생되는 것을 식별할 수 있다. 상기 프로세서(260)는 상기 과정들(S2610, S2612, S2614)이 순차적으로 발생된 후, 우측이 중앙 차선인 차로 내에 차량이 정상 주행 상태로 미리 결정된 시간(예: 15초) 동안 유지되는지를 식별할 수 있다.According to an embodiment, the processor 260 may identify whether the vehicle travels in a normal driving state for a predetermined time in a lane in which the right side is the center lane ( S2616 ). The processor 260 may identify that the processes S2610, S2612, and S2614 are sequentially generated. After the processes S2610, S2612, and S2614 are sequentially generated, the processor 260 identifies whether the vehicle is maintained in a normal driving state for a predetermined time (eg, 15 seconds) in a lane whose right side is the center lane. can do.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 반대 차로로 주행하고 있는 것으로 판단할 수 있다(S2618). 상기 프로세서(260)는 상기 과정들(S2610, S2612, S2614)이 순차적으로 발생된 후, 차량이 정상 주행 상태로 미리 결정된 시간(예: 15초) 동안 유지되면, 차량이 반대 차로로 주행하고 있는 것으로 판단할 수 있다.According to an embodiment, the processor 260 may determine that the vehicle is traveling in the opposite lane (S2618). The processor 260 determines that after the processes (S2610, S2612, and S2614) occur sequentially, when the vehicle is maintained in a normal driving state for a predetermined time (eg, 15 seconds), the vehicle is driving in the opposite lane can be judged as

예를 들면, 상기 프로세서(260)는 차량이 반대 차로로 주행하고 있는 상태로 일정 시간(예: 15초) 동안 지속적으로 유지되는 것으로 판단되면, 차량이 반대 차로로 주행하고 있는 것으로 결정할 수 있다.For example, if it is determined that the vehicle is continuously traveling in the opposite lane for a predetermined time (eg, 15 seconds), the processor 260 may determine that the vehicle is traveling in the opposite lane.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 반대 차로로 주행한 시각을 기준으로 미리 결정된 시간에 해당되는 주행 영상을 저장할 수 있다(S2620). 상기 프로세서(260)는 반대 차로로 주행한 시각(예: 1시 30분)을 기준으로 미리 결정된 시간(예: 중앙 차선을 침범하기 이전의 시각(예: 1시 29분 45초)에서 반대 차로로 주행한 이후의 시각(예: 1시 30분 15초)) 동안에 획득된 주행 영상을 저장부(240)에 저장할 수 있다. 상기 미리 결정된 시간은 가변적으로 조절될 수 있다.According to an embodiment, the processor 260 may store a driving image corresponding to a predetermined time based on the time the vehicle travels in the opposite lane (S2620). The processor 260 is configured to operate in the opposite lane at a predetermined time (eg, a time prior to intrusion of the center lane (eg 1:29:45)) based on the time (eg, 1:30) of driving in the opposite lane. The driving image acquired during the time (eg, 1:30:15 seconds) after driving to . The predetermined time may be variably adjusted.

도 28은 본 발명의 또 다른 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 순서도이다. 도 29는 본 발명의 또 다른 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 나타낸 예시도이다.28 is a flowchart illustrating a process of identifying driving in an opposite lane of a vehicle according to another embodiment of the present invention. 29 is an exemplary diagram illustrating a process of identifying driving in an opposite lane of a vehicle according to another embodiment of the present invention.

도 28 및 도 29는 우측 통행이 익숙하지 않은 외국인 운전자(예: 일본 운전자)가 도로에 반대 방향으로 진입하는 것을 식별하는 예이다.28 and 29 are examples of identifying that a foreign driver (eg, a Japanese driver) who is not familiar with right-hand traffic enters the road in the opposite direction.

이하, 도 28 및 도 29를 참조하여, 본 발명의 또 다른 실시 예에 따른 차량의 반대 차로 주행을 식별하는 과정을 상세히 설명하면 다음과 같다.Hereinafter, with reference to FIGS. 28 and 29 , a process for identifying driving in an opposite lane of a vehicle according to another embodiment of the present invention will be described in detail as follows.

일 실시 예에 따르면, 상기 프로세서(260)는 차선이 인식 불가능한 상태인지 식별할 수 있다(S2810). 차량이 반대 차로로 주행하는 중에는 상기 프로세서(260)는 카메라(210)를 통해 획득되는 주행 영상에서 차선을 인식하지 못할 수도 있다. According to an embodiment, the processor 260 may identify whether a lane is in an unrecognizable state (S2810). While the vehicle is driving in the opposite lane, the processor 260 may not recognize the lane in the driving image obtained through the camera 210 .

도 29의 (a)에 도시된 바와 같이, 상기 프로세서(260)는 카메라(210)를 통해 획득되는 주행 영상(2910)에서 차선이 포함되지 않음에 따라 차선을 인식하지 못할 수도 있다.As shown in (a) of FIG. 29 , the processor 260 may not recognize a lane because the lane is not included in the driving image 2910 obtained through the camera 210 .

일 실시 예에 따르면, 상기 프로세서(260)는 우측이 중앙 차선인 차로 내에 차량이 정상 주행 상태임을 식별할 수 있다(S2812). 상기 프로세서(260)는 잠시 동안(예: 차량이 역주행하여 반대 차로의 차선이 식별되기 이전까지의 시간) 차선을 인식하지 못하고 있는 상태에서, 차량의 운행에 기반하여 차량의 우측에 중앙 차선을 식별할 수 있다. According to an embodiment, the processor 260 may identify that the vehicle is in a normal driving state in a lane whose right side is a center lane (S2812). The processor 260 identifies a center lane on the right side of the vehicle based on the operation of the vehicle in a state in which it does not recognize a lane for a while (eg, a time before the vehicle travels in reverse and a lane in the opposite lane is identified). can do.

도 29의 (a)에 도시된 바와 같이, 소실점(2923)이 마진(2924) 이내에 있고, 좌측 일반 차선(2911)이 정상 구간(2925) 내에 있고, 우측 중앙 차선(2922)이 정상 구간(2926) 내에 있는 경우(2920), 상기 프로세서(260)는 차량은 차로 내에서 정상 주행(예: 반대 차로에서 차선을 따라 주행)한다고 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 5]를 통해 차량이 차로내 정상 주행인지 판단할 수 있다.As shown in (a) of FIG. 29 , the vanishing point 2923 is within the margin 2924 , the left general lane 2911 is within the normal section 2925 , and the right center lane 2922 is within the normal section 2926 . ), the processor 260 may determine that the vehicle is driving normally in the lane (eg, driving along the lane in the opposite lane). The processor 260 may determine whether the vehicle is normally driving within the lane through Equation 5.

일 실시 예에 따르면, 상기 프로세서(260)는 우측이 중앙 차선인 차로 내에 차량이 정상 주행 상태로 미리 결정된 시간 동안 주행 하는지를 식별할 수 있다(S2814). 상기 프로세서(260)는 상기 과정들(S2810, S2812)이 순차적으로 발생되는 것을 식별할 수 있다. 상기 프로세서(260)는 상기 과정들(S2810, S2812)이 순차적으로 발생된 후, 우측이 중앙 차선인 차로 내에 차량이 정상 주행 상태(예: 반대 차로에서 차선을 따라 주행)로 미리 결정된 시간(예: 15초) 동안 유지되는지를 식별할 수 있다.According to an embodiment, the processor 260 may identify whether the vehicle travels in a normal driving state for a predetermined time in a lane in which the right side is the center lane (S2814). The processor 260 may identify that the processes S2810 and S2812 are sequentially generated. After the processes S2810 and S2812 are sequentially generated, the processor 260 determines that the vehicle is in a normal driving state (eg, driving along a lane in the opposite lane) in a lane whose right side is the center lane for a predetermined time (eg, : 15 seconds) can be identified.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 반대 차로로 주행하고 있는 것으로 판단할 수 있다(S2816). 상기 프로세서(260)는 상기 과정들(S2810, S2812)이 순차적으로 발생된 후, 차량이 정상 주행 상태(예: 반대 차로에서 차선을 따라 주행)로 미리 결정된 시간(예: 15초) 동안 유지되면, 차량이 반대 차로로 주행하고 있는 것으로 판단할 수 있다.According to an embodiment, the processor 260 may determine that the vehicle is traveling in the opposite lane (S2816). After the processes S2810 and S2812 are sequentially generated, the processor 260 maintains the vehicle in a normal driving state (eg, driving along a lane in the opposite lane) for a predetermined time (eg, 15 seconds). , it may be determined that the vehicle is traveling in the opposite lane.

예를 들면, 상기 프로세서(260)는 차량이 반대 차로로 주행하고 있는 상태로 일정 시간(예: 15초) 동안 지속적으로 유지되는 것으로 판단되면, 차량이 반대 차로로 주행하고 있는 것으로 결정할 수 있다.For example, if it is determined that the vehicle is continuously traveling in the opposite lane for a predetermined time (eg, 15 seconds), the processor 260 may determine that the vehicle is traveling in the opposite lane.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 반대 차로로 주행한 시각을 기준으로 미리 결정된 시간에 해당되는 주행 영상을 저장할 수 있다(S2818). 상기 프로세서(260)는 반대 차로로 주행한 시각(예: 1시 30분)을 기준으로 미리 결정된 시간(예: 중앙 차선을 침범하기 이전의 시각(예: 1시 29분 45초)에서 반대 차로로 주행한 이후의 시각(예: 1시 30분 15초)) 동안에 획득된 주행 영상을 저장부(240)에 저장할 수 있다. 상기 미리 결정된 시간은 가변적으로 조절될 수 있다.According to an embodiment, the processor 260 may store a driving image corresponding to a predetermined time based on the time the vehicle travels in the opposite lane (S2818). The processor 260 is configured to operate in the opposite lane at a predetermined time (eg, a time prior to intrusion of the center lane (eg 1:29:45)) based on the time (eg, 1:30) of driving in the opposite lane. The driving image acquired during the time (eg, 1:30:15 seconds) after driving to . The predetermined time may be variably adjusted.

도 30은 본 발명의 일 실시 예에 따른 차량이 금지 구간에서 유턴하는 것을 식별하는 과정을 나타낸 순서도이다. 도 31a 및 도 31b는 본 발명의 일 실시 예에 따른 차량이 금지 구간에서 유턴하는 과정을 나타낸 예시도이다.30 is a flowchart illustrating a process of identifying that a vehicle makes a U-turn in a prohibited section according to an embodiment of the present invention. 31A and 31B are exemplary views illustrating a process in which a vehicle makes a U-turn in a prohibited section according to an embodiment of the present invention.

도 30, 도 31a 및 도 31b는 연속적인 주행 상태를 판단하여 차량이 금지 구간에서 유턴하는 것을 식별하는 예이다.30, 31A, and 31B are examples of identifying that a vehicle makes a U-turn in a prohibited section by determining a continuous driving state.

이하, 도 30, 도 31a 및 도 31b를 참조하여, 본 발명의 일 실시 예에 따른 차량이 금지 구간에서 유턴하는 것을 식별하는 과정을 상세히 설명하면 다음과 같다.Hereinafter, a process for identifying that a vehicle makes a U-turn in a prohibited section according to an embodiment of the present invention will be described in detail with reference to FIGS. 30, 31A and 31B .

일 실시 예에 따르면, 상기 프로세서(260)는 좌측이 중앙 차선인 차로 내에 차량이 정상 주행 상태임을 식별할 수 있다(S3010).According to an embodiment, the processor 260 may identify that the vehicle is in a normal driving state in a lane in which the left side is the center lane ( S3010 ).

도 31a의 (a)에 도시된 바와 같이, 소실점(3113)이 마진(3114) 이내에 있고, 중앙 차선(3111)이 정상 구간(3115) 내에 있고, 일반 차선(3112)이 정상 구간(3116) 내에 있는 경우(3110), 상기 프로세서(260)는 차량은 차로 내에서 정상 주행한다고 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 5]를 통해 차량이 차로내 정상 주행인지 판단할 수 있다.As shown in (a) of FIG. 31A , the vanishing point 3113 is within the margin 3114 , the center lane 3111 is within the normal section 3115 , and the general lane 3112 is within the normal section 3116 . If there is ( 3110 ), the processor 260 may determine that the vehicle normally travels within the lane. The processor 260 may determine whether the vehicle is normally driving within the lane through Equation 5.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 좌측 완전 침범하여 비정상 주행 상태로 진행됨을 식별할 수 있다(S3012).According to an embodiment, the processor 260 may identify that the vehicle completely invades the left side and proceeds to an abnormal driving state (S3012).

도 31a의 (b)에 도시된 바와 같이, 소실점(3123)이 마진(3214) 이내에 있지 않고, 중앙 차선(3121)이 완전 침범 구간(3125) 내에 있는 경우(3120), 상기 프로세서(260)는 차량은 중앙 차선을 완전히 침범하여 비정상 주행한다고 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 8]를 통해 차량이 중앙 차선을 완전히 침범하여 비정상 주행인지 판단할 수 있다.As shown in (b) of FIG. 31A , when the vanishing point 3123 is not within the margin 3214 and the center lane 3121 is within the full encroachment section 3125 (3120), the processor 260 is It may be determined that the vehicle is driving abnormally by completely encroaching on the center lane. The processor 260 may determine whether the vehicle is driving abnormally by completely encroaching on the center lane through Equation (8).

일 실시 예에 따르면, 상기 프로세서(260)는 차선 인식이 불가능한지를 식별할 수 있다(S3014).According to an embodiment, the processor 260 may identify whether lane recognition is impossible (S3014).

차량이 중앙 차선을 완전히 침범하여 비정상 주행을 하는 중에는 상기 프로세서(260)가 카메라(210)를 통해 획득되는 주행 영상에서 차선을 인식하지 못할 수도 있다. While the vehicle completely invades the center lane and drives abnormally, the processor 260 may not recognize the lane in the driving image obtained through the camera 210 .

도 31a의 (c)에 도시된 바와 같이, 상기 프로세서(260)는 카메라(210)를 통해 획득되는 주행 영상(3130)에서 차선이 포함되지 않음에 따라 차선을 인식하지 못할 수도 있다.As illustrated in (c) of FIG. 31A , the processor 260 may not recognize a lane because the lane is not included in the driving image 3130 obtained through the camera 210 .

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 우측 완전 침범하여 비정상 주행 상태로 진행됨을 식별할 수 있다(S3016).According to an embodiment, the processor 260 may identify that the vehicle completely invades the right side and proceeds to an abnormal driving state (S3016).

도 31b의 (d)에 도시된 바와 같이, 소실점(3143)이 마진(3244) 이내에 있지 않고, 일반 차선(3141)이 완전 침범 구간(3146) 내에 있는 경우(3140), 상기 프로세서(260)는 차량은 중앙 차선을 완전히 침범하여 비정상 주행한다고 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 9]를 통해 차량이 중앙 차선을 완전히 침범하여 비정상 주행인지 판단할 수 있다.As shown in (d) of FIG. 31B , when the vanishing point 3143 is not within the margin 3244 and the general lane 3141 is within the complete encroachment section 3146 ( 3140 ), the processor 260 is It may be determined that the vehicle is driving abnormally by completely encroaching on the center lane. The processor 260 may determine whether the vehicle is driving abnormally by completely encroaching on the center lane through [Equation 9].

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 차로내에서 정상 주행 중인지를 식별할 수 있다(S3018).According to an embodiment, the processor 260 may identify whether the vehicle is driving normally in the lane (S3018).

도 31b의 (e)에 도시된 바와 같이, 소실점(3153)이 마진(3154) 이내에 있고, 일반 차선들(3151, 3152) 각각이 정상 구간(3155, 3156) 내에 있는 경우(3150), 상기 프로세서(260)는 차량은 차로 내에서 정상 주행한다고 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 5]를 통해 차량이 차로내 정상 주행인지 판단할 수 있다.As shown in (e) of FIG. 31B , when the vanishing point 3153 is within the margin 3154 and each of the normal lanes 3151 and 3152 is within the normal sections 3155 and 3156 ( 3150 ), the processor At 260 , it may be determined that the vehicle normally travels within the lane. The processor 260 may determine whether the vehicle is normally driving within the lane through Equation 5.

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 금지구간 유턴한 것으로 판단할 수 있다(S3020). 상기 프로세서(260)는 상기 과정들(S3010, S3012, S3014, S3016, S3018)이 순차적으로 발생된 후, 차량이 정상 주행 상태(예: 반대 차로에서 차선을 따라 주행)로 미리 결정된 시간(예: 15초) 동안 유지되면, 차량이 금지 구간에서 유턴하여 주행하고 있는 것으로 판단할 수 있다.According to an embodiment, the processor 260 may determine that the vehicle has made a U-turn in the prohibited section (S3020). After the processes (S3010, S3012, S3014, S3016, S3018) are sequentially generated, the processor 260 determines that the vehicle is in a normal driving state (eg, driving along a lane in the opposite lane) for a predetermined time (eg: 15 seconds), it may be determined that the vehicle is driving by making a U-turn in the prohibited section.

예를 들면, 상기 프로세서(260)는 차량이 금지 구간에서 유턴하여 주행하고 있는 상태로 일정 시간(예: 15초) 동안 지속적으로 유지되는 것으로 판단되면, 차량이 금지 구간에서 유턴한 것으로 결정할 수 있다.For example, if it is determined that the vehicle is continuously maintained for a predetermined time (eg, 15 seconds) in a driving state after making a U-turn in the prohibited section, the processor 260 may determine that the vehicle has made a U-turn in the prohibited section. .

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 금지구간 유턴한 시각을 기준으로 미리 결정된 시간에 해당되는 주행 영상을 저장할 수 있다(S3022). 상기 프로세서(260)는 금지 구간에서 유턴하여 주행한 시각(예: 1시 30분)을 기준으로 미리 결정된 시간(예: 금지 구간에서 유턴하기 이전의 시각(예: 1시 29분 45초)에서 금지 구간에서 유턴한 이후의 시각(예: 1시 30분 15초)) 동안에 획득된 주행 영상을 저장부(240)에 저장할 수 있다. 상기 미리 결정된 시간은 가변적으로 조절될 수 있다.According to an embodiment, the processor 260 may store a driving image corresponding to a predetermined time based on the time when the vehicle makes a U-turn in the prohibited section (S3022). The processor 260 performs a U-turn at a predetermined time (eg, at a time before making a U-turn in the prohibited section (eg, 1:29:45) based on the time (eg, 1:30) of driving in the prohibited section) The driving image acquired during the time (eg, 1:30:15) after making a U-turn in the prohibited section may be stored in the storage unit 240 . The predetermined time may be variably adjusted.

도 32는 본 발명의 다른 실시 예에 따른 차량이 금지 구간에서 유턴하는 것을 식별하는 과정을 나타낸 순서도이다. 도 33은 본 발명의 다른 실시 예에 따른 차량이 금지 구간에서 유턴하는 과정을 나타낸 예시도이다.32 is a flowchart illustrating a process of identifying that a vehicle makes a U-turn in a prohibited section according to another embodiment of the present invention. 33 is an exemplary diagram illustrating a process in which a vehicle makes a U-turn in a prohibited section according to another embodiment of the present invention.

도 32 및 도 33은 센서를 통해 차량이 금지 구간에서 유턴하는 것을 식별하는 예이다.32 and 33 are examples of identifying that a vehicle makes a U-turn in a prohibited section through a sensor.

이하, 도 32 및 33을 참조하여, 본 발명의 일 실시 예에 따른 차량이 금지 구간에서 유턴하는 것을 식별하는 과정을 상세히 설명하면 다음과 같다.Hereinafter, with reference to FIGS. 32 and 33 , a process for identifying that a vehicle makes a U-turn in a prohibited section according to an embodiment of the present invention will be described in detail as follows.

일 실시 예에 따르면, 상기 프로세서(260)는 좌측이 중앙 차선인 차로 내에 차량이 정상 주행 상태임을 식별할 수 있다(S3210).According to an embodiment, the processor 260 may identify that the vehicle is in a normal driving state in a lane in which the left side is the center lane ( S3210 ).

도 33의 (a)에 도시된 바와 같이, 소실점(3313)이 마진(3314) 이내에 있고, 중앙 차선(3311)이 정상 구간(3315) 내에 있고, 일반 차선(3312)이 정상 구간(3316) 내에 있는 경우(3310), 상기 프로세서(260)는 차량은 차로 내에서 정상 주행한다고 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 5]를 통해 차량이 차로내 정상 주행인지 판단할 수 있다.As shown in (a) of FIG. 33 , the vanishing point 3313 is within the margin 3314 , the center lane 3311 is within the normal section 3315 , and the general lane 3312 is within the normal section 3316 . If there is ( 3310 ), the processor 260 may determine that the vehicle normally travels within the lane. The processor 260 may determine whether the vehicle is normally driving within the lane through Equation 5 above.

일 실시 예에 따르면, 상기 프로세서(260)는 차선 인식이 불가능한지를 식별할 수 있다(S3212).According to an embodiment, the processor 260 may identify whether lane recognition is impossible (S3212).

차량이 유턴을 하는 중에는 상기 프로세서(260)가 카메라(210)를 통해 획득되는 주행 영상에서 차선을 인식하지 못할 수도 있다. While the vehicle is making a U-turn, the processor 260 may not recognize a lane in the driving image obtained through the camera 210 .

도 33의 (b)에 도시된 바와 같이, 상기 프로세서(260)는 카메라(210)를 통해 획득되는 주행 영상(3320)에서 차선이 포함되지 않음에 따라 차선을 인식하지 못할 수도 있다.As illustrated in (b) of FIG. 33 , the processor 260 may not recognize a lane because the lane is not included in the driving image 3320 obtained through the camera 210 .

일 실시 예에 따르면, 상기 프로세서(260)는 센서를 통해 차량의 회전 정보가 획득되는지를 식별할 수 있다(S3214). 상기 프로세서(260)는 상기 센서부(220)에서 획득된 정보(예: GPS로부터 획득된 차량의 진행 방향의 변화에 대한 정보, 및 요(Yaw) 센서로부터 획득된 차량의 회전각에 대한 정보) 중 적어도 일부를 상기 센서부(220)로부터 수신할 수 있다According to an embodiment, the processor 260 may identify whether rotation information of the vehicle is obtained through a sensor (S3214). The processor 260 includes information obtained from the sensor unit 220 (eg, information about a change in the traveling direction of the vehicle obtained from GPS, and information about a rotation angle of the vehicle obtained from a yaw sensor) At least a part of it may be received from the sensor unit 220 .

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 반대 차로의 일반 차선에 대해 완전 침범하여 비정상 주행 상태로 진행됨을 식별할 수 있다(S3216).According to an embodiment, the processor 260 may identify that the vehicle completely invades the general lane of the opposite lane and proceeds to an abnormal driving state (S3216).

도 33의 (c)에 도시된 바와 같이, 소실점(333)이 마진(3334) 이내에 있고, 일반 차선들(3331, 3332) 각각이 정상 구간(3335, 3336) 내에 있는 경우(3330), 상기 프로세서(260)는 차량이 반대 차로의 일반 차선에 대해 완전 침범하여 비정상 주행한다고 판단할 수 있다. 상기 프로세서(260)는 상기 [수학식 5]를 통해 차량이 반대 차로의 일반 차선에 대해 완전 침범하여 비정상 주행 중인지 판단할 수 있다.As shown in (c) of FIG. 33 , when the vanishing point 333 is within the margin 3334 and each of the normal lanes 3331 and 3332 is within the normal sections 3335 and 3336 ( 3330 ), the processor Reference numeral 260 may determine that the vehicle completely invades the general lane of the opposite lane and drives abnormally. The processor 260 may determine whether the vehicle is driving abnormally by completely encroaching on the general lane of the opposite lane through [Equation 5].

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 금지구간 유턴한 것으로 판단할 수 있다(S3218). 상기 프로세서(260)는 상기 과정들(S3210, S3212, S3214, S3216)이 순차적으로 발생된 후, 차량이 정상 주행 상태(예: 반대 차로에서 차선을 따라 주행)로 미리 결정된 시간(예: 15초) 동안 유지되면, 차량이 금지 구간에서 유턴하여 주행하고 있는 것으로 판단할 수 있다.According to an embodiment, the processor 260 may determine that the vehicle has made a U-turn in the prohibited section (S3218). After the processes S3210, S3212, S3214, and S3216 are sequentially generated, the processor 260 returns the vehicle to a normal driving state (eg, driving along a lane in the opposite lane) for a predetermined time (eg, 15 seconds). ), it can be determined that the vehicle is driving by making a U-turn in the prohibited section.

예를 들면, 상기 프로세서(260)는 차량이 금지 구간에서 유턴하여 주행하고 있는 상태로 일정 시간(예: 15초) 동안 지속적으로 유지되는 것으로 판단되면, 차량이 금지 구간에서 유턴한 것으로 결정할 수 있다.For example, if it is determined that the vehicle is continuously maintained for a predetermined time (eg, 15 seconds) in a driving state after making a U-turn in the prohibited section, the processor 260 may determine that the vehicle has made a U-turn in the prohibited section. .

일 실시 예에 따르면, 상기 프로세서(260)는 차량이 금지구간 유턴한 시각을 기준으로 미리 결정된 시간에 해당되는 주행 영상을 저장할 수 있다(S3220). 상기 프로세서(260)는 금지 구간에서 유턴하여 주행한 시각(예: 1시 30분)을 기준으로 미리 결정된 시간(예: 금지 구간에서 유턴하기 이전의 시각(예: 1시 29분 45초)에서 금지 구간에서 유턴한 이후의 시각(예: 1시 30분 15초)) 동안에 획득된 주행 영상을 저장부(240)에 저장할 수 있다. 상기 미리 결정된 시간은 가변적으로 조절될 수 있다.According to an embodiment, the processor 260 may store a driving image corresponding to a predetermined time based on the time when the vehicle makes a U-turn in the prohibited section (S3220). The processor 260 performs a U-turn at a predetermined time (eg, at a time before making a U-turn in the prohibited section (eg, 1:29:45) based on the time (eg, 1:30) of driving in the prohibited section) The driving image acquired during the time (eg, 1:30:15) after making a U-turn in the prohibited section may be stored in the storage unit 240 . The predetermined time may be variably adjusted.

이상에서 상술한 각각의 순서도에서의 각 단계는 도시된 순서에 무관하게 동작될 수 있거나, 또는 동시에 수행될 수 있다. 또한, 본 발명의 적어도 하나의 구성 요소와, 상기 적어도 하나의 구성 요소에서 수행되는 적어도 하나의 동작은 하드웨어 및/또는 소프트웨어로 구현 가능할 수 있다. Each step in each of the above-described flowcharts may be operated regardless of the illustrated order, or may be performed simultaneously. In addition, at least one component of the present invention and at least one operation performed by the at least one component may be implemented in hardware and/or software.

또한, 상술한 설명에서 제시된 값, 크기, 무게 등은 일 실시 예이며, 통상의 기술자에 의해 다양한 값, 크기, 무게 등이 조절될 수 있다.In addition, the values, sizes, weights, etc. presented in the above description are examples, and various values, sizes, weights, etc. may be adjusted by those skilled in the art.

이상과 같이 본 발명에 대해서 예시한 도면을 참조로 하여 설명하였으나, 본 명세서에 개시된 실시 예와 도면에 의해 본 발명이 한정되는 것은 아니며, 본 발명의 기술사상의 범위 내에서 통상의 기술자에 의해 다양한 변형이 이루어질 수 있음은 자명하다. 아울러 앞서 본 발명의 실시 예를 설명하면서 본 발명의 구성에 따른 작용 효과를 명시적으로 기재하여 설명하지 않았을 지라도, 해당 구성에 의해 예측 가능한 효과 또한 인정되어야 함은 당연하다.As described above, the present invention has been described with reference to the illustrated drawings, but the present invention is not limited by the embodiments and drawings disclosed in this specification, and various methods can be obtained by those skilled in the art within the scope of the technical spirit of the present invention. It is obvious that variations can be made. In addition, although the effects according to the configuration of the present invention have not been explicitly described and described while describing the embodiments of the present invention, it is natural that the effects predictable by the configuration should also be recognized.

101: 차량 200: 장치
210: 카메라 220: 센서부
230: 통신부 240: 저장부
250: 표시부 260: 프로세서
101: vehicle 200: device
210: camera 220: sensor unit
230: communication unit 240: storage unit
250: display unit 260: processor

Claims (17)

차량의 주행 상태를 판단하는 장치에 있어서,
카메라;
통신부;
저장부; 및
상기 카메라를 통해 차량의 주행 영상을 획득하고, 상기 차량 기준의 도로 좌표 정보를 획득하고, 상기 차량이 주행하는 차선 정보를 획득하고, 상기 도로 좌표 정보 및 상기 차선 정보에 기반하여 상기 차량의 차선 이탈 여부를 판단하기 위한 적어도 하나의 구간을 상기 주행 영상에 설정하는 프로세서를 포함하며,
상기 프로세서는,
상기 차량을 기준으로 좌측 차선의 제1 내측 기준선과 우측 차선의 제2 내측 기준선이 맞닿은 소실점을 식별하고,
상기 식별된 소질점의 좌우로 일정 간격을 갖는 마진을 설정하고,
상기 획득된 주행 영상의 하단에서의 상기 차량의 폭의 중간 지점인 기준 위치를 중심으로 좌우로 제1 일정 간격을 갖는 완전 침범 구간, 상기 완전 침범 구간의 좌우로 제2 일정 간격을 갖는 일시 침범 구간, 및 상기 일시 침범 구간을 좌우로 벗어나는 정상 구간을 설정하며,
상기 적어도 하나의 구간은,
상기 기준 위치, 상기 획득된 주행 영상에서의 지평선과 만나는 지점인 제1 가로 방향 좌표, 및 상기 획득된 주행 영상의 하단이 교차하는 지점인 제2 가로 방향 좌표에 기반하여 설정되며,
상기 프로세서는,
상기 차량의 주행에 따른 상기 소실점이 상기 설정된 마진 내에 위치하고, 상기 차선이 상기 완전 침범 구간 내에서 상기 차량이 미리 결정된 시간 동안 주행하고 있으면, 상기 차량이 상기 차선을 완전 침범하여 주행하는 것으로 판단하고, 상기 차량이 상기 차선을 완전 침범하여 주행한 시각을 기준으로 일정 시간 이전부터 상기 완전 침범이 종료된 시각을 기준으로 일정 시간 이후까지의 주행 영상을 상기 저장부의 덮어쓰기가 금지되는 영역에 저장하고,
상기 차량의 주행에 따른 상기 소실점이 상기 설정된 마진 내에 위치하고, 상기 차선이 상기 일시 침범 구간 내에 있으면, 상기 차량이 상기 차선을 일시 침범하여 주행하는 것으로 판단하고,
상기 차량의 주행에 따른 상기 소실점이 상기 설정된 마진 내에 위치하고, 상기 차선이 상기 정상 구간 내에 있으면, 상기 차량이 상기 차선을 정상 주행하는 것으로 판단하며,
상기 프로세서는,
상기 통신부와 차량 주행 정보를 수집하는 서버 간에 통신 채널이 셋업되어 있는지를 식별하고,
상기 통신 채널이 셋업되면, 상기 저장부의 덮어쓰기가 금지된 영역에 저장된 상기 차량이 상기 차선을 완전 침범하여 주행한 시각을 기준으로 일정 시간 이전부터 상기 완전 침범이 종료된 시각을 기준으로 일정 시간 이후까지의 주행 영상을 상기 셋업된 통신 채널을 통해 상기 서버로 전송하는 장치.
In the device for determining the driving state of the vehicle,
camera;
communication department;
storage; and
Obtaining a driving image of the vehicle through the camera, obtaining road coordinate information of the vehicle reference, obtaining information on a lane on which the vehicle travels, and lane departure of the vehicle based on the road coordinate information and the lane information It includes a processor for setting at least one section for determining whether or not the driving image,
The processor is
Identifying a vanishing point where the first inner reference line of the left lane and the second inner reference line of the right lane are in contact with the vehicle,
Setting a margin with a predetermined interval to the left and right of the identified elemental point,
A complete invasion section having a first predetermined interval to the left and right around a reference position that is a midpoint of the width of the vehicle at the lower end of the obtained driving image, a temporary invasion section having a second predetermined interval to the left and right of the complete invasion section , and setting a normal section that deviates from the temporary intrusion section to the left and right,
The at least one section is
It is set based on the reference position, a first horizontal coordinate that is a point that meets the horizon in the acquired driving image, and a second horizontal coordinate that is a point where the lower end of the acquired driving image intersects,
The processor is
If the vanishing point according to the driving of the vehicle is located within the set margin, and the vehicle is traveling for a predetermined time within the completely intrusion section of the lane, it is determined that the vehicle is driving by completely violating the lane, Storing, in an area where overwriting of the storage unit is prohibited, the driving image from a predetermined time before a predetermined time based on the time when the vehicle completely invades the lane to a predetermined time after a predetermined time based on the time when the complete invasion is terminated,
If the vanishing point according to the driving of the vehicle is located within the set margin and the lane is within the temporary intrusion section, it is determined that the vehicle is traveling by temporarily violating the lane,
If the vanishing point according to the driving of the vehicle is located within the set margin and the lane is within the normal section, it is determined that the vehicle is traveling in the lane normally,
The processor is
Identifies whether a communication channel is set up between the communication unit and the server for collecting vehicle driving information,
When the communication channel is set up, from a predetermined time before the time when the vehicle stored in the overwrite-prohibited area of the storage unit completely invades the lane and drives after a predetermined time based on the time when the complete invasion ends A device for transmitting the driving image to the server through the established communication channel.
제1 항에 있어서,
상기 도로 좌표 정보는,
상기 차량이 주행중인 상기 차로에 대한 실질 좌표, 도로가 카메라로 투영된 영상에서의 차로의 좌표, 상기 카메라의 초점 거리, 및 상기 차선에서의 상기 카메라의 장착 높이 중 적어도 일부를 포함하는 장치.
According to claim 1,
The road coordinate information is
an apparatus comprising at least a part of actual coordinates for the lane in which the vehicle is traveling, coordinates of the lane in an image on which the road is projected by a camera, a focal length of the camera, and a mounting height of the camera in the lane.
제1 항에 있어서,
상기 차선 정보는,
상기 획득된 주행 영상에서, 상기 차량을 기준으로 좌측 차선의 상기 제1 내측 기준선, 우측 차선의 상기 제2 내측 기준선, 상기 제1 내측 기준선과 상기 제2 내측 기준선이 맞닿은 상기 소실점, 및 상기 제1 내측 기준선과 상기 제2 내측 기준선 간의 차선 폭, 상기 차선을 넘은 차폭 비율, 상기 소실점의 좌표, 및 상기 소실점의 좌우 마진 중 적어도 일부를 포함하는 장치.
According to claim 1,
The lane information is
In the obtained driving image, the first inner reference line of the left lane, the second inner reference line of the right lane, the vanishing point at which the first inner reference line and the second inner reference line are in contact with the vehicle, and the first An apparatus comprising at least a portion of a lane width between an inner reference line and the second inner reference line, a ratio of a vehicle width crossing the lane, a coordinate of the vanishing point, and a left and right margin of the vanishing point.
제3 항에 있어서,
상기 프로세서는,
상기 획득된 주행 영상의 하단에서의 상기 차량의 폭의 중간 지점을 상기 기준 위치로 설정하고,
상기 제1 내측 기준선, 및 상기 제2 내측 기준선 각각과, 상기 획득된 주행 영상에서의 지평선과 만나는 지점을 상기 제1 가로 방향 좌표로 설정하고,
상기 제1 내측 기준선 및 상기 제2 내측 기준선 각각과, 상기 획득된 주행 영상의 하단이 교차하는 지점을 상기 제2 가로 방향 좌표로 설정하는 장치.
4. The method of claim 3,
The processor is
setting a midpoint of the width of the vehicle at the lower end of the obtained driving image as the reference position,
a point where each of the first inner reference line and the second inner reference line and a horizon in the obtained driving image meet is set as the first horizontal coordinate,
An apparatus for setting a point where each of the first inner reference line and the second inner reference line and a lower end of the obtained driving image intersect as the second horizontal coordinates.
제4 항에 있어서,
상기 프로세서는,
상기 차량의 탑승자의 무게, 차선의 굴곡 상태, 및 상기 차량의 흔들림을 식별하여 상기 마진을 결정하도록 설정된 장치.
5. The method of claim 4,
The processor is
An apparatus configured to determine the margin by identifying a weight of an occupant of the vehicle, a curvature state of a lane, and a shake of the vehicle.
삭제delete 삭제delete 제1 항에 있어서,
상기 제1 일정 간격은,
상기 기준 위치를 중심으로 상기 차량의 폭의 1/2에 해당되는 지점에서 상기 차량의 폭과 상기 차선을 침범한 상기 차량의 폭에 대한 비율을 곱한 값을 차감한 간격임을 특징으로 하는 장치.
According to claim 1,
The first predetermined interval is,
Device characterized in that it is an interval obtained by subtracting a value obtained by multiplying a ratio of the width of the vehicle and the width of the vehicle that invades the lane at a point corresponding to 1/2 of the width of the vehicle with respect to the reference position.
제1 항에 있어서,
상기 제2 일정 간격은,
상기 차량의 폭의 1/2에 해당되는 지점에서 상기 기준 위치 방향으로 상기 제1 일정 간격을 차감한 간격임을 특징으로 하는 장치.
According to claim 1,
The second predetermined interval is,
Apparatus according to claim 1, wherein the interval is the interval obtained by subtracting the first predetermined interval in the direction of the reference position from a point corresponding to 1/2 of the width of the vehicle.
차량의 주행 상태를 판단하는 방법에 있어서,
카메라를 통해 차량의 주행 영상을 획득하는 과정;
상기 차량 기준의 도로 좌표 정보를 획득하는 과정;
상기 차량이 주행하는 차선 정보를 획득하는 과정;
적어도 하나의 구간을 상기 주행 영상에 설정하는 과정; 및
상기 도로 좌표 정보 및 상기 차선 정보에 기반하여 상기 차량의 차선 이탈 여부를 판단하는 과정을 포함하며,
상기 적어도 하나의 구간은,
상기 획득된 주행 영상의 하단에서의 상기 차량의 폭의 중간 지점인 기준 위치를 중심으로 좌우로 제1 일정 간격을 갖는 완전 침범 구간, 상기 완전 침범 구간의 좌우로 제2 일정 간격을 갖는 일시 침범 구간, 및 상기 일시 침범 구간을 좌우로 벗어나는 정상 구간을 포함하며,
상기 적어도 하나의 구간은,
상기 기준 위치, 상기 획득된 주행 영상에서의 지평선과 만나는 지점인 제1 가로 방향 좌표, 및 상기 획득된 주행 영상의 하단이 교차하는 지점인 제2 가로 방향 좌표에 기반하여 설정되며,
상기 차량의 차선 이탈 여부를 판단하는 과정은
상기 차량을 기준으로 좌측 차선의 제1 내측 기준선과 우측 차선의 제2 내측 기준선이 맞닿은 소실점을 식별하는 과정;
상기 식별된 소실점의 좌우로 일정 간격을 갖는 마진을 설정하는 과정;
상기 차량의 주행에 따른 상기 소실점이 상기 설정된 마진 내에 위치하고, 상기 차선이 상기 완전 침범 구간 내에서 상기 차량이 미리 결정된 시간 동안 주행하고 있으면, 상기 차량이 상기 차선을 완전 침범하여 주행하는 것으로 판단하고, 상기 차량이 상기 차선을 완전 침범하여 주행한 시각을 기준으로 일정 시간 이전부터 상기 완전 침범이 종료된 시각을 기준으로 일정 시간 이후까지의 주행 영상을 저장부의 덮어쓰기가 금지되는 영역에 저장하는 과정;
상기 차량의 주행에 따른 상기 소실점이 상기 설정된 마진 내에 위치하고, 상기 차선이 상기 일시 침범 구간 내에 있으면, 상기 차량이 상기 차선을 일시 침범하여 주행하는 것으로 판단하는 과정;
상기 차량의 주행에 따른 상기 소실점이 상기 설정된 마진 내에 위치하고, 상기 차선이 상기 정상 구간 내에 있으면, 상기 차량이 상기 차선을 정상 주행하는 것으로 판단하는 과정;
차량 주행 정보를 수집하는 서버와 통신 채널이 셋업되어 있는지를 식별하는 과정; 및
상기 통신 채널이 셋업되면, 상기 저장부의 덮어쓰기가 금지된 영역에 저장된 상기 차량이 상기 차선을 완전 침범하여 주행한 시각을 기준으로 일정 시간 이전부터 상기 완전 침범이 종료된 시각을 기준으로 일정 시간 이후까지의 주행 영상을 상기 셋업된 통신 채널을 통해 상기 서버로 전송하는 과정을 포함하는 방법.
In the method of determining the driving state of the vehicle,
A process of acquiring a driving image of the vehicle through a camera;
obtaining road coordinate information based on the vehicle;
obtaining information on a lane in which the vehicle travels;
setting at least one section in the driving image; and
and determining whether the vehicle departs from a lane based on the road coordinate information and the lane information,
The at least one section is
A complete invasion section having a first predetermined interval to the left and right around a reference position that is a midpoint of the width of the vehicle at the lower end of the obtained driving image, a temporary invasion section having a second predetermined interval to the left and right of the complete invasion section , and including a normal section that deviates from the temporary intrusion section to the left and right,
The at least one section is
It is set based on the reference position, a first horizontal coordinate that is a point that meets the horizon in the acquired driving image, and a second horizontal coordinate that is a point where the lower end of the acquired driving image intersects,
The process of determining whether the vehicle departs from the lane is
identifying a vanishing point where a first inner reference line of a left lane and a second inner reference line of a right lane come into contact with each other with respect to the vehicle;
setting a margin having a predetermined interval to the left and right of the identified vanishing point;
If the vanishing point according to the driving of the vehicle is located within the set margin, and the vehicle is traveling for a predetermined time within the completely intrusion section of the lane, it is determined that the vehicle is driving by completely violating the lane, storing driving images from a predetermined time before a predetermined time based on the time when the vehicle completely invades the lane to a predetermined time after a predetermined time based on the time when the complete invasion is terminated in an area where overwriting of the storage unit is prohibited;
determining that the vehicle temporarily invades the lane and travels when the vanishing point according to the driving of the vehicle is located within the set margin and the lane is within the temporary intrusion section;
determining that the vehicle normally travels in the lane when the vanishing point according to the driving of the vehicle is located within the set margin and the lane is within the normal section;
A process of identifying whether a communication channel with a server for collecting vehicle driving information is set up; and
When the communication channel is set up, from a predetermined time before the time when the vehicle stored in the overwrite-prohibited area of the storage unit completely invades the lane and drives after a predetermined time based on the time when the complete invasion ends and transmitting the driving image to the server through the established communication channel.
제10 항에 있어서,
상기 도로 좌표 정보는,
상기 차량이 주행중인 상기 차로에 대한 실질 좌표, 차로의 좌표, 상기 카메라의 초점 거리, 및 상기 차선에서의 상기 카메라의 장착 높이 중 적어도 일부를 포함하는 방법.
11. The method of claim 10,
The road coordinate information is
at least a portion of real coordinates for the lane in which the vehicle is traveling, coordinates of the lane, a focal length of the camera, and a mounting height of the camera in the lane.
제10 항에 있어서,
상기 차선 정보는,
상기 획득된 주행 영상에서, 상기 차량을 기준으로 좌측 차선의 제1 내측 기준선, 우측 차선의 제2 내측 기준선, 상기 제1 내측 기준선과 상기 제2 내측 기준선이 맞닿은 소실점, 및 상기 제1 내측 기준선과 상기 제2 내측 기준선 간의 차선 폭, 상기 차선을 넘은 차폭 비율, 상기 소실점의 좌표, 및 상기 소실점의 좌우 마진 중 적어도 일부를 포함하는 방법.
11. The method of claim 10,
The lane information is
In the acquired driving image, a first inner reference line of a left lane, a second inner reference line of a right lane, a vanishing point at which the first inner reference line and the second inner reference line are in contact with the vehicle, and the first inner reference line and and at least a portion of a lane width between the second inner reference lines, a ratio of a vehicle width crossing the lane, a coordinate of the vanishing point, and a left and right margin of the vanishing point.
제12 항에 있어서,
상기 적어도 하나의 구간을 상기 주행 영상에 설정하는 과정은,
상기 획득된 주행 영상의 하단에서의 상기 차량의 폭의 중간 지점을 상기 기준 위치로 설정하는 과정;
상기 제1 내측 기준선, 및 상기 제2 내측 기준선 각각과, 상기 획득된 주행 영상에서의 지평선과 만나는 지점을 상기 제1 가로 방향 좌표로 설정하는 과정; 및
상기 제1 내측 기준선 및 상기 제2 내측 기준선 각각과, 상기 획득된 주행 영상의 하단이 교차하는 지점을 상기 제2 가로 방향 좌표로 설정하는 과정을 포함하는 방법.
13. The method of claim 12,
The process of setting the at least one section in the driving image includes:
setting a midpoint of the width of the vehicle at the lower end of the obtained driving image as the reference position;
setting a point where each of the first inner reference line and the second inner reference line and a horizon in the obtained driving image meet as the first horizontal coordinates; and
and setting, as the second horizontal direction coordinates, a point where each of the first inner reference line and the second inner reference line and a lower end of the obtained driving image intersect.
삭제delete 삭제delete 제10 항에 있어서,
상기 제1 일정 간격은,
상기 기준 위치를 중심으로 상기 차량의 폭의 1/2에 해당되는 지점에서 상기 차량의 폭과 상기 차선을 침범한 상기 차량의 폭에 대한 비율을 곱한 값을 차감한 간격임을 특징으로 하는 방법.
11. The method of claim 10,
The first predetermined interval is,
The method, characterized in that it is an interval obtained by subtracting a value obtained by multiplying the width of the vehicle by a ratio of the width of the vehicle that invades the lane at a point corresponding to 1/2 of the width of the vehicle with respect to the reference position.
제10 항에 있어서,
상기 제2 일정 간격은,
상기 차량의 폭의 1/2에 해당되는 지점에서 상기 기준 위치 방향으로 상기 제1 일정 간격을 차감한 간격임을 특징으로 하는 방법.
11. The method of claim 10,
The second predetermined interval is,
Method according to claim 1, wherein the interval is the interval obtained by subtracting the first predetermined interval in the direction of the reference position from a point corresponding to 1/2 of the width of the vehicle.
KR1020210052465A 2021-04-22 2021-04-22 An apparatus and method for determining a driving state of a vehicle KR102365361B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020210052465A KR102365361B1 (en) 2021-04-22 2021-04-22 An apparatus and method for determining a driving state of a vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210052465A KR102365361B1 (en) 2021-04-22 2021-04-22 An apparatus and method for determining a driving state of a vehicle

Publications (1)

Publication Number Publication Date
KR102365361B1 true KR102365361B1 (en) 2022-02-23

Family

ID=80495722

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210052465A KR102365361B1 (en) 2021-04-22 2021-04-22 An apparatus and method for determining a driving state of a vehicle

Country Status (1)

Country Link
KR (1) KR102365361B1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110046607A (en) * 2009-10-29 2011-05-06 조재수 Lane detection method and Detecting system using the same
KR101268473B1 (en) * 2013-02-25 2013-06-04 주식회사 피엘케이 테크놀로지 Auto correction method for reference vanishing point and image recognition device using that
KR101517181B1 (en) * 2014-02-28 2015-05-04 주식회사 코아로직 System and method for warning lane departure
KR101568745B1 (en) * 2015-04-10 2015-11-12 주식회사 피엘케이 테크놀로지 Vehicle assistant apparatus and method based on infrared images
KR101840974B1 (en) 2017-04-28 2018-03-22 재단법인 경북아이티융합 산업기술원 Lane identification system for autonomous drive
US20180197021A1 (en) * 2017-01-11 2018-07-12 Foundation Of Soongsil University Industry Cooperation Lane detection device, lane departure determination device, lane detection method and lane departure determination method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110046607A (en) * 2009-10-29 2011-05-06 조재수 Lane detection method and Detecting system using the same
KR101268473B1 (en) * 2013-02-25 2013-06-04 주식회사 피엘케이 테크놀로지 Auto correction method for reference vanishing point and image recognition device using that
KR101517181B1 (en) * 2014-02-28 2015-05-04 주식회사 코아로직 System and method for warning lane departure
KR101568745B1 (en) * 2015-04-10 2015-11-12 주식회사 피엘케이 테크놀로지 Vehicle assistant apparatus and method based on infrared images
US20180197021A1 (en) * 2017-01-11 2018-07-12 Foundation Of Soongsil University Industry Cooperation Lane detection device, lane departure determination device, lane detection method and lane departure determination method
KR101840974B1 (en) 2017-04-28 2018-03-22 재단법인 경북아이티융합 산업기술원 Lane identification system for autonomous drive

Similar Documents

Publication Publication Date Title
JP4321821B2 (en) Image recognition apparatus and image recognition method
US10347130B2 (en) Vehicle and control method thereof
JP5776545B2 (en) Road surface inspection program and road surface inspection device
JP4783430B2 (en) Drive control device, drive control method, drive control program, and recording medium
KR102639056B1 (en) Road information control method based on rear camera
JP2007172487A (en) Safe driving degree storage system, on-vehicle equipment and center
KR20210115026A (en) Vehicle intelligent driving control method and device, electronic device and storage medium
US11682297B2 (en) Real-time scene mapping to GPS coordinates in traffic sensing or monitoring systems and methods
JP4093026B2 (en) Road environment information notification device, in-vehicle notification device, information center device, and road environment information notification program
US11727595B2 (en) Assessing visibility of a target object with autonomous vehicle fleet
US20190073541A1 (en) Lane detection system for vehicle
KR102200204B1 (en) 3-D Image Analyzing System Using CCTV Image
KR20210090624A (en) Data distribution systems, sensor devices and servers
US11250695B2 (en) Method and device for providing a position of at least one object
KR102418051B1 (en) Lane traffic situation judgement apparatus, system, and method thereof
KR102415620B1 (en) Variable vehicle speed warning system including pedestrian determination system
KR102365361B1 (en) An apparatus and method for determining a driving state of a vehicle
KR102365360B1 (en) An apparatus and method for determining a driving state of a vehicle
KR102366201B1 (en) An apparatus and method for determining a opposite direction lane driving of a vehicle
KR102366199B1 (en) An apparatus and method for determining u-turn of a vehicle in a prohibited area
KR102418630B1 (en) Accident information collecting apparatus and control method for the same
KR101127511B1 (en) Vehicle information management system using event and casting information
KR102340902B1 (en) Apparatus and method for monitoring school zone
KR20060125186A (en) Method and system for traffic control using mobile communication network

Legal Events

Date Code Title Description
AMND Amendment
AMND Amendment
X701 Decision to grant (after re-examination)
A107 Divisional application of patent
GRNT Written decision to grant