WO2022188362A1 - Distraction reminding method and apparatus, electronic device, and storage medium - Google Patents

Distraction reminding method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2022188362A1
WO2022188362A1 PCT/CN2021/113576 CN2021113576W WO2022188362A1 WO 2022188362 A1 WO2022188362 A1 WO 2022188362A1 CN 2021113576 W CN2021113576 W CN 2021113576W WO 2022188362 A1 WO2022188362 A1 WO 2022188362A1
Authority
WO
WIPO (PCT)
Prior art keywords
driver
deflection angle
vehicle
speed
distraction
Prior art date
Application number
PCT/CN2021/113576
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
Application filed by 上海商汤临港智能科技有限公司 filed Critical 上海商汤临港智能科技有限公司
Publication of WO2022188362A1 publication Critical patent/WO2022188362A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/08Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to drivers or passengers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W50/08Interaction between the driver and the control system
    • B60W50/14Means for informing the driver, warning the driver or prompting a driver intervention
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2520/00Input parameters relating to overall vehicle dynamics
    • B60W2520/10Longitudinal speed
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2540/00Input parameters relating to occupants
    • B60W2540/229Attention level, e.g. attentive to driving, reading or sleeping

Landscapes

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

Abstract

A distraction reminding method, comprising: obtaining the traveling speed of a vehicle; when the starting of a distraction detection function is determined according to the traveling speed of the vehicle, obtaining a video frame acquired for a driver of the vehicle; determining a driving state of the driver on the basis of the video frame of the driver and the traveling speed; and when it is determined that the driving state of the driver is a distracted driving state, generating distraction reminding information. Further disclosed are a distraction reminding apparatus, an electronic device, a computer-readable storage medium, and a computer program product.

Description

分心提醒方法及装置、电子设备和存储介质Distraction reminder method and device, electronic device and storage medium
本公开要求在2021年3月12日提交中国专利局、申请号为CN202110268977.1、申请名称为“分心提醒方法及装置、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of the Chinese patent application with the application number CN202110268977.1 and the application title "Distraction reminder method and device, electronic device and storage medium" filed with the Chinese Patent Office on March 12, 2021, the entire contents of which are Incorporated in this disclosure by reference.
技术领域technical field
本公开涉及智能驾驶技术领域,尤其涉及一种分心提醒方法及装置、电子设备和存储介质。The present disclosure relates to the technical field of intelligent driving, and in particular, to a distraction reminder method and device, an electronic device and a storage medium.
背景技术Background technique
随着智能驾驶技术的快速发展,越来越多的车辆上设置有智能驾驶系统。智能驾驶技术主要包括自动驾驶和辅助驾驶两部分,其中,辅助驾驶可以辅助用户进行安全驾驶,例如,可以在用户疲劳或分心时进行提醒,从而减少交通事故的发生。With the rapid development of intelligent driving technology, more and more vehicles are equipped with intelligent driving systems. Intelligent driving technology mainly includes two parts: automatic driving and assisted driving. Among them, assisted driving can assist users to drive safely. For example, it can remind users when they are tired or distracted, thereby reducing the occurrence of traffic accidents.
分心检测系统可以在驾驶过程中,识别出用户的分心行为。分心行为可以理解为用户注意力不在驾驶上的行为,例如,在驾驶状态下找东西、看窗外的风景、接打电话、喝水等行为,都可以认为是分心行为。The distraction detection system can identify the user's distracted behavior while driving. Distracted behaviors can be understood as behaviors that the user does not pay attention to while driving. For example, behaviors such as looking for things while driving, looking at the scenery outside the window, answering calls, drinking water, etc., can be considered distracting behaviors.
发明内容SUMMARY OF THE INVENTION
本公开提出了一种分心提醒技术方案。The present disclosure provides a technical solution for distraction reminder.
根据本公开的一方面,提供了一种分心提醒方法,包括:According to an aspect of the present disclosure, a distraction reminder method is provided, comprising:
获取车辆的行驶速度;在根据所述车辆的行驶速度确定启动分心检测功能的情况下,获取针对所述车辆的驾驶员采集的视频帧;基于所述驾驶员的视频帧和所述行驶速度,确定所述驾驶员的驾驶状态;在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,生成分心提醒信息。Acquire the driving speed of the vehicle; in the case of determining to activate the distraction detection function according to the driving speed of the vehicle, acquire the video frames collected for the driver of the vehicle; based on the video frames of the driver and the driving speed , determine the driving state of the driver; in the case that the driving state of the driver is determined to be a distracted driving state, generate distraction reminder information.
在一个或多个可能的实现方式中,所述方法还包括:在所述车辆的行驶速度大于或等于预设的启动车速的情况下,启动分心检测功能;在所述车辆的行驶速度小于所述启动车速的情况下,关闭分心检测功能。In one or more possible implementation manners, the method further includes: in the case that the running speed of the vehicle is greater than or equal to a preset starting vehicle speed, activating a distraction detection function; when the running speed of the vehicle is less than or equal to In the case of the starting vehicle speed, the distraction detection function is turned off.
在一个或多个可能的实现方式中,所述基于所述驾驶员的视频帧和所述行驶速度,确定所述驾驶员的驾驶状态,包括:基于所述驾驶员的视频帧检测所述驾驶员的头部偏转角和/或视线偏转角;基于所述头部偏转角和/或视线偏转角、以及所述行驶速度,确定所述驾驶员的驾驶状态。In one or more possible implementation manners, the determining the driving state of the driver based on the video frame of the driver and the driving speed includes: detecting the driving based on the video frame of the driver the head deflection angle and/or the sight deflection angle of the driver; and the driving state of the driver is determined based on the head deflection angle and/or the sight deflection angle and the driving speed.
在一个或多个可能的实现方式中,所述基于所述头部偏转角和/或视线偏转角、以及所述行驶速度,确定所述驾驶员的驾驶状态,包括:获取所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值;响应于所述头部偏转角达到所述行驶速度对应的头部偏转角安全阈值和/或所述视线偏转角达到所述视线偏转角安全阈值,确定所述驾驶员 处于分心驾驶状态。In one or more possible implementation manners, the determining the driving state of the driver based on the head deflection angle and/or the line of sight deflection angle and the driving speed includes: acquiring the corresponding driving speed The head deflection angle safety threshold and the sight deflection angle safety threshold; in response to the head deflection angle reaching the head deflection angle safety threshold corresponding to the driving speed and/or the sight deflection angle reaching the sight deflection angle safety A threshold value to determine that the driver is in a distracted driving state.
在一个或多个可能的实现方式中,所述头部偏转角安全阈值和/或所述视线偏转角安全阈值基于所述驾驶员在安全驾驶状态下以所述行驶速度驾驶车辆时的头部偏转角和视线偏转角标定。In one or more possible implementations, the head yaw angle safety threshold and/or the line of sight yaw angle safety threshold is based on the driver's head when driving the vehicle at the travel speed in a safe driving state Deflection angle and line-of-sight deflection angle calibration.
在一个或多个可能的实现方式中,所述方法还包括:对所述视频帧进行人脸识别,确定所述驾驶员的身份信息;所述获取所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值,包括:获取所述驾驶员的身份信息关联的、与所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值。In one or more possible implementation manners, the method further includes: performing face recognition on the video frame to determine the driver's identity information; acquiring the safety of the head deflection angle corresponding to the driving speed The threshold value and the safety threshold of the line of sight deflection angle include: obtaining the safety threshold of the head deflection angle and the safety threshold of the line of sight deflection angle and corresponding to the driving speed, which are associated with the driver's identity information.
在一个或多个可能的实现方式中,所述获取针对所述车辆的驾驶员采集的视频帧,包括:基于所述车辆的行驶速度,确定帧采样率;基于所述帧采样率对所述车辆的驾驶员的视频进行帧采样,获取针对所述车辆的驾驶员采集的视频帧。In one or more possible implementation manners, the acquiring the video frames collected for the driver of the vehicle includes: determining a frame sampling rate based on the driving speed of the vehicle; Frame sampling is performed on the video of the driver of the vehicle to obtain video frames collected for the driver of the vehicle.
在一个或多个可能的实现方式中,所述基于所述驾驶员的视频帧检测所述驾驶员的头部偏转角和/或视线偏转角,包括:对所述驾驶员的视频帧进行关键点检测,确定所述视频帧的人脸区域包括的至少一个关键点;基于所述人脸区域包括的至少一个关键点,确定所述驾驶员的头部偏转角和/或视线偏转角。In one or more possible implementation manners, the detecting the head deflection angle and/or the sight deflection angle of the driver based on the video frame of the driver includes: keying the video frame of the driver Point detection, determining at least one key point included in the face area of the video frame; determining the driver's head deflection angle and/or line of sight deflection angle based on the at least one key point included in the face area.
在一个或多个可能的实现方式中,所述在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,生成分心提醒信息,包括:在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,确定所述驾驶员在所述分心驾驶状态下的持续时间;在所述持续时间达到预设的时间阈值的情况下,生成分心提醒信息。In one or more possible implementation manners, the generating distraction reminder information when it is determined that the driving state of the driver is a distracted driving state includes: determining that the driving state of the driver is a distracted driving state. In the case of a distracted driving state, the duration of the driver in the distracted driving state is determined; when the duration reaches a preset time threshold, distraction reminder information is generated.
在一个或多个可能的实现方式中,所述方法还包括:根据所述车辆的行驶速度确定所述时间阈值。In one or more possible implementations, the method further comprises: determining the time threshold according to the traveling speed of the vehicle.
根据本公开的一方面,提供了一种分心提醒装置,包括:According to an aspect of the present disclosure, a distraction reminder device is provided, comprising:
第一获取模块,用于获取车辆的行驶速度;a first obtaining module, used for obtaining the driving speed of the vehicle;
第二获取模块,用于在根据所述车辆的行驶速度确定启动分心检测功能的情况下,获取针对所述车辆的驾驶员采集的视频帧;a second acquisition module, configured to acquire video frames collected for the driver of the vehicle when the distraction detection function is determined to be activated according to the driving speed of the vehicle;
确定模块,用于基于所述驾驶员的视频帧和所述行驶速度,确定所述驾驶员的驾驶状态;a determining module for determining the driving state of the driver based on the video frame of the driver and the driving speed;
生成模块,用于在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,生成分心提醒信息。A generating module, configured to generate distraction reminder information when it is determined that the driving state of the driver is a distracted driving state.
在一个或多个可能的实现方式中,所述装置还包括:启动模块,用于在所述车辆的行驶速度大于或等于预设的启动车速的情况下,启动分心检测功能;在所述车辆的行驶速度小于所述启动车速的情况下,关闭分心检测功能。In one or more possible implementation manners, the apparatus further includes: a start module, configured to start a distraction detection function when the driving speed of the vehicle is greater than or equal to a preset start speed; When the running speed of the vehicle is lower than the starting vehicle speed, the distraction detection function is turned off.
在一个或多个可能的实现方式中,所述确定模块,用于基于所述驾驶员的视频帧检测所述驾驶员的头部偏转角和/或视线偏转角;基于所述头部偏转角和/或视线偏转角、以及所述行驶速度,确定所述驾驶员的驾驶状态。In one or more possible implementation manners, the determining module is configured to detect the head deflection angle and/or the line of sight deflection angle of the driver based on the video frame of the driver; based on the head deflection angle and/or the deflection angle of the line of sight, and the driving speed, to determine the driving state of the driver.
在一个或多个可能的实现方式中,所述确定模块,用于获取所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值;响应于所述头部偏转角达到所述行驶速度对应的头部偏转角安全阈值和/或所述视线偏转角达到所述视线偏转角安全阈值,确定所述驾驶员处于分心驾驶状态。In one or more possible implementations, the determining module is configured to acquire a head deflection angle safety threshold and a line of sight deflection angle safety threshold corresponding to the traveling speed; in response to the head deflection angle reaching the travel speed When the head deflection angle safety threshold corresponding to the speed and/or the line of sight deflection angle reaches the line of sight deflection angle safety threshold, it is determined that the driver is in a distracted driving state.
在一个或多个可能的实现方式中,所述头部偏转角安全阈值和/或所述视线偏转角安全阈值基于所述驾驶员在安全驾驶状态下以所述行驶速度驾驶车辆时的头部偏转角和视线偏转角标定。In one or more possible implementations, the head yaw angle safety threshold and/or the line of sight yaw angle safety threshold is based on the driver's head when driving the vehicle at the travel speed in a safe driving state Deflection angle and line-of-sight deflection angle calibration.
在一个或多个可能的实现方式中,所述装置还包括:识别模块,用于对所述视频帧进行人脸识别,确定所述驾驶员的身份信息;所述确定模块,用于获取所述驾驶员的身份信息关联的、与所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值。In one or more possible implementation manners, the apparatus further includes: an identification module, configured to perform face recognition on the video frame, and determine the driver's identity information; the determination module, configured to obtain the The head deflection angle safety threshold and the sight deflection angle safety threshold corresponding to the driving speed are associated with the driver's identity information.
在一个或多个可能的实现方式中,所述第二获取模块,用于基于所述车辆的行驶速度,确定帧采样率;基于所述帧采样率对所述车辆的驾驶员的视频进行帧采样,获取针对所述车辆的驾驶员采集的视频帧。In one or more possible implementation manners, the second obtaining module is configured to determine a frame sampling rate based on the driving speed of the vehicle; and frame the video of the driver of the vehicle based on the frame sampling rate Sampling to obtain video frames collected for the driver of the vehicle.
在一个或多个可能的实现方式中,所述确定模块,用于对所述驾驶员的视频帧进行关键点检测,确定所述视频帧的人脸区域包括的至少一个关键点;基于所述人脸区域包括的至少一个关键点,确定所述驾驶员的头部偏转角和/或视线偏转角。In one or more possible implementations, the determining module is configured to perform key point detection on the video frame of the driver, and determine at least one key point included in the face area of the video frame; based on the At least one key point included in the face area determines the head deflection angle and/or the sight deflection angle of the driver.
在一个或多个可能的实现方式中,所述生成模块,用于在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,确定所述驾驶员在所述分心驾驶状态下的持续时间;在所述持续时间达到预设的时间阈值的情况下,生成分心提醒信息。In one or more possible implementation manners, the generating module is configured to determine, in the case of determining that the driving state of the driver is a distracted driving state, Duration; when the duration reaches a preset time threshold, generate distraction reminder information.
在一个或多个可能的实现方式中,所述生成模块,还用于根据所述车辆的行驶速度确定所述时间阈值。In one or more possible implementations, the generating module is further configured to determine the time threshold according to the traveling speed of the vehicle.
根据本公开的一方面,提供了一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。According to an aspect of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
根据本公开的一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。According to an aspect of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the above method when executed by a processor.
根据本公开的一方面,提供了一种计算机程序产品,包括计算机可读代码或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行用于实现上述方法。According to an aspect of the present disclosure, a computer program product is provided, comprising computer-readable codes or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are processed in an electronic device When running in the device, the processor in the electronic device executes the method for implementing the above method.
在本公开实施例中,可以获取车辆当前的行驶速度,在根据车辆的行驶速度确定启动分心检测功能的情况下,获取针对车辆的驾驶员采集的视频帧,基于驾驶员的视频帧和车辆的行驶速度,进一步可以确定驾驶员的驾驶状态,在确定驾驶员的驾驶状态是分心驾驶状态的情况下,生成分心提醒信息,从而可以将车辆的行驶速度作为确定驾驶员的驾驶状态的考虑因素,从而提高分心提醒的稳定性,提高驾驶员的用户体验。In the embodiment of the present disclosure, the current driving speed of the vehicle may be acquired, and in the case where the distraction detection function is determined to be activated according to the driving speed of the vehicle, video frames collected for the driver of the vehicle may be acquired, based on the driver's video frame and the vehicle's driving speed. The driving speed of the driver can further determine the driving state of the driver, and when it is determined that the driving state of the driver is a distracted driving state, a distraction reminder message is generated, so that the driving speed of the vehicle can be used as the driving state of the driver. Consider factors to improve the stability of distraction alerts and improve the driver's user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the technical solutions of the present disclosure.
图1示出根据本公开实施例的分心提醒方法的流程图。FIG. 1 shows a flowchart of a distraction reminder method according to an embodiment of the present disclosure.
图2示出根据本公开实施例的分心检测系统一示例的框图。2 illustrates a block diagram of an example of a distraction detection system according to an embodiment of the present disclosure.
图3示出根据本公开实施例的分心提醒方法一示例的流程图。FIG. 3 shows a flowchart of an example of a distraction reminder method according to an embodiment of the present disclosure.
图4示出根据本公开实施例的头部偏转角的示意图。FIG. 4 shows a schematic diagram of head deflection angle according to an embodiment of the present disclosure.
图5示出根据本公开实施例的分心提醒装置的框图。FIG. 5 shows a block diagram of a distraction reminder device according to an embodiment of the present disclosure.
图6示出根据本公开实施例的一种电子设备示例的框图。FIG. 6 shows a block diagram of an example of an electronic device according to an embodiment of the present disclosure.
图7示出根据本公开实施例的一种电子设备示例的框图。FIG. 7 shows a block diagram of an example of an electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures denote elements that have the same or similar functions. While various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases. In addition, the term "at least one" herein refers to any combination of any one of the plurality or at least two of the plurality, for example, including at least one of A, B, and C, and may mean including from A, B, and C. Any one or more elements selected from the set of B and C.
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开 的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are set forth in the following detailed description. It will be understood by those skilled in the art that the present disclosure may be practiced without certain specific details. In some instances, methods, means, components and circuits well known to those skilled in the art have not been described in detail so as not to obscure the subject matter of the present disclosure.
本公开实施例提供的分心提醒方案,可以应用于自动驾驶或辅助驾驶系统、城市交通、交通出行等场景中。例如,在车流量较大的城市交通中,可以通过本公开实施例提供的分心提醒方案,可以基于驾驶员的视频帧和车辆的行驶速度,确定驾驶员的驾驶状态,从而可以在确定驾驶员分心驾驶的情况下,发出提醒,从而辅助驾驶,提高车辆行驶的安全性。通过将车辆的行驶速度作为启动分心提醒的一个考虑因素,可以提高分心提醒的稳定性,减少由于误触发而发出提醒给用户带来的负面体验和对驾驶员的干扰。The distraction reminder solution provided by the embodiments of the present disclosure can be applied to scenarios such as automatic driving or assisted driving systems, urban traffic, and traffic travel. For example, in urban traffic with large traffic flow, the distraction reminder solution provided by the embodiment of the present disclosure can be used to determine the driving state of the driver based on the driver's video frame and the driving speed of the vehicle, so that the driving state can be determined when driving In the case of distracted driving, a reminder is issued to assist driving and improve the safety of the vehicle. By taking the driving speed of the vehicle as a consideration factor for initiating the distraction reminder, the stability of the distraction reminder can be improved, and the negative experience and interference to the driver caused by the reminder due to false triggering can be reduced.
本公开实施例提供的分心提醒方法可以由终端设备、服务器或其它类型的电子设备执行,其中,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等。在一些可能的实现方式中,该分心提醒方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。或者,可通过服务器执行所述方法。The distraction reminder method provided by the embodiments of the present disclosure may be executed by a terminal device, a server, or other types of electronic devices, where the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a cellular phone, or a cordless phone. , Personal Digital Assistant (PDA), handheld devices, computing devices, in-vehicle devices, wearable devices, etc. In some possible implementations, the distraction reminder method may be implemented by the processor invoking computer-readable instructions stored in the memory. Alternatively, the method may be performed by a server.
图1示出根据本公开实施例的分心提醒方法的流程图,如图1所示,所述分心提醒方法包括:FIG. 1 shows a flowchart of a distraction reminder method according to an embodiment of the present disclosure. As shown in FIG. 1 , the distraction reminder method includes:
步骤S11,获取车辆的行驶速度。In step S11, the running speed of the vehicle is obtained.
在本公开实施例中,车辆可以配置有分心检测系统,分心检测系统可以实时获取车辆的行驶速度,或者,以一定的时间间隔为周期,周期性地获取车辆的行驶速度,例如,以1s、2s等时间间隔为周期,周期性地获取车辆的行驶速度。这里,可以通过车载的全球定位系统(Global Positioning System,GPS)或者车内通讯总线(比如控制器局域网络(Controller Area Network,CAN)总线)获取车辆当前的行驶速度。在一些实现方式中,还可以获取车辆的行驶一定距离的行驶时间,然后根据行驶一定距离和行驶时间的比值,计算车辆的行驶速度。In the embodiment of the present disclosure, the vehicle may be configured with a distraction detection system, and the distraction detection system may acquire the driving speed of the vehicle in real time, or periodically acquire the driving speed of the vehicle at a certain time interval, for example, with Time intervals such as 1s and 2s are cycles, and the running speed of the vehicle is obtained periodically. Here, the current running speed of the vehicle can be obtained through a vehicle-mounted Global Positioning System (Global Positioning System, GPS) or an in-vehicle communication bus (such as a Controller Area Network (CAN) bus). In some implementation manners, the travel time of the vehicle for a certain distance may also be obtained, and then the travel speed of the vehicle is calculated according to the ratio of the travel distance and the travel time.
步骤S12,在根据所述车辆的行驶速度确定启动分心检测功能的情况下,获取针对所述车辆的驾驶员采集的视频帧。Step S12, in the case that the distraction detection function is activated according to the driving speed of the vehicle, acquire a video frame collected for the driver of the vehicle.
在本公开实施例中,可以根据车辆的行驶速度,判断是否启动车辆的分心检测功能。例如,在车辆的行驶速度不断增大,如车辆加速行驶的时长达到一定时间阈值,可以开启车辆的分心检测功能;在车辆的行驶速度不断减小,如车辆减速行驶的时长达到一定时间阈值,可以关闭车辆的分心检测功能。在根据车辆的行驶速度确定启动分心检测功能的情况下,可以获取针对车辆的驾驶员的人脸采集的视频帧。In the embodiment of the present disclosure, whether to activate the distraction detection function of the vehicle may be determined according to the driving speed of the vehicle. For example, when the driving speed of the vehicle continues to increase, such as the time when the vehicle accelerates reaches a certain time threshold, the distraction detection function of the vehicle can be turned on; when the driving speed of the vehicle continues to decrease, such as the time when the vehicle slows down reaches a certain time threshold , you can turn off distraction detection in your vehicle. In the case where it is determined to activate the distraction detection function according to the driving speed of the vehicle, a video frame collected for the face of the driver of the vehicle may be acquired.
在一些实现方式中,可以在车辆的行驶速度大于或等于预设的启动车速的情况下,启动分心检测功能,例如,在检测到当前车辆的行驶速度大于或等于10km/h时,可以自 动触发分心检测功能。在车辆的行驶速度小于启动车速的情况下,关闭分心检测功能,例如,在车辆停止或行驶速度小于10km/h时,可以关闭分心检测功能,从而可以减少误触发的分心警告现象,例如,在用户停车聊天时,基于单纯的视觉检测可能会触发分心警告,这会给驾驶员带来不好的用户体验,此时在车辆的行驶速度小于启动车速的情况下,可关闭分心检测功能。In some implementations, the distraction detection function can be activated when the vehicle's driving speed is greater than or equal to a preset start-up speed. Trigger distraction detection. When the driving speed of the vehicle is lower than the starting speed, the distraction detection function can be turned off. For example, when the vehicle stops or the driving speed is less than 10km/h, the distraction detection function can be turned off, thereby reducing the phenomenon of falsely triggered distraction warnings. For example, when the user parks and chats, a distraction warning may be triggered based on pure visual detection, which will bring a bad user experience to the driver. Heart detection function.
这里,车辆上可以安装有车载像头或相机等摄像装置,可以获取车载摄像头或相机等摄像装置针对驾驶员的人脸采集的视频中的视频帧。在一些实现方式中,在获取驾驶员的视频帧的情况下,可以以一定的时间间隔或者一定的帧数间隔抽取视频中的视频帧。例如,在根据当前视频帧的上一个视频帧确定驾驶员的驾驶状态是安全驾驶状态的情况下,可以以第一时间间隔或者第一帧数间隔抽取视频中的视频帧,得到当前视频帧。在根据当前视频帧的上一个视频帧确定驾驶员的驾驶状态是分心驾驶状态的情况下,可以以第二时间间隔或者第二帧数间隔抽取视频中的视频帧,得到当前视频帧。其中,第一时间间隔可以小于第二时间间隔,第一帧数间隔可以小于第二帧数间隔,从而在驾驶员分心驾驶的情况下,可以提高视频帧抽取的频率,从而提高分心提醒的频率。Here, a camera device such as an in-vehicle camera or a camera may be installed on the vehicle, and video frames in the video collected by the camera device such as the in-vehicle camera or camera for the driver's face may be acquired. In some implementations, in the case of acquiring the video frames of the driver, the video frames in the video may be extracted at a certain time interval or a certain frame number interval. For example, when it is determined that the driving state of the driver is a safe driving state according to the previous video frame of the current video frame, the video frames in the video can be extracted at the first time interval or the first frame number interval to obtain the current video frame. When it is determined that the driver's driving state is a distracted driving state according to the previous video frame of the current video frame, video frames in the video may be extracted at a second time interval or a second frame interval to obtain the current video frame. The first time interval may be smaller than the second time interval, and the first frame interval may be smaller than the second frame interval, so that when the driver is distracted driving, the frequency of video frame extraction can be increased, thereby improving distraction reminders Frequency of.
一些实现方式中,还可以基于车辆的行驶速度,确定帧采样率,进一步基于帧采样率对车辆的驾驶员的视频进行帧采样,获取针对所述车辆的驾驶员采集的视频帧。举例来说,可以预先设置车辆的行驶速度与帧采样率的对应关系,在车辆行驶时,可以根据车辆的行驶速度对应的帧采样率,对车辆的驾驶员的视频进行帧采样。如在行驶速度小于一定速度时,可以以第一时间间隔或者第一帧数间隔(第一帧采样率)抽取视频中的视频帧,在行驶速度大于或等于一定速度时,可以以第二时间间隔或者第二帧数间隔(第二帧采样率)抽取视频中的视频帧,第二帧采样率大于第一帧采样率,从而在车速较高的情况下,可以提高分心检测的频率,进一步提高驾驶安全。In some implementations, the frame sampling rate may also be determined based on the driving speed of the vehicle, and further frame sampling is performed on the video of the driver of the vehicle based on the frame sampling rate to obtain video frames collected for the driver of the vehicle. For example, the correspondence between the driving speed of the vehicle and the frame sampling rate may be preset, and when the vehicle is driving, frame sampling of the video of the driver of the vehicle may be performed according to the frame sampling rate corresponding to the driving speed of the vehicle. For example, when the driving speed is less than a certain speed, the video frames in the video can be extracted at the first time interval or the first frame number interval (the first frame sampling rate). When the driving speed is greater than or equal to a certain speed, the second time interval can be used. The interval or the second frame interval (second frame sampling rate) extracts video frames in the video, and the second frame sampling rate is greater than the first frame sampling rate, so that the frequency of distraction detection can be increased when the vehicle speed is high. Further improve driving safety.
步骤S13,基于所述驾驶员的视频帧和所述行驶速度,确定所述驾驶员的驾驶状态。Step S13, determining the driving state of the driver based on the video frame of the driver and the driving speed.
在本公开实施例中,可以对获取的视频帧进行人脸检测,得到人脸检测的检测结果。然后可以根据检测结果以及车辆的行驶速度确定当前驾驶员的驾驶状态,例如,可以根据检测结果和行驶速度,判断驾驶员的头部发生偏离或者旋转的角度是否达到该行驶速度对应的角度阈值,如果判断驾驶员的头部偏离或者旋转的角度达到该行驶速度对应的角度阈值,可以确定当前驾驶员的驾驶状态是分心驾驶状态,如果判断驾驶员的头部偏离或者旋转的角度未达到该行驶速度对应的角度阈值,则可以确定当前驾驶员的驾驶状态是安全驾驶状态。In this embodiment of the present disclosure, face detection may be performed on the acquired video frame to obtain a detection result of face detection. Then, the driving state of the current driver can be determined according to the detection result and the driving speed of the vehicle. For example, it can be determined whether the deviation or rotation angle of the driver's head reaches the angle threshold corresponding to the driving speed according to the detection result and the driving speed. If it is judged that the driver's head is deviated or the angle of rotation reaches the angle threshold corresponding to the driving speed, it can be determined that the current driving state of the driver is a distracted driving state. The angle threshold corresponding to the driving speed can determine that the current driving state of the driver is a safe driving state.
步骤S14,在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,生成分心提醒信息。Step S14, when it is determined that the driving state of the driver is a distracted driving state, generate distraction reminder information.
在本公开示例中,在确定驾驶员的驾驶状态是分心驾驶状态时,可以生成并发出分心提醒信息,例如,发出提示音、警告等分心提醒信息,从而可以对驾驶员进行提醒。在一些实现方式中,还可以将生成的分心提醒信息发送至其他车载设备,例如,将分心提醒信息发送至警告设备,从而警告设备可以发出警告信息,再例如,将分心提醒信息发送至车速控制设备,从而车速控制设备可以自动控制车辆减速。In an example of the present disclosure, when it is determined that the driver's driving state is a distracted driving state, distraction reminder information may be generated and issued, for example, distraction reminder information such as a prompt tone, warning, etc., may be issued, so as to remind the driver. In some implementations, the generated distraction reminder information can also be sent to other in-vehicle devices, for example, the distraction reminder information is sent to the warning device, so that the warning device can send the warning information, and for example, the distraction reminder information is sent to the vehicle speed control device, so that the vehicle speed control device can automatically control the deceleration of the vehicle.
图2示出根据本公开实施例的分心检测系统的一个示例性框图。分心检测系统可以从摄像装置获取驾驶员的视频帧,通过GPS或者车内通讯总线获取车辆当前的行驶速度。在确定驾驶员的驾驶状态是分心驾驶状态的情况下,可以生成分心提醒信息,并将分心提醒信息发送警报设备或车速控制设备等其他设备。2 illustrates an exemplary block diagram of a distraction detection system according to an embodiment of the present disclosure. The distraction detection system can obtain the video frame of the driver from the camera device, and obtain the current driving speed of the vehicle through GPS or the in-vehicle communication bus. When it is determined that the driver's driving state is a distracted driving state, distraction reminder information can be generated, and the distraction reminder information can be sent to other devices such as an alarm device or a vehicle speed control device.
本公开实施例可以通过将车辆的行驶速度作为分心检测功能的考虑因素,减少分心警报误触发的情况,提高分心提醒的准确率,提高用户体验。The embodiments of the present disclosure can reduce the false triggering of the distraction alarm by taking the driving speed of the vehicle as a consideration factor of the distraction detection function, improve the accuracy of the distraction reminder, and improve the user experience.
在上述步骤S13中,可以基于驾驶员的视频帧和车辆的行驶速度,确定驾驶员的驾驶状态,在一些实现方式中,可以根据驾驶员的视频帧检测驾驶员的头部偏转角和/或视线偏转角,然后基于检测的头部偏转角和/或视线偏转角、以及车辆的行驶速度,确定驾驶员的驾驶状态。举例来说,可以对驾驶员的视频帧进行头部偏转角检测和/或进行视线偏转角检测,例如,可以利用检测算法、检测神经网络等对驾驶员的视频帧进行头部偏转角检测和/或进行视线偏转角检测,得到驾驶员的头部偏转角和/或视线偏转角。然后可以将检测得到的头部偏转角和/或视线偏转角与行驶速度对应的安全阈值进行比较,判断检测得到的头部偏转角和/或视线偏转角是否达到行驶速度对应的安全阈值内,在确定检测得到的头部偏转角和/或视线偏转角达到安全阈值的情况下,可以认为驾驶员处于分心驾驶状态,在头部偏转角和/或视线偏转角未达到安全阈值的情况下,可以认为驾驶员处于安全驾驶状态。通过对驾驶员采集的视频帧检测得到的头部偏转角和/或视线偏转角,可以快速确定在当前行驶车速下驾驶员的驾驶状态。In the above step S13, the driving state of the driver may be determined based on the video frame of the driver and the driving speed of the vehicle, and in some implementations, the head deflection angle and/or the head deflection angle of the driver may be detected according to the video frame of the driver and/or The gaze deflection angle is then determined based on the detected head deflection angle and/or gaze deflection angle, and the travel speed of the vehicle to determine the driving state of the driver. For example, head deflection angle detection and/or line-of-sight deflection angle detection may be performed on the video frame of the driver. For example, a detection algorithm, a detection neural network, etc. /or perform line-of-sight deflection angle detection to obtain the driver's head deflection angle and/or line-of-sight deflection angle. Then, the detected head deflection angle and/or the sight deflection angle can be compared with the safety threshold corresponding to the driving speed, and it can be judged whether the detected head deflection angle and/or the sight deflection angle reach the safety threshold corresponding to the driving speed, When it is determined that the detected head deflection angle and/or the sight deflection angle reach the safety threshold, it can be considered that the driver is in a state of distracted driving, and when the head deflection angle and/or the sight deflection angle do not reach the safe threshold , it can be considered that the driver is in a safe driving state. By detecting the head deflection angle and/or the sight deflection angle obtained by the video frames collected by the driver, the driving state of the driver at the current driving speed can be quickly determined.
一些实现方式中,车辆的行驶速度可以对应有相应的安全阈值,可以预先存储车辆的行驶速度对应的安全阈值。安全阈值可以指示在相应的行驶速度下,在安全驾驶状态情况下驾驶员的头部偏转角和/或视线偏转角的上下限,如果驾驶员的头部偏转角和/或视线偏转角超过安全阈值,则可以认为当前的驾驶状态是分心驾驶状态。该安全阈值可以包括头部偏转角安全阈值和视线偏转角安全阈值。在确定驾驶员的驾驶状态时,可以获取当前的行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值,将检测得到的头部偏转角与该行驶速度对应的头部偏转角安全阈值进行比较,并将检测得到的视线偏转角与该行驶速度对应的视线偏转角安全阈值进行比较。响应于检测到的头部偏转角达到行驶速度对应的头部偏转角安全阈值,和/或视线偏转角达到视线偏转角安全阈值,可以 确定驾驶员处于分心驾驶状态。如果检测到的头部偏转角未达到头部偏转角安全阈值,并且检测到的视线偏转角未达到视线偏转角安全阈值的情况下,可以确定驾驶员处于安全驾驶状态。通过将对头部偏转角和/或视线偏转角与安全阈值进行比较,可以快速确定驾驶员的驾驶状态,进而根据驾驶员的驾驶状态,可以辅助用户驾驶,提高车辆行使的安全性。In some implementation manners, the driving speed of the vehicle may correspond to a corresponding safety threshold, and the safety threshold corresponding to the driving speed of the vehicle may be pre-stored. The safety threshold can indicate the upper and lower limits of the driver's head deflection angle and/or line of sight deflection angle under safe driving conditions at the corresponding driving speed, if the driver's head deflection angle and/or line of sight deflection angle exceeds the safety threshold Threshold value, it can be considered that the current driving state is a distracted driving state. The safety threshold may include a head yaw angle safety threshold and a line of sight yaw angle safety threshold. When determining the driving state of the driver, the head deflection angle safety threshold and the sight deflection angle safety threshold corresponding to the current driving speed can be obtained, and the detected head deflection angle and the head deflection angle safety threshold corresponding to the driving speed can be obtained. Compare, and compare the detected sight deflection angle with the sight deflection angle safety threshold corresponding to the driving speed. In response to the detected head deflection angle reaching the head deflection angle safety threshold corresponding to the travel speed, and/or the sight deflection angle reaching the sight deflection angle safe threshold, it may be determined that the driver is in a distracted driving state. If the detected head deflection angle does not reach the head deflection angle safety threshold, and the detected sight deflection angle does not reach the sight deflection angle safety threshold, it may be determined that the driver is in a safe driving state. By comparing the head deflection angle and/or the sight deflection angle with the safety threshold, the driving state of the driver can be quickly determined, and then according to the driving state of the driver, the driving of the user can be assisted and the safety of the vehicle can be improved.
这里,行驶速度与头部偏转角安全阈值之间的对应关系以及行驶速度与视线偏转角安全阈值之间的对应关系,可以是预先设定的。不同的行驶速度所对应的头部偏转角安全阈值和视线偏转角安全阈值可以不同,行驶速度越大,所对应的头部偏转角安全阈值和视线偏转角安全阈值越小,即可以理解为,车辆的行驶速度越大,要求安全驾驶状态下驾驶员的头部偏转角和/或视线偏转角越小,从而可以根据车辆的行驶速度对应的头部偏转角安全阈值,对驾驶员的头部偏转角进行合适的约束,根据车辆的行驶速度对应的视线偏转角安全阈值对视线偏转角进行合适的约束,辅助驾驶员安全驾驶。Here, the correspondence between the traveling speed and the head deflection angle safety threshold and the correspondence between the traveling speed and the sight deflection angle safety threshold may be preset. The safety threshold of head deflection angle and the safety threshold of sight deflection angle corresponding to different driving speeds can be different. The higher the driving speed of the vehicle, the smaller the head deflection angle and/or the sight deflection angle of the driver in the safe driving state, so that the head deflection angle of the driver can be adjusted according to the safety threshold of the head deflection angle corresponding to the driving speed of the vehicle. The deflection angle is appropriately constrained, and the line of sight deflection angle is appropriately constrained according to the safety threshold of the line of sight deflection angle corresponding to the driving speed of the vehicle to assist the driver to drive safely.
在一些实现方式中,行驶速度对应的头部偏转角安全阈值和/或视线偏转角安全阈值,可以是基于驾驶员在安全驾驶状态下以该行驶速度驾驶车辆时的头部偏转角和视线偏转角标定的。举例来说,可以获取针对驾驶员采集的预设时长(如3分钟)的历史视频,历史视频中该驾驶员在安全驾驶状态下以一定的行驶速度驾驶车辆。检测历史视频中的视频帧中驾驶员的头部偏转角和视线偏转角,统计在该行驶速度下,处于安全驾驶状态的驾驶员的头部偏转角和视线偏转角,然后可以将统计到的头部偏转角的最大值或平均值标定为该行驶速度对应的头部偏转角安全阈值,将统计到的视线偏转角的最大值或平均值标定为该行驶速度对应的视线偏转角安全阈值。这样,可以通过驾驶员在安全驾驶状态下以一定行驶速度驾驶车辆时的头部偏转角和视线偏转角,准确地标定该行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值,使分心检查更加准确。In some implementations, the head deflection angle safety threshold and/or the line of sight deflection angle safety threshold corresponding to the driving speed may be based on the head deflection angle and line of sight deflection of the driver when the driver drives the vehicle at the driving speed in a safe driving state Angled. For example, a historical video of a preset duration (eg, 3 minutes) collected for a driver may be acquired, and in the historical video, the driver drives the vehicle at a certain speed in a safe driving state. Detect the head deflection angle and sight deflection angle of the driver in the video frame in the historical video, and count the head deflection angle and sight deflection angle of the driver in a safe driving state at this driving speed. The maximum or average value of the head deflection angle is demarcated as the safety threshold of the head deflection angle corresponding to the driving speed, and the maximum or average value of the statistical sight deflection angle is demarcated as the safety threshold of the sight deflection angle corresponding to the driving speed. In this way, through the head deflection angle and the sight deflection angle when the driver drives the vehicle at a certain speed in a safe driving state, the head deflection angle safety threshold and the sight deflection angle safety threshold corresponding to the driving speed can be accurately calibrated, so that the safety threshold of the head deflection angle and the sight deflection angle can be accurately calibrated. Distraction checks are more accurate.
在一些实现方式中,行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值还可以与驾驶员的身份信息相关联,即不同驾驶员对应的头部偏转角安全阈值和视线偏转角安全阈值可以不同。在获取行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值的情况下,还可以对针对驾驶员采集的视频帧进行人脸识别,确定驾驶员的身份信息,例如,可以使用一些人脸识别算法、神经网络等对视频帧进行人脸识别,确定驾驶员的身份标识号(Identity Document,ID)、驾驶证号、姓名等身份信息,然后获取与驾驶员的身份信息关联的、且与当前车辆的行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值。这样,可以通过人脸识别,为驾驶员匹配对应的头部偏转角安全阈值和视线偏转角安全阈值,可使头部偏转角安全阈值和视线偏转角安全阈值自动调整为适用于当前驾驶员的安全阈值,实现安全阈值的个性化设置,满足不同驾驶员由于个体差异带来 的不同需求,如不同驾驶员的身高、性别、驾驶习惯等个体差异可能会导致驾驶员关联的安全阈值略有不同,实现更灵活的分心提醒。In some implementations, the head deflection angle safety threshold and the sight deflection angle safety threshold corresponding to the driving speed may also be associated with the driver's identity information, that is, the head deflection angle safety threshold and the sight deflection angle safety corresponding to different drivers Thresholds can be different. In the case of obtaining the head deflection angle safety threshold and the sight deflection angle safety threshold corresponding to the driving speed, face recognition can also be performed on the video frames collected for the driver to determine the driver's identity information. For example, some people can be used. Face recognition algorithm, neural network, etc. perform face recognition on video frames, determine the driver's identity document (ID), driver's license number, name and other identity information, and then obtain the driver's identity information associated with the driver's identity information. The head deflection angle safety threshold and the sight deflection angle safety threshold corresponding to the current speed of the vehicle. In this way, the corresponding head deflection angle safety threshold and sight deflection angle safety threshold can be matched for the driver through face recognition, so that the head deflection angle safety threshold and the sight deflection angle safety threshold can be automatically adjusted to suit the current driver. Safety threshold, realize the personalized setting of safety threshold to meet the different needs of different drivers due to individual differences, such as the height, gender, driving habits and other individual differences of different drivers may lead to slightly different safety thresholds associated with drivers , for more flexible distraction reminders.
下面通过一个示例对本公开提供的分心提醒方案进行说明。图3示出根据本公开实施例的分心提醒方法一示例的流程图,包括:The distraction reminder solution provided by the present disclosure will be described below through an example. 3 shows a flowchart of an example of a distraction reminder method according to an embodiment of the present disclosure, including:
步骤S201,在根据车辆的行驶速度确定启动分心检测功能的情况下,获取针对车辆的驾驶员采集的视频帧。Step S201 , in the case that the distraction detection function is activated according to the driving speed of the vehicle, acquire a video frame collected for the driver of the vehicle.
步骤S202,对视频帧进行头部偏转角检测,得到驾驶员的头部偏转角。Step S202, performing head deflection angle detection on the video frame to obtain the driver's head deflection angle.
步骤S203,对视频帧进行视线偏转角检测,得到驾驶员的视线偏转角。In step S203, the line of sight deflection angle is detected on the video frame to obtain the line of sight deflection angle of the driver.
步骤S204,判断驾驶员的头部偏转角是否达到行驶速度对应的头部偏转角安全阈值,以及判断视线偏转角是否达到行驶速度对应的视线偏转角安全阈值;Step S204, judging whether the head deflection angle of the driver reaches the safety threshold of the head deflection angle corresponding to the driving speed, and judging whether the sight deflection angle reaches the sight deflection angle safety threshold corresponding to the driving speed;
在驾驶员的头部偏转角达到头部偏转角安全阈值或者视线偏转角达到视线偏转角安全阈值的情况下,执行步骤S205;否者执行步骤S201。When the head deflection angle of the driver reaches the head deflection angle safety threshold or the sight deflection angle reaches the sight deflection angle safety threshold, step S205 is performed; otherwise, step S201 is performed.
步骤S205,生成分心提醒信息。Step S205, generating distraction reminder information.
通过本示例提供的分心提醒方案,可以在启动分心检测功能的情况下,通过驾驶员的头部偏转角和/或视线偏转角以及车辆的行驶速度,可确定驾驶员的驾驶状态,在确定驾驶员处于分心驾驶状态的情况下可以生成分心提醒信息,以提醒驾驶员恢复安全驾驶状态。Through the distraction reminder solution provided in this example, when the distraction detection function is activated, the driver's driving state can be determined through the driver's head deflection angle and/or line of sight deflection angle and the driving speed of the vehicle. When it is determined that the driver is in a distracted driving state, a distraction reminder message can be generated to remind the driver to return to a safe driving state.
在一些实现方式中,在基于驾驶员的视频帧检测驾驶员的头部偏转角和/或视线偏转角时,可以对驾驶员的视频帧进行关键点检测,确定视频帧的人脸区域包括的至少一个关键点,再基于人脸区域包括的至少一个关键点,可以确定驾驶员的头部偏转角和/或视线偏转角。这里,可以利用一些检测算法、神经网络等对视频帧进行关键点检测,确定视频帧中人脸所在的人脸区域,在确定人脸区域之后,可以识别人脸区域包括的一个或多个关键点。这里,关键点可以是人脸的关键点,例如,人脸区域包括的眉毛、眼睛、鼻子、嘴巴、脸部轮廓等均可以是关键点。In some implementations, when detecting the driver's head deflection angle and/or the line of sight deflection angle based on the driver's video frame, key point detection may be performed on the driver's video frame to determine the face area of the video frame. At least one key point, and based on the at least one key point included in the face area, the driver's head deflection angle and/or line of sight deflection angle may be determined. Here, some detection algorithms, neural networks, etc. can be used to detect key points in the video frame to determine the face area where the face in the video frame is located. After the face area is determined, one or more key points included in the face area can be identified. point. Here, the key points may be key points of the human face, for example, the eyebrows, eyes, nose, mouth, facial contours, etc. included in the face region may all be key points.
对于头部偏转角而言,可以根据人脸区域包括的至少一个关键点的位置信息,确定驾驶员的头部偏转角,例如,可以根据视频帧中的像素点和空间坐标点的映射关系、以及至少一个关键点的位置信息,确定至少一个关键点在三维空间中的三维坐标,即可以理解为,将视频帧中二维的关键点映射到三维空间中,得到关键点的三维坐标。进一步根据至少一个关键点的三维坐标计算驾驶员的头部偏转角,如将至少一个关键点的三维坐标与预设的基准坐标进行比对,可以确定至少一个关键点偏离基准坐标的角度。头部偏转角可以通过以下三个参数进行表示:航向角(yaw)、俯仰角(pitch)和横滚角(roll)。图4示出根据本公开实施例的头部偏转角的示意图。其中,yaw可以为人脸相对于摄像装 置的水平方向的转角,即,以y轴为旋转轴旋转,负数表示向左侧旋转;pitch可以为人脸相对于摄像装置的竖直方向的转角,即,以x轴为旋转轴旋转,负数代表向上方旋转;roll可以为人脸相对于摄像装置的垂直方向的转角,即,以z轴为旋转轴旋转,负数代表向右下方旋转。For the head deflection angle, the driver's head deflection angle can be determined according to the position information of at least one key point included in the face area. and the position information of at least one key point, to determine the three-dimensional coordinates of at least one key point in three-dimensional space, that is, it can be understood as mapping two-dimensional key points in the video frame into three-dimensional space to obtain the three-dimensional coordinates of the key points. The driver's head deflection angle is further calculated according to the three-dimensional coordinates of the at least one key point. For example, by comparing the three-dimensional coordinates of the at least one key point with the preset reference coordinates, the angle at which the at least one key point deviates from the reference coordinates can be determined. The head yaw angle can be represented by the following three parameters: the yaw angle (yaw), the pitch angle (pitch) and the roll angle (roll). FIG. 4 shows a schematic diagram of head deflection angle according to an embodiment of the present disclosure. Wherein, yaw can be the angle of rotation of the face relative to the horizontal direction of the camera, that is, the y-axis is rotated as the rotation axis, and a negative number represents rotation to the left; pitch can be the angle of the face relative to the vertical direction of the camera, that is, Rotate with the x-axis as the rotation axis, and a negative number represents rotation upward; roll can be the angle of rotation of the face relative to the vertical direction of the camera device, that is, rotation with the z-axis as the rotation axis, and a negative number represents rotation downward to the right.
对于视线偏转角而言,可以截取人脸区域中的人眼区域,针对人眼区域,可以确定人眼区域包括的眼球关键点以及眼眶边缘关键点的位置信息,进一步可以将眼球关键点以及眼眶边缘关键点的位置信息与标准视线偏转角的人眼关键点的位置信息进行比对,根据比对结果可以确定驾驶员的视线偏转角。For the sight deflection angle, the human eye area in the face area can be intercepted. For the human eye area, the eyeball key points included in the human eye area and the position information of the orbital edge keypoints can be determined. The position information of the edge key point is compared with the position information of the human eye key point of the standard sight deflection angle, and the driver's sight deflection angle can be determined according to the comparison result.
本实现方式中,通过对视频帧进行关键点检测,可确定驾驶员的头部偏转角和/或视线偏转角,从而通过对视频帧进行人脸检测可以快速确定驾驶员的驾驶状态,为安全驾驶提供基础。In this implementation manner, by performing key point detection on the video frame, the driver's head deflection angle and/or line of sight deflection angle can be determined, so that the driver's driving state can be quickly determined by performing face detection on the video frame, which is safe for the Driving provides the foundation.
在一些示例中,还可以利用神经网络对驾驶员的头部偏转角和/或视线偏转角进行检测,例如,将驾驶员的视频帧输入已训练的神经网络中,利用神经网络对视频帧进行人脸检测,确定驾驶员的人脸所在的人脸区域,然后再利用神经网络基于人脸区域的图像特征进行头部偏转角检测和/或视线偏转角检测,得到驾驶员的头部偏转角和/或视线偏转角。在驾驶信息包括头部偏转角和视线偏转角的情况下,可以利用一个神经网络的不同分支进行头部偏转角检测和视线偏转角检测,一些实现方式中,还可以利用两个神经网络分别进行头部偏转角检测和视线偏转角检测。In some examples, a neural network can also be used to detect the driver's head deflection angle and/or line of sight deflection angle. For example, the driver's video frame is input into the trained neural network, and the video frame is processed by the neural network. Face detection, determine the face area where the driver's face is located, and then use the neural network to perform head deflection angle detection and/or line of sight deflection angle detection based on the image features of the face area to obtain the driver's head deflection angle and/or line of sight deflection angle. When the driving information includes the head deflection angle and the sight deflection angle, different branches of a neural network can be used to detect the head deflection angle and the sight deflection angle. In some implementations, two neural networks can be used to perform Head deflection angle detection and sight deflection angle detection.
在上述步骤S14中,可以在确定驾驶员的驾驶状态是分心驾驶状态的情况下,生成分心提醒信息,在一些实现方式中,还可以在确定驾驶员的驾驶状态是分心驾驶状态的情况下,确定驾驶员在分心驾驶状态下的持续时间,在持续时间达到预设的时间阈值的情况下,生成分心提醒信息。这里,时间阈值可以根据实际应用场景进行设置,在确定驾驶员的驾驶状态是分心驾驶状态的情况下,可以将驾驶员处于分心驾驶状态下的持续时间与预设的时间阈值进行比较,如果驾驶员在分心驾驶状态下的持续时间达到设置的时间阈值,则,可以认为驾驶员可能会由于处于分心驾驶状态而发生交通事故或者危险,从而可以生成分心提醒信息,以通过分心提醒信息提醒驾驶员恢复安全驾驶状态。In the above step S14, when it is determined that the driving state of the driver is a distracted driving state, distraction reminder information may be generated, and in some implementations, it may also be determined that the driving state of the driver is a distracted driving state In this case, the duration of the driver's distracted driving state is determined, and when the duration reaches a preset time threshold, distraction reminder information is generated. Here, the time threshold can be set according to the actual application scenario, and in the case that the driving state of the driver is determined to be a distracted driving state, the duration of the driver in the distracted driving state can be compared with a preset time threshold, If the duration of the driver in the distracted driving state reaches the set time threshold, it can be considered that the driver may cause a traffic accident or danger due to the distracted driving state, so that distraction reminder information can be generated to The heart reminder message reminds the driver to return to a safe driving state.
在一些实现方式中,时间阈值可以为多个,例如,时间阈值可以包括第一时间阈值、第二时间阈值和第三时间阈值。其中,第一时间阈值小于第二时间阈值,第二时间阈值小于第三时间阈值。每个时间阈值可以对应一个分心等级,时间阈值越大,对应的分心等级越高,例如,第一时间阈值对应的分心等级可以是轻度分心,第二时间阈值对应的分心等级可以是中度分心,第三时间阈值对应的分心等级可以是重度分心。在驾驶员在分心驾驶状态下的持续时间达到第一时间阈值的情况下,可以生成第一分心提醒信息, 在驾驶员在分心驾驶状态下的持续时间达到第二时间阈值的情况下,可以生成第二分心提醒信息,在驾驶员在分心驾驶状态下的持续时间达到第三时间阈值的情况下,可以生成第三分心提醒信息,第一分心提醒信息、第二分心提醒信息和第三分心提醒信息的信息响应程度可以与分心等级正相关。这里,信息响应程度可以通过提醒时长、提醒音量、提醒频率等方式进行体现。以提醒时长为例,第一分心提醒信息、第二分心提醒信息和第三分心提醒信息的提醒时长可以依次递增,即可以理解为,驾驶员在分心驾驶状态下的持续时间越大,分心等级越高,分心提醒信息的提醒时长越长。通过这种方式可以提醒驾驶员尽快恢复安全驾驶状态,减少交通事故的发生。In some implementations, there may be multiple time thresholds, for example, the time thresholds may include a first time threshold, a second time threshold, and a third time threshold. Wherein, the first time threshold is smaller than the second time threshold, and the second time threshold is smaller than the third time threshold. Each time threshold may correspond to a level of distraction. The larger the time threshold, the higher the level of distraction. For example, the level of distraction corresponding to the first time threshold may be mild distraction, and the level of distraction corresponding to the second time threshold The level of distraction may be moderate distraction, and the level of distraction corresponding to the third time threshold may be severe distraction. When the duration of the driver's distracted driving state reaches the first time threshold, the first distraction reminder information may be generated, and when the duration of the driver's distracted driving state reaches the second time threshold , the second distraction reminder information can be generated, and when the duration of the driver in the distracted driving state reaches the third time threshold, the third distraction reminder information can be generated, the first distraction reminder information, the second distraction reminder The information responsiveness of the distraction reminder information and the third distraction reminder information may be positively correlated with the distraction level. Here, the information response degree may be reflected by means of reminder duration, reminder volume, reminder frequency, and the like. Taking the reminder duration as an example, the reminder durations of the first distraction reminder information, the second distraction reminder information and the third distraction reminder information can be sequentially increased, that is, it can be understood that the longer the driver is in the distracted driving state, the longer the reminder duration. Large, the higher the distraction level, the longer the reminder duration of the distraction reminder message. In this way, the driver can be reminded to return to a safe driving state as soon as possible to reduce the occurrence of traffic accidents.
在一些实现方式中,还提供了上述时间阈值的设置方式,即可以根据车辆的行驶速度确定上述时间阈值,例如,车辆的行驶速度越大,对应的时间阈值越小,即,车辆的行驶速度可以与预设的时间阈值负相关。通过这种方式,可以根据车辆的行驶速度,动态地对分心驾驶状态持续时间的时间阈值进行调整,从而提高分心提醒的灵活性以及稳定性,为用户带来更好的用户体验。In some implementations, a method for setting the above time threshold is also provided, that is, the above time threshold can be determined according to the driving speed of the vehicle. For example, the higher the driving speed of the vehicle, the smaller the corresponding time threshold, that is, the driving speed of the vehicle is smaller. Can be negatively correlated with a preset time threshold. In this way, the time threshold for the duration of the distracted driving state can be dynamically adjusted according to the driving speed of the vehicle, thereby improving the flexibility and stability of the distraction reminder and bringing a better user experience to the user.
下面通过一个示例对本公开实施例提供的分心提醒方案进行说明。在本示例中,可以通过控制界面预先为不同的行驶速度设置不同的安全阈值区间。分心检测系统可以通过GPS或者CAN总线获取当前车辆的行驶速度。在车辆停止或行驶速度小于或等于10km/h的情况下,关闭分心检测功能。在车辆的行驶速度达到预设的启动车速(10km/h)的情况下,自动触发分心检测功能。在启动分心检测功能之后,可以确定车辆的行驶速度对应的安全阈值。在车辆的行驶速度大于10km/h并且小于或等于20km/h的情况下,行驶速度对应的头部偏转角安全阈值可以包括:yaw[-30,30]、Pitch[-20,20];在车辆的行驶速度大于20km/h的情况下,行驶速度对应的头部偏转角安全阈值可以包括:yaw[-15,15]、Pitch[-15,15]。如果驾驶员的头部偏转角在行驶速度对应的头部偏转角安全阈值内,则可以认为驾驶员的驾驶状态是安全驾驶状态,可以继续进行分心检测。如果驾驶员的头部偏转角达到行驶速度对应的头部偏转角安全阈值,即超过上述区间,则可以认为驾驶员的驾驶状态是分心驾驶状态,可以生成分心提醒信息以提醒驾驶员。The distraction reminder solution provided by the embodiment of the present disclosure is described below through an example. In this example, different safety threshold intervals can be preset for different driving speeds through the control interface. The distraction detection system can obtain the current speed of the vehicle through GPS or CAN bus. When the vehicle is stopped or the driving speed is less than or equal to 10km/h, the distraction detection function is turned off. When the vehicle's driving speed reaches the preset starting speed (10km/h), the distraction detection function is automatically triggered. After the distraction detection function is activated, the safety threshold corresponding to the driving speed of the vehicle can be determined. When the driving speed of the vehicle is greater than 10 km/h and less than or equal to 20 km/h, the safety threshold of the head deflection angle corresponding to the driving speed may include: yaw[-30,30], Pitch[-20,20]; When the driving speed of the vehicle is greater than 20 km/h, the safety threshold of the head deflection angle corresponding to the driving speed may include: yaw[-15,15], Pitch[-15,15]. If the driver's head deflection angle is within the head deflection angle safety threshold corresponding to the driving speed, it can be considered that the driver's driving state is a safe driving state, and distraction detection can be continued. If the driver's head deflection angle reaches the safety threshold of the head deflection angle corresponding to the driving speed, that is, exceeds the above interval, the driver's driving state can be considered to be a distracted driving state, and distraction reminder information can be generated to remind the driver.
本公开实例提供的分心提醒方案,可以在车辆的行驶速度达到启动车速的情况下,自动启动分心检测功能,在车辆的行驶速度未达到启动车速的情况下,关闭分心检测功能,从而在用户停车聊天或者减速停车的情况下,可以停止分心检测功能,减少不必要的分心警报,提高用户体验。在此基础上,还可以根据车辆的行驶速度动态调整分心提醒的安全阈值,提高分心提醒的准确性和稳定性。The distraction reminder solution provided by the example of the present disclosure can automatically start the distraction detection function when the driving speed of the vehicle reaches the starting speed, and disable the distraction detection function when the driving speed of the vehicle does not reach the starting speed, thereby When the user stops chatting or slows down to stop, the distraction detection function can be stopped to reduce unnecessary distraction alerts and improve the user experience. On this basis, the safety threshold of the distraction reminder can be dynamically adjusted according to the driving speed of the vehicle, so as to improve the accuracy and stability of the distraction reminder.
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可 以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。It can be understood that the above-mentioned method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle and logic. Those skilled in the art can understand that, in the above method of the specific embodiment, the specific execution order of each step should be determined by its function and possible internal logic.
此外,本公开还提供了一种分心提醒装置、电子设备、计算机可读存储介质、程序,上述均可用来实现本公开提供的任一种分心提醒方法,相应技术方案和描述和参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides a distraction reminder device, electronic device, computer-readable storage medium, and program, all of which can be used to implement any distraction reminder method provided by the present disclosure, and the corresponding technical solutions and descriptions and refer to the method Some of the corresponding records will not be repeated.
图5示出根据本公开实施例的分心提醒装置的框图,如图5所示,所述装置包括:FIG. 5 shows a block diagram of a distraction reminder device according to an embodiment of the present disclosure. As shown in FIG. 5 , the device includes:
第一获取模块31,用于获取车辆的行驶速度;The first obtaining module 31 is used to obtain the running speed of the vehicle;
第二获取模块32,用于在根据所述车辆的行驶速度确定启动分心检测功能的情况下,获取针对所述车辆的驾驶员采集的视频帧;The second obtaining module 32 is configured to obtain video frames collected for the driver of the vehicle when the distraction detection function is determined to be activated according to the driving speed of the vehicle;
确定模块33,用于基于所述驾驶员的视频帧和所述行驶速度,确定所述驾驶员的驾驶状态;A determination module 33, configured to determine the driving state of the driver based on the video frame of the driver and the driving speed;
生成模块34,用于在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,生成分心提醒信息。The generating module 34 is configured to generate distraction reminder information when it is determined that the driving state of the driver is a distracted driving state.
在一个或多个可能的实现方式中,所述装置还包括:启动模块,用于在所述车辆的行驶速度大于或等于预设的启动车速的情况下,启动分心检测功能;在所述车辆的行驶速度小于所述启动车速的情况下,关闭分心检测功能。In one or more possible implementation manners, the apparatus further includes: a start module, configured to start a distraction detection function when the driving speed of the vehicle is greater than or equal to a preset start speed; When the running speed of the vehicle is lower than the starting vehicle speed, the distraction detection function is turned off.
在一个或多个可能的实现方式中,所述确定模块33,用于基于所述驾驶员的视频帧检测所述驾驶员的头部偏转角和/或视线偏转角;基于所述头部偏转角和/或视线偏转角、以及所述行驶速度,确定所述驾驶员的驾驶状态。In one or more possible implementations, the determining module 33 is configured to detect the head deflection angle and/or the line of sight deflection angle of the driver based on the video frame of the driver; based on the head deflection The angle and/or the deflection angle of the line of sight, and the driving speed, determine the driving state of the driver.
在一个或多个可能的实现方式中,所述确定模块33,用于获取所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值;响应于所述头部偏转角达到所述行驶速度对应的头部偏转角安全阈值和/或所述视线偏转角达到所述视线偏转角安全阈值,确定所述驾驶员处于分心驾驶状态。In one or more possible implementation manners, the determining module 33 is configured to acquire the head deflection angle safety threshold and the line of sight deflection angle safety threshold corresponding to the traveling speed; in response to the head deflection angle reaching the When the head deflection angle safety threshold corresponding to the driving speed and/or the line of sight deflection angle reaches the line of sight deflection angle safety threshold, it is determined that the driver is in a distracted driving state.
在一个或多个可能的实现方式中,所述头部偏转角安全阈值和/或所述视线偏转角安全阈值基于所述驾驶员在安全驾驶状态下以所述行驶速度驾驶车辆时的头部偏转角和视线偏转角标定。In one or more possible implementations, the head yaw angle safety threshold and/or the line of sight yaw angle safety threshold is based on the driver's head when driving the vehicle at the travel speed in a safe driving state Deflection angle and line-of-sight deflection angle calibration.
在一个或多个可能的实现方式中,所述装置还包括:In one or more possible implementations, the apparatus further includes:
识别模块,用于对所述视频帧进行人脸识别,确定所述驾驶员的身份信息;an identification module, for performing face recognition on the video frame to determine the identity information of the driver;
所述确定模块33,用于获取所述驾驶员的身份信息关联的、与所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值。The determining module 33 is configured to acquire the head deflection angle safety threshold and the sight deflection angle safety threshold and corresponding to the driving speed, which are associated with the driver's identity information.
在一个或多个可能的实现方式中,所述第二获取模块32,用于基于所述车辆的行驶速度,确定帧采样率;基于所述帧采样率对所述车辆的驾驶员的视频进行帧采样,获取 针对所述车辆的驾驶员采集的视频帧。In one or more possible implementations, the second obtaining module 32 is configured to determine a frame sampling rate based on the driving speed of the vehicle; Frame sampling to obtain video frames collected for the driver of the vehicle.
在一个或多个可能的实现方式中,所述确定模块33,用于对所述驾驶员的视频帧进行关键点检测,确定所述视频帧的人脸区域包括的至少一个关键点;基于所述人脸区域包括的至少一个关键点,确定所述驾驶员的头部偏转角和/或视线偏转角。In one or more possible implementations, the determining module 33 is configured to perform key point detection on the video frame of the driver, and determine at least one key point included in the face area of the video frame; At least one key point included in the face area is used to determine the head deflection angle and/or the sight deflection angle of the driver.
在一个或多个可能的实现方式中,所述生成模块34,用于在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,确定所述驾驶员在所述分心驾驶状态下的持续时间;在所述持续时间达到预设的时间阈值的情况下,生成分心提醒信息。In one or more possible implementation manners, the generating module 34 is configured to determine that the driver is in the distracted driving state if it is determined that the driving state of the driver is the distracted driving state duration; when the duration reaches a preset time threshold, generate distraction reminder information.
在一个或多个可能的实现方式中,所述生成模块34,还用于根据所述车辆的行驶速度确定所述时间阈值。In one or more possible implementations, the generating module 34 is further configured to determine the time threshold according to the traveling speed of the vehicle.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules included in the apparatuses provided in the embodiments of the present disclosure may be used to execute the methods described in the above method embodiments. For specific implementation, reference may be made to the descriptions of the above method embodiments. For brevity, here No longer.
本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是易失性计算机可读存储介质或非易失性计算机可读存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented. The computer-readable storage medium may be a volatile computer-readable storage medium or a non-volatile computer-readable storage medium.
本公开实施例还提出一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
本公开实施例还提供了一种计算机程序产品,包括计算机可读代码或者承载有计算机可读代码的非易失性计算机可读存储介质,当计算机可读代码在电子设备上运行时,电子设备中的处理器执行用于实现如上任一实施例提供的分心提醒方法的指令。Embodiments of the present disclosure also provide a computer program product, including computer-readable codes or a non-volatile computer-readable storage medium carrying the computer-readable codes. When the computer-readable codes are executed on an electronic device, the electronic device The processor in executes the instructions for implementing the distraction reminder method provided by any of the above embodiments.
本公开实施例还提供了另一种计算机程序产品,用于存储计算机可读指令,指令被执行时使得计算机执行上述任一实施例提供的分心提醒方法的操作。Embodiments of the present disclosure further provide another computer program product for storing computer-readable instructions, which, when executed, cause the computer to perform the operations of the distraction reminder method provided by any of the foregoing embodiments.
电子设备可以被提供为终端、服务器或其它形态的设备。The electronic device may be provided as a terminal, server or other form of device.
图6示出根据本公开实施例的一种电子设备800的框图。例如,电子设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。FIG. 6 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure. For example, electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc. terminal.
参照图6,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。6, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814 , and the communication component 816 .
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模 块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 804 is configured to store various types of data to support operation at electronic device 800 . Examples of such data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. Memory 804 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。 Power supply assembly 806 provides power to various components of electronic device 800 . Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。 Audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when electronic device 800 is in operating modes, such as calling mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 804 or transmitted via communication component 816 . In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器, 被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(CMOS)或电荷耦合装置(CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of electronic device 800 . For example, the sensor assembly 814 can detect the on/off state of the electronic device 800, the relative positioning of the components, such as the display and the keypad of the electronic device 800, the sensor assembly 814 can also detect the electronic device 800 or one of the electronic device 800 Changes in the position of components, presence or absence of user contact with the electronic device 800 , orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如无线网络(WiFi),第二代移动通信技术(2G)或第三代移动通信技术(3G),或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as wireless network (WiFi), second generation mobile communication technology (2G) or third generation mobile communication technology (3G), or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmed gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium, such as a memory 804 comprising computer program instructions executable by the processor 820 of the electronic device 800 to perform the above method is also provided.
图7示出根据本公开实施例的一种电子设备1900的框图。例如,电子设备1900可以被提供为一服务器。参照图7,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。FIG. 7 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. 7, electronic device 1900 includes processing component 1922, which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922, such as applications. An application program stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Additionally, the processing component 1922 is configured to execute instructions to perform the above-described methods.
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如微软服务器操作系统(Windows Server TM),苹果公司推出的基于图形用户界面操作系统(Mac OS X TM),多用户多进程的计算机操作系统(Unix TM),自由和开放原代码的类Unix操作系统(Linux TM),开放原代码的类Unix操作系统(FreeBSD TM)或类似。 The electronic device 1900 may also include a power supply assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 . The electronic device 1900 can operate based on an operating system stored in the memory 1932, such as a Microsoft server operating system (Windows Server ), a graphical user interface based operating system (Mac OS X ) introduced by Apple, a multi-user multi-process computer operating system (Unix ), Free and Open Source Unix-like Operating System (Linux ), Open Source Unix-like Operating System (FreeBSD ) or the like.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1932,上述计算机程序指令可由电子设备1900的处理组件1922执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as memory 1932 comprising computer program instructions executable by processing component 1922 of electronic device 1900 to perform the above-described method.
本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是(但不限于)电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above. Computer-readable storage media, as used herein, are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for carrying out operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages. Source or object code, written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect). In some embodiments, custom electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), can be personalized by utilizing state information of computer readable program instructions. Computer readable program instructions are executed to implement various aspects of the present disclosure.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/ 或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be specifically implemented by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present disclosure have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the various embodiments, the practical application or improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the various embodiments disclosed herein.

Claims (21)

  1. 一种分心提醒方法,其特征在于,包括:A distraction reminder method, comprising:
    获取车辆的行驶速度;Get the speed of the vehicle;
    在根据所述车辆的行驶速度确定启动分心检测功能的情况下,获取针对所述车辆的驾驶员采集的视频帧;In the case that the distraction detection function is determined to be activated according to the driving speed of the vehicle, acquiring video frames collected for the driver of the vehicle;
    基于所述驾驶员的视频帧和所述行驶速度,确定所述驾驶员的驾驶状态;determining the driving state of the driver based on the video frame of the driver and the driving speed;
    在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,生成分心提醒信息。When it is determined that the driving state of the driver is a distracted driving state, distraction reminder information is generated.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在所述车辆的行驶速度大于或等于预设的启动车速的情况下,启动分心检测功能;In the case that the running speed of the vehicle is greater than or equal to the preset starting speed, the distraction detection function is activated;
    在所述车辆的行驶速度小于所述启动车速的情况下,关闭分心检测功能。In the case that the driving speed of the vehicle is lower than the starting vehicle speed, the distraction detection function is turned off.
  3. 根据权利要求1所述的方法,其特征在于,所述基于所述驾驶员的视频帧和所述行驶速度,确定所述驾驶员的驾驶状态,包括:The method according to claim 1, wherein the determining the driving state of the driver based on the video frame of the driver and the driving speed comprises:
    基于所述驾驶员的视频帧检测所述驾驶员的头部偏转角和/或视线偏转角;Detecting the driver's head deflection angle and/or line of sight deflection angle based on the driver's video frame;
    基于所述头部偏转角和/或视线偏转角、以及所述行驶速度,确定所述驾驶员的驾驶状态。The driving state of the driver is determined based on the head deflection angle and/or the sight deflection angle, and the driving speed.
  4. 根据权利要求3所述的方法,其特征在于,所述基于所述头部偏转角和/或视线偏转角、以及所述行驶速度,确定所述驾驶员的驾驶状态,包括:The method according to claim 3, wherein the determining the driving state of the driver based on the head deflection angle and/or the sight deflection angle and the driving speed comprises:
    获取所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值;obtaining the head deflection angle safety threshold and the sight deflection angle safety threshold corresponding to the travel speed;
    响应于所述头部偏转角达到所述行驶速度对应的头部偏转角安全阈值和/或所述视线偏转角达到所述视线偏转角安全阈值,确定所述驾驶员处于分心驾驶状态。In response to the head deflection angle reaching a head deflection angle safety threshold corresponding to the travel speed and/or the sight deflection angle reaching the sight deflection angle safe threshold, it is determined that the driver is in a distracted driving state.
  5. 根据权利要求4所述的方法,其特征在于,所述头部偏转角安全阈值和/或所述视线偏转角安全阈值基于所述驾驶员在安全驾驶状态下以所述行驶速度驾驶车辆时的头部偏转角和视线偏转角标定。5. The method of claim 4, wherein the head deflection angle safety threshold and/or the sight deflection angle safety threshold are based on the driver's experience when driving the vehicle at the travel speed in a safe driving state Head deflection angle and sight deflection angle calibration.
  6. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    对所述视频帧进行人脸识别,确定所述驾驶员的身份信息;Perform face recognition on the video frame to determine the driver's identity information;
    所述获取所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值,包括:The obtaining of the head deflection angle safety threshold and the sight deflection angle safety threshold corresponding to the driving speed includes:
    获取所述驾驶员的身份信息关联的、与所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值。The head deflection angle safety threshold and the sight deflection angle safety threshold corresponding to the driving speed and associated with the driver's identity information are acquired.
  7. 根据权利要求1至6任意一项所述的方法,其特征在于,所述获取针对所述车辆的驾驶员采集的视频帧,包括:The method according to any one of claims 1 to 6, wherein the acquiring the video frames collected for the driver of the vehicle comprises:
    基于所述车辆的行驶速度,确定帧采样率;determining a frame sampling rate based on the speed of travel of the vehicle;
    基于所述帧采样率对所述车辆的驾驶员的视频进行帧采样,获取针对所述车辆的驾驶员采集的视频帧。Frame sampling is performed on the video of the driver of the vehicle based on the frame sampling rate, and video frames collected for the driver of the vehicle are acquired.
  8. 根据权利要求3所述的方法,其特征在于,所述基于所述驾驶员的视频帧检测所述驾驶员的头部偏转角和/或视线偏转角,包括:The method according to claim 3, wherein the detecting the head deflection angle and/or the sight deflection angle of the driver based on the video frame of the driver comprises:
    对所述驾驶员的视频帧进行关键点检测,确定所述视频帧的人脸区域包括的至少一个关键点;Perform key point detection on the video frame of the driver, and determine at least one key point included in the face area of the video frame;
    基于所述人脸区域包括的至少一个关键点,确定所述驾驶员的头部偏转角和/或视线偏转角。Based on at least one key point included in the face area, a head deflection angle and/or a sight deflection angle of the driver is determined.
  9. 根据权利要求1至8任意一项所述的方法,其特征在于,所述在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,生成分心提醒信息,包括:The method according to any one of claims 1 to 8, wherein the generating distraction reminder information when it is determined that the driving state of the driver is a distracted driving state comprises:
    在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,确定所述驾驶员在所述分心驾驶状态下的持续时间;In the case of determining that the driving state of the driver is a distracted driving state, determining the duration of the driver in the distracted driving state;
    在所述持续时间达到预设的时间阈值的情况下,生成分心提醒信息。When the duration reaches a preset time threshold, distraction reminder information is generated.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, wherein the method further comprises:
    根据所述车辆的行驶速度确定所述时间阈值。The time threshold is determined based on the travel speed of the vehicle.
  11. 一种分心提醒装置,其特征在于,包括:A distraction reminder device, comprising:
    第一获取模块,用于获取车辆的行驶速度;a first obtaining module, used for obtaining the driving speed of the vehicle;
    第二获取模块,用于在根据所述车辆的行驶速度确定启动分心检测功能的情况下,获取针对所述车辆的驾驶员采集的视频帧;a second acquisition module, configured to acquire video frames collected for the driver of the vehicle when the distraction detection function is determined to be activated according to the driving speed of the vehicle;
    确定模块,用于基于所述驾驶员的视频帧和所述行驶速度,确定所述驾驶员的驾驶状态;a determining module for determining the driving state of the driver based on the video frame of the driver and the driving speed;
    生成模块,用于在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,生成分心提醒信息。A generating module, configured to generate distraction reminder information when it is determined that the driving state of the driver is a distracted driving state.
  12. 根据权利要求11所述的装置,其特征在于,所述装置还包括:The apparatus of claim 11, wherein the apparatus further comprises:
    启动模块,用于在所述车辆的行驶速度大于或等于预设的启动车速的情况下,启动分心检测功能;在所述车辆的行驶速度小于所述启动车速的情况下,关闭分心检测功能。a startup module, configured to start the distraction detection function when the running speed of the vehicle is greater than or equal to the preset starting speed; when the driving speed of the vehicle is less than the starting speed, turn off the distraction detection Function.
  13. 根据权利要求11所述的装置,其特征在于,所述确定模块,用于基于所述驾驶员的视频帧检测所述驾驶员的头部偏转角和/或视线偏转角;基于所述头部偏转角和/或视线偏转角、以及所述行驶速度,确定所述驾驶员的驾驶状态。The device according to claim 11, wherein the determining module is configured to detect the head deflection angle and/or the sight deflection angle of the driver based on the video frame of the driver; The deflection angle and/or the line of sight deflection angle, as well as the driving speed, determine the driving state of the driver.
  14. 根据权利要求13所述的装置,其特征在于,所述确定模块,用于获取所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值;响应于所述头部偏转角达到所述行驶速度对应的头部偏转角安全阈值和/或所述视线偏转角达到所述视线偏转角安全阈值,确定所述驾驶员处于分心驾驶状态。The device according to claim 13, wherein the determining module is configured to obtain a head deflection angle safety threshold and a line of sight deflection angle safety threshold corresponding to the driving speed; The head deflection angle safety threshold corresponding to the driving speed and/or the line of sight deflection angle reaches the line of sight deflection angle safety threshold, and it is determined that the driver is in a distracted driving state.
  15. 根据权利要求14所述的装置,其特征在于,所述头部偏转角安全阈值和/或所述 视线偏转角安全阈值基于所述驾驶员在安全驾驶状态下以所述行驶速度驾驶车辆时的头部偏转角和视线偏转角标定;和/或15. The apparatus of claim 14, wherein the head yaw angle safety threshold and/or the line of sight yaw angle safety threshold are based on the driver's experience when driving the vehicle at the travel speed in a safe driving state Head yaw angle and line of sight yaw angle calibration; and/or
    所述装置还包括:The device also includes:
    识别模块,用于对所述视频帧进行人脸识别,确定所述驾驶员的身份信息;an identification module, for performing face recognition on the video frame to determine the identity information of the driver;
    所述确定模块,用于获取所述驾驶员的身份信息关联的、与所述行驶速度对应的头部偏转角安全阈值和视线偏转角安全阈值。The determining module is configured to acquire the head deflection angle safety threshold and the sight deflection angle safety threshold and corresponding to the driving speed, which are associated with the driver's identity information.
  16. 根据权利要求11至15任意一项所述的装置,其特征在于,所述第二获取模块,用于基于所述车辆的行驶速度,确定帧采样率;基于所述帧采样率对所述车辆的驾驶员的视频进行帧采样,获取针对所述车辆的驾驶员采集的视频帧。The device according to any one of claims 11 to 15, wherein the second obtaining module is configured to determine a frame sampling rate based on the traveling speed of the vehicle; Frame sampling is performed on the video of the driver of the vehicle to obtain video frames collected for the driver of the vehicle.
  17. 根据权利要求11至16任意一项所述的装置,其特征在于,所述生成模块,用于在确定所述驾驶员的驾驶状态是分心驾驶状态的情况下,确定所述驾驶员在所述分心驾驶状态下的持续时间;在所述持续时间达到预设的时间阈值的情况下,生成分心提醒信息。The device according to any one of claims 11 to 16, wherein the generating module is configured to determine that the driver is in any The duration of the distracted driving state; when the duration reaches a preset time threshold, a distraction reminder message is generated.
  18. 根据权利要求17所述的装置,其特征在于,所述生成模块,还用于根据所述车辆的行驶速度确定所述时间阈值。The device according to claim 17, wherein the generating module is further configured to determine the time threshold according to the traveling speed of the vehicle.
  19. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    处理器;processor;
    用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
    其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1至10中任意一项所述的方法。wherein the processor is configured to invoke the memory-stored instructions to perform the method of any one of claims 1-10.
  20. 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1至10中任意一项所述的方法。A computer-readable storage medium on which computer program instructions are stored, characterized in that, when the computer program instructions are executed by a processor, the method described in any one of claims 1 to 10 is implemented.
  21. 一种计算机程序产品,其特征在于,包括计算机可读代码或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行用于实现权利要求1至10中任意一项所述的方法。A computer program product, characterized by comprising computer-readable codes or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are executed in a processor of an electronic device, A processor in the electronic device executes the method for implementing any one of claims 1 to 10.
PCT/CN2021/113576 2021-03-12 2021-08-19 Distraction reminding method and apparatus, electronic device, and storage medium WO2022188362A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110268977.1A CN113060144A (en) 2021-03-12 2021-03-12 Distraction reminding method and device, electronic equipment and storage medium
CN202110268977.1 2021-03-12

Publications (1)

Publication Number Publication Date
WO2022188362A1 true WO2022188362A1 (en) 2022-09-15

Family

ID=76560091

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/113576 WO2022188362A1 (en) 2021-03-12 2021-08-19 Distraction reminding method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN113060144A (en)
WO (1) WO2022188362A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113060144A (en) * 2021-03-12 2021-07-02 上海商汤临港智能科技有限公司 Distraction reminding method and device, electronic equipment and storage medium
CN113569785A (en) * 2021-08-04 2021-10-29 上海汽车集团股份有限公司 Driving state sensing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2682318A1 (en) * 2012-07-03 2014-01-08 Volvo Car Corporation Motor vehicle collision warning system
US8816836B2 (en) * 2010-11-29 2014-08-26 Electronics And Telecommunications Research Institute Safe operation apparatus and method for moving object
US9796391B2 (en) * 2014-10-13 2017-10-24 Verizon Patent And Licensing Inc. Distracted driver prevention systems and methods
CN208232928U (en) * 2018-05-22 2018-12-14 长安大学 It is a kind of for detecting the data acquisition equipment of driver distraction
CN110435671A (en) * 2019-07-31 2019-11-12 武汉理工大学 It is man-machine to drive the driving permission switching system that driver's state is considered under environment altogether
CN111845736A (en) * 2020-06-16 2020-10-30 江苏大学 Vehicle collision early warning system triggered by distraction monitoring and control method
CN112389448A (en) * 2020-11-23 2021-02-23 重庆邮电大学 Abnormal driving behavior identification method based on vehicle state and driver state
CN113060144A (en) * 2021-03-12 2021-07-02 上海商汤临港智能科技有限公司 Distraction reminding method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019091267A (en) * 2017-11-15 2019-06-13 オムロン株式会社 Inattentive driving determination device, inattentive driving determination method, and program
CN111079475A (en) * 2018-10-19 2020-04-28 上海商汤智能科技有限公司 Driving state detection method and device, driver monitoring system and vehicle
CN110909718B (en) * 2019-12-11 2024-04-19 深圳市锐明技术股份有限公司 Driving state identification method and device and vehicle
CN112277957B (en) * 2020-10-27 2022-06-24 广州汽车集团股份有限公司 Early warning method and system for driver distraction correction and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8816836B2 (en) * 2010-11-29 2014-08-26 Electronics And Telecommunications Research Institute Safe operation apparatus and method for moving object
EP2682318A1 (en) * 2012-07-03 2014-01-08 Volvo Car Corporation Motor vehicle collision warning system
US9796391B2 (en) * 2014-10-13 2017-10-24 Verizon Patent And Licensing Inc. Distracted driver prevention systems and methods
CN208232928U (en) * 2018-05-22 2018-12-14 长安大学 It is a kind of for detecting the data acquisition equipment of driver distraction
CN110435671A (en) * 2019-07-31 2019-11-12 武汉理工大学 It is man-machine to drive the driving permission switching system that driver's state is considered under environment altogether
CN111845736A (en) * 2020-06-16 2020-10-30 江苏大学 Vehicle collision early warning system triggered by distraction monitoring and control method
CN112389448A (en) * 2020-11-23 2021-02-23 重庆邮电大学 Abnormal driving behavior identification method based on vehicle state and driver state
CN113060144A (en) * 2021-03-12 2021-07-02 上海商汤临港智能科技有限公司 Distraction reminding method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113060144A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
WO2022048119A1 (en) Vehicle control method and apparatus, electronic device, storage medium, and vehicle
WO2022041671A1 (en) Steering wheel hands-off detection method and apparatus, electronic device, and storage medium
US10336319B2 (en) Method, device and computer-readable storage medium for parking a self-balancing vehicle
WO2022188362A1 (en) Distraction reminding method and apparatus, electronic device, and storage medium
WO2022183661A1 (en) Event detection method and apparatus, electronic device, storage medium, and program product
US9928710B2 (en) Danger alerting method and device, portable electronic apparatus
JP6163017B2 (en) Portable terminal and danger notification system
WO2022142332A1 (en) Alert threshold adjustment method, apparatus, electronic device, and storage medium
EP2911126A1 (en) Method and device for protecting terminal apparatus and terminal apparatus and medium
WO2022041670A1 (en) Occupant detection method and apparatus in vehicle cabin, electronic device, and storage medium
WO2022057212A1 (en) Trunk control method and apparatus, vehicle, electronic device, and storage medium
WO2020001115A1 (en) Method and apparatus for unlocking screen of terminal device and terminal device
WO2022062658A1 (en) Alcohol detection-based intelligent driving control method and apparatus
US20170123587A1 (en) Method and device for preventing accidental touch of terminal with touch screen
WO2023273064A1 (en) Object speaking detection method and apparatus, electronic device, and storage medium
WO2022048118A1 (en) Method and apparatus for controlling in-vehicle robot, vehicle, electronic device, and medium
JP2009157736A (en) Look-away detecting device, method and program
WO2023071174A1 (en) Occupancy detection method and apparatus, electronic device, and storage medium
WO2022142331A1 (en) Control method and apparatus for vehicle-mounted display screen, and electronic device and storage medium
US10423195B2 (en) Verification method, device and computer-readable storage medium based on a flexible display screen
RU2657108C2 (en) Method and device for safe driving
WO2022183663A1 (en) Event detection method and apparatus, and electronic device, storage medium and program product
WO2023273060A1 (en) Dangerous action identifying method and apparatus, electronic device, and storage medium
WO2023273063A1 (en) Passenger speaking detection method and apparatus, and electronic device and storage medium
EP3511865A1 (en) Imaging processing method for smart mirror, and smart mirror

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: 21929828

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: 21929828

Country of ref document: EP

Kind code of ref document: A1