A method and device for determining a driving path
By setting up a camera on the lower side of the unmanned vehicle to identify the characteristics of the road surface and low objects, calculating the risk value of obstacles and adjusting the driving path, the problem of difficulty in identifying the road surface and low objects for the unmanned vehicle is solved, improving driving safety and avoiding Bumping and rollover risk.
Patent Information
- Application Number
- CN201911052621.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-10-31
AI Technical Summary
It is difficult for existing unmanned vehicle technology to identify and judge the road conditions and surrounding low objects, which poses safety risks and may lead to the risk of bumps or vehicle rollover during driving.
By setting up a camera on the lower side of the vehicle, the simulated images are collected for preprocessing, the road environment characteristics and obstacle characteristics are identified, the obstacle risk value is calculated, and the Xgboost algorithm is used to adjust the driving path to avoid obstruction by low obstacles.
Effectively identify and analyze road conditions and surrounding low objects to avoid bumps or vehicle rollovers caused by low obstacles and ensure the smooth driving of unmanned vehicles.
Smart Images

Figure CN112749595B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for determining a driving path. Background Art
[0002] The rapid development of artificial intelligence has liberated human labor, and technologies and products that use smart devices to replace traditional equipment are highly favored. The development of the logistics industry provides a lot of convenience for people to buy goods on the Internet, but it also requires the continuous expansion of the number of delivery personnel to meet the timeliness of a large number of express deliveries, thereby improving user satisfaction, but it takes up more human resources. At present, unmanned vehicle technology is just suitable for logistics distribution, which can not only save labor costs, but also improve users' shopping experience.
[0003] At present, unmanned vehicle technology has begun to be used in some fields, but it is mainly used to identify the unmanned vehicle's route, large obstacles or pedestrians. In some specific situations, objects cannot be identified or are missed. Unmanned vehicles may encounter low obstacles during driving. When the speed is fast, it is very easy to have large bumps or vehicle rollovers. These problems need to be further resolved to ensure that unmanned vehicles can operate smoothly and accurately.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0005] There is no assessment of the road conditions and surrounding low objects, which poses a safety hazard. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a method and device for determining a driving path, which can identify and analyze the road conditions and surrounding low objects to avoid large bumps or vehicle rollovers caused by the unmanned vehicle being blocked by low obstacles during driving.
[0007] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for determining a driving path is provided.
[0008] A method for determining a driving path according to an embodiment of the present invention is applied to a vehicle having a camera disposed around the lower side of the vehicle body, and includes:
[0009] Preprocessing the simulated image collected by the camera to obtain a road surface image; wherein the camera is arranged around the vehicle;
[0010] Identifying road surface environment features and obstacle features from the road surface image, and calculating obstacle risk values according to the obstacle features;
[0011] A vehicle driving path is determined according to the road environment characteristics and the obstacle risk value.
[0012] Optionally, preprocessing the simulated image collected by the camera to obtain a road surface image includes:
[0013] Acquire a simulated image captured by a camera; wherein the camera is arranged around the lower side of the vehicle, and the viewing angle of the camera is tilted downward;
[0014] The simulated image is preprocessed to obtain a road surface image.
[0015] Optionally, the simulated image is an image of a road surface within a preset range around the vehicle, and
[0016] Preprocessing the simulated image to obtain a road surface image includes:
[0017] Performing analog-to-digital conversion on the analog image to obtain a digital image;
[0018] Using a cosine function to calculate the digital image to obtain a vertical high-frequency component;
[0019] Multiplying the vertical high-frequency component by an attenuation compensation coefficient to obtain a main viewing angle image;
[0020] The main viewing angle image is filtered to obtain a road surface image.
[0021] Optionally, determining a vehicle driving path according to the road environment characteristics and the obstacle risk value includes:
[0022] Correcting the road environment characteristics, the obstacle characteristics, and the obstacle risk value using an Xgboost algorithm;
[0023] If the obstacle risk value is less than the predetermined risk value, the driving path of the vehicle is the original planned path;
[0024] If the obstacle risk value is greater than or equal to a predetermined risk value, an optimal planned path is calculated for the vehicle according to the road environment characteristics and the obstacle characteristics.
[0025] Optionally, using an Xgboost algorithm to correct the road environment characteristics, the obstacle characteristics, and the obstacle risk value includes:
[0026] Extracting obstacle areas and obstacle pixels corresponding to the obstacle features in the road surface image;
[0027] Using the Xgboost algorithm to determine whether each obstacle pixel belongs to the obstacle area, and calculating the area error according to the determination result;
[0028] When the regional error is greater than an error threshold, the obstacle feature, the road environment feature and the obstacle risk value are corrected based on the judgment result.
[0029] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for determining a driving path is provided.
[0030] A device for determining a driving path according to an embodiment of the present invention includes:
[0031] The preprocessing module is used to preprocess the simulated image collected by the camera to obtain a road surface image; wherein the camera is set around the vehicle
[0032] An identification module, used to identify road environment features and obstacle features from the road image, and calculate an obstacle risk value based on the obstacle features;
[0033] A planning module is used to determine a vehicle driving path according to the road environment characteristics and the obstacle risk value.
[0034] Optionally, the preprocessing module is further used for:
[0035] Acquire a simulated image captured by a camera; wherein the camera is arranged around the lower side of the vehicle, and the viewing angle of the camera is tilted downward;
[0036] The simulated image is preprocessed to obtain a road surface image.
[0037] Optionally, the simulated image is an image of a road surface within a preset range around the vehicle, and
[0038] The preprocessing module is further used for:
[0039] Performing analog-to-digital conversion on the analog image to obtain a digital image;
[0040] Using a cosine function to calculate the digital image to obtain a vertical high-frequency component;
[0041] Multiplying the vertical high-frequency component by an attenuation compensation coefficient to obtain a main viewing angle image;
[0042] The main viewing angle image is filtered to obtain a road surface image.
[0043] Optionally, the planning module is further used to:
[0044] Correcting the road environment characteristics, the obstacle characteristics, and the obstacle risk value using an Xgboost algorithm;
[0045] If the obstacle risk value is less than the predetermined risk value, the driving path of the vehicle is the original planned path;
[0046] If the obstacle risk value is greater than or equal to a predetermined risk value, an optimal planned path is calculated for the vehicle according to the road environment characteristics and the obstacle characteristics.
[0047] Optionally, the planning module is further used to:
[0048] Extracting obstacle areas and obstacle pixels corresponding to the obstacle features in the road surface image;
[0049] Using the Xgboost algorithm to determine whether each obstacle pixel belongs to the obstacle area, and calculating the area error according to the determination result;
[0050] When the regional error is greater than an error threshold, the obstacle feature, the road environment feature and the obstacle risk value are corrected based on the judgment result.
[0051] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device for determining a driving path is provided.
[0052] An electronic device for determining a driving path according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement a method for determining a driving path according to an embodiment of the present invention.
[0053] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.
[0054] A computer-readable storage medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, a method for determining a driving path according to an embodiment of the present invention is implemented.
[0055] An embodiment of the above invention has the following advantages or beneficial effects: because the simulated image collected by the camera is preprocessed to obtain a road surface image; the road surface environment characteristics and obstacle characteristics are identified from the road surface image, and the obstacle risk value is calculated based on the obstacle characteristics; the technical means of determining the vehicle's driving path based on the road surface environment characteristics and the obstacle risk value overcomes the technical problem of not making a judgment on the road surface conditions and the surrounding low objects, which poses a safety hazard, and thus achieves the technical effect of identifying and analyzing the road surface conditions and the surrounding low objects, avoiding large bumps or vehicle rollovers caused by the unmanned vehicle being blocked by low obstacles during driving.
[0056] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0058] Figure 1 is a schematic diagram of main steps of a method for determining a driving path according to an embodiment of the present invention;
[0059] Figure 2 is a schematic diagram of the main process of a method for determining a driving path according to a reference embodiment of the present invention;
[0060] Figure 3 is a schematic diagram of camera deployment according to a reference embodiment of the present invention Figure 1 ;
[0061] Figure 4 is a schematic diagram of camera deployment according to a reference embodiment of the present invention Figure 2 ;
[0062] Figure 5 is a schematic diagram of image preprocessing of a method for determining a driving path according to an embodiment of the present invention;
[0063] Figure 6 is a schematic diagram of a training process of a deep neural network of a method for determining a driving path according to an embodiment of the present invention;
[0064] Figure 7 Schematic diagram of the Xgboost algorithm decision of the method for determining a driving path according to an embodiment of the present invention Figure 1 ;
[0065] Figure 8 Schematic diagram of the Xgboost algorithm decision of the method for determining a driving path according to an embodiment of the present invention Figure 2 ;
[0066] Fig. 9 is a schematic diagram of main modules of an apparatus for determining a driving path according to an embodiment of the present invention;
[0067] Fig.10 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0068] Fig.11 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0069] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0070] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.
[0071] Figure 1 is a schematic diagram of main steps of a method for determining a driving path according to an embodiment of the present invention.
[0072] like Figure 1 As shown, the method for determining a driving path in an embodiment of the present invention mainly includes the following steps:
[0073] Step S101: pre-processing the simulated image collected by the camera to obtain a road surface image.
[0074] In order to judge the road conditions and surrounding low objects and eliminate potential safety hazards, the method for determining the driving path in the embodiment of the present invention, based on the existing unmanned vehicle technology, identifies and analyzes the road conditions and surrounding low objects to avoid large bumps or vehicle rollovers caused by the unmanned vehicle being blocked by low obstacles during driving. The cameras are set around the vehicle and can capture images around the vehicle, but the images captured by the cameras are simulated images of their respective perspectives. The simulated images need to be preprocessed to obtain road images that are more suitable for computer reading and analysis.
[0075] Among them, the existing unmanned vehicle technologies mainly include:
[0076] 1. Autonomous driving technology, which receives external data through sensors and cameras, transmits it to the processor for analysis and processing, and then takes corresponding actions;
[0077] 2. Object recognition, for pedestrians, buildings and high obstacles;
[0078] 3. Big data technology, through big data, deep learning of complex scenes is carried out to obtain models for unmanned vehicle driving control.
[0079] In the embodiment of the present invention, step S101 can be implemented in the following manner: acquiring a simulated image captured by a camera; and preprocessing the simulated image to obtain a road surface image.
[0080] The cameras are arranged around the lower side of the vehicle, and the viewing angle of the cameras is tilted downward, so that simulated images of the road surface around the vehicle can be collected. The simulated images collected by each camera are pre-processed to obtain road surface images for driving path analysis.
[0081] Specifically, step S101 can be implemented in the following manner: perform analog-to-digital conversion on the analog image to obtain a digital image; use a cosine function to calculate the digital image to obtain a vertical high-frequency component; multiply the vertical high-frequency component by an attenuation compensation coefficient to obtain a main-view image; and filter the main-view image to obtain a road surface image.
[0082] Since the image received by the camera and the signal obtained after passing through its sensor are analog signals, that is, the camera collects analog images, while the signal processed by the computer is a digital signal, it is necessary to convert the image format to convert the continuous analog signal into a discrete digital signal to facilitate computer processing.
[0083] At the same time, since the image collected by the camera has a certain angle of distortion (geometric tilt, etc.) or signal attenuation, the images collected by the camera at different angles will cause certain interference to the computer processing. Here, the grayscale histogram is used to judge the color distortion, adjust the pixel distribution, and stretch it to make it distributed between 0 and 255. For geometric distortion, the image symmetry center is found, and the image correction is completed by coordinate transformation. Specifically, the vertical high-frequency component is obtained from the digital image using the cosine function as the image data actually collected by the camera, and then multiplied by the attenuation compensation coefficient a for compensation, thereby completing the image correction. The attenuation compensation coefficient is approximated by the exponential function a=exp(-t). The distances between the edge and the center of the image in an image are different from the center of the camera. The phase difference time is obtained by the distance difference, and the pixels at a long distance are compensated. Among them, the cosine function can be cos(mx+n), x is the distance between the edge and the center of the image and the center of the camera, m and n are constants determined according to the position, height and angle of the camera and the main viewing angle; and the attenuation compensation coefficient can be a=exp(-t), t is the time difference between the edge and the center of the image and the center of the camera.
[0084] Next, the corrected primary view image is processed with an FIR bandpass filter to filter out the noise in the image signal. This is especially true for very shallow bumps on the road surface, which may cause misjudgment of low objects. The filtering process is to filter out noise signals below a certain threshold and retain the true obstacle signal, thereby ensuring the accuracy of subsequent processing results.
[0085] Step S102: Identify road environment features and obstacle features from the road image, and calculate obstacle risk values based on the obstacle features.
[0086] The road surface environment features are image features other than obstacles in the image, and the obstacle features are image features of obstacles in the image. According to the obstacle features, the impact of obstacles on vehicle driving (i.e., obstacle risk value) can be further calculated. As a preferred implementation, the road surface environment features, obstacle features, and obstacle risk value can be identified using some algorithm models, such as a deep neural network (ResNet). The identification process includes: inputting the road surface image into the deep neural network; extracting image features from the road surface image using the convolution layer, activation layer, and pooling layer of the deep neural network; aggregating image features using the fully connected layer of the deep neural network; classifying the aggregated image features using the mapping layer of the deep neural network to obtain road surface environment features and obstacle features; and calculating the obstacle risk value based on the obstacle features.
[0087] Step S103: Determine the vehicle's driving path according to the road environment characteristics and the obstacle risk value.
[0088] The road environment characteristics, obstacle characteristics and obstacle risk values obtained in step S102 can be used to identify and analyze the road conditions and surrounding low objects around the vehicle to determine whether the vehicle will be blocked by low obstacles during the subsequent driving process, causing large bumps or vehicle rollover, so as to adjust the driving path in advance to ensure smooth and safe driving of the vehicle, prevent large bumps or rollover accidents, and avoid economic losses.
[0089] In an embodiment of the present invention, step S103 can be implemented in the following manner: using the Xgboost algorithm to correct the road environment characteristics, obstacle characteristics and obstacle risk values; if the obstacle risk value is less than the predetermined risk value, the vehicle's driving path is the original planned path; if the obstacle risk value is greater than or equal to the predetermined risk value, the optimal planned path is calculated for the vehicle based on the road environment characteristics and obstacle characteristics.
[0090] The road environment characteristics, obstacle characteristics and obstacle risk values obtained in step S102 can be further evaluated using the Xgboost algorithm, and then it can be determined whether to adjust the path. If the path is adjusted, all paths from the current position to the target position are calculated and analyzed to obtain the optimal planned path, and then the vehicle continues to travel according to the optimal planned path. In addition, when calculating the optimal planned path based on the road environment characteristics and obstacle characteristics, the ant colony algorithm, simulated annealing algorithm, taboo search algorithm or genetic algorithm can be used to calculate the road environment characteristics and obstacle characteristics to obtain the optimal planned path. The specific implementation can adopt existing technical methods, which will not be described in detail in the embodiments of the present invention.
[0091] The Xgboost algorithm is a boosted tree model that integrates many tree models to form a classifier. The tree model used is the CART regression tree model. The method for determining the driving path of an embodiment of the present invention uses the Xgboost algorithm to further determine the effectiveness of obstacle characteristics, road environment characteristics, and obstacle risk values. As a preferred implementation, the main decision-making process includes: inputting the obstacle area and the real marked area pixel points corresponding to the obstacle (i.e., obstacle pixel points) into the Xgboost model, and the xgboost model will decide whether the obstacle pixel points belong to the obstacle area, thereby correcting the errors in the segmented areas.
[0092] In an embodiment of the present invention, the step of correcting the digital image to obtain the main perspective image can be achieved in the following manner: extracting the obstacle area and obstacle pixel points corresponding to the obstacle features in the road image; using the Xgboost algorithm to determine whether each obstacle pixel point belongs to the obstacle area, and calculating the regional error based on the judgment result; when the regional error is greater than the error threshold, correcting the obstacle features, road environment features and obstacle risk value based on the judgment result.
[0093] It can be seen from the method for determining the driving path according to the embodiment of the present invention that the simulated image collected by the camera is preprocessed to obtain a road surface image; the road surface environment characteristics and obstacle characteristics are identified from the road surface image, and the obstacle risk value is calculated according to the obstacle characteristics; the technical means for determining the vehicle driving path according to the road surface environment characteristics and the obstacle risk value overcomes the technical problem of not making a judgment on the road surface conditions and the surrounding low objects, thereby achieving the technical effect of identifying and analyzing the road surface conditions and the surrounding low objects, and avoiding large bumps or vehicle rollovers caused by the unmanned vehicle being blocked by low obstacles during driving.
[0094] In order to further explain the technical idea of the present invention, the technical solution of the present invention is now described in combination with specific application scenarios, taking the method for determining a driving path of an unmanned vehicle using an embodiment of the present invention as an example.
[0095] like Figure 2 As shown, as a reference implementation method, the method for determining a driving path in an embodiment of the present invention can be implemented with reference to the following process:
[0096] 1. Camera location deployment: Distributed deployment is adopted to ensure that the camera angle can fully collect information about low objects around the unmanned vehicle. Figure 3 and 4 As shown in the camera position, the camera can be deployed in a position slightly upward relative to the chassis of the unmanned vehicle, so as to capture low objects in front and on both sides with a more horizontal perspective.
[0097] 2. The camera starts collecting images. When the unmanned vehicle is running, the camera collects images separately.
[0098] 3. Convert analog images into digital signals: The image received by the camera is an analog signal after passing through its sensor, which needs to be converted into a digital signal suitable for computer processing;
[0099] 4. Image transmission to the processor: The image of the digital signal collected by each camera (i.e., the digital image) is transmitted to the central processor in the unmanned vehicle;
[0100] 5. Image data correction and filter preprocessing: Perform image data preprocessing and error correction on digital images to obtain road surface images;
[0101] 6. Deep learning to identify obstacles: import the pre-processed data (i.e. road surface images) into the deep learning algorithm module to identify and analyze low obstacles;
[0102] 7. The xgboost algorithm makes a decision; the result of deep learning recognition is transmitted to the xgboost algorithm module for decision-making, and the risk value of the obstacle (i.e., obstacle risk value) is obtained; if the risk value is lower than the threshold, step 8 is executed; if the risk value is not lower than the threshold, steps 9-11 are executed;
[0103] 8. Drive along the normal path; for obstacles where the decision is risk-free or the risk threshold is lower than the predetermined risk value, the unmanned vehicle will drive normally;
[0104] 9. Optimal path planning algorithm: For obstacles with risk values higher than the predetermined risk value, the optimal path planning algorithm is used for learning;
[0105] 10. Get a new driving path; get the optimal planning path through the optimal path planning algorithm in the previous step;
[0106] 11. Drive along the new path; guide the unmanned vehicle to adjust along the planned route (i.e. the optimal planned path) to ensure that the unmanned vehicle can drive smoothly.
[0107] like Figure 5 As shown in the figure, image preprocessing mainly includes three aspects:
[0108] Convert analog images into digital signals
[0109] It is mainly completed through the analog-to-digital conversion chip, which is integrated in the camera. The main controller provides the camera with a clock signal for control. The camera can then collect data and work according to the corresponding clock frequency to convert the analog signal into a digital signal.
[0110] Data image correction
[0111] It mainly performs corresponding data attenuation compensation on the images collected by cameras at different positions. Compared with the camera in the middle, the images collected by the cameras on both sides will have an angle deviation. If this part of the data is directly used for deep network learning, the training results will deviate from the actual real situation, which will cause the unmanned vehicle to make misjudgments and problems. Here, the cos(mx+n) cosine function is used for correction, and the vertical component is obtained as the image data actually collected by the camera, and then multiplied by the coefficient a for compensation to complete the image correction link;
[0112] Filtering
[0113] The corrected data is processed by FIR bandpass filter to filter out the noise in the image signal. Especially for very shallow bumps on the road surface, directly entering the deep learning model will cause misjudgment and lead to erroneous operation of the unmanned vehicle. The filtering process is to filter out noise signals below a certain threshold and retain the real obstacle signal, thereby ensuring the accuracy of subsequent processing results.
[0114] Recognize the road environment characteristics and obstacle characteristics from the road image, and calculate the obstacle risk value based on the obstacle characteristics. This can be achieved by using a deep neural network (ResNet). A deep learning algorithm is used for the big data platform to accurately identify the size of the obstacle from the massive data, and the risk value of the impact of the obstacle on the current vehicle driving process is obtained based on the big data analysis. The specific recognition process is: input the image (carrying the obstacle mark area), pass through the neural network (multi-layer convolution, pooling, activation overlap), and then enter the fully connected network. The image pixels are classified through softmax to obtain the image area of the obstacle, and then the road environment characteristics and obstacle characteristics are obtained, and the obstacle risk value is calculated based on the obstacle characteristics.
[0115] Among them, the surrounding environment can be understood as the image excluding obstacles in a picture. This part of the feature is input into the neural network through labeled samples. The picture can automatically segment obstacles and the surrounding environment through the trained network.
[0116] like Figure 6 As shown, the training process of the deep neural network (ResNet) is:
[0117] The training data is input into the deep neural network for recognition. The network will be trained and learned according to the set parameters to identify the road environment characteristics and obstacle characteristics. The obtained data is compared with the data manually marked in advance for error calculation. If the error is less than the network error threshold, the road environment characteristic value and obstacle risk value are calculated and output; if the error value is greater than the network error threshold, the network parameters are adjusted, and training, calculation, and judgment are performed again until the calculated error value is less than the network error threshold. The accuracy calculation formula is: Where A is the obstacle area judged by the model, B is the real obstacle area in the image, and the error is calculated as
[0118] like Figure 7 As shown in the figure, the Xgboost algorithm is used to further determine the effectiveness of obstacle features, road environment features and obstacle risk values. Specifically:
[0119] First, a series of algorithm parameters need to be set, including step size, maximum depth of the tree, minimum leaf node weight, etc.
[0120] Then input the data output by deep learning, including road environment characteristics and obstacle risk values;
[0121] The Xgboost algorithm continuously generates decision trees for calculation. The obstacle area predicted by the deep neural network and the pixel points of the obstacle real mark area are input into the Xgboost model. Further error correction is performed on the area where the deep neural network segmented errors. The Xgboost model will make further decisions on the area where the neural network classified errors. Finally, it is determined whether each point in the image belongs to the obstacle area and calculate the regional error.
[0122] Finally, it is compared with the set error value to obtain the final judgment result.
[0123] like Figure 8 As shown in the figure, each time the distributed deployment camera detects a suspected low obstacle, the Xgboost algorithm makes a decision. When the Xgboost algorithm decides that path replanning is needed, the optimal path planning module is called. Otherwise, the vehicle follows the normal path.
[0124] During re-planning, the parameters of the objective function and environmental constraint function are first input. The optimal planning algorithm will perform the corresponding path calculation, calculate and analyze all paths from the current position to the target position, and obtain the optimal path. The unmanned vehicle then continues to drive along the optimal path.
[0125] As a preferred implementation, the ant colony algorithm is used here, and the area that can be collected by the camera in front of the current position is used as the path planning area, which is converted into a matrix, and the values in it are stored as 0 or 1, where 0 means no obstacles and 1 means obstacles. The path planning is the path from the current pixel point to the pixel point at the farthest end of the image at this time. The process of path planning is: initialize the matrix, pheromone matrix and heuristic factor matrix; take the front edge point of the image as the end point of the path and the current pixel point as the starting point; create a taboo matrix, and the points that have been visited in the taboo matrix are 0; according to the pheromone, heuristic factor, and taboo table, the next pixel point is selected through the roulette method, and the path and taboo matrix are updated each time. After one iteration, the pheromone matrix is updated to mark the path that has been traveled until the end point is reached.
[0126] Fig. 9 4 is a schematic diagram of main modules of a device for determining a driving path according to an embodiment of the present invention.
[0127] like Fig. 9 As shown, the device 900 for determining a driving path according to the embodiment of the present invention includes: a preprocessing module 901 , a recognition module 902 and a planning module 903 .
[0128] in,
[0129] The preprocessing module 901 is used to preprocess the simulated image collected by the camera to obtain a road surface image; wherein the camera is set around the vehicle
[0130] The recognition module 902 is used to recognize road environment features and obstacle features from the road image, and calculate the obstacle risk value according to the obstacle features;
[0131] The planning module 903 is used to determine the vehicle driving path according to the road environment characteristics and the obstacle risk value.
[0132] In the embodiment of the present invention, the preprocessing module 901 is further used for:
[0133] Acquire a simulated image captured by a camera; wherein the camera is arranged around the lower side of the vehicle, and the viewing angle of the camera is tilted downward;
[0134] The simulated image is preprocessed to obtain a road surface image.
[0135] In this embodiment of the present invention, the preprocessing module 901 is further used for:
[0136] Performing analog-to-digital conversion on the analog image to obtain a digital image;
[0137] Using a cosine function to calculate the digital image to obtain a vertical high-frequency component;
[0138] Multiplying the vertical high-frequency component by an attenuation compensation coefficient to obtain a main viewing angle image;
[0139] The main viewing angle image is filtered to obtain a road surface image.
[0140] In the embodiment of the present invention, the planning module 903 is further used for:
[0141] Correcting the road environment characteristics, the obstacle characteristics, and the obstacle risk value using an Xgboost algorithm;
[0142] If the obstacle risk value is less than the predetermined risk value, the driving path of the vehicle is the original planned path;
[0143] If the obstacle risk value is greater than or equal to a predetermined risk value, an optimal planned path is calculated for the vehicle according to the road environment characteristics and the obstacle characteristics.
[0144] In the embodiment of the present invention, the planning module 903 is further used for:
[0145] Extracting obstacle areas and obstacle pixels corresponding to the obstacle features in the road surface image;
[0146] Using the Xgboost algorithm to determine whether each obstacle pixel belongs to the obstacle area, and calculating the area error according to the determination result;
[0147] When the regional error is greater than an error threshold, the obstacle feature, the road environment feature and the obstacle risk value are corrected based on the judgment result.
[0148] It can be seen from the device for determining the driving path according to the embodiment of the present invention that the simulated image collected by the camera is preprocessed to obtain a road surface image; the road surface environment characteristics and obstacle characteristics are identified from the road surface image, and the obstacle risk value is calculated according to the obstacle characteristics; the technical means for determining the vehicle driving path according to the road surface environment characteristics and the obstacle risk value overcomes the technical problem of not making a judgment on the road surface conditions and the surrounding low objects, thereby achieving the technical effect of identifying and analyzing the road surface conditions and the surrounding low objects, and avoiding large bumps or vehicle rollovers caused by the unmanned vehicle being blocked by low obstacles during driving.
[0149] Fig.10 An exemplary system architecture 1000 is shown to which the method for determining a driving path or the apparatus for determining a driving path according to the embodiments of the present invention can be applied.
[0150] like Fig.10As shown, the system architecture 1000 may include terminal devices 1001, 1002, 1003, a network 1004, and a server 1005. The network 1004 is used to provide a medium for communication links between the terminal devices 1001, 1002, 1003 and the server 1005. The network 1004 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0151] Users can use terminal devices 1001, 1002, 1003 to interact with server 1005 through network 1004 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 1001, 1002, 1003, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0152] The terminal devices 1001 , 1002 , and 1003 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0153] The server 1005 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using the terminal devices 1001, 1002, and 1003. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information and product information) to the terminal device.
[0154] It should be noted that the method for determining the driving path provided in the embodiment of the present invention is generally executed by the server 1005 , and accordingly, the device for determining the driving path is generally set in the server 1005 .
[0155] It should be understood that Fig.10 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0156] Reference below Fig.11 , which shows a schematic diagram of the structure of a computer system 1100 of a terminal device suitable for implementing an embodiment of the present invention. Fig.11 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0157] like Fig.11As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage part 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the system 1100 are also stored. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0158] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed, so that a computer program read therefrom is installed into the storage section 1108 as needed.
[0159] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1109, and / or installed from the removable medium 1111. When the computer program is executed by the central processing unit (CPU) 1101, the above-mentioned functions defined in the system of the present invention are executed.
[0160] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0161] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0162] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a preprocessing module, a recognition module, and a planning module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the preprocessing module may also be described as a "module for preprocessing the simulated image captured by the camera to obtain a road surface image."
[0163] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: step S101: preprocessing the simulated image collected by the camera to obtain a road surface image; step S102: identifying road surface environment features and obstacle features from the road surface image, and calculating obstacle risk values according to the obstacle features; step S103: determining the vehicle driving path according to the road surface environment features and obstacle risk values.
[0164] According to the technical solution of the embodiment of the present invention, the simulated image collected by the camera is preprocessed to obtain a road surface image; the road surface environment characteristics and obstacle characteristics are identified from the road surface image, and the obstacle risk value is calculated according to the obstacle characteristics; the technical means for determining the vehicle driving path according to the road surface environment characteristics and the obstacle risk value overcomes the technical problem of not making a judgment on the road surface conditions and the surrounding low objects, thereby posing a safety hazard, and thus achieves the technical effect of identifying and analyzing the road surface conditions and the surrounding low objects, avoiding large bumps or vehicle rollover caused by the unmanned vehicle being blocked by low obstacles during driving.
[0165] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for determining a driving path, characterized in that: include: Preprocessing the simulated images collected by multiple cameras to obtain a road surface image; wherein the multiple cameras are arranged around the vehicle; The preprocessing of the analog image collected by the camera to obtain the road surface image includes: performing analog-to-digital conversion on the analog image to obtain a digital image; using a cosine function to obtain a vertical high-frequency component from the digital image as image data actually collected by the camera, and then multiplying the attenuation compensation coefficient for compensation to complete image correction; Identifying road surface environment features and obstacle features from the road surface image, and calculating obstacle risk values according to the obstacle features; Extracting the obstacle area and obstacle pixel points corresponding to the obstacle features in the road image; using the Xgboost algorithm to determine whether each obstacle pixel point belongs to the obstacle area, and calculating the regional error according to the determination result; when the regional error is greater than the error threshold, correcting the obstacle features, the road environment features and the obstacle risk value based on the determination result; The driving path of the vehicle is determined according to the road environment characteristics and the obstacle risk value.
2. The method according to claim 1, characterized in that Preprocess the simulated image collected by the camera to obtain a road surface image, including: Acquire a simulated image captured by a camera; wherein the camera is arranged around the lower side of the vehicle, and the viewing angle of the camera is tilted downward; The simulated image is preprocessed to obtain a road surface image.
3. The method according to claim 2, characterized in that The simulated image is an image of a road surface within a preset range around the vehicle, and Preprocessing the simulated image to obtain a road surface image includes: Using a cosine function to calculate the digital image to obtain a vertical high-frequency component; Multiplying the vertical high-frequency component by an attenuation compensation coefficient to obtain a main viewing angle image; The main viewing angle image is filtered to obtain a road surface image.
4. The method according to claim 1, characterized in that: Determining a driving path of the vehicle according to the road environment characteristics and the obstacle risk value includes: If the obstacle risk value is less than the predetermined risk value, the driving path of the vehicle is the original planned path; If the obstacle risk value is greater than or equal to a predetermined risk value, an optimal planned path is calculated for the vehicle according to the road environment characteristics and the obstacle characteristics.
5. A device for determining a driving path, characterized in that: include: A preprocessing module is used to preprocess the analog images collected by multiple cameras to obtain a road surface image; wherein the multiple cameras are arranged around the vehicle; wherein the preprocessing of the analog images collected by the cameras to obtain a road surface image includes: performing analog-to-digital conversion on the analog images to obtain digital images; using a cosine function to obtain a vertical high-frequency component from the digital image as image data actually collected by the camera, and then multiplying the attenuation compensation coefficient for compensation to complete image correction; An identification module, used to identify road environment features and obstacle features from the road image, and calculate an obstacle risk value according to the obstacle features; extract obstacle regions and obstacle pixels corresponding to the obstacle features in the road image; use an Xgboost algorithm to determine whether each obstacle pixel belongs to the obstacle region, and calculate a regional error according to the determination result; when the regional error is greater than an error threshold, correct the obstacle features, the road environment features, and the obstacle risk value based on the determination result; A planning module is used to determine the driving path of the vehicle according to the road environment characteristics and the obstacle risk value.
6. The device according to claim 5, characterized in that The preprocessing module is also used for: Acquire a simulated image captured by a camera; wherein the camera is arranged around the lower side of the vehicle, and the viewing angle of the camera is tilted downward; The simulated image is preprocessed to obtain a road surface image.
7. The device according to claim 6, characterized in that The simulated image is an image of a road surface within a preset range around the vehicle, and The preprocessing module is further used for: Performing analog-to-digital conversion on the analog image to obtain a digital image; Using a cosine function to calculate the digital image to obtain a vertical high-frequency component; Multiplying the vertical high-frequency component by an attenuation compensation coefficient to obtain a main viewing angle image; The main viewing angle image is filtered to obtain a road surface image.
8. The device according to claim 5, characterized in that The planning module is also used to: If the obstacle risk value is less than the predetermined risk value, the driving path of the vehicle is the original planned path; If the obstacle risk value is greater than or equal to a predetermined risk value, an optimal planned path is calculated for the vehicle according to the road environment characteristics and the obstacle characteristics.
9. An electronic device for determining a driving path, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Vehicle-mounted virtual panoramic system with variable field of view
CN102164274A
Climbing mechanism for intelligent carrier vehicle, intelligent carrier vehicle and intelligent carrier system
CN104828446A
Unmanned automobile obstacle avoidance system and method based on 3D camera
CN106394555A
Intelligent cruise control system for vehicle and control method thereof
CN106828491A
Method and system for detecting obstacles on road
CN107316006A
