Vehicle driving safety monitoring method and device, computer equipment, readable storage medium and program product
By collecting images from the driver's camera and four-directional imaging camera, combined with multiple model processing, the driver and vehicle status are monitored in real time, solving the problem of driving safety monitoring during vehicle driving, and improving the driver's safety awareness and vehicle safety. .
Patent Information
- Application Number
- CN202410753125.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-23
AI Technical Summary
While the vehicle is driving, it is difficult to monitor the driver's driving status and the environment outside the vehicle in real time, making it difficult to ensure driving safety.
The driver's camera collects the driver's driving image and the four-directional image camera collects the external environment image. The frame regression model, class prediction model and point regression model are used to process the driver image. The feature extraction model and target detection model are combined to process the environment image in real time. Monitor the driver's driving status and the vehicle's driving status, and send early warning information to the driver to improve safety.
It realizes real-time safety monitoring of vehicles during driving, can remind drivers of fatigue status and potential collision risks, and improve driving safety.
Smart Images

Figure CN118537698A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle safety assistance technology, and in particular to a vehicle driving safety monitoring method, device, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] During vehicle driving, the external environment and the driver's driving status are crucial to driving safety. Therefore, it is necessary to monitor the external environment and the driver's driving status in real time. Summary of the invention
[0003] Based on this, it is necessary to provide a vehicle driving safety monitoring method, device, computer equipment, computer-readable storage medium and computer program product that can monitor the environmental conditions outside the vehicle and the driver's driving status in real time to address the above technical problems.
[0004] In a first aspect, the present application provides a vehicle driving safety monitoring method, the method comprising:
[0005] During the driving of the vehicle, the driver's driving image collected by the driver camera and the vehicle's exterior environment image collected by the four-way imaging camera are obtained;
[0006] Processing the driver's driving image based on a box regression model, a class prediction model, and a point regression model in sequence to obtain the driver's current driving state;
[0007] Processing the external environment image based on a feature extraction model and a target detection model to obtain a current driving state of the vehicle;
[0008] Based on the current driving state and the current traveling state, the safety of the vehicle during traveling is monitored.
[0009] In one embodiment, the processing of the driver's driving image based on the box regression model, the class prediction model, and the point regression model in sequence to obtain the driver's current driving state includes:
[0010] Acquire an initial facial region of the driver from the driving image of the driver based on a preset priori frame;
[0011] Adjusting the initial facial region based on the frame regression model to obtain a target facial region of the driver;
[0012] The target facial area is processed based on the class prediction model and the point regression model to obtain the current driving state.
[0013] In one embodiment, the processing of the target facial region based on the class prediction model and the point regression model to obtain the current driving state includes:
[0014] Determining whether the target facial region includes the driver's facial information based on the class prediction model;
[0015] In a case where the target facial region includes the facial information, acquiring key point coordinates of the driver's facial features and the driver's head posture from the target facial region based on the point regression model;
[0016] The current driving state of the driver is acquired based on the key point coordinates and the head posture.
[0017] In one embodiment, the processing of the external environment image based on the feature extraction model and the target detection model to obtain the current driving state of the vehicle includes:
[0018] Acquire image features of the vehicle exterior environment image based on the feature extraction model;
[0019] Inputting the image features into the target detection model to obtain a first position and a first speed of road traffic participants around the vehicle;
[0020] Acquire a second position and a second speed of the vehicle;
[0021] A current driving state of the vehicle is acquired based on the first position, the first speed, the second position, and the second speed.
[0022] In one embodiment, before acquiring the image features of the vehicle exterior environment image based on the feature extraction model, the method further includes:
[0023] The vehicle exterior environment image is preprocessed, wherein the preprocessing includes image cropping, size adjustment, image normalization, and grayscale processing.
[0024] In one embodiment, the monitoring of the safety of the vehicle during driving based on the current driving state and the current driving state includes:
[0025] When the current driving state is a fatigue state, issuing a first warning message to the driver;
[0026] In the case where the current driving state indicates that there is a risk of collision between the vehicle and the road traffic participant, second warning information is issued to the driver.
[0027] In a second aspect, the present application also provides a vehicle driving safety monitoring device, the device comprising:
[0028] The first acquisition module is used to acquire the driver's driving image collected by the driver camera and the vehicle's external environment image collected by the four-position imaging camera during the vehicle's driving;
[0029] A second acquisition module is used to process the driver's driving image based on a box regression model, a class prediction model, and a point regression model in sequence to obtain the driver's current driving state;
[0030] A third acquisition module is used to process the external environment image based on a feature extraction model and a target detection model to obtain a current driving state of the vehicle;
[0031] A monitoring module is used to monitor the safety of the vehicle during driving based on the current driving state and the current driving state.
[0032] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in any one of the above embodiments when executing the computer program.
[0033] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.
[0034] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.
[0035] The above-mentioned vehicle driving safety monitoring method, device, computer equipment, computer-readable storage medium and computer program product obtain the driver's driving image collected by the driver camera and the vehicle's external environment image collected by the four-way imaging camera during the vehicle's driving process; process the driver's driving image based on the box regression model, the class prediction model, and the point regression model in turn to obtain the driver's current driving state; process the vehicle's external environment image based on the feature extraction model and the target detection model to obtain the vehicle's current driving state; monitor the vehicle's safety during driving based on the current driving state and the current driving state. The method provided by the present application can monitor the external environment and the driver's driving state in real time, thereby ensuring the safety of the vehicle during driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A diagram showing an application environment of a vehicle driving safety monitoring method in one embodiment;
[0038] Figure 2 A schematic diagram of a process of a vehicle driving safety monitoring method in one embodiment;
[0039] Figure 3 is a flow chart of a method for obtaining a current driving state in one embodiment;
[0040] Figure 4 is a structural block diagram of a vehicle driving safety monitoring device in one embodiment;
[0041] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] The vehicle driving safety monitoring method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the driver camera 102 is arranged in the cab to collect the field of view of the driver's face, and the driver camera 102 can be an infrared fill light camera. The four-way imaging camera 106 is arranged in the front, rear, left and right directions of the vehicle to collect the field of view around the vehicle. The driver camera 102 and the four-way imaging camera 106 can respectively convert the collected field of view into digital signals through optical imaging, electrical signal conversion, digital signal processing and other steps. Specifically, the vehicle-side controller 104 obtains the driver's driving image collected by the driver camera 102 and the image of the outside environment collected by the four-way imaging camera 106, and monitors the safety of the vehicle during driving based on the driver's driving image and the image of the outside environment.
[0044] In an exemplary embodiment, Figure 2 As shown, a vehicle driving safety monitoring method is provided, and the method is applied to Figure 1Taking the vehicle-side controller in the example as an example, the method includes the following steps 202 to 208. Among them:
[0045] S202: During the driving of the vehicle, a driver driving image captured by a driver camera and an image of the vehicle's exterior environment captured by four-way imaging cameras are acquired.
[0046] Among them, the driver camera and the four-way image camera send the collected driver driving images and external environment images to the vehicle terminal through AHD (Analog High Definition) or LVDS (Low Voltage Differential Signaling). After receiving the image, the vehicle terminal will decode and store the image.
[0047] S204: Process the driver's driving image based on the box regression model, the class prediction model, and the point regression model in sequence to obtain the driver's current driving state.
[0048] The current driving state includes a normal driving state and a fatigue driving state.
[0049] S206: Process the external environment image based on the feature extraction model and the target detection model to obtain the current driving state of the vehicle.
[0050] Among them, the current driving state represents whether there is a collision risk between the vehicle and other traffic participants.
[0051] S208: Based on the current driving state and the current traveling state, monitor the safety of the vehicle during traveling.
[0052] Among them, the driver can be reminded of the current unsafe factors by sending a warning message to the driver.
[0053] In the above-mentioned vehicle driving safety monitoring method, during the vehicle driving process, the driver's driving image collected by the driver camera and the image of the vehicle's external environment collected by the four-position imaging camera are obtained; the driver's driving image is processed based on the frame regression model, the class prediction model, and the point regression model in turn to obtain the driver's current driving state; the external environment image is processed based on the feature extraction model and the target detection model to obtain the current driving state of the vehicle; based on the current driving state and the current driving state, the safety of the vehicle during driving is monitored. The method provided by the present application can monitor the external environment and the driver's driving state in real time, thereby ensuring the safety of the vehicle during driving.
[0054] In some embodiments, Figure 3As shown, the driver's driving image is processed based on the box regression model, the class prediction model, and the point regression model in turn to obtain the driver's current driving state, including:
[0055] S302: Acquire an initial facial region of the driver from the driving image of the driver based on a preset priori frame.
[0056] S304: Adjust the initial facial region based on the frame regression model to obtain a target facial region of the driver.
[0057] S306: Process the target facial area based on the class prediction model and the point regression model to obtain the current driving state.
[0058] Among them, the preset prior boxes are some predefined boxes that the model automatically recognizes and sets in the image when performing target detection. These boxes can be adjusted according to the target object in the image. The prior boxes are mainly proposed to solve the problem of candidate box selection in target detection, making the detection process more efficient and accurate; the box regression model is used to predict the precise position and size of the target detection box.
[0059] In this embodiment, the initial facial region is first obtained based on the preset prior frame, and then the target facial region is obtained based on the frame regression model, so that the obtained target facial region is more accurate, thereby making the subsequent determination of the current driving state more accurate.
[0060] In some embodiments, the target facial area is processed based on a class prediction model and a point regression model to obtain a current driving state, including: judging whether the target facial area includes the driver's facial information based on the class prediction model; if the target facial area includes facial information, obtaining the key point coordinates of the driver's facial features and the driver's head posture from the target facial area based on the point regression model; and obtaining the driver's current driving state based on the key point coordinates and the head posture.
[0061] Among them, the point regression model can be a pre-trained neural network model; in this embodiment, the key point coordinates may include the key point coordinates of parts such as facial contour, eyebrows, eyes, nose, and mouth, and the head posture may include pitch angle, yaw angle, and roll angle. In other embodiments, the key point coordinates and head posture may also include others, which are not specifically limited in the embodiments of the present application.
[0062] In this embodiment, the driver's facial information is first determined based on the class prediction model, and then the key point coordinates and head posture are determined based on the point regression model, so that the current driving state is determined more accurately.
[0063] In some embodiments, the external environment image is processed based on the feature extraction model and the target detection model to obtain the current driving state of the vehicle, including: obtaining image features of the external environment image based on the feature extraction model; inputting the image features into the target detection model to obtain the first position and first speed of road traffic participants around the vehicle; obtaining the second position and second speed of the vehicle; and obtaining the current driving state of the vehicle based on the first position, the first speed, the second position, and the second speed.
[0064] Among them, the feature extraction model may include at least one of SURF (Speeded Up Robust Features, a computer vision algorithm), LBF (Local Binary Feature, a texture description operator for describing local features of an image), HOG (Histogram of Oriented Gradients, vector gradient histogram), DPM (Deformable PartModels, a target detection algorithm), ORB (Oriented FAST and Rotated BRIEF, a feature detection and description algorithm), LBP (Local Binary Patterns, an operator for image feature description), Haar feature (a feature descriptor used in computer vision and image processing), Canny (an edge detection algorithm used in image processing and computer vision), Sobel (an edge detection operator used in image processing), Prewitt (an edge detection operator used in image processing), and Roberts (an operator used for edge detection); the target detection model may be a neural network model pre-trained by traffic participants.
[0065] In this embodiment, the image features of the external environment image are first acquired based on the feature extraction model, and the first position and first speed of the road traffic participants around the vehicle are obtained based on the target detection model. Finally, the current driving state of the vehicle is acquired based on the first position, the first speed, the second position, and the second speed, so that the acquired current driving state is more accurate.
[0066] In some embodiments, before acquiring the image features of the vehicle exterior environment image based on the feature extraction model, it also includes: preprocessing the vehicle exterior environment image, the preprocessing includes image cropping, size adjustment, image normalization, and grayscale processing.
[0067] Among them, grayscale processing of an image refers to the process of converting a color image into a grayscale image.
[0068] In this embodiment, by preprocessing the image of the vehicle's exterior environment, interference information in the image can be eliminated and feature information can be highlighted.
[0069] In some embodiments, the safety of the vehicle during driving is monitored based on the current driving state and the current traveling state, including: when the current driving state is a fatigue state, issuing a first warning message to the driver; when the current traveling state indicates a collision risk between the vehicle and road traffic participants, issuing a second warning message to the driver.
[0070] Among them, the first warning information is used to remind the driver to take a proper rest, and the second warning information is used to remind the driver that there is a risk of collision between the vehicle and other traffic participants.
[0071] In this embodiment, by sending the first warning information and the second warning information to the driver, the safety of the vehicle during driving can be effectively improved.
[0072] In one embodiment, another vehicle driving safety monitoring method is provided, the method comprising the following contents:
[0073] (1) Video image acquisition
[0074] High-definition cameras are placed in the front, rear, left and right of the vehicle to collect all-round information about the vehicle's surroundings. A camera with infrared fill light function is placed in the cab to collect driver image information.
[0075] (2) Video image transmission
[0076] The video image transmission path involves the camera unit, the vehicle information service terminal unit (referred to as the vehicle terminal), and the vehicle driving recorder unit (referred to as the recorder).
[0077] The front, rear, left and right cameras transmit all-round information about the vehicle's surroundings to the recorder through the AHD / LVDS information stream. The recorder processes the video stream information and transmits it to the vehicle terminal through the AHD / LVDS information stream.
[0078] At the same time, the recorder collects and stores the video from the infrared fill light camera of the driver in the car.
[0079] (3) Video image processing
[0080] The recorder performs video channel matching and identification, cuts and corrects the front, back, left, and right video channels, and transmits the four-way image to the vehicle terminal via AHD / LVDS for display;
[0081] The recorder processes the received in-car driver video information in grayscale, extracts image features, monitors the driver's fatigue state, and issues a sound alarm for the fatigue state, thus realizing the fatigue monitoring function;
[0082] The recorder performs grayscale processing and feature extraction on the images in the received four-way image screen, identifies pedestrians and non-motor vehicles in the screen, and provides visual prompts and sound alarms when the vehicle is speeding and the distance is close, thus realizing the blind spot monitoring function.
[0083] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0084] Based on the same inventive concept, the embodiment of the present application also provides a vehicle driving safety monitoring device for implementing the vehicle driving safety monitoring method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more vehicle driving safety monitoring device embodiments provided below can refer to the limitations of the vehicle driving safety monitoring method above, and will not be repeated here.
[0085] In an exemplary embodiment, Figure 4 As shown, a vehicle driving safety monitoring device 400 is provided, comprising: a first acquisition module 401, a second acquisition module 402, a third acquisition module 403 and a monitoring module 404, wherein:
[0086] The first acquisition module 401 is used to acquire the driver's driving image captured by the driver camera and the vehicle's exterior environment image captured by the four-position imaging camera during the vehicle's driving.
[0087] The second acquisition module 402 is used to process the driver's driving image based on the box regression model, the class prediction model, and the point regression model in sequence to obtain the driver's current driving state.
[0088] The third acquisition module 403 is used to process the external environment image based on the feature extraction model and the target detection model to obtain the current driving state of the vehicle.
[0089] The monitoring module 404 is used to monitor the safety of the vehicle during driving based on the current driving state and the current driving state.
[0090] In some embodiments, the second acquisition module 402 includes:
[0091] An acquisition unit is used to acquire an initial facial region of the driver from the driving image of the driver based on a preset priori frame.
[0092] An adjustment unit is used to adjust the initial facial region based on the frame regression model to obtain a target facial region of the driver.
[0093] A processing unit is used to process the target facial area based on the class prediction model and the point regression model to obtain the current driving state.
[0094] In some embodiments, the processing unit is also used to determine whether the target facial area includes the driver's facial information based on the class prediction model; when the target facial area includes the facial information, obtain the key point coordinates of the driver's facial features and the driver's head posture from the target facial area based on the point regression model; and obtain the driver's current driving state based on the key point coordinates and the head posture.
[0095] In some embodiments, the third acquisition module 403 is also used to acquire image features of the external environment image based on the feature extraction model; input the image features into the target detection model to obtain the first position and first speed of road traffic participants around the vehicle; acquire the second position and second speed of the vehicle; and acquire the current driving state of the vehicle based on the first position, the first speed, the second position, and the second speed.
[0096] In some embodiments, the third acquisition module 403 is further used to pre-process the image of the vehicle exterior environment, wherein the pre-processing includes image cropping, size adjustment, image normalization, and grayscale processing.
[0097] In some embodiments, the monitoring module 404 is also used to issue a first warning message to the driver when the current driving state is a fatigue state; and to issue a second warning message to the driver when the current driving state indicates that there is a risk of collision between the vehicle and the road traffic participants.
[0098] Each module in the above-mentioned vehicle driving safety monitoring device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0099] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a vehicle driving safety monitoring method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0100] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0101] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: during vehicle driving, obtaining a driver driving image captured by a driver camera and an image of the vehicle's exterior environment captured by a four-way imaging camera; processing the driver driving image based on a box regression model, a class prediction model, and a point regression model in sequence to obtain the driver's current driving state; processing the image of the vehicle's exterior environment based on a feature extraction model and a target detection model to obtain the vehicle's current driving state; and monitoring the safety of the vehicle during driving based on the current driving state and the current driving state.
[0102] In one embodiment, when the processor executes a computer program, the driver's driving image is processed based on a box regression model, a class prediction model, and a point regression model in sequence to obtain the driver's current driving state, including: obtaining the driver's initial facial area from the driver's driving image based on a preset priori frame; adjusting the initial facial area based on the box regression model to obtain the driver's target facial area; processing the target facial area based on the class prediction model and the point regression model to obtain the current driving state.
[0103] In one embodiment, the processor executes a computer program to process the target facial area based on the class prediction model and the point regression model to obtain the current driving state, including: judging whether the target facial area includes the driver's facial information based on the class prediction model; obtaining the key point coordinates of the driver's facial features and the driver's head posture from the target facial area based on the point regression model when the target facial area includes the facial information; and obtaining the driver's current driving state based on the key point coordinates and the head posture.
[0104] In one embodiment, when a processor executes a computer program, the feature extraction model and the target detection model are used to process the image of the external environment to obtain the current driving state of the vehicle, including: obtaining image features of the image of the external environment based on the feature extraction model; inputting the image features into the target detection model to obtain the first position and first speed of road traffic participants around the vehicle; obtaining the second position and second speed of the vehicle; and obtaining the current driving state of the vehicle based on the first position, the first speed, the second position, and the second speed.
[0105] In one embodiment, before the processor executes the computer program to obtain the image features of the exterior environment image based on the feature extraction model, it also includes: preprocessing the exterior environment image, and the preprocessing includes image cropping, resizing, image normalization, and grayscale processing.
[0106] In one embodiment, the processor executes a computer program to monitor the safety of the vehicle during driving based on the current driving state and the current traveling state, including: issuing a first warning message to the driver when the current driving state is a fatigue state; and issuing a second warning message to the driver when the current traveling state indicates that there is a risk of collision between the vehicle and the road traffic participant.
[0107] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: during vehicle driving, a driver driving image captured by a driver camera and an image of the vehicle's exterior environment captured by a four-way imaging camera are acquired; the driver driving image is processed based on a box regression model, a class prediction model, and a point regression model in sequence to obtain the driver's current driving state; the exterior environment image is processed based on a feature extraction model and a target detection model to obtain the vehicle's current driving state; and the safety of the vehicle during driving is monitored based on the current driving state and the current driving state.
[0108] In one embodiment, when the computer program is executed by a processor, the driver's driving image is processed based on a box regression model, a class prediction model, and a point regression model in sequence to obtain the driver's current driving state, including: obtaining the driver's initial facial area from the driver's driving image based on a preset priori frame; adjusting the initial facial area based on the box regression model to obtain the driver's target facial area; processing the target facial area based on the class prediction model and the point regression model to obtain the current driving state.
[0109] In one embodiment, the computer program implemented when executed by the processor processes the target facial area based on the class prediction model and the point regression model to obtain the current driving state, including: judging whether the target facial area includes the driver's facial information based on the class prediction model; when the target facial area includes the facial information, acquiring the key point coordinates of the driver's facial features and the driver's head posture from the target facial area based on the point regression model; and acquiring the driver's current driving state based on the key point coordinates and the head posture.
[0110] In one embodiment, when a computer program is executed by a processor, the image of the external environment is processed based on a feature extraction model and a target detection model to obtain the current driving state of the vehicle, including: obtaining image features of the image of the external environment based on the feature extraction model; inputting the image features into the target detection model to obtain a first position and a first speed of road traffic participants around the vehicle; obtaining a second position and a second speed of the vehicle; and obtaining the current driving state of the vehicle based on the first position, the first speed, the second position, and the second speed.
[0111] In one embodiment, before the computer program is executed by the processor and the image features of the external environment image are acquired based on the feature extraction model, it also includes: preprocessing the external environment image, wherein the preprocessing includes image cropping, resizing, image normalization, and grayscale processing.
[0112] In one embodiment, the computer program implemented when executed by the processor monitors the safety of the vehicle during driving based on the current driving state and the current traveling state, including: when the current driving state is a fatigue state, issuing a first warning message to the driver; when the current traveling state indicates that there is a risk of collision between the vehicle and the road traffic participant, issuing a second warning message to the driver.
[0113] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: during vehicle driving, obtaining a driver driving image captured by a driver camera and an image of the vehicle's exterior environment captured by a four-way imaging camera; processing the driver driving image based on a box regression model, a class prediction model, and a point regression model in sequence to obtain the driver's current driving state; processing the image of the vehicle's exterior environment based on a feature extraction model and a target detection model to obtain the vehicle's current driving state; and monitoring the safety of the vehicle during driving based on the current driving state and the current driving state.
[0114] In one embodiment, when the computer program is executed by a processor, the driver's driving image is processed based on a box regression model, a class prediction model, and a point regression model in sequence to obtain the driver's current driving state, including: obtaining the driver's initial facial area from the driver's driving image based on a preset priori frame; adjusting the initial facial area based on the box regression model to obtain the driver's target facial area; processing the target facial area based on the class prediction model and the point regression model to obtain the current driving state.
[0115] In one embodiment, the computer program implemented when executed by the processor processes the target facial area based on the class prediction model and the point regression model to obtain the current driving state, including: judging whether the target facial area includes the driver's facial information based on the class prediction model; when the target facial area includes the facial information, acquiring the key point coordinates of the driver's facial features and the driver's head posture from the target facial area based on the point regression model; and acquiring the driver's current driving state based on the key point coordinates and the head posture.
[0116] In one embodiment, when a computer program is executed by a processor, the image of the external environment is processed based on a feature extraction model and a target detection model to obtain the current driving state of the vehicle, including: obtaining image features of the image of the external environment based on the feature extraction model; inputting the image features into the target detection model to obtain a first position and a first speed of road traffic participants around the vehicle; obtaining a second position and a second speed of the vehicle; and obtaining the current driving state of the vehicle based on the first position, the first speed, the second position, and the second speed.
[0117] In one embodiment, before the computer program is executed by the processor and the image features of the external environment image are acquired based on the feature extraction model, it also includes: preprocessing the external environment image, wherein the preprocessing includes image cropping, resizing, image normalization, and grayscale processing.
[0118] In one embodiment, the computer program implemented when executed by the processor monitors the safety of the vehicle during driving based on the current driving state and the current traveling state, including: when the current driving state is a fatigue state, issuing a first warning message to the driver; when the current traveling state indicates that there is a risk of collision between the vehicle and the road traffic participant, issuing a second warning message to the driver.
[0119] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0120] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0121] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0122] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A vehicle driving safety monitoring method, It is characterized in that The method comprises: During the driving of the vehicle, the driver's driving image collected by the driver camera and the vehicle's exterior environment image collected by the four-way imaging camera are obtained; Processing the driver's driving image based on a box regression model, a class prediction model, and a point regression model in sequence to obtain the driver's current driving state; Processing the external environment image based on a feature extraction model and a target detection model to obtain a current driving state of the vehicle; Based on the current driving state and the current traveling state, the safety of the vehicle during traveling is monitored.
2. The method according to claim 1, It is characterized in that The step of sequentially processing the driver's driving image based on the box regression model, the class prediction model, and the point regression model to obtain the driver's current driving state includes: Acquire an initial facial region of the driver from the driving image of the driver based on a preset priori frame; Adjusting the initial facial region based on the frame regression model to obtain a target facial region of the driver; The target facial area is processed based on the class prediction model and the point regression model to obtain the current driving state.
3. The method according to claim 2, It is characterized in that The processing of the target facial region based on the class prediction model and the point regression model to obtain the current driving state includes: Determining whether the target facial region includes the driver's facial information based on the class prediction model; In a case where the target facial region includes the facial information, acquiring key point coordinates of the driver's facial features and the driver's head posture from the target facial region based on the point regression model; The current driving state of the driver is acquired based on the key point coordinates and the head posture.
4. The method according to claim 1, It is characterized in that The processing of the external environment image based on the feature extraction model and the target detection model to obtain the current driving state of the vehicle includes: Acquire image features of the vehicle exterior environment image based on the feature extraction model; Inputting the image features into the target detection model to obtain a first position and a first speed of road traffic participants around the vehicle; Acquire a second position and a second speed of the vehicle; A current driving state of the vehicle is acquired based on the first position, the first speed, the second position, and the second speed.
5. The method according to claim 4, It is characterized in that Before acquiring the image features of the vehicle exterior environment image based on the feature extraction model, the method further includes: The vehicle exterior environment image is preprocessed, wherein the preprocessing includes image cropping, size adjustment, image normalization, and grayscale processing.
6. The method according to claim 1, It is characterized in that The monitoring of the safety of the vehicle during driving based on the current driving state and the current driving state includes: When the current driving state is a fatigue state, issuing a first warning message to the driver; In the case where the current driving state indicates that there is a risk of collision between the vehicle and the road traffic participant, second warning information is issued to the driver.
7. A vehicle driving safety monitoring device, It is characterized in that The device comprises: The first acquisition module is used to acquire the driver's driving image collected by the driver camera and the vehicle's external environment image collected by the four-position imaging camera during the vehicle's driving; A second acquisition module is used to process the driver's driving image based on a box regression model, a class prediction model, and a point regression model in sequence to obtain the driver's current driving state; A third acquisition module is used to process the external environment image based on a feature extraction model and a target detection model to obtain a current driving state of the vehicle; A monitoring module is used to monitor the safety of the vehicle during driving based on the current driving state and the current driving state.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Safety assistant driving system and control method
CN107215332A
Facial feature-based safe driving behavior analysis method and system
CN114792437A
Driver distraction behavior identification method based on bidirectional video stream
CN115346197A
Large-scale operation equipment blind area early warning protection method
CN117818481A
Driving early warning method and device, equipment, storage medium and program product
CN117841832A
