Pedestrian attention detection driving assistance system, device and method
By installing a pedestrian attention detection system on the vehicle and using cameras and convolutional neural networks to detect the direction of pedestrians' attention, the problem that the existing system cannot detect pedestrians' attention is solved, and safety assessment and early warning of pedestrians are achieved. Reduces the risk of traffic accidents.
Patent Information
- Application Number
- CN202010831079.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-18
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-08-18
AI Technical Summary
Existing driver assistance systems cannot detect pedestrians' attention, resulting in the inability to issue early warnings when pedestrians are not paying attention, increasing the risk of traffic accidents.
By installing a pedestrian attention detection system on the vehicle, using the camera to collect image data in real time, and combining the convolutional neural network and the line of sight detection model, the pedestrian's attention direction and direction of travel are detected, the attention status is determined, and potential dangers are detected. sound an alarm.
It can detect the pedestrian's attention state in advance, issue an alarm, reduce the risk of traffic accidents, improve the driver's safety awareness of pedestrians, and reduce the occurrence of potentially dangerous behaviors.
Smart Images

Figure CN111985388B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of assisted driving technology, and in particular to a pedestrian attention detection driving assistance system, device and method. Background Art
[0002] In the current driver assistance system, pedestrian detection and warning are basically used for pedestrian collision warning within the close range of the vehicle. The basic implementation method is to calculate the time (TTC) of the pedestrian and the car in front of the car to collide. Once the TTC is reduced to a dangerous value, the pedestrian collision warning system will issue a warning to the driver. This collision warning is a system reaction process of passively discovering dangers. The detection distance is short, and the reaction time after the warning is short. After the alarm, it may cause the vehicle to suddenly decelerate or brake suddenly, which greatly reduces the vehicle comfort and increases the risk of rear-end collision. Pedestrian detection is an important part of the driver assistance system. However, in the actual road driving scene, the movement state of pedestrians is not fixed and the pedestrian's line of sight on the road is limited. When walking on the road (for example, pedestrians playing with mobile phones while walking), they may not notice the dangers such as vehicles that may appear outside the line of sight. At this time, people cannot actively avoid potential risks on the road. When the driver of a vehicle on the road realizes that there is a pedestrian in front and the pedestrian's attention is not within the road range, it is necessary to slow down the vehicle, honk the horn, turn on the lights, etc., so as to remind the pedestrian to stop his irregular behavior. By detecting the direction of attention of pedestrians on the road, it is possible to assist in predicting the direction of pedestrians' movement and effectively help drivers judge the risk level of possible collisions. The current driver assistance system does not use pedestrian attention information in this process. Pedestrians with different attention levels pose different risks during driving, which can easily cause traffic accidents if the driver is not paying attention. Summary of the invention
[0003] The embodiments of the present invention provide a pedestrian attention detection driving assistance system, device and method. By adding a pedestrian attention detection driving assistance device and a pedestrian attention detection driving assistance system to a vehicle, the image data of the road ahead is collected in real time through a camera arranged in the pedestrian attention detection driving assistance device, and the pedestrian attention detection driving assistance system performs calculation and analysis. When pedestrian attention may cause a traffic accident, the driver will be reminded to pay attention to prevent traffic accidents with pedestrians. This solves the problem that the current driving assistance system cannot detect the attention of pedestrians and cannot send early warning information in advance according to the different attention of pedestrians to prevent traffic accidents with pedestrians.
[0004] A pedestrian attention detection driving assistance system, comprising: a pedestrian detection module and a pedestrian attention detection module;
[0005] The pedestrian detection module is used to analyze and process the image data of pedestrians to obtain the classification data of pedestrians and background images and the pedestrian positioning data, and send them to the pedestrian attention detection module;
[0006] The pedestrian detection module includes a pedestrian detection unit, which extracts the semantic features of pedestrians in the image and simultaneously completes the classification of pedestrians and background images and pedestrian positioning through a convolutional neural network structure. Pedestrian positioning is to accurately indicate the position of pedestrians in the image with the circumscribed rectangular frame of pedestrians in the image.
[0007] A pedestrian attention detection module, used for receiving the classification data of the background image and the pedestrian positioning data sent by the pedestrian detection module, analyzing and processing the classification data of the background image and the pedestrian positioning data to obtain a detection result and sending an alarm message according to the analysis result;
[0008] Among them, the pedestrian attention detection module includes a distance detection unit, a segmentation unit, a line of sight direction detection unit, a travel direction detection unit, a judgment unit and an alarm unit. The distance detection unit is used to calculate the relative position of the pedestrian and the vehicle. The segmentation unit is used to obtain the area of the pedestrian's head in the image data as the pedestrian's area of interest. The line of sight direction detection unit is used to analyze the pedestrian's area of interest to obtain the pedestrian's line of sight direction. The travel direction detection unit is used to detect the pedestrian's walking direction. The judgment unit is used to judge the pedestrian's attention based on the pedestrian's line of sight direction and walking direction, and send alarm information to the alarm unit based on the judgment result, and the alarm unit sends the alarm information.
[0009] In a second aspect, a pedestrian attention detection driving assistance device provided by an embodiment of the present invention includes:
[0010] A camera, used to obtain image data in front of the vehicle and send the acquired image data to a memory;
[0011] A memory, used to receive and store image data sent by the camera, and also used to store a pedestrian detection module and a pedestrian attention detection module;
[0012] A processor, used to run a pedestrian detection module and a pedestrian attention detection module to analyze and process image data;
[0013] An alarm display is used to display alarm information.
[0014] In a third aspect, a pedestrian attention detection driving assistance method provided by an embodiment of the present invention comprises the following steps:
[0015] S1, acquiring images, the camera collects images of the scene in front of the vehicle in real time;
[0016] S2, determine the location of pedestrians, and detect and locate the pedestrian boundary box in the image;
[0017] S3, calculate the distance between the pedestrian and the vehicle, and calculate the actual position of the pedestrian according to the focal length of the camera;
[0018] S4, obtaining the pedestrian's region of interest and intercepting the pedestrian's head region of interest;
[0019] S5, obtaining the pedestrian's gaze direction, building a gaze detection model based on the head area input and outputting the gaze direction;
[0020] S6, obtaining the moving direction of the pedestrian, and fitting the moving direction of the pedestrian based on the positions of the pedestrians in multiple frames;
[0021] S7, attention analysis, calculates the angle difference between the pedestrian's moving direction and the sight direction;
[0022] S8, early warning, judging whether to give an early warning based on the angle difference threshold and time;
[0023] S9, processing, taking actions based on the warning message.
[0024] Furthermore, the distance detection unit calculates the relative position of the pedestrian and the vehicle using the focal length of the camera and the pixel position of the pedestrian, and defines a distance formula between the camera and the obstacle:
[0025]
[0026] Where Z is the distance between the camera and the pedestrian along the camera optical axis, f is the focal length of the camera, H is the actual height of the camera relative to the ground plane, and y is the vertical displacement of the detected object at the bottom of the image.
[0027] The beneficial effects of the above technical solution provided by the embodiment of the present invention include at least:
[0028] The present invention adds a pedestrian attention detection driving assistance device and a pedestrian attention detection driving assistance system to the vehicle, collects image data of the road ahead in real time through a camera arranged in the pedestrian attention detection driving assistance device, and performs calculation and analysis through the pedestrian attention detection driving assistance system. It can detect the attention direction of pedestrians at a relatively long distance to analyze their danger level on the road, thereby reminding the driver to pay attention to pedestrians or to honk or light up a warning, thereby reminding pedestrians to regulate their behavior on the road. It can detect potential dangerous behaviors at a relatively long distance and issue warnings in advance, thereby solving the problem that the current driving assistance system cannot detect the attention of pedestrians and cannot send early warning information in advance according to the different attention of pedestrians to prevent traffic accidents with pedestrians.
[0029] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0030] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0032] Figure 1 A schematic diagram of the structure of a pedestrian attention detection driving assistance system disclosed in an embodiment of the present invention;
[0033] Figure 2 A schematic diagram of the structure of a pedestrian attention detection driving assistance device disclosed in an embodiment of the present invention;
[0034] Figure 3 A flow chart of a pedestrian attention detection driving assistance method disclosed in an embodiment of the present invention;
[0035] Figure 4 A schematic top view of a pedestrian motion scene disclosed in an embodiment of the present invention.
[0036] Reference numerals:
[0037] 101-camera; 102-memory; 103-processor; 104-alarm display; 200-pedestrian detection module; 201-pedestrian detection unit; 300-pedestrian attention detection module; 301-distance detection unit; 302-segmentation unit; 303-line of sight direction detection unit; 304-travel direction detection unit; 305-judgment unit; 306-alarm unit. Specific embodiments
[0038] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0039] Embodiment 1
[0040] like Figure 1-4As shown, an embodiment of the present invention provides a pedestrian attention detection driving assistance system, including: a pedestrian detection module 200 and a pedestrian attention detection module 300;
[0041] The pedestrian detection module 200 is used to analyze and process the image data of the pedestrian to obtain the classification data of the pedestrian and the background image and the pedestrian positioning data, and send it to the pedestrian attention detection module 300. The pedestrian detection module 200 includes a pedestrian detection unit 201, which extracts the semantic features of the pedestrian in the image, and simultaneously completes the classification of the pedestrian and the background image and the pedestrian positioning through a convolutional neural network structure. The pedestrian positioning is to accurately indicate the position of the pedestrian in the image with the circumscribed rectangular frame of the pedestrian in the image;
[0042] Specific:
[0043] For a single-frame image, pedestrian detection is performed by extracting the semantic features of pedestrians in the image. The pedestrian detection unit 201 uses a convolutional neural network to simultaneously complete the classification of pedestrians and background images and the positioning of pedestrians. The pedestrian positioning is to accurately represent the position of the pedestrian in the image with the circumscribed rectangular frame of the pedestrian in the image. The method of calculating the pedestrian position using the pedestrian detection unit 201 is as follows:
[0044] (1) The original image is transformed into a fixed size and sent to the pedestrian detection unit 201. By pre-generating multiple pre-selected boxes of various scales, image features are extracted on different convolutional layers, so that pedestrians of different scales on the image can be detected;
[0045] (2) Generate multiple pre-selected boxes of objects at different positions in the image, so that pedestrians at different positions on the image can be selected based on the pre-generated boxes;
[0046] (3) After extracting the image convolution features calculated based on the pre-selected box image, the probability that the current box area is a pedestrian or background is calculated through the softmax output of the fully connected layer, and the maximum probability is taken as the target result of the classification;
[0047] (4) Select the pre-selected boxes that meet the conditions in (2) in the image, and finally use the non-maximum suppression (NMS) method to filter out the overlapping boxes in the pre-selected boxes that meet the conditions, so as to obtain the target box position closest to the target. According to the screened target box, the position of the current pedestrian on the image is determined. The output of the detection and prediction boxes of multiple pedestrian targets can be output simultaneously in one image;
[0048] The result for the video data can be obtained from the detection results of multiple frames. Due to the continuity of the pedestrian's movement speed, after the pedestrian is detected in the current frame, the pedestrian pre-selection box of the next frame can be generated near the position of the previous frame, which can reduce the number of pre-generated boxes. Similarly, the pedestrian detection unit 201 extracts features to perform target classification to achieve the function of tracking the pedestrian detected in the previous frame, and then a method combining single-frame image detection and multi-frame tracking is used in the continuous time sequence of the video image to trace the target and determine the movement trajectory;
[0049] The image frame detected by the pedestrian detection module 200 is sent to the pedestrian attention detection module 300 .
[0050] The pedestrian attention detection module 300 is used to receive the classification data of the background image and the pedestrian positioning data sent by the pedestrian detection module 200, analyze and process the classification data of the background image and the pedestrian positioning data to obtain the detection result and send the alarm information according to the analysis result. The pedestrian attention detection module 300 includes a distance detection unit 301, a segmentation unit 302, a sight direction detection unit 303, a travel direction detection unit 304, a judgment unit 305 and an alarm unit 306. The distance detection unit 301 is used to calculate the relative position of the pedestrian and the vehicle. The segmentation unit 302 is used to obtain the area of the pedestrian's head in the image data as the pedestrian's area of interest. The sight direction detection unit 303 is used to analyze the pedestrian's area of interest to obtain the pedestrian's sight direction. The travel direction detection unit 304 is used to detect the pedestrian's walking direction. The judgment unit 305 is used to judge the pedestrian's attention according to the pedestrian's sight direction and walking direction, and send the alarm information to the alarm unit 306 according to the judgment result. The alarm unit 306 sends the alarm information;
[0051] Specific:
[0052] 1. According to the result of the image frame output by the pedestrian detection module 200, the pedestrian's attention can be detected. The distance detection unit 301 uses the camera focal length of the camera 101 and the pixel position of the pedestrian to calculate the relative position of the pedestrian and the vehicle, and defines the distance formula between the camera 101 and the obstacle:
[0053]
[0054] Where Z is the distance between the camera and the pedestrian along the camera optical axis, f is the focal length of the camera, H is the actual height of the camera relative to the ground plane, and y is the vertical displacement of the detected object at the bottom of the image;
[0055] 2. The segmentation unit 302 intercepts the head area in the bounding box of all pedestrians detected in each frame as the region of interest for attention detection. This region is four times the size of the face pixel area;
[0056] 3. The sight direction detection unit 303 extracts all the pedestrian interest area images and performs attention detection on each pedestrian target separately. Since pedestrian attention is a natural continuous signal, attention will produce some sight directions as time passes. This patent implements pedestrian attention detection by constructing a sight detection model. The sight detection model method under the continuous time series collected by the camera 101 is as follows:
[0057] (1) Based on the head region obtained in step 2, multiple frame sequences of head images of the same person are used as inputs of the attention model. For example, at the current moment, the current frame, the previous three frames, and the next three frames are used as inputs of the model.
[0058] (2) Each head cropping region needs to be passed through a network with a convolutional neural network as the backbone structure to generate high-level features of fixed dimensions. In this embodiment, the backbone network can adopt network models such as ResNet and VGG, and the generated high-level features can be hundreds or thousands of dimensions;
[0059] (3) The features generated by the backbone network are fed into a multi-layer bidirectional LSTM (Long Short Term Memory) structure that extracts forward and backward vectors in the sequence. LSTM is a method for modeling sequences in which the output of an element depends on past and future inputs.
[0060] (4) Finally, these vectors are connected and passed through a fully connected layer to produce the target output, which is the predicted sight angle at the current moment. The sight angle is composed of two angles Indicates that It is a method of expressing the sight direction in a spherical coordinate system. The conversion relationship between this angle and the three-dimensional sight direction is as follows Where g = (g x ,g y ,g z ) represents the unit sight vector in the eye coordinate system. In the camera's Cartesian eye coordinate system, E = [Ex, Ey, Ez] expresses the sight direction. Based on the relationship between the eye coordinate system and the camera's Cartesian eye coordinate system, we can convert the sight vector to the eye coordinate system by the following method: g = E g L , g L Represents the unit sight vector in the camera coordinate system;
[0061] 4. The direction of travel detection unit 304 detects the direction of travel of pedestrians. According to the calculation in step 3, the sight direction of all pedestrians in the image at a certain moment can be obtained. The safer way for pedestrians to walk is to keep the attention direction consistent with their own walking direction in the walkable area. For a single pedestrian target, according to the target image frame detected by the pedestrian detection module 200, the position of the lower edge center point of the pedestrian target frame in a continuous multi-frame sequence within a period of time is counted. According to the trajectory composed of these points, a straight line segment can be fitted. Through step 1, a driving direction of the pedestrian motion trajectory on the ground can be obtained. The direction can be represented by an angle. In the actual example, we can use the direction of travel of the current road to represent the angle of 0 degrees, and the angle range is 0 to 360 degrees.
[0062] 5. The judgment unit 305 can obtain the pedestrian's moving direction in the camera coordinate system as v=(-cosα, 0, sinα) according to the result in step 4, and the pedestrian's sight direction in the camera coordinate system as g=(g x ,g y ,g z ), then find the angle between the two vectors The unit sight line vector in the eye coordinate system is calculated based on the size of the included angle. When the included angle is greater than a certain set threshold, it can be determined that the pedestrian's attention is greatly deviated from the driving direction at this time. Then, when the duration of the large sight line deviation exceeds a certain time range, it can be determined that the target pedestrian has a potential dangerous behavior during walking, and the judgment result is sent to the alarm unit 306;
[0063] 6. Based on the judgment result, when the alarm unit 306 detects a pedestrian target with dangerous behavior, the alarm unit 306 sends a warning signal of a potentially dangerous pedestrian ahead. The warning can be transmitted to the auxiliary driving system or the driver himself in the form of sound or picture signals. In response to this warning, the driver may slow down, honk the horn, or turn on the lights.
[0064] The present invention adds a pedestrian attention detection driving assistance device and a pedestrian attention detection driving assistance system to the vehicle, collects image data of the road ahead in real time through the camera 101 arranged in the pedestrian attention detection driving assistance device, and performs calculation and analysis through the pedestrian attention detection driving assistance system. It can detect the attention direction of pedestrians at a long distance to analyze their danger level on the road, thereby reminding the driver to pay attention to pedestrians or to sound a horn or light up a warning, thereby reminding pedestrians to regulate their behavior on the road. It can detect potential dangerous behaviors at a long distance and issue warnings in advance, thereby solving the problem that the current driving assistance system cannot detect the attention of pedestrians and cannot send early warning information in advance according to the different attention of pedestrians to prevent traffic accidents with pedestrians.
[0065] Embodiment 2
[0066] like Figure 1-4 As shown, an embodiment of the present invention provides a pedestrian attention detection driving assistance system, including:
[0067] The camera 101 is used to obtain image data in front of the vehicle and send the collected image data to the memory 102;
[0068] The memory 102 is used to receive and store the image data sent by the camera 101, and is also used to store the pedestrian detection module 200 and the pedestrian attention detection module 300;
[0069] The processor 103 is used to run the pedestrian detection module 200 and the pedestrian attention detection module 300 to analyze and process the image data;
[0070] An alarm display 104, for displaying alarm information;
[0071] In this embodiment, Figure 4 The top view of the pedestrian movement scene is shown, wherein the dotted line represents the road boundary, the semicircle represents the pedestrian top-down model and the arrow represents the current pedestrian direction and the prepared movement direction, the dotted line represents the pedestrian movement trajectory, the camera 101 collects image data of the road ahead in real time, the image sensor imaging in the forward field of view transmits the image in real time, and captures the image frame in a time series, the processor 103 can be used to process the image frames simultaneously and in parallel to complete the pedestrian-related detection and output results in the image, the memory 102 has a pedestrian detection module 200 and a pedestrian attention detection module 300, which can detect the attention of pedestrians, and when a pedestrian target with dangerous behavior is detected, the alarm display 104 provides the driver with a warning signal of a potentially dangerous pedestrian ahead, which can be transmitted to the auxiliary driving system or the driver himself in the form of a signal such as sound or picture, and the driver may perform operations such as slowing down, honking or turning on the lights in response to this warning.
[0072] The pedestrian attention detection driving assistance device disclosed in this embodiment adds a pedestrian attention detection driving assistance device and a pedestrian attention detection driving assistance system to a vehicle, collects image data of the road ahead in real time through the camera 101 provided in the pedestrian attention detection driving assistance device, and performs calculation and analysis through the pedestrian attention detection driving assistance system. It can detect the attention direction of pedestrians at a long distance to analyze their danger level on the road, thereby reminding the driver to pay attention to pedestrians or to honk or light up warnings, thereby reminding pedestrians to regulate their behavior on the road. It can detect potential dangerous behaviors at a long distance and issue warnings in advance, thereby solving the problem that the current driving assistance system cannot detect the attention of pedestrians and cannot send early warning information in advance according to the different attention of pedestrians to prevent traffic accidents with pedestrians.
[0073] Embodiment 3
[0074] The embodiment of the present invention also discloses a pedestrian attention detection driving assistance method, such as Figure 1-4 , including the following steps:
[0075] S1, acquiring an image, the camera 101 collects an image of the scene in front of the vehicle in real time;
[0076] Specifically, for example, the vehicle is traveling on the road at a speed of less than 50 km / h, and a camera 101 installed in front of the roof collects images of the road ahead in real time.
[0077] S2, determine the location of pedestrians, and detect and locate the pedestrian boundary box in the image;
[0078] Specifically, for a single-frame image, pedestrian detection is performed by extracting semantic features of pedestrians in the image. The pedestrian detection unit 201 uses a convolutional neural network to simultaneously complete the classification of pedestrians and background images and the positioning of pedestrians. The pedestrian positioning is to accurately represent the position of the pedestrian in the image with the circumscribed rectangular frame of the pedestrian in the image. The method of calculating the pedestrian position using the pedestrian detection unit 201 is as follows:
[0079] (1) The original image is transformed into a fixed size and sent to the pedestrian detection unit 201. By pre-generating multiple pre-selected boxes of various scales, image features are extracted on different convolutional layers, so that pedestrians of different scales on the image can be detected;
[0080] (2) Generate multiple pre-selected boxes of objects at different positions in the image, so that pedestrians at different positions on the image can be selected based on the pre-generated boxes;
[0081] (3) After extracting the image convolution features calculated based on the pre-selected box image, the probability that the current box area is a pedestrian or background is calculated through the softmax output of the fully connected layer, and the maximum probability is taken as the target result of the classification;
[0082] (4) Select the pre-selected boxes that meet the conditions in (2) in the image, and finally use the non-maximum suppression (NMS) method to filter out the overlapping boxes in the pre-selected boxes that meet the conditions, so as to obtain the target box position closest to the target. According to the screened target box, the position of the current pedestrian on the image is determined. The output of the detection and prediction boxes of multiple pedestrian targets can be output simultaneously in one image;
[0083] The results for video data can be obtained from the detection results of multiple frames of images. Due to the continuity of the pedestrian's movement speed, after the pedestrian is detected in the current frame, the pedestrian pre-selection box of the next frame can be generated near the position of the previous frame. This can reduce the number of pre-generated boxes. Similarly, the pedestrian detection unit 201 extracts features to perform target classification to achieve the function of tracking the pedestrian detected in the previous frame. Then, a method combining single-frame image detection and multi-frame tracking is used in the continuous time series of the video image to trace the target and determine the movement trajectory.
[0084] S3, calculating the distance between the pedestrian and the vehicle, and calculating the actual position of the pedestrian according to the focal length of the camera 101;
[0085] Specifically, the distance detection unit 301 calculates the relative position of the pedestrian and the vehicle using the camera focal length of the camera 101 and the pixel position of the pedestrian.
[0086] S4, obtaining the pedestrian's region of interest and intercepting the pedestrian's head region of interest;
[0087] Specifically, the segmentation unit 302 intercepts the area containing the head in the bounding box of all pedestrians detected in each frame of the image as the area of interest for attention detection, and this area is four times the size of the face pixel area.
[0088] S5, obtaining the pedestrian's gaze direction, building a gaze detection model based on the head area input and outputting the gaze direction;
[0089] Specifically, the gaze direction detection unit 303 extracts all the pedestrian area of interest images and performs attention detection on each pedestrian target separately. Since pedestrian attention is a natural continuous signal, attention will produce some gaze directions as time passes. The data is input into the gaze detection model to obtain the pedestrian's gaze direction.
[0090] S6, obtaining the moving direction of the pedestrian, and fitting the moving direction of the pedestrian based on the positions of the pedestrians in multiple frames;
[0091] Specifically, the travel direction detection unit 304 detects the travel direction of pedestrians. According to the calculation in step S5, the sight direction of all pedestrians in the image at a certain moment can be obtained. A safer way for pedestrians to walk is to keep the direction of attention consistent with their own walking direction in the walkable area. For a single pedestrian target, according to the target image frame detected by the pedestrian detection module 200, the position of the lower edge center point of the pedestrian target frame in a continuous multi-frame sequence over a period of time is counted, and a straight line segment can be fitted based on the trajectory composed of these points. Through step S3, the pedestrian motion trajectory and a travel direction on the ground are obtained.
[0092] S7, attention analysis, calculates the angle difference between the pedestrian's moving direction and the sight direction;
[0093] Specifically, the judgment unit 305 can obtain the pedestrian's traveling direction in the camera coordinate system as v=(-cosα, 0, sinα) according to the result in step S6, and can obtain the pedestrian's sight direction in the camera coordinate system as g=(g x ,g y ,g z ), then find the angle between the two vectors The unit line of sight vector in the eye coordinate system is calculated based on the size of the angle. When the angle is greater than a set threshold, it can be judged that the pedestrian's attention is greatly deviated from the driving direction at this time. Then, when the duration of the large line of sight deviation exceeds a certain time range, it can be judged that the target pedestrian has potentially dangerous behavior during walking, and the judgment result is sent to the alarm unit 306.
[0094] S8, early warning, judging whether to give an early warning based on the angle difference threshold and time;
[0095] Specifically, based on the judgment result, when the alarm unit 306 detects a pedestrian target with dangerous behavior, the alarm unit 306 sends a warning signal of a potentially dangerous pedestrian ahead to the alarm display 104. The warning may include signals such as sound or picture. The alarm display 104 transmits the warning signal to the auxiliary driving system or the driver.
[0096] S9, processing, taking actions based on the warning message;
[0097] The pedestrian attention detection driving assistance method disclosed in this embodiment, by adding a pedestrian attention detection driving assistance device and a pedestrian attention detection driving assistance system to the vehicle, collects image data of the road ahead in real time through the camera 101 set in the pedestrian attention detection driving assistance device, and performs calculation and analysis through the pedestrian attention detection driving assistance system. It can detect the attention direction of pedestrians within a long distance to analyze their danger level on the road, thereby reminding the driver to pay attention to pedestrians or to honk or light up warnings, and then remind pedestrians to regulate their behavior on the road. It can detect potential dangerous behaviors at a long distance and issue warnings in advance, which solves the problem that the current driving assistance system cannot detect the attention of pedestrians and cannot send early warning information in advance according to the different attention of pedestrians to prevent traffic accidents with pedestrians.
[0098] It should be understood that the specific order or hierarchy of steps in the disclosed process is an example of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process can be rearranged without departing from the scope of protection of the present disclosure. The attached method claims present the elements of the various steps in an exemplary order and are not intended to be limited to the specific order or hierarchy described.
[0099] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
[0100] Those skilled in the art will also appreciate that the various illustrative logic blocks, modules, circuits, and algorithmic steps described in conjunction with the embodiments herein can all be implemented as electronic hardware, computer software, or a combination thereof. In order to clearly illustrate the interchangeability between hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above around their functions. Whether such functions are implemented as hardware or software depends on specific applications and the design constraints imposed on the entire system. A skilled person can implement the described functions in an alternative manner for each specific application, but such implementation decisions should not be interpreted as departing from the scope of protection of the present disclosure.
[0101] The steps of the method or algorithm described in conjunction with the embodiments herein may be directly embodied as hardware, a software module executed by a processor, or a combination thereof. The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile disk, a CD-ROM, or any other form of storage medium well known in the art. An exemplary storage medium is connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium may also be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The ASIC may be located in a user terminal. Of course, the processor and the storage medium may also be present in a user terminal as discrete components.
[0102] For software implementation, the techniques described in this application can be implemented with modules (e.g., procedures, functions, etc.) that perform the functions described in this application. These software codes can be stored in a memory unit and executed by a processor. The memory unit can be implemented within the processor or outside the processor. In the latter case, it is coupled to the processor in a communication manner via various means, which are well known in the art.
[0103] The above description includes examples of one or more embodiments. Of course, it is impossible to describe all possible combinations of components or methods for the purpose of describing the above embodiments, but it should be recognized by those skilled in the art that the various embodiments may be further combined and arranged. Therefore, the embodiments described herein are intended to cover all such changes, modifications and variations that fall within the scope of protection of the appended claims. In addition, with respect to the term "comprising" used in the specification or claims, the word is covered in a manner similar to the term "including", just as "including," is explained as a transitional word in the claims. In addition, any term "or" used in the specification of the claims is intended to mean "non-exclusive or".
Claims
1. Pedestrian attention detection driving assistance system, characterized in that: include: Pedestrian detection module and pedestrian attention detection module; The pedestrian detection module is used to analyze and process the image data of pedestrians to obtain the classification data of pedestrians and background images and the pedestrian positioning data, and send them to the pedestrian attention detection module; The pedestrian detection module includes a pedestrian detection unit, which extracts the semantic features of pedestrians in the image and simultaneously completes the classification of pedestrians and background images and pedestrian positioning through a convolutional neural network structure. Pedestrian positioning is to accurately indicate the position of pedestrians in the image with the circumscribed rectangular frame of pedestrians in the image. A pedestrian attention detection module, used for receiving the classification data of the background image and the pedestrian positioning data sent by the pedestrian detection module, analyzing and processing the classification data of the background image and the pedestrian positioning data to obtain a detection result and sending an alarm message according to the analysis result; The pedestrian attention detection module includes a distance detection unit, a segmentation unit, a sight direction detection unit, a travel direction detection unit, a judgment unit and an alarm unit. The distance detection unit is used to calculate the relative position of the pedestrian and the vehicle. The segmentation unit is used to obtain the area of the pedestrian's head in the image data as the pedestrian's region of interest. The sight direction detection unit is used to analyze the pedestrian's region of interest to obtain the pedestrian's sight direction. The travel direction detection unit is used to detect the pedestrian's walking direction. The judgment unit is used to judge the pedestrian's attention according to the pedestrian's sight direction and walking direction, and send alarm information to the alarm unit according to the judgment result, and the alarm unit sends the alarm information. The judging unit can obtain the pedestrian's walking direction according to the pedestrian's walking direction, which is expressed in camera coordinates as According to the pedestrian's line of sight, the pedestrian's line of sight direction in the camera coordinate system can be obtained as , find the angle between two vectors The unit sight line vector in the eye coordinate system is calculated based on the size of the included angle. When the included angle is greater than a certain set threshold, it can be judged that the pedestrian's attention is greatly deviated from the driving direction at this time. Then, when the duration of the large sight line deviation exceeds a certain time range, it can be judged that the pedestrian has potential dangerous behavior during walking, and the judgment result is sent to the alarm unit; in, is the unit vector of the pedestrian’s direction of travel in camera coordinates, represents the angle value of the unit vector on the imaging plane, is the unit vector of the pedestrian’s line of sight in the camera coordinate system, where Respectively represent the component values of the unit vector in each axis direction, Is and The calculated value of the vector angle.
2. The pedestrian attention detection driving assistance system according to claim 1, characterized in that: The distance detection unit calculates the relative position of the pedestrian and the vehicle using the focal length of the camera and the pixel position of the pedestrian, and defines the distance formula between the camera and the obstacle: ; Where Z is the distance between the camera and the pedestrian along the camera optical axis, f is the focal length of the camera, H is the actual height of the camera relative to the ground plane, and y is the vertical displacement of the detected object at the bottom of the image.
3. A pedestrian attention detection driving assistance device, applied to the pedestrian attention detection driving assistance system according to claim 1, characterized in that: include: A camera, used to obtain image data in front of the vehicle and send the acquired image data to a memory; A memory, used to receive and store image data sent by the camera, and also used to store a pedestrian detection module and a pedestrian attention detection module; A processor, used to run a pedestrian detection module and a pedestrian attention detection module to analyze and process image data; An alarm display is used to display alarm information.
4. A pedestrian attention detection driving assistance method, applied to the pedestrian attention detection driving assistance system according to claim 1, characterized in that: The following steps are involved: S1, acquiring images, the camera collects images of the scene in front of the vehicle in real time; S2, determine the location of pedestrians, and detect and locate the pedestrian boundary box in the image; S3, calculate the distance between the pedestrian and the vehicle, and calculate the actual position of the pedestrian according to the focal length of the camera; S4, obtaining the pedestrian's region of interest and intercepting the pedestrian's head region of interest; S5, obtaining the pedestrian's gaze direction, building a gaze detection model based on the head area input and outputting the gaze direction; S6, obtaining the moving direction of the pedestrian, and fitting the moving direction of the pedestrian based on the positions of the pedestrians in multiple frames; S7, attention analysis, calculates the angle difference between the pedestrian's moving direction and the sight direction; S8, early warning, judging whether to give an early warning based on the angle difference threshold and time; S9, processing, taking actions based on the warning message.
