WO2018046015A1 - Alarm method, device and terminal for vehicle - Google Patents

Alarm method, device and terminal for vehicle Download PDF

Info

Publication number
WO2018046015A1
WO2018046015A1 PCT/CN2017/101402 CN2017101402W WO2018046015A1 WO 2018046015 A1 WO2018046015 A1 WO 2018046015A1 CN 2017101402 W CN2017101402 W CN 2017101402W WO 2018046015 A1 WO2018046015 A1 WO 2018046015A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
distance
less
module
facial expression
Prior art date
Application number
PCT/CN2017/101402
Other languages
French (fr)
Chinese (zh)
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
Priority to CN201610820700.4A priority Critical patent/CN107818694A/en
Priority to CN201610820700.4 priority
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018046015A1 publication Critical patent/WO2018046015A1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/16Anti-collision systems
    • G08G1/166Anti-collision systems for active traffic, e.g. moving vehicles, pedestrians, bikes
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q9/00Arrangements or adaptations of signal devices not provided for in one of the preceding main groups, e.g. haptic signalling
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal operating condition and not elsewhere provided for
    • H04M1/72403

Abstract

An alarm device, terminal and method for a vehicle. The method is applied to an electronic device provided in a vehicle and comprises the following steps: obtaining a distance from a vehicle to an obstacle in front of the vehicle (202); determining whether the distance is less than a safe distance (204); and if yes, playing a first alarm sound (206).

Description

车辆报警方法、装置及终端Vehicle alarm method, device and terminal 技术领域Technical field

本公开涉及通信领域,例如,涉及一种车辆报警方法、装置及终端。The present disclosure relates to the field of communications, for example, to a vehicle alarm method, apparatus, and terminal.

背景技术Background technique

随着谷歌(Google)以及百度等公司对无人驾驶技术的不断研究,基于机器视觉和传感器的辅助驾驶,越来越受到人们的重视,但是,利用计算机系统完全替代人实现无人驾驶还需要很长的时间。对于计算机系统辅助用户驾驶车辆的相关技术一般在高档车辆上会配备。With the continuous research on driverless technology by companies such as Google and Baidu, assisted driving based on machine vision and sensors has received more and more attention. However, the use of computer systems to completely replace people for unmanned driving is also needed. For a long time. Related technologies for computer systems to assist a user in driving a vehicle are generally provided on high-end vehicles.

相关技术中,计算机系统辅助用户驾驶车辆时,需要将采集到的车辆相关的数据发送至服务器,由服务器进行相应的分析操作,再将分析后的数据传回计算机系统,计算机系统根据分析后的数据将道路相关状况显示给车辆用户,而该方法需要依靠外部网络,以便计算机系统与服务器进行交互,从而导致辅助驾驶的成本比较高。In the related art, when the computer system assists the user in driving the vehicle, the collected vehicle related data needs to be sent to the server, and the corresponding analysis operation is performed by the server, and then the analyzed data is transmitted back to the computer system, and the computer system is analyzed according to the The data displays road-related conditions to the vehicle user, and the method relies on an external network to allow the computer system to interact with the server, resulting in a higher cost of assisted driving.

发明内容Summary of the invention

一种车辆报警方法、装置及终端,能够解决相关技术中计算机系统辅助驾驶时,依靠外部网路和服务器,提高了辅助驾驶的成本的问题。The invention relates to a vehicle alarm method, device and terminal, which can solve the problem that the computer system assists driving in the related art, relies on an external network and a server, and improves the cost of assisted driving.

一种车辆报警方法,应用于设置在车辆中的电子设备,包括:A vehicle alarm method for an electronic device disposed in a vehicle, comprising:

获取车辆与所述车辆前方的障碍物之间的距离;Obtaining a distance between the vehicle and an obstacle in front of the vehicle;

判断所述距离是否小于安全距离;以及Determining whether the distance is less than a safety distance;

如果所述距离小于安全距离,播放第一报警铃音。If the distance is less than the safe distance, the first alarm ring tone is played.

可选的,所述方法还包括:Optionally, the method further includes:

如果所述距离小于安全距离,判断所述车辆是否减速;以及Determining whether the vehicle is decelerating if the distance is less than a safety distance;

如果所述车辆未减速,播放第二报警铃音。If the vehicle is not decelerating, a second alarm ring tone is played.

可选的,判断所述距离是否小于所述安全距离包括: Optionally, determining whether the distance is less than the safety distance includes:

获取所述车辆前方的障碍物在显示屏的图像中的成像位置;Obtaining an imaging position of an obstacle in front of the vehicle in an image of the display screen;

检测所述成像位置是否在所述显示屏的图像中设置的危险距离范围内;以及Detecting whether the imaging position is within a dangerous distance range set in an image of the display screen;

如果检测到所述成像位置在所述危险距离范围内,确定所述距离小于所述安全距离。If it is detected that the imaging position is within the dangerous distance range, it is determined that the distance is less than the safety distance.

可选的,判断所述车辆是否减速包括:Optionally, determining whether the vehicle is decelerating comprises:

获取所述车辆的加速度;Obtaining acceleration of the vehicle;

检测所述加速度的变化值是否小于0;以及Detecting whether the change value of the acceleration is less than 0;

如果检测到所述加速度的变化值小于0,确定所述车辆减速。If it is detected that the change value of the acceleration is less than 0, it is determined that the vehicle is decelerating.

可选的,所述方法还包括:Optionally, the method further includes:

在预定时间内连续获取驾驶员的面部表情数据;Sustaining facial expression data of the driver continuously within a predetermined time;

比较获取的面部表情数据和预先存储的面部表情数据是否一致;以及Comparing whether the acquired facial expression data is consistent with the pre-stored facial expression data;

在所述获取的面部表情数据和预先存储的面部表情数据一致的情况下,确定所述驾驶员疲劳驾驶并播放第三报警铃音。In a case where the acquired facial expression data coincides with the pre-stored facial expression data, it is determined that the driver is fatigued to drive and plays a third alarm ring tone.

一种车辆报警装置,包括:A vehicle alarm device includes:

第一获取模块,设置为获取车辆与所述车辆前方的障碍物之间的距离;a first acquisition module configured to acquire a distance between the vehicle and an obstacle in front of the vehicle;

第一判断模块,设置为判断所述距离是否小于安全距离;以及a first determining module, configured to determine whether the distance is less than a safety distance;

第一播放模块,设置为如果所述距离小于安全距离,播放第一报警铃音。The first playing module is configured to play the first alarm ring tone if the distance is less than the safe distance.

可选的,所述装置还包括:Optionally, the device further includes:

第二判断模块,设置为如果所述距离小于安全距离,判断所述车辆是否减速;以及a second determining module, configured to determine whether the vehicle is decelerating if the distance is less than a safe distance;

第二播放模块,设置为如果所述车辆未减速,播放第二报警铃音。The second play module is configured to play the second alarm ring tone if the vehicle is not decelerated.

可选的,所述第一判断模块还设置为获取所述车辆前方的障碍物在显示屏上的成像位置;检测所述成像位置是否在所述显示屏的图像中设置的危险距离范围内,以及如果检测到所述成像位置在所述危险距离范围内,确定所述距离小于所述安全距离。 Optionally, the first determining module is further configured to acquire an imaging position of an obstacle in front of the vehicle on a display screen; and detect whether the imaging position is within a dangerous distance range set in an image of the display screen, And if the imaging position is detected to be within the dangerous distance range, determining that the distance is less than the safety distance.

可选的,所述第二判断模块还设置为获取所述车辆的加速度;检测所述加速度的变化值是否小于0;以及如果检测到所述加速度的变化值小于0,确定所述车辆减速。Optionally, the second determining module is further configured to acquire an acceleration of the vehicle; detect whether the change value of the acceleration is less than 0; and if the change value of the acceleration is detected to be less than 0, determine that the vehicle decelerates.

可选的,所述装置还包括:Optionally, the device further includes:

第二获取模块,设置为在预定时间内连续获取驾驶员的面部表情数据;a second acquiring module, configured to continuously acquire facial expression data of the driver within a predetermined time;

比较模块,设置为比较获取的面部表情数据和预先存储的面部表情数据是否一致;a comparison module configured to compare whether the acquired facial expression data and the pre-stored facial expression data are consistent;

第三播放模块,设置为在所述获取的面部表情数据和预先存储的面部表情数据一致的情况下,确定所述驾驶员疲劳驾驶并播放第三报警铃音。The third playing module is configured to determine that the driver is fatigued to drive and play the third alarm ring tone if the acquired facial expression data is consistent with the pre-stored facial expression data.

一种终端包括上述实施例中任一项所述装置。A terminal includes the apparatus of any of the above embodiments.

一种存储介质设置为存储用于设置为以下步骤的程序代码:获取车辆与所述车辆前方的障碍物之间的距离;判断所述距离是否小于安全距离;以及如果所述距离小于所述安全距离,播放第一报警铃音。A storage medium is configured to store program code for setting a distance between a vehicle and an obstacle in front of the vehicle; determining whether the distance is less than a safety distance; and if the distance is less than the safety Distance, play the first alarm ring tone.

可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:如果所述距离小于所述安全距离,判断所述车辆是否减速;如果车辆未减速,播放第二报警铃音。Optionally, the storage medium is further arranged to store program code arranged to perform the step of determining if the vehicle is decelerating if the distance is less than the safe distance; playing a second alarm ring tone if the vehicle is not decelerating.

可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:判断所述距离是否小于所述安全距离包括:获取所述车辆前方的障碍物在显示屏的图像中的成像位置;检测所述成像位置是否在所述显示屏的图像中设置的危险距离范围内;以及如果检测到所述成像位置在所述危险距离范围内,确定所述距离小于所述安全距离。Optionally, the storage medium is further configured to store program code configured to perform the step of: determining whether the distance is less than the safety distance comprises: acquiring an imaging position of an obstacle in front of the vehicle in an image of the display screen; detecting Whether the imaging position is within a dangerous distance range set in an image of the display screen; and if the imaging position is detected to be within the dangerous distance range, determining that the distance is less than the safety distance.

可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:判断所述车辆是否减速包括:获取所述车辆的加速度;检测所述加速度的变化值是否小于0;以及如果检测到所述加速度的变化值小于0,确定所述车辆减速。Optionally, the storage medium is further configured to store program code configured to perform the step of: determining whether the vehicle is decelerating comprises: acquiring an acceleration of the vehicle; detecting whether a change value of the acceleration is less than 0; and if detecting The change value of the acceleration is less than 0, and the vehicle is decelerated.

可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:在预定时间内连续获取驾驶员的面部表情数据;比较获取的面部表情数据和预先存储的面部表情数据持续一致;以及在所述获取的面部表情数据和预先存储的面部表情数据一致的情况下,确定所述驾驶员疲劳驾驶并播放第三报警铃音。 Optionally, the storage medium is further configured to store program code configured to perform the following steps: continuously acquiring facial expression data of the driver within a predetermined time; comparing the acquired facial expression data with the pre-stored facial expression data; and In a case where the acquired facial expression data coincides with the pre-stored facial expression data, it is determined that the driver is fatigued to drive and plays a third alarm ring tone.

附图说明DRAWINGS

图1是一实施例提供的一种移动终端的结构框图;FIG. 1 is a structural block diagram of a mobile terminal according to an embodiment; FIG.

图2是根据一实施例的车辆报警的流程图;2 is a flow chart of a vehicle alarm in accordance with an embodiment;

图3是根据一实施例的安全线的示意图;Figure 3 is a schematic illustration of a security thread in accordance with an embodiment;

图4是根据一实施例的车辆报警装置的结构框图;4 is a block diagram showing the structure of a vehicle alarm device according to an embodiment;

图5是根据一实施例的车辆报警装置的可选结构框图一;Figure 5 is a block diagram 1 of an alternative structure of a vehicle alarm device according to an embodiment;

图6是根据一实施例的车辆报警装置的可选结构框图二;6 is a block diagram 2 of an alternative structure of a vehicle alarm device according to an embodiment;

图7是根据一实施例的手机安全辅助驾驶的示意图;7 is a schematic diagram of a mobile phone safe assisted driving according to an embodiment;

图8是根据一实施例的手机辅助驾驶的示意图;以及8 is a schematic diagram of a mobile phone assisted driving according to an embodiment;

图9是根据一实施例的安全辅助驾驶系统框图。9 is a block diagram of a safety assisted driving system in accordance with an embodiment.

具体实施方式detailed description

实施例1Example 1

以下实施例所提供的方法可以在移动终端或计算机终端中执行。以所述方法运行在移动终端上为例,图1是本实施例提供的移动终端的结构框图。如图1所示,移动终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括微处理器(Microcontroller Unit,MCU)或可编程逻辑器件(Field Programmable Gate Array,FPGA)、存储数据的存储器104、以及具有通信功能的传输装置106。移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1的设备不同的配置。The methods provided in the following embodiments can be performed in a mobile terminal or a computer terminal. For example, the mobile terminal is operated on the mobile terminal, and FIG. 1 is a structural block diagram of the mobile terminal provided in this embodiment. As shown in FIG. 1, the mobile terminal 10 may include one or more (only one shown) processor 102 (the processor 102 may include a Microcontroller Unit (MCU) or a programmable logic device (Field Programmable Gate). Array, FPGA), memory 104 storing data, and transmission device 106 having communication functions. The mobile terminal 10 may also include more or less components than those shown in FIG. 1, or have a different configuration than the device of FIG. .

存储器104可设置为存储应用软件的软件程序以及模块,如以下实施例中的车辆报警方法对应的程序指令或模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行多种功能应用以及数据处理,即实现下述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络包括互联网、企业内部网、局域网、移动通信网及其组合。 The memory 104 may be configured as a software program and a module for storing application software, such as program instructions or modules corresponding to the vehicle alarm method in the following embodiments, and the processor 102 executes a plurality of types by executing a software program and a module stored in the memory 104. Functional application and data processing, that is, the following methods are implemented. Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 104 can include memory remotely located relative to processor 102, which can be connected to mobile terminal 10 over a network. The above networks include the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

传输装置106设置为通过一个网络接收或者发送数据。上述的网络可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括网络适配器(Network Interface Controller,NIC),NIC可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,RF模块设置为通过无线方式与互联网进行通讯。Transmission device 106 is arranged to receive or transmit data over a network. The network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module that is configured to communicate with the Internet wirelessly.

本实施例提供了一种车辆报警方法,图2是一实施例的车辆报警方法的流程图,该方法应用于设置在车辆中的电子设备。如图2所示,该流程包括如下步骤。The present embodiment provides a vehicle alarm method, and FIG. 2 is a flowchart of a vehicle alarm method according to an embodiment, which is applied to an electronic device disposed in a vehicle. As shown in FIG. 2, the process includes the following steps.

步骤202中,获取车辆与车辆前方的障碍物之间的距离。In step 202, the distance between the vehicle and the obstacle in front of the vehicle is acquired.

步骤204中,判断所述距离是否小于安全距离。In step 204, it is determined whether the distance is less than a safety distance.

步骤206中,如果所述距离小于安全距离,播放第一报警铃音。In step 206, if the distance is less than the safety distance, the first alarm ring tone is played.

通过上述步骤,由于获取到车辆与车辆前方的障碍物之间的距离后,对该距离数据进行分析处理,无需通过外部网络将数据传输至服务器,也即,无需服务器参与数据分析,使得辅助驾驶过程不再依赖外部网络和服务器,可以解决相关技术中进行辅助驾驶时,辅助驾驶过程需要依靠外部网路和服务器,提高了辅助驾驶成本的问题。Through the above steps, since the distance between the vehicle and the obstacle in front of the vehicle is acquired, the distance data is analyzed and processed, and the data is not transmitted to the server through the external network, that is, the server is not required to participate in the data analysis, so that the assisted driving is performed. The process no longer relies on external networks and servers, and can solve the problem of assisting driving in related technologies, and the assisted driving process needs to rely on external networks and servers to increase the cost of assisted driving.

可选地,所述方法还包括:如果所述距离小于安全距离,判断车辆是否减速;以及如果车辆没有减速,播放第二报警铃音。通过上述步骤,可以在存在安全隐患时,提醒用户减速。Optionally, the method further comprises: determining if the vehicle is decelerating if the distance is less than the safety distance; and playing the second alarm ring tone if the vehicle is not decelerating. Through the above steps, the user can be reminded to decelerate when there is a safety hazard.

可选地,判断距离是否小于安全距离包括:获取车辆前方的障碍物在显示屏的图像中的成像位置;检测所述成像位置是否在所述显示屏的图像中设置的危险距离范围内;以及如果检测所述成像位置在所述显示屏的图像中设置的危险距离范围内,确定所述距离小于安全距离。通过上述步骤,可以快速判断在安全距离内是否有障碍物。Optionally, determining whether the distance is less than the safety distance comprises: acquiring an imaging position of an obstacle in front of the vehicle in an image of the display screen; detecting whether the imaging position is within a dangerous distance range set in an image of the display screen; If it is detected that the imaging position is within a dangerous distance range set in an image of the display screen, it is determined that the distance is less than a safety distance. Through the above steps, it is possible to quickly determine whether there is an obstacle within the safe distance.

如图3所示,显示屏中的图像划分为安全距离范围和危险距离范围。如果汽车或者行人或者其他障碍物在显示屏的图像中的成像位置在线5的上面,即图3中的安全距离范围(线5与图像的上边缘和左右边缘之间的部分)内,表示用户驾驶的汽车行驶在安全距离范围内,障碍物距离用户驾驶的汽车远。As shown in Figure 3, the image in the display is divided into a safe distance range and a dangerous distance range. If the imaging position of the car or pedestrian or other obstacle in the image of the display screen is above the line 5, ie the safe distance range in Figure 3 (the portion between line 5 and the upper and left and right edges of the image), the user is represented The driving car travels within a safe distance and the obstacles are far from the car the user is driving.

如果汽车或者行人或者其他障碍物在显示屏的图像中的成像位置在线5的下面,即图3中的危险距离范围(线5与图像的下边缘和左右边缘之间的部分) 内,表示用户驾驶的汽车距离其他障碍物比近。当障碍物在显示屏的图像中的成像位置位于线5和线4之间,说明障碍物进入危险距离范围内,障碍物在显示屏的图像中的成像位置越往下,说明障碍物离用户驾驶的汽车越近,越危险。If the imaging position of a car or pedestrian or other obstacle in the image of the display screen is below line 5, ie the dangerous distance range in Figure 3 (the portion between line 5 and the lower and left and right edges of the image) Inside, it means that the car the user is driving is closer than other obstacles. When the imaging position of the obstacle in the image of the display screen is between line 5 and line 4, indicating that the obstacle enters the dangerous distance range, the imaging position of the obstacle in the image of the display screen is lower, indicating that the obstacle is away from the user. The closer you drive a car, the more dangerous it is.

设置安全线还可以使用如下方式。在第一次使用时,用户在车辆外距离用户驾驶的车辆一定距离放置一标志物A,如标志物A与车辆之间的距离为5m。在将辅助计算机系统固定在汽车内后,用户可以手动调节线5的位置,使标志物A落在线5上,线1、2、3、4沿图像的长度方向等距离地显示在屏幕的图像上。You can also use the following methods to set the security thread. At the first use, the user places a marker A at a distance from the vehicle driven by the user outside the vehicle, such as the distance between the marker A and the vehicle is 5 m. After the auxiliary computer system is fixed in the car, the user can manually adjust the position of the line 5 so that the marker A falls on the line 5, and the lines 1, 2, 3, 4 are displayed on the screen image equidistantly along the length direction of the image. on.

辅助计算机系统包括三轴重力传感器和摄像机,其中,三轴重力传感器可以记录摄像机的摆放的角度信息a1,a2和a3,其中,三轴重力传感器在三维坐标系中,a1为手机与坐标系的X轴的正方向之间的角度,a2为手机与坐标系的Y轴的正方向之间的角度,a3为手机与坐标系的Z轴的正方向之间的角度,完成校准工作。摄像机可以按照记录的角度信息X,Y,Z自动调整初始位姿,线1~5自动显示在屏幕上的相应位置。用户完成了安全距离的设定,以及摄像机的初始位姿的记录。The auxiliary computer system includes a three-axis gravity sensor and a camera, wherein the three-axis gravity sensor can record angle information a1, a2 and a3 of the camera, wherein the three-axis gravity sensor is in a three-dimensional coordinate system, and a1 is a mobile phone and a coordinate system. The angle between the positive directions of the X-axis, a2 is the angle between the positive direction of the phone and the Y-axis of the coordinate system, and a3 is the angle between the positive direction of the Z-axis of the mobile phone and the coordinate system to complete the calibration work. The camera can automatically adjust the initial pose according to the recorded angle information X, Y, Z, and lines 1 to 5 are automatically displayed at corresponding positions on the screen. The user has completed the setting of the safety distance and the recording of the initial pose of the camera.

可选地,判断车辆是否减速包括:获取车辆的加速度;检测所述加速度的变化值是否小于0;以及如果检测到加速度的变化值小于0,确定车辆减速。Optionally, determining whether the vehicle is decelerating comprises: acquiring an acceleration of the vehicle; detecting whether a change value of the acceleration is less than 0; and determining that the vehicle decelerates if a change value of the acceleration is detected to be less than 0.

例如,可以使用辅助计算机系统包括的加速度传感器获取车辆的加速度,当辅助计算机系统固定在车辆上,该加速度传感器获得的加速度即车辆的加速度。当障碍物与车辆之间的距离在安全距离以内,驾驶员踩刹车减速,加速度传感器可以检测到车辆加速度的变化,从而判断用户是否做了减速动作。当加速度的数值变化小于0时,车辆处于减速状态。当加速度的数值变化等于0时,车辆处于匀速或者停止状态。当加速度的数值变化大于0时,车辆处于加速状态。For example, the acceleration of the vehicle may be acquired using an acceleration sensor included in the auxiliary computer system, and the acceleration obtained by the acceleration sensor is the acceleration of the vehicle when the auxiliary computer system is fixed to the vehicle. When the distance between the obstacle and the vehicle is within a safe distance, the driver decelerates by braking, and the acceleration sensor can detect the change of the acceleration of the vehicle, thereby determining whether the user has performed the deceleration. When the value of the acceleration changes less than 0, the vehicle is in a deceleration state. When the value of the acceleration changes to zero, the vehicle is in a constant speed or stopped state. When the value of the acceleration changes by more than 0, the vehicle is in an accelerated state.

可选地,在获取车辆与车辆前方的障碍物之间的距离之前,上述方法还包括:在预定时间内连续获取驾驶员的面部表情数据;比较获取的面部表情数据和预先存储的面部表情数据是否持续一致;以及在获取的面部表情数据和预先存储的面部表情数据持续一致的情况下,确定所述驾驶员疲劳驾驶并播放第三报警铃音。还可以在任意时刻判断驾驶员是否疲劳驾驶。Optionally, before acquiring the distance between the vehicle and the obstacle in front of the vehicle, the method further includes: continuously acquiring facial expression data of the driver within a predetermined time; comparing the acquired facial expression data with pre-stored facial expression data Whether it is consistent; and in the case where the acquired facial expression data and the pre-stored facial expression data are consistent, it is determined that the driver is fatigued to drive and plays a third alarm ring tone. It is also possible to judge whether the driver is tired or not at any time.

例如,可以将摄像机固定在车辆上,摄像机的前置摄像头,位于摄像机面 向驾驶员的座位。车辆行驶时,启动前置摄像头,拍摄驾驶员的面部(包括眼睛),将拍摄的照片发送到图像识别模块中。可以比较拍摄的图片和图像识别模块存储的驾驶员闭眼的图片,如果拍摄的图片与存储的图片相关性高,可以说明驾驶员闭上了眼睛,如果预定时间内容获取的数据均说明驾驶员闭上了眼睛,则说明驾驶员疲劳驾驶。For example, you can fix the camera on the vehicle, the front camera of the camera, on the camera side. To the driver's seat. When the vehicle is running, the front camera is activated, the driver's face (including the eyes) is photographed, and the photograph taken is sent to the image recognition module. The captured picture and the image of the driver's closed eyes stored by the image recognition module can be compared. If the captured picture has high correlation with the stored picture, the driver can close the eyes, and if the data acquired by the predetermined time content indicates the driver Closing your eyes shows that the driver is driving fatigue.

例如,可以开启移动终端的前置摄像头拍摄当前图像,图像识别模块识别所述当前图像中的人眼,根据所述图像识别模块的识别结果计算人眼持续注视驾驶方向的时间,并在所述人眼持续注视驾驶方向的时间超过预设疲劳时间时产生提醒信号,可以在所述移动终端上显示根据提醒信号生成的提醒界面。For example, the front camera of the mobile terminal can be turned on to capture a current image, the image recognition module recognizes a human eye in the current image, and calculates a time when the human eye continuously watches the driving direction according to the recognition result of the image recognition module, and in the The reminder signal is generated when the human eye continuously watches the driving direction for more than the preset fatigue time, and the reminder interface generated according to the reminder signal may be displayed on the mobile terminal.

通过以上的实施方式的描述,上述实施例的方法可借助软件加通用硬件平台的方式来实现,也可以通过硬件的方式实现上述实施例中的方法。上述实施例中的技术方案本质上可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟、光盘)中,包括一个或多个指令,所述指令设置为控制一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行上述实施例中所述的方法。Through the description of the foregoing embodiments, the method in the foregoing embodiment may be implemented by means of software plus a general hardware platform, or the method in the foregoing embodiment may be implemented by hardware. The technical solution in the above embodiments can be embodied in the form of a software product stored in a storage medium (such as Read-Only Memory (ROM), Random Access Memory (Random Access Memory). a RAM, a disk, an optical disk, comprising one or more instructions configured to control a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the above embodiments .

实施例2Example 2

本实施例提供了一种车辆报警装置及终端,该装置可以设置为实现上述实施例中的方法。如以下所使用的,术语“模块”可以实现预定功能的软件、硬件、或软件和硬件的组合。The embodiment provides a vehicle alarm device and a terminal, and the device can be configured to implement the method in the above embodiment. As used hereinafter, the term "module" may implement software, hardware, or a combination of software and hardware for a predetermined function.

图4是本实施例中的车辆报警装置的结构框图,如图4所示,该装置包括:第一获取模块42,第一判断模块44以及第一播放模块46。4 is a structural block diagram of a vehicle alarm device in the embodiment. As shown in FIG. 4, the device includes a first acquisition module 42, a first determination module 44, and a first playback module 46.

第一获取模块42设置为获取车辆与车辆前方的障碍物之间的距离。The first acquisition module 42 is configured to obtain a distance between the vehicle and an obstacle in front of the vehicle.

第一判断模块44连接至上述第一获取模块42,第一判断模块44设置为判断距离是否小于安全距离。The first determining module 44 is connected to the first obtaining module 42, and the first determining module 44 is configured to determine whether the distance is less than a safe distance.

第一播放模块46连接至上述第一判断模块44,第一播放模块46设置为如果所述距离小于安全距离,播放第一报警铃音。The first playing module 46 is connected to the first determining module 44, and the first playing module 46 is configured to play the first alarm ring tone if the distance is less than the safe distance.

图5是本实施例的车辆报警装置的可选结构框图,如图5所示,在图4的基础上,该装置还包括:第二判断模块52和第二播放模块54。FIG. 5 is a block diagram showing an optional structure of the vehicle alarm device of the present embodiment. As shown in FIG. 5, on the basis of FIG. 4, the device further includes: a second judging module 52 and a second playing module 54.

第二判断模块52设置为如果所述距离小于安全距离,判断车辆是否减速。 The second judging module 52 is configured to determine whether the vehicle is decelerating if the distance is less than the safety distance.

第二播放模块54连接至上述第二判断模块52,第二播放模块54设置为如果车辆未减速,播放第二报警铃音。The second play module 54 is connected to the second judging module 52, and the second play module 54 is configured to play the second alarm ring tone if the vehicle is not decelerated.

可选地,第一判断模块44还设置为获取车辆前方的障碍物在显示屏的图像中的成像位置;检测所述成像位置是否在所述显示屏的图像中设置的危险距离范围内;以及如果检测到成像位置在所述危险距离范围内,判断所述距离小于安全距离。Optionally, the first determining module 44 is further configured to acquire an imaging position of an obstacle in front of the vehicle in an image of the display screen; detecting whether the imaging position is within a dangerous distance range set in an image of the display screen; If it is detected that the imaging position is within the dangerous distance range, it is judged that the distance is smaller than the safety distance.

可选地,第二判断模块52还设置为获取车辆的加速度;检测所述加速度的变化值是否小于0;以及如果检测到加速度的变化值小于0,确定车辆减速。Optionally, the second determining module 52 is further configured to acquire an acceleration of the vehicle; detect whether the change value of the acceleration is less than 0; and if the detected change value of the acceleration is less than 0, determine that the vehicle decelerates.

图6是本实施例的车辆报警装置的可选结构框图,如图6所示,在图4和图5所示的所有模块的基础上,所述装置还包括:第二获取模块62、比较模块64和第三播放模块66。6 is an optional structural block diagram of the vehicle alarm device of the embodiment. As shown in FIG. 6, on the basis of all the modules shown in FIG. 4 and FIG. 5, the device further includes: a second acquisition module 62, comparing Module 64 and third play module 66.

第二获取模块62设置为在预设时间内持续获取驾驶员的面部表情数据。The second acquisition module 62 is configured to continuously acquire facial expression data of the driver for a preset time.

比较模块64连接至上述第二获取模块62,以及比较模块64设置为比较获取的面部表情数据和预先存储的面部表情数据是否持续一致。The comparison module 64 is connected to the second acquisition module 62 described above, and the comparison module 64 is arranged to compare whether the acquired facial expression data and the pre-stored facial expression data are consistent.

第三播放模块66连接至上述比较模块64,以及第三播放模块66设置为在面部表情数据和预先存储的面部表情数据一致的情况下,确定所述驾驶员处于疲劳驾驶状态并播放第三报警铃音。The third playing module 66 is connected to the comparison module 64, and the third playing module 66 is configured to determine that the driver is in a fatigue driving state and play a third alarm if the facial expression data is consistent with the pre-stored facial expression data. Ring tone.

本实施例提供了一种终端,该终端包括上述实施例中任一项车辆报警装置。The embodiment provides a terminal, which includes the vehicle alarm device of any of the above embodiments.

随着手机在人们日常生活中普及地越来越广,手机也可以用在辅助驾驶中。由于手机作为人们通信的设备,保留了通信功能,具有辅助驾驶的功能,并且不需要额外购买第三方辅助驾驶设备(如独立于手机之外的摄像机),所以不产生额外费用。辅助驾驶还可以利用手机中配置的传感器,不会增加成本。手机作为便携式产品,装配方便,界面友好。因此可以采用手机作为辅助驾驶中的计算机系统。As mobile phones become more and more popular in people's daily lives, mobile phones can also be used in assisted driving. Since the mobile phone functions as a communication device for people, it retains the communication function, has the function of assisting driving, and does not require additional purchase of a third-party assisted driving device (such as a camera other than the mobile phone), so there is no additional cost. Auxiliary driving can also take advantage of the sensors configured in the phone without increasing costs. As a portable product, the mobile phone is easy to assemble and has a friendly interface. Therefore, a mobile phone can be used as a computer system in assisted driving.

以终端为手机为例说明辅助驾驶的过程。图7是本实施例的手机安全辅助驾驶工作示意图,如图7所示,手机辅助驾驶的工作过程包括以下步骤。Take the terminal as a mobile phone as an example to illustrate the process of assisted driving. FIG. 7 is a schematic diagram of the safe driving assistance operation of the mobile phone according to the embodiment. As shown in FIG. 7, the working process of the mobile phone assisted driving includes the following steps.

前置摄像头(包括第二获取模块62和比较模块64),位于手机屏幕一侧的上部。启动前置摄像头拍摄驾驶员的面部(包括眼睛),拍摄获得的照片被发送到图像识别模块中,识别驾驶员的面部表情或者闭眼状态。如果判断此时驾驶员产生疲劳表情或者闭眼状态,可以通知报警模块,播放报警铃音,提醒用户 处于疲劳状态。The front camera (including the second acquisition module 62 and the comparison module 64) is located at an upper portion of one side of the screen of the mobile phone. The front camera is activated to photograph the driver's face (including the eyes), and the photographs obtained by the photographing are sent to the image recognition module to recognize the driver's facial expression or closed eyes. If it is judged that the driver produces a fatigue expression or a closed eye state at this time, the alarm module can be notified to play an alarm ring tone to remind the user. In a state of fatigue.

后置摄像头(包括第一获取模块42和第一判断模块44),位于手机背向屏幕的一侧面。启动后置摄像头拍摄车辆前方障碍物(如前方行驶车辆或走动的行人),拍摄获得的照片被发送到图像识别模块中,识别道路状况。如果判断用户驾驶的车辆前方有车辆、行人或者其他障碍物且障碍物与用户驾驶的车辆之间的距离在安全距离以内,结合手机前置摄像头和加速度传感器获得的信号判断用户驾驶的车辆的行驶状况,通知报警模块,播放报警铃音,提醒用户安全驾驶。The rear camera (including the first acquisition module 42 and the first determination module 44) is located on a side of the mobile phone facing away from the screen. The rear camera is activated to take an obstacle in front of the vehicle (such as a vehicle driving ahead or a pedestrian walking), and the photograph taken is sent to the image recognition module to identify the road condition. If it is determined that there is a vehicle, a pedestrian or other obstacle in front of the vehicle driven by the user and the distance between the obstacle and the vehicle driven by the user is within a safe distance, the signal obtained by the front camera and the acceleration sensor of the mobile phone is used to determine the driving of the vehicle driven by the user. Status, notify the alarm module, play the alarm ring tone, remind the user to drive safely.

加速度传感器(如第二判断模块52)可以设置在手机主板中。将手机固定于汽车上,汽车行驶过程中,手机可以采集车辆的加速度和速度中的至少一种参数,判断用户驾驶的汽车是处于加速状态还是减速状态。通过用户驾驶的车辆的行驶状态,结合前置摄像头和后置摄像头获取的信息,判断驾驶员是否采取了相应的操作。如果出现驾驶异常的情况(如,用户驾驶的车辆与障碍物之间的距离小于安全距离且车辆处于加速状态),可以通知报警模块,播放报警铃音,提醒用户安全驾驶。The acceleration sensor (such as the second determining module 52) can be disposed in the mobile phone motherboard. The mobile phone is fixed on the car. During the driving process, the mobile phone can collect at least one of the acceleration and the speed of the vehicle to determine whether the car driven by the user is in an accelerated state or a decelerated state. By the driving state of the vehicle driven by the user, combined with the information acquired by the front camera and the rear camera, it is judged whether the driver has taken the corresponding operation. If there is a driving abnormality (for example, the distance between the vehicle driven by the user and the obstacle is less than the safety distance and the vehicle is in the acceleration state), the alarm module may be notified to play an alarm ring tone to remind the user to drive safely.

喇叭(如第一播放模块46,第二播放模块54,第三播放模块66)设置于手机中。如果出现驾驶异常的情况,可以通知报警模块,通过喇叭播放报警铃音,提醒用户安全驾驶。The speaker (such as the first playing module 46, the second playing module 54, and the third playing module 66) is disposed in the mobile phone. If there is a driving abnormality, you can notify the alarm module to play the alarm ring tone through the speaker to remind the user to drive safely.

本实施例提供了一种车辆报警方法,利用手机中多种设备和传感器,获取多种外部信息(如,驾驶员信息和车辆信息),构成一个全方位以及多角度的信息处理和判断系统,实现辅助驾驶。安全距离指汽车行驶时,汽车与汽车前方的障碍物之间的距离。如果所述距离大于该安全距离,则发生碰撞的几率小于第一预设阈值(如30%)。如果障碍物在安全距离内,则代表两者之间的距离近,发生碰撞的几率大于第二预设阈值(如,80%)。例如,如果前方有汽车或者行人处于汽车的安全距离内,判断驾驶员是否疲劳驾驶,如果驾驶员未疲劳驾驶,但是驾驶员驾驶的车辆未减速,则手机播放报警铃音3,提醒驾驶员注意安全;如果驾驶员驾驶的车辆减速,则不播放报警铃音。The embodiment provides a vehicle alarm method, which utilizes various devices and sensors in a mobile phone to acquire various external information (such as driver information and vehicle information) to form an omnidirectional and multi-angle information processing and judgment system. Auxiliary driving. The safety distance refers to the distance between the car and the obstacle in front of the car when the car is driving. If the distance is greater than the safe distance, the probability of occurrence of a collision is less than a first predetermined threshold (eg, 30%). If the obstacle is within a safe distance, it means that the distance between the two is close, and the probability of collision is greater than the second preset threshold (for example, 80%). For example, if there is a car or a pedestrian in front of the safe distance of the car, it is judged whether the driver is driving fatigue. If the driver is not fatigued, but the driver's vehicle is not decelerating, the mobile phone plays an alarm ring tone 3 to remind the driver to pay attention. Safety; if the driver's vehicle decelerates, the alarm ring tone will not be played.

以终端为手机为例,本实施例提供了一种辅助驾驶系统。图8是一实施例的手机辅助驾驶工作示意图,如图8所示,该系统包括:手机1和车辆2(例如,汽车)。该手机固定在汽车中驾驶员的前方,在汽车行驶时,手机启动辅助驾驶。 其中,该手机包括:前置摄像头11,后置摄像头12,加速度传感器13以及喇叭。前置摄像头和后置摄像头可以同时运行。Taking the terminal as a mobile phone as an example, the embodiment provides an assisted driving system. FIG. 8 is a schematic diagram of a mobile phone assisted driving operation according to an embodiment. As shown in FIG. 8, the system includes a mobile phone 1 and a vehicle 2 (for example, a car). The phone is fixed in front of the driver in the car, and the phone initiates assisted driving while the car is driving. The mobile phone includes: a front camera 11, a rear camera 12, an acceleration sensor 13, and a speaker. The front camera and rear camera can operate simultaneously.

图9是一实施例的辅助驾驶系统框图,如图9所示,上述系统可以包括监测汽车前方障碍物模块、监测汽车行驶加速度模块、监测驾驶员疲劳驾驶模块以及安全驾驶报警模块。下面分别对上述模块进行说明。9 is a block diagram of an assisted driving system of an embodiment. As shown in FIG. 9, the system may include monitoring an obstacle module in front of the vehicle, monitoring a vehicle acceleration module, monitoring a driver fatigue driving module, and a safe driving alarm module. The above modules will be described separately below.

监测汽车前方障碍物模块设置为监测汽车前方的障碍物、以及障碍物与车辆之间的距离。使用手机的后摄像头拍摄汽车行驶的前方道路,手机屏幕显示的画面如图3所示。显示屏上安全线1-5表示安全距离,如果显示屏中的汽车或者行人或者其他障碍物的成像位置,在线5的上面,表示汽车行驶在安全距离范围内,障碍物距离汽车远。如果显示屏中的汽车或者行人或者其他障碍物的成像位置在线5以下,表示汽车距离障碍物近。当显示屏中的障碍物的成像位置在线5和线4之间,说明障碍物进入危险距离内,显示屏中障碍物的成像位置越往下,说明用户与驾驶的汽车与障碍物之间的距离越近,用户驾驶的汽车与障碍物之间发生碰撞的几率越高。The monitoring vehicle front obstacle module is arranged to monitor obstacles in front of the vehicle and the distance between the obstacle and the vehicle. Use the rear camera of the mobile phone to capture the road ahead of the car. The screen displayed on the mobile phone screen is shown in Figure 3. The safety line 1-5 on the display indicates the safety distance. If the image of the car or pedestrian or other obstacles in the display is on the upper part of the line 5, it means that the car is driving within a safe distance and the obstacle is far from the car. If the imaging position of the car or pedestrian or other obstacle in the display is below 5, it means that the car is close to the obstacle. When the imaging position of the obstacle in the display screen is between line 5 and line 4, the obstacle enters the dangerous distance, and the imaging position of the obstacle in the display screen goes down, indicating the user and the driving car and the obstacle. The closer the distance, the higher the chance of a collision between the user's driving car and the obstacle.

监测汽车行驶加速度模块可以是手机中配置的加速度传感器。将手机固定在用户驾驶的汽车上,手机的加速度传感器获得的加速度即用户驾驶的汽车的加速度。当有障碍物在汽车的安全距离以内,驾驶员踩刹车,手机加速度传感器可以检测到加速度的变化,可以判断用户驾驶的汽车是否减速。当加速度的数值变化小于0时,表示汽车处于减速状态;当加速度的变化数值为0时,表示汽车处于匀速或者停止状态;当加速度的数值变化大于0时,表示汽车处于加速状态。The monitoring vehicle acceleration module can be an acceleration sensor configured in the mobile phone. The mobile phone is fixed on the car driven by the user, and the acceleration obtained by the acceleration sensor of the mobile phone is the acceleration of the car driven by the user. When there is an obstacle within the safe distance of the car, the driver steps on the brake, and the mobile phone acceleration sensor can detect the change of the acceleration, and can determine whether the car driven by the user is decelerating. When the value of the acceleration changes less than 0, it means that the car is in the deceleration state; when the change value of the acceleration is 0, it means that the car is in the constant speed or stop state; when the value of the acceleration changes more than 0, it means that the car is in the acceleration state.

监测驾驶员疲劳驾驶模块可以是位于手机屏幕一侧面的上部的前置摄像头。开启前置摄像头,拍摄驾驶员的面部(包括眼睛),将拍摄的照片发送到图像识别模块中。可以比较拍摄的图片和图像识别模块内部存储的驾驶员闭眼的图片,如果拍摄的图片与存储的图片相关性高(说明驾驶员闭上了眼睛),开始计时,如果驾驶员闭眼的时间超过2s,说明驾驶员疲劳驾驶。The monitoring driver fatigue driving module may be a front camera located on the upper side of one side of the screen of the mobile phone. Turn on the front camera, take the driver's face (including the eyes), and send the captured photos to the image recognition module. It is possible to compare the captured picture with the picture of the driver's closed eyes stored inside the image recognition module. If the picture taken is highly correlated with the stored picture (indicating that the driver has closed his eyes), start timing, if the driver closes his eyes. More than 2s, indicating driver fatigue driving.

根据以上三个模块中后摄、前摄以及加速度传感器获得的信息,总共有8种状态,如表1所示,该8种状态代表了外部环境、驾驶员和汽车三者的状态,可以根据这8种状态,判断用户是否处于危险驾驶状态,如果用户处于危险驾驶状态,则安全驾驶报警模块(手机喇叭)开始播放报警铃音,提醒驾驶员安 全驾驶。According to the information obtained by the panning, proactive and accelerometer sensors in the above three modules, there are 8 states in total. As shown in Table 1, the eight states represent the state of the external environment, the driver and the car. These 8 states determine whether the user is in a dangerous driving state. If the user is in a dangerous driving state, the safe driving alarm module (mobile phone speaker) starts to play an alarm ring tone to remind the driver. Full driving.

表1Table 1

状态status 安全距离DSafety distance D 疲劳驾驶TFatigue driving T 减速SDeceleration S 报警状态Alarm status 11 00 00 00 不报警No alarm 22 00 00 11 不报警No alarm 33 00 11 00 报警铃音1Alarm ring tone 1 44 00 11 11 报警铃音2Alarm ring tone 2 55 11 00 00 报警铃音3Alarm ring tone 3 66 11 00 11 不报警No alarm 77 11 11 00 报警铃音4Alarm ring tone 4 88 11 11 11 报警铃音5Alarm ring tone 5

其中,安全距离的值D为0,表示障碍物在显示屏中的成像位置在线5以上,或者前方不存在障碍物;安全距离的值D为1,表示障碍物与用户驾驶的车辆之间的距离小于安全距离。疲劳驾驶的值T为0,表示未检测到驾驶员疲劳驾驶;疲劳驾驶的值T为1,表示检测到驾驶员疲劳驾驶。减速的值S为0,表示车辆未减速;安全距离的值S为1,表示检测到车辆减速。Wherein, the value D of the safety distance is 0, indicating that the imaging position of the obstacle in the display screen is above 5, or there is no obstacle in front; the value D of the safety distance is 1, indicating that the obstacle is between the vehicle and the vehicle driven by the user. The distance is less than the safe distance. The value T of the fatigue driving is 0, indicating that the driver's fatigue driving is not detected; the value T of the fatigue driving is 1, indicating that the driver is fatigued to drive. The deceleration value S is 0, indicating that the vehicle is not decelerating; the safety distance value S is 1, indicating that the vehicle is decelerating.

上述实施例提供了一种使用手机辅助驾驶的系统,利用手机上的设备和传感器获取足够多的驾驶信息,来辅助驾驶。利用手机中的硬件设备检测驾驶员是否处于危险环境下,以及在危险环境中车辆是否减速。The above embodiment provides a system for assisting driving using a mobile phone, which utilizes devices and sensors on the mobile phone to obtain sufficient driving information to assist driving. Use the hardware in your phone to detect if the driver is in a hazardous environment and if the vehicle is slowing down in a hazardous environment.

上述多个模块可以通过软件或硬件来实现的。采用硬件实现上述多个模块时,上述多个模块均位于同一处理器中;或者,上述多个模块分别位于不同的处理器中。The above multiple modules can be implemented by software or hardware. When the plurality of modules are implemented by hardware, the plurality of modules are all located in the same processor; or, the plurality of modules are respectively located in different processors.

实施例3Example 3

本实施例提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储设置为执行以下步骤的程序代码:This embodiment provides a storage medium. Optionally, in the embodiment, the storage medium may be configured to store program code set to perform the following steps:

获取车辆与车辆前方的障碍物之间的距离;Obtaining the distance between the vehicle and the obstacle in front of the vehicle;

判断所述距离是否小于安全距离;以及Determining whether the distance is less than a safety distance;

如果所述距离小于安全距离,播放第一报警铃音。If the distance is less than the safe distance, the first alarm ring tone is played.

可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:在判断距离是否小于安全距离之后,还包括: Optionally, the storage medium is further configured to store program code configured to perform the following steps: after determining whether the distance is less than a safe distance, the method further includes:

如果所述距离小于安全距离,判断车辆是否减速;If the distance is less than the safety distance, determine whether the vehicle is decelerating;

在车辆未减速的情况下,播放第二报警铃音。In the case where the vehicle is not decelerating, the second alarm ring tone is played.

可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:判断距离是否小于安全距离包括:Optionally, the storage medium is further configured to store program code configured to perform the step of determining if the distance is less than a safe distance comprises:

获取车辆前方的障碍物在显示屏的图像中的成像位置;Obtaining an imaging position of an obstacle in front of the vehicle in an image of the display screen;

检测所述成像位置是否在所述显示屏的图像中设置的危险距离范围内;以及Detecting whether the imaging position is within a dangerous distance range set in an image of the display screen;

如果检测到成像位置在所述危险距离范围内,确定所述距离小于安全距离。If it is detected that the imaging position is within the dangerous distance range, it is determined that the distance is less than the safety distance.

可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:判断车辆是否减速包括:Optionally, the storage medium is further configured to store program code configured to perform the steps of: determining whether the vehicle is slowing down comprises:

获取车辆的加速度;Obtaining the acceleration of the vehicle;

检测所述加速度的变化值是否小于0;以及Detecting whether the change value of the acceleration is less than 0;

如果检测到加速度的变化值小于0,确定车辆减速。If it is detected that the change in acceleration is less than 0, the vehicle is decelerated.

可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code arranged to perform the following steps:

在预定时间内连续获取驾驶员的面部表情数据;以及Sustaining facial expression data of the driver continuously for a predetermined time;

比较获取的面部表情数据和预先存储的面部表情数据是否一致;Comparing whether the acquired facial expression data and the pre-stored facial expression data are consistent;

在所述获取的面部表情数据和预先存储的面部表情数据一致的情况下,确定所述驾驶员疲劳驾驶并播放第三报警铃音。In a case where the acquired facial expression data coincides with the pre-stored facial expression data, it is determined that the driver is fatigued to drive and plays a third alarm ring tone.

可选地,上述存储介质可以包括但不限于:U盘、ROM、RAM、移动硬盘、磁碟或者光盘等多种可以存储程序代码的介质。Optionally, the foregoing storage medium may include, but is not limited to, a U disk, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.

可选地,处理器根据存储介质中已存储的程序代码执行:获取车辆与车辆前方的障碍物的距离;判断所述距离是否小于安全距离;以及如果所述距离小于安全距离,播放第一报警铃音。Optionally, the processor executes, according to the stored program code in the storage medium,: obtaining a distance between the vehicle and an obstacle in front of the vehicle; determining whether the distance is less than a safety distance; and playing the first alarm if the distance is less than a safety distance Ring tone.

可选地,处理器根据存储介质中已存储的程序代码执行:如果所述距离小于安全距离,判断车辆是否减速;以及在车辆未减速的情况下,播放第二报警铃音。Optionally, the processor executes according to the stored program code in the storage medium: if the distance is less than the safety distance, determining whether the vehicle is decelerating; and if the vehicle is not decelerating, playing the second alarm ring tone.

可选地,处理器根据存储介质中已存储的程序代码执行:判断距离是否小于安全距离包括:获取车辆前方的障碍物在显示屏的图像中的成像位置;检测所述成像位置是否在所述显示屏的图像中设置的危险距离范围内;以及如果检测到成像位置在所述危险距离范围内,确定所述距离小于安全距离。 Optionally, the processor performs, according to the stored program code in the storage medium: determining whether the distance is less than the safety distance comprises: acquiring an imaging position of an obstacle in front of the vehicle in an image of the display screen; detecting whether the imaging position is in the The range of dangerous distances set in the image of the display screen; and if the detected imaging position is within the dangerous distance range, it is determined that the distance is less than the safety distance.

可选地,处理器根据存储介质中已存储的程序代码执行:判断车辆是否减速包括:获取车辆的加速度;检测所述加速度的变化值是否小于0;以及如果检测到加速度的变化值小于0,确定车辆减速。Optionally, the processor executes according to the stored program code in the storage medium: determining whether the vehicle is decelerating comprises: acquiring acceleration of the vehicle; detecting whether the change value of the acceleration is less than 0; and if detecting that the change value of the acceleration is less than 0, Determine the vehicle deceleration.

可选地,处理器根据存储介质中已存储的程序代码执行:在预定时间内连续获取驾驶员的面部表情数据;比较获取的面部表情数据和预先存储的面部表情数据是否一致;在所述获取的面部表情数据和预先存储的面部表情数据一致的情况下,确定所述驾驶员疲劳驾驶并播放第三报警铃音。Optionally, the processor executes according to the stored program code in the storage medium: continuously acquiring facial expression data of the driver within a predetermined time; comparing whether the acquired facial expression data and the pre-stored facial expression data are consistent; In the case where the facial expression data coincides with the pre-stored facial expression data, it is determined that the driver is fatigued to drive and plays a third alarm ring tone.

本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例。上述多个模块或步骤可以用通用的计算装置来实现,上述多个模块可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上。可选地,上述多个模块或步骤可以用计算装置可执行的程序代码来实现,可以将它们存储在存储装置中由计算装置来执行,并且在一些情况下,可以以不同于本公开中的顺序执行所示出或描述的步骤。可以将多个模块分别制作成多个集成电路,也可以将它们中的多个模块制作成单个集成电路。For examples in this embodiment, reference may be made to the examples described in the above embodiments and alternative embodiments. The plurality of modules or steps described above may be implemented by a general purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices. Alternatively, the plurality of modules or steps described above may be implemented by program code executable by a computing device, which may be stored in a storage device for execution by a computing device, and in some cases, may be different from the present disclosure. The steps shown or described are performed sequentially. A plurality of modules may be separately fabricated into a plurality of integrated circuits, or a plurality of the modules may be fabricated as a single integrated circuit.

工业实用性Industrial applicability

车辆报警方法、装置及终端,可以解决相关技术中进行辅助驾驶时,需要依靠外部网络和服务器,提高了辅助驾驶的成本的问题。 The vehicle alarm method, device and terminal can solve the problem that the assisting driving in the related art requires relying on an external network and a server to increase the cost of assisted driving.

Claims (12)

  1. 一种车辆报警方法,应用于设置在车辆中的电子设备,包括:A vehicle alarm method for an electronic device disposed in a vehicle, comprising:
    获取车辆与所述车辆前方的障碍物之间的距离;Obtaining a distance between the vehicle and an obstacle in front of the vehicle;
    判断所述距离是否小于安全距离;以及Determining whether the distance is less than a safety distance;
    如果所述距离小于安全距离,播放第一报警铃音。If the distance is less than the safe distance, the first alarm ring tone is played.
  2. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    如果所述距离小于安全距离,判断所述车辆是否减速;以及Determining whether the vehicle is decelerating if the distance is less than a safety distance;
    如果所述车辆未减速,播放第二报警铃音。If the vehicle is not decelerating, a second alarm ring tone is played.
  3. 根据权利要求1或2所述的方法,其中,判断所述距离是否小于所述安全距离包括:The method according to claim 1 or 2, wherein determining whether the distance is smaller than the safety distance comprises:
    获取所述车辆前方的障碍物在显示屏的图像中的成像位置;Obtaining an imaging position of an obstacle in front of the vehicle in an image of the display screen;
    检测所述成像位置是否在所述显示屏的图像中设置的危险距离范围内;以及Detecting whether the imaging position is within a dangerous distance range set in an image of the display screen;
    如果检测到所述成像位置在所述危险距离范围内,确定所述距离小于所述安全距离。If it is detected that the imaging position is within the dangerous distance range, it is determined that the distance is less than the safety distance.
  4. 根据权利要求2所述的方法,其中,判断所述车辆是否减速包括:The method of claim 2 wherein determining whether the vehicle is decelerating comprises:
    获取所述车辆的加速度;Obtaining acceleration of the vehicle;
    检测所述加速度的变化值是否小于0;以及Detecting whether the change value of the acceleration is less than 0;
    如果检测到所述加速度的变化值小于0,确定所述车辆减速。If it is detected that the change value of the acceleration is less than 0, it is determined that the vehicle is decelerating.
  5. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    在预定时间内连续获取驾驶员的面部表情数据;Sustaining facial expression data of the driver continuously within a predetermined time;
    比较获取的面部表情数据和预先存储的面部表情数据是否一致;以及Comparing whether the acquired facial expression data is consistent with the pre-stored facial expression data;
    在所述获取的面部表情数据和预先存储的面部表情数据一致的情况下,确 定所述驾驶员疲劳驾驶并播放第三报警铃音。In the case where the acquired facial expression data is consistent with the pre-stored facial expression data, The driver is fatigued to drive and plays a third alarm ring tone.
  6. 一种车辆报警装置,包括:A vehicle alarm device includes:
    第一获取模块,设置为获取车辆与所述车辆前方的障碍物之间的距离;a first acquisition module configured to acquire a distance between the vehicle and an obstacle in front of the vehicle;
    第一判断模块,设置为判断所述距离是否小于安全距离;以及a first determining module, configured to determine whether the distance is less than a safety distance;
    第一播放模块,设置为如果所述距离小于安全距离,播放第一报警铃音。The first playing module is configured to play the first alarm ring tone if the distance is less than the safe distance.
  7. 根据权利要求6所述的装置,还包括:The apparatus of claim 6 further comprising:
    第二判断模块,设置为如果所述距离小于安全距离,判断所述车辆是否减速;以及a second determining module, configured to determine whether the vehicle is decelerating if the distance is less than a safe distance;
    第二播放模块,设置为如果车辆未减速,播放第二报警铃音。The second play module is configured to play the second alarm ring tone if the vehicle is not decelerating.
  8. 根据权利要求6或7所述的装置,其中,所述第一判断模块还设置为获取所述车辆前方的障碍物在显示屏的图像中的成像位置;检测所述成像位置是否在所述显示屏的图像中设置的危险距离范围内;以及如果检测到所述成像位置在所述危险距离范围内,确定所述距离小于所述安全距离。The apparatus according to claim 6 or 7, wherein said first judging module is further configured to acquire an imaging position of an obstacle in front of said vehicle in an image of a display screen; and to detect whether said image forming position is in said display Within a dangerous distance range set in the image of the screen; and if the imaging position is detected to be within the dangerous distance range, determining that the distance is less than the safe distance.
  9. 根据权利要求7所述的装置,其中,所述第二判断模块还设置为获取所述车辆的加速度;检测所述加速度的变化值是否小于0;以及如果检测到所述加速度的变化值小于0,确定所述车辆减速。The apparatus of claim 7, wherein the second determining module is further configured to acquire an acceleration of the vehicle; to detect whether a change value of the acceleration is less than 0; and if a change value of the acceleration is detected to be less than 0 And determining that the vehicle is decelerating.
  10. 根据权利要求6所述的装置,还包括:The apparatus of claim 6 further comprising:
    第二获取模块,设置为在预定时间内连续获取驾驶员的面部表情数据;a second acquiring module, configured to continuously acquire facial expression data of the driver within a predetermined time;
    比较模块,设置为比较获取的面部表情数据和预先存储的面部表情数据是否一致;以及a comparison module configured to compare whether the acquired facial expression data and the pre-stored facial expression data are consistent;
    第三播放模块,设置为在所述获取的面部表情数据和预先存储的面部表情数据一致的情况下,确定所述驾驶员疲劳驾驶并播放第三报警铃音。 The third playing module is configured to determine that the driver is fatigued to drive and play the third alarm ring tone if the acquired facial expression data is consistent with the pre-stored facial expression data.
  11. 一种终端,包括权利要求6至10中任一项所述装置。A terminal comprising the apparatus of any one of claims 6 to 10.
  12. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1至5中任一项的方法。 A computer readable storage medium storing computer executable instructions arranged to perform the method of any one of claims 1 to 5.
PCT/CN2017/101402 2016-09-12 2017-09-12 Alarm method, device and terminal for vehicle WO2018046015A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610820700.4A CN107818694A (en) 2016-09-12 2016-09-12 alarm processing method, device and terminal
CN201610820700.4 2016-09-12

Publications (1)

Publication Number Publication Date
WO2018046015A1 true WO2018046015A1 (en) 2018-03-15

Family

ID=61561319

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/101402 WO2018046015A1 (en) 2016-09-12 2017-09-12 Alarm method, device and terminal for vehicle

Country Status (2)

Country Link
CN (1) CN107818694A (en)
WO (1) WO2018046015A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108986545A (en) * 2018-08-16 2018-12-11 武汉理工大学 Personalized driving inducible system based on V2V
CN109741630A (en) * 2019-01-18 2019-05-10 爱驰汽车有限公司 Away from threshold value of warning adjusting method, system, equipment and storage medium when automobile
CN110556024A (en) * 2019-07-18 2019-12-10 华瑞新智科技(北京)有限公司 Anti-collision auxiliary driving method and system and computer readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07302399A (en) * 1994-05-02 1995-11-14 Nissan Motor Co Ltd Alarm device for distance between vehicles
JPH09142237A (en) * 1995-11-20 1997-06-03 Aisin Seiki Co Ltd Rear-end collision alarm device for automobile
US5659304A (en) * 1995-03-01 1997-08-19 Eaton Corporation System and method for collision warning based on dynamic deceleration capability using predicted road load
CN102114820A (en) * 2010-01-02 2011-07-06 胡德明 Vehicular driving safety system device
CN102582556A (en) * 2011-01-07 2012-07-18 华东交通大学 Active anti-collision system for car
CN102991419A (en) * 2012-11-27 2013-03-27 杨伟 Vehicle assistant driving device
CN103287406A (en) * 2013-06-08 2013-09-11 浙江大学 Car automatic brake device based on accurate punishment optimization
CN104859609A (en) * 2015-05-12 2015-08-26 天脉聚源(北京)传媒科技有限公司 Vehicle control method and device as well as vehicle
CN105034979A (en) * 2015-04-30 2015-11-11 南京理工大学 Vehicle active safety control method and vehicle active safety control system
CN105843218A (en) * 2016-05-20 2016-08-10 吴江智远信息科技发展有限公司 Vehicle-mounted fault diagnosis system capable of realizing remote monitoring

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07302399A (en) * 1994-05-02 1995-11-14 Nissan Motor Co Ltd Alarm device for distance between vehicles
US5659304A (en) * 1995-03-01 1997-08-19 Eaton Corporation System and method for collision warning based on dynamic deceleration capability using predicted road load
JPH09142237A (en) * 1995-11-20 1997-06-03 Aisin Seiki Co Ltd Rear-end collision alarm device for automobile
CN102114820A (en) * 2010-01-02 2011-07-06 胡德明 Vehicular driving safety system device
CN102582556A (en) * 2011-01-07 2012-07-18 华东交通大学 Active anti-collision system for car
CN102991419A (en) * 2012-11-27 2013-03-27 杨伟 Vehicle assistant driving device
CN103287406A (en) * 2013-06-08 2013-09-11 浙江大学 Car automatic brake device based on accurate punishment optimization
CN105034979A (en) * 2015-04-30 2015-11-11 南京理工大学 Vehicle active safety control method and vehicle active safety control system
CN104859609A (en) * 2015-05-12 2015-08-26 天脉聚源(北京)传媒科技有限公司 Vehicle control method and device as well as vehicle
CN105843218A (en) * 2016-05-20 2016-08-10 吴江智远信息科技发展有限公司 Vehicle-mounted fault diagnosis system capable of realizing remote monitoring

Also Published As

Publication number Publication date
CN107818694A (en) 2018-03-20

Similar Documents

Publication Publication Date Title
US10403147B2 (en) Systems and methods for automatically documenting an accident
US9672744B2 (en) Boundary detection system
US20200001714A1 (en) Driving assistance apparatus and driving assistance method
KR101641490B1 (en) Driver assistance apparatus and Vehicle including the same
US20180194281A1 (en) System and method for vehicle control integrating health priority alerts of vehicle occupants
US9776644B2 (en) On-vehicle situation detection apparatus and method
US10572746B2 (en) Apparatus detecting driving incapability state of driver
JP6577642B2 (en) Computer-based method and system for providing active and automatic personal assistance using automobiles or portable electronic devices
US9714037B2 (en) Detection of driver behaviors using in-vehicle systems and methods
US9922471B2 (en) Vehicle accident reporting system
US10078966B2 (en) Warning method outside vehicle, driver assistance apparatus for executing method thereof and vehicle having the same
US9436273B2 (en) Information processing device, method and computer-readable non-transitory recording medium
JP5549721B2 (en) Driver monitor device
US10046618B2 (en) System and method for vehicle control integrating environmental conditions
US10217343B2 (en) Alert generation correlating between head mounted imaging data and external device
CN106463065B (en) Driving incapability state detection device for driver
US20190009713A1 (en) System and method for generating a parking alert
US20150193885A1 (en) Continuous identity monitoring for classifying driving data for driving performance analysis
CN105270292B (en) System and method for controlling access to human-machine interface in vehicle
KR101579100B1 (en) Apparatus for providing around view and Vehicle including the same
US9827984B2 (en) Methods and apparatuses for controlling a personal transportation vehicle
JP4633043B2 (en) Image processing device
JP4926437B2 (en) Vehicle driving support device
JP2019509552A (en) Detection of partially occluded objects using context and depth order
EP2893867A1 (en) Detecting visual inattention based on eye convergence

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17848188

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17848188

Country of ref document: EP

Kind code of ref document: A1