[go: up one dir, main page]

CN107818694A - alarm processing method, device and terminal - Google Patents

alarm processing method, device and terminal Download PDF

Info

Publication number
CN107818694A
CN107818694A CN201610820700.4A CN201610820700A CN107818694A CN 107818694 A CN107818694 A CN 107818694A CN 201610820700 A CN201610820700 A CN 201610820700A CN 107818694 A CN107818694 A CN 107818694A
Authority
CN
China
Prior art keywords
distance
vehicle
module
alarm
safety
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
CN201610820700.4A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610820700.4A priority Critical patent/CN107818694A/en
Priority to PCT/CN2017/101402 priority patent/WO2018046015A1/en
Publication of CN107818694A publication Critical patent/CN107818694A/en
Pending legal-status Critical Current

Links

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/00Arrangement or adaptation of signal devices not provided for in one of main groups B60Q1/00 - B60Q7/00, e.g. haptic signalling
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mechanical Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Emergency Alarm Devices (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明提供了一种报警处理方法、装置及终端,该方法包括:获取车辆与车辆的前方事物的距离;判断距离是否小于安全距离;在判断结果为是的情况下,播放第一报警铃音。通过本发明,可以解决相关技术中进行辅助驾驶时,需要依靠外部网路和服务器,导致成本较高的问题。

The present invention provides an alarm processing method, device and terminal. The method includes: obtaining the distance between the vehicle and the things in front of the vehicle; judging whether the distance is less than the safety distance; and playing the first alarm tone when the judging result is yes . The present invention can solve the problem in the related art that an external network and a server need to be relied upon for assisted driving, resulting in high cost.

Description

报警处理方法、装置及终端Alarm processing method, device and terminal

技术领域technical field

本发明涉及通信领域,具体而言,涉及一种报警处理方法、装置及终端。The present invention relates to the communication field, in particular to an alarm processing method, device and terminal.

背景技术Background technique

目前,随着google,百度无人驾驶不断发展,基于机器视觉和传感器的辅助驾驶,越来越受到人们的重视,但不可否认的是机器完全替代人进行无人驾驶的远景还有很长的路要走,但是机器辅助驾驶,确实已经实现了的。但是这只是一般只在高档车辆上具备,如何让普通消费者也能拥有,这看起来更加有吸引力。At present, with the continuous development of Google and Baidu unmanned driving, assisted driving based on machine vision and sensors has attracted more and more attention. However, it is undeniable that there is still a long way to go for machines to completely replace people in unmanned driving There is a long way to go, but machine-assisted driving has indeed been realized. But this is generally only available on high-end vehicles. How to make it available to ordinary consumers looks more attractive.

相关技术中,机器辅助驾驶时,需要将采集到的车辆相关的数据发送服务器,由服务器进行相应的分析操作,进而再传回机器,机器再根据分析后的数据将道路相关状况显示给车辆用户,而该方法均需要依靠外部网络,以便机器与服务器进行交互。In related technologies, when the machine assists driving, it is necessary to send the collected vehicle-related data to the server, and the server performs corresponding analysis operations, and then sends it back to the machine, and the machine displays the road-related conditions to the vehicle user based on the analyzed data , and this method needs to rely on an external network for the machine to interact with the server.

例如,专利号为CN201310643348.8、发明名称为《基于手机的智能车速提示驾驶系统》的专利,该专利是一种基于手机的智能车速提示驾驶系统,包括车辆上手机和服务器,其特征在于,所述手机和服务器是通过如下步骤工作的:步骤一,利用众包来收集车辆上手机GPS和加速度信息,并通过无线网在某个时间里将数据传给服务器;步骤二,通过加速度向量分布图和GPS路径确定带红绿灯的路口的位置;步骤三,绘制和使用二次B样条曲线来表示道路,并生成地图数据库;步骤四,用众包来收集每个路口的加速度事件,并推断该路口红绿灯时间表;步骤五,利用生成的地图数据库和前方路口的红绿灯时间表,给车辆提示最优速度,使得车辆尽量不在路口遇红灯停止。For example, the patent number is CN201310643348.8, and the patent title is "Intelligent Vehicle Speed Reminder Driving System Based on Mobile Phone". This patent is a mobile phone-based intelligent vehicle speed reminder driving system, including a mobile phone and a server on the vehicle. The mobile phone and the server work through the following steps: Step 1, utilize crowdsourcing to collect mobile phone GPS and acceleration information on the vehicle, and transmit the data to the server at a certain time through the wireless network; Step 2, distribute the information through the acceleration vector Graph and GPS path to determine the location of intersections with traffic lights; Step 3, draw and use quadratic B-spline curves to represent roads, and generate a map database; Step 4, use crowdsourcing to collect acceleration events at each intersection and infer The intersection traffic light schedule; step 5, using the generated map database and the traffic light schedule at the intersection ahead, to prompt the vehicle with the optimal speed, so that the vehicle will not stop at the intersection as much as possible when encountering a red light.

又例如,专利号为CN201310690486.1、发明名称为《基于3G手机的高速公路实时安全预警系统》的专利,该专利是一种应用3G网络传输的高速公路实时安全预警方法,包括车载信息采集装置,集成了GPS、陀螺仪、WIFI模块、OBD接口等。车载信息采集装置通过WIFI模块连上3G手机利用3G网络将采集到的数据发送到中心服务器。中心服务器接收到所有车辆传来的数据,进行分析后,会将与每辆车安全有关的数据发送到各车的手机上。各车3G手机上的软件客户端会显示出周边的交通状况,前方视距外有异常情况时会有报警,以此达到实时安全预警的功能。For another example, the patent number is CN201310690486.1, and the patent title is "Real-time Safety Early Warning System for Expressway Based on 3G Mobile Phone". , integrated GPS, gyroscope, WIFI module, OBD interface, etc. The on-vehicle information collection device is connected to the 3G mobile phone through the WIFI module and uses the 3G network to send the collected data to the central server. The central server receives the data from all the vehicles, and after analysis, it will send the data related to the safety of each vehicle to the mobile phones of each vehicle. The software client on the 3G mobile phone of each car will display the surrounding traffic conditions, and an alarm will be issued when there is an abnormal situation beyond the front line of sight, so as to achieve the function of real-time safety warning.

因此,相关技术中,使用机器进行辅助驾驶时,均由服务器进行数据分析,使得机器辅助驾驶过程中需要依靠外部网路和服务器,导致成本较高。Therefore, in the related art, when the machine is used for assisted driving, the data analysis is performed by the server, so that the process of machine assisted driving needs to rely on external networks and servers, resulting in high cost.

发明内容Contents of the invention

本发明实施例提供了一种报警处理方法、装置及终端,以至少解决相关技术中进行辅助驾驶时,需要依靠外部网路和服务器,导致成本较高的问题。Embodiments of the present invention provide an alarm processing method, device, and terminal to at least solve the problem in the related art of relying on external networks and servers for assisted driving, resulting in high costs.

根据本发明的一个实施例,提供了一种报警处理方法,包括:获取车辆与所述车辆的前方事物的距离;判断所述距离是否小于安全距离;在判断结果为是的情况下,播放第一报警铃音。According to an embodiment of the present invention, an alarm processing method is provided, including: obtaining the distance between the vehicle and the thing in front of the vehicle; judging whether the distance is less than a safe distance; if the judging result is yes, playing the first An alarm tone.

可选地,在判断所述距离是否小于安全距离之后,还包括:在所述距离小于安全距离的情况下,判断所述车辆是否减速;在判断结果为否的情况下,播放第二报警铃音。Optionally, after judging whether the distance is less than the safety distance, it also includes: if the distance is less than the safety distance, judging whether the vehicle decelerates; if the judgment result is no, playing the second alarm bell sound.

可选地,判断所述距离是否小于所述安全距离包括:获取所述前方事物在显示屏上的成像;通过检测所述成像是否在显示屏上安全线内的方式,判断所述距离是否小于所述安全距离。Optionally, judging whether the distance is less than the safety distance includes: acquiring the imaging of the thing in front on the display screen; judging whether the distance is less than the safe distance.

可选地,判断所述车辆是否减速包括:获取所述车辆的加速度;通过检测所述加速度的变化的方式,判断所述车辆是否减速。Optionally, judging whether the vehicle is decelerating includes: acquiring the acceleration of the vehicle; and judging whether the vehicle is decelerating by detecting changes in the acceleration.

可选地,在获取所述车辆与所述车辆的前方事物的距离之前,还包括:获取预定时间内驾驶员的面部表情数据;比较所述面部表情数据和预先存储的面部表情数据是否持续一致;在比较结果一致的情况下,确定疲劳驾驶并播放第三报警铃音。Optionally, before obtaining the distance between the vehicle and the thing in front of the vehicle, it also includes: obtaining the facial expression data of the driver within a predetermined time; comparing whether the facial expression data is consistent with the pre-stored facial expression data ; If the comparison results are consistent, determine fatigue driving and play a third alarm tone.

根据本发明的另一个实施例,提供了一种报警处理装置,包括:第一获取模块,用于获取车辆与所述车辆的前方事物的距离;第一判断模块,用于判断所述距离是否小于安全距离;第一播放模块,用于在判断结果为是的情况下,播放第一报警铃音。According to another embodiment of the present invention, an alarm processing device is provided, including: a first acquiring module, configured to acquire the distance between the vehicle and the object in front of the vehicle; a first judging module, configured to judge whether the distance is less than the safety distance; the first playing module is used to play the first alarm tone when the judgment result is yes.

可选地,还包括:第二判断模块,用于在所述距离小于安全距离的情况下,判断所述车辆是否减速;第二播放模块,用于在判断结果为否的情况下,播放第二报警铃音。Optionally, it also includes: a second judging module, used to judge whether the vehicle decelerates when the distance is less than the safety distance; a second playing module, used to play the first Two alarm tones.

可选地,所述第一判断模块,还用于获取所述前方事物在显示屏上的成像;以及通过检测所述成像是否在显示屏上安全线内的方式,判断所述距离是否小于所述安全距离。Optionally, the first judging module is also used to acquire the imaging of the front object on the display screen; and judge whether the distance is less than the specified distance by detecting whether the imaging is within the safety line on the display screen. The safety distance mentioned above.

可选地,第二判断模块,还用于获取所述车辆的加速度;以及通过检测所述加速度的变化的方式,判断所述车辆是否减速。Optionally, the second judging module is further configured to acquire the acceleration of the vehicle; and judge whether the vehicle decelerates by detecting a change in the acceleration.

可选地,还包括:第二获取模块,用于获取预定时间内驾驶员的面部表情数据;比较模块,用于比较所述面部表情数据和预先存储的面部表情数据是否持续一致;第三播放模块,用于在比较结果一致的情况下,确定疲劳驾驶并播放第三报警铃音。Optionally, also include: a second acquisition module, used to obtain the facial expression data of the driver within a predetermined time; a comparison module, used to compare whether the facial expression data and pre-stored facial expression data are consistent; the third play A module is used for determining fatigue driving and playing a third alarm tone when the comparison results are consistent.

根据本发明的又一个实施例,提供了一种终端,包括上述实施例中任一项所述装置。According to yet another embodiment of the present invention, a terminal is provided, including the apparatus described in any one of the foregoing embodiments.

根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:获取车辆与所述车辆的前方事物的距离;判断所述距离是否小于安全距离;在判断结果为是的情况下,播放第一报警铃音。According to still another embodiment of the present invention, a storage medium is also provided. The storage medium is configured to store program codes for performing the following steps: obtaining the distance between the vehicle and the thing in front of the vehicle; judging whether the distance is less than a safety distance; if the judging result is yes, playing the first alarm bell sound.

可选地,存储介质还设置为存储用于执行以下步骤的程序代码:在判断所述距离是否小于安全距离之后,还包括:在所述距离小于安全距离的情况下,判断所述车辆是否减速;在判断结果为否的情况下,播放第二报警铃音。Optionally, the storage medium is further configured to store program codes for executing the following steps: after judging whether the distance is less than a safety distance, further comprising: judging whether the vehicle decelerates if the distance is less than the safety distance ; If the judgment result is negative, play the second alarm tone.

可选地,存储介质还设置为存储用于执行以下步骤的程序代码:判断所述距离是否小于所述安全距离包括:获取所述前方事物在显示屏上的成像;通过检测所述成像是否在显示屏上安全线内的方式,判断所述距离是否小于所述安全距离。Optionally, the storage medium is also configured to store program codes for performing the following steps: judging whether the distance is less than the safety distance includes: acquiring the imaging of the thing in front on the display screen; detecting whether the imaging is within In the way of the safety line on the display screen, it is judged whether the distance is smaller than the safety distance.

可选地,存储介质还设置为存储用于执行以下步骤的程序代码:判断所述车辆是否减速包括:获取所述车辆的加速度;通过检测所述加速度的变化的方式,判断所述车辆是否减速。Optionally, the storage medium is further configured to store program codes for performing the following steps: judging whether the vehicle is decelerating includes: acquiring the acceleration of the vehicle; and judging whether the vehicle is decelerating by detecting changes in the acceleration .

可选地,存储介质还设置为存储用于执行以下步骤的程序代码:在获取所述车辆与所述车辆的前方事物的距离之前,还包括:获取预定时间内驾驶员的面部表情数据;比较所述面部表情数据和预先存储的面部表情数据是否持续一致;在比较结果一致的情况下,确定疲劳驾驶并播放第三报警铃音。Optionally, the storage medium is also configured to store program codes for performing the following steps: before acquiring the distance between the vehicle and the thing in front of the vehicle, further comprising: acquiring the facial expression data of the driver within a predetermined time; comparing Whether the facial expression data is consistent with the pre-stored facial expression data; if the comparison results are consistent, determine fatigue driving and play the third alarm tone.

通过本发明,获取车辆与车辆的前方事物的距离;判断距离是否小于安全距离;在判断结果为是的情况下,播放第一报警铃音。由于获取到车辆与车辆的前方事物的距离后,直接对该距离数据进行分析处理,无需通过外部网络传输至服务器,也即,无需服务器参与数据分析,使得辅助驾驶过程中不再依赖外部网络和服务器,可以解决相关技术中进行辅助驾驶时,需要依靠外部网路和服务器,导致成本较高的问题。Through the present invention, the distance between the vehicle and the thing in front of the vehicle is acquired; it is judged whether the distance is less than the safety distance; and if the judgment result is yes, the first alarm tone is played. After obtaining the distance between the vehicle and the things in front of the vehicle, the distance data can be directly analyzed and processed without transmitting to the server through the external network, that is, without the server participating in the data analysis, so that the process of assisted driving no longer depends on the external network and The server can solve the problem of high cost caused by the need to rely on external networks and servers for assisted driving in related technologies.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1是本发明实施例的一种报警处理方法的移动终端的硬件结构框图;Fig. 1 is a hardware structural block diagram of a mobile terminal of an alarm processing method according to an embodiment of the present invention;

图2是根据本发明实施例的报警处理方法的流程图;Fig. 2 is a flowchart of an alarm processing method according to an embodiment of the present invention;

图3是根据本发明实施例的安全线的示意图;Fig. 3 is a schematic diagram of a security thread according to an embodiment of the present invention;

图4是根据本发明实施例的报警处理装置的结构框图;Fig. 4 is a structural block diagram of an alarm processing device according to an embodiment of the present invention;

图5是根据本发明实施例的报警处理装置的优选结构框图一;Fig. 5 is a preferred structural block diagram 1 of an alarm processing device according to an embodiment of the present invention;

图6是根据本发明实施例的报警处理装置的优选结构框图二;Fig. 6 is a preferred structural block diagram 2 of an alarm processing device according to an embodiment of the present invention;

图7是根据本发明实施例的手机安全辅助驾驶工作示意图;Fig. 7 is a schematic diagram of mobile phone safety assisted driving work according to an embodiment of the present invention;

图8是根据本发明实施例的手机辅助驾驶工作示意图;Fig. 8 is a schematic diagram of a mobile phone assisted driving operation according to an embodiment of the present invention;

图9是根据本发明实施例的安全辅助驾驶系统框图。Fig. 9 is a block diagram of a safety driving assistance system according to an embodiment of the present invention.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.

实施例1Example 1

本申请实施例1所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种报警处理方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to an alarm processing method according to an embodiment of the present invention. As shown in Figure 1, the mobile terminal 10 may include one or more (only one is shown in the figure) processors 102 (the processor 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) , a memory 104 for storing data, and a transmission device 106 for communication functions. Those of ordinary skill in the art can understand that the structure shown in FIG. 1 is only a schematic diagram, and it does not limit the structure of the above-mentioned electronic device. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .

存储器104可用于存储应用软件的软件程序以及模块,如本发明实施例中的报警处理方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to the alarm processing method in the embodiment of the present invention, and the processor 102 executes various Functional application and data processing are to realize the above-mentioned method. The 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, the memory 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal 10 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

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

在本实施例中提供了一种运行于上述移动终端的报警处理方法,图2是根据本发明实施例的报警处理方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, an alarm processing method operating on the above-mentioned mobile terminal is provided. FIG. 2 is a flow chart of the alarm processing method according to an embodiment of the present invention. As shown in FIG. 2 , the process includes the following steps:

步骤S202,获取车辆与车辆的前方事物的距离;Step S202, acquiring the distance between the vehicle and the things in front of the vehicle;

步骤S204,判断距离是否小于安全距离;Step S204, judging whether the distance is smaller than the safety distance;

步骤S206,在判断结果为是的情况下,播放第一报警铃音。Step S206, if the judgment result is yes, play the first alarm tone.

通过上述步骤,由于获取到车辆与车辆的前方事物的距离后,直接对该距离数据进行分析处理,无需通过外部网络传输至服务器,也即,无需服务器参与数据分析,使得辅助驾驶过程中不再依赖外部网络和服务器,可以解决相关技术中进行辅助驾驶时,需要依靠外部网路和服务器,导致成本较高的问题。Through the above steps, after the distance between the vehicle and the things in front of the vehicle is acquired, the distance data is directly analyzed and processed without transmitting to the server through an external network, that is, the server is not required to participate in the data analysis, so that the assisted driving process is no longer necessary. Relying on external networks and servers can solve the problem of high cost caused by relying on external networks and servers when assisting driving in related technologies.

可选地,在判断距离是否小于安全距离之后,还包括:在距离小于安全距离的情况下,判断车辆是否减速;在判断结果为否的情况下,播放第二报警铃音。通过上述步骤,可以在存在安全隐患时,辅助车辆用户对车辆做出正确操作。Optionally, after judging whether the distance is less than the safety distance, the method further includes: if the distance is less than the safety distance, judging whether the vehicle decelerates; if the judging result is no, playing a second alarm tone. Through the above steps, it is possible to assist the vehicle user to operate the vehicle correctly when there is a potential safety hazard.

可选地,判断距离是否小于安全距离包括:获取前方事物在显示屏上的成像;通过检测成像是否在显示屏上安全线内的方式,判断距离是否小于安全距离。通过上述步骤,可以快速直接的判断在安全距离内是否有障碍物。Optionally, judging whether the distance is less than the safety distance includes: acquiring an image of the thing in front on the display screen; and judging whether the distance is less than the safety distance by detecting whether the image is within the safety line on the display screen. Through the above steps, it is possible to quickly and directly determine whether there is an obstacle within the safe distance.

例如,上述安全线可以预先设置,设置形式可以如图3所示,显示屏上安全线1-5表示安全距离,如果有汽车或者行人或者其他事物,在线5的上面,表示汽车行驶在安全距离内,否则表示汽车距离其他事物比较近。在线5的上面,表示事物距离汽车较远;当事物进入线5和线4之间,说明事物进入危险距离内;事物处在的位置越往下,说明离汽车越靠近,越危险。For example, the above-mentioned safety line can be pre-set, and the setting form can be shown in Figure 3. The safety line 1-5 on the display screen represents a safe distance. If there are cars or pedestrians or other things, above the line 5, it means that the car is driving at a safe distance. Otherwise, it means that the car is relatively close to other things. Above line 5, it means that the object is far away from the car; when the object enters between line 5 and line 4, it means that the object is within the dangerous distance; the lower the object is, the closer it is to the car, the more dangerous it is.

又例如,设置安全线的方式可以使用如下方式:在第一次使用时,用户自己在车辆外,距离车辆一定距离放置一标示物A,距离用户可以自己设定,如5m,在辅助机器在汽车上固定好后,手动调节线5的位置,使标示物A正好落在物体在线5上,同时线1、2、3、4等距离显示在屏幕上。同时机器的三轴重力传感器可以记录机器的摆放的角度信息,X,Y,Z。完成校准工作。后续只要机器固定时,按照之前记录的角度信息来摆放,线1~5会自动显示在屏幕上的位置。这样用户就完成的安全距离的设定工作,以及机器摆放的角度信息供以后再次摆放使用。For another example, the way of setting the safety line can be as follows: when using for the first time, the user himself is outside the vehicle, and a marker A is placed at a certain distance from the vehicle. The distance can be set by the user, such as 5m. After being fixed on the car, manually adjust the position of line 5 so that marker A just falls on object line 5, and lines 1, 2, 3, and 4 are displayed on the screen at equal distances. At the same time, the machine's three-axis gravity sensor can record the angle information of the machine's placement, X, Y, Z. Finish the calibration work. Afterwards, as long as the machine is fixed, place it according to the previously recorded angle information, and lines 1 to 5 will be automatically displayed on the screen. In this way, the user completes the setting of the safe distance and the angle information of the machine placement for future placement.

可选地,判断车辆是否减速包括:获取车辆的加速度;通过检测加速度的变化的方式,判断车辆是否减速。Optionally, judging whether the vehicle decelerates includes: acquiring the acceleration of the vehicle; and judging whether the vehicle decelerates by detecting changes in the acceleration.

例如,可以使用辅助机器自带的加速度传感器获取车辆的加速度,当辅助机器固定在车辆上,那么该加速度传感器获得的加速度即代表车辆的加速度。当有其他事物在车辆的安全距离以内,驾驶员踩刹车,机器加速度传感器可以检测到该数据的变化,从而判断用户是否做了减速动作。当加速度数值<0时,表示车辆处于减速状态;当加速度数值=0时,表示车辆处于匀速或者停止状态;当加速度数值>0时,表示车辆处于加速状态。For example, the acceleration sensor of the auxiliary machine can be used to obtain the acceleration of the vehicle. When the auxiliary machine is fixed on the vehicle, the acceleration obtained by the acceleration sensor represents the acceleration of the vehicle. When other things are within the safe distance of the vehicle and the driver steps on the brakes, the machine acceleration sensor can detect the change of the data, so as to determine whether the user has decelerated. When the acceleration value<0, it means that the vehicle is in a deceleration state; when the acceleration value=0, it means that the vehicle is in a constant speed or stop state; when the acceleration value>0, it means that the vehicle is in an acceleration state.

可选地,在获取车辆与车辆的前方事物的距离之前,还包括:获取预定时间内驾驶员的面部表情数据;比较面部表情数据和预先存储的面部表情数据是否持续一致;在比较结果一致的情况下,确定疲劳驾驶并播放第三报警铃音。Optionally, before obtaining the distance between the vehicle and the things in front of the vehicle, it also includes: obtaining the facial expression data of the driver within a predetermined time; comparing whether the facial expression data is consistent with the pre-stored facial expression data; situation, determine fatigue driving and play the third alarm tone.

例如,可以将辅助机器固定在车辆上,辅助机器的前置摄像头,位于机器正面上部。工作时,前摄启动,开始拍摄驾驶员的面部包括眼睛,拍摄获得的照片会送到图像识别模块中。拍摄的图片会和内部存在的闭眼图片进行比较,如果相关性高,说明驾驶员眼睛闭眼,如果预定时间内容获取的数据均是闭眼,则说明疲劳驾驶。For example, the auxiliary machine can be fixed on the vehicle, and the front camera of the auxiliary machine is located on the upper front of the machine. When working, the proactive camera starts to take photos of the driver's face including eyes, and the photos obtained will be sent to the image recognition module. The captured pictures will be compared with the closed-eye pictures in the interior. If the correlation is high, it means that the driver’s eyes are closed. If the data acquired at the scheduled time is closed, it means that the driver is fatigued.

又例如,可以开启移动终端的前置摄像头拍摄当前图像,进而识别所述当前图像中的人眼,再根据所述图像识别模块的识别结果计算人眼持续注视时间,并在所述人眼持续注视时间超过预设疲劳时间时产生提醒信号,在接收到提醒信号时生成提醒界面在所述移动终端上进行显示。For another example, the front camera of the mobile terminal can be turned on to capture the current image, and then the human eye in the current image can be identified, and then the human eye's continuous gaze time can be calculated according to the recognition result of the image recognition module, and the human eye's continuous gaze time can be calculated. When the gazing time exceeds the preset fatigue time, a reminder signal is generated, and when the reminder signal is received, a reminder interface is generated and displayed on the mobile terminal.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.

实施例2Example 2

在本实施例中还提供了一种报警处理装置及终端,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, an alarm processing device and terminal are also provided, and the device is used to implement the above embodiments and preferred implementation modes, and what has already been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

图4是根据本发明实施例的报警处理装置的结构框图,如图4所示,该装置包括:Fig. 4 is a structural block diagram of an alarm processing device according to an embodiment of the present invention. As shown in Fig. 4, the device includes:

第一获取模块42,用于获取车辆与车辆的前方事物的距离;The first acquiring module 42 is used to acquire the distance between the vehicle and the things in front of the vehicle;

第一判断模块44,连接至上述第一获取模块42,用于判断距离是否小于安全距离;The first judgment module 44 is connected to the above-mentioned first acquisition module 42, and is used to judge whether the distance is less than the safety distance;

第一播放模块46,连接至上述第一判断模块44,用于在判断结果为是的情况下,播放第一报警铃音。The first playing module 46 is connected to the above-mentioned first judging module 44, and is used to play the first alarm ringtone when the judging result is yes.

图5是根据本发明实施例的报警处理装置的优选结构框图一,如图5所示,该装置除包括图4所示的所有模块外,还包括:Fig. 5 is a preferred structural block diagram 1 of an alarm processing device according to an embodiment of the present invention. As shown in Fig. 5, in addition to all the modules shown in Fig. 4, the device also includes:

第二判断模块52,用于在距离小于安全距离的情况下,判断车辆是否减速;The second judging module 52 is used to judge whether the vehicle is decelerating when the distance is less than the safety distance;

第二播放模块54,连接至上述第二判断模块52,用于在判断结果为否的情况下,播放第二报警铃音。The second playing module 54 is connected to the above-mentioned second judging module 52, and is used to play the second alarm ring tone when the judging result is negative.

可选地,第一判断模块44,还用于获取前方事物在显示屏上的成像;以及通过检测成像是否在显示屏上安全线内的方式,判断距离是否小于安全距离。Optionally, the first judging module 44 is also used to acquire the image of the front object on the display screen; and judge whether the distance is less than the safety distance by detecting whether the image is within the safety line on the display screen.

可选地,第二判断模块52,还用于获取车辆的加速度;以及通过检测加速度的变化的方式,判断车辆是否减速。Optionally, the second judging module 52 is also used to acquire the acceleration of the vehicle; and judge whether the vehicle decelerates by detecting the change of the acceleration.

图6是根据本发明实施例的报警处理装置的优选结构框图二,如图6所示,该装置除包括图4和图5所示的所有模块外,还包括:Fig. 6 is a preferred structural block diagram II of an alarm processing device according to an embodiment of the present invention. As shown in Fig. 6, the device includes not only all the modules shown in Fig. 4 and Fig. 5 , but also:

第二获取模块62,用于获取预定时间内驾驶员的面部表情数据;The second obtaining module 62 is used to obtain the facial expression data of the driver within a predetermined time;

比较模块64,连接至上述第二获取模块62,用于比较面部表情数据和预先存储的面部表情数据是否持续一致;Comparison module 64, connected to the above-mentioned second acquisition module 62, is used to compare facial expression data and whether the facial expression data stored in advance is consistent;

第三播放模块66,连接至上述比较模块64,用于在比较结果一致的情况下,确定疲劳驾驶并播放第三报警铃音。The third playing module 66 is connected to the above-mentioned comparing module 64, and is used for determining fatigue driving and playing a third alarm tone when the comparison results are consistent.

在本实施例中还提供了一种终端,该终端包括上述实施例中任一项报警处理装置。In this embodiment, a terminal is also provided, and the terminal includes any one of the alarm processing devices in the foregoing embodiments.

需要说明的是,随着手机在人们日常生活中普及越来越广,除了日常通信,娱乐外,也可以用在安全辅助驾驶中,由于手机作为人们日常生活的必用设备,既保留了原有功能,又具有辅助驾驶的功能;并且相对于第三方等辅助驾驶设备,不需要额外购买,所以不产生额外费用;再有由于所用的传感器均为手机标准配置,所以手机成本上不会增加;最后由于为便携式产品,所以作为辅助驾驶使用时,装配方便,界面友好。因此采用手机进行辅助驾驶具有很大的应用前景。It should be noted that as mobile phones become more and more popular in people's daily life, in addition to daily communication and entertainment, they can also be used in safety assisted driving. It also has the function of assisting driving; and compared with third-party and other auxiliary driving equipment, no additional purchase is required, so there is no additional cost; and since the sensors used are all standard configurations of mobile phones, the cost of mobile phones will not increase; Finally, because it is a portable product, it is easy to assemble and has a friendly interface when used as a driving aid. Therefore, the use of mobile phones for assisted driving has great application prospects.

下面以终端为手机为例进行说明辅助驾驶过程。图7是根据本发明实施例的手机安全辅助驾驶工作示意图,如图7所示,手机辅助驾驶工作过程包括:The following takes the mobile phone as an example to illustrate the assisted driving process. Fig. 7 is a schematic diagram of mobile phone safety assisted driving work according to an embodiment of the present invention. As shown in Fig. 7, the mobile phone assisted driving working process includes:

前置摄像头(同上第二获取模块62,比较模块64),位于手机正面上部,在工作时,启动开始拍摄驾驶员的面部包括眼睛,拍摄获得的照片会送到图像识别模块中,通过面部表情或者眼睛闭眼识别模块,进行图像识别,如果判断此时驾驶员产生疲劳表情或者眼部状态,会通知报警模块,播放报警铃音,提醒用户处于疲劳状态;The front camera (same as the second acquisition module 62 and the comparison module 64) is located at the upper part of the front of the mobile phone. When working, it starts to take pictures of the driver's face including eyes, and the photos obtained by shooting will be sent to the image recognition module. Or the eyes-closed recognition module performs image recognition. If it is judged that the driver has a tired expression or eye state at this time, the alarm module will be notified, and the alarm ring tone will be played to remind the user that he is in a state of fatigue;

后置摄像头(同上第一获取模块42,第一判断模块44),位于手机背面,在工作时,启动开始拍摄车辆前方事物包括前方行驶车辆,走动的行人,或者其他前方事物,拍摄获得的照片会送到图像识别模块中,通过前方道路识别模块,进行图像识别,如果判断此时前方有车辆、行人或者其他事物在车辆的安全距离以内,结合手机前置摄像头和加速度传感器获得的信号进判断,会通知报警模块,播放报警铃音,提醒用户安全驾驶;The rear camera (same as the first acquiring module 42 and the first judging module 44) is located on the back of the mobile phone. When working, it starts to shoot things in front of the vehicle, including vehicles driving ahead, pedestrians walking, or other things in front, and takes photos obtained It will be sent to the image recognition module, and the image recognition will be carried out through the front road recognition module. If it is judged that there are vehicles, pedestrians or other things in front of the vehicle within the safe distance of the vehicle, it will be judged by combining the signals obtained by the front camera of the mobile phone and the acceleration sensor. , the alarm module will be notified and the alarm tone will be played to remind the user to drive safely;

加速度传感器(同上第二判断模块52),位于手机主板中,在工作时,手机固定于汽车上,所以当汽车行驶时,会采集到启动行驶中是处于加速或者减速状态,通过该信息,结合前面前置摄像头和后置摄像头获取的信息,判断目前驾驶员是否处于正确的操作,如果驾驶异常,则通知报警块,播放报警铃音,提醒用户安全驾驶;The acceleration sensor (same as the second judging module 52) is located in the main board of the mobile phone. When working, the mobile phone is fixed on the car, so when the car is running, it can be collected that it is in an acceleration or deceleration state during the start-up driving. Through this information, combined with The information obtained by the front-facing camera and the rear-facing camera can determine whether the current driver is operating correctly. If the driving is abnormal, the alarm block will be notified and the alarm ring tone will be played to remind the user to drive safely;

喇叭(同上第一播放模块46,第二播放模块54,第三播放模块66),位于手机整机中,在工作时,如果驾驶异常,系统会则通知报警块,通过喇叭播放报警铃音,提醒用户安全驾驶。Loudspeaker (same as above first playing module 46, the second playing module 54, the 3rd playing module 66), is positioned at mobile phone complete machine, when working, if driving abnormality, system can then notify alarm block, play alarm ringtone by loudspeaker, Remind users to drive safely.

本发明实施例提供了一种报警处理方法,充分利用手机中多种装置和传感器,获取尽量多的外部信息,驾驶员信息和车辆信息,构成一个全方位,多角度的信息处理和判断系统,更好的实现辅助驾驶。安全距离指汽车正常行驶时,与前方事物相距的距离,如果两者间隔的距离大于该距离,则不会轻易发生碰撞;如果事物在安全距离内,则代表两者距离过近,可能发生碰撞。举例,如果前方有汽车或者行人等处于汽车的安全距离内,那么判断是否是疲劳驾驶,如果未疲劳驾驶,但是未减速,则播放报警铃音3,提醒驾驶员注意安全;如果减速,则不播放报警铃音。The embodiment of the present invention provides an alarm processing method, making full use of various devices and sensors in the mobile phone to obtain as much external information as possible, driver information and vehicle information, to form an all-round, multi-angle information processing and judgment system, Better realization of assisted driving. The safety distance refers to the distance between the car and the things in front when the car is driving normally. If the distance between the two is greater than this distance, collisions will not easily occur; if the things are within the safe distance, it means that the distance between the two is too close and a collision may occur . For example, if there is a car or pedestrian in front of the car within the safe distance of the car, then judge whether it is fatigue driving, if not fatigue driving, but not slowing down, then play the alarm tone 3 to remind the driver to pay attention to safety; if slowing down, then do not Play an alarm tone.

为了方便理解本发明,以终端为手机为例,本实施例还提供了一种安全辅助驾驶系统。图8是根据本发明实施例的手机辅助驾驶工作示意图,如图8所示,该系统包括:手机、车辆(例如,汽车)。该手机固定在汽车中驾驶员前方,在汽车行驶时,手机辅助驾驶启动工作。其中,该手机至少包括:手机前摄像头,后摄像头,加速度传感器,喇叭。前摄像头和后摄像头是可以同时工作的。In order to facilitate understanding of the present invention, taking a mobile phone as an example, this embodiment also provides a safety driving assistance system. FIG. 8 is a schematic diagram of a mobile phone assisted driving operation according to an embodiment of the present invention. As shown in FIG. 8 , the system includes: a mobile phone and a vehicle (for example, a car). The mobile phone is fixed in front of the driver in the car, and when the car is running, the mobile phone assists driving and starts to work. Wherein, the mobile phone at least includes: a front camera of the mobile phone, a rear camera, an acceleration sensor, and a speaker. The front camera and the rear camera can work at the same time.

图9是根据本发明实施例的安全辅助驾驶系统框图,如图9所示,上述系统工作过程可以包括如下模块:监测汽车前方障碍物模块,监测汽车行驶加速度模块,监测驾驶员疲劳驾驶模块,安全驾驶报警模块。下面分别对上述模块进行说明。Fig. 9 is a block diagram of a safety driving assistance system according to an embodiment of the present invention. As shown in Fig. 9, the working process of the above system may include the following modules: a module for monitoring obstacles in front of the vehicle, a module for monitoring vehicle acceleration, and a module for monitoring driver fatigue, Safe driving alarm module. The above modules are described respectively below.

1)监测汽车前方障碍物模块:使用手机的后摄像头拍摄汽车行驶的前方道路,手机屏幕显示的画面如图3所示:显示屏上安全线1-5表示安全距离,如果有汽车或者行人或者其他事物,在线5的上面,表示汽车行驶在安全距离内,否则表示汽车距离其他事物比较近。在线5的上面,表示事物距离汽车较远;当事物进入线5和线4之间,说明事物进入危险距离内;事物处在的位置越往下,说明离汽车越靠近,越危险。1) Obstacle monitoring module in front of the car: Use the rear camera of the mobile phone to take pictures of the road ahead of the car. Other things, above the line 5, means that the car is driving within a safe distance, otherwise it means that the car is relatively close to other things. Above line 5, it means that the object is far away from the car; when the object enters between line 5 and line 4, it means that the object is within the dangerous distance; the lower the object is, the closer it is to the car, the more dangerous it is.

2)监测汽车行驶加速度模块:使用手机自带加速度传感器,当手机固定在汽车上,那么该加速度传感器获得的加速度即代表汽车的加速度。当有其他事物在汽车的安全距离以内,驾驶员踩刹车,手机加速度传感器可以检测到该数据的变化,从而判断用户是否做了减速动作。当加速度数值<0时,表示汽车处于减速状态;当加速度数值=0时,表示汽车处于匀速或者停止状态;当加速度数值>0时,表示汽车处于加速状态。2) Monitoring vehicle acceleration module: Use the acceleration sensor that comes with the mobile phone. When the mobile phone is fixed on the vehicle, the acceleration obtained by the acceleration sensor represents the acceleration of the vehicle. When other things are within the safe distance of the car and the driver steps on the brakes, the acceleration sensor of the mobile phone can detect the change of the data, so as to judge whether the user has slowed down. When the acceleration value<0, it means the car is decelerating; when the acceleration value=0, it means the car is at a constant speed or at a stop; when the acceleration value>0, it means the car is accelerating.

3)监测驾驶员疲劳驾驶模块:使用手机位于手机正面上部的前置摄像头。工作时,前摄启动,开始拍摄驾驶员的面部包括眼睛,拍摄获得的照片会送到图像识别模块中。拍摄的图片会和内部存在的闭眼图片进行比较,如果相关性高,说明驾驶员眼睛闭眼,则开始计时,如果超过2s,说明疲劳驾驶。3) Monitor the driver's fatigue driving module: use the front camera located at the top of the front of the mobile phone. When working, the proactive camera starts to take photos of the driver's face including eyes, and the photos obtained will be sent to the image recognition module. The captured picture will be compared with the closed-eye picture in the interior. If the correlation is high, it means that the driver’s eyes are closed, and the timing will start. If it exceeds 2s, it means that the driver is fatigued.

4)安全驾驶报警模块:根据以上三个模块中后摄、前摄以及加速度传感器获得的信息,总共有8种状态,如表1所示,该8种状态代表了目前外部环境、驾驶员、汽车三者的状态,可以根据这8种状态,来判断目前是否处于危险驾驶,如果是,则手机喇叭开始播放报警铃音,提醒驾驶员安全驾驶。4) Safe driving alarm module: According to the information obtained by the rear camera, the proactive camera and the acceleration sensor in the above three modules, there are a total of 8 states, as shown in Table 1, these 8 states represent the current external environment, driver, The state of the three automobiles can be judged according to these 8 states whether it is currently driving dangerously. If so, the mobile phone speaker will start to play an alarm tone to remind the driver to drive safely.

表格1外部环境、驾驶员、汽车三者的状态Table 1 The state of the external environment, the driver, and the car

安全距离safe distance 疲劳驾驶fatigue driving 减速slow down 报警Call the police 00 00 00 不报警do not call the police 00 00 11 不报警do not call the police 00 11 00 报警铃音1Alarm tone 1 00 11 11 报警铃音2Alarm tone 2 11 00 00 报警铃音3Alarm tone 3 11 00 11 不报警do not call the police 11 11 00 报警铃音4Alarm Tone 4 11 11 11 报警铃音5Alarm tone 5

上述实施例提供了一种使用手机辅助驾驶的系统,利用手机上的设备和传感器获取足够多的驾驶信息,来辅助驾驶;充分利用目前日益普遍的手机的功能,来检测驾驶员是否处于危险环境下,在危险环境是否做出相应的减速动作。The above-mentioned embodiment provides a system for using a mobile phone to assist driving, using the devices and sensors on the mobile phone to obtain enough driving information to assist driving; making full use of the increasingly common functions of mobile phones to detect whether the driver is in a dangerous environment Whether to make corresponding deceleration actions in dangerous environments.

需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above-mentioned modules can be implemented by software or hardware. For the latter, it can be implemented in the following manner, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.

实施例3Example 3

本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for performing the following steps:

S1,获取车辆与车辆的前方事物的距离;S1, obtaining the distance between the vehicle and the things in front of the vehicle;

S2,判断距离是否小于安全距离;S2, judging whether the distance is less than the safety distance;

S3,在判断结果为是的情况下,播放第一报警铃音。S3, if the judgment result is yes, play the first alarm tone.

可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在判断距离是否小于安全距离之后,还包括:Optionally, the storage medium is also configured to store program codes for performing the following steps: after judging whether the distance is less than the safety distance, further comprising:

S1,在距离小于安全距离的情况下,判断车辆是否减速;S1, when the distance is less than the safety distance, determine whether the vehicle is decelerating;

S2,在判断结果为否的情况下,播放第二报警铃音。S2, if the judgment result is negative, play the second alarm tone.

可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:判断距离是否小于安全距离包括:Optionally, the storage medium is also configured to store program codes for performing the following steps: judging whether the distance is less than the safety distance includes:

S1,获取前方事物在显示屏上的成像;S1, acquiring the imaging of the front object on the display screen;

S2,通过检测成像是否在显示屏上安全线内的方式,判断距离是否小于安全距离。S2. Determine whether the distance is smaller than the safety distance by detecting whether the imaging is within the safety line on the display screen.

可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:判断车辆是否减速包括:Optionally, the storage medium is also configured to store program codes for performing the following steps: judging whether the vehicle decelerates includes:

S1,获取车辆的加速度;S1, obtain the acceleration of the vehicle;

S2,通过检测加速度的变化的方式,判断车辆是否减速。S2, by detecting the change of acceleration, it is judged whether the vehicle is decelerating.

可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在获取车辆与车辆的前方事物的距离之前,还包括:Optionally, the storage medium is further configured to store program codes for executing the following steps: before acquiring the distance between the vehicle and the things in front of the vehicle, further comprising:

S1,获取预定时间内驾驶员的面部表情数据;S1, acquiring facial expression data of the driver within a predetermined time;

S2,比较面部表情数据和预先存储的面部表情数据是否持续一致;S2, comparing whether the facial expression data is consistent with the pre-stored facial expression data;

S3,在比较结果一致的情况下,确定疲劳驾驶并播放第三报警铃音。S3, if the comparison results are consistent, determine fatigue driving and play a third alarm tone.

可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk Various media that can store program codes such as discs or optical discs.

可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:获取车辆与车辆的前方事物的距离;判断距离是否小于安全距离;在判断结果为是的情况下,播放第一报警铃音。Optionally, in this embodiment, the processor executes according to the program code stored in the storage medium: acquiring the distance between the vehicle and the thing in front of the vehicle; judging whether the distance is less than the safety distance; if the judging result is yes, playing First alarm tone.

可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在判断距离是否小于安全距离之后,还包括:在距离小于安全距离的情况下,判断车辆是否减速;在判断结果为否的情况下,播放第二报警铃音。Optionally, in this embodiment, the processor executes according to the program code stored in the storage medium: after judging whether the distance is less than the safety distance, further includes: judging whether the vehicle decelerates if the distance is less than the safety distance; If the judgment result is negative, the second alarm tone is played.

可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:判断距离是否小于安全距离包括:获取前方事物在显示屏上的成像;通过检测成像是否在显示屏上安全线内的方式,判断距离是否小于安全距离。Optionally, in this embodiment, the processor executes according to the program codes stored in the storage medium: judging whether the distance is less than the safe distance includes: obtaining the imaging of the front thing on the display screen; by detecting whether the imaging is safe on the display screen In-line mode, judge whether the distance is less than the safety distance.

可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:判断车辆是否减速包括:获取车辆的加速度;通过检测加速度的变化的方式,判断车辆是否减速。Optionally, in this embodiment, the processor executes according to the program code stored in the storage medium: judging whether the vehicle decelerates includes: acquiring the acceleration of the vehicle; and judging whether the vehicle decelerates by detecting changes in the acceleration.

可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在获取车辆与车辆的前方事物的距离之前,还包括:获取预定时间内驾驶员的面部表情数据;比较面部表情数据和预先存储的面部表情数据是否持续一致;在比较结果一致的情况下,确定疲劳驾驶并播放第三报警铃音。Optionally, in this embodiment, the processor executes according to the program code stored in the storage medium: before obtaining the distance between the vehicle and the thing in front of the vehicle, further includes: obtaining the facial expression data of the driver within a predetermined time; comparing Whether the facial expression data is consistent with the pre-stored facial expression data; if the comparison results are consistent, determine fatigue driving and play the third alarm tone.

可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not repeated in this embodiment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (11)

1.一种报警处理方法,其特征在于,包括:1. An alarm processing method, characterized in that, comprising: 获取车辆与所述车辆的前方事物的距离;Obtain the distance between the vehicle and the thing in front of the vehicle; 判断所述距离是否小于安全距离;judging whether the distance is less than a safety distance; 在判断结果为是的情况下,播放第一报警铃音。If the judgment result is yes, the first alarm tone is played. 2.根据权利要求1所述的方法,其特征在于,在判断所述距离是否小于安全距离之后,还包括:2. The method according to claim 1, characterized in that, after judging whether the distance is less than a safety distance, further comprising: 在所述距离小于安全距离的情况下,判断所述车辆是否减速;If the distance is less than a safety distance, determine whether the vehicle is decelerating; 在判断结果为否的情况下,播放第二报警铃音。If the judgment result is negative, the second alarm tone is played. 3.根据权利要求1或2所述的方法,其特征在于,判断所述距离是否小于所述安全距离包括:3. The method according to claim 1 or 2, wherein judging whether the distance is less than the safety distance comprises: 获取所述前方事物在显示屏上的成像;Obtaining the imaging of the front thing on the display screen; 通过检测所述成像是否在显示屏上安全线内的方式,判断所述距离是否小于所述安全距离。Whether the distance is smaller than the safety distance is determined by detecting whether the imaging is within the safety line on the display screen. 4.根据权利要求2所述的方法,其特征在于,判断所述车辆是否减速包括:4. The method according to claim 2, wherein judging whether the vehicle is decelerating comprises: 获取所述车辆的加速度;obtaining the acceleration of the vehicle; 通过检测所述加速度的变化的方式,判断所述车辆是否减速。By detecting the change of the acceleration, it is judged whether the vehicle is decelerating. 5.根据权利要求1所述的方法,其特征在于,在获取所述车辆与所述车辆的前方事物的距离之前,还包括:5. The method according to claim 1, further comprising: before obtaining the distance between the vehicle and the thing in front of the vehicle: 获取预定时间内驾驶员的面部表情数据;Obtain the facial expression data of the driver within a predetermined time; 比较所述面部表情数据和预先存储的面部表情数据是否持续一致;Comparing whether the facial expression data is consistent with the pre-stored facial expression data; 在比较结果一致的情况下,确定疲劳驾驶并播放第三报警铃音。In the case that the comparison results are consistent, it is determined that the driver is fatigued and a third alarm tone is played. 6.一种报警处理装置,其特征在于,包括:6. An alarm processing device, characterized in that, comprising: 第一获取模块,用于获取车辆与所述车辆的前方事物的距离;The first acquiring module is used to acquire the distance between the vehicle and the things in front of the vehicle; 第一判断模块,用于判断所述距离是否小于安全距离;A first judging module, configured to judge whether the distance is less than a safety distance; 第一播放模块,用于在判断结果为是的情况下,播放第一报警铃音。The first playing module is used to play the first alarm ring tone when the judgment result is yes. 7.根据权利要求6所述的装置,其特征在于,还包括:7. The device according to claim 6, further comprising: 第二判断模块,用于在所述距离小于安全距离的情况下,判断所述车辆是否减速;A second judging module, configured to judge whether the vehicle decelerates when the distance is less than a safety distance; 第二播放模块,用于在判断结果为否的情况下,播放第二报警铃音。The second playing module is used to play the second alarm ring tone when the judgment result is negative. 8.根据权利要求6或7所述的装置,其特征在于,所述第一判断模块,还用于获取所述前方事物在显示屏上的成像;以及通过检测所述成像是否在显示屏上安全线内的方式,判断所述距离是否小于所述安全距离。8. The device according to claim 6 or 7, wherein the first judging module is also used to acquire the imaging of the front thing on the display screen; and by detecting whether the imaging is on the display screen In a manner within the safety line, it is judged whether the distance is smaller than the safety distance. 9.根据权利要求7所述的装置,其特征在于,第二判断模块,还用于获取所述车辆的加速度;以及通过检测所述加速度的变化的方式,判断所述车辆是否减速。9 . The device according to claim 7 , wherein the second judging module is further configured to acquire the acceleration of the vehicle; and judge whether the vehicle is decelerating by detecting changes in the acceleration. 10.根据权利要求6所述的装置,其特征在于,还包括:10. The device according to claim 6, further comprising: 第二获取模块,用于获取预定时间内驾驶员的面部表情数据;The second acquisition module is used to acquire the facial expression data of the driver within a predetermined time; 比较模块,用于比较所述面部表情数据和预先存储的面部表情数据是否持续一致;Comparison module, used to compare whether the facial expression data and the pre-stored facial expression data are consistent; 第三播放模块,用于在比较结果一致的情况下,确定疲劳驾驶并播放第三报警铃音。The third playing module is used to determine the fatigue driving and play the third alarm tone when the comparison results are consistent. 11.一种终端,其特征在于,包括权利要求6至10中任一项所述装置。11. A terminal, comprising the device according to any one of claims 6-10.
CN201610820700.4A 2016-09-12 2016-09-12 alarm processing method, device and terminal Pending CN107818694A (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
PCT/CN2017/101402 WO2018046015A1 (en) 2016-09-12 2017-09-12 Alarm method, device and terminal for vehicle

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN107818694A true CN107818694A (en) 2018-03-20

Family

ID=61561319

Family Applications (1)

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

Country Status (2)

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

Cited By (6)

* 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
CN109830116A (en) * 2018-12-15 2019-05-31 深圳壹账通智能科技有限公司 Information cuing method, device and relevant device based on image recognition
CN110556024A (en) * 2019-07-18 2019-12-10 华瑞新智科技(北京)有限公司 Anti-collision auxiliary driving method and system and computer readable storage medium
CN113787961A (en) * 2021-08-11 2021-12-14 普行智能停车(深圳)有限公司 Alarm method, device, equipment and medium for sudden obstacle appearing during vehicle running
CN114999226A (en) * 2022-05-16 2022-09-02 中铁十九局集团第六工程有限公司 Tunnel pedestrian avoidance early warning method, computer device and computer readable storage medium

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112652173B (en) * 2019-10-11 2022-05-03 深圳富泰宏精密工业有限公司 Driving safety prompting method, vehicle and storage medium
CN111339956A (en) * 2020-02-28 2020-06-26 北京中科慧眼科技有限公司 Height-limiting early warning method, device and system based on binocular camera and storage medium
CN114648569A (en) * 2020-12-21 2022-06-21 珠海格力电器股份有限公司 Obstacle detection method and device, electronic equipment and storage medium
CN113085848B (en) * 2021-04-15 2022-03-22 江苏东交智控科技集团股份有限公司 Control method and device for unmanned road roller, electronic equipment and storage medium
CN113619483A (en) * 2021-08-12 2021-11-09 阿尔特汽车技术股份有限公司 Reminding method for vehicle, corresponding reminding device and vehicle
CN113696889A (en) * 2021-08-18 2021-11-26 北京三快在线科技有限公司 Unmanned equipment control method and device based on safe distance
CN115713745A (en) * 2021-08-20 2023-02-24 博泰车联网(南京)有限公司 Obstacle detection method, electronic device, and storage medium
CN113709950A (en) * 2021-08-25 2021-11-26 深圳市全景达科技有限公司 Control method, system and device for atmosphere lamp in vehicle and storage medium
CN115716459B (en) * 2022-11-02 2025-04-01 中国第一汽车股份有限公司 A method and device for ensuring the safety of people in a vehicle while the vehicle is traveling

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3102262B2 (en) * 1994-05-02 2000-10-23 日産自動車株式会社 Inter-vehicle distance alarm
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
JP3687156B2 (en) * 1995-11-20 2005-08-24 アイシン精機株式会社 Rear-end collision warning device for automobiles
CN102114820A (en) * 2010-01-02 2011-07-06 胡德明 Vehicle driving safety system device
CN102582556A (en) * 2011-01-07 2012-07-18 华东交通大学 Active anti-collision system for car
CN102991419B (en) * 2012-11-27 2015-04-22 余姚德诚科技咨询有限公司 Vehicle assistant driving device
CN103287406B (en) * 2013-06-08 2015-04-29 浙江大学 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

Cited By (7)

* 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
CN109830116A (en) * 2018-12-15 2019-05-31 深圳壹账通智能科技有限公司 Information cuing method, device and relevant device based on image recognition
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
CN113787961A (en) * 2021-08-11 2021-12-14 普行智能停车(深圳)有限公司 Alarm method, device, equipment and medium for sudden obstacle appearing during vehicle running
CN114999226A (en) * 2022-05-16 2022-09-02 中铁十九局集团第六工程有限公司 Tunnel pedestrian avoidance early warning method, computer device and computer readable storage medium
CN114999226B (en) * 2022-05-16 2025-06-13 中铁十九局集团第六工程有限公司 Tunnel pedestrian avoidance warning method, computer device and computer readable storage medium

Also Published As

Publication number Publication date
WO2018046015A1 (en) 2018-03-15

Similar Documents

Publication Publication Date Title
CN107818694A (en) alarm processing method, device and terminal
JP6163017B2 (en) Portable terminal and danger notification system
US10204261B2 (en) Camera in vehicle reports identity of driver
US20180026669A1 (en) Phone docking station for enhanced driving safety
US10708700B1 (en) Vehicle external speaker system
US20070222617A1 (en) Vision based alert system using portable device with camera
CN114332821B (en) Decision information acquisition method, device, terminal and storage medium
CN106314424B (en) Householder method of overtaking other vehicles, device and automobile based on automobile
US11044566B2 (en) Vehicle external speaker system
CN104392611B (en) A kind of identification high price automobile method and system
CN109151204B (en) A mobile terminal-based navigation method, device and mobile terminal
KR20190007769A (en) Electronic apparatus for performing communication with an external electronic device
KR20230025738A (en) Detecting objects within a vehicle
CN105882528A (en) Road condition sharing method and device of balance car and balance car
CN111294564A (en) Information display method and wearable device
CN110070717A (en) The determination method, apparatus and storage medium of violation vehicle
CN108733020A (en) Remote control equipment and method for vehicle
CN101655374A (en) GPS device with motion sensor control and image taking device and control method thereof
JP6169747B2 (en) Mobile device
KR20190063986A (en) Artificial intelligence dashboard robot base on cloud server for recognizing states of a user
JP7068606B2 (en) Driving evaluation device, on-board unit, driving evaluation method, and computer program
CN110838219A (en) Danger prediction alarm method and device
CN105825181A (en) Vehicle driving monitoring method, device and terminal equipment
CN114973652A (en) Visual blind area reminding method and system, electronic equipment and storage medium
CN118636788B (en) Vehicle control method and device, vehicle and storage medium

Legal Events

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

Application publication date: 20180320