Image processing system and method for automatic identification of driving hazards
Through vehicle-mounted sensors, the driving situation information is acquired, the target driving direction is predicted, and the camera's field of view is adjusted. This solves the problem of driving danger when the existing system cannot identify changes in the vehicle's driving direction, and enables early analysis of changes in driving direction and guarantees driving safety.
Patent Information
- Application Number
- CN202410979826.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-22
AI Technical Summary
The existing automatic driving hazard recognition image processing system cannot effectively identify and respond to potential hazards when the vehicle's driving direction changes, resulting in the inability to identify and respond to driving hazards in advance.
Obtain driving situation information through vehicle-mounted sensors, predict the target driving direction, and adjust the camera field of view area to detect driving hazard information based on whether it is within the camera field of view. The driving direction change prediction model and road condition complexity assessment model are used to improve prediction accuracy.
This ensures that even if the vehicle changes direction, it can analyze driving hazard information in advance to improve driving safety.
Smart Images

Figure CN118506300B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of driving assistance technology, and in particular to an image processing system and method for automatic identification of driving hazards. Background Art
[0002] Image processing-based traffic hazard recognition technology is an important component of autonomous driving and intelligent transportation systems. This technology can detect and warn of potential traffic hazards by analyzing image data captured by the camera, thereby improving driving safety. Existing image processing solutions for automatic identification of traffic hazards are all based on video images with a fixed camera acquisition angle, that is, the shooting field of view of the on-board camera is fixed to the front of the vehicle. However, the driving direction of the vehicle will change, and the driving situation information of the target change direction of the vehicle may not be in the original shooting field of view of the on-board camera, resulting in the inability to identify and respond to traffic hazards in advance for scenarios where the vehicle changes its driving direction. The present invention aims to improve this technical problem. Summary of the invention
[0003] In this regard, the present invention provides an image processing method, system, electronic device, computer storage medium and computer program product for automatic identification of driving hazards to solve the above-mentioned technical problems.
[0004] The present invention discloses an image processing method for automatic identification of driving hazards, the method comprising the following steps: using a vehicle-mounted sensor to obtain first driving situation information of a vehicle and second driving situation information of an area surrounding the vehicle, predicting a target driving direction of the vehicle according to the first driving situation information and the second driving situation information; if the target driving direction is within a current field of view of a vehicle-mounted monitoring camera, automatically detecting driving hazard information based on video image data within the current field of view; if the target driving direction is not within the current field of view of the vehicle-mounted monitoring camera, adjusting the current field of view of the vehicle-mounted monitoring camera based on the target driving direction, and automatically detecting driving hazard information according to video image data within the adjusted field of view.
[0005] In some embodiments, predicting the target driving direction of the vehicle based on the first driving situation information and the second driving situation information includes: inputting the first driving situation information and the second driving situation information into a driving direction change prediction model, the driving direction change prediction model outputting a driving direction change conclusion, and several target driving directions corresponding to the driving direction change conclusion and their corresponding probability values.
[0006] In some embodiments, the first driving state information is determined by: calculating the field of view size of the current field of view area, and calculating the first acquisition time according to the field of view size and the corresponding first conversion function; wherein the first conversion function is a negative correlation function; from the current moment, the driving state information of the vehicle of the first acquisition time is acquired in the historical direction, that is, the first driving state information is obtained.
[0007] In some embodiments, from the current moment on, the driving status information of the vehicle for the first acquisition time is obtained in the historical direction, that is, the first driving status information is obtained, including: using a Transformer-based road condition complexity prediction model to evaluate the road condition complexity of the second driving status information of the area around the vehicle, and obtain a road condition complexity evaluation score; an indirect coefficient is calculated according to the road condition complexity evaluation score and the second conversion function, and the first acquisition time is corrected using the indirect coefficient to obtain a second acquisition time; wherein the second conversion function is a negative correlation function; from the current moment on, the driving status information of the vehicle for the second acquisition time is obtained in the historical direction, that is, the first driving status information is obtained.
[0008] In some embodiments, adjusting the field of view of the vehicle-mounted surveillance camera based on the target driving direction includes: determining a first target area based on the target driving direction, adjusting the field of view of the vehicle-mounted surveillance camera to cover the first target area, and the outer edge of the first target area coincides with the outer edge of the field of view of the vehicle-mounted surveillance camera.
[0009] In some embodiments, determining the first target area based on the target driving direction includes: when the number of the target driving directions is multiple: if the target driving directions are distributed on one side of the field of view of the vehicle-mounted surveillance camera, adjusting the field of view of the vehicle-mounted surveillance camera according to the first target area corresponding to the outermost target driving direction; wherein, the adjustment method for adjusting the field of view of the vehicle-mounted surveillance camera is to change the angle or focal length of the vehicle-mounted surveillance camera; if the target driving directions are distributed on both sides of the field of view of the vehicle-mounted surveillance camera, adjusting the field of view of the vehicle-mounted surveillance camera according to the first target area corresponding to the outermost target driving directions located on both sides; wherein, the adjustment method for adjusting the field of view of the vehicle-mounted surveillance camera is to change the focal length of the vehicle-mounted surveillance camera.
[0010] The present invention also discloses an image processing system for automatic identification of driving hazards, the system comprising a vehicle-mounted sensor, a vehicle-mounted monitoring camera, and a control unit; the vehicle-mounted sensor is used to obtain first driving status information of the vehicle and second driving status information of the area surrounding the vehicle; the vehicle-mounted monitoring camera is used to capture video image data within a field of view in front of the vehicle, and to adjust the field of view according to control instructions of the control unit.
[0011] The control unit is used to predict the target driving direction of the vehicle based on the first driving situation information and the second driving situation information; if the target driving direction is within the current field of view of the vehicle-mounted monitoring camera, the driving hazard information is automatically detected based on the video image data within the current field of view; if the target driving direction is not within the current field of view of the vehicle-mounted monitoring camera, the current field of view of the vehicle-mounted monitoring camera is adjusted based on the target driving direction, and the driving hazard information is automatically detected based on the video image data within the adjusted field of view.
[0012] The present invention also discloses an electronic device, comprising: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement any of the above methods.
[0013] The present invention also discloses a computer storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement any of the above methods.
[0014] The present invention also discloses a computer program product, which includes a computer program for implementing any of the above methods.
[0015] The present invention first predicts and analyzes the change in the driving direction of the vehicle, and decides whether to adjust the field of view of the on-board monitoring camera based on whether the new driving direction is still within the current field of view of the on-board monitoring camera. This ensures that even if the vehicle changes its driving direction, it can still ensure the advance analysis of driving hazard information and thus ensure driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1It is a flow chart of an image processing method for automatic identification of driving hazards disclosed in an embodiment of the present invention.
[0018] Figure 2 It is a schematic diagram of the relative relationship between the target area and the current field of view area disclosed in the embodiment of the present invention.
[0019] Figure 3 The invention discloses an image processing system for automatically identifying driving hazards. DETAILED DESCRIPTION
[0020] The following is a description of the implementation of the present application by specific specific embodiments. People familiar with the technology can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0021] In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
[0022] like Figure 1 As shown, an embodiment of the present invention discloses an image processing method for automatic identification of driving hazards, the method comprising the following steps: using a vehicle-mounted sensor to obtain first driving situation information of the vehicle and second driving situation information of the area surrounding the vehicle, and predicting the target driving direction of the vehicle based on the first driving situation information and the second driving situation information; if the target driving direction is within the current field of view of the vehicle-mounted monitoring camera, automatically detecting the driving hazard information based on the video image data within the current field of view; if the target driving direction is not within the current field of view of the vehicle-mounted monitoring camera, adjusting the current field of view of the vehicle-mounted monitoring camera based on the target driving direction, and automatically detecting the driving hazard information based on the video image data within the adjusted field of view.
[0023] The vehicle of the present invention is equipped with a variety of vehicle-mounted sensors including a vehicle-mounted monitoring camera, such as an ultrasonic radar, a vehicle-to-vehicle communication system, etc. These vehicle-mounted sensors can be used to obtain first driving state information of the vehicle and second driving situation information of the area around the vehicle. By analyzing the first driving situation information and the second driving situation information, it can be predicted whether the vehicle needs to change its driving direction, and its possible target driving direction can be specifically determined.
[0024] It is judged whether the new target driving direction of the vehicle is within the current field of view of the vehicle-mounted monitoring camera. If so, it means that the new target driving direction is not within the video image acquisition coverage of the vehicle-mounted monitoring camera. When the vehicle changes to the target driving direction, the image processing system of the vehicle cannot make a prejudgment in advance whether there is a driving risk in the target driving direction, which is prone to accidents caused by the change of driving direction, especially when there is an obstruction in the area corresponding to the target driving direction. In this regard, the present invention sets the vehicle-mounted monitoring camera to adjust its field of view based on the target driving direction of the vehicle to achieve coverage of the target driving direction, so that the driving situation information of the target driving direction can be obtained before the vehicle changes to the target driving direction, and then an appropriate prejudgment can be made on whether there is a driving risk. On the contrary, if the target driving direction is still within the current field of view of the vehicle-mounted monitoring camera, there is no need to adjust the shooting field of view of the vehicle-mounted monitoring camera, and the driving hazard information related to the target driving direction can be directly detected based on the video image data in the current field of view.
[0025] Therefore, the present invention first predicts and analyzes the change in the driving direction of the vehicle, and decides whether to adjust the field of view of the on-board monitoring camera based on whether the new driving direction is still within the current field of view of the on-board monitoring camera. This ensures that even if the vehicle changes its driving direction, it can still ensure the advance analysis of driving hazard information and thus ensure driving safety.
[0026] In some embodiments, predicting the target driving direction of the vehicle based on the first driving situation information and the second driving situation information includes: inputting the first driving situation information and the second driving situation information into a driving direction change prediction model, the driving direction change prediction model outputting a driving direction change conclusion, and several target driving directions corresponding to the driving direction change conclusion and their corresponding probability values.
[0027] In this embodiment, based on the first driving situation information of the vehicle and the second driving situation information of the surrounding vehicles and objects, it can be predicted whether the vehicle needs to change its driving direction. The first driving situation information mainly includes the vehicle's motion trajectory, motion speed, planned driving path, etc., and the second driving situation information includes not only the motion trajectory, motion speed, planned driving path, etc. of the vehicles around the vehicle, but also static information such as position and contour of static obstacles and road structures. For example, when the planned driving path indicates that the vehicle is going to change lanes to the right and enter the diversion ramp, it is determined that the vehicle needs to change its driving direction; when the vehicle in front of the vehicle is driving slowly and there is space for overtaking in the lane next to the vehicle, it is determined that the vehicle needs to change its driving direction. In order to improve the prediction accuracy, a driving direction change prediction model is established in advance. The driving direction change prediction model can be constructed using a convolutional network, which will not be described in detail.
[0028] Due to different actual driving situations, the vehicle may have more than one target driving direction. In this case, the probability value of each driving direction can be determined, or only the driving direction with a probability value higher than the probability threshold can be determined as the target driving direction, and the probability value of each target driving direction can be output.
[0029] In some embodiments, the first driving state information is determined by: calculating the field of view size of the current field of view area, and calculating the first acquisition time according to the field of view size and the corresponding first conversion function; wherein the first conversion function is a negative correlation function; from the current moment, the driving state information of the vehicle of the first acquisition time is acquired in the historical direction, that is, the first driving state information is obtained.
[0030] In this embodiment, the size of the current field of view area of the on-board surveillance camera of the vehicle is adjustable. For example, the vehicle owner, installer or manufacturer adjusts the focal length of the on-board surveillance camera in advance according to their own needs, so that the size of the current field of view area is adjusted; and the on-board surveillance camera can also be set to a corresponding shooting mode, such as a driving safety monitoring mode, a driving recorder mode, etc. The focal length of the driving safety monitoring mode is greater than that of the driving recorder mode, because a larger monitoring field of view is required in the driving recorder mode to obtain more driving record data.
[0031] The size of the field of view of the current field of view will also directly affect the probability of covering the target driving direction. Specifically, the larger the field of view of the current field of view, the greater the probability that the target driving direction is covered by the current field of view, and vice versa. At the same time, the amount of data on the driving situation of the vehicle is also related to the prediction accuracy of the target driving direction. Generally speaking, the larger the amount of driving situation data, the higher the corresponding prediction accuracy, and vice versa. Therefore, the present invention calculates the first acquisition duration based on the field of view size of the current field of view and the corresponding conversion function, and obtains the first driving situation information of the vehicle in the historical data based on the first acquisition duration. The end point of the first driving situation information is the current moment, and the starting point is a certain historical moment (current moment + first acquisition duration).
[0032] Therefore, the present invention is arranged that when the field of view of the current field of view area is larger, the probability of determining that the target driving direction is still within the current field of view is greater. At this time, it is arranged to use less first driving situation information to predict the target driving direction. Even if the prediction accuracy of the target driving direction has a certain deviation, it is highly likely that it is still within the current field of view, and there is no need to change the monitoring field of view of the vehicle-mounted monitoring camera; on the contrary, when the field of view of the current field of view area is smaller, the probability of determining that the target driving direction is still within the current field of view is smaller. At this time, it is arranged to use more first driving situation information to predict a more accurate target driving direction, which is conducive to making a more accurate decision on whether it is necessary to change the monitoring field of view of the vehicle-mounted monitoring camera.
[0033] It should be noted that the conversion function is a negative correlation function, that is, the first acquisition duration is negatively correlated with the field of view size of the current field of view area, and the present invention does not limit the specific formula form of the conversion function.
[0034] In some embodiments, from the current moment on, the driving status information of the vehicle for the first acquisition time is obtained in the historical direction, that is, the first driving status information is obtained, including: using a Transformer-based road condition complexity prediction model to evaluate the road condition complexity of the second driving status information of the area around the vehicle, and obtain a road condition complexity evaluation score; an indirect coefficient is calculated according to the road condition complexity evaluation score and the second conversion function, and the first acquisition time is corrected using the indirect coefficient to obtain a second acquisition time; wherein the second conversion function is a negative correlation function; from the current moment on, the driving status information of the vehicle for the second acquisition time is obtained in the historical direction, that is, the first driving status information is obtained.
[0035] In this embodiment, the aforementioned method is to determine the acquisition time of the first driving status information only based on the field of view of the vehicle-mounted monitoring camera of the vehicle, but the actual situation of the vehicles around the vehicle will also affect the driving direction change decision of the owner of the vehicle. For example, the higher the complexity of the road conditions in the area around the vehicle, the worse the prediction accuracy of the target driving direction determined by the owner of the vehicle, and vice versa.
[0036] In this regard, the present invention uses a road condition complexity prediction model to evaluate the road condition complexity of the second driving situation information of the area around the vehicle, obtains a corresponding road condition complexity evaluation score, and then uses a second conversion function to calculate an indirect coefficient, which is negatively correlated with the road condition complexity evaluation score, and is a value less than 1. The indirect coefficient can be used to appropriately shorten the first acquisition time determined above, that is, the closer the first driving situation information obtained is to the current moment, the more recent data it is, so that the target driving direction determined by the owner of the vehicle when facing high road condition complexity can be accurately predicted based on more recent data.
[0037] Therefore, through the above method, the present invention analyzes the two aspects of the status of the vehicle and the surrounding vehicles to obtain the first driving status information for predicting the target driving direction of the owner of the vehicle, so that the target driving direction predicted based on the first driving status information is more accurate.
[0038] The road complexity prediction model is built based on Transformer, which mainly includes input layer, encoder layer and output layer. The encoder layer includes self-attention mechanism and feedforward neural network. The self-attention mechanism allows the model to consider other elements in the sequence when processing each element in the sequence, thereby capturing the dependency between elements. The feedforward neural network further processes the output of the self-attention layer. After the second driving situation information is input into the road complexity prediction model based on Transformer, the road complexity evaluation score can be obtained.
[0039] It should be noted that the road condition complexity is related to the number and dispersion of surrounding vehicles. The fewer the surrounding vehicles and the lower the dispersion, for example, fewer vehicles are distributed in one lane, the lower the road condition complexity, and the smaller the corresponding road condition complexity evaluation score; the more surrounding vehicles and the higher the dispersion, for example, more vehicles are distributed in multiple lanes, the higher the road condition complexity, and the larger the corresponding road condition complexity evaluation score.
[0040] In some embodiments, Figure 2 As shown, the adjusting the field of view area of the vehicle-mounted surveillance camera based on the target driving direction includes: determining a first target area based on the target driving direction, adjusting the field of view area of the vehicle-mounted surveillance camera to cover the first target area, and the outer edge of the first target area coincides with the outer edge of the field of view area of the vehicle-mounted surveillance camera.
[0041] In this embodiment, after the target driving direction of the vehicle is predicted, the first target area corresponding to the target driving direction can be determined based on the set size. For example, the first target area can be an area with an outward expansion of 5° or 10° based on the outer edge of the field of view of the vehicle-mounted monitoring camera. At this time, the first target area of the field of view of the vehicle-mounted monitoring camera is controlled to rotate so that the outer edge of the field of view of the vehicle-mounted monitoring camera coincides with the outer edge of the first target area. Of course, the outer edge of the field of view of the vehicle-mounted monitoring camera can also be adjusted by adjusting the focal length of the vehicle-mounted monitoring camera until the outer edge of the field of view of the vehicle-mounted monitoring camera coincides with the outer edge of the first target area.
[0042] In some embodiments, determining the first target area based on the target driving direction includes: when the number of the target driving directions is multiple: if the target driving directions are distributed on one side of the field of view of the vehicle-mounted surveillance camera, adjusting the field of view of the vehicle-mounted surveillance camera according to the first target area corresponding to the outermost target driving direction; wherein, the adjustment method for adjusting the field of view of the vehicle-mounted surveillance camera is to change the angle or focal length of the vehicle-mounted surveillance camera; if the target driving directions are distributed on both sides of the field of view of the vehicle-mounted surveillance camera, adjusting the field of view of the vehicle-mounted surveillance camera according to the first target area corresponding to the outermost target driving directions located on both sides; wherein, the adjustment method for adjusting the field of view of the vehicle-mounted surveillance camera is to change the focal length of the vehicle-mounted surveillance camera.
[0043] In this embodiment, the target driving direction output by the driving direction change prediction model that is higher than a certain probability value may be more than one, and the distribution is also different. Therefore, the present invention is set to operate the vehicle-mounted monitoring camera according to the outermost first target area of the side when each target driving direction is distributed on one side of the field of view of the vehicle-mounted monitoring camera, and the control method is to change the angle or focal length (i.e., adjust the focal length to a smaller value), and the control target is that the outer edge of the first target area coincides with the outer edge of the field of view of the vehicle-mounted monitoring camera; and when each target driving direction is distributed on both sides of the field of view of the vehicle-mounted monitoring camera, the outermost first target areas on both sides are respectively determined to operate the vehicle-mounted monitoring camera, and the control method at this time can only be to change the focal length (i.e., adjust the focal length to a smaller value). With such a setting, when the target driving direction of the vehicle cannot be uniquely and accurately determined, the target driving direction can still be covered in advance by adjusting the field of view size of the vehicle-mounted monitoring camera, and then the driving danger situation of the target driving direction is pre-analyzed, and early warning and driving intervention are performed when there is driving danger, so as to ensure driving safety.
[0044] like Figure 3 As shown, an embodiment of the present invention also discloses an image processing system for automatic identification of driving hazards, the system comprising a vehicle-mounted sensor, a vehicle-mounted monitoring camera, and a control unit; the vehicle-mounted sensor is used to obtain first driving status information of the vehicle and second driving status information of the area around the vehicle; the vehicle-mounted monitoring camera is used to capture video image data in the field of view in front of the vehicle, and adjust the field of view according to the control instructions of the control unit.
[0045] The control unit is used to predict the target driving direction of the vehicle based on the first driving situation information and the second driving situation information; if the target driving direction is within the current field of view of the vehicle-mounted monitoring camera, the driving hazard information is automatically detected based on the video image data within the current field of view; if the target driving direction is not within the current field of view of the vehicle-mounted monitoring camera, the current field of view of the vehicle-mounted monitoring camera is adjusted based on the target driving direction, and the driving hazard information is automatically detected based on the video image data within the adjusted field of view.
[0046] An embodiment of the present invention further discloses an electronic device, comprising: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the method described in the above embodiment.
[0047] An embodiment of the present invention further discloses a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is executed by a processor to implement the method described in the above embodiment.
[0048] The embodiment of the present invention further discloses a computer program product, which includes a computer program for implementing the method described in the above embodiment.
[0049] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the device according to an embodiment of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0050] References herein to "one embodiment," "embodiment," or "one or more embodiments" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. In addition, please note that examples of the term "in one embodiment" do not necessarily all refer to the same embodiment.
[0051] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0052] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
[0053] In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or limiting the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative rather than restrictive with respect to the scope of the present invention, and the scope of the present invention is defined by the appended claims.
Claims
1. An image processing method for automatic identification of driving hazards, characterized in that: The method comprises the following steps: Using a vehicle-mounted sensor to obtain first driving situation information of the vehicle and second driving situation information of an area surrounding the vehicle, and predicting a target driving direction of the vehicle based on the first driving situation information and the second driving situation information; If the target driving direction is within the current field of view of the vehicle-mounted monitoring camera, automatically detecting driving hazard information based on the video image data within the current field of view; If the target driving direction is not within the current field of view of the vehicle-mounted monitoring camera, the current field of view of the vehicle-mounted monitoring camera is adjusted based on the target driving direction, and driving hazard information is automatically detected based on the video image data within the adjusted field of view; The first driving situation information is determined by: Calculating the visual field size of the current visual field area, and calculating the first acquisition duration according to the visual field size and a corresponding first conversion function; wherein the first conversion function is a negative correlation function; From the current moment, the driving situation information of the vehicle for the first acquisition time is acquired in the historical direction, that is, the first driving situation information is acquired; From the current moment, the driving situation information of the vehicle for the first acquisition time is acquired in the historical direction, that is, the first driving situation information is acquired, including: Use the Transformer-based road condition complexity prediction model to evaluate the road condition complexity of the second driving situation information in the area around the vehicle and obtain a road condition complexity evaluation score; An indirect coefficient is calculated according to the road complexity evaluation score and the second conversion function, and the first acquisition time is corrected using the indirect coefficient to obtain a second acquisition time; wherein the second conversion function is a negative correlation function; From the current moment, the driving situation information of the vehicle for the second acquisition time length is acquired in the historical direction, that is, the first driving situation information is acquired.
2. The image processing method for automatic identification of driving hazards according to claim 1 is characterized in that: The target driving direction of the vehicle is predicted based on the first driving situation information and the second driving situation information, including: inputting the first driving situation information and the second driving situation information into a driving direction change prediction model, the driving direction change prediction model outputting a driving direction change conclusion, and a number of target driving directions corresponding to the driving direction change conclusion and their corresponding probability values.
3. The image processing method for automatic identification of driving hazards according to claim 1 is characterized in that: The adjusting the field of view of the vehicle-mounted monitoring camera based on the target driving direction includes: A first target area is determined based on the target driving direction, and the field of view of the vehicle-mounted monitoring camera is adjusted to cover the first target area, and an outer edge of the first target area coincides with an outer edge of the field of view of the vehicle-mounted monitoring camera.
4. The image processing method for automatic identification of driving hazards according to claim 3 is characterized in that: The determining the first target area based on the target driving direction includes: When there are multiple target driving directions: if the target driving directions are distributed on one side of the field of view of the vehicle-mounted monitoring camera, the field of view of the vehicle-mounted monitoring camera is adjusted according to the first target area corresponding to the outermost target driving direction; wherein the field of view of the vehicle-mounted monitoring camera is adjusted by changing the angle or focal length of the vehicle-mounted monitoring camera; If the target driving directions are distributed on both sides of the field of view of the vehicle-mounted monitoring camera, the field of view of the vehicle-mounted monitoring camera is adjusted according to the first target area corresponding to the outermost target driving directions on both sides; wherein the field of view of the vehicle-mounted monitoring camera is adjusted by changing the focal length of the vehicle-mounted monitoring camera.
5. An image processing system for automatic identification of driving hazards, the system being based on the method according to any one of claims 1 to 4, characterized in that: The system includes a vehicle-mounted sensor, a vehicle-mounted monitoring camera, and a control unit; The vehicle-mounted sensor is used to obtain first driving situation information of the vehicle and second driving situation information of the area around the vehicle; The vehicle-mounted monitoring camera is used to capture video image data in the field of view in front of the vehicle, and to adjust the field of view according to the control instructions of the control unit; The control unit is used to predict the target driving direction of the vehicle based on the first driving situation information and the second driving situation information; if the target driving direction is within the current field of view of the vehicle-mounted monitoring camera, the driving hazard information is automatically detected based on the video image data within the current field of view; if the target driving direction is not within the current field of view of the vehicle-mounted monitoring camera, the current field of view of the vehicle-mounted monitoring camera is adjusted based on the target driving direction, and the driving hazard information is automatically detected based on the video image data within the adjusted field of view.
6. An electronic device comprising: At least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 4.
7. A computer storage medium storing a computer program, characterized in that: The computer program is executed by a processor to implement the method according to any one of claims 1 to 4.
8. A computer program product, characterized in that: The computer program product comprises a computer program for implementing the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Control method and device of vehicle-mounted camera and electronic equipment
CN116709032A
