Vehicle obstacle avoidance method and device

By performing image detection and attitude information analysis on vehicle images, and adjusting the obstacle avoidance priority and update frequency, the problem of untimely update of obstacle avoidance strategies in the existing technology is solved, and the safety of vehicle driving is improved.

CN118387093BActive Publication Date: 2024-08-27GAC AION NEW ENERGY AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410833231.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-08-27
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

In autonomous driving or assisted driving vehicles, existing obstacle avoidance strategies pay the same attention to moving target objects, resulting in untimely updating of obstacle avoidance strategies and affecting vehicle driving safety.

Method used

Through image detection of the acquired vehicle images, the image area and area category of the target object are extracted, and the trained attitude detection model is input, the attitude information is obtained, and the obstacle avoidance priority is adjusted according to the attitude information, thereby adjusting the update of the obstacle avoidance strategy. frequency to ensure timely attention to moving target objects and obstacle avoidance.

Benefits of technology

The vehicle's obstacle avoidance strategy update frequency for moving target objects is increased, the safety of vehicle driving is enhanced, and the timeliness and effectiveness of the obstacle avoidance strategy are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118387093B
    Figure CN118387093B
Patent Text Reader

Abstract

The present application relates to the field of assisted driving technology, and provides a vehicle obstacle avoidance method and device, the method comprising: performing image detection on the acquired current image, obtaining the image area of ​​at least one target object in the current image, and the area category of the image area; inputting the image area and the area category of the image area into a trained posture detection model, and obtaining the posture information of the image area; obtaining the obstacle avoidance priority of each image area according to the posture information of each image area, so as to adjust the vehicle's obstacle avoidance strategy update frequency for each image area according to the obstacle avoidance priority of each image area; wherein the posture detection model is trained according to each training sample pair, and the training sample pair includes an object image sample and an area category annotated by the object image sample, and the obstacle avoidance priority is positively correlated with the obstacle avoidance strategy update frequency. The vehicle obstacle avoidance method provided by the embodiment of the present application can improve the safety of vehicle driving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of assisted driving technology, and in particular to a vehicle obstacle avoidance method and device. Background Art

[0002] With the development of technology, more and more vehicles are equipped with automatic driving or assisted driving. In automatic driving or assisted driving, it is necessary to identify the target object and avoid obstacles based on the recognition results of the target object to ensure the safety of automatic driving or assisted driving.

[0003] In the related art, for vehicle obstacle avoidance, the area where the target object is located is usually identified from the acquired road image, and a corresponding obstacle avoidance strategy is generated to avoid the obstacle. However, this obstacle avoidance method pays the same attention to each target object, that is, the update frequency of the obstacle avoidance strategy is the same. If the target object is an object with a moving trend or in a moving state, this obstacle avoidance method is prone to fail to update the obstacle avoidance strategy for the target object in a timely manner, which affects the safety of vehicle driving. Summary of the invention

[0004] The present application aims to solve at least one of the technical problems existing in the related art. To this end, the present application proposes a vehicle obstacle avoidance method, which can improve the safety of vehicle driving.

[0005] According to the first aspect of the present application, a vehicle obstacle avoidance method includes:

[0006] Performing image detection on the acquired current image to obtain an image region of at least one target object in the current image and a region category of the image region;

[0007] Inputting the image region and the region category of the image region into a trained posture detection model to obtain posture information of the image region;

[0008] Obtaining the obstacle avoidance priority of each image area according to the posture information of each image area, so as to adjust the obstacle avoidance strategy update frequency of the vehicle for each image area according to the obstacle avoidance priority of each image area;

[0009] The posture detection model is trained according to each training sample pair, the training sample pair includes an object image sample and an area category annotated by the object image sample, and the obstacle avoidance priority is positively correlated with the obstacle avoidance strategy update frequency.

[0010] By performing image detection on the acquired current image, the image area of ​​the target object in the current image and the area category of the image area are obtained, and the image area and the area category of the image area are input into the trained posture detection model to obtain the posture information of the image area. After obtaining the obstacle avoidance priority of each image area according to the posture information of each image area, the obstacle avoidance strategy update frequency of the vehicle for each image area is adjusted based on the obstacle avoidance priority of each image area. Therefore, by detecting the posture of the target object, it is possible to determine whether the target object has a motion trend or is in a moving state, and timely adjust the attention of the target object, and adjust the obstacle avoidance strategy update frequency, so as to timely update the obstacle avoidance strategy for the target object with a motion trend or in a moving state, thereby improving the safety of vehicle driving.

[0011] According to an embodiment of the present application, performing image detection on the acquired current image to obtain an image region of at least one target object in the current image and a region category of the image region includes:

[0012] Extracting features from the current image to obtain a feature map including the target object;

[0013] Inputting the feature map into a trained target detection model to obtain an image region of the target object in the current image and a region category of the image region;

[0014] The target detection model is trained based on samples of each feature map.

[0015] According to an embodiment of the present application, feature extraction is performed on the current image to obtain a feature map including the target object, including:

[0016] Inputting the current image into a trained convolutional neural network for convolution operation to obtain an initial feature map;

[0017] Downsampling the initial feature map through a pooling layer of the convolutional neural network to obtain the feature map;

[0018] Wherein, the convolutional neural network is obtained by training multiple image samples.

[0019] According to an embodiment of the present application, obtaining the obstacle avoidance priority of each image area according to the posture information of each image area includes:

[0020] determining a motion trend of the image region according to the posture information of the image region;

[0021] An obstacle avoidance priority of the image area is obtained according to the movement trend of the image area.

[0022] According to an embodiment of the present application, obtaining the obstacle avoidance priority of each image area according to the posture information of each image area includes:

[0023] Obtaining a first priority of the image area according to the posture information of the image area;

[0024] Obtaining an obstacle avoidance priority of the image area according to the first priority and a second priority determined by the area category of the image area;

[0025] The second priority of the image area whose area category is the pedestrian category is greater than the obstacle avoidance priority of each image area of ​​other area categories.

[0026] According to an embodiment of the present application, the obstacle avoidance strategy of the image area is determined according to the posture information of the image area.

[0027] According to one embodiment of the present application, it also includes:

[0028] At least two obstacle avoidance regions having conflicting obstacle avoidance strategies in the image regions are determined, and execution priorities of the obstacle avoidance strategies of the obstacle avoidance regions are adjusted according to region categories of the obstacle avoidance regions.

[0029] According to the second aspect of the present application, the vehicle obstacle avoidance device includes:

[0030] An image detection module, used to perform image detection on the acquired current image to obtain an image region of at least one target object in the current image and a region category of the image region;

[0031] A posture detection module, used for inputting the image area and the area category of the image area into a trained posture detection model to obtain posture information of the image area;

[0032] An obstacle avoidance adjustment module, configured to obtain the obstacle avoidance priority of each image area according to the posture information of each image area, so as to adjust the obstacle avoidance strategy update frequency of the vehicle for each image area according to the obstacle avoidance priority of each image area;

[0033] The posture detection model is trained according to each training sample pair, the training sample pair includes an object image sample and an area category annotated by the object image sample, and the obstacle avoidance priority is positively correlated with the obstacle avoidance strategy update frequency.

[0034] According to an electronic device of an embodiment of the third aspect of the present application, the electronic device includes a processor and a memory storing a computer program, and when the processor executes the computer program, the vehicle obstacle avoidance method described in any of the above embodiments is implemented.

[0035] According to the computer-readable storage medium of the fourth aspect embodiment of the present application, a computer program is stored thereon, and when the computer program is executed by a processor, the vehicle obstacle avoidance method described in any of the above embodiments is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application 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.

[0037] Figure 1 It is a flow chart of a vehicle obstacle avoidance method provided in an embodiment of the present application;

[0038] Figure 2 is a schematic structural diagram of an obstacle avoidance device for a vehicle provided in an embodiment of the present application;

[0039] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0041] Below, the vehicle obstacle avoidance method and device provided in the embodiments of the present application will be introduced and explained in detail through several specific embodiments.

[0042] In some embodiments, a vehicle obstacle avoidance method is provided, which is applied to a terminal device for performing obstacle avoidance control of the vehicle. The terminal device may be a desktop terminal, a mobile terminal, a vehicle-mounted terminal, a server or other electronic device, and the server may be an independent server or a server cluster composed of multiple servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence sampling point devices.

[0043] like Figure 1 As shown, this embodiment provides a vehicle obstacle avoidance method, the method comprising:

[0044] Step 101, performing image detection on the acquired current image to obtain an image region of at least one target object in the current image and a region category of the target object;

[0045] Step 102, inputting the image region and region category of the target object into a trained posture detection model to obtain posture information of the target object;

[0046] Step 103, obtaining the obstacle avoidance priority of each target object according to the posture information of each target object, so as to adjust the update frequency of the obstacle avoidance strategy of the vehicle for each target object according to the obstacle avoidance priority of each target object;

[0047] The posture detection model is trained according to each training sample pair, the training sample pair includes an object image sample and an area category annotated by the object image sample, and the obstacle avoidance priority is positively correlated with the obstacle avoidance strategy update frequency.

[0048] In some embodiments, the current image may be a road image in the direction of vehicle travel collected by an on-board visual device, which may be one or more visual devices such as a camera or a laser radar.

[0049] For the acquired current image, preprocessing can be performed first, such as scaling, cropping, brightness adjustment, and denoising the current image in sequence, to improve the accuracy of subsequent image detection. For example, assuming that the current image is I and the preset scaling factor is s, the scaled image I' can be obtained according to the scaling model: I'(x', y') = I(sx, sy). Among them, (x', y') represents the pixel coordinates of the scaled image I', and (x, y) represents the pixel coordinates of the current image I.

[0050] After obtaining the zoomed image I′, in order to improve the recognition efficiency of the target object, that is, the obstacle, the zoomed image can be cropped. For example, according to the reference position of all target objects in the zoomed image I′, the upper left corner coordinate (x′ start ,y′ start ), the lower right corner coordinate (x′ end ,y′ end ), the cropped image I′′ can be calculated by the following formula: I′′(x′′,y′′)=I(x′ start +x′′,y′ start +y′′) where (x′′, y′′) are the pixel coordinates in the cropped image I′′. Then the cropped image I′′ can be adjusted according to the preset brightness adjustment parameter b to obtain the target image.

[0051] After obtaining the target image, image detection can be performed on the target image to extract the image area of ​​each target object in the current image and the area category of each target object from the target image. Exemplarily, the target image can be input into a trained image detection model to output the image area of ​​each target object in the target image and the area category of each image area through the image detection model.

[0052] Among them, for the training of the image detection model, multiple image samples can be obtained in advance, each image sample includes at least one target object, that is, includes at least one obstacle. For any image sample, the actual image area where each target object is located is marked, and the actual category of each actual image area is marked. If the image sample includes target objects such as pedestrians, animals, road signs, and fire hydrants, the actual image areas where these target objects are located and the actual categories of these target images can be marked first, that is, the actual image area where pedestrians are located is marked with the actual category "pedestrian", the actual image area where animals are located is marked with the actual category "animal", and so on.

[0053] Alternatively, the image detection model can be a two-stage detection image detection model, such as Faster R-CNN, which uses a multi-task learning process to combine classification and bounding box regression to solve the detection problem. It uses a convolutional backbone (such as VGG, ResNet) to extract hierarchical features from the image. Where N represents the number of regions of interest (ROIs) passed to the second stage, that is, the number of regional samples in the regional sample set. For the training of the image detection model, the training method of Faster R-CNN can be used to train the image detection model to obtain an image detection model that can perform multi-target object recognition.

[0054] After completing the target object labeling of all image samples, each image sample can be input into the image detection model in turn to obtain the predicted image area and predicted category of each target object in the image sample, and the predicted image area and predicted category of each target object are matched with the actual image area and actual category of each target object. If there is an unmatched actual image area or actual category, the gradient descent method is used to adjust the network parameters of the image detection model through error back propagation, and the next training is performed until the predicted image area and predicted category of each target object in the image sample output each time match the actual image area and actual category of each target object in the image sample, then the training of the image detection model is completed, and a trained image detection model is obtained.

[0055] After obtaining the trained image detection model, the current image can be input into the image detection model for image detection to obtain the image area of ​​the target object in the current image and the area category of the image area.

[0056] After obtaining the image area of ​​a target object and the area category of the image area, the image area and its corresponding area category can be used as a data pair and input into a trained posture detection model to obtain the posture information of the image area. The posture information can represent the posture information of the target object in the image area.

[0057] The posture detection model may be OpenPose. For training of the posture detection model, each object image sample marked with a region category may be sequentially input into the posture detection model for training. The object image sample may be image data of a certain object, such as image data of a pedestrian or image data of an animal. After each object image sample marked with a region category is sequentially input into the posture detection model, the predicted posture information of the object image sample is obtained, and the predicted posture information of the object image sample is matched with the actual posture information of the object image sample. If the two do not match, the gradient descent method is used to adjust the network parameters of the posture detection model through error back propagation, and the next training is performed until the predicted posture information of the object image sample output each time matches the actual posture information of the object image sample, and the training of the image detection model is completed to obtain a trained posture detection model. The posture information includes action category and moving direction, and the action category includes static state and moving state. The static state may include standing, squatting, etc., and the moving state may include walking, running, rolling, etc.

[0058] After the training of the posture detection model is completed, the image region and the region category of the image region can be input into the trained posture detection model to obtain the posture information of the image region, that is, the posture information of the target object in the image region.

[0059] After obtaining the posture information of each image area, the obstacle avoidance priority corresponding to the posture information of each image area can be obtained based on the mapping table storing the correspondence between the posture information and the obstacle avoidance priority, so as to obtain the obstacle avoidance priority of each image area. Among them, if the action category in the posture information is a moving state, and there is an overlap between the moving direction and the moving direction of the vehicle, the higher the corresponding obstacle avoidance priority, and vice versa, the lower the obstacle avoidance priority. Exemplarily, if the action category is standing and the moving direction is stationary, then its obstacle avoidance priority is level 3; if the action category is walking and there is an overlap between the moving direction and the moving direction of the vehicle, then its obstacle avoidance priority is level 4; if the action category is running and there is an overlap between the moving direction and the moving direction of the vehicle, then its obstacle avoidance priority is level 5.

[0060] After obtaining the obstacle avoidance priority of each image area, if the obstacle avoidance priority of the image area is higher, it means that the image area requires more attention and the update frequency of its obstacle avoidance strategy is higher. At this time, the obstacle avoidance strategy update frequency of the vehicle for each image area can be adjusted according to the obstacle avoidance priority of each image area. For example, the obstacle avoidance strategy update frequency corresponding to the lowest obstacle avoidance priority is used as the initial update frequency of each image area, and then the initial update frequency is adjusted according to the obstacle avoidance priority of each image area, so that the image area with a higher obstacle avoidance priority has a higher obstacle avoidance strategy update frequency.

[0061] It can be understood that the obstacle avoidance strategy is updated based on the image detection results. Therefore, the higher the frequency of obstacle avoidance strategy update, the higher the frequency of posture information detection in the image area, thereby increasing the detection frequency of target objects with a moving tendency.

[0062] At the same time, after obtaining the posture information of the image area, that is, the posture information of the target object in the image area, an obstacle avoidance path of the image area can be generated according to the posture information of the image area, so as to determine the obstacle avoidance path as the obstacle avoidance strategy of the image area. For example, the movement direction of the image area can be predicted according to the posture information of the image area, and then the obstacle avoidance path of the image area can be generated based on the movement direction, so as to determine the obstacle avoidance path as the obstacle avoidance strategy of the image area, thereby improving the safety of obstacle avoidance.

[0063] By performing image detection on the acquired current image, the image area of ​​the target object in the current image and the area category of the image area are obtained, and the image area and the area category of the image area are input into the trained posture detection model to obtain the posture information of the image area. After obtaining the obstacle avoidance priority of each image area according to the posture information of each image area, the obstacle avoidance strategy update frequency of the vehicle for each image area is adjusted based on the obstacle avoidance priority of each image area. Therefore, by detecting the posture of the target object, it is possible to determine whether the target object has a motion trend or is in a moving state, and timely adjust the attention of the target object, and adjust the obstacle avoidance strategy update frequency, so as to timely update the obstacle avoidance strategy for the target object with a motion trend or in a moving state, thereby improving the safety of vehicle driving.

[0064] In order to improve the accuracy of the acquired image region and its region category, in some embodiments, image detection is performed on the acquired current image to obtain an image region of at least one target object in the current image and a region category of the image region, including:

[0065] Extracting features from the current image to obtain a feature map including the target object;

[0066] Inputting the feature map into a trained target detection model to obtain an image region of the target object in the current image and a region category of the image region;

[0067] The target detection model is trained based on samples of each feature map.

[0068] In some embodiments, for the acquired current image, feature extraction may be performed on the current image to extract at least one feature map including the target object from the current image. After the feature map is extracted, the feature map may be input into a trained target detection model to obtain the image region of the target object in the current image and the region category of the image region.

[0069] Among them, the target detection model can be a single-stage target detection model, such as NMS or SSD. For the training of the target detection model, the conventional training method of the single-stage target detection model is adopted to obtain a trained target detection model. Alternatively, it can be that a plurality of anchor boxes are first extracted from the feature map samples according to the preset anchor point configuration corresponding to the feature map samples including the target object, and the area corresponding to an anchor box represents a regional sample, and the plurality of regional samples corresponding to the plurality of anchor boxes constitute the regional sample set of the feature map samples. After obtaining the regional sample set of each feature map sample, each regional sample set can be sequentially input into the target detection model for training to obtain the predicted region of the target object output by the target detection model and the predicted classification label of the predicted region. Then, the predicted region is compared with the real image region of the target object, and the predicted classification label is compared with the real label of the target object. According to the comparison results, the gradient descent method is used to adjust the network parameters of the target detection model through error back propagation, and then the next training is carried out until the predicted region of the target object and the predicted classification label of the predicted region obtained after each input of the corresponding regional sample set match the real image region and real label of the target object in the feature map sample corresponding to the regional sample set input this time, which means that the training of the target detection model is completed and a trained target detection model is obtained. Among them, the predicted label represents the predicted category of the target object, and the real label represents the real category of the target object.

[0070] After obtaining the trained target detection model, multiple anchor boxes extracted from the feature map of the target object can be input into the trained target detection model according to the preset anchor configuration to obtain the feature area of ​​the target object in the feature map, as well as the label of the feature area, such as a pedestrian label or a vehicle label.

[0071] After determining the feature region of the target object, the coordinates of the feature region can be mapped to the current image to determine the image region of the target object in the current image. At the same time, the region category of the image region can be determined based on the label of the feature region. For example, the label of the feature region is used as the region category of the image region. If the label of the feature region output by the target detection model is a pedestrian label, it means that the region category of the image region corresponding to the feature region is a pedestrian.

[0072] In order to make the extracted feature map more accurate, in some embodiments, feature extraction is performed on the current image to obtain a feature map including the target object, including:

[0073] Inputting the current image into a trained convolutional neural network for convolution operation to obtain an initial feature map;

[0074] Downsampling the initial feature map through a pooling layer of the convolutional neural network to obtain the feature map;

[0075] Wherein, the convolutional neural network is obtained by training multiple image samples.

[0076] For the training of the convolutional neural network, multiple image samples can be input into the convolutional neural network in sequence to obtain the predicted feature map output by the convolutional neural network, and then the predicted feature map is matched with the actual feature map of the image sample input into the convolutional neural network this time. If the two do not match, the gradient descent method is used to adjust the network parameters of the convolutional neural network through error back propagation, and then the next training is carried out until the predicted feature map of the image sample output each time matches the actual feature map of the image sample, and the training of the convolutional neural network is completed to obtain a trained convolutional neural network.

[0077] After obtaining the trained convolutional neural network, the current image can be input into the convolutional neural network for feature map extraction. For example, assuming that the current image is I and the convolution kernel is K, the convolutional neural network can be used to perform a convolution operation on the current image, such as F(x,y)=∑i∑jI(x+i,y+j)⋅K(i,j), to obtain the initial feature map F. Among them, (x,y) represents the pixel coordinates in the initial feature map, and (i,j) is the pixel coordinates in the convolution kernel.

[0078] After obtaining the initial feature map F, the activation function A(x,y)=ReLU(F(x,y)) can be used to perform a nonlinear transformation on the initial feature map F. ReLU() represents the ReLU activation function. After the nonlinear transformation, the initial feature map is downsampled through the pooling layer of the convolutional neural network, that is, the initial feature map is pooled to retain the features and enhance the robustness of the network to obtain a feature map. Pooling the initial feature map includes P(x,y)=pooling(A(x,y)), (x,y) represents the pixel coordinates of the initial feature map, and pooling() represents the pooling operation.

[0079] After obtaining the feature map, the feature map can be converted into a vector representation through the fully connected layer of the convolutional neural network to provide input for subsequent classification or regression tasks. The weight matrix of the fully connected layer is W, and the bias vector is b. The vectorized result can be expressed by the following formula V=flatten(P)⋅W+b, where flatten() means expanding the feature map into a vector. Finally, V is the vectorized representation of the feature map, mapping the feature to a high-dimensional feature space.

[0080] After obtaining the feature map, the feature map can be input into the trained target detection model for target detection to obtain the image area of ​​the target object in the current image and the area category of the image area. The image area and the area category of the image area are then input into the trained posture detection model to obtain the posture information of the image area.

[0081] After obtaining the posture information of the image area, the motion trend of the image area, that is, the motion trend of the target object in the image area, can be predicted according to the action category and moving direction in the posture information. Exemplarily, the corresponding relationship between each posture information and the motion trend can be pre-set to determine the motion trend corresponding to the posture information according to the acquired posture information. If the action category in the posture information is a static state such as standing or squatting, the motion trend of the image area can be determined to be static; if the action category in the posture information is a motion state of walking, and the moving direction intersects with the moving direction of the vehicle, the motion trend of the image area can be determined to be crossing the road, etc.; if the action category in the posture information is a motion state of raising the hand, and the moving direction is toward the vehicle, the motion trend of the image area can be determined to be stopping the vehicle. At the same time, different obstacle avoidance priorities can be pre-set for different motion trends. After determining the motion trend of the image area according to the posture information of the image area, the obstacle avoidance priority of the image area can be determined according to the motion trend of the image area.

[0082] To further improve the safety of vehicle driving, in some embodiments, the obstacle avoidance priority of each image area is obtained according to the posture information of each image area, including:

[0083] Obtaining a first priority of the image area according to the posture information of the image area;

[0084] The obstacle avoidance priority of the image area is obtained according to the first priority and a second priority determined by the area category of the image area.

[0085] In some embodiments, each priority corresponding to each preset area category may be preset. Among them, the priority of the preset area category for living things is greater than the priority of the preset area category for objects. For example, the priority of pedestrians or animals is greater than the priority of fire hydrants or curbs. At the same time, the priority of pedestrians in the preset area category is the highest. The priority of objects can be determined based on the average volume size of the preset area category. The larger the average volume, the higher the priority of the preset area category. For example, the priority of a car is greater than that of a fire hydrant.

[0086] After the image region and its region category are obtained, the first priority of the image region can be obtained according to the posture information of the image region, and the region category of the image region is matched with each preset region category, so that the priority corresponding to the preset region category matching the region category is used as the second priority of the image region;

[0087] The second priority of the image area whose area category is the pedestrian category is greater than the obstacle avoidance priority of each image area of ​​other area categories.

[0088] After obtaining the first priority and the second priority of the image area, the first priority and the second priority can be added to obtain the obstacle avoidance priority of the image area. To ensure life safety, the second priority of the image area with the pedestrian category must be greater than the obstacle avoidance priority of each image area of ​​other category categories, that is, greater than the maximum obstacle avoidance priority that can be obtained by the image area of ​​other category categories. In this way, when the obstacle avoidance strategy is updated later, priority can be given to the obstacle avoidance strategy of the area where the pedestrians are located, and the obstacle avoidance strategy of the objects with a tendency to move, thereby improving the safety of vehicle driving.

[0089] To further improve the safety of vehicle driving, in some embodiments, the method further includes:

[0090] At least two obstacle avoidance regions having conflicting obstacle avoidance strategies in the image regions are determined, and execution priorities of the obstacle avoidance strategies of the obstacle avoidance regions are adjusted according to region categories of the obstacle avoidance regions.

[0091] In some embodiments, different execution priorities may be preset for different area categories. For example, if the area category is pedestrians, its execution priority is the highest, followed by vehicles, living animals, etc.

[0092] After obtaining the obstacle avoidance strategies of each image area, it is possible to detect whether there are logical conflicts in the obstacle avoidance strategies of each image area. If there are no conflicts in the obstacle avoidance strategies of each image area, the obstacle avoidance strategies of each image area are executed simultaneously. If there are at least two obstacle avoidance areas with conflicting obstacle avoidance strategies in each image area, the execution priority of the obstacle avoidance strategies of each obstacle avoidance area is adjusted according to the area category of each obstacle avoidance area. If the obstacle avoidance areas with logical conflicts include an obstacle avoidance area with the area category of pedestrians, the obstacle avoidance strategy of the obstacle avoidance area is executed first to improve the safety of vehicle driving.

[0093] The obstacle avoidance device for a vehicle provided in the present application is described below. The obstacle avoidance device for a vehicle described below and the obstacle avoidance method for a vehicle described above can be referenced to each other.

[0094] In one embodiment, if Figure 2 As shown, a vehicle obstacle avoidance device is provided, comprising:

[0095] An image detection module 210 is used to perform image detection on the acquired current image to obtain an image region of at least one target object in the current image and a region category of the image region;

[0096] A posture detection module 220, used for inputting the image region and the region category of the image region into a trained posture detection model to obtain posture information of the image region;

[0097] The obstacle avoidance adjustment module 230 is used to obtain the obstacle avoidance priority of each image area according to the posture information of each image area, so as to adjust the obstacle avoidance strategy update frequency of the vehicle for each image area according to the obstacle avoidance priority of each image area;

[0098] The posture detection model is trained according to each training sample pair, the training sample pair includes an object image sample and an area category annotated by the object image sample, and the obstacle avoidance priority is positively correlated with the obstacle avoidance strategy update frequency.

[0099] By performing image detection on the acquired current image, the image area of ​​the target object in the current image and the area category of the image area are obtained, and the image area and the area category of the image area are input into the trained posture detection model to obtain the posture information of the image area. After obtaining the obstacle avoidance priority of each image area according to the posture information of each image area, the obstacle avoidance strategy update frequency of the vehicle for each image area is adjusted based on the obstacle avoidance priority of each image area. Therefore, by detecting the posture of the target object, it is possible to determine whether the target object has a motion trend or is in a moving state, and timely adjust the attention of the target object, and adjust the obstacle avoidance strategy update frequency, so as to timely update the obstacle avoidance strategy for the target object with a motion trend or in a moving state, thereby improving the safety of vehicle driving.

[0100] In one embodiment, the image detection module 210 is specifically used for:

[0101] Extracting features from the current image to obtain a feature map including the target object;

[0102] Inputting the feature map into a trained target detection model to obtain an image region of the target object in the current image and a region category of the image region;

[0103] The target detection model is trained based on samples of each feature map.

[0104] In one embodiment, the image detection module 210 is specifically used for:

[0105] Inputting the current image into a trained convolutional neural network for convolution operation to obtain an initial feature map;

[0106] Downsampling the initial feature map through a pooling layer of the convolutional neural network to obtain the feature map;

[0107] Wherein, the convolutional neural network is obtained by training multiple image samples.

[0108] In one embodiment, the obstacle avoidance adjustment module 230 is specifically used to:

[0109] determining a motion trend of the image region according to the posture information of the image region;

[0110] An obstacle avoidance priority of the image area is obtained according to the movement trend of the image area.

[0111] In one embodiment, the obstacle avoidance adjustment module 230 is specifically used to:

[0112] Obtaining a first priority of the image area according to the posture information of the image area;

[0113] Obtaining an obstacle avoidance priority of the image area according to the first priority and a second priority determined by the area category of the image area;

[0114] The second priority of the image area whose area category is the pedestrian category is greater than the obstacle avoidance priority of each image area of ​​other area categories.

[0115] In one embodiment, the obstacle avoidance strategy of the image region is determined according to the posture information of the image region.

[0116] In one embodiment, the obstacle avoidance adjustment module 230 is further configured to:

[0117] At least two obstacle avoidance regions having conflicting obstacle avoidance strategies in the image regions are determined, and execution priorities of the obstacle avoidance strategies of the obstacle avoidance regions are adjusted according to region categories of the obstacle avoidance regions.

[0118] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call a computer program in the memory 830 to execute the obstacle avoidance method of the vehicle, for example, including:

[0119] Performing image detection on the acquired current image to obtain an image region of at least one target object in the current image and a region category of the image region;

[0120] Inputting the image region and the region category of the image region into a trained posture detection model to obtain posture information of the image region;

[0121] Obtaining the obstacle avoidance priority of each image area according to the posture information of each image area, so as to adjust the obstacle avoidance strategy update frequency of the vehicle for each image area according to the obstacle avoidance priority of each image area;

[0122] The posture detection model is trained according to each training sample pair, the training sample pair includes an object image sample and an area category annotated by the object image sample, and the obstacle avoidance priority is positively correlated with the obstacle avoidance strategy update frequency.

[0123] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0124] On the other hand, an embodiment of the present application also provides a storage medium, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the vehicle obstacle avoidance method provided in the above embodiments.

[0125] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A vehicle obstacle avoidance method, characterized in that: include: Performing image detection on the acquired current image to obtain an image region of at least one target object in the current image and a region category of the image region; Inputting the image region and the region category of the image region into a trained posture detection model to obtain posture information of the image region; Obtaining the obstacle avoidance priority of each image area according to the posture information of each image area, so as to adjust the obstacle avoidance strategy update frequency of the vehicle for each image area according to the obstacle avoidance priority of each image area; The posture detection model is trained according to each training sample pair, the training sample pair includes an object image sample and an area category marked by the object image sample, and the obstacle avoidance priority is positively correlated with the obstacle avoidance strategy update frequency; The region category is the category to which the target object in the image region belongs.

2. The vehicle obstacle avoidance method according to claim 1, characterized in that: Performing image detection on the acquired current image to obtain an image region of at least one target object in the current image and a region category of the image region includes: Extracting features from the current image to obtain a feature map including the target object; Inputting the feature map into a trained target detection model to obtain an image region of the target object in the current image and a region category of the image region; The target detection model is trained based on samples of each feature map.

3. The vehicle obstacle avoidance method according to claim 2, characterized in that: Extracting features from the current image to obtain a feature map of the target object includes: Inputting the current image into a trained convolutional neural network for convolution operation to obtain an initial feature map; Downsampling the initial feature map through a pooling layer of the convolutional neural network to obtain the feature map; Wherein, the convolutional neural network is obtained by training multiple image samples.

4. The vehicle obstacle avoidance method according to claim 1, characterized in that: Obtaining the obstacle avoidance priority of each image area according to the posture information of each image area includes: determining a motion trend of the image region according to the posture information of the image region; An obstacle avoidance priority of the image area is obtained according to the movement trend of the image area.

5. The vehicle obstacle avoidance method according to claim 1 or 4, characterized in that: Obtaining the obstacle avoidance priority of each image area according to the posture information of each image area includes: Obtaining a first priority of the image area according to the posture information of the image area; Obtaining an obstacle avoidance priority of the image area according to the first priority and a second priority determined by the area category of the image area; The second priority of the image area whose area category is the pedestrian category is greater than the obstacle avoidance priority of each image area of ​​other area categories, and the other area categories are area categories other than the pedestrian category.

6. The vehicle obstacle avoidance method according to claim 1, characterized in that: The obstacle avoidance strategy of the image region is determined according to the posture information of the image region.

7. The vehicle obstacle avoidance method according to claim 1, characterized in that: Also includes: At least two obstacle avoidance regions having conflicting obstacle avoidance strategies in the image regions are determined, and execution priorities of the obstacle avoidance strategies of the obstacle avoidance regions are adjusted according to region categories of the obstacle avoidance regions.

8. An obstacle avoidance device for a vehicle, characterized in that: include: An image detection module, used to perform image detection on the acquired current image to obtain an image region of at least one target object in the current image and a region category of the image region; A posture detection module, used for inputting the image area and the area category of the image area into a trained posture detection model to obtain posture information of the image area; An obstacle avoidance adjustment module, configured to obtain the obstacle avoidance priority of each image area according to the posture information of each image area, so as to adjust the obstacle avoidance strategy update frequency of the vehicle for each image area according to the obstacle avoidance priority of each image area; The posture detection model is trained according to each training sample pair, the training sample pair includes an object image sample and an area category marked by the object image sample, and the obstacle avoidance priority is positively correlated with the obstacle avoidance strategy update frequency; The region category is the category to which the target object in the image region belongs.

9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the vehicle obstacle avoidance method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the vehicle obstacle avoidance method according to any one of claims 1 to 7 is implemented.