WO2023178714A1 - Distraction determination method and apparatus, and storage medium, electronic device and vehicle - Google Patents

Distraction determination method and apparatus, and storage medium, electronic device and vehicle Download PDF

Info

Publication number
WO2023178714A1
WO2023178714A1 PCT/CN2022/083706 CN2022083706W WO2023178714A1 WO 2023178714 A1 WO2023178714 A1 WO 2023178714A1 CN 2022083706 W CN2022083706 W CN 2022083706W WO 2023178714 A1 WO2023178714 A1 WO 2023178714A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
distraction
gaze
area
driver
Prior art date
Application number
PCT/CN2022/083706
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 WO2023178714A1 publication Critical patent/WO2023178714A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/59Context or environment of the image inside of a vehicle, e.g. relating to seat occupancy, driver state or inner lighting conditions

Definitions

  • the present application relates to the field of automotive technology, specifically, to a distraction judgment method, device, storage medium, electronic equipment and vehicle.
  • Distracted driving is a common and potentially risky driving behavior. Distracted driving will cause the driver to lose his attention and leave the road, unable to observe in advance or naturally ignore the information in road traffic. It will also cause changes in driving posture or operating actions, which is not conducive to safe and smooth operation of the vehicle, and can easily cause traffic accidents. ACCIDENT.
  • the driver's eye movement trajectory characteristics can be recorded based on an eye tracker, and whether the driver is in a distracted state can be determined by analyzing the driver's eye movement trajectory.
  • eye trackers are not only expensive and not suitable for widespread use, but the driver's head movements can easily lead to inaccurate data collection, and the driver may even be distracted from driving due to the discomfort of wearing the eye tracker.
  • This application provides a distraction judgment method, device, storage medium, electronic equipment and vehicle, which can solve the problems existing in related technologies of driver distraction judgment based on eye trackers: (1) Expensive and not suitable for wide application , and the driver’s head movement can easily lead to inaccurate data collection; (2) The driver may be distracted by driving due to discomfort with the wearable distraction detection device.
  • embodiments of the present application provide a distraction judgment method, which includes:
  • the category of the target gaze area includes at least one of a preset concentration area, a preset distraction area and other distraction areas;
  • the preset distraction conditions include at least one of the following:
  • the duration of the driver's continuous gaze on the first target gaze area is greater than or equal to the first preset duration threshold, and the first target gaze area belongs to the preset distraction area;
  • the cumulative duration of the driver's gaze on the second target gaze area within the first preset time window is greater than or equal to the second preset duration threshold, and the second target gaze area does not belong to the preset concentration area;
  • the duration of the driver's continuous gaze on the third target gaze area is greater than or equal to the third preset duration threshold, and the third target gaze area belongs to the other distraction areas;
  • a plurality of weighted scores of the target gaze areas determined based on the driver images of multiple consecutive frames are greater than or equal to a preset score threshold.
  • the embodiment of the present application can first identify the direction of the driver's gaze in the image based on the gaze recognition model, Then determine the target gaze area to which the gaze direction belongs, and finally determine that the driver is distracted when the preset distraction conditions are met (distraction conditions set based on the duration of gazing at the target gaze area and/or weighted scores, etc.) state.
  • the embodiment of the present application combines the inward-looking camera necessary for intelligent driving with the distraction algorithm of the software to make distraction judgments without requiring the driver to wear additional equipment, thereby not only not affecting the driver's driving comfort degree, and the accuracy of distraction judgment will not be reduced due to inaccurate data collection.
  • determining the target gaze area to which the line of sight direction belongs includes:
  • the preset gaze areas include a preset concentration area and/or a preset distraction area
  • the intersecting preset gaze area is determined as the target gaze area; or,
  • the gaze direction represents that the driver is in an eyes-open state and the gaze direction does not intersect with multiple preset gaze areas, or the gaze direction represents that the driver is in a closed-eyes state
  • the embodiment of the present application can not only determine whether the line of sight direction intersects with each of the plurality of preset attention areas, but also determine the target gaze area in the line of sight direction and at least two preset gaze areas. If the gaze areas intersect, the preset gaze area that the driver is really looking at can be accurately and quickly determined based on the preset region priority. It can be understood that in the embodiment of the present application, when the line of sight direction intersects two preset gaze areas, the preset gaze area with the highest priority is the preset gaze area with higher priority among the two preset gaze areas. .
  • identifying the gaze direction in the driver's image based on the gaze recognition model includes:
  • the driver's image is recognized and the sight direction in the camera coordinate system is obtained.
  • separately calculating whether the line of sight direction intersects with each of the plurality of preset gaze areas includes:
  • the line of sight direction is converted from the camera coordinate system to the body coordinate system, and the line of sight direction in the body coordinate system and the multiple preset gaze areas in the body coordinate system are calculated respectively. Whether each preset gaze area intersects.
  • the method further includes:
  • the duration is greater than or equal to the fourth preset included angle threshold, or, within the second preset time window, the cumulative duration for which the included angle is greater than or equal to the preset included angle threshold is greater than or equal to the preset included angle threshold.
  • the fifth preset duration threshold it is determined that the driver is in a distracted state.
  • distraction judgment can be made by using the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system that does not rely on the external parameter calibration, thereby avoiding distraction. Interruption of distraction judgments due to inability to determine the target fixation area.
  • the method before calculating the angle between the line of sight direction in the camera coordinate system and the line of sight reference vector, the method further includes:
  • the average of the N historical sight directions with the smallest variance is selected as the sight reference vector, or any historical sight direction among the N historical sight directions with the smallest variance is selected as the sight reference vector.
  • the method further includes:
  • the driver's head angle in the driver image is recognized based on the head angle recognition model
  • the duration during which the head rotation angle is continuously greater than or equal to the preset angle threshold is greater than or equal to the sixth preset duration threshold, or, within the third preset time window, the cumulative duration during which the head rotation angle is greater than or equal to the preset angle threshold is greater than or equal to the preset angle threshold.
  • the seventh preset duration threshold it is determined that the driver is in a distracted state.
  • the method before determining that the driver is in a distracted state when it is determined that the preset distraction condition is met, the method further includes:
  • the vehicle When the vehicle meets the preset preconditions, it is executed to determine that the driver is in a distracted state when it is judged that the preset distraction conditions are met;
  • the vehicle does not meet the preset preconditions, it will not be executed. If it is determined that the preset distraction conditions are met, it will be determined that the driver is in a distracted state;
  • the preset preconditions include at least one of the following:
  • the internal camera is in an unobstructed state
  • Vehicle speed is greater than 0;
  • the vehicle is in a non-traffic jam state
  • the vehicle is not in special condition
  • the special status includes: when the vehicle is in a preset scene and the driver is in a non-fatigued state, the body posture is the same as the preset steering and the vehicle speed is within the preset safe range.
  • the preset scene includes at least 100% in steering, parking, and reversing. One item.
  • the preset preconditions are used to exclude special scenarios in which whether the driver is distracted and has nothing to do with vehicle safety. That is, the analysis will only be performed when the preset preconditions are met. It can save resources and improve the accuracy of distracted judgment.
  • the method further includes:
  • Goal statistics include timing information and/or weighted scoring information.
  • the embodiments of the present application can not only detect fatigue driving and output driving fatigue prompt information, but also distinguish fatigue driving from distracted driving.
  • the driver is driving fatigue, clear the target statistics for distraction judgment. information, so that different states can be analyzed and managed in a targeted manner.
  • the method further includes:
  • the target statistical information is re-calculated
  • the target statistical information is re-calculated.
  • the embodiment of the present application can detect the driver's high-frequency blinking, and in this case, re-calculate the target statistical information, thereby eliminating the impact of high-frequency blinking on distraction judgment.
  • the preset distraction area corresponds to at least one distraction level, and the distraction level of the preset distraction area has a negative correlation with the first preset duration threshold.
  • the embodiment of the present application divides the preset distraction area into at least one distraction level, so that distraction judgments can be made in a more fine-grained manner based on the gaze conditions of the preset distraction areas at different distraction levels, thereby improving the accuracy of the analysis.
  • the accuracy of mental judgment is a more fine-grained manner based on the gaze conditions of the preset distraction areas at different distraction levels, thereby improving the accuracy of the analysis. The accuracy of mental judgment.
  • the preset distraction areas corresponding to the first distraction level include the interior rearview mirror, central control screen, left side window, left rearview mirror, right side At least one of the car window, the right rearview mirror, and the control panel, the preset distraction area corresponding to the second distraction level includes the left door and/or the right door, and the preset concentration area includes the front windshield.
  • a distraction judgment device which includes:
  • a recognition unit for identifying the gaze direction in the driver's image based on the gaze recognition model
  • the area determination unit is used to determine the target gaze area to which the line of sight direction belongs;
  • a distraction determination unit used to determine that the driver is in a distracted state when it is judged that the preset distraction conditions are met
  • the category of the target gaze area includes at least one of a preset concentration area, a preset distraction area and other distraction areas;
  • Preset distraction conditions include at least one of the following:
  • the duration of the driver's continuous gaze on the first target gaze area is greater than or equal to the first preset duration threshold, and the first target gaze area belongs to the preset distraction area;
  • the cumulative duration of the driver's gaze on the second target gaze area within the first preset time window is greater than or equal to the second preset duration threshold, and the second target gaze area does not belong to the preset concentration area;
  • the driver's continuous gaze on the third target gaze area is greater than or equal to the third preset duration threshold, and the third target gaze area belongs to other distraction areas;
  • the weighted scores of multiple target gaze areas determined based on multiple consecutive frames of driver images are greater than or equal to a preset score threshold.
  • the area determining unit includes:
  • a calculation module configured to respectively calculate whether the line of sight direction intersects with each of the plurality of preset gaze areas, wherein the preset gaze areas include a preset concentration area and/or a preset distraction area;
  • a determination module configured to determine the intersecting preset gaze area as the target gaze area when the line of sight direction intersects with only one preset gaze area; or, when the line of sight direction intersects with at least two preset gaze areas , select the highest priority preset gaze area from at least two preset gaze areas according to the preset area priority, and determine the highest priority preset gaze area as the target gaze area; or, characterize the driver in the line of sight direction
  • the gaze area to which the gaze direction belongs is determined to be other distraction areas, and the other distraction areas are classified.
  • the heart area is determined as the target fixation area.
  • the recognition unit is used to recognize the driver's image based on the sight recognition model and obtain the sight direction in the camera coordinate system.
  • the calculation module is used to convert the line of sight direction from the camera coordinate system to the body coordinate system when the external parameter calibration of the internal view camera is valid, and calculate the body coordinates respectively. Whether the line of sight direction under the system intersects with each of the multiple preset gaze areas under the body coordinate system.
  • the device further includes:
  • a calculation unit used to calculate the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system when the external parameter calibration of the internal view camera fails;
  • the distraction determination unit is also configured to be greater than or equal to the fourth preset duration threshold when the included angle is continuously greater than or equal to the preset included angle threshold, or, within the second preset time window, the included angle is greater than or equal to the preset
  • the cumulative duration of the angle threshold is greater than or equal to the fifth preset duration threshold, it is determined that the driver is in a distracted state.
  • the calculation unit is also used to calculate the historical driver image recognition based on N consecutive frames before calculating the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system.
  • the installation also includes:
  • the selection unit is used to select the average of N historical sight directions with the smallest variance as the sight reference vector, or select any historical sight direction among the N historical sight directions with the smallest variance as the sight reference vector.
  • the recognition unit is also used to identify the driver's head rotation angle in the driver image based on the head rotation angle recognition model when the external parameter calibration of the internal view camera fails.
  • the distraction determination unit is also configured to be greater than or equal to the sixth preset duration threshold when the head rotation angle is continuously greater than or equal to the preset angle threshold, or, within the third preset time window, the head rotation angle is greater than or equal to the preset angle threshold. If the cumulative duration of the angle threshold is greater than or equal to the seventh preset duration threshold, it is determined that the driver is in a distracted state.
  • the device further includes:
  • a judgment unit used to judge whether the vehicle meets the preset preconditions before determining that the driver is in a distracted state when it is judged that the preset distraction conditions are met;
  • the distraction determination unit is also used to determine that the driver is in a distracted state when the vehicle meets the preset preconditions; when the vehicle does not meet the preset preconditions, it determines that the driver is in a distracted state. In the case where it is determined that the driver is in a distracted state, it is not determined that the preset distraction conditions are met;
  • the preset preconditions include at least one of the following:
  • the internal camera is in an unobstructed state
  • Vehicle speed is greater than 0;
  • the vehicle is in a non-traffic jam state
  • the vehicle is not in special condition
  • the special status includes: when the vehicle is in a preset scene and the driver is in a non-fatigued state, the body posture is the same as the preset steering and the vehicle speed is within the preset safe range.
  • the preset scene includes at least 100% in steering, parking, and reversing. One item.
  • the device further includes:
  • the output unit is used to output driving fatigue prompt information when the direction of vision indicates that the driver is in a closed-eyes state, and the driver's continuous eye-closure duration is greater than or equal to the eighth preset duration threshold;
  • a clearing unit configured to clear target statistical information for distraction judgment, where the target statistical information includes timing information and/or weighted score information.
  • the device further includes:
  • the statistical unit is used to represent the driver's eyes in a closed state in the direction of the gaze, and when the continuous closing of both eyes is greater than or equal to the ninth preset duration threshold and then one eye is opened, re-statistical target statistical information; or, to represent the driver in the direction of the gaze.
  • the target statistical information is re-calculated.
  • the preset distraction area corresponds to at least one distraction level, and the distraction level of the preset distraction area has a negative correlation with the first preset duration threshold.
  • the preset distraction areas corresponding to the first distraction level include the interior rearview mirror, the central control screen, the left window, the left rearview mirror, the right side At least one of the car window, the right rearview mirror, and the control panel, the preset distraction area corresponding to the second distraction level includes the left door and/or the right door, and the preset concentration area includes the front windshield.
  • embodiments of the present application provide a storage medium on which a computer program is stored.
  • the program is executed by a processor, the method described in any possible implementation manner of the first aspect is implemented.
  • inventions of the present application provide an electronic device.
  • the electronic device includes:
  • processors one or more processors
  • a storage device for storing one or more programs
  • the electronic device When one or more programs are executed by one or more processors, the electronic device is caused to implement the method described in any possible implementation manner of the first aspect.
  • embodiments of the present application provide a vehicle, which includes the device as described in any possible implementation of the second aspect, or the electronic device as described in the fourth aspect.
  • Figure 1 is a schematic flowchart of a distraction judgment method provided by an embodiment of the present application.
  • Figure 2 is a schematic flow chart of another distraction judgment method provided by an embodiment of the present application.
  • Figure 3 is a schematic flowchart of yet another distraction judgment method provided by an embodiment of the present application.
  • Figure 4 is a schematic flowchart of yet another distraction judgment method provided by an embodiment of the present application.
  • Figure 5 is a schematic flowchart of yet another distraction judgment method provided by an embodiment of the present application.
  • Figure 6 is a block diagram of a distraction judgment device provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of a vehicle architecture provided by an embodiment of the present application.
  • Figure 1 is a schematic flow chart of a distraction judgment method. This method can be applied to vehicles or servers. The method can include the following steps:
  • S110 Identify the gaze direction in the driver's image based on the gaze recognition model.
  • the internal camera installed inside the vehicle can collect the driver's image and transmit the collected driver's image to the electronic device for distraction judgment, so that the electronic device can extract the eye part from the driver's image.
  • the electronic devices used for distraction judgment include ECU (Electronic Control Unit, Electronic Control Unit) in the vehicle and other controllers or servers used for distraction judgment.
  • the gaze recognition model can be trained based on the eye features of a large number of driver images collected in advance, and the gaze recognition model can be a linear regression model or other models.
  • this step recognizes the driver's image based on the sight recognition model, and obtains the sight direction in the camera coordinate system.
  • S120 Determine the target gaze area to which the sight direction belongs.
  • the category of the target gaze area includes at least one of a preset concentration area, a preset distraction area and other distraction areas.
  • the preset concentration area is the gaze area where the driver is definitely driving attentively.
  • the preset distraction area is the preset gaze area where the driver may be distracted.
  • the other distraction areas are the unknown gaze where the driver may be distracted. area.
  • the default concentration area includes the front windshield
  • the default distraction area includes the interior rearview mirror, central control screen, left window, left rearview mirror, right side window, right rearview mirror, control panel, and left door and at least one item in the right door, and other distraction areas are gaze areas other than the preset concentration area and the preset distraction area.
  • the preset distraction area in order to improve the accuracy of subsequent distraction judgments, can be divided into at least one distraction level, and different distraction judgment criteria can be configured for different distraction levels.
  • the preset distraction area corresponds to at least one distraction level, and the distraction level of the preset distraction area is negatively correlated with the first preset duration threshold.
  • the preset distraction area corresponding to the first distraction level includes at least one of the interior rearview mirror, central control screen, left window, left rearview mirror, right window, right rearview mirror, and control panel.
  • the preset distraction area corresponding to the second distraction level includes the left door and/or the right door, and the preset concentration area includes the front windshield.
  • the first preset duration threshold please refer to the detailed explanation of S130 and will not be described again here.
  • the target gaze area in the embodiment of the present application is not limited to the physical area in the vehicle, and can also be a logical area.
  • a logical area can include one or more complete physical areas, or partial areas of one or more physical areas. For example, three logical areas can be divided into left, middle and right based on the driver looking straight ahead. , where the middle area is the preset distraction area, the left and right areas are the preset distraction areas, and the remaining areas are other distraction areas.
  • step S120 The specific implementation process of step S120 is introduced in detail below, as shown in Figure 2.
  • the process includes:
  • S121 Calculate whether the line of sight direction intersects with each of the plurality of preset gaze areas.
  • the preset attention area includes a preset concentration area and/or a preset distraction area.
  • the line of sight direction is converted from the camera coordinate system to the body coordinate system, and the line of sight direction in the body coordinate system and the multiple preset gaze areas in the body coordinate system are calculated respectively. Whether each preset gaze area intersects.
  • S123 When the sight direction intersects with at least two preset gaze areas, select the preset gaze area with the highest priority from the at least two preset gaze areas according to the priority of the preset area, and add the preset gaze area with the highest priority to the preset gaze area. Let the gaze area be determined as the target gaze area. It can be understood that in the embodiment of the present application, when the line of sight direction intersects two preset gaze areas, the preset gaze area with the highest priority is the preset gaze area with higher priority among the two preset gaze areas. .
  • a configuration file including the priority of each preset gaze area (ie, the preset area priority) can be set in the electronic device in advance.
  • the configuration file can be set from Read the preset area priority from the configuration file, determine the preset gaze area with the highest priority among at least two preset gaze areas based on the preset area priority, and determine the preset gaze area with the highest priority as the target gaze. area.
  • the preset area priority can be determined based on experimental experience, for example, right rearview mirror > right window.
  • the driver's gaze direction can be divided into other distraction areas.
  • the driver is in the eyes-closed state, it can also be explained that the driver is not paying attention. Focus on any of the above preset gaze areas, so the driver's gaze direction can also be divided into other distraction areas.
  • the embodiment of the present application can not only determine the target gaze area by determining whether the line of sight direction intersects with each of the plurality of preset gaze areas, but also determine the target gaze area in the line of sight direction with at least two preset gaze areas.
  • the preset gaze areas intersect, the preset gaze area that the driver is really looking at is determined accurately and quickly based on the priority of the preset area.
  • Preset distraction conditions include at least one of the following:
  • the duration of the driver's continuous gaze on the first target gaze area is greater than or equal to the first preset duration threshold, and the first target gaze area belongs to the preset distraction area;
  • the cumulative duration of the driver's gaze on the second target gaze area within the first preset time window is greater than or equal to the second preset duration threshold, and the second target gaze area does not belong to the preset concentration area;
  • the driver's continuous gaze on the third target gaze area is greater than or equal to the third preset duration threshold, and the third target gaze area belongs to other distraction areas;
  • the weighted scores of multiple target gaze areas determined based on multiple consecutive frames of driver images are greater than or equal to a preset score threshold.
  • the meaning of continuous gaze includes not only literal continuous gaze, but also includes the total duration of gaze actions exceeding a preset value within a predetermined time period.
  • the meaning of continuous multiple frames can also include that the total number of frames of driver images collected exceeds a preset value within a predetermined time period.
  • the driver's continuous gaze on the first target gaze area includes the driver's continuous gaze on the same first target gaze area; the driver's cumulative gaze on the second target gaze area within the first preset time window includes the driver's gaze on the second target gaze area within the first preset time window.
  • the cumulative gaze on at least one second target gaze area; the driver's continuous gaze on the third target gaze area includes the driver's continuous gaze on at least one third target gaze area.
  • the first preset duration threshold, the second preset duration threshold, the third preset duration threshold, the first preset time window and the preset score threshold are actual empirical values.
  • the first preset duration threshold can be 2.5s
  • the second preset duration threshold may be 10s
  • the third preset duration threshold may be 2s
  • the first preset time window may be 30s
  • the preset score threshold may be 80.
  • the preset distraction area includes at least one distraction level
  • the distraction level of the preset distraction area is negatively correlated with the first preset duration threshold, that is, the higher the distraction level, the smaller the first preset duration threshold.
  • the first preset duration threshold corresponding to the first distraction level is 2.5s
  • the first preset duration threshold corresponding to the second distraction level is 2s.
  • the weight of each target gaze area involved can be distributed according to the safety factor of different target gaze areas, and the weight is an actual empirical value. For example, when assigning weights, the weight of the preset concentration area ⁇ the weight of the preset distraction area of the first distraction level ⁇ the weight of the preset distraction area of the second distraction level ⁇ the weight of other distraction areas.
  • the preset distraction conditions include at least one of the following:
  • the driver continuously looks at the same preset distraction area of the first distraction level for longer than or equal to 2.5 seconds;
  • the driver continuously looks at the same preset distraction area of the second distraction level for longer than or equal to 2 seconds;
  • the cumulative duration of the driver's gaze on non-preset concentration areas (i.e. areas that do not belong to the preset concentration areas) within 30 seconds is greater than or equal to 10 seconds;
  • the driver continuously looks at other distracting areas for more than or equal to 2 seconds;
  • the weighted scores of multiple target gaze areas determined based on multiple consecutive frames of driver images are greater than or equal to 80 points.
  • the distraction reminder information can be output in text form or voice form, and can be output on the vehicle (such as the central control screen, Based on HUD (Head Up Display, head-up display) output on the front windshield), it can also be output on the user's mobile terminal (such as a mobile phone).
  • the electronic device that needs to be used for distraction judgment When outputting on the user's mobile terminal, the electronic device that needs to be used for distraction judgment generates the distraction reminder information, and then sends the distraction reminder information to the user's mobile terminal.
  • the distraction judgment method can first identify the line of sight in the driver's image based on the line of sight recognition model. direction, and then determine the target gaze area to which the gaze direction belongs. Finally, when the preset distraction conditions are met (distraction conditions set based on the duration of gazing at the target gaze area and/or weighted scores, etc.), it is determined that the driver is in state of distraction.
  • the embodiment of the present application combines the inward-looking camera necessary for intelligent driving with the distraction algorithm of the software to make distraction judgments without requiring the driver to wear additional equipment, thereby not only not affecting the driver's driving comfort degree, and the accuracy of distraction judgment will not be reduced due to inaccurate data collection.
  • another embodiment of the present application also provides a distraction judgment method, as shown in Figure 3, the method includes:
  • S210 Identify the gaze direction in the driver's image based on the gaze recognition model.
  • the internal camera includes extrinsic parameter calibration and intrinsic parameter calibration.
  • the calculation in the camera coordinate system can be determined based on the intrinsic parameter calibration, while the rotation and translation from the camera coordinate system to the body coordinate system need to rely on the extrinsic parameter calibration. Therefore, when the external parameter calibration is valid, the method described in S220-S230 can be used to perform distraction judgment; when the external parameter calibration is invalid, the method described in S240-S250 can be used to perform the distraction judgment.
  • S220 When the external parameter calibration of the inner-view camera is valid, determine the target gaze area to which the line of sight direction belongs.
  • the calculation process of the gaze reference vector includes: calculating the variance of N historical gaze directions based on the recognition of N consecutive frames of historical driver images, where N is a positive integer; selecting the average of the N historical gaze directions with the smallest variance as the gaze Reference vector, or select any historical line of sight direction among the N historical line of sight directions with the smallest variance as the line of sight reference vector.
  • the value of N can be determined based on actual experience, for example, it can be 10.
  • N consecutive frames of historical driver images calculated in different batches can be different, or some frames can be different and some frames can be the same.
  • the preset angle threshold, the fourth preset duration threshold, the second preset time window and the fifth preset duration threshold can be determined based on actual experience.
  • the preset angle threshold can be 20 degrees
  • the fourth preset duration The threshold may be 2.5s
  • the second preset time window may be 28s
  • the fifth preset duration threshold may be 8s.
  • the distraction judgment method provided by the embodiment of the present application can perform distraction judgment based on the target gaze area to which the driver's line of sight direction belongs when the internal camera's external parameter calibration is valid, and when the internal camera's external parameter calibration fails Distraction judgment is made by using the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system that does not rely on external parameter calibration. This not only eliminates the need for the driver to wear additional equipment, but also avoids the inability to determine the target gaze area. And lead to distraction and interruption of judgment.
  • another embodiment of the present application also provides a distraction judgment method, as shown in Figure 4.
  • This method can use S310-S330 when the external parameter calibration of the internal camera is valid.
  • the distraction judgment method described in S340-S350 is used.
  • the specific process includes:
  • S330 Determine the target gaze area to which the sight direction belongs.
  • the electronic device extracts head features from the driver's image and inputs the head features into the head angle recognition model to identify the head angle.
  • the head angle recognition model can be trained based on the head features of a large number of driver images collected in advance, and the head angle recognition model can be a linear regression model or other models.
  • S360 The duration in which the head rotation angle is continuously greater than or equal to the preset angle threshold is greater than or equal to the sixth preset duration threshold, or, within the third preset time window, the cumulative duration in which the head rotation angle is greater than or equal to the preset angle threshold If it is greater than or equal to the seventh preset duration threshold, it is determined that the driver is in a distracted state.
  • the preset angle threshold, the sixth preset duration threshold, the third preset time window and the seventh preset duration threshold can be determined based on actual experience.
  • the preset angle threshold can be 45 degrees
  • the sixth preset duration threshold can be 2.5 s
  • the third preset time window may be 29s
  • the seventh preset duration threshold may be 9s.
  • the distraction judgment method provided by the embodiment of the present application can perform distraction judgment based on the target gaze area to which the driver's line of sight direction belongs when the internal camera's external parameter calibration is valid, and when the internal camera's external parameter calibration fails Under this method, distraction judgment is made by not relying on the head rotation angle in the camera coordinate system calibrated by external parameters. This not only eliminates the need for the driver to wear additional equipment, but also avoids the interruption of distraction judgment due to the inability to determine the target gaze area.
  • another embodiment of the present application also provides a distraction judgment method, as shown in Figure 5, the method includes:
  • step S410 Determine whether the vehicle meets the preset preconditions. If the vehicle meets the preset preconditions, step S420 is executed; otherwise, step S410 is continued.
  • Preset preconditions can be used to exclude special scenarios in which driver distraction has nothing to do with vehicle safety, thereby saving resources and improving distraction judgment accuracy.
  • the preset preconditions include at least one of the following:
  • the internal camera is in an unobstructed state
  • Vehicle speed is greater than 0;
  • the vehicle is in a non-traffic jam state
  • the vehicle is not in special condition
  • the special status includes: when the vehicle is in a preset scene and the driver is in a non-fatigued state, the body posture is the same as the preset steering and the vehicle speed is within the preset safe range.
  • the preset scene includes at least 100% in steering, parking, and reversing. One item.
  • the methods used in the embodiments of this application to detect whether the driver is in a fatigue state include but are not limited to the following: (1) The duration of continuous eye closure is greater than a certain threshold; (2) Drowsy Driver Detection System based on DDS (The Drowsy Driver Detection System) ) Carry out fatigue detection, that is, scan the pupil condition through radar and determine the driver's fatigue state through data analysis; (3) By detecting the driver's heart rate variability, and determine the driver's fatigue state based on the heart rate variability.
  • the preset steering includes left turn, right turn, and straight drive, and the body posture also includes left turn, right turn, and straight drive.
  • the average speed of the vehicle in the recent period can be used as the preset safety range, and the preset safety ranges of different vehicles can be different in different time periods.
  • S430 Determine the target gaze area to which the sight direction belongs.
  • the embodiment of the present application starts with the execution timing of "judging whether the vehicle satisfies the preset preconditions" as an example.
  • the execution timing of "judging whether the vehicle satisfies the preset preconditions” only needs to be "in When it is determined that the preset distraction conditions are met, it can be any time before it is determined that the driver is in a distracted state. That is, the execution timing of S410 can be before, after, or even at the same time as S420 (or S430).
  • the distraction determination method first uses the preset preconditions to exclude special scenarios in which whether the driver is distracted and has nothing to do with vehicle safety before determining whether the preset distraction conditions are met, that is, only if the preset preconditions are met. Distraction judgment will only be made when conditions exist, which can save resources and improve the accuracy of distraction judgment.
  • embodiments of the present application can also represent that the driver is in a closed-eyes state in the direction of the line of sight, and the driving state is When the driver's continuous eye-closure duration is greater than or equal to the eighth preset duration threshold, driving fatigue prompt information is output, and target statistical information for distraction judgment is cleared, where the target statistical information includes timing information and/or weighted score information.
  • the eighth preset duration threshold can be determined based on actual experience, and can be, for example, 2.5 seconds.
  • the target statistical information is re-calculated;
  • the target statistical information is re-calculated.
  • the eighth preset duration threshold can be determined based on actual experience, and can be, for example, 2.5 seconds.
  • inventions of the present application provide a distraction judgment device, as shown in Figure 6.
  • the device includes:
  • the recognition unit 50 is used to identify the gaze direction in the driver's image based on the gaze recognition model
  • the area determination unit 52 is used to determine the target gaze area to which the line of sight direction belongs;
  • the distraction determination unit 54 is used to determine that the driver is in a distracted state when it is determined that the preset distraction conditions are met;
  • the category of the target gaze area includes at least one of a preset concentration area, a preset distraction area and other distraction areas;
  • Preset distraction conditions include at least one of the following:
  • the duration of the driver's continuous gaze on the first target gaze area is greater than or equal to the first preset duration threshold, and the first target gaze area belongs to the preset distraction area;
  • the cumulative duration of the driver's gaze on the second target gaze area within the first preset time window is greater than or equal to the second preset duration threshold, and the second target gaze area does not belong to the preset concentration area;
  • the driver's continuous gaze on the third target gaze area is greater than or equal to the third preset duration threshold, and the third target gaze area belongs to other distraction areas;
  • the weighted scores of multiple target gaze areas determined based on multiple consecutive frames of driver images are greater than or equal to a preset score threshold.
  • the area determination unit 52 includes:
  • a calculation module configured to respectively calculate whether the line of sight direction intersects with each of the plurality of preset gaze areas, wherein the preset gaze areas include a preset concentration area and/or a preset distraction area;
  • a determination module configured to determine the intersecting preset gaze area as the target gaze area when the line of sight direction intersects with only one preset gaze area; or, when the line of sight direction intersects with at least two preset gaze areas , select the highest priority preset gaze area from at least two preset gaze areas according to the preset area priority, and determine the highest priority preset gaze area as the target gaze area; or, characterize the driver in the line of sight direction
  • the gaze area to which the gaze direction belongs is determined to be other distraction areas, and the other distraction areas are classified.
  • the heart area is determined as the target fixation area.
  • the recognition unit 50 is used to recognize the driver's image based on the sight recognition model and obtain the sight direction in the camera coordinate system.
  • the calculation module is used to convert the line of sight direction from the camera coordinate system to the body coordinate system when the external parameter calibration of the internal view camera is valid, and calculate the line of sight direction and the body line in the body coordinate system respectively. Whether each of the multiple preset gaze areas under the coordinate system intersects.
  • the device further includes:
  • a calculation unit used to calculate the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system when the external parameter calibration of the internal view camera fails;
  • the distraction determination unit 54 is also configured to be greater than or equal to the fourth preset duration threshold when the included angle is continuously greater than or equal to the preset included angle threshold, or, within the second preset time window, the included angle is greater than or equal to the preset included angle threshold. If the cumulative duration of the angle threshold is greater than or equal to the fifth preset duration threshold, it is determined that the driver is in a distracted state.
  • the calculation unit is also configured to calculate the N historical sight directions based on the recognition of N consecutive frames of historical driver images before calculating the angle between the sight direction in the camera coordinate system and the sight reference vector.
  • N is a positive integer
  • the installation also includes:
  • the selection unit is used to select the average of N historical sight directions with the smallest variance as the sight reference vector, or select any historical sight direction among the N historical sight directions with the smallest variance as the sight reference vector.
  • the identification unit 50 is also used to identify the driver's head angle in the driver's image based on the head angle recognition model when the external parameter calibration of the internal view camera fails;
  • the distraction determination unit 54 is also configured to be greater than or equal to the sixth preset duration threshold when the head rotation angle is continuously greater than or equal to the preset angle threshold, or, within the third preset time window, the head rotation angle is greater than or equal to When the cumulative duration of the preset angle threshold is greater than or equal to the seventh preset duration threshold, it is determined that the driver is in a distracted state.
  • the device further includes:
  • a judgment unit used to judge whether the vehicle meets the preset preconditions before determining that the driver is in a distracted state when it is judged that the preset distraction conditions are met;
  • the distraction determination unit 54 is also used to determine that the driver is in a distracted state when the vehicle satisfies the preset preconditions; when the vehicle does not satisfy the preset preconditions, If the conditions are met, it will not be executed and it will be determined that the driver is in a distracted state if it is determined that the preset distraction conditions are met;
  • the preset preconditions include at least one of the following:
  • the internal camera is in an unobstructed state
  • Vehicle speed is greater than 0;
  • the vehicle is in a non-traffic jam state
  • the vehicle is not in special condition
  • the special status includes: when the vehicle is in a preset scene and the driver is in a non-fatigued state, the body posture is the same as the preset steering and the vehicle speed is within the preset safe range.
  • the preset scene includes at least 100% in steering, parking, and reversing. One item.
  • the device further includes:
  • the output unit is used to output driving fatigue prompt information when the direction of vision indicates that the driver is in a closed-eyes state, and the driver's continuous eye-closure duration is greater than or equal to the eighth preset duration threshold;
  • a clearing unit configured to clear target statistical information for distraction judgment, where the target statistical information includes timing information and/or weighted score information.
  • the device further includes:
  • the statistical unit is used to represent the driver's eyes in a closed state in the direction of the gaze, and when the continuous closing of both eyes is greater than or equal to the ninth preset duration threshold and then one eye is opened, re-statistical target statistical information; or, to represent the driver in the direction of the gaze.
  • the target statistical information is re-calculated.
  • the preset distraction area corresponds to at least one distraction level, and the distraction level of the preset distraction area is negatively correlated with the first preset duration threshold.
  • the preset distraction areas corresponding to the first distraction level include interior rearview mirror, central control screen, left side window, left rearview mirror, right side window, right rearview mirror, At least one item in the control panel, the preset distraction area corresponding to the second distraction level includes the left door and/or the right door, and the preset concentration area includes the front windshield.
  • another embodiment of the present application provides a storage medium on which executable instructions are stored. When executed by a processor, the instructions cause the processor to implement the method described in any of the above embodiments.
  • an electronic device or computer device including:
  • processors one or more processors
  • a storage device for storing one or more programs
  • the electronic device or computer device is caused to implement the method described in any of the above embodiments.
  • another embodiment of the present application provides a vehicle, which includes the device as described in any of the above embodiments, or includes the electronic device as described above.
  • the vehicle includes an interior rearview mirror 61, a central control screen 62, a left window 63, a left rearview mirror 64, a right window 65, a right rearview mirror 66, a control panel 67, and a left door 68.
  • Right door 69 front windshield 610 and interior camera 611.
  • the right door 69 belongs to the preset distraction area
  • the front windshield 610 belongs to the preset concentration area
  • other areas in the vehicle belong to other distraction areas.
  • the internal camera 611 is used to collect the driver's image information and transmit the driver's image information to the ECU and the like for distraction determination.
  • the driver's sight direction is represented by a dotted line, and the target gaze area corresponding to the sight direction is the front windshield 610, so the driver is in a focused state. It can be understood that the above methods of dividing the concentration area or the distraction area are exemplary and can also be divided according to the application scenario of the vehicle or other indicators, which is not limited in this application.
  • the vehicle also includes GPS (Global Positioning System, Global Positioning System) positioning equipment, V2X (Vehicle-to-Everything, Internet of Vehicles), T-Box (TelematicsBox, telematics processor), radar, and exterior cameras.
  • GPS positioning equipment is used to obtain vehicle location information
  • V2X is used to communicate with other vehicles, roadside equipment, etc.
  • radar or external cameras are used to sense road environment information ahead, and radar and/or external cameras can be configured on the vehicle body
  • T-Box can be used as a wireless gateway to provide remote communication interfaces for the entire vehicle through functions such as 4G/5G and other long-range wireless communications, GPS satellite positioning, acceleration sensing and CAN communications, including driving data. Collection, driving trajectory recording, vehicle fault monitoring, vehicle remote query and control (opening and closing, air conditioning control, window control, engine torque limit, engine start and stop), driving behavior analysis and other services.
  • modules in the device in the embodiment may be distributed in the device in the embodiment according to the description of the embodiment, or may be correspondingly changed and located in one or more devices different from this embodiment.
  • the modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)
  • Eye Examination Apparatus (AREA)
  • Traffic Control Systems (AREA)

Abstract

The present application relates to the technical field of automobiles. Disclosed are a distraction determination method and apparatus, and a storage medium, an electronic device and a vehicle, which are used in a distraction determination scenario, and can solve the problem that occurs in distraction determination based on an eye tracker. The method comprises: identifying a line-of-sight direction in a driver image; determining a target gaze area to which the line-of-sight direction belongs; and when a preset distraction condition is met, determining that a driver is in a distraction state, wherein the preset distraction condition comprises at least one of the following: the duration for continuously gazing at a target gaze area, which belongs to a preset distraction area, being greater than or equal to a first preset duration threshold value; a duration, accumulated in a first preset time window, for gazing at a target gaze area which does not belong to the preset concentration area being greater than or equal to a second preset duration threshold value; the duration for continuously gazing at a target gaze area which belongs to another distraction area being greater than or equal to a third preset duration threshold value; and a weighted score for a plurality of target gaze areas that are determined on the basis of a plurality of consecutive frames of driver images being greater than or equal to a preset score threshold value.

Description

分心判断方法、装置、存储介质、电子设备及车辆Distraction judgment methods, devices, storage media, electronic equipment and vehicles
相关申请的交叉引用Cross-references to related applications
本申请要求2022年03月25日提交中国专利局、申请号为202210297856.4、申请名称为“分心判断方法、装置、存储介质、电子设备及车辆”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on March 25, 2022, with the application number 202210297856.4 and the application name "Distraction Judgment Method, Device, Storage Medium, Electronic Equipment and Vehicle", and its entire content has been approved. This reference is incorporated into this application.
技术领域Technical field
本申请涉及汽车技术领域,具体而言,涉及一种分心判断方法、装置、存储介质、电子设备及车辆。The present application relates to the field of automotive technology, specifically, to a distraction judgment method, device, storage medium, electronic equipment and vehicle.
背景技术Background technique
随着生活水平的提高,汽车保有量越来越高,交通安全问题变得更加严峻。分心驾驶是一种较常见发生的、具有潜在风险的驾驶行为。分心驾驶会导致驾驶员注意力分散、视线离开路面,无法提前观察或自然忽略道路交通中的信息,还会引起驾驶姿势或操作动作的变化,不利于安全平稳操作车辆,从而很容易引起交通事故。With the improvement of living standards and the increasing number of cars, traffic safety problems have become more serious. Distracted driving is a common and potentially risky driving behavior. Distracted driving will cause the driver to lose his attention and leave the road, unable to observe in advance or naturally ignore the information in road traffic. It will also cause changes in driving posture or operating actions, which is not conducive to safe and smooth operation of the vehicle, and can easily cause traffic accidents. ACCIDENT.
相关技术中,可以基于眼动仪记录驾驶员的眼动轨迹特征,并通过分析驾驶员的眼球活动轨迹判断驾驶员是否处于分心状态。然而,眼动仪不但价格昂贵,不适合广泛应用,而且驾驶员头部活动很容易导致数据采集不准确,甚至驾驶员还可能因为佩戴眼动仪不适而造成分心驾驶。In related technologies, the driver's eye movement trajectory characteristics can be recorded based on an eye tracker, and whether the driver is in a distracted state can be determined by analyzing the driver's eye movement trajectory. However, eye trackers are not only expensive and not suitable for widespread use, but the driver's head movements can easily lead to inaccurate data collection, and the driver may even be distracted from driving due to the discomfort of wearing the eye tracker.
发明内容Contents of the invention
本申请提供了一种分心判断方法、装置、存储介质、电子设备及车辆,能够解决基于眼动仪进行驾驶员分心判断的相关技术存在的问题:(1)价格昂贵,不适合广泛应用,而且驾驶员头部活动很容易导致数据采集不准确;(2)驾驶员可能因为可穿戴式分心检测设备不适而造成分心驾驶。This application provides a distraction judgment method, device, storage medium, electronic equipment and vehicle, which can solve the problems existing in related technologies of driver distraction judgment based on eye trackers: (1) Expensive and not suitable for wide application , and the driver’s head movement can easily lead to inaccurate data collection; (2) The driver may be distracted by driving due to discomfort with the wearable distraction detection device.
具体的技术方案如下:The specific technical solutions are as follows:
第一方面,本申请实施例提供了一种分心判断方法,方法包括:In the first aspect, embodiments of the present application provide a distraction judgment method, which includes:
基于视线识别模型识别驾驶员图像中的视线方向;Identify the direction of gaze in the driver's image based on the gaze recognition model;
确定所述视线方向所属的目标注视区域;Determine the target gaze area to which the gaze direction belongs;
在判断满足预设分心条件的情况下,确定所述驾驶员处于分心状态;When it is determined that the preset distraction conditions are met, it is determined that the driver is in a distracted state;
其中,所述目标注视区域的类别包括预设专心区域、预设分心区域和其他分心区域中至少一项;Wherein, the category of the target gaze area includes at least one of a preset concentration area, a preset distraction area and other distraction areas;
所述预设分心条件包括以下至少一项:The preset distraction conditions include at least one of the following:
所述驾驶员连续注视第一目标注视区域的时长大于或等于第一预设时长阈值,所述第一目标注视区域属于所述预设分心区域;The duration of the driver's continuous gaze on the first target gaze area is greater than or equal to the first preset duration threshold, and the first target gaze area belongs to the preset distraction area;
所述驾驶员在第一预设时间窗口内累计注视第二目标注视区域的时长大于或等于第二预设时长阈值,所述第二目标注视区域不属于所述预设专心区域;The cumulative duration of the driver's gaze on the second target gaze area within the first preset time window is greater than or equal to the second preset duration threshold, and the second target gaze area does not belong to the preset concentration area;
所述驾驶员连续注视第三目标注视区域的时长大于或等于第三预设时长阈值,所述第三目标注视区域属于所述其他分心区域;The duration of the driver's continuous gaze on the third target gaze area is greater than or equal to the third preset duration threshold, and the third target gaze area belongs to the other distraction areas;
基于连续多帧所述的驾驶员图像确定的多个所述目标注视区域加权得分大于或等于预设分数阈值。A plurality of weighted scores of the target gaze areas determined based on the driver images of multiple consecutive frames are greater than or equal to a preset score threshold.
通过上述方案可知,与相关技术中需要使用可穿戴式分心检测设备,例如眼动仪,进行分心判断相比,本申请实施例能够先基于视线识别模型识别驾驶员图像中的视线方向,再确定该视线方向所属的目标注视区域,最后在满足预设分心条件(根据基于注视目标注视区域的时长和/或加权得分等设置的分心条件)的情况下,确定驾驶员处于分心状态。由此可知,本申请实施例通过将智能驾驶所必须的内视摄像头与软件的分心算法相结合做出分心判断,而无需驾驶员佩戴额外的设备,从而不仅不会影响驾驶员驾驶舒适度,还不会因为数据采集不准确而降低分心判断准确率。It can be seen from the above solution that compared with related technologies that require the use of wearable distraction detection equipment, such as eye trackers, to determine distraction, the embodiment of the present application can first identify the direction of the driver's gaze in the image based on the gaze recognition model, Then determine the target gaze area to which the gaze direction belongs, and finally determine that the driver is distracted when the preset distraction conditions are met (distraction conditions set based on the duration of gazing at the target gaze area and/or weighted scores, etc.) state. It can be seen from this that the embodiment of the present application combines the inward-looking camera necessary for intelligent driving with the distraction algorithm of the software to make distraction judgments without requiring the driver to wear additional equipment, thereby not only not affecting the driver's driving comfort degree, and the accuracy of distraction judgment will not be reduced due to inaccurate data collection.
在第一方面的第一种可能的实现方式中,确定视线方向所属的目标注视区域,包括:In a first possible implementation manner of the first aspect, determining the target gaze area to which the line of sight direction belongs includes:
分别计算视线方向与多个预设注视区域中的每一个预设注视区域是否相交,其中,预设注视区域包括预设专心区域和/或预设分心区域;Calculate respectively whether the line of sight direction intersects with each of the plurality of preset gaze areas, where the preset gaze areas include a preset concentration area and/or a preset distraction area;
在视线方向只与一个预设注视区域相交的情况下,将相交的预设注视区域确定为目标注视区域;或者,When the line of sight direction intersects only one preset gaze area, the intersecting preset gaze area is determined as the target gaze area; or,
在视线方向与至少两个预设注视区域相交的情况下,根据预设区域优先级从至少两个预设注视区域中选择优先级最高的预设注视区域,并将优先级最高的预设注视区域确定为目标注视区域;或者,When the line of sight direction intersects with at least two preset gaze areas, select the preset gaze area with the highest priority from the at least two preset gaze areas according to the preset area priority, and assign the preset gaze area with the highest priority to The area is determined as the target gaze area; or,
在视线方向表征驾驶员处于睁眼状态且视线方向与多个预设注视区域均不相交,或者,视线方向表征驾驶员处于闭眼状态的情况下,确定视线方向所属的注视区域为其他分心区域,并将其他分心区域确定为目标注视区域。When the gaze direction represents that the driver is in an eyes-open state and the gaze direction does not intersect with multiple preset gaze areas, or the gaze direction represents that the driver is in a closed-eyes state, determine that the gaze area to which the gaze direction belongs is other distractions area, and determine other distracting areas as target fixation areas.
通过上述方案可知,本申请实施例不仅可以通过判断视线方向与多个预设注视区域中的每一个预设注视区域是否相交的方式来确定目标注视区域,还可以在视线方向与至少两个预设注视区域相交的情况下,根据预设区域优先级准确快速的从中确定驾驶员真正注视的预设注视区域。可以理解的,本申请实施例中在视线方向与两个预设注视区域相交的情况下,优先级最高的预设注视区域即两个预设注视区域中具有更高优先级的预设注视区域。It can be seen from the above solution that the embodiment of the present application can not only determine whether the line of sight direction intersects with each of the plurality of preset attention areas, but also determine the target gaze area in the line of sight direction and at least two preset gaze areas. If the gaze areas intersect, the preset gaze area that the driver is really looking at can be accurately and quickly determined based on the preset region priority. It can be understood that in the embodiment of the present application, when the line of sight direction intersects two preset gaze areas, the preset gaze area with the highest priority is the preset gaze area with higher priority among the two preset gaze areas. .
在第一方面的第二种可能的实现方式中,基于视线识别模型识别驾驶员图像中的视线方向,包括:In a second possible implementation of the first aspect, identifying the gaze direction in the driver's image based on the gaze recognition model includes:
基于视线识别模型对驾驶员图像进行识别,获得相机坐标系下的视线方向。Based on the sight recognition model, the driver's image is recognized and the sight direction in the camera coordinate system is obtained.
在第一方面的第三种可能的实现方式中,分别计算视线方向与多个预设注视区域中的每一个预设注视区域是否相交,包括:In a third possible implementation of the first aspect, separately calculating whether the line of sight direction intersects with each of the plurality of preset gaze areas includes:
在内视摄像头的外参标定有效的情况下,将视线方向从相机坐标系转换到车身坐标系下,分别计算车身坐标系下的视线方向与车身坐标系下的多个预设注视区域中的每一个预设注视区域是否相交。When the external parameter calibration of the internal camera is valid, the line of sight direction is converted from the camera coordinate system to the body coordinate system, and the line of sight direction in the body coordinate system and the multiple preset gaze areas in the body coordinate system are calculated respectively. Whether each preset gaze area intersects.
在第一方面的第四种可能的实现方式中,方法还包括:In the fourth possible implementation manner of the first aspect, the method further includes:
在内视摄像头的外参标定失效的情况下,计算相机坐标系下的视线方向与视线基准向量之间的夹角;When the external parameter calibration of the internal camera fails, calculate the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system;
在夹角连续大于或等于预设夹角阈值的时长大于或等于第四预设时长阈值,或者,在第二 预设时间窗口内,夹角大于或等于预设夹角阈值的累计时长大于或等于第五预设时长阈值的情况下,确定驾驶员处于分心状态。When the included angle is continuously greater than or equal to the preset included angle threshold, the duration is greater than or equal to the fourth preset included angle threshold, or, within the second preset time window, the cumulative duration for which the included angle is greater than or equal to the preset included angle threshold is greater than or equal to the preset included angle threshold. When equal to the fifth preset duration threshold, it is determined that the driver is in a distracted state.
通过上述方案可知,在内视摄像头的外参标定失效的情况下,可以通过不依赖外参标定的相机坐标系下的视线方向与视线基准向量之间的夹角来进行分心判断,从而避免无法确定目标注视区域而导致分心判断中断。It can be seen from the above solution that when the external parameter calibration of the internal view camera fails, distraction judgment can be made by using the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system that does not rely on the external parameter calibration, thereby avoiding distraction. Interruption of distraction judgments due to inability to determine the target fixation area.
在第一方面的第五种可能的实现方式中,在计算相机坐标系下的视线方向与视线基准向量之间的夹角之前,方法还包括:In the fifth possible implementation of the first aspect, before calculating the angle between the line of sight direction in the camera coordinate system and the line of sight reference vector, the method further includes:
计算基于连续N帧历史驾驶员图像识别的N个历史视线方向的方差,其中,N为正整数;Calculate the variance of N historical sight directions based on N consecutive frames of historical driver image recognition, where N is a positive integer;
选取方差最小的N个历史视线方向的平均值作为视线基准向量,或者,选取方差最小的N个历史视线方向中任一历史视线方向作为视线基准向量。The average of the N historical sight directions with the smallest variance is selected as the sight reference vector, or any historical sight direction among the N historical sight directions with the smallest variance is selected as the sight reference vector.
在第一方面的第六种可能的实现方式中,方法还包括:In the sixth possible implementation manner of the first aspect, the method further includes:
在内视摄像头的外参标定失效的情况下,基于头部转角识别模型识别驾驶员图像中驾驶员的头部转角;When the external parameter calibration of the internal camera fails, the driver's head angle in the driver image is recognized based on the head angle recognition model;
在头部转角连续大于或等于预设角度阈值的时长大于或等于第六预设时长阈值,或者,在第三预设时间窗口内,头部转角大于或等于预设角度阈值的累计时长大于或等于第七预设时长阈值的情况下,确定驾驶员处于分心状态。The duration during which the head rotation angle is continuously greater than or equal to the preset angle threshold is greater than or equal to the sixth preset duration threshold, or, within the third preset time window, the cumulative duration during which the head rotation angle is greater than or equal to the preset angle threshold is greater than or equal to the preset angle threshold. When equal to the seventh preset duration threshold, it is determined that the driver is in a distracted state.
通过上述方案可知,在内视摄像头的外参标定失效的情况下,可以通过不依赖外参标定的相机坐标系下的头部转角来进行分心判断,从而避免无法确定目标注视区域而导致分心判断中断。It can be seen from the above solution that when the external parameter calibration of the internal-view camera fails, distraction judgment can be made through the head rotation angle in the camera coordinate system that does not rely on external parameter calibration, thereby avoiding the inability to determine the target gaze area and causing distraction. Mental judgment is interrupted.
在第一方面的第七种可能的实现方式中,在判断满足预设分心条件的情况下,确定驾驶员处于分心状态之前,方法还包括:In a seventh possible implementation manner of the first aspect, before determining that the driver is in a distracted state when it is determined that the preset distraction condition is met, the method further includes:
判断车辆是否满足预设前置条件;Determine whether the vehicle meets the preset preconditions;
在车辆满足预设前置条件的情况下,执行在判断满足预设分心条件的情况下,确定驾驶员处于分心状态;When the vehicle meets the preset preconditions, it is executed to determine that the driver is in a distracted state when it is judged that the preset distraction conditions are met;
在车辆不满足预设前置条件的情况下,不执行在判断满足预设分心条件的情况下,确定驾驶员处于分心状态;If the vehicle does not meet the preset preconditions, it will not be executed. If it is determined that the preset distraction conditions are met, it will be determined that the driver is in a distracted state;
其中,预设前置条件包括以下至少一项:Among them, the preset preconditions include at least one of the following:
内视摄像头处于未遮挡状态;The internal camera is in an unobstructed state;
车速大于0;Vehicle speed is greater than 0;
车辆处于非堵车状态;The vehicle is in a non-traffic jam state;
车辆未处于特殊状态;The vehicle is not in special condition;
特殊状态包括:当车辆处于预设场景下且驾驶员处于非疲劳状态时,车身姿态与预置转向相同且车速处于预设安全范围内,其中,预设场景包括转向、泊车、倒车中至少一项。The special status includes: when the vehicle is in a preset scene and the driver is in a non-fatigued state, the body posture is the same as the preset steering and the vehicle speed is within the preset safe range. The preset scene includes at least 100% in steering, parking, and reversing. One item.
通过上述方案可知,在判断是否满足预设分心条件之前,先通过预设前置条件排除驾驶员是否分心与车辆安全无关的特殊场景,即只有满足预设前置条件时才会进行分心判断,从而可以节约资源、提高分心判断的准确率。It can be seen from the above solution that before judging whether the preset distraction conditions are met, the preset preconditions are used to exclude special scenarios in which whether the driver is distracted and has nothing to do with vehicle safety. That is, the analysis will only be performed when the preset preconditions are met. It can save resources and improve the accuracy of distracted judgment.
在第一方面的第八种可能的实现方式中,方法还包括:In the eighth possible implementation manner of the first aspect, the method further includes:
在视线方向表征驾驶员处于闭眼状态,且驾驶员连续闭眼时长大于或等于第八预设时长阈值的情况下,输出驾驶疲劳提示信息,并清空针对分心判断的目标统计信息,其中,目标统计 信息包括计时信息和/或加权得分信息。When the gaze direction indicates that the driver is in a closed-eyes state, and the driver's continuous eye-closure duration is greater than or equal to the eighth preset duration threshold, the driving fatigue prompt information is output, and the target statistical information for distraction judgment is cleared, where, Goal statistics include timing information and/or weighted scoring information.
通过上述方案可知,本申请实施例不仅能够检测出疲劳驾驶,输出驾驶疲劳提示信息,还能够将疲劳驾驶与分心驾驶区分开,在驾驶员处于疲劳驾驶时,清空针对分心判断的目标统计信息,从而可以对不同状态有针对性地进行分析与管理。It can be seen from the above solution that the embodiments of the present application can not only detect fatigue driving and output driving fatigue prompt information, but also distinguish fatigue driving from distracted driving. When the driver is driving fatigue, clear the target statistics for distraction judgment. information, so that different states can be analyzed and managed in a targeted manner.
在第一方面的第九种可能的实现方式中,方法还包括:In the ninth possible implementation manner of the first aspect, the method further includes:
在视线方向表征驾驶员处于双眼闭合状态,且双眼连续闭合时长大于或等于第九预设时长阈值后单眼睁开时,重新统计目标统计信息;When the gaze direction indicates that the driver's eyes are closed, and the continuous closing duration of both eyes is greater than or equal to the ninth preset duration threshold and then one eye is opened, the target statistical information is re-calculated;
或者,在视线方向表征驾驶员处于单眼闭合状态,且单眼连续闭合时长大于或等于第九预设时长阈值时,重新统计目标统计信息。Or, when the sight direction indicates that the driver is in a closed state of one eye, and the continuous closing duration of one eye is greater than or equal to the ninth preset duration threshold, the target statistical information is re-calculated.
通过上述方案可知,本申请实施例可以检测出驾驶员高频眨眼情况,并在这种情况下,重新统计目标统计信息,从而可以排除高频眨眼对分心判断的影响。It can be seen from the above solution that the embodiment of the present application can detect the driver's high-frequency blinking, and in this case, re-calculate the target statistical information, thereby eliminating the impact of high-frequency blinking on distraction judgment.
在第一方面的第十种可能的实现方式中,预设分心区域对应于至少一个分心等级,预设分心区域的分心等级与第一预设时长阈值呈负相关关系。In a tenth possible implementation manner of the first aspect, the preset distraction area corresponds to at least one distraction level, and the distraction level of the preset distraction area has a negative correlation with the first preset duration threshold.
通过上述方案可知,本申请实施例将预设分心区域划分成至少一个分心等级,从而可以更细粒度地针对不同分心等级预设分心区域注视情况进行分心判断,进而提高了分心判断的准确率。It can be seen from the above solution that the embodiment of the present application divides the preset distraction area into at least one distraction level, so that distraction judgments can be made in a more fine-grained manner based on the gaze conditions of the preset distraction areas at different distraction levels, thereby improving the accuracy of the analysis. The accuracy of mental judgment.
在第一方面的第十一种可能的实现方式中,与第一分心等级对应的预设分心区域包括内后视镜、中控屏、左侧车窗、左后视镜、右侧车窗、右后视镜、控制面板中至少一项,与第二分心等级对应的预设分心区域包括左侧门和/或右侧门,预设专心区域包括前风挡玻璃。In an eleventh possible implementation manner of the first aspect, the preset distraction areas corresponding to the first distraction level include the interior rearview mirror, central control screen, left side window, left rearview mirror, right side At least one of the car window, the right rearview mirror, and the control panel, the preset distraction area corresponding to the second distraction level includes the left door and/or the right door, and the preset concentration area includes the front windshield.
第二方面,本申请实施例提供了一种分心判断装置,装置包括:In the second aspect, embodiments of the present application provide a distraction judgment device, which includes:
识别单元,用于基于视线识别模型识别驾驶员图像中的视线方向;A recognition unit for identifying the gaze direction in the driver's image based on the gaze recognition model;
区域确定单元,用于确定视线方向所属的目标注视区域;The area determination unit is used to determine the target gaze area to which the line of sight direction belongs;
分心确定单元,用于在判断满足预设分心条件的情况下,确定驾驶员处于分心状态;A distraction determination unit, used to determine that the driver is in a distracted state when it is judged that the preset distraction conditions are met;
其中,目标注视区域的类别包括预设专心区域、预设分心区域和其他分心区域中至少一项;Wherein, the category of the target gaze area includes at least one of a preset concentration area, a preset distraction area and other distraction areas;
预设分心条件包括以下至少一项:Preset distraction conditions include at least one of the following:
驾驶员连续注视第一目标注视区域的时长大于或等于第一预设时长阈值,第一目标注视区域属于预设分心区域;The duration of the driver's continuous gaze on the first target gaze area is greater than or equal to the first preset duration threshold, and the first target gaze area belongs to the preset distraction area;
驾驶员在第一预设时间窗口内累计注视第二目标注视区域的时长大于或等于第二预设时长阈值,第二目标注视区域不属于预设专心区域;The cumulative duration of the driver's gaze on the second target gaze area within the first preset time window is greater than or equal to the second preset duration threshold, and the second target gaze area does not belong to the preset concentration area;
驾驶员连续注视第三目标注视区域的时长大于或等于第三预设时长阈值,第三目标注视区域属于其他分心区域;The driver's continuous gaze on the third target gaze area is greater than or equal to the third preset duration threshold, and the third target gaze area belongs to other distraction areas;
基于连续多帧的驾驶员图像确定的多个目标注视区域加权得分大于或等于预设分数阈值。The weighted scores of multiple target gaze areas determined based on multiple consecutive frames of driver images are greater than or equal to a preset score threshold.
在第二方面的第一种可能的实现方式中,区域确定单元,包括:In a first possible implementation manner of the second aspect, the area determining unit includes:
计算模块,用于分别计算视线方向与多个预设注视区域中的每一个预设注视区域是否相交,其中,预设注视区域包括预设专心区域和/或预设分心区域;a calculation module, configured to respectively calculate whether the line of sight direction intersects with each of the plurality of preset gaze areas, wherein the preset gaze areas include a preset concentration area and/or a preset distraction area;
确定模块,用于在视线方向只与一个预设注视区域相交的情况下,将相交的预设注视区域确定为目标注视区域;或者,在视线方向与至少两个预设注视区域相交的情况下,根据预设区域优先级从至少两个预设注视区域中选择优先级最高的预设注视区域,并将优先级最高的预设注视区域确定为目标注视区域;或者,在视线方向表征驾驶员处于睁眼状态且视线方向与多个 预设注视区域均不相交,或者,视线方向表征驾驶员处于闭眼状态的情况下,确定视线方向所属的注视区域为其他分心区域,并将其他分心区域确定为目标注视区域。A determination module configured to determine the intersecting preset gaze area as the target gaze area when the line of sight direction intersects with only one preset gaze area; or, when the line of sight direction intersects with at least two preset gaze areas , select the highest priority preset gaze area from at least two preset gaze areas according to the preset area priority, and determine the highest priority preset gaze area as the target gaze area; or, characterize the driver in the line of sight direction When the driver is in the eyes-open state and the gaze direction does not intersect with multiple preset gaze areas, or the gaze direction indicates that the driver is in the eyes-closed state, the gaze area to which the gaze direction belongs is determined to be other distraction areas, and the other distraction areas are classified. The heart area is determined as the target fixation area.
在第二方面的第二种可能的实现方式中,识别单元,用于基于视线识别模型对驾驶员图像进行识别,获得相机坐标系下的视线方向。In a second possible implementation of the second aspect, the recognition unit is used to recognize the driver's image based on the sight recognition model and obtain the sight direction in the camera coordinate system.
在第二方面的第三种可能的实现方式中,计算模块,用于在内视摄像头的外参标定有效的情况下,将视线方向从相机坐标系转换到车身坐标系下,分别计算车身坐标系下的视线方向与车身坐标系下的多个预设注视区域中的每一个预设注视区域是否相交。In a third possible implementation of the second aspect, the calculation module is used to convert the line of sight direction from the camera coordinate system to the body coordinate system when the external parameter calibration of the internal view camera is valid, and calculate the body coordinates respectively. Whether the line of sight direction under the system intersects with each of the multiple preset gaze areas under the body coordinate system.
在第二方面的第四种可能的实现方式中,装置还包括:In a fourth possible implementation manner of the second aspect, the device further includes:
计算单元,用于在内视摄像头的外参标定失效的情况下,计算相机坐标系下的视线方向与视线基准向量之间的夹角;A calculation unit used to calculate the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system when the external parameter calibration of the internal view camera fails;
分心确定单元,还用于在夹角连续大于或等于预设夹角阈值的时长大于或等于第四预设时长阈值,或者,在第二预设时间窗口内,夹角大于或等于预设夹角阈值的累计时长大于或等于第五预设时长阈值的情况下,确定驾驶员处于分心状态。The distraction determination unit is also configured to be greater than or equal to the fourth preset duration threshold when the included angle is continuously greater than or equal to the preset included angle threshold, or, within the second preset time window, the included angle is greater than or equal to the preset When the cumulative duration of the angle threshold is greater than or equal to the fifth preset duration threshold, it is determined that the driver is in a distracted state.
在第二方面的第五种可能的实现方式中,计算单元,还用于在计算相机坐标系下的视线方向与视线基准向量之间的夹角之前,计算基于连续N帧历史驾驶员图像识别的N个历史视线方向的方差,其中,N为正整数;In a fifth possible implementation manner of the second aspect, the calculation unit is also used to calculate the historical driver image recognition based on N consecutive frames before calculating the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system. The variance of N historical sight directions, where N is a positive integer;
装置还包括:The installation also includes:
选取单元,用于选取方差最小的N个历史视线方向的平均值作为视线基准向量,或者,选取方差最小的N个历史视线方向中任一历史视线方向作为视线基准向量。The selection unit is used to select the average of N historical sight directions with the smallest variance as the sight reference vector, or select any historical sight direction among the N historical sight directions with the smallest variance as the sight reference vector.
在第二方面的第六种可能的实现方式中,识别单元,还用于在内视摄像头的外参标定失效的情况下,基于头部转角识别模型识别驾驶员图像中驾驶员的头部转角;In a sixth possible implementation manner of the second aspect, the recognition unit is also used to identify the driver's head rotation angle in the driver image based on the head rotation angle recognition model when the external parameter calibration of the internal view camera fails. ;
分心确定单元,还用于在头部转角连续大于或等于预设角度阈值的时长大于或等于第六预设时长阈值,或者,在第三预设时间窗口内,头部转角大于或等于预设角度阈值的累计时长大于或等于第七预设时长阈值的情况下,确定驾驶员处于分心状态。The distraction determination unit is also configured to be greater than or equal to the sixth preset duration threshold when the head rotation angle is continuously greater than or equal to the preset angle threshold, or, within the third preset time window, the head rotation angle is greater than or equal to the preset angle threshold. If the cumulative duration of the angle threshold is greater than or equal to the seventh preset duration threshold, it is determined that the driver is in a distracted state.
在第二方面的第七种可能的实现方式中,装置还包括:In a seventh possible implementation manner of the second aspect, the device further includes:
判断单元,用于在判断满足预设分心条件的情况下,确定驾驶员处于分心状态之前,判断车辆是否满足预设前置条件;A judgment unit, used to judge whether the vehicle meets the preset preconditions before determining that the driver is in a distracted state when it is judged that the preset distraction conditions are met;
分心确定单元,还用于在车辆满足预设前置条件的情况下,执行在判断满足预设分心条件的情况下,确定驾驶员处于分心状态;在车辆不满足预设前置条件的情况下,不执行在判断满足预设分心条件的情况下,确定驾驶员处于分心状态;The distraction determination unit is also used to determine that the driver is in a distracted state when the vehicle meets the preset preconditions; when the vehicle does not meet the preset preconditions, it determines that the driver is in a distracted state. In the case where it is determined that the driver is in a distracted state, it is not determined that the preset distraction conditions are met;
其中,预设前置条件包括以下至少一项:Among them, the preset preconditions include at least one of the following:
内视摄像头处于未遮挡状态;The internal camera is in an unobstructed state;
车速大于0;Vehicle speed is greater than 0;
车辆处于非堵车状态;The vehicle is in a non-traffic jam state;
车辆未处于特殊状态;The vehicle is not in special condition;
特殊状态包括:当车辆处于预设场景下且驾驶员处于非疲劳状态时,车身姿态与预置转向相同且车速处于预设安全范围内,其中,预设场景包括转向、泊车、倒车中至少一项。The special status includes: when the vehicle is in a preset scene and the driver is in a non-fatigued state, the body posture is the same as the preset steering and the vehicle speed is within the preset safe range. The preset scene includes at least 100% in steering, parking, and reversing. One item.
在第二方面的第八种可能的实现方式中,装置还包括:In an eighth possible implementation manner of the second aspect, the device further includes:
输出单元,用于在视线方向表征驾驶员处于闭眼状态,且驾驶员连续闭眼时长大于或等于 第八预设时长阈值的情况下,输出驾驶疲劳提示信息;The output unit is used to output driving fatigue prompt information when the direction of vision indicates that the driver is in a closed-eyes state, and the driver's continuous eye-closure duration is greater than or equal to the eighth preset duration threshold;
清空单元,用于清空针对分心判断的目标统计信息,其中,目标统计信息包括计时信息和/或加权得分信息。A clearing unit configured to clear target statistical information for distraction judgment, where the target statistical information includes timing information and/or weighted score information.
在第二方面的第九种可能的实现方式中,装置还包括:In a ninth possible implementation manner of the second aspect, the device further includes:
统计单元,用于在视线方向表征驾驶员处于双眼闭合状态,且双眼连续闭合时长大于或等于第九预设时长阈值后单眼睁开时,重新统计目标统计信息;或者,在视线方向表征驾驶员处于单眼闭合状态,且单眼连续闭合时长大于或等于第九预设时长阈值时,重新统计目标统计信息。The statistical unit is used to represent the driver's eyes in a closed state in the direction of the gaze, and when the continuous closing of both eyes is greater than or equal to the ninth preset duration threshold and then one eye is opened, re-statistical target statistical information; or, to represent the driver in the direction of the gaze. When the single eye is in a closed state and the continuous closing duration of the single eye is greater than or equal to the ninth preset duration threshold, the target statistical information is re-calculated.
在第二方面的第十种可能的实现方式中,预设分心区域对应于至少一个分心等级,预设分心区域的分心等级与第一预设时长阈值呈负相关关系。In a tenth possible implementation manner of the second aspect, the preset distraction area corresponds to at least one distraction level, and the distraction level of the preset distraction area has a negative correlation with the first preset duration threshold.
在第二方面的第十一种可能的实现方式中,与第一分心等级对应的预设分心区域包括内后视镜、中控屏、左侧车窗、左后视镜、右侧车窗、右后视镜、控制面板中至少一项,与第二分心等级对应的预设分心区域包括左侧门和/或右侧门,预设专心区域包括前风挡玻璃。In an eleventh possible implementation manner of the second aspect, the preset distraction areas corresponding to the first distraction level include the interior rearview mirror, the central control screen, the left window, the left rearview mirror, the right side At least one of the car window, the right rearview mirror, and the control panel, the preset distraction area corresponding to the second distraction level includes the left door and/or the right door, and the preset concentration area includes the front windshield.
第三方面,本申请实施例提供了一种存储介质,其上存储有计算机程序,程序被处理器执行时实现如第一方面任一种可能的实现方式所述的方法。In a third aspect, embodiments of the present application provide a storage medium on which a computer program is stored. When the program is executed by a processor, the method described in any possible implementation manner of the first aspect is implemented.
第四方面,本申请实施例提供了一种电子设备,电子设备包括:In a fourth aspect, embodiments of the present application provide an electronic device. The electronic device includes:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,
当一个或多个程序被一个或多个处理器执行,使得电子设备实现如第一方面任一种可能的实现方式所述的方法。When one or more programs are executed by one or more processors, the electronic device is caused to implement the method described in any possible implementation manner of the first aspect.
第五方面,本申请实施例提供了一种车辆,车辆包含如第二方面任一种可能的实现方式所述的装置,或者包含如第四方面所述的电子设备。In a fifth aspect, embodiments of the present application provide a vehicle, which includes the device as described in any possible implementation of the second aspect, or the electronic device as described in the fourth aspect.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例。对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1为本申请实施例提供的一种分心判断方法的流程示意图;Figure 1 is a schematic flowchart of a distraction judgment method provided by an embodiment of the present application;
图2为本申请实施例提供的另一种分心判断方法的流程示意图;Figure 2 is a schematic flow chart of another distraction judgment method provided by an embodiment of the present application;
图3为本申请实施例提供的又一种分心判断方法的流程示意图;Figure 3 is a schematic flowchart of yet another distraction judgment method provided by an embodiment of the present application;
图4为本申请实施例提供的又一种分心判断方法的流程示意图;Figure 4 is a schematic flowchart of yet another distraction judgment method provided by an embodiment of the present application;
图5为本申请实施例提供的又一种分心判断方法的流程示意图;Figure 5 is a schematic flowchart of yet another distraction judgment method provided by an embodiment of the present application;
图6为本申请实施例提供的一种分心判断装置的组成框图;Figure 6 is a block diagram of a distraction judgment device provided by an embodiment of the present application;
图7为本申请实施例提供的一种车辆架构示意图;Figure 7 is a schematic diagram of a vehicle architecture provided by an embodiment of the present application;
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述。显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于 本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
需要说明的是,本申请实施例及附图中的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含的一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。It should be noted that the terms "including" and "having" and any variations thereof in the embodiments and drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or units inherent to such processes, methods, products or devices.
图1为一种分心判断方法的流程示意图,该方法可以应用车辆,也可以应用于服务器,该方法可以包括如下步骤:Figure 1 is a schematic flow chart of a distraction judgment method. This method can be applied to vehicles or servers. The method can include the following steps:
S110:基于视线识别模型识别驾驶员图像中的视线方向。S110: Identify the gaze direction in the driver's image based on the gaze recognition model.
在车辆行驶过程中,安装在车辆内部的内视摄像头可以采集驾驶员图像,并将采集的驾驶员图像传输给用于分心判断的电子设备,以便该电子设备从驾驶员图像中提取眼部特征,并将眼部特征输入到视线识别模型中,识别出视线方向。其中,用于分心判断的电子设备包括车辆内ECU(Electronic Control Unit,电子控制单元)等用于分心判断的控制器或者服务器。视线识别模型可以根据预先采集的大量驾驶员图像的眼部特征训练而得,且视线识别模型具体可以为线性回归模型,也可以为其他模型。While the vehicle is driving, the internal camera installed inside the vehicle can collect the driver's image and transmit the collected driver's image to the electronic device for distraction judgment, so that the electronic device can extract the eye part from the driver's image. Features, and input the eye features into the gaze recognition model to identify the gaze direction. Among them, the electronic devices used for distraction judgment include ECU (Electronic Control Unit, Electronic Control Unit) in the vehicle and other controllers or servers used for distraction judgment. The gaze recognition model can be trained based on the eye features of a large number of driver images collected in advance, and the gaze recognition model can be a linear regression model or other models.
此外,本步骤基于视线识别模型对驾驶员图像进行识别,获得的是相机坐标系下的视线方向。In addition, this step recognizes the driver's image based on the sight recognition model, and obtains the sight direction in the camera coordinate system.
S120:确定视线方向所属的目标注视区域。S120: Determine the target gaze area to which the sight direction belongs.
其中,目标注视区域的类别包括预设专心区域、预设分心区域和其他分心区域中至少一项。预设专心区域为驾驶员肯定在专心驾驶的注视区域,预设分心区域为可能存在驾驶员分心驾驶的预先设置的注视区域,其他分心区域为可能存在驾驶员分心驾驶的未知注视区域。Wherein, the category of the target gaze area includes at least one of a preset concentration area, a preset distraction area and other distraction areas. The preset concentration area is the gaze area where the driver is definitely driving attentively. The preset distraction area is the preset gaze area where the driver may be distracted. The other distraction areas are the unknown gaze where the driver may be distracted. area.
预设专心区域包括前风挡玻璃,预设分心区域包括内后视镜、中控屏、左侧车窗、左后视镜、右侧车窗、右后视镜、控制面板、左侧门和右侧门中至少一项,其他分心区域为除了预设专心区域和预设分心区域以外的注视区域。The default concentration area includes the front windshield, and the default distraction area includes the interior rearview mirror, central control screen, left window, left rearview mirror, right side window, right rearview mirror, control panel, and left door and at least one item in the right door, and other distraction areas are gaze areas other than the preset concentration area and the preset distraction area.
在一种实施方式中,为了提高后续分心判断的准确性,可以将预设分心区域划分成至少一个分心等级,并且为不同分心等级配置不同分心判断标准。具体的,预设分心区域对应于至少一个分心等级,预设分心区域的分心等级与第一预设时长阈值呈负相关关系。与第一分心等级对应的预设分心区域包括内后视镜、中控屏、左侧车窗、左后视镜、右侧车窗、右后视镜、控制面板中至少一项,与第二分心等级对应的预设分心区域包括左侧门和/或右侧门,预设专心区域包括前风挡玻璃。第一预设时长阈值的相关信息详见S130的详解,在此不再赘述。In one implementation, in order to improve the accuracy of subsequent distraction judgments, the preset distraction area can be divided into at least one distraction level, and different distraction judgment criteria can be configured for different distraction levels. Specifically, the preset distraction area corresponds to at least one distraction level, and the distraction level of the preset distraction area is negatively correlated with the first preset duration threshold. The preset distraction area corresponding to the first distraction level includes at least one of the interior rearview mirror, central control screen, left window, left rearview mirror, right window, right rearview mirror, and control panel. The preset distraction area corresponding to the second distraction level includes the left door and/or the right door, and the preset concentration area includes the front windshield. For details about the first preset duration threshold, please refer to the detailed explanation of S130 and will not be described again here.
需要补充的是,本申请实施例的目标注视区域不限于车辆内的实体区域,还可以为逻辑区域。一个逻辑区域可以包括一个或多个完整的实体区域,还可以包括一个或多个实体区域的部分区域等,例如,可以以驾驶员正视前方为基准,划分出左、中、右三个逻辑区域,其中,中间区域为预设分心区域,左、右区域为预设分心区域,剩余区域为其他分心区域。It should be added that the target gaze area in the embodiment of the present application is not limited to the physical area in the vehicle, and can also be a logical area. A logical area can include one or more complete physical areas, or partial areas of one or more physical areas. For example, three logical areas can be divided into left, middle and right based on the driver looking straight ahead. , where the middle area is the preset distraction area, the left and right areas are the preset distraction areas, and the remaining areas are other distraction areas.
下面详细介绍本步骤S120的具体实现过程,如图2所示,该过程包括:The specific implementation process of step S120 is introduced in detail below, as shown in Figure 2. The process includes:
S121:分别计算视线方向与多个预设注视区域中的每一个预设注视区域是否相交。S121: Calculate whether the line of sight direction intersects with each of the plurality of preset gaze areas.
其中,预设注视区域包括预设专心区域和/或预设分心区域。The preset attention area includes a preset concentration area and/or a preset distraction area.
在内视摄像头的外参标定有效的情况下,将视线方向从相机坐标系转换到车身坐标系下,分别计算车身坐标系下的视线方向与车身坐标系下的多个预设注视区域中的每一个预设注视区域是否相交。此外,也可以将车身坐标系下的多个预设注视区域分别从车身坐标系转换到相机 坐标系下,再分别计算相机坐标系下的视线方向与相机坐标系下的多个预设注视区域中每个预设注视区域是否相交。也就是说,只要将视线方向和预设注视区域转换到同一个坐标系下进行相交计算即可。When the external parameter calibration of the internal camera is valid, the line of sight direction is converted from the camera coordinate system to the body coordinate system, and the line of sight direction in the body coordinate system and the multiple preset gaze areas in the body coordinate system are calculated respectively. Whether each preset gaze area intersects. In addition, you can also convert multiple preset gaze areas in the body coordinate system from the body coordinate system to the camera coordinate system, and then calculate the line of sight direction in the camera coordinate system and the multiple preset gaze areas in the camera coordinate system respectively. Whether each preset gaze area intersects. In other words, just convert the line of sight direction and the preset gaze area to the same coordinate system for intersection calculation.
S122:在视线方向只与一个预设注视区域相交的情况下,将相交的预设注视区域确定为目标注视区域。S122: When the line of sight direction intersects only one preset gaze area, determine the intersecting preset gaze area as the target gaze area.
S123:在视线方向与至少两个预设注视区域相交的情况下,根据预设区域优先级从至少两个预设注视区域中选择优先级最高的预设注视区域,并将优先级最高的预设注视区域确定为目标注视区域。可以理解的,本申请实施例中在视线方向与两个预设注视区域相交的情况下,优先级最高的预设注视区域即两个预设注视区域中具有更高优先级的预设注视区域。S123: When the sight direction intersects with at least two preset gaze areas, select the preset gaze area with the highest priority from the at least two preset gaze areas according to the priority of the preset area, and add the preset gaze area with the highest priority to the preset gaze area. Let the gaze area be determined as the target gaze area. It can be understood that in the embodiment of the present application, when the line of sight direction intersects two preset gaze areas, the preset gaze area with the highest priority is the preset gaze area with higher priority among the two preset gaze areas. .
在驾驶员注视某个预设注视区域时,可能会出现视线方向穿过其他预设注视区域,而产生与至少两个预设注视区域相交的情况,例如,驾驶员注视右后视镜时,视线会穿过右侧车窗。为解决该问题,可以预先在电子设备中设置包括各个预设注视区域优先级(即预设区域优先级)的配置文件,当视线方向与至少两个预设注视区域相交的情况下,可以从配置文件中读取预设区域优先级,并根据预设区域优先级确定至少两个预设注视区域中优先级最高的预设注视区域,并将优先级最高的预设注视区域确定为目标注视区域。其中,预设区域优先级可以根据实验经验确定,例如,右后视镜>右侧车窗。When the driver looks at a certain preset gaze area, the line of sight may pass through other preset gaze areas and intersect with at least two preset gaze areas. For example, when the driver looks at the right rearview mirror, The view will be through the right side window. In order to solve this problem, a configuration file including the priority of each preset gaze area (ie, the preset area priority) can be set in the electronic device in advance. When the line of sight direction intersects with at least two preset gaze areas, the configuration file can be set from Read the preset area priority from the configuration file, determine the preset gaze area with the highest priority among at least two preset gaze areas based on the preset area priority, and determine the preset gaze area with the highest priority as the target gaze. area. Among them, the preset area priority can be determined based on experimental experience, for example, right rearview mirror > right window.
S124:在视线方向表征驾驶员处于睁眼状态且视线方向与多个预设注视区域均不相交,或者,视线方向表征驾驶员处于闭眼状态的情况下,确定视线方向所属的注视区域为其他分心区域,并将其他分心区域确定为目标注视区域。S124: When the gaze direction represents that the driver is in an eyes-open state and the gaze direction does not intersect with multiple preset gaze areas, or the gaze direction represents that the driver is in a closed-eyes state, determine that the gaze area to which the gaze direction belongs is other Distracted areas, and other distracted areas are determined as target fixation areas.
当驾驶员未注视上述任何预设注视区域,但是驾驶员处于睁眼状态时,可以将驾驶员的视线方向划分到其他分心区域,当驾驶员处于闭眼状态时,也可以说明驾驶员未注视上述任何预设注视区域,故也可以将驾驶员的视线方向划分到其他分心区域。When the driver is not looking at any of the above preset gaze areas, but the driver is in the eyes-open state, the driver's gaze direction can be divided into other distraction areas. When the driver is in the eyes-closed state, it can also be explained that the driver is not paying attention. Focus on any of the above preset gaze areas, so the driver's gaze direction can also be divided into other distraction areas.
通过S121-S124可知,本申请实施例不仅可以通过判断视线方向与多个预设注视区域中的每一个预设注视区域是否相交的方式来确定目标注视区域,还可以在视线方向与至少两个预设注视区域相交的情况下,根据预设区域优先级准确快速的从中确定驾驶员真正注视的预设注视区域。It can be seen from S121 to S124 that the embodiment of the present application can not only determine the target gaze area by determining whether the line of sight direction intersects with each of the plurality of preset gaze areas, but also determine the target gaze area in the line of sight direction with at least two preset gaze areas. When the preset gaze areas intersect, the preset gaze area that the driver is really looking at is determined accurately and quickly based on the priority of the preset area.
S130:在判断满足预设分心条件的情况下,确定驾驶员处于分心状态。S130: When it is determined that the preset distraction conditions are met, it is determined that the driver is in a distracted state.
预设分心条件包括以下至少一项:Preset distraction conditions include at least one of the following:
驾驶员连续注视第一目标注视区域的时长大于或等于第一预设时长阈值,第一目标注视区域属于预设分心区域;The duration of the driver's continuous gaze on the first target gaze area is greater than or equal to the first preset duration threshold, and the first target gaze area belongs to the preset distraction area;
驾驶员在第一预设时间窗口内累计注视第二目标注视区域的时长大于或等于第二预设时长阈值,第二目标注视区域不属于预设专心区域;The cumulative duration of the driver's gaze on the second target gaze area within the first preset time window is greater than or equal to the second preset duration threshold, and the second target gaze area does not belong to the preset concentration area;
驾驶员连续注视第三目标注视区域的时长大于或等于第三预设时长阈值,第三目标注视区域属于其他分心区域;The driver's continuous gaze on the third target gaze area is greater than or equal to the third preset duration threshold, and the third target gaze area belongs to other distraction areas;
基于连续多帧的驾驶员图像确定的多个目标注视区域加权得分大于或等于预设分数阈值。The weighted scores of multiple target gaze areas determined based on multiple consecutive frames of driver images are greater than or equal to a preset score threshold.
其中,连续注视的含义除了包括字面意思上的连续不断注视之外,也可以包括在预定时间段内,注视动作的总时长超过一预设值。连续多帧的含义除了包括字面意思上的连续不断多帧外,也可以包括在预定时间段内,采集的驾驶员图像总帧数超过一预设值。驾驶员连续注视第一目标注视区域包括驾驶员连续注视同一个第一目标注视区域;驾驶员在第一预设时间窗口内 累计注视第二目标注视区域包括驾驶员在第一预设时间窗口内累计注视至少一个第二目标注视区域;驾驶员连续注视第三目标注视区域包括驾驶员连续注视至少一个第三目标注视区域。The meaning of continuous gaze includes not only literal continuous gaze, but also includes the total duration of gaze actions exceeding a preset value within a predetermined time period. In addition to literal continuous frames, the meaning of continuous multiple frames can also include that the total number of frames of driver images collected exceeds a preset value within a predetermined time period. The driver's continuous gaze on the first target gaze area includes the driver's continuous gaze on the same first target gaze area; the driver's cumulative gaze on the second target gaze area within the first preset time window includes the driver's gaze on the second target gaze area within the first preset time window. The cumulative gaze on at least one second target gaze area; the driver's continuous gaze on the third target gaze area includes the driver's continuous gaze on at least one third target gaze area.
第一预设时长阈值、第二预设时长阈值、第三预设时长阈值、第一预设时间窗口和预设分数阈值为实际经验值,例如,第一预设时长阈值可以为2.5s,第二预设时长阈值可以为10s,第三预设时长阈值可以为2s,第一预设时间窗口可以为30s,预设分数阈值可以为80。当预设分心区域包括至少一个分心等级时,预设分心区域的分心等级与第一预设时长阈值呈负相关关系,即分心等级越高,第一预设时长阈值越小,如第一分心等级对应的第一预设时长阈值为2.5s,第二分心等级对应的第一预设时长阈值为2s。The first preset duration threshold, the second preset duration threshold, the third preset duration threshold, the first preset time window and the preset score threshold are actual empirical values. For example, the first preset duration threshold can be 2.5s, The second preset duration threshold may be 10s, the third preset duration threshold may be 2s, the first preset time window may be 30s, and the preset score threshold may be 80. When the preset distraction area includes at least one distraction level, the distraction level of the preset distraction area is negatively correlated with the first preset duration threshold, that is, the higher the distraction level, the smaller the first preset duration threshold. , for example, the first preset duration threshold corresponding to the first distraction level is 2.5s, and the first preset duration threshold corresponding to the second distraction level is 2s.
此外,在多个目标注视区域进行加权计算时,所涉及的每个目标注视区域的权重可以根据不同目标注视区域的安全系数进行分配,该权重为实际经验值。例如在分配权重时,可以使得预设专心区域的权重<第一分心等级的预设分心区域的权重<第二分心等级的预设分心区域的权重<其他分心区域的权重。In addition, when performing weighted calculations on multiple target gaze areas, the weight of each target gaze area involved can be distributed according to the safety factor of different target gaze areas, and the weight is an actual empirical value. For example, when assigning weights, the weight of the preset concentration area < the weight of the preset distraction area of the first distraction level < the weight of the preset distraction area of the second distraction level < the weight of other distraction areas.
示例性的,预设分心条件包括以下至少一项:By way of example, the preset distraction conditions include at least one of the following:
驾驶员连续注视第一分心等级的同一个预设分心区域的时长大于或等于2.5s;The driver continuously looks at the same preset distraction area of the first distraction level for longer than or equal to 2.5 seconds;
驾驶员连续注视第二分心等级的同一个预设分心区域的时长大于或等于2s;The driver continuously looks at the same preset distraction area of the second distraction level for longer than or equal to 2 seconds;
驾驶员在30s内累计注视非预设专心区域(即不属于预设专心区域的区域)的时长大于或等于10s;The cumulative duration of the driver's gaze on non-preset concentration areas (i.e. areas that do not belong to the preset concentration areas) within 30 seconds is greater than or equal to 10 seconds;
驾驶员连续注视其他分心区域的时长大于或等于2s;The driver continuously looks at other distracting areas for more than or equal to 2 seconds;
基于连续多帧的驾驶员图像确定的多个目标注视区域加权得分大于或等于80分。The weighted scores of multiple target gaze areas determined based on multiple consecutive frames of driver images are greater than or equal to 80 points.
需要补充的是,当驾驶员处于分心状态时,输出分心提醒信息,该分心提醒信息可以以文字形式输出,也可以以语音形式输出,且可以在车辆上输出(如中控屏、基于HUD(Head Up Display,平视显示器)输出在前挡风玻璃),也可以在用户移动终端(如手机)上输出。在用户移动终端上输出时,需要用于分心判断的电子设备生成分心提醒信息后,将分心提醒信息发送给用户移动终端。It should be added that when the driver is distracted, distraction reminder information is output. The distraction reminder information can be output in text form or voice form, and can be output on the vehicle (such as the central control screen, Based on HUD (Head Up Display, head-up display) output on the front windshield), it can also be output on the user's mobile terminal (such as a mobile phone). When outputting on the user's mobile terminal, the electronic device that needs to be used for distraction judgment generates the distraction reminder information, and then sends the distraction reminder information to the user's mobile terminal.
与相关技术中需要使用可穿戴式分心检测设备,例如眼动仪,进行分心判断相比,本申请实施例提供的分心判断方法,能够先基于视线识别模型识别驾驶员图像中的视线方向,再确定该视线方向所属的目标注视区域,最后在满足预设分心条件(根据基于注视目标注视区域的时长和/或加权得分等设置的分心条件)的情况下,确定驾驶员处于分心状态。由此可知,本申请实施例通过将智能驾驶所必须的内视摄像头与软件的分心算法相结合做出分心判断,而无需驾驶员佩戴额外的设备,从而不仅不会影响驾驶员驾驶舒适度,还不会因为数据采集不准确而降低分心判断准确率。Compared with related technologies that require the use of wearable distraction detection devices, such as eye trackers, for distraction judgment, the distraction judgment method provided by the embodiments of the present application can first identify the line of sight in the driver's image based on the line of sight recognition model. direction, and then determine the target gaze area to which the gaze direction belongs. Finally, when the preset distraction conditions are met (distraction conditions set based on the duration of gazing at the target gaze area and/or weighted scores, etc.), it is determined that the driver is in state of distraction. It can be seen from this that the embodiment of the present application combines the inward-looking camera necessary for intelligent driving with the distraction algorithm of the software to make distraction judgments without requiring the driver to wear additional equipment, thereby not only not affecting the driver's driving comfort degree, and the accuracy of distraction judgment will not be reduced due to inaccurate data collection.
基于上述方法实施例,本申请的另一个实施例还提供了一种分心判断方法,如图3所示,该方法包括:Based on the above method embodiment, another embodiment of the present application also provides a distraction judgment method, as shown in Figure 3, the method includes:
S210:基于视线识别模型识别驾驶员图像中的视线方向。S210: Identify the gaze direction in the driver's image based on the gaze recognition model.
内视摄像头包括外参标定和内参标定,相机坐标系下的计算可以根据内参标定确定,而从相机坐标系到车身坐标系的旋转和平移就需要依赖外参标定。因此,当外参标定有效的情况下,可以使用S220-S230所述的方法进行分心判断,当外参标定失效的情况下,可以使用S240-S250所述的方法进行分心判断。The internal camera includes extrinsic parameter calibration and intrinsic parameter calibration. The calculation in the camera coordinate system can be determined based on the intrinsic parameter calibration, while the rotation and translation from the camera coordinate system to the body coordinate system need to rely on the extrinsic parameter calibration. Therefore, when the external parameter calibration is valid, the method described in S220-S230 can be used to perform distraction judgment; when the external parameter calibration is invalid, the method described in S240-S250 can be used to perform the distraction judgment.
S220:在内视摄像头的外参标定有效的情况下,确定视线方向所属的目标注视区域。S220: When the external parameter calibration of the inner-view camera is valid, determine the target gaze area to which the line of sight direction belongs.
S230:在判断满足预设分心条件的情况下,确定驾驶员处于分心状态。S230: When it is determined that the preset distraction conditions are met, it is determined that the driver is in a distracted state.
S240:在内视摄像头的外参标定失效的情况下,计算相机坐标系下的视线方向与视线基准向量之间的夹角。S240: When the external parameter calibration of the internal view camera fails, calculate the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system.
其中,视线基准向量的计算过程包括:计算基于连续N帧历史驾驶员图像识别的N个历史视线方向的方差,其中,N为正整数;选取方差最小的N个历史视线方向的平均值作为视线基准向量,或者,选取方差最小的N个历史视线方向中任一历史视线方向作为视线基准向量。N的取值可以根据实际经验确定,如可以取10。Among them, the calculation process of the gaze reference vector includes: calculating the variance of N historical gaze directions based on the recognition of N consecutive frames of historical driver images, where N is a positive integer; selecting the average of the N historical gaze directions with the smallest variance as the gaze Reference vector, or select any historical line of sight direction among the N historical line of sight directions with the smallest variance as the line of sight reference vector. The value of N can be determined based on actual experience, for example, it can be 10.
需要说明的是,不同批次计算的连续N帧历史驾驶员图像可以所有帧均不同,也可以部分帧不同,部分帧相同。It should be noted that all N consecutive frames of historical driver images calculated in different batches can be different, or some frames can be different and some frames can be the same.
S250:在夹角连续大于或等于预设夹角阈值的时长大于或等于第四预设时长阈值,或者,在第二预设时间窗口内,夹角大于或等于预设夹角阈值的累计时长大于或等于第五预设时长阈值的情况下,确定驾驶员处于分心状态。S250: When the included angle is continuously greater than or equal to the preset included angle threshold, the duration is greater than or equal to the fourth preset included angle threshold, or, within the second preset time window, the included angle is greater than or equal to the cumulative duration of the preset included angle threshold. If it is greater than or equal to the fifth preset duration threshold, it is determined that the driver is in a distracted state.
其中,预设夹角阈值、第四预设时长阈值、第二预设时间窗口和第五预设时长阈值可以根据实际经验确定,如预设夹角阈值可以为20度,第四预设时长阈值可以为2.5s,第二预设时间窗口可以为28s,第五预设时长阈值可以为8s。Among them, the preset angle threshold, the fourth preset duration threshold, the second preset time window and the fifth preset duration threshold can be determined based on actual experience. For example, the preset angle threshold can be 20 degrees, and the fourth preset duration The threshold may be 2.5s, the second preset time window may be 28s, and the fifth preset duration threshold may be 8s.
本申请实施例提供的分心判断方法,能够在内视摄像头外参标定有效的情况下,根据驾驶员的视线方向所属的目标注视区域进行分心判断,在内视摄像头外参标定失效的情况下,通过不依赖外参标定的相机坐标系下的视线方向与视线基准向量之间的夹角来进行分心判断,从而不仅不用驾驶员佩戴额外的设备,还可以避免因无法确定目标注视区域而导致分心判断中断。The distraction judgment method provided by the embodiment of the present application can perform distraction judgment based on the target gaze area to which the driver's line of sight direction belongs when the internal camera's external parameter calibration is valid, and when the internal camera's external parameter calibration fails Distraction judgment is made by using the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system that does not rely on external parameter calibration. This not only eliminates the need for the driver to wear additional equipment, but also avoids the inability to determine the target gaze area. And lead to distraction and interruption of judgment.
基于上述方法实施例,本申请的另一个实施例还提供了一种分心判断方法,如图4所示,该方法可以在内视摄像头的外参标定有效的情况下,采用S310-S330所述的分心判断方法,在内视摄像头的外参标定有效的情况下,采用S340-S350所述的分心判断方法,具体过程包括:Based on the above method embodiment, another embodiment of the present application also provides a distraction judgment method, as shown in Figure 4. This method can use S310-S330 when the external parameter calibration of the internal camera is valid. When the external parameter calibration of the internal camera is valid, the distraction judgment method described in S340-S350 is used. The specific process includes:
S310:判断内视摄像头的外参标定是否有效。S310: Determine whether the external parameter calibration of the internal camera is valid.
S320:在内视摄像头的外参标定有效的情况下,基于视线识别模型识别驾驶员图像中的视线方向。S320: When the external parameter calibration of the internal view camera is valid, identify the gaze direction in the driver's image based on the gaze recognition model.
S330:确定视线方向所属的目标注视区域。S330: Determine the target gaze area to which the sight direction belongs.
S340:在判断满足预设分心条件的情况下,确定驾驶员处于分心状态。S340: When it is determined that the preset distraction conditions are met, it is determined that the driver is in a distracted state.
S350:在内视摄像头的外参标定失效的情况下,基于头部转角识别模型识别驾驶员图像中驾驶员的头部转角。S350: When the external parameter calibration of the internal camera fails, identify the driver's head angle in the driver image based on the head angle recognition model.
电子设备从驾驶员图像中提取头部特征,并将头部特征输入到头部转角识别模型中,识别出头部转角。其中,头部转角识别模型可以根据预先采集的大量驾驶员图像的头部特征训练而得,且头部转角识别模型具体可以为线性回归模型,也可以为其他模型。The electronic device extracts head features from the driver's image and inputs the head features into the head angle recognition model to identify the head angle. Among them, the head angle recognition model can be trained based on the head features of a large number of driver images collected in advance, and the head angle recognition model can be a linear regression model or other models.
S360:在头部转角连续大于或等于预设角度阈值的时长大于或等于第六预设时长阈值,或者,在第三预设时间窗口内,头部转角大于或等于预设角度阈值的累计时长大于或等于第七预设时长阈值的情况下,确定驾驶员处于分心状态。S360: The duration in which the head rotation angle is continuously greater than or equal to the preset angle threshold is greater than or equal to the sixth preset duration threshold, or, within the third preset time window, the cumulative duration in which the head rotation angle is greater than or equal to the preset angle threshold If it is greater than or equal to the seventh preset duration threshold, it is determined that the driver is in a distracted state.
预设角度阈值、第六预设时长阈值、第三预设时间窗口和第七预设时长阈值可以根据实际经验确定,如预设角度阈值可以为45度,第六预设时长阈值可以为2.5s,第三预设时间窗口可以为29s,第七预设时长阈值可以为9s。The preset angle threshold, the sixth preset duration threshold, the third preset time window and the seventh preset duration threshold can be determined based on actual experience. For example, the preset angle threshold can be 45 degrees, and the sixth preset duration threshold can be 2.5 s, the third preset time window may be 29s, and the seventh preset duration threshold may be 9s.
本申请实施例提供的分心判断方法,能够在内视摄像头外参标定有效的情况下,根据驾驶 员的视线方向所属的目标注视区域进行分心判断,在内视摄像头外参标定失效的情况下,通过不依赖外参标定的相机坐标系下的头部转角来进行分心判断,从而不仅不用驾驶员佩戴额外的设备,还可以避免因无法确定目标注视区域而导致分心判断中断。The distraction judgment method provided by the embodiment of the present application can perform distraction judgment based on the target gaze area to which the driver's line of sight direction belongs when the internal camera's external parameter calibration is valid, and when the internal camera's external parameter calibration fails Under this method, distraction judgment is made by not relying on the head rotation angle in the camera coordinate system calibrated by external parameters. This not only eliminates the need for the driver to wear additional equipment, but also avoids the interruption of distraction judgment due to the inability to determine the target gaze area.
基于上述方法实施例,本申请的另一个实施例还提供了一种分心判断方法,如图5所示,该方法包括:Based on the above method embodiment, another embodiment of the present application also provides a distraction judgment method, as shown in Figure 5, the method includes:
S410:判断车辆是否满足预设前置条件。在车辆满足预设前置条件的情况下,执行步骤S420,否则继续执行本步骤S410。S410: Determine whether the vehicle meets the preset preconditions. If the vehicle meets the preset preconditions, step S420 is executed; otherwise, step S410 is continued.
预设前置条件可以用于排除驾驶员是否分心与车辆安全无关的特殊场景,从而可以节约资源、提高分心判断准确率。Preset preconditions can be used to exclude special scenarios in which driver distraction has nothing to do with vehicle safety, thereby saving resources and improving distraction judgment accuracy.
其中,预设前置条件包括以下至少一项:Among them, the preset preconditions include at least one of the following:
内视摄像头处于未遮挡状态;The internal camera is in an unobstructed state;
车速大于0;Vehicle speed is greater than 0;
车辆处于非堵车状态;The vehicle is in a non-traffic jam state;
车辆未处于特殊状态;The vehicle is not in special condition;
特殊状态包括:当车辆处于预设场景下且驾驶员处于非疲劳状态时,车身姿态与预置转向相同且车速处于预设安全范围内,其中,预设场景包括转向、泊车、倒车中至少一项。The special status includes: when the vehicle is in a preset scene and the driver is in a non-fatigued state, the body posture is the same as the preset steering and the vehicle speed is within the preset safe range. The preset scene includes at least 100% in steering, parking, and reversing. One item.
本申请实施例中检测驾驶员是否处于疲劳状态所采用的方法包括但不限于以下几种:(1)连续闭眼时长大于一定阈值;(2)基于DDS(The Drowsy Driver Detection System,瞌睡预警系统)进行疲劳检测,即通过雷达扫描瞳孔状况并通过数据分析来判断驾驶员疲劳状态;(3)通过检测驾驶员的心率变异性,并根据心率变异性判断驾驶员疲劳状态。The methods used in the embodiments of this application to detect whether the driver is in a fatigue state include but are not limited to the following: (1) The duration of continuous eye closure is greater than a certain threshold; (2) Drowsy Driver Detection System based on DDS (The Drowsy Driver Detection System) ) Carry out fatigue detection, that is, scan the pupil condition through radar and determine the driver's fatigue state through data analysis; (3) By detecting the driver's heart rate variability, and determine the driver's fatigue state based on the heart rate variability.
预置转向包括左转、右转、直行,车身姿态也包括左转、右转、直行。在驾驶员处于非疲劳状态下,车辆最近一段时间内的平均速度可以作为预设安全范围,在不同时间段不同车辆的预设安全范围可以不同。The preset steering includes left turn, right turn, and straight drive, and the body posture also includes left turn, right turn, and straight drive. When the driver is in a non-fatigued state, the average speed of the vehicle in the recent period can be used as the preset safety range, and the preset safety ranges of different vehicles can be different in different time periods.
S420:基于视线识别模型识别驾驶员图像中的视线方向。S420: Identify the gaze direction in the driver's image based on the gaze recognition model.
S430:确定视线方向所属的目标注视区域。S430: Determine the target gaze area to which the sight direction belongs.
S440:在判断满足预设分心条件的情况下,确定驾驶员处于分心状态。S440: When it is determined that the preset distraction conditions are met, determine that the driver is in a distracted state.
需要补充的是,本申请实施例以“判断车辆是否满足预设前置条件”的执行时机为开头为例,实际上,“判断车辆是否满足预设前置条件”的执行时机只要在“在判断满足预设分心条件的情况下,确定驾驶员处于分心状态”之前,均可,即S410的执行时机可以位于在S420(或者S430)之前、之后、甚至同时执行均可。It should be added that the embodiment of the present application starts with the execution timing of "judging whether the vehicle satisfies the preset preconditions" as an example. In fact, the execution timing of "judging whether the vehicle satisfies the preset preconditions" only needs to be "in When it is determined that the preset distraction conditions are met, it can be any time before it is determined that the driver is in a distracted state. That is, the execution timing of S410 can be before, after, or even at the same time as S420 (or S430).
本申请实施例提供的分心判断方法,在判断是否满足预设分心条件之前,先通过预设前置条件排除驾驶员是否分心与车辆安全无关的特殊场景,即只有满足预设前置条件时才会进行分心判断,从而可以节约资源、提高分心判断准确率。The distraction determination method provided by the embodiments of the present application first uses the preset preconditions to exclude special scenarios in which whether the driver is distracted and has nothing to do with vehicle safety before determining whether the preset distraction conditions are met, that is, only if the preset preconditions are met. Distraction judgment will only be made when conditions exist, which can save resources and improve the accuracy of distraction judgment.
在一种实施方式中,为了将疲劳驾驶与分心驾驶区分开,从而对不同状态有针对性的进行分析与管理,本申请实施例还可以在视线方向表征驾驶员处于闭眼状态,且驾驶员连续闭眼时长大于或等于第八预设时长阈值的情况下,输出驾驶疲劳提示信息,并清空针对分心判断的目标统计信息,其中,目标统计信息包括计时信息和/或加权得分信息。In one implementation, in order to distinguish fatigue driving from distracted driving, so as to conduct targeted analysis and management of different states, embodiments of the present application can also represent that the driver is in a closed-eyes state in the direction of the line of sight, and the driving state is When the driver's continuous eye-closure duration is greater than or equal to the eighth preset duration threshold, driving fatigue prompt information is output, and target statistical information for distraction judgment is cleared, where the target statistical information includes timing information and/or weighted score information.
其中,第八预设时长阈值可以根据实际经验确定,例如可以为2.5s。The eighth preset duration threshold can be determined based on actual experience, and can be, for example, 2.5 seconds.
在一种实施方式中,为了排除高频眨眼对分心判断的影响,从而提高分心判断的准确率, 本申请实施例可以采用如下方案:In one implementation, in order to eliminate the impact of high-frequency blinking on distraction judgment, thereby improving the accuracy of distraction judgment, the following solution may be adopted in the embodiment of the present application:
在视线方向表征驾驶员处于双眼闭合状态,且双眼连续闭合时长大于或等于第九预设时长阈值后单眼睁开时,重新统计目标统计信息;或者,When the gaze direction indicates that the driver's eyes are closed, and the continuous closing duration of both eyes is greater than or equal to the ninth preset duration threshold and then one eye is opened, the target statistical information is re-calculated; or,
在视线方向表征驾驶员处于单眼闭合状态,且单眼连续闭合时长大于或等于第九预设时长阈值时,重新统计目标统计信息。When the sight direction indicates that the driver is in a closed state of one eye, and the continuous closing duration of one eye is greater than or equal to the ninth preset duration threshold, the target statistical information is re-calculated.
其中,第八预设时长阈值可以根据实际经验确定,例如可以为2.5s。The eighth preset duration threshold can be determined based on actual experience, and can be, for example, 2.5 seconds.
相应于上述方法实施例,本申请实施例提供了一种分心判断装置,如图6所示,该装置包括:Corresponding to the above method embodiments, embodiments of the present application provide a distraction judgment device, as shown in Figure 6. The device includes:
识别单元50,用于基于视线识别模型识别驾驶员图像中的视线方向;The recognition unit 50 is used to identify the gaze direction in the driver's image based on the gaze recognition model;
区域确定单元52,用于确定视线方向所属的目标注视区域;The area determination unit 52 is used to determine the target gaze area to which the line of sight direction belongs;
分心确定单元54,用于在判断满足预设分心条件的情况下,确定驾驶员处于分心状态;The distraction determination unit 54 is used to determine that the driver is in a distracted state when it is determined that the preset distraction conditions are met;
其中,目标注视区域的类别包括预设专心区域、预设分心区域和其他分心区域中至少一项;Wherein, the category of the target gaze area includes at least one of a preset concentration area, a preset distraction area and other distraction areas;
预设分心条件包括以下至少一项:Preset distraction conditions include at least one of the following:
驾驶员连续注视第一目标注视区域的时长大于或等于第一预设时长阈值,第一目标注视区域属于预设分心区域;The duration of the driver's continuous gaze on the first target gaze area is greater than or equal to the first preset duration threshold, and the first target gaze area belongs to the preset distraction area;
驾驶员在第一预设时间窗口内累计注视第二目标注视区域的时长大于或等于第二预设时长阈值,第二目标注视区域不属于预设专心区域;The cumulative duration of the driver's gaze on the second target gaze area within the first preset time window is greater than or equal to the second preset duration threshold, and the second target gaze area does not belong to the preset concentration area;
驾驶员连续注视第三目标注视区域的时长大于或等于第三预设时长阈值,第三目标注视区域属于其他分心区域;The driver's continuous gaze on the third target gaze area is greater than or equal to the third preset duration threshold, and the third target gaze area belongs to other distraction areas;
基于连续多帧的驾驶员图像确定的多个目标注视区域加权得分大于或等于预设分数阈值。The weighted scores of multiple target gaze areas determined based on multiple consecutive frames of driver images are greater than or equal to a preset score threshold.
在一种实施方式中,区域确定单元52,包括:In one implementation, the area determination unit 52 includes:
计算模块,用于分别计算视线方向与多个预设注视区域中的每一个预设注视区域是否相交,其中,预设注视区域包括预设专心区域和/或预设分心区域;a calculation module, configured to respectively calculate whether the line of sight direction intersects with each of the plurality of preset gaze areas, wherein the preset gaze areas include a preset concentration area and/or a preset distraction area;
确定模块,用于在视线方向只与一个预设注视区域相交的情况下,将相交的预设注视区域确定为目标注视区域;或者,在视线方向与至少两个预设注视区域相交的情况下,根据预设区域优先级从至少两个预设注视区域中选择优先级最高的预设注视区域,并将优先级最高的预设注视区域确定为目标注视区域;或者,在视线方向表征驾驶员处于睁眼状态且视线方向与多个预设注视区域均不相交,或者,视线方向表征驾驶员处于闭眼状态的情况下,确定视线方向所属的注视区域为其他分心区域,并将其他分心区域确定为目标注视区域。A determination module configured to determine the intersecting preset gaze area as the target gaze area when the line of sight direction intersects with only one preset gaze area; or, when the line of sight direction intersects with at least two preset gaze areas , select the highest priority preset gaze area from at least two preset gaze areas according to the preset area priority, and determine the highest priority preset gaze area as the target gaze area; or, characterize the driver in the line of sight direction When the driver is in the eyes-open state and the gaze direction does not intersect with multiple preset gaze areas, or the gaze direction indicates that the driver is in the eyes-closed state, the gaze area to which the gaze direction belongs is determined to be other distraction areas, and the other distraction areas are classified. The heart area is determined as the target fixation area.
在一种实施方式中,识别单元50,用于基于视线识别模型对驾驶员图像进行识别,获得相机坐标系下的视线方向。In one embodiment, the recognition unit 50 is used to recognize the driver's image based on the sight recognition model and obtain the sight direction in the camera coordinate system.
在一种实施方式中,计算模块,用于在内视摄像头的外参标定有效的情况下,将视线方向从相机坐标系转换到车身坐标系下,分别计算车身坐标系下的视线方向与车身坐标系下的多个预设注视区域中的每一个预设注视区域是否相交。In one embodiment, the calculation module is used to convert the line of sight direction from the camera coordinate system to the body coordinate system when the external parameter calibration of the internal view camera is valid, and calculate the line of sight direction and the body line in the body coordinate system respectively. Whether each of the multiple preset gaze areas under the coordinate system intersects.
在一种实施方式中,装置还包括:In one embodiment, the device further includes:
计算单元,用于在内视摄像头的外参标定失效的情况下,计算相机坐标系下的视线方向与视线基准向量之间的夹角;A calculation unit used to calculate the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system when the external parameter calibration of the internal view camera fails;
分心确定单元54,还用于在夹角连续大于或等于预设夹角阈值的时长大于或等于第四预设时长阈值,或者,在第二预设时间窗口内,夹角大于或等于预设夹角阈值的累计时长大于或等 于第五预设时长阈值的情况下,确定驾驶员处于分心状态。The distraction determination unit 54 is also configured to be greater than or equal to the fourth preset duration threshold when the included angle is continuously greater than or equal to the preset included angle threshold, or, within the second preset time window, the included angle is greater than or equal to the preset included angle threshold. If the cumulative duration of the angle threshold is greater than or equal to the fifth preset duration threshold, it is determined that the driver is in a distracted state.
在一种实施方式中,计算单元,还用于在计算相机坐标系下的视线方向与视线基准向量之间的夹角之前,计算基于连续N帧历史驾驶员图像识别的N个历史视线方向的方差,其中,N为正整数;In one embodiment, the calculation unit is also configured to calculate the N historical sight directions based on the recognition of N consecutive frames of historical driver images before calculating the angle between the sight direction in the camera coordinate system and the sight reference vector. Variance, where N is a positive integer;
装置还包括:The installation also includes:
选取单元,用于选取方差最小的N个历史视线方向的平均值作为视线基准向量,或者,选取方差最小的N个历史视线方向中任一历史视线方向作为视线基准向量。The selection unit is used to select the average of N historical sight directions with the smallest variance as the sight reference vector, or select any historical sight direction among the N historical sight directions with the smallest variance as the sight reference vector.
在一种实施方式中,识别单元50,还用于在内视摄像头的外参标定失效的情况下,基于头部转角识别模型识别驾驶员图像中驾驶员的头部转角;In one embodiment, the identification unit 50 is also used to identify the driver's head angle in the driver's image based on the head angle recognition model when the external parameter calibration of the internal view camera fails;
分心确定单元54,还用于在头部转角连续大于或等于预设角度阈值的时长大于或等于第六预设时长阈值,或者,在第三预设时间窗口内,头部转角大于或等于预设角度阈值的累计时长大于或等于第七预设时长阈值的情况下,确定驾驶员处于分心状态。The distraction determination unit 54 is also configured to be greater than or equal to the sixth preset duration threshold when the head rotation angle is continuously greater than or equal to the preset angle threshold, or, within the third preset time window, the head rotation angle is greater than or equal to When the cumulative duration of the preset angle threshold is greater than or equal to the seventh preset duration threshold, it is determined that the driver is in a distracted state.
在一种实施方式中,装置还包括:In one embodiment, the device further includes:
判断单元,用于在判断满足预设分心条件的情况下,确定驾驶员处于分心状态之前,判断车辆是否满足预设前置条件;A judgment unit, used to judge whether the vehicle meets the preset preconditions before determining that the driver is in a distracted state when it is judged that the preset distraction conditions are met;
分心确定单元54,还用于在车辆满足预设前置条件的情况下,执行在判断满足预设分心条件的情况下,确定驾驶员处于分心状态;在车辆不满足预设前置条件的情况下,不执行在判断满足预设分心条件的情况下,确定驾驶员处于分心状态;The distraction determination unit 54 is also used to determine that the driver is in a distracted state when the vehicle satisfies the preset preconditions; when the vehicle does not satisfy the preset preconditions, If the conditions are met, it will not be executed and it will be determined that the driver is in a distracted state if it is determined that the preset distraction conditions are met;
其中,预设前置条件包括以下至少一项:Among them, the preset preconditions include at least one of the following:
内视摄像头处于未遮挡状态;The internal camera is in an unobstructed state;
车速大于0;Vehicle speed is greater than 0;
车辆处于非堵车状态;The vehicle is in a non-traffic jam state;
车辆未处于特殊状态;The vehicle is not in special condition;
特殊状态包括:当车辆处于预设场景下且驾驶员处于非疲劳状态时,车身姿态与预置转向相同且车速处于预设安全范围内,其中,预设场景包括转向、泊车、倒车中至少一项。The special status includes: when the vehicle is in a preset scene and the driver is in a non-fatigued state, the body posture is the same as the preset steering and the vehicle speed is within the preset safe range. The preset scene includes at least 100% in steering, parking, and reversing. One item.
在一种实施方式中,装置还包括:In one embodiment, the device further includes:
输出单元,用于在视线方向表征驾驶员处于闭眼状态,且驾驶员连续闭眼时长大于或等于第八预设时长阈值的情况下,输出驾驶疲劳提示信息;The output unit is used to output driving fatigue prompt information when the direction of vision indicates that the driver is in a closed-eyes state, and the driver's continuous eye-closure duration is greater than or equal to the eighth preset duration threshold;
清空单元,用于清空针对分心判断的目标统计信息,其中,目标统计信息包括计时信息和/或加权得分信息。A clearing unit configured to clear target statistical information for distraction judgment, where the target statistical information includes timing information and/or weighted score information.
在一种实施方式中,装置还包括:In one embodiment, the device further includes:
统计单元,用于在视线方向表征驾驶员处于双眼闭合状态,且双眼连续闭合时长大于或等于第九预设时长阈值后单眼睁开时,重新统计目标统计信息;或者,在视线方向表征驾驶员处于单眼闭合状态,且单眼连续闭合时长大于或等于第九预设时长阈值时,重新统计目标统计信息。The statistical unit is used to represent the driver's eyes in a closed state in the direction of the gaze, and when the continuous closing of both eyes is greater than or equal to the ninth preset duration threshold and then one eye is opened, re-statistical target statistical information; or, to represent the driver in the direction of the gaze. When the single eye is in a closed state and the continuous closing duration of the single eye is greater than or equal to the ninth preset duration threshold, the target statistical information is re-calculated.
在一种实施方式中,预设分心区域对应于至少一个分心等级,预设分心区域的分心等级与第一预设时长阈值呈负相关关系。In one implementation, the preset distraction area corresponds to at least one distraction level, and the distraction level of the preset distraction area is negatively correlated with the first preset duration threshold.
在一种实施方式中,与第一分心等级对应的预设分心区域包括内后视镜、中控屏、左侧车窗、左后视镜、右侧车窗、右后视镜、控制面板中至少一项,与第二分心等级对应的预设分心 区域包括左侧门和/或右侧门,预设专心区域包括前风挡玻璃。In one implementation, the preset distraction areas corresponding to the first distraction level include interior rearview mirror, central control screen, left side window, left rearview mirror, right side window, right rearview mirror, At least one item in the control panel, the preset distraction area corresponding to the second distraction level includes the left door and/or the right door, and the preset concentration area includes the front windshield.
基于上述方法实施例,本申请的另一实施例提供了一种存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器实现如上任一实施方式所述的方法。Based on the above method embodiments, another embodiment of the present application provides a storage medium on which executable instructions are stored. When executed by a processor, the instructions cause the processor to implement the method described in any of the above embodiments.
基于上述方法实施例,本申请的另一实施例提供了一种电子设备或计算机设备,包括:Based on the above method embodiment, another embodiment of the present application provides an electronic device or computer device, including:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,
其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得电子设备或计算机设备实现如上任一实施方式所述的方法。Wherein, when the one or more programs are executed by the one or more processors, the electronic device or computer device is caused to implement the method described in any of the above embodiments.
基于上述方法实施例,本申请的另一实施例提供了车辆,该车辆包含如上任一实施方式所述的装置,或者包含如上所述的电子设备。Based on the above method embodiments, another embodiment of the present application provides a vehicle, which includes the device as described in any of the above embodiments, or includes the electronic device as described above.
如图7所示,车辆包括内后视镜61、中控屏62、左侧车窗63、左后视镜64、右侧车窗65、右后视镜66、控制面板67、左侧门68、右侧门69、前风挡玻璃610和内视摄像头611。在一些实施方式中,内后视镜61、中控屏62、左侧车窗63、左后视镜64、右侧车窗65、右后视镜66、控制面板67、左侧门68、右侧门69属于预设分心区域,前风挡玻璃610属于预设专心区域,车辆中的其他区域属于其他分心区域。内视摄像头611用于采集驾驶员图像信息,并将驾驶员图像信息传输给ECU等进行分心判断。驾驶员的视线方向用虚线表示,该视线方向所对应的目标注视区域为前风挡玻璃610,因此该驾驶员处于专心状态。可以理解的,以上对于专心区域或分心区域的划分方式是示例性的,也可以根据车辆的应用场景或其它指标进行进行划分,本申请对此不作限定。As shown in Figure 7, the vehicle includes an interior rearview mirror 61, a central control screen 62, a left window 63, a left rearview mirror 64, a right window 65, a right rearview mirror 66, a control panel 67, and a left door 68. Right door 69, front windshield 610 and interior camera 611. In some embodiments, the interior rearview mirror 61, the central control screen 62, the left window 63, the left rearview mirror 64, the right window 65, the right rearview mirror 66, the control panel 67, the left door 68, The right door 69 belongs to the preset distraction area, the front windshield 610 belongs to the preset concentration area, and other areas in the vehicle belong to other distraction areas. The internal camera 611 is used to collect the driver's image information and transmit the driver's image information to the ECU and the like for distraction determination. The driver's sight direction is represented by a dotted line, and the target gaze area corresponding to the sight direction is the front windshield 610, so the driver is in a focused state. It can be understood that the above methods of dividing the concentration area or the distraction area are exemplary and can also be divided according to the application scenario of the vehicle or other indicators, which is not limited in this application.
车辆还包括GPS(Global Positioning System,全球定位系统)定位设备、V2X(Vehicle-to-Everything,车联网)、T-Box(TelematicsBox,远程信息处理器)、雷达、车外摄像头。其中,GPS定位设备用于获取车辆位置信息;V2X用于与其他车辆、路侧设备等进行通信;雷达或车外摄像头用于感知前方道路环境信息,雷达和/或车外摄像头可以配置在车身前部和/或车身尾部;T-Box可以作为无线网关,通过4G/5G等远程无线通讯、GPS卫星定位、加速度传感和CAN通讯等功能,为整车提供远程通讯接口,提供包括行车数据采集、行驶轨迹记录、车辆故障监控、车辆远程查询和控制(开闭锁、空调控制、车窗控制、发送机扭矩限制、发动机启停)、驾驶行为分析等服务。The vehicle also includes GPS (Global Positioning System, Global Positioning System) positioning equipment, V2X (Vehicle-to-Everything, Internet of Vehicles), T-Box (TelematicsBox, telematics processor), radar, and exterior cameras. Among them, GPS positioning equipment is used to obtain vehicle location information; V2X is used to communicate with other vehicles, roadside equipment, etc.; radar or external cameras are used to sense road environment information ahead, and radar and/or external cameras can be configured on the vehicle body The front and/or rear of the car body; T-Box can be used as a wireless gateway to provide remote communication interfaces for the entire vehicle through functions such as 4G/5G and other long-range wireless communications, GPS satellite positioning, acceleration sensing and CAN communications, including driving data. Collection, driving trajectory recording, vehicle fault monitoring, vehicle remote query and control (opening and closing, air conditioning control, window control, engine torque limit, engine start and stop), driving behavior analysis and other services.
上述装置实施例与方法实施例相对应,与该方法实施例具有同样的技术效果,具体说明参见方法实施例。装置实施例是基于方法实施例得到的,具体的说明可以参见方法实施例部分,此处不再赘述。本领域普通技术人员可以理解:附图只是一个实施例的示意图,附图中的模块或流程并不一定是实施本申请所必须的。The above device embodiments correspond to the method embodiments and have the same technical effects as the method embodiments. For detailed description, please refer to the method embodiments. The device embodiment is obtained based on the method embodiment. For specific description, please refer to the method embodiment section and will not be described again here. Those of ordinary skill in the art can understand that the accompanying drawing is only a schematic diagram of an embodiment, and the modules or processes in the accompanying drawing are not necessarily necessary for implementing the present application.
本领域普通技术人员可以理解:实施例中的装置中的模块可以按照实施例描述分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those of ordinary skill in the art can understand that the modules in the device in the embodiment may be distributed in the device in the embodiment according to the description of the embodiment, or may be correspondingly changed and located in one or more devices different from this embodiment. The modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent substitutions are made to some of the technical features; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (27)

  1. 一种分心判断方法,其特征在于,所述方法包括:A distraction judgment method, characterized in that the method includes:
    基于视线识别模型识别驾驶员图像中的视线方向;Identify the direction of gaze in the driver's image based on the gaze recognition model;
    确定所述视线方向所属的目标注视区域;Determine the target gaze area to which the gaze direction belongs;
    在判断满足预设分心条件的情况下,确定所述驾驶员处于分心状态;When it is determined that the preset distraction conditions are met, it is determined that the driver is in a distracted state;
    其中,所述目标注视区域的类别包括预设专心区域、预设分心区域和其他分心区域中至少一项;Wherein, the category of the target gaze area includes at least one of a preset concentration area, a preset distraction area and other distraction areas;
    所述预设分心条件包括以下至少一项:The preset distraction conditions include at least one of the following:
    所述驾驶员连续注视第一目标注视区域的时长大于或等于第一预设时长阈值,所述第一目标注视区域属于所述预设分心区域;The duration of the driver's continuous gaze on the first target gaze area is greater than or equal to the first preset duration threshold, and the first target gaze area belongs to the preset distraction area;
    所述驾驶员在第一预设时间窗口内累计注视第二目标注视区域的时长大于或等于第二预设时长阈值,所述第二目标注视区域不属于所述预设专心区域;The cumulative duration of the driver's gaze on the second target gaze area within the first preset time window is greater than or equal to the second preset duration threshold, and the second target gaze area does not belong to the preset concentration area;
    所述驾驶员连续注视第三目标注视区域的时长大于或等于第三预设时长阈值,所述第三目标注视区域属于所述其他分心区域;The duration of the driver's continuous gaze on the third target gaze area is greater than or equal to the third preset duration threshold, and the third target gaze area belongs to the other distraction areas;
    基于连续多帧所述的驾驶员图像确定的多个所述目标注视区域加权得分大于或等于预设分数阈值。A plurality of weighted scores of the target gaze areas determined based on the driver images of multiple consecutive frames are greater than or equal to a preset score threshold.
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述视线方向所属的目标注视区域,包括:The method according to claim 1, wherein determining the target gaze area to which the line of sight direction belongs includes:
    分别计算所述视线方向与多个预设注视区域中的每一个所述预设注视区域是否相交,其中,所述预设注视区域包括所述预设专心区域和/或所述预设分心区域;Calculate respectively whether the line of sight direction intersects with each of the preset gaze areas in a plurality of preset gaze areas, wherein the preset gaze areas include the preset concentration area and/or the preset distraction area area;
    在所述视线方向只与一个所述预设注视区域相交的情况下,将相交的所述预设注视区域确定为所述目标注视区域;或者,In the case where the line of sight direction only intersects one of the preset gaze areas, the intersecting preset gaze areas are determined as the target gaze areas; or,
    在所述视线方向与至少两个所述预设注视区域相交的情况下,根据预设区域优先级从所述至少两个所述预设注视区域中选择优先级最高的预设注视区域,并将所述优先级最高的预设注视区域确定为所述目标注视区域;或者,When the sight direction intersects with at least two of the preset gaze areas, select the preset gaze area with the highest priority from the at least two preset gaze areas according to the preset area priority, and Determine the preset gaze area with the highest priority as the target gaze area; or,
    在所述视线方向表征所述驾驶员处于睁眼状态且所述视线方向与所述多个预设注视区域均不相交,或者,所述视线方向表征所述驾驶员处于闭眼状态的情况下,确定所述视线方向所属的注视区域为所述其他分心区域,并将所述其他分心区域确定为所述目标注视区域。When the line of sight direction represents that the driver is in an eye-opening state and the line of sight direction does not intersect with any of the plurality of preset gaze areas, or the line of sight direction represents that the driver is in a state of closing eyes. , determine the gaze area to which the line of sight direction belongs as the other distraction area, and determine the other distraction area as the target gaze area.
  3. 根据权利要求2所述的方法,其特征在于,所述基于视线识别模型识别驾驶员图像中的视线方向,包括:The method according to claim 2, characterized in that identifying the gaze direction in the driver's image based on the gaze recognition model includes:
    基于所述视线识别模型对所述驾驶员图像进行识别,获得相机坐标系下的视线方向。The driver image is recognized based on the sight recognition model to obtain the sight direction in the camera coordinate system.
  4. 根据权利要求3所述的方法,其特征在于,所述分别计算所述视线方向与多个预设注视区域中的每一个所述预设注视区域是否相交,包括:The method according to claim 3, wherein the separately calculating whether the line of sight direction intersects with each of the plurality of preset gaze areas includes:
    在内视摄像头的外参标定有效的情况下,将所述视线方向从相机坐标系转换到车身坐标系下,分别计算所述车身坐标系下的视线方向与所述车身坐标系下的多个预设注视区域中的每一个所述预设注视区域是否相交。When the external parameter calibration of the internal camera is valid, the line of sight direction is converted from the camera coordinate system to the body coordinate system, and the line of sight direction in the body coordinate system and multiple coordinates in the body coordinate system are calculated respectively. Whether each of the preset gaze areas intersects.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, further comprising:
    在所述内视摄像头的外参标定失效的情况下,计算所述相机坐标系下的视线方向与视线基准向量之间的夹角;When the external parameter calibration of the inner-view camera fails, calculate the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system;
    在所述夹角连续大于或等于预设夹角阈值的时长大于或等于第四预设时长阈值,或者,在第二预设时间窗口内,所述夹角大于或等于预设夹角阈值的累计时长大于或等于第五预设时长阈值的情况下,确定所述驾驶员处于分心状态。When the included angle is continuously greater than or equal to the preset included angle threshold, the duration is greater than or equal to the fourth preset included angle threshold, or, within the second preset time window, the included angle is greater than or equal to the preset included angle threshold. If the cumulative duration is greater than or equal to the fifth preset duration threshold, it is determined that the driver is in a distracted state.
  6. 根据权利要求5所述的方法,其特征在于,在计算所述相机坐标系下的视线方向与视线基准向量之间的夹角之前,所述方法还包括:The method according to claim 5, characterized in that before calculating the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system, the method further includes:
    计算基于连续N帧历史驾驶员图像识别的N个历史视线方向的方差,其中,N为正整数;Calculate the variance of N historical sight directions based on N consecutive frames of historical driver image recognition, where N is a positive integer;
    选取方差最小的N个历史视线方向的平均值作为所述视线基准向量,或者,选取方差最小的N个历史视线方向中任一历史视线方向作为所述视线基准向量。The average value of the N historical sight directions with the smallest variance is selected as the sight reference vector, or any historical sight direction among the N historical sight directions with the smallest variance is selected as the sight reference vector.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    在内视摄像头的外参标定失效的情况下,基于头部转角识别模型识别所述驾驶员图像中所述驾驶员的头部转角;When the external parameter calibration of the internal view camera fails, identify the driver's head rotation angle in the driver image based on the head rotation angle recognition model;
    在所述头部转角连续大于或等于预设角度阈值的时长大于或等于第六预设时长阈值,或者,在第三预设时间窗口内,所述头部转角大于或等于预设角度阈值的累计时长大于或等于第七预设时长阈值的情况下,确定所述驾驶员处于分心状态。When the head rotation angle is continuously greater than or equal to the preset angle threshold, the duration is greater than or equal to the sixth preset duration threshold, or, within the third preset time window, the head rotation angle is greater than or equal to the preset angle threshold. If the cumulative duration is greater than or equal to the seventh preset duration threshold, it is determined that the driver is in a distracted state.
  8. 根据权利要求1所述的方法,其特征在于,在判断满足预设分心条件的情况下,确定所述驾驶员处于分心状态之前,所述方法还包括:The method according to claim 1, characterized in that, before determining that the driver is in a distracted state when it is determined that the preset distraction condition is met, the method further includes:
    判断车辆是否满足预设前置条件;Determine whether the vehicle meets the preset preconditions;
    在所述车辆满足所述预设前置条件的情况下,执行所述在判断满足预设分心条件的情况下,确定所述驾驶员处于分心状态;When the vehicle satisfies the preset precondition, perform the step of determining that the driver is in a distracted state if it is determined that the preset distraction condition is met;
    在所述车辆不满足所述预设前置条件的情况下,不执行所述在判断满足预设分心条件的情况下,确定所述驾驶员处于分心状态;If the vehicle does not meet the preset precondition, do not perform the step of determining that the driver is in a distracted state if it is determined that the preset distraction condition is met;
    其中,所述预设前置条件包括以下至少一项:Wherein, the preset preconditions include at least one of the following:
    内视摄像头处于未遮挡状态;The internal camera is in an unobstructed state;
    车速大于0;Vehicle speed is greater than 0;
    所述车辆处于非堵车状态;The vehicle is in a non-traffic jam state;
    所述车辆未处于特殊状态;The vehicle is not in a special condition;
    所述特殊状态包括:当所述车辆处于预设场景下且所述驾驶员处于非疲劳状态时,车身姿态与预置转向相同且车速处于预设安全范围内,其中,预设场景包括转向、泊车、倒车中至少一项。The special state includes: when the vehicle is in a preset scene and the driver is in a non-fatigue state, the body posture is the same as the preset steering and the vehicle speed is within the preset safe range, where the preset scene includes steering, At least one of parking and reversing.
  9. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    在所述视线方向表征所述驾驶员处于闭眼状态,且所述驾驶员连续闭眼时长大于或等于第八预设时长阈值的情况下,输出驾驶疲劳提示信息,并清空针对分心判断的目标统计信息,其中,所述目标统计信息包括计时信息和/或加权得分信息。When the gaze direction indicates that the driver is in a closed-eyes state, and the driver's continuous eye-closed duration is greater than or equal to the eighth preset duration threshold, the driving fatigue prompt information is output, and the distraction judgment information is cleared. Target statistical information, wherein the target statistical information includes timing information and/or weighted score information.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method of claim 9, further comprising:
    在所述视线方向表征所述驾驶员处于双眼闭合状态,且双眼连续闭合时长大于或等于第九预设时长阈值后单眼睁开时,重新统计所述目标统计信息;When the sight direction indicates that the driver is in a state with both eyes closed, and the continuous closing duration of both eyes is greater than or equal to the ninth preset duration threshold and then one eye is opened, the target statistical information is re-calculated;
    或者,在所述视线方向表征所述驾驶员处于单眼闭合状态,且单眼连续闭合时长大于或等于所述第九预设时长阈值时,重新统计所述目标统计信息。Alternatively, when the line of sight direction indicates that the driver is in a closed state of one eye, and the continuous closed period of one eye is greater than or equal to the ninth preset duration threshold, the target statistical information is re-calculated.
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,所述预设分心区域对应于至少一个分心等级,所述预设分心区域的分心等级与所述第一预设时长阈值呈负相关关系。The method according to any one of claims 1 to 10, wherein the preset distraction area corresponds to at least one distraction level, and the distraction level of the preset distraction area is the same as the first distraction level. The preset duration thresholds are negatively correlated.
  12. 根据权利要求11所述的方法,其特征在于,与第一分心等级对应的所述预设分心区域包括内后视镜、中控屏、左侧车窗、左后视镜、右侧车窗、右后视镜、控制面板中至少一项,与第二分心等级对应的所述预设分心区域包括左侧门和/或右侧门,所述预设专心区域包括前风挡玻璃。The method according to claim 11, characterized in that the preset distraction area corresponding to the first distraction level includes an interior rearview mirror, a central control screen, a left side window, a left rearview mirror, a right side At least one of the car window, right rearview mirror, and control panel, the preset distraction area corresponding to the second distraction level includes the left door and/or the right door, and the preset concentration area includes the front windshield. Glass.
  13. 一种分心判断装置,其特征在于,所述装置包括:A distraction judgment device, characterized in that the device includes:
    识别单元,用于基于视线识别模型识别驾驶员图像中的视线方向;A recognition unit for identifying the gaze direction in the driver's image based on the gaze recognition model;
    区域确定单元,用于确定所述视线方向所属的目标注视区域;an area determination unit, used to determine the target gaze area to which the line of sight direction belongs;
    分心确定单元,用于在判断满足预设分心条件的情况下,确定所述驾驶员处于分心状态;A distraction determination unit, configured to determine that the driver is in a distracted state when it is determined that the preset distraction conditions are met;
    其中,所述目标注视区域的类别包括预设专心区域、预设分心区域和其他分心区域中至少一项;Wherein, the category of the target gaze area includes at least one of a preset concentration area, a preset distraction area and other distraction areas;
    所述预设分心条件包括以下至少一项:The preset distraction conditions include at least one of the following:
    所述驾驶员连续注视第一目标注视区域的时长大于或等于第一预设时长阈值,所述第一目标注视区域属于所述预设分心区域;The duration of the driver's continuous gaze on the first target gaze area is greater than or equal to the first preset duration threshold, and the first target gaze area belongs to the preset distraction area;
    所述驾驶员在第一预设时间窗口内累计注视第二目标注视区域的时长大于或等于第二预设时长阈值,所述第二目标注视区域不属于所述预设专心区域;The cumulative duration of the driver's gaze on the second target gaze area within the first preset time window is greater than or equal to the second preset duration threshold, and the second target gaze area does not belong to the preset concentration area;
    所述驾驶员连续注视第三目标注视区域的时长大于或等于第三预设时长阈值,所述第三目标注视区域属于所述其他分心区域;The duration of the driver's continuous gaze on the third target gaze area is greater than or equal to the third preset duration threshold, and the third target gaze area belongs to the other distraction areas;
    基于连续多帧所述的驾驶员图像确定的多个所述目标注视区域加权得分大于或等于预设分数阈值。A plurality of weighted scores of the target gaze areas determined based on the driver images of multiple consecutive frames are greater than or equal to a preset score threshold.
  14. 根据权利要求13所述的装置,其特征在于,所述区域确定单元,包括:The device according to claim 13, characterized in that the area determining unit includes:
    计算模块,用于分别计算所述视线方向与多个预设注视区域中的每一个所述预设注视区域是否相交,其中,所述预设注视区域包括所述预设专心区域和/或所述预设分心区域;A calculation module configured to respectively calculate whether the line of sight direction intersects with each of the preset gaze areas in a plurality of preset gaze areas, wherein the preset gaze areas include the preset concentration area and/or the The above-mentioned default distraction area;
    确定模块,用于在所述视线方向只与一个所述预设注视区域相交的情况下,将相交的所述预设注视区域确定为所述目标注视区域;或者,在所述视线方向与至少两个所述预设注视区域相交的情况下,根据预设区域优先级从所述至少两个所述预设注视区域中选择优先级最高的预设注视区域,并将所述优先级最高的预设注视区域确定为所述目标注视区域;或者,在所述视线方向表征所述驾驶员处于睁眼状态且所述视线方向与所述多个预设注视区域均不相交,或者,所述视线方向表征所述驾驶员处于闭眼状态的情况下,确定所述视线方向所属的注视区域为所述其他分心区域,并将所述其他分心区域确定为所述目标注视区域。a determination module, configured to determine the intersecting preset gaze area as the target gaze area when the line of sight direction intersects with only one of the preset gaze areas; or, when the line of sight direction intersects with at least one of the preset gaze areas; When two of the preset gaze areas intersect, the preset gaze area with the highest priority is selected from the at least two preset gaze areas according to the preset area priority, and the highest priority preset gaze area is The preset gaze area is determined as the target gaze area; or, the sight direction indicates that the driver is in an eye-opening state and the sight direction does not intersect with any of the multiple preset gaze areas, or, the When the gaze direction indicates that the driver is in a closed-eyes state, the gaze area to which the gaze direction belongs is determined to be the other distraction area, and the other distraction area is determined to be the target gaze area.
  15. 根据权利要求14所述的装置,其特征在于,所述识别单元,用于基于所述视线识别模型对所述驾驶员图像进行识别,获得相机坐标系下的视线方向。The device according to claim 14, characterized in that the recognition unit is used to recognize the driver image based on the sight recognition model and obtain the sight direction in the camera coordinate system.
  16. 根据权利要求15所述的装置,其特征在于,所述计算模块,用于在内视摄像头的外参标定有效的情况下,将所述视线方向从相机坐标系转换到车身坐标系下,分别计算所述车身坐标系下的视线方向与所述车身坐标系下的多个预设注视区域中的每一个所述预设注视区域是 否相交。The device according to claim 15, characterized in that the calculation module is used to convert the line of sight direction from the camera coordinate system to the vehicle body coordinate system when the external parameter calibration of the internal view camera is valid, respectively. Calculate whether the line of sight direction in the vehicle body coordinate system intersects with each of the plurality of preset gaze areas in the vehicle body coordinate system.
  17. 根据权利要求16所述的装置,其特征在于,所述装置还包括:The device according to claim 16, characterized in that the device further includes:
    计算单元,用于在所述内视摄像头的外参标定失效的情况下,计算所述相机坐标系下的视线方向与视线基准向量之间的夹角;A calculation unit configured to calculate the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system when the external parameter calibration of the internal view camera fails;
    所述分心确定单元,还用于在所述夹角连续大于或等于预设夹角阈值的时长大于或等于第四预设时长阈值,或者,在第二预设时间窗口内,所述夹角大于或等于预设夹角阈值的累计时长大于或等于第五预设时长阈值的情况下,确定所述驾驶员处于分心状态。The distraction determination unit is also configured to: when the time period during which the included angle is continuously greater than or equal to the preset included angle threshold is greater than or equal to the fourth preset time length threshold, or, within the second preset time window, the included angle is continuously greater than or equal to the preset included angle threshold. If the cumulative duration of the angle is greater than or equal to the preset angle threshold is greater than or equal to the fifth preset duration threshold, it is determined that the driver is in a distracted state.
  18. 根据权利要求17所述的装置,其特征在于,所述计算单元,还用于在计算所述相机坐标系下的视线方向与视线基准向量之间的夹角之前,计算基于连续N帧历史驾驶员图像识别的N个历史视线方向的方差,其中,N为正整数;The device according to claim 17, characterized in that the calculation unit is further configured to calculate the angle between the line of sight direction and the line of sight reference vector in the camera coordinate system based on consecutive N frames of historical driving. The variance of N historical sight directions recognized by the actor's image, where N is a positive integer;
    所述装置还包括:The device also includes:
    选取单元,用于选取方差最小的N个历史视线方向的平均值作为所述视线基准向量,或者,选取方差最小的N个历史视线方向中任一历史视线方向作为所述视线基准向量。The selection unit is used to select the average of N historical sight directions with the smallest variance as the sight reference vector, or select any historical sight direction among the N historical sight directions with the smallest variance as the sight reference vector.
  19. 根据权利要求13所述的装置,其特征在于,所述识别单元,还用于在内视摄像头的外参标定失效的情况下,基于头部转角识别模型识别所述驾驶员图像中所述驾驶员的头部转角;The device according to claim 13, wherein the identification unit is further configured to identify the driver in the driver image based on a head angle recognition model when the external parameter calibration of the internal view camera fails. the player’s head angle;
    所述分心确定单元,还用于在所述头部转角连续大于或等于预设角度阈值的时长大于或等于第六预设时长阈值,或者,在第三预设时间窗口内,所述头部转角大于或等于预设角度阈值的累计时长大于或等于第七预设时长阈值的情况下,确定所述驾驶员处于分心状态。The distraction determination unit is also configured to: when the head rotation angle is continuously greater than or equal to the preset angle threshold, the duration is greater than or equal to the sixth preset duration threshold, or, within the third preset time window, the head When the cumulative duration of the partial rotation angle is greater than or equal to the preset angle threshold and is greater than or equal to the seventh preset duration threshold, it is determined that the driver is in a distracted state.
  20. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, characterized in that the device further includes:
    判断单元,用于在判断满足预设分心条件的情况下,确定所述驾驶员处于分心状态之前,判断车辆是否满足预设前置条件;A judgment unit configured to judge whether the vehicle satisfies the preset preconditions before determining that the driver is in a distracted state when it is judged that the preset distraction conditions are met;
    所述分心确定单元,还用于在所述车辆满足所述预设前置条件的情况下,执行所述在判断满足预设分心条件的情况下,确定所述驾驶员处于分心状态;在所述车辆不满足所述预设前置条件的情况下,不执行所述在判断满足预设分心条件的情况下,确定所述驾驶员处于分心状态;The distraction determination unit is also configured to determine that the driver is in a distracted state when the vehicle satisfies the preset preconditions. ; If the vehicle does not meet the preset preconditions, do not perform the step of determining that the driver is in a distracted state if it is determined that the preset distraction conditions are met;
    其中,所述预设前置条件包括以下至少一项:Wherein, the preset preconditions include at least one of the following:
    内视摄像头处于未遮挡状态;The internal camera is in an unobstructed state;
    车速大于0;Vehicle speed is greater than 0;
    所述车辆处于非堵车状态;The vehicle is in a non-traffic jam state;
    所述车辆未处于特殊状态;The vehicle is not in a special condition;
    所述特殊状态包括:当所述车辆处于预设场景下且所述驾驶员处于非疲劳状态时,车身姿态与预置转向相同且车速处于预设安全范围内,其中,预设场景包括转向、泊车、倒车中至少一项。The special state includes: when the vehicle is in a preset scene and the driver is in a non-fatigue state, the body posture is the same as the preset steering and the vehicle speed is within the preset safe range, where the preset scene includes steering, At least one of parking and reversing.
  21. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, characterized in that the device further includes:
    输出单元,用于在所述视线方向表征所述驾驶员处于闭眼状态,且所述驾驶员连续闭眼时长大于或等于第八预设时长阈值的情况下,输出驾驶疲劳提示信息;An output unit configured to output driving fatigue prompt information when the sight direction indicates that the driver is in a closed-eyes state, and the driver's continuous eye-closure duration is greater than or equal to an eighth preset duration threshold;
    清空单元,用于清空针对分心判断的目标统计信息,其中,所述目标统计信息包括计时信息和/或加权得分信息。A clearing unit configured to clear target statistical information for distraction judgment, wherein the target statistical information includes timing information and/or weighted score information.
  22. 根据权利要求21所述的装置,其特征在于,所述装置还包括:The device of claim 21, further comprising:
    统计单元,用于在所述视线方向表征所述驾驶员处于双眼闭合状态,且双眼连续闭合时长大于或等于第九预设时长阈值后单眼睁开时,重新统计所述目标统计信息;或者,在所述视线方向表征所述驾驶员处于单眼闭合状态,且单眼连续闭合时长大于或等于所述第九预设时长阈值时,重新统计所述目标统计信息。A statistical unit configured to re-statisticate the target statistical information when the sight direction indicates that the driver is in a state of closing both eyes, and the continuous closing time of both eyes is greater than or equal to the ninth preset time threshold and then one eye is opened; or, When the sight direction indicates that the driver is in a closed state of one eye, and the continuous closing duration of one eye is greater than or equal to the ninth preset duration threshold, the target statistical information is re-calculated.
  23. 根据权利要求13-22中任一项所述的装置,其特征在于,所述预设分心区域对应于至少一个分心等级,所述预设分心区域的分心等级与所述第一预设时长阈值呈负相关关系。The device according to any one of claims 13-22, wherein the preset distraction area corresponds to at least one distraction level, and the distraction level of the preset distraction area is the same as the first distraction level. The preset duration thresholds are negatively correlated.
  24. 根据权利要求23所述的装置,其特征在于,与第一分心等级对应的所述预设分心区域包括内后视镜、中控屏、左侧车窗、左后视镜、右侧车窗、右后视镜、控制面板中至少一项,与第二分心等级对应的所述预设分心区域包括左侧门和/或右侧门,所述预设专心区域包括前风挡玻璃。The device according to claim 23, wherein the preset distraction area corresponding to the first distraction level includes an interior rearview mirror, a central control screen, a left side window, a left rearview mirror, a right side At least one of the car window, right rearview mirror, and control panel, the preset distraction area corresponding to the second distraction level includes the left door and/or the right door, and the preset concentration area includes the front windshield. Glass.
  25. 一种存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如权利要求1-12中任一所述的方法。A storage medium with a computer program stored thereon, characterized in that when the program is executed by a processor, the method according to any one of claims 1-12 is implemented.
  26. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device includes:
    一个或多个处理器;one or more processors;
    存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述电子设备实现如权利要求1-12中任一所述的方法。When the one or more programs are executed by the one or more processors, the electronic device is caused to implement the method as described in any one of claims 1-12.
  27. 一种车辆,其特征在于,所述车辆包含如权利要求13-24中任一所述的装置,或者包含如权利要求26所述的电子设备。A vehicle, characterized in that the vehicle includes the device according to any one of claims 13-24, or the electronic device according to claim 26.
PCT/CN2022/083706 2022-03-25 2022-03-29 Distraction determination method and apparatus, and storage medium, electronic device and vehicle WO2023178714A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210297856.4A CN114399753A (en) 2022-03-25 2022-03-25 Distraction determination method, distraction determination device, storage medium, electronic device, and vehicle
CN202210297856.4 2022-03-25

Publications (1)

Publication Number Publication Date
WO2023178714A1 true WO2023178714A1 (en) 2023-09-28

Family

ID=81234839

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/083706 WO2023178714A1 (en) 2022-03-25 2022-03-29 Distraction determination method and apparatus, and storage medium, electronic device and vehicle

Country Status (2)

Country Link
CN (1) CN114399753A (en)
WO (1) WO2023178714A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709264A (en) * 2019-03-18 2020-09-25 北京市商汤科技开发有限公司 Driver attention monitoring method and device and electronic equipment
CN113313019A (en) * 2021-05-27 2021-08-27 展讯通信(天津)有限公司 Distracted driving detection method, system and related equipment
CN113378771A (en) * 2021-06-28 2021-09-10 济南大学 Driver state determination method and device, driver monitoring system and vehicle
US20210357670A1 (en) * 2019-06-10 2021-11-18 Huawei Technologies Co., Ltd. Driver Attention Detection Method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111353506A (en) * 2018-12-24 2020-06-30 北京三星通信技术研究有限公司 Adaptive gaze estimation method and apparatus
CN113569785A (en) * 2021-08-04 2021-10-29 上海汽车集团股份有限公司 Driving state sensing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709264A (en) * 2019-03-18 2020-09-25 北京市商汤科技开发有限公司 Driver attention monitoring method and device and electronic equipment
US20210357670A1 (en) * 2019-06-10 2021-11-18 Huawei Technologies Co., Ltd. Driver Attention Detection Method
CN113313019A (en) * 2021-05-27 2021-08-27 展讯通信(天津)有限公司 Distracted driving detection method, system and related equipment
CN113378771A (en) * 2021-06-28 2021-09-10 济南大学 Driver state determination method and device, driver monitoring system and vehicle

Also Published As

Publication number Publication date
CN114399753A (en) 2022-04-26

Similar Documents

Publication Publication Date Title
JP7146959B2 (en) DRIVING STATE DETECTION METHOD AND DEVICE, DRIVER MONITORING SYSTEM AND VEHICLE
US11386679B2 (en) Driving state analysis method and apparatus, driver monitoring system and vehicle
US20210012128A1 (en) Driver attention monitoring method and apparatus and electronic device
CN109937152B (en) Driving state monitoring method and device, driver monitoring system and vehicle
JP6087088B2 (en) System and method for improving vehicle operator performance estimates
CN110765807B (en) Driving behavior analysis and processing method, device, equipment and storage medium
CN113386786B (en) Information prompting method, device, equipment, medium, cloud control platform and vehicle
CN109716411B (en) Method and apparatus to monitor activity level of driver
US11614536B2 (en) Object detection apparatus based on scoring reliability and increasing relative range rate
KR101938314B1 (en) Apparatus and Method for Warning Rear Side of Vehicle with Learning of Driving Pattern
WO2008114839A1 (en) Wakefulness level judging device and wakefulness level judging method
CN110641467A (en) Vehicle distance control method and device of adaptive cruise system
CN114872713A (en) Device and method for monitoring abnormal driving state of driver
JP2021163345A (en) Driving support device and data collection system
WO2023284333A1 (en) Method and apparatus for determining confidence of automatic driving strategy
WO2023178714A1 (en) Distraction determination method and apparatus, and storage medium, electronic device and vehicle
JP2020035437A (en) Vehicle system, method to be implemented in vehicle system, and driver assistance system
JP2003080969A (en) Driver condition detecting device
Hoch et al. The BMW SURF project: A contribution to the research on cognitive vehicles
JP2021136001A (en) Driving support device
WO2023103708A1 (en) Automatic calibration method and apparatus for distraction region, road vehicle, and electronic device
US9849833B2 (en) Driving assistance system
CN113393664A (en) Driving support device
CN113212449A (en) Function trigger parameter adjusting method of front collision early warning system
CN113460074B (en) Automatic driving manual takeover request time adjustment method and system

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

Country of ref document: EP

Kind code of ref document: A1