[go: up one dir, main page]

CN106904167A - A kind of lane departure warning method based on OBD, car-mounted terminal and intelligent automobile - Google Patents

A kind of lane departure warning method based on OBD, car-mounted terminal and intelligent automobile Download PDF

Info

Publication number
CN106904167A
CN106904167A CN201510959127.0A CN201510959127A CN106904167A CN 106904167 A CN106904167 A CN 106904167A CN 201510959127 A CN201510959127 A CN 201510959127A CN 106904167 A CN106904167 A CN 106904167A
Authority
CN
China
Prior art keywords
vehicle
lane
obd
mounted terminal
lane line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510959127.0A
Other languages
Chinese (zh)
Inventor
王军
赵剑锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510959127.0A priority Critical patent/CN106904167A/en
Publication of CN106904167A publication Critical patent/CN106904167A/en
Pending legal-status Critical Current

Links

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
    • 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
    • B60W50/08Interaction between the driver and the control system
    • B60W50/14Means for informing the driver, warning the driver or prompting a driver intervention
    • 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
    • B60W2520/00Input parameters relating to overall vehicle dynamics
    • B60W2520/10Longitudinal speed

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明实施例提供了一种基于OBD的车道偏离预警方法、车载终端以及智能汽车,其中所述方法包括:车载终端预测第一预设时间段内车辆的行车路线;识别当前行驶车道的车道线;基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离;若所述车辆可能发生车道偏离,则通过车载诊断OBD接口发出报警信号。本发明实施例可以将车载诊断OBD接口应用在车道偏离预警上,丰富了OBD的功能,并能有效地保证驾驶员驾驶的安全性,降低事故的发生。

An embodiment of the present invention provides an OBD-based lane departure warning method, a vehicle-mounted terminal, and a smart car, wherein the method includes: the vehicle-mounted terminal predicts the driving route of the vehicle within a first preset time period; and identifies the lane line of the current driving lane ; Based on the driving route and the lane line, predict whether the vehicle may deviate from the lane; if the vehicle may deviate from the lane, send an alarm signal through the on-board diagnostic OBD interface. The embodiment of the present invention can apply the on-board diagnostic OBD interface to the lane departure warning, which enriches the functions of the OBD, can effectively ensure the driving safety of the driver, and reduce the occurrence of accidents.

Description

一种基于OBD的车道偏离预警方法、车载终端以及智能汽车An OBD-based lane departure warning method, vehicle-mounted terminal and smart car

技术领域technical field

本发明涉及汽车主动安全技术领域,特别是涉及一种基于OBD的车道偏离预警方法、一种基于OBD的车道偏离预警的车载终端,以及,一种智能汽车。The present invention relates to the technical field of automobile active safety, in particular to an OBD-based lane departure warning method, an OBD-based vehicle-mounted terminal for lane departure warning, and a smart car.

背景技术Background technique

随着汽车产业的高速发展,家庭用车的不断普及,汽车后生活的巨大的市场潜力已经引起各方的广泛关注。经过多年的市场发展与普及,车载自动诊断系统OBD(On-BoardDiagnostic)已被广泛应用于各型汽车。OBD是通过各种与排放有关的部件信息,联接到电控单元(ECU),ECU具备检测和分析与排放相关故障的功能。当出现排放故障时,ECU记录故障信息和相关代码,并通过故障灯发出警告,告知驾驶员。With the rapid development of the automobile industry and the continuous popularization of family cars, the huge market potential of the life after the car has attracted widespread attention from all parties. After years of market development and popularization, OBD (On-BoardDiagnostic) has been widely used in various types of vehicles. OBD is connected to the electronic control unit (ECU) through various emission-related component information, and the ECU has the function of detecting and analyzing emission-related faults. When an emission failure occurs, the ECU records the failure information and related codes, and issues a warning through the failure light to inform the driver.

目前OBD多用于检测尾气及诊断与排放密切相关的汽车动力系统,功能相对简单。At present, OBD is mostly used for detecting exhaust gas and diagnosing vehicle power systems closely related to emissions, and its functions are relatively simple.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种基于OBD的车道偏离预警方法和相应的一种基于OBD的车道偏离预警的车载终端,以及,一种智能汽车。In view of the above-mentioned problems, the present invention is proposed to provide an OBD-based lane departure warning method and a corresponding OBD-based vehicle-mounted terminal for lane departure warning that overcome the above-mentioned problems or at least partially solve the above-mentioned problems, and a smart car.

依据本发明的一个方面,提供了一种基于OBD的车道偏离预警方法,所述方法包括:According to one aspect of the present invention, an OBD-based lane departure warning method is provided, the method comprising:

车载终端预测第一预设时间段内车辆的行车路线;The vehicle-mounted terminal predicts the driving route of the vehicle within the first preset time period;

识别当前行驶车道的车道线;Identify the lane lines of the current driving lane;

基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离;Predict whether the vehicle may deviate from a lane based on the driving route and the lane line;

若所述车辆可能发生车道偏离,则通过车载诊断OBD接口发出报警信号。If the vehicle may deviate from the lane, an alarm signal is sent through the on-board diagnostic OBD interface.

可选地,所述方法还包括:Optionally, the method also includes:

若在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作,则自动修正所述车辆的行驶状态。If the driver's correction operation is not detected within the second preset time period when the alarm signal is issued, the driving state of the vehicle is automatically corrected.

可选地,所述车载终端预测第一预设时间段内车辆的行车路线的步骤包括:Optionally, the step of the vehicle-mounted terminal predicting the driving route of the vehicle within the first preset time period includes:

车载终端获取车辆当前的位置信息;The vehicle-mounted terminal acquires the current location information of the vehicle;

通过OBD接口获取所述车辆的车速和方向盘信号;Obtain the vehicle speed and steering wheel signals of the vehicle through the OBD interface;

基于所述当前的位置信息、所述车速和方向盘信号预测第一预设时间段内车辆的行车路线。Predicting the driving route of the vehicle within a first preset time period based on the current position information, the vehicle speed and the steering wheel signal.

可选地,所述识别当前行驶车道的车道线的步骤包括:Optionally, the step of identifying the lane line of the current driving lane includes:

获取当前行驶车道的图像信号;Obtain the image signal of the current driving lane;

对所述图像信号进行预处理;Preprocessing the image signal;

对预处理后的图像信号进行Canny边缘检测以及Hough变换,提取车道线。Carry out Canny edge detection and Hough transform on the preprocessed image signal to extract lane lines.

可选地,所述基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离的步骤包括:Optionally, the step of predicting whether the vehicle may deviate from the lane based on the driving route and the lane line includes:

通过OBD接口判断所述行车路线是否与所述车道线相交;Judging whether the driving route intersects the lane line through the OBD interface;

若是,则判定可能发生车道偏离;If so, it is determined that lane departure may occur;

若否,则判定不发生车道偏离。If not, it is determined that no lane departure has occurred.

可选地,所述基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离的步骤包括:Optionally, the step of predicting whether the vehicle may deviate from the lane based on the driving route and the lane line includes:

通过OBD接口获取所述行车路线与所述车道线之间的垂直距离;Obtain the vertical distance between the driving route and the lane line through the OBD interface;

若所述垂直距离小于预设阈值,则判定可能发生车道偏离;If the vertical distance is less than a preset threshold, it is determined that lane departure may occur;

若所述垂直距离大于或等于预设阈值,则判定不发生车道偏离。If the vertical distance is greater than or equal to a preset threshold, it is determined that no lane departure occurs.

可选地,所述报警信号包括如下信号的至少一种:方向盘震动、声音信号、提示灯闪/亮信号。Optionally, the alarm signal includes at least one of the following signals: steering wheel vibration, sound signal, and warning light flashing/on signal.

可选地,所述若在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作,则自动修正所述车辆的行驶状态的步骤包括:Optionally, if the driver's correction operation is not detected within the second preset time period when the alarm signal is issued, the step of automatically correcting the driving state of the vehicle includes:

若在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作,则自动修整方向盘,使车辆自动回正线路。If the driver's correcting operation is not detected within the second preset period of time when the alarm signal is issued, the steering wheel is automatically corrected so that the vehicle automatically returns to the normal route.

根据本发明的另一方面,提供了一种基于OBD的车道偏离预警的车载终端,所述车载终端包括:According to another aspect of the present invention, a vehicle-mounted terminal for lane departure warning based on OBD is provided, the vehicle-mounted terminal includes:

行车路线预测模块,适于预测第一预设时间段内车辆的行车路线;a driving route prediction module, adapted to predict the driving route of the vehicle within the first preset time period;

车道线识别模块,适于识别当前行驶车道的车道线;A lane line recognition module, adapted to identify the lane line of the current driving lane;

车道偏离判断模块,适于基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离;A lane departure judging module, adapted to predict whether the vehicle may deviate from a lane based on the driving route and the lane line;

报警模块,适于在所述车辆可能发生车道偏离时,通过车载诊断OBD接口发出报警信号。The alarm module is adapted to send out an alarm signal through the OBD interface of the vehicle when the vehicle may deviate from the lane.

可选地,所述车载终端还包括:Optionally, the vehicle-mounted terminal also includes:

修正模块,适于在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作时,自动修正所述车辆的行驶状态。The correction module is adapted to automatically correct the driving state of the vehicle when no correction operation by the driver is detected within the second preset time period when the alarm signal is issued.

可选地,所述行车路线预测模块还适于:Optionally, the driving route prediction module is also suitable for:

车载终端获取车辆当前的位置信息;The vehicle-mounted terminal acquires the current location information of the vehicle;

通过OBD接口获取所述车辆的车速和方向盘信号;Obtain the vehicle speed and steering wheel signals of the vehicle through the OBD interface;

基于所述当前的位置信息、所述车速和方向盘信号预测第一预设时间段内车辆的行车路线。Predicting the driving route of the vehicle within a first preset time period based on the current position information, the vehicle speed and the steering wheel signal.

可选地,所述车道线识别模块还适于:Optionally, the lane line recognition module is also suitable for:

获取当前行驶车道的图像信号;Obtain the image signal of the current driving lane;

对所述图像信号进行预处理;Preprocessing the image signal;

对预处理后的图像信号进行Canny边缘检测以及Hough变换,提取车道线。Carry out Canny edge detection and Hough transform on the preprocessed image signal to extract lane lines.

可选地,所述车道偏离判断模块还适于:Optionally, the lane departure judging module is further adapted to:

通过OBD接口判断所述行车路线是否与所述车道线相交;Judging whether the driving route intersects the lane line through the OBD interface;

若是,则判定可能发生车道偏离;If so, it is determined that lane departure may occur;

若否,则判定不发生车道偏离。If not, it is determined that no lane departure has occurred.

可选地,所述车道偏离判断模块还适于:Optionally, the lane departure judging module is further adapted to:

通过OBD接口获取所述行车路线与所述车道线之间的垂直距离;Obtain the vertical distance between the driving route and the lane line through the OBD interface;

若所述垂直距离小于预设阈值,则判定可能发生车道偏离;If the vertical distance is less than a preset threshold, it is determined that lane departure may occur;

若所述垂直距离大于或等于预设阈值,则判定不发生车道偏离。If the vertical distance is greater than or equal to a preset threshold, it is determined that no lane departure occurs.

可选地,所述报警信号包括如下信号的至少一种:方向盘震动、声音信号、提示灯闪/亮信号。Optionally, the alarm signal includes at least one of the following signals: steering wheel vibration, sound signal, and warning light flashing/on signal.

可选地,所述修正模块还适于:Optionally, the correction module is also suitable for:

若在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作,则自动修整方向盘,使车辆自动回正线路。If the driver's correcting operation is not detected within the second preset period of time when the alarm signal is issued, the steering wheel is automatically corrected so that the vehicle automatically returns to the normal route.

根据本发明的另一方面,提供了一种智能汽车,包括上述的车载终端。According to another aspect of the present invention, a smart car is provided, including the above-mentioned vehicle-mounted terminal.

根据本发明的一种基于OBD的车道偏离预警方法、车载终端以及智能汽车,可以基于OBD接口预测的第一预设时间段内车辆的行车路线以及识别出的车道线,主动预测车辆是否可能发生车道偏离,并在预测车辆可能发生车道偏离时,通过OBD接口向驾驶员发出报警信号,将车载诊断OBD接口应用在车道偏离预警上,丰富了OBD的功能,并能有效地保证驾驶员驾驶的安全性,降低事故的发生。According to the OBD-based lane departure warning method, vehicle-mounted terminal, and smart car of the present invention, it is possible to actively predict whether the vehicle may occur based on the vehicle's driving route and identified lane lines within the first preset time period predicted by the OBD interface. Lane departure, and when it is predicted that the vehicle may deviate from the lane, it will send an alarm signal to the driver through the OBD interface, and the on-board diagnostic OBD interface is applied to the lane departure warning, which enriches the functions of OBD and can effectively ensure the driving safety of the driver. Safety and reduce the occurrence of accidents.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了根据本发明一个实施例的一种基于OBD的车道偏离预警方法实施例一的步骤流程图;Fig. 1 shows a flow chart of the steps of Embodiment 1 of an OBD-based lane departure warning method according to an embodiment of the present invention;

图2示出了根据本发明一个实施例的一种基于OBD的车道偏离预警方法实施例二的步骤流程图;以及FIG. 2 shows a flow chart of the steps of Embodiment 2 of an OBD-based lane departure warning method according to an embodiment of the present invention; and

图3示出了根据本发明一个实施例的一种基于OBD的车道偏离预警的车载终端实施例的结构框图。Fig. 3 shows a structural block diagram of an embodiment of an OBD-based vehicle-mounted terminal for lane departure warning according to an embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

参照图1,示出了根据本发明一个实施例的一种基于OBD的车道偏离预警方法实施例一的步骤流程图,可以应用于具有车载终端的智能汽车中。在一种优选实施方式中,该车载终端可以安装有车载单元(On board Unit,简称OBU),其中,在ETC(Electronic TollCollection,电子不停车收费系统)中,OBU放在车上,采用DSRC(Dedicated Short RangeCommunication,专用短程通信技术),与路边架设路测单元(Road Side Unit,简称RSU)相互之间通过微波进行通讯。Referring to FIG. 1 , it shows a flow chart of the steps of Embodiment 1 of an OBD-based lane departure warning method according to an embodiment of the present invention, which can be applied to a smart car with a vehicle-mounted terminal. In a preferred embodiment, the vehicle-mounted terminal can be equipped with a vehicle-mounted unit (On board Unit, OBU for short), wherein, in ETC (Electronic TollCollection, electronic non-stop charging system), the OBU is placed on the vehicle, and the DSRC ( Dedicated Short Range Communication, dedicated short-range communication technology), communicates with the Road Side Unit (RSU for short) set up on the roadside through microwaves.

优选地,该车载终端还可以安装有OBD(On-Board Diagnostic,车载诊断系统),OBD监测智能汽车中的多个系统和部件,包括发动机、催化转化器、颗粒捕集器、氧传感器、排放控制系统、燃油系统、EGR(废气再循环系统)等。OBD是通过各种与排放有关的部件信息,联接到电控单元(ECU),ECU具备检测和分析与排放相关故障的功能。当出现排放故障时,ECU记录故障信息和相关代码,并通过故障灯发出警告,告知驾驶员。ECU通过标准数据接口,保证对故障信息的访问和处理。Preferably, the vehicle terminal can also be equipped with OBD (On-Board Diagnostic, on-board diagnostic system), OBD monitors multiple systems and components in the smart car, including engine, catalytic converter, particle trap, oxygen sensor, emission Control system, fuel system, EGR (exhaust gas recirculation system), etc. OBD is connected to the electronic control unit (ECU) through various emission-related component information, and the ECU has the function of detecting and analyzing emission-related faults. When an emission failure occurs, the ECU records the failure information and related codes, and issues a warning through the failure light to inform the driver. ECU guarantees the access and processing of fault information through standard data interface.

进一步的,OBD接口作为车载监控系统的通讯接口,除了读取故障码外,还可以提供车辆的各种工况数据,例如车辆仪表显示的数据、各项油耗记录、电池电压、空燃比、节气门开度、爆震数量等。Furthermore, the OBD interface is used as the communication interface of the on-board monitoring system. In addition to reading the fault code, it can also provide various working condition data of the vehicle, such as the data displayed on the vehicle instrument, various fuel consumption records, battery voltage, air-fuel ratio, fuel economy, etc. Valve opening, knock amount, etc.

本发明实施例具体可以包括如下步骤:The embodiment of the present invention may specifically include the following steps:

步骤101,车载终端预测第一预设时间段内车辆的行车路线;Step 101, the vehicle-mounted terminal predicts the driving route of the vehicle within the first preset time period;

应用于本发明实施例,车载终端能够预设预设时间段内车辆的行车路线。Applied to the embodiment of the present invention, the vehicle-mounted terminal can preset the driving route of the vehicle within a preset time period.

在本发明实施例的一种优选实施例中,步骤101可以包括如下子步骤:In a preferred embodiment of the embodiment of the present invention, step 101 may include the following sub-steps:

子步骤S11,车载终端获取车辆当前的位置信息;In sub-step S11, the vehicle-mounted terminal obtains the current location information of the vehicle;

在具体实现中,车载终端可以采用定位系统,例如,GPS(Global PositioningSystem,全球定位系统),GNSS(Global Navigation Satellite System,全球卫星导航系统),BDS(BeiDou Navigation Satellite System,中国北斗卫星导航系统)、GLONASS(格洛纳斯卫星导航系统)等获取实时的位置信息。In a specific implementation, the vehicle-mounted terminal can adopt a positioning system, for example, GPS (Global Positioning System, Global Positioning System), GNSS (Global Navigation Satellite System, global satellite navigation system), BDS (BeiDou Navigation Satellite System, China Beidou Satellite Navigation System) , GLONASS (Glonass satellite navigation system), etc. to obtain real-time location information.

作为本发明实施例的一种示例,该位置信息可以包括但不限于以下至少之一:当前位置的经纬度、当前位置附近的重要建筑物、车载终端位置变化的移动方向,等等。As an example of an embodiment of the present invention, the location information may include but not limited to at least one of the following: the latitude and longitude of the current location, important buildings near the current location, the moving direction of the vehicle terminal location change, and so on.

子步骤S12,通过车载诊断OBD接口获取所述车辆的车速和方向盘信号;Sub-step S12, obtaining the vehicle speed and steering wheel signals of the vehicle through the on-board diagnostic OBD interface;

在具体实现中,可以通过CAN(Controller Area Network,控制器局域网络)总线从车辆OBD接口获取车辆的车速和方向盘信号。In a specific implementation, the vehicle speed and steering wheel signals of the vehicle can be obtained from the vehicle OBD interface through a CAN (Controller Area Network, controller area network) bus.

其中,方向盘信号可以包括方向盘转动的角度,方向盘转动的角度与车辆的偏转角度相对应。Wherein, the steering wheel signal may include the angle of rotation of the steering wheel, and the angle of rotation of the steering wheel corresponds to the yaw angle of the vehicle.

在实际中,可以设定一频率参数,使得车载终端按照该频率参数,每隔一定频率向OBD获取车辆的车速和方向盘信号。In practice, a frequency parameter can be set so that the vehicle-mounted terminal obtains the vehicle speed and steering wheel signals of the vehicle from the OBD at a certain frequency according to the frequency parameter.

子步骤S13,基于所述当前的位置信息、所述车速和方向盘信号预测第一预设时间段内车辆的行车路线。Sub-step S13, predicting the driving route of the vehicle within a first preset time period based on the current position information, the vehicle speed and the steering wheel signal.

在一种实施方式中,可以采用如下方式预测第一预设时间段内车辆的行车路线:车辆的位置信息随着车辆的行驶而发生变化,根据车辆的车速、行车方向和行车时间,可以计算出车辆在每个时间点的位置,将第一预设时间段内的所有时间点的位置连接起来,可以得到第一预设时间段内的车辆的行车路线。In one embodiment, the following method can be used to predict the driving route of the vehicle within the first preset time period: the position information of the vehicle changes with the driving of the vehicle, and according to the vehicle speed, driving direction and driving time, it can be calculated The position of the vehicle at each time point is obtained, and the positions of all time points within the first preset time period are connected to obtain the driving route of the vehicle within the first preset time period.

在另一种实施方式中,还可以采用采用如下方式预测第一预设时间段内车辆的行车路线:基于所述位置信息、车速和方向盘信号计算车辆行驶第一预定时间后到达的位置,以直线连线该位置与车辆的当前位置得到车辆行驶第一预定时间对应的预测路段。In another embodiment, the vehicle's driving route within the first preset time period may also be predicted in the following manner: based on the position information, vehicle speed and steering wheel signal, the position the vehicle arrives after driving for the first predetermined time is calculated, so as to A straight line connects the position and the current position of the vehicle to obtain a predicted road section corresponding to the first predetermined time of vehicle travel.

在另一种实施方式中,还可以采用采用如下方式预测第一预设时间段内车辆的行车路线:In another embodiment, the following method can also be used to predict the driving route of the vehicle within the first preset time period:

(1)计算最大侧向加速度。根据当前时刻的车辆速度v,结合人类驾驶员驾驶行为模型及车辆运动学、动力学模型,获得车辆在当前时刻的车辆速度v下允许的最大侧向加速度acritical;(1) Calculate the maximum lateral acceleration. According to the vehicle speed v at the current moment, combined with the human driver's driving behavior model and the vehicle kinematics and dynamics model, the maximum lateral acceleration acritical allowed by the vehicle at the current vehicle speed v is obtained;

对人类驾驶员的驾驶行为进行分析,事实上衡量驾驶员驾驶行为的安全性、舒适性等指标,都可以合理地归结到车辆运动的加速度空间中。对于以不同速度V运动的车辆来说,安全、舒适的驾驶行为都存在相对应的合理侧向加速度aV。因此,首先建立离散的速度-侧向加速度查找表(V-aV)。对于当前时刻的车辆速度v,在查找表内找到包含v的最小区间[V1,V2]及其相对应的侧向加速度值a1、a2。基于插值的原理,计算得到对应于当前时刻的车辆速度v的最大侧向加速度acritica,公式如下:Analyzing the driving behavior of human drivers, in fact, measuring the safety, comfort and other indicators of the driver's driving behavior can be reasonably attributed to the acceleration space of vehicle motion. For vehicles moving at different speeds V, there is a corresponding reasonable lateral acceleration aV for safe and comfortable driving behavior. Therefore, a discrete velocity-lateral acceleration lookup table (V-aV) is established first. For the vehicle speed v at the current moment, find the minimum interval [V1, V2] containing v and its corresponding lateral acceleration values a1, a2 in the lookup table. Based on the principle of interpolation, the maximum lateral acceleration acritica corresponding to the vehicle speed v at the current moment is calculated, and the formula is as follows:

(2)计算最小转弯半径。依据(1)中得到的当前时刻的车辆速度v与求解得到的acritical,根据车辆运动学模型可以计算得到当前车速下允许的最小转弯半径Rcritical=v2/acritical,即为对应当前时刻的车辆速度v的最小转弯半径的圆弧轨迹。(2) Calculate the minimum turning radius. According to the vehicle speed v at the current moment obtained in (1) and the critical solution obtained from the solution, the minimum turning radius allowed at the current vehicle speed can be calculated according to the vehicle kinematics model Rcritical=v2/acritical, which is the vehicle speed v corresponding to the current moment The arc trajectory of the minimum turning radius.

(3)预测车辆行驶轨迹。依据(2)中确定的最小转弯半径,可得到对应当前时刻的车辆速度v下车辆可能行驶轨迹的范畴,即为左右最小转弯半径[-Rcritical,Rcritical]所包含的区域。(3) Predict vehicle trajectory. According to the minimum turning radius determined in (2), the range of the possible vehicle trajectory corresponding to the vehicle speed v at the current moment can be obtained, that is, the area included in the left and right minimum turning radius [-Rcritical, Rcritical].

需要说明的是,上述预测第一预设时间段内车辆的行车路线的三种方式仅仅是本发明实施例的一种示例,本领域技术人员采用其他方式来预测第一预设时间段内车辆的行车路线均是可以的,本发明实施例对此不作限制。It should be noted that the above three methods of predicting the vehicle's driving route within the first preset time period are only examples of the embodiment of the present invention, and those skilled in the art use other methods to predict the vehicle's driving route within the first preset time period. All driving routes are possible, which is not limited in this embodiment of the present invention.

步骤102,识别当前行驶车道的车道线;Step 102, identifying the lane line of the current driving lane;

车道线是分隔不同行驶车道的实线或虚线,在具体实现中,车道线具有具有以下固有特征:车道线主要颜色是白色或黄色;虽然由于透视变换的影响,车道线在图像中的宽度不一样,但车道线在图像中还是有一定宽度的;车道线灰度值大于路面的灰度值;车道线由连续的或间断的车道标识组成,在一定程度上可以假定车道线是连续的;车道线可以近似由直线描述:一般情况下,公路弯道曲率较小,在车辆前方某范围内可以将车道线作为直线来对待。Lane lines are solid or dotted lines that separate different driving lanes. In specific implementations, lane lines have the following inherent characteristics: the main color of lane lines is white or yellow; although due to the influence of perspective transformation, the width of lane lines in the image is not The same, but the lane line still has a certain width in the image; the gray value of the lane line is greater than the gray value of the road surface; the lane line is composed of continuous or intermittent lane markings, and it can be assumed that the lane line is continuous to a certain extent; The lane line can be approximately described by a straight line: in general, the curvature of the road curve is small, and the lane line can be treated as a straight line within a certain range in front of the vehicle.

在本发明实施例的一种优选实施例中,步骤102可以包括如下子步骤:In a preferred embodiment of the embodiment of the present invention, step 102 may include the following sub-steps:

子步骤S21,获取当前行驶车道的图像信号;Sub-step S21, acquiring the image signal of the current driving lane;

在具体实现中,可以采用智能汽车中的摄像头来采集当前行驶车道的图像信号。此前,首先需要完成摄像头的标定,摄像头标定的目的主要是为了求的摄像头的内外参数,用这些参数来计算车体到左右车道线的距离、车体和前方车辆之间的距离以及计算车辆的真实高度和宽度等。In a specific implementation, the camera in the smart car can be used to collect image signals of the current driving lane. Previously, the calibration of the camera needs to be completed first. The purpose of camera calibration is mainly to obtain the internal and external parameters of the camera. These parameters are used to calculate the distance between the car body and the left and right lane lines, the distance between the car body and the vehicle in front, and the calculation of the vehicle’s distance. Real height and width etc.

标定摄像头以后,可以选取一定的区域作为车道线检测区域,摄取该区域以获得图像信号。After the camera is calibrated, a certain area can be selected as the lane line detection area, and the area can be captured to obtain an image signal.

子步骤S22,对所述图像信号进行预处理;Sub-step S22, preprocessing the image signal;

图像信号的预处理主要是对摄像头实时采集的图像信号进行前期处理,主要包括去除图像的各种噪声,并根据摄像机的位置调节算法中的一些参数以提取图像的感兴趣区域(ROI),以及进行边缘检测等,目的是为了加强图像的有用信息,抑制干扰。The preprocessing of the image signal is mainly to pre-process the image signal collected by the camera in real time, mainly including removing various noises of the image, and adjusting some parameters in the algorithm according to the position of the camera to extract the region of interest (ROI) of the image, and The purpose of edge detection and so on is to enhance the useful information of the image and suppress interference.

在一种实施方式中,上述预处理至少可以包括:括对图像进行ROI处理、灰化处理、平滑滤波处理、对比度增强处理、直方图分析区域及基于先验知识的动态阈值二值化处理。In one embodiment, the above preprocessing may at least include: ROI processing, graying processing, smoothing filter processing, contrast enhancement processing, histogram analysis region and prior knowledge-based dynamic threshold binarization processing on the image.

ROI处理是基于CCD(Charge-coupled Device,电荷耦合元件)和CMOS(Complementary Metal Oxide Semiconductor,互补金属氧化物半导体)成像原理将图像信号分为感兴趣区域和非感兴趣区域从而建模。首先,摄像头获得基于CCD或CMOS的图像,获取图像后,对图像进行分割处理。对图像进行ROI处理,旨在近似地取一个分界点Ym作为近视觉区和远视觉区的分界点。其中,近视觉区即为感兴趣区域,远视觉区为非感兴趣区域。在近视觉区域中,车道近似看做直线。ROI processing is based on CCD (Charge-coupled Device, charge-coupled device) and CMOS (Complementary Metal Oxide Semiconductor, Complementary Metal Oxide Semiconductor) imaging principles to divide image signals into regions of interest and regions of non-interest for modeling. First, the camera obtains an image based on CCD or CMOS, and after the image is obtained, the image is segmented. The ROI processing on the image aims to approximately take a cutoff point Ym as the cutoff point between the near vision area and the far vision area. Wherein, the near vision area is the region of interest, and the far vision area is the non-interest area. In the near vision area, the lane is approximately seen as a straight line.

接着,进行灰化处理,灰化处理以LAB模式为中介,将摄像头获取的RGB图片转换为LAB模式,进而生成相应的等值RGB灰阶。也就是说,将RGB图片转换为LAB模式,然后在LAB模式中去色,然后再返回RGB图片并生成一个等值的RGB灰阶,最后再根据该灰阶向灰度空间转换,并生成相应的灰度K。灰度K的取值在0~255。Then, ash processing is carried out. The ash processing uses the LAB mode as an intermediary to convert the RGB image acquired by the camera into the LAB mode, and then generates the corresponding equivalent RGB gray scale. That is to say, convert the RGB image to LAB mode, then decolorize in LAB mode, then return to the RGB image and generate an equivalent RGB grayscale, and finally convert to the grayscale space according to the grayscale, and generate the corresponding The grayscale K. The value of the gray scale K is between 0 and 255.

经过灰化后得到的图像存在许多噪点,采用中值滤波法进行处理。把数字图像或数字序列中一点的值用该点的一个邻域(3*3)中各点值的中值代替,让周围的像素值接近真实值,从而消除孤立的噪声点。利用从左到右、从上到下结构的滑动模板,将显示屏内像素按照像素值的大小进行排序,生成单调上升(或下降)的数据序列。平滑滤波处理采用中值滤波的方式可非线性平滑地去除灰化后存在的噪声点,并同时保护目标边界使之不模糊。There are many noise points in the image obtained after graying, and the median filtering method is used for processing. Replace the value of a point in a digital image or digital sequence with the median value of each point in a neighborhood (3*3) of the point, so that the surrounding pixel values are close to the real value, thereby eliminating isolated noise points. Using the sliding template from left to right and from top to bottom, the pixels in the display screen are sorted according to the size of the pixel value, and a monotonically rising (or falling) data sequence is generated. The smoothing filtering process adopts the median filtering method, which can nonlinearly and smoothly remove the noise points after graying, and at the same time protect the target boundary so that it is not blurred.

然后进行对比度增强处理,由于中值滤波后所得灰度图像的饱满度较低,采用增强对比度的方式使图像的饱满度得到提高,有助于系统较清晰的分辨车道线的位置。Then, the contrast enhancement process is performed. Since the fullness of the grayscale image obtained after the median filter is low, the contrast enhancement method is used to improve the fullness of the image, which helps the system to clearly distinguish the position of the lane line.

之后,采用直方图分析区域,直方图分析将图像分为m级,灰度值为i的像素有n个,将各个级别的像素出现的概率用直方图的形式体现出来并分析。Afterwards, use the histogram to analyze the area. The histogram analysis divides the image into m levels, and there are n pixels with gray value i. The probability of occurrence of pixels at each level is reflected and analyzed in the form of a histogram.

当然,上述对图像信号进行预处理的方式仅仅是本发明实施例的示例性说明,本领域技术人员进行其他的图像预处理也是可以的,本发明实施例对此不作限制。Certainly, the foregoing manner of preprocessing the image signal is only an exemplary description of the embodiment of the present invention, and it is also possible for those skilled in the art to perform other image preprocessing, which is not limited in the embodiment of the present invention.

子步骤S23,对预处理后的图像信号进行Canny边缘检测以及Hough变换,提取车道线。In sub-step S23, Canny edge detection and Hough transform are performed on the preprocessed image signal to extract lane lines.

对图像信号进行预处理后,可以基于Canny边缘检测以及Hough变换算法来提取车道线。After preprocessing the image signal, the lane line can be extracted based on Canny edge detection and Hough transform algorithm.

Canny边缘检测算法实质上是用一个准高斯函数做平滑运算,然后以带方向的一阶微分算子定位导数最大值,继而根据Canny算子三个判定原则判断该点是否为边缘点。The Canny edge detection algorithm essentially uses a quasi-Gaussian function for smoothing operations, and then uses a directional first-order differential operator to locate the maximum value of the derivative, and then judges whether the point is an edge point according to the three judgment principles of the Canny operator.

具体地说,根据Canny的定义,中心边缘点为算子与图像的卷积在边缘梯度方向上的区域中的最大值,这样,就可以在每一点的梯度方向上判断此点强度是否为其邻域的最大值,来确定该点是否为边缘点,当一个象素满足以下三个条件时,则被认为是图像的边缘点:1)该点的边缘强度大于沿该点梯度方向的两个相邻象素点的边缘强度;2)与该点梯度方向上相邻两点的方向差小于45度;3)以该点为中心的3×3邻域中的边缘强度极大值小于某个阈值。通过Canny算子边缘检测从而得到车道边缘图像。Specifically, according to the definition of Canny, the central edge point is the maximum value in the area of the convolution between the operator and the image in the edge gradient direction, so that it can be judged in the gradient direction of each point whether the intensity of this point is its The maximum value of the neighborhood is used to determine whether the point is an edge point. When a pixel satisfies the following three conditions, it is considered to be an edge point of the image: 1) The edge intensity of the point is greater than two points along the gradient direction of the point. edge intensity of adjacent pixel points; 2) the direction difference between two adjacent points in the gradient direction of this point is less than 45 degrees; 3) the edge intensity maximum value in the 3×3 neighborhood centered on this point is less than some threshold. The lane edge image is obtained by Canny operator edge detection.

在车道线直线提取算法中,Hough变换是最常用的方法之一,其优点在于抗噪性能好,算法稳定。Hough变换是一种使用表决原理的参数估计技术。其原理是利用图像空间和Hough参数空间的点-线对偶性,把图像空间中的检测问题转换到参数空间。通过在参数空间里进行简单的累加统计,然后在Hough参数空间寻找累加器峰值的方法检测直线。Hough变换的实质是将图像空间内具有一定关系的像元进行聚类,寻找能把这些像元用某一解析形式联系起来的参数空间累积对应点。In the lane line extraction algorithm, Hough transform is one of the most commonly used methods, and its advantages are good anti-noise performance and stable algorithm. The Hough transform is a parameter estimation technique that uses the voting principle. The principle is to convert the detection problem in the image space to the parameter space by using the point-line duality of the image space and the Hough parameter space. A straight line is detected by performing simple accumulation statistics in the parameter space, and then finding the peak value of the accumulator in the Hough parameter space. The essence of the Hough transform is to cluster the pixels with a certain relationship in the image space, and to find the cumulative corresponding points in the parameter space that can connect these pixels with a certain analytical form.

图像空间中的像素点可以通过投影的方式用参数空间中的直线来表示。在提取车道线的过程中,可以首先确定一个极坐标系,即初始化一个二维数组缓冲区用于存放参数平面ρ,θ的值,先将数组中所有数据置为0。然后对道路图像每一个像素点进行Hough变换,遍历所有点的θ角(遍历的区域可根据需要进行选择),即极角,计算出所有的ρ值,即极径。在对应相同ρ,θ的点的参数数组中加1。最后,找到参数平面上参数数组较大点的位置,较大点的选取可以根据变换需要设定不同的阈值来选取,这个位置就是对应道路图像上直线的参数。在得到的参数中可能存在多条车道线导致车道线过宽或者多边形等情况,因此可以采取了车道拟合的方式关于宽直线、多边界来进行车道拟合。Hough变换对所有的点进行累加后,累加点个数阈值不好确定。如果阈值过大,当车道线有虚线时,车道线的间断部分影响了直线的累加值,此时车道线可能被漏检。如果阈值过小,当前车道线之外的其他行道线,以及道路边界等也会被认为是车道线,需要采取一定的策略进行车道线的提取。Pixels in image space can be represented by straight lines in parameter space through projection. In the process of extracting lane lines, you can first determine a polar coordinate system, that is, initialize a two-dimensional array buffer to store the values of the parameter planes ρ, θ, and first set all the data in the array to 0. Then perform Hough transform on each pixel of the road image, traverse the θ angle of all points (the traversed area can be selected according to needs), that is, the polar angle, and calculate all the values of ρ, that is, the polar radius. Add 1 to the parameter array for points corresponding to the same ρ, θ. Finally, find the position of the larger point of the parameter array on the parameter plane. The selection of the larger point can be selected by setting different thresholds according to the transformation needs. This position is the parameter corresponding to the straight line on the road image. In the obtained parameters, there may be multiple lane lines that cause the lane lines to be too wide or polygonal. Therefore, the lane fitting method can be used to perform lane fitting on wide straight lines and multiple boundaries. After the Hough transform accumulates all the points, the threshold of the number of accumulated points is not easy to determine. If the threshold is too large, when the lane line has a dashed line, the discontinuous part of the lane line will affect the cumulative value of the straight line, and the lane line may be missed at this time. If the threshold is too small, other lane lines and road boundaries other than the current lane line will also be considered as lane lines, and certain strategies need to be adopted to extract lane lines.

车道线经过canny边缘检测,可以获取到很多边缘点,将这些边缘点进行Hough变换转换成Hough空间中的一条曲线。以Hough空间的坐标参数Theta和Rho的不同值为标志建立一个累加器数组。当曲线经过相应的坐标值时,该坐标值对应得累加器值加1。这样对所有边缘点进行Hough变换后,当Hough空间坐标对应的累加器的值大于设定的参数时,则认为该坐标值的Theta和Rho值对应一条车道线。After the lane line is detected by canny edge, many edge points can be obtained, and these edge points are converted into a curve in Hough space by Hough transform. Create an accumulator array with different values of coordinate parameters Theta and Rho in Hough space. When the curve passes through the corresponding coordinate value, the corresponding coordinate value will add 1 to the accumulator value. In this way, after Hough transformation is performed on all edge points, when the value of the accumulator corresponding to the Hough space coordinate is greater than the set parameter, it is considered that the Theta and Rho values of the coordinate value correspond to a lane line.

步骤103,基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离;Step 103, based on the driving route and the lane line, predict whether the vehicle may deviate from the lane;

提取车道线以后,可以通过OBD接口来预测车辆是否有可能发生车道偏离。After the lane line is extracted, the OBD interface can be used to predict whether the vehicle is likely to deviate from the lane.

在本发明实施例的一种优选实施例中,步骤103具体可以为:通过OBD接口判断所述行车路线是否与所述车道线相交;若是,则判定可能发生车道偏离;若否,则判定不发生车道偏离。In a preferred embodiment of the embodiment of the present invention, step 103 may specifically be: determine whether the driving route intersects the lane line through the OBD interface; if so, determine that lane departure may occur; A lane departure has occurred.

具体来说,如果车辆在第一预设时间段内的行车路线与识别出的车道线有交集,说明如果按照该预测的行车路线行驶,可能发生车道偏离,否则,若两者之间没有交集,说明如果按照该预测的行车路线行驶,不会发生车道偏离。Specifically, if the vehicle's driving route within the first preset time period intersects with the recognized lane line, it means that if the vehicle follows the predicted driving route, lane departure may occur; otherwise, if there is no intersection between the two , indicating that if the predicted driving route is followed, no lane departure will occur.

在本发明实施例的一种优选实施例中,步骤103具体可以为:通过OBD接口获取所述行车路线与所述车道线之间的垂直距离;若所述垂直距离小于预设阈值,则判定可能发生车道偏离;若所述垂直距离大于或等于预设阈值,则判定不发生车道偏离。In a preferred embodiment of the embodiment of the present invention, step 103 may specifically be: obtain the vertical distance between the driving route and the lane line through the OBD interface; if the vertical distance is less than a preset threshold, then determine Lane departure may occur; if the vertical distance is greater than or equal to a preset threshold, it is determined that no lane departure occurs.

具体来说,可以通过OBD接口检测汽车和其所行驶车道线的距离,若该距离小于一个阈值,则说明可能会发生车道偏离,若该距离大于该阈值,则说明不会发生车道偏离。Specifically, the OBD interface can be used to detect the distance between the car and the lane line it is driving on. If the distance is less than a threshold, it means that lane departure may occur. If the distance is greater than the threshold, it means that lane departure will not occur.

步骤104,若所述车辆可能发生车道偏离,则通过车载诊断OBD接口发出报警信号。Step 104, if the vehicle may deviate from the lane, send an alarm signal through the OBD interface of the vehicle.

当OBD接口检测到车辆可能发生车道偏离时,可以通过OBD接口按照一定频率向驾驶员发出报警信号,以警示驾驶员可能会发生车道偏离的情况,提醒驾驶员采用适当措施,保证驾驶行为的安全性。When the OBD interface detects that the vehicle may deviate from the lane, it can send an alarm signal to the driver at a certain frequency through the OBD interface to warn the driver of the possible lane departure and remind the driver to take appropriate measures to ensure the safety of driving behavior. sex.

作为本发明实施例的一种优选示例,报警信号可以包括如下信号的至少一种:方向盘震动、声音信号、提示灯闪/亮信号。As a preferred example of the embodiment of the present invention, the alarm signal may include at least one of the following signals: steering wheel vibration, sound signal, and warning light flashing/on signal.

在本发明实施例中,能够基于OBD接口预测的第一预设时间段内车辆的行车路线以及识别出的车道线,主动预测车辆是否可能发生车道偏离,并在预测车辆可能发生车道偏离时,通过OBD接口向驾驶员发出报警信号,将车载诊断OBD接口应用在车道偏离预警上,丰富了OBD的功能,并能有效地保证驾驶员驾驶的安全性,降低事故的发生。In the embodiment of the present invention, based on the vehicle's driving route and the identified lane lines within the first preset time period predicted by the OBD interface, it is possible to actively predict whether the vehicle may deviate from the lane, and when it is predicted that the vehicle may deviate from the lane, An alarm signal is sent to the driver through the OBD interface, and the on-board diagnostic OBD interface is applied to the lane departure warning, which enriches the functions of the OBD, and can effectively ensure the driving safety of the driver and reduce the occurrence of accidents.

参照图2,示出了根据本发明一个实施例的一种基于OBD的车道偏离预警方法实施例二的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2 , it shows a flow chart of the steps of Embodiment 2 of an OBD-based lane departure warning method according to an embodiment of the present invention, which may specifically include the following steps:

步骤201,车载终端预测第一预设时间段内车辆的行车路线;Step 201, the vehicle-mounted terminal predicts the driving route of the vehicle within the first preset time period;

在本发明实施例的一种优选实施例中,步骤201可以包括如下子步骤:In a preferred embodiment of the embodiment of the present invention, step 201 may include the following sub-steps:

子步骤S31,车载终端获取车辆当前的位置信息;In sub-step S31, the vehicle-mounted terminal obtains the current location information of the vehicle;

子步骤S32,通过OBD接口获取所述车辆的车速和方向盘信号;Sub-step S32, obtaining the vehicle speed and steering wheel signal of the vehicle through the OBD interface;

子步骤S33,基于所述当前的位置信息、所述车速和方向盘信号预测第一预设时间段内车辆的行车路线。Sub-step S33, predicting the driving route of the vehicle within a first preset time period based on the current position information, the vehicle speed and the steering wheel signal.

步骤202,识别当前行驶车道的车道线;Step 202, identifying the lane line of the current driving lane;

在本发明实施例的一种优选实施例中,步骤202可以包括如下子步骤:In a preferred embodiment of the embodiment of the present invention, step 202 may include the following sub-steps:

子步骤S41,获取当前行驶车道的图像信号;Sub-step S41, acquiring the image signal of the current driving lane;

子步骤S42,对所述图像信号进行预处理;Sub-step S42, preprocessing the image signal;

子步骤S43,对预处理后的图像信号进行Canny边缘检测以及Hough变换,提取车道线。In sub-step S43, Canny edge detection and Hough transform are performed on the preprocessed image signal to extract lane lines.

步骤203,基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离;Step 203, based on the driving route and the lane line, predict whether the vehicle may deviate from the lane;

在本发明实施例的一种优选实施例中,步骤203具体可以为:通过OBD接口判断所述行车路线是否与所述车道线相交;若是,则判定可能发生车道偏离;若否,则判定不发生车道偏离。In a preferred embodiment of the embodiment of the present invention, step 203 may specifically be: determine whether the driving route intersects the lane line through the OBD interface; if so, determine that lane departure may occur; A lane departure has occurred.

在本发明实施例的另一种优选实施例中,步骤203具体可以为:通过OBD接口获取所述行车路线与所述车道线之间相隔的距离;若所述距离小于预设阈值,则判定可能发生车道偏离;若所述距离大于或等于预设阈值,则判定不发生车道偏离。In another preferred embodiment of the embodiment of the present invention, step 203 may specifically be: obtain the distance between the driving route and the lane line through the OBD interface; if the distance is less than a preset threshold, then determine Lane departure may occur; if the distance is greater than or equal to a preset threshold, it is determined that no lane departure occurs.

步骤204,若所述车辆可能发生车道偏离,则通过OBD接口发出报警信号;Step 204, if the vehicle may deviate from the lane, send an alarm signal through the OBD interface;

作为本发明实施例的一种优选示例,报警信号可以包括如下信号的至少一种:方向盘震动、声音信号、提示灯闪/亮信号。As a preferred example of the embodiment of the present invention, the alarm signal may include at least one of the following signals: steering wheel vibration, sound signal, and warning light flashing/on signal.

步骤205,若在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作,则自动修正所述车辆的行驶状态。Step 205, if no correction operation by the driver is detected within the second preset time period when the alarm signal is issued, automatically correct the driving state of the vehicle.

应用于本发明实施例,若在发出报警信号的第二预设时间段内,车载终端没有检测到驾驶员执行的修正操作,则可以通过OBD接口自动修正车辆的行驶状态,以避免车道偏离的事故发生。Applied to the embodiment of the present invention, if the vehicle-mounted terminal does not detect the correction operation performed by the driver within the second preset time period when the alarm signal is issued, the vehicle's driving state can be automatically corrected through the OBD interface to avoid lane departure. Accidents happen.

在本发明实施例的一种优选实施例中,车载终端通过OBD接口自动修正车辆的形式状态,至少可以包括如下修正操作:自动修整方向盘,使车辆自动回正线路。In a preferred embodiment of the embodiment of the present invention, the vehicle-mounted terminal automatically corrects the form state of the vehicle through the OBD interface, which may at least include the following correction operations: automatically correcting the steering wheel so that the vehicle automatically returns to the correct route.

在具体实现中,OBD接口可以采用如下方式修正车辆的形式状态:In a specific implementation, the OBD interface can correct the formal state of the vehicle in the following ways:

例如,向智能汽车的电动助力转向系统发出自动修整方向盘的动作指令,使车辆自动回正线路。For example, an action command to automatically trim the steering wheel is issued to the electric power steering system of a smart car, so that the vehicle can automatically return to the correct line.

又如,向电子刹车辅助系统发出修正路线的动作指令,使得电子刹车辅助系统轻微对行驶路线进行修正,协助车辆回归到行车线内,确保车辆安全。In another example, an action command to correct the route is sent to the electronic brake assist system, so that the electronic brake assist system slightly corrects the driving route, assists the vehicle to return to the lane, and ensures the safety of the vehicle.

又如,OBD首先判断车辆的行驶速度,若车辆处于低速行驶,则向车体控制器发出第一修正指令,车体控制器接收到第一修正指令后,控制舵机,调整方向盘,纠正发生的偏离,直到车体回到道路中央,停止车体控制器控制舵机;若车辆处于中高速行驶,则向车体控制器发出第二修正指令,车体控制器控制舵机和刹车踏板,适当减速,并调整方向盘,纠正发生的偏离,直到车体回到道路中央,停止车体控制器,至此完成车道偏离的纠正。As another example, OBD first judges the driving speed of the vehicle. If the vehicle is running at a low speed, it sends the first correction instruction to the vehicle body controller. After receiving the first correction instruction, the vehicle body controller controls the steering gear, adjusts the steering wheel, and corrects the occurrence until the car body returns to the center of the road, stop the car body controller to control the steering gear; if the vehicle is running at a medium-high speed, send a second correction command to the car body controller, and the car body controller controls the steering gear and brake pedal, Properly decelerate, adjust the steering wheel, and correct the deviation until the car body returns to the center of the road, stop the car body controller, and complete the correction of lane departure.

在本发明实施例中,若OBD预测到车辆可能发生车道偏离,除了可以进行报警信号预警以外,还可以采用主动干预的方式,主动对车辆的行驶状态进行纠正,使车辆自动回正线路,对车辆进行安全辅助驾驶,有效地保证驾驶员驾驶的安全性,降低事故的发生。In the embodiment of the present invention, if the OBD predicts that the vehicle may deviate from the lane, in addition to the alarm signal early warning, it can also use active intervention to actively correct the driving state of the vehicle, so that the vehicle automatically returns to the normal line. The vehicle carries out safety assisted driving, which can effectively ensure the safety of the driver and reduce the occurrence of accidents.

对于图2的方法实施例而言,由于其与图1的方法实施例基本相似,所以描述的比较简单,相关之处参见图1的方法实施例的部分说明即可。As for the method embodiment in FIG. 2 , since it is basically similar to the method embodiment in FIG. 1 , the description is relatively simple. For related parts, refer to the partial description of the method embodiment in FIG. 1 .

对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action order, because according to the embodiment of the present invention , certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

参照图3,示出了根据本发明一个实施例的一种基于OBD的车道偏离预警的车载终端实施例的结构框图,具体可以包括如下模块:Referring to FIG. 3 , it shows a structural block diagram of an embodiment of a vehicle-mounted terminal for lane departure warning based on OBD according to an embodiment of the present invention, which may specifically include the following modules:

行车路线预测模块301,适于预测第一预设时间段内车辆的行车路线;The driving route prediction module 301 is adapted to predict the driving route of the vehicle within the first preset time period;

车道线识别模块302,适于识别当前行驶车道的车道线;A lane line identification module 302, adapted to identify the lane line of the current driving lane;

车道偏离判断模块303,适于基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离;A lane departure judging module 303, adapted to predict whether the vehicle may have lane departure based on the driving route and the lane line;

报警模块304,适于在所述车辆可能发生车道偏离时,通过车载诊断OBD接口发出报警信号。The alarm module 304 is adapted to send out an alarm signal through the OBD interface when the vehicle may deviate from the lane.

在本发明实施例的一种优选实施例中,所述车载终端还可以包括:In a preferred embodiment of the embodiments of the present invention, the vehicle-mounted terminal may also include:

修正模块,适于在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作时,自动修正所述车辆的行驶状态。The correction module is adapted to automatically correct the driving state of the vehicle when no correction operation by the driver is detected within the second preset time period when the alarm signal is issued.

在本发明实施例的一种优选实施例中,所述行车路线预测模块301还可以适于:In a preferred embodiment of the embodiment of the present invention, the driving route prediction module 301 may also be adapted to:

车载终端获取车辆当前的位置信息;The vehicle-mounted terminal acquires the current location information of the vehicle;

通过OBD接口获取所述车辆的车速和方向盘信号;Obtain the vehicle speed and steering wheel signals of the vehicle through the OBD interface;

基于所述当前的位置信息、所述车速和方向盘信号预测第一预设时间段内车辆的行车路线。Predicting the driving route of the vehicle within a first preset time period based on the current position information, the vehicle speed and the steering wheel signal.

在本发明实施例的一种优选实施例中,所述车道线识别模块302还适于:In a preferred embodiment of the embodiment of the present invention, the lane line identification module 302 is further adapted to:

获取当前行驶车道的图像信号;Obtain the image signal of the current driving lane;

对所述图像信号进行预处理;Preprocessing the image signal;

对预处理后的图像信号进行Canny边缘检测以及Hough变换,提取车道线。Carry out Canny edge detection and Hough transform on the preprocessed image signal to extract lane lines.

在本发明实施例的一种优选实施例中,所述车道偏离判断模块303还适于:In a preferred embodiment of the embodiment of the present invention, the lane departure judging module 303 is further adapted to:

通过OBD接口判断所述行车路线是否与所述车道线相交;Judging whether the driving route intersects the lane line through the OBD interface;

若是,则判定可能发生车道偏离;If so, it is determined that lane departure may occur;

若否,则判定不发生车道偏离。If not, it is determined that no lane departure has occurred.

在本发明实施例的一种优选实施例中,所述车道偏离判断模块303还适于:In a preferred embodiment of the embodiment of the present invention, the lane departure judging module 303 is further adapted to:

通过OBD接口获取所述行车路线与所述车道线之间的垂直距离;Obtain the vertical distance between the driving route and the lane line through the OBD interface;

若所述垂直距离小于预设阈值,则判定可能发生车道偏离;If the vertical distance is less than a preset threshold, it is determined that lane departure may occur;

若所述垂直距离大于或等于预设阈值,则判定不发生车道偏离。If the vertical distance is greater than or equal to a preset threshold, it is determined that no lane departure occurs.

在本发明实施例的一种优选实施例中,所述报警信号包括如下信号的至少一种:方向盘震动、声音信号、提示灯闪/亮信号。In a preferred embodiment of the embodiment of the present invention, the alarm signal includes at least one of the following signals: steering wheel vibration, sound signal, and warning light flashing/on signal.

在本发明实施例的一种优选实施例中,所述修正模块还适于:In a preferred embodiment of the embodiments of the present invention, the correction module is further adapted to:

若在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作,则自动修整方向盘,使车辆自动回正线路。If the driver's correcting operation is not detected within the second preset period of time when the alarm signal is issued, the steering wheel is automatically corrected so that the vehicle automatically returns to the normal route.

对于车载终端实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the embodiment of the vehicle terminal, since it is basically similar to the embodiment of the method, the description is relatively simple, and for relevant parts, please refer to the part of the description of the embodiment of the method.

本发明实施例还公开了一种智能汽车,包括图3所述的车载终端。The embodiment of the present invention also discloses a smart car, including the vehicle-mounted terminal shown in FIG. 3 .

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的基于OBD的车道偏离预警设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to realize some or all functions of some or all components of the OBD-based lane departure warning device according to an embodiment of the present invention . The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明公开了A1、一种基于OBD的车道偏离预警方法,所述方法包括:The present invention discloses A1, an OBD-based lane departure warning method, the method comprising:

车载终端预测第一预设时间段内车辆的行车路线;The vehicle-mounted terminal predicts the driving route of the vehicle within the first preset time period;

识别当前行驶车道的车道线;Identify the lane lines of the current driving lane;

基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离;Predict whether the vehicle may deviate from a lane based on the driving route and the lane line;

若所述车辆可能发生车道偏离,则通过车载诊断OBD接口发出报警信号。If the vehicle may deviate from the lane, an alarm signal is sent through the on-board diagnostic OBD interface.

A2、如A1所述的方法,还包括:A2, the method as described in A1, also includes:

若在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作,则自动修正所述车辆的行驶状态。If the driver's correction operation is not detected within the second preset time period when the alarm signal is issued, the driving state of the vehicle is automatically corrected.

A3、如A1或A2所述的方法,所述车载终端预测第一预设时间段内车辆的行车路线的步骤包括:A3, the method as described in A1 or A2, the step of the vehicle-mounted terminal predicting the driving route of the vehicle within the first preset time period includes:

车载终端获取车辆当前的位置信息;The vehicle-mounted terminal acquires the current location information of the vehicle;

通过OBD接口获取所述车辆的车速和方向盘信号;Obtain the vehicle speed and steering wheel signals of the vehicle through the OBD interface;

基于所述当前的位置信息、所述车速和方向盘信号预测第一预设时间段内车辆的行车路线。Predicting the driving route of the vehicle within a first preset time period based on the current position information, the vehicle speed and the steering wheel signal.

A4、如A1或A2所述的方法,所述识别当前行驶车道的车道线的步骤包括:A4. The method as described in A1 or A2, the step of identifying the lane line of the current driving lane includes:

获取当前行驶车道的图像信号;Obtain the image signal of the current driving lane;

对所述图像信号进行预处理;Preprocessing the image signal;

对预处理后的图像信号进行Canny边缘检测以及Hough变换,提取车道线。Carry out Canny edge detection and Hough transform on the preprocessed image signal to extract lane lines.

A5、如A1所述的方法,所述基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离的步骤包括:A5. The method as described in A1, the step of predicting whether the vehicle may deviate from the lane based on the driving route and the lane line includes:

通过OBD接口判断所述行车路线是否与所述车道线相交;Judging whether the driving route intersects the lane line through the OBD interface;

若是,则判定可能发生车道偏离;If so, it is determined that lane departure may occur;

若否,则判定不发生车道偏离。If not, it is determined that no lane departure has occurred.

A6、如A1所述的方法,所述基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离的步骤包括:A6. The method as described in A1, the step of predicting whether the vehicle may deviate from the lane based on the driving route and the lane line includes:

通过OBD接口获取所述行车路线与所述车道线之间的垂直距离;Obtain the vertical distance between the driving route and the lane line through the OBD interface;

若所述垂直距离小于预设阈值,则判定可能发生车道偏离;If the vertical distance is less than a preset threshold, it is determined that lane departure may occur;

若所述垂直距离大于或等于预设阈值,则判定不发生车道偏离。If the vertical distance is greater than or equal to a preset threshold, it is determined that no lane departure occurs.

A7、如A1或A2所述的方法,所述报警信号包括如下信号的至少一种:方向盘震动、声音信号、提示灯闪/亮信号。A7. The method described in A1 or A2, wherein the alarm signal includes at least one of the following signals: steering wheel vibration, sound signal, and warning light flashing/on signal.

A8、如A2所述的方法,所述若在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作,则自动修正所述车辆的行驶状态的步骤包括:A8. The method as described in A2, if the correction operation of the driver is not detected within the second preset time period when the alarm signal is issued, the step of automatically correcting the driving state of the vehicle includes:

若在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作,则自动修整方向盘,使车辆自动回正线路。If the driver's correcting operation is not detected within the second preset period of time when the alarm signal is issued, the steering wheel is automatically corrected so that the vehicle automatically returns to the normal route.

本发明还公开了B9、一种基于OBD的车道偏离预警的车载终端,所述车载终端包括:The present invention also discloses B9, a vehicle-mounted terminal for lane departure warning based on OBD, said vehicle-mounted terminal comprising:

行车路线预测模块,适于预测第一预设时间段内车辆的行车路线;a driving route prediction module, adapted to predict the driving route of the vehicle within the first preset time period;

车道线识别模块,适于识别当前行驶车道的车道线;A lane line recognition module, adapted to identify the lane line of the current driving lane;

车道偏离判断模块,适于基于所述行车路线以及所述车道线,预测所述车辆是否可能发生车道偏离;A lane departure judging module, adapted to predict whether the vehicle may deviate from a lane based on the driving route and the lane line;

报警模块,适于在所述车辆可能发生车道偏离时,通过车载诊断OBD接口发出报警信号。The alarm module is adapted to send out an alarm signal through the OBD interface of the vehicle when the vehicle may deviate from the lane.

B10、如B9所述的车载终端,还包括:B10. The vehicle-mounted terminal as described in B9, further comprising:

修正模块,适于在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作时,自动修正所述车辆的行驶状态。The correction module is adapted to automatically correct the driving state of the vehicle when no correction operation by the driver is detected within the second preset time period when the alarm signal is issued.

B11、如B9或B10所述的车载终端,所述行车路线预测模块还适于:B11, the vehicle-mounted terminal as described in B9 or B10, the driving route prediction module is also suitable for:

车载终端获取车辆当前的位置信息;The vehicle-mounted terminal acquires the current location information of the vehicle;

通过OBD接口获取所述车辆的车速和方向盘信号;Obtain the vehicle speed and steering wheel signals of the vehicle through the OBD interface;

基于所述当前的位置信息、所述车速和方向盘信号预测第一预设时间段内车辆的行车路线。Predicting the driving route of the vehicle within a first preset time period based on the current position information, the vehicle speed and the steering wheel signal.

B12、如B9或B10所述的车载终端,所述车道线识别模块还适于:B12, the vehicle-mounted terminal as described in B9 or B10, the lane line recognition module is also suitable for:

获取当前行驶车道的图像信号;Obtain the image signal of the current driving lane;

对所述图像信号进行预处理;Preprocessing the image signal;

对预处理后的图像信号进行Canny边缘检测以及Hough变换,提取车道线。Carry out Canny edge detection and Hough transform on the preprocessed image signal to extract lane lines.

B13、如B9所述的车载终端,所述车道偏离判断模块还适于:B13, the vehicle-mounted terminal as described in B9, the lane departure judging module is also suitable for:

通过OBD接口判断所述行车路线是否与所述车道线相交;Judging whether the driving route intersects the lane line through the OBD interface;

若是,则判定可能发生车道偏离;If so, it is determined that lane departure may occur;

若否,则判定不发生车道偏离。If not, it is determined that no lane departure has occurred.

B14、如B9所述的车载终端,所述车道偏离判断模块还适于:B14, the vehicle-mounted terminal as described in B9, the lane departure judging module is also suitable for:

通过OBD接口获取所述行车路线与所述车道线之间的垂直距离;Obtain the vertical distance between the driving route and the lane line through the OBD interface;

若所述垂直距离小于预设阈值,则判定可能发生车道偏离;If the vertical distance is less than a preset threshold, it is determined that lane departure may occur;

若所述垂直距离大于或等于预设阈值,则判定不发生车道偏离。If the vertical distance is greater than or equal to a preset threshold, it is determined that no lane departure occurs.

B15、如B9或B10所述的车载终端,所述报警信号包括如下信号的至少一种:方向盘震动、声音信号、提示灯闪/亮信号。B15. The vehicle-mounted terminal as described in B9 or B10, wherein the alarm signal includes at least one of the following signals: steering wheel vibration, sound signal, and warning light flashing/on signal.

B16、如B10所述的车载终端,所述修正模块还适于:B16, the vehicle-mounted terminal as described in B10, the correction module is also suitable for:

若在发出报警信号的第二预设时间段内,没有检测到驾驶员的修正操作,则自动修整方向盘,使车辆自动回正线路。If the driver's correcting operation is not detected within the second preset period of time when the alarm signal is issued, the steering wheel is automatically corrected so that the vehicle automatically returns to the normal route.

本发明还公开了C17、一种智能汽车,包括B9-B16任一项所述的车载终端。The present invention also discloses C17, a smart car, including the vehicle-mounted terminal described in any one of B9-B16.

Claims (10)

1. a kind of lane departure warning method based on OBD, methods described includes:
Car-mounted terminal predicts the traffic route of vehicle in the first preset time period;
Recognize the lane line of current driving lane;
Based on the traffic route and the lane line, predict whether the vehicle may occur deviation;
If the vehicle may occur deviation, alarm signal is sent by OBD OBD interfaces.
2. the method for claim 1, it is characterised in that also include:
If sending in the second preset time period of alarm signal, the amendment operation of driver is not detected, then automatic amendment The transport condition of the vehicle.
3. method as claimed in claim 1 or 2, it is characterised in that the car-mounted terminal predicts car in the first preset time period Traffic route the step of include:
Car-mounted terminal obtains the current positional information of vehicle;
The speed and hand-wheel signal of the vehicle are obtained by OBD interfaces;
The driving of vehicle in the first preset time period is predicted based on the current positional information, the speed and hand-wheel signal Route.
4. method as claimed in claim 1 or 2, it is characterised in that the step of the lane line of the identification current driving lane Including:
Obtain the picture signal of current driving lane;
Described image signal is pre-processed;
Canny rim detections and Hough transform are carried out to pretreated picture signal, lane line is extracted.
5. the method for claim 1, it is characterised in that described based on the traffic route and the lane line, in advance Whether survey the vehicle includes the step of deviation may occurring:
Judge whether the traffic route intersects with the lane line by OBD interfaces;
If so, then judging may deviation;
If it is not, then judging deviation.
6. the method for claim 1, it is characterised in that described based on the traffic route and the lane line, in advance Whether survey the vehicle includes the step of deviation may occurring:
Vertical range between the traffic route and the lane line is obtained by OBD interfaces;
If the vertical range is less than predetermined threshold value, judgement may occur deviation;
If the vertical range is more than or equal to predetermined threshold value, judge deviation.
7. method as claimed in claim 1 or 2, it is characterised in that the alarm signal includes at least one of following signal: Vibration of steering wheel, voice signal, warning light sudden strain of a muscle/bright signal.
8. method as claimed in claim 2, it is characterised in that if described sending the second preset time period of alarm signal It is interior, do not detect the amendment operation of driver, then include the step of the transport condition for correcting the vehicle automatically:
If sending in the second preset time period of alarm signal, the amendment operation of driver is not detected, then automatic dressing Steering wheel, makes vehicle self-aligning circuit.
9. a kind of car-mounted terminal of the lane departure warning based on OBD, the car-mounted terminal includes:
Traffic route prediction module, is suitable to predict the traffic route of vehicle in the first preset time period;
Lane detection module, is suitable to recognize the lane line of current driving lane;
Deviation judge module, is suitable to based on the traffic route and the lane line, predicts that whether the vehicle may Generation deviation;
Alarm module, is suitable to, when the vehicle may occur deviation, alarm signal be sent by OBD OBD interfaces Number.
10. a kind of intelligent automobile, including the car-mounted terminal described in claim 9.
CN201510959127.0A 2015-12-18 2015-12-18 A kind of lane departure warning method based on OBD, car-mounted terminal and intelligent automobile Pending CN106904167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510959127.0A CN106904167A (en) 2015-12-18 2015-12-18 A kind of lane departure warning method based on OBD, car-mounted terminal and intelligent automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510959127.0A CN106904167A (en) 2015-12-18 2015-12-18 A kind of lane departure warning method based on OBD, car-mounted terminal and intelligent automobile

Publications (1)

Publication Number Publication Date
CN106904167A true CN106904167A (en) 2017-06-30

Family

ID=59200769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510959127.0A Pending CN106904167A (en) 2015-12-18 2015-12-18 A kind of lane departure warning method based on OBD, car-mounted terminal and intelligent automobile

Country Status (1)

Country Link
CN (1) CN106904167A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107512264A (en) * 2017-07-25 2017-12-26 武汉依迅北斗空间技术有限公司 The keeping method and device of a kind of vehicle lane
CN107833492A (en) * 2017-11-24 2018-03-23 南京视莱尔汽车电子有限公司 A kind of zebra stripes real-time monitoring system based on intelligent driving
CN108040326A (en) * 2017-12-08 2018-05-15 中国汽车技术研究中心 A kind of vehicle data wireless interaction harvester
CN108428355A (en) * 2018-03-28 2018-08-21 成都信达智胜科技有限公司 A kind of intelligent vehicle monitoring method
CN108556737A (en) * 2018-04-11 2018-09-21 济南浪潮高新科技投资发展有限公司 A kind of vehicle crimping pre-tip device violating the regulations
CN109407672A (en) * 2018-12-11 2019-03-01 新乡市中誉鼎力软件科技股份有限公司 Intelligent dumper control method and intelligent haul vehicle control
CN109895789A (en) * 2017-12-08 2019-06-18 丰田自动车株式会社 Vehicle attention alarm set
CN110009904A (en) * 2019-03-15 2019-07-12 北京千方科技股份有限公司 Prediction technique, device, equipment and the storage medium of automotive run-off-road
CN110163930A (en) * 2019-05-27 2019-08-23 北京百度网讯科技有限公司 Lane line generation method, device, equipment, system and readable storage medium storing program for executing
CN111137287A (en) * 2019-12-26 2020-05-12 联创汽车电子有限公司 Lane departure early warning method and early warning system
CN111287527A (en) * 2020-02-18 2020-06-16 合肥市春华起重机械有限公司 Vertical circulation stereo garage emergency vehicle taking device and vehicle taking method thereof
CN112537298A (en) * 2020-11-30 2021-03-23 南通路远科技信息有限公司 Automatic lane generation method and device and traffic vehicle
CN113591565A (en) * 2021-06-25 2021-11-02 江苏理工学院 Machine vision-based lane line detection method, detection system and detection device
CN113807994A (en) * 2021-08-23 2021-12-17 广汽本田汽车有限公司 Control method, system, device and storage medium for automobile designated driving service
CN113942523A (en) * 2021-11-26 2022-01-18 岚图汽车科技有限公司 Lane departure early warning method and device

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107512264A (en) * 2017-07-25 2017-12-26 武汉依迅北斗空间技术有限公司 The keeping method and device of a kind of vehicle lane
CN107833492A (en) * 2017-11-24 2018-03-23 南京视莱尔汽车电子有限公司 A kind of zebra stripes real-time monitoring system based on intelligent driving
CN108040326A (en) * 2017-12-08 2018-05-15 中国汽车技术研究中心 A kind of vehicle data wireless interaction harvester
CN109895789A (en) * 2017-12-08 2019-06-18 丰田自动车株式会社 Vehicle attention alarm set
CN108428355B (en) * 2018-03-28 2021-11-19 吉林省寰旗科技股份有限公司 Intelligent vehicle monitoring method
CN108428355A (en) * 2018-03-28 2018-08-21 成都信达智胜科技有限公司 A kind of intelligent vehicle monitoring method
CN108556737A (en) * 2018-04-11 2018-09-21 济南浪潮高新科技投资发展有限公司 A kind of vehicle crimping pre-tip device violating the regulations
CN109407672A (en) * 2018-12-11 2019-03-01 新乡市中誉鼎力软件科技股份有限公司 Intelligent dumper control method and intelligent haul vehicle control
CN110009904A (en) * 2019-03-15 2019-07-12 北京千方科技股份有限公司 Prediction technique, device, equipment and the storage medium of automotive run-off-road
CN110163930A (en) * 2019-05-27 2019-08-23 北京百度网讯科技有限公司 Lane line generation method, device, equipment, system and readable storage medium storing program for executing
CN111137287A (en) * 2019-12-26 2020-05-12 联创汽车电子有限公司 Lane departure early warning method and early warning system
CN111287527A (en) * 2020-02-18 2020-06-16 合肥市春华起重机械有限公司 Vertical circulation stereo garage emergency vehicle taking device and vehicle taking method thereof
CN112537298A (en) * 2020-11-30 2021-03-23 南通路远科技信息有限公司 Automatic lane generation method and device and traffic vehicle
CN113591565A (en) * 2021-06-25 2021-11-02 江苏理工学院 Machine vision-based lane line detection method, detection system and detection device
CN113591565B (en) * 2021-06-25 2023-07-18 江苏理工学院 Lane line detection method, detection system and detection device based on machine vision
CN113807994A (en) * 2021-08-23 2021-12-17 广汽本田汽车有限公司 Control method, system, device and storage medium for automobile designated driving service
CN113942523A (en) * 2021-11-26 2022-01-18 岚图汽车科技有限公司 Lane departure early warning method and device

Similar Documents

Publication Publication Date Title
CN106904167A (en) A kind of lane departure warning method based on OBD, car-mounted terminal and intelligent automobile
CN114454809B (en) Intelligent lamplight switching method, system and related equipment
CN110430401B (en) Vehicle blind area early warning method, early warning device, MEC platform and storage medium
CN104276080B (en) Bus man hand detects forewarn system and method for early warning from bearing circle
US9842283B2 (en) Target object detection system and a method for target object detection
CN104527427A (en) Velocity-limiting mark recognizing and vehicle-velocity control method and system based on vehicle traveling recording instrument
CN202624199U (en) Control device for controlling speed of automobile by using traffic light
CN104742906A (en) Method and system for realizing automatic driving
CN102303563B (en) Front vehicle collision early warning system and method
CN106679633A (en) Vehicle-mounted distance measuring system and vehicle-mounted distance measuring method
JP2017017635A (en) Failure diagnosis apparatus
CN105336217A (en) Driving safety prewarning system based on machine vision and Android platform
US20210316734A1 (en) Vehicle travel assistance apparatus
CN110659548A (en) Vehicle and its target detection method and device
CN105059184A (en) Device for early warning, active prevention, and active control of side tumbling of passenger vehicle at bend, and judgment method thereof
CN106570487A (en) Method and device for predicting collision between objects
CN110070740B (en) Reporting systems and storage media
CN116609792B (en) External identification device
CN202911633U (en) Dynamic detection device based on multi-information fusion for hybrid electric vehicle lane identification lines
CN118604834B (en) Distance calculation method, device, vehicle and storage medium based on vehicle-mounted sensor
CN119178426B (en) A road overview map generation system based on laser point clouds
CN112990117B (en) Installation data processing method and device based on intelligent driving system
CN117854300A (en) A safety behavior warning method based on driver's dangerous driving behavior assessment
CN114889632B (en) Lane departure early warning method without lane lines and electronic equipment
CN115861976B (en) Vehicle control method and device and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170630

WD01 Invention patent application deemed withdrawn after publication