Map updating method, device, equipment and storage medium
By determining the point cloud data set of virtual road signs in the navigation map, and combining it with image collection to obtain the point cloud data set of real road signs, data fusion and adjustment are performed to solve the problem that the location information of real road signs in the navigation map cannot be accurately reflected. , improving navigation accuracy and service quality.
Patent Information
- Application Number
- CN202210173096.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-24
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-02-24
AI Technical Summary
In the existing technology, the location information of real road signs in vehicle navigation maps cannot be accurately reflected, resulting in low navigation accuracy and inability to effectively match virtual road signs with real road scenes.
By determining the virtual road sign point cloud data set in the virtual road scene while driving, and using image collection to obtain the real road sign point cloud data set in the real road scene, perform data fusion and adjustment, and update the virtual road sign point cloud data set in the navigation map. Road sign location information to ensure that it matches the real road scene.
It improves the accuracy of navigation maps, ensures the high quality of navigation services, provides more accurate road traffic instructions, and enhances the accuracy of vehicle driving.
Smart Images

Figure CN114416764B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and in particular to a map updating method, device, equipment and storage medium. Background Art
[0002] In the related art, a nearest point search method is usually used to map real road signs into a vehicle navigation map to form virtual road signs, which makes it impossible to accurately reflect the actual location information of the real road signs in the vehicle navigation map. Summary of the invention
[0003] The embodiment of the present application provides a technical solution for map updating.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present invention provides a map updating method, which includes:
[0006] In a navigation map of a vehicle in motion, determining a first point cloud data set of virtual road signs in a virtual road scene;
[0007] Acquire a second point cloud data set of real road signs in a real road scene where the vehicle is traveling;
[0008] Based on the second point cloud data set, the position information of the first point cloud data set in the navigation map is updated to obtain an updated navigation map.
[0009] In some embodiments, in the navigation map of the vehicle in motion, determining the first point cloud data set of the virtual road sign in the virtual road scene includes: obtaining a template point cloud data set associated with the virtual road sign in the navigation map; and determining the convex hull point corresponding to the template point cloud data set as the first point cloud data set. In this way, the amount of data corresponding to the navigation map can be reduced and the usage rate of the storage space of the navigation map can be reduced.
[0010] In some embodiments, the step of obtaining a second point cloud data set of real road signs in a real road scene where the vehicle is traveling includes: using image acquisition devices located at different positions of the vehicle to acquire images of the real road signs at at least two acquisition moments to obtain a set of images to be processed; and obtaining the second point cloud data set based on the set of images to be processed. In this way, a second point cloud data set with higher accuracy can be extracted.
[0011] In some embodiments, the step of obtaining the second point cloud data set based on the image set to be processed includes: in the image set to be processed, stitching at least two frames of images to be processed at the same acquisition time to obtain a stitched image set; determining the pixel points belonging to the real road sign in each stitched image in the stitched image set; and determining the second point cloud data set based on the pixel points belonging to the real road sign in each stitched image. In this way, the determined second point cloud data set can be more comprehensive and accurate.
[0012] In some embodiments, the determining of the pixel points belonging to the real road sign in each stitched image in the stitched image set includes: identifying the neighboring pixel points of any pixel point in each stitched image when any pixel point belongs to the real road sign; determining the next pixel point to be identified in each stitched image based on the identification result of the neighboring pixel points; identifying the next pixel point to be identified to obtain the pixel point belonging to the real road sign in each stitched image. In this way, the speed and accuracy of identifying whether the pixel point in each stitched image belongs to the real road sign can be improved.
[0013] In some embodiments, the method further includes: if any of the pixels does not belong to the pixel of the real road sign, determining the next pixel to be identified in each spliced image according to a preset identification order. In this way, all the pixels in the spliced image can be identified, thereby improving the recognition accuracy of the pixels in the spliced image.
[0014] In some embodiments, the determining of the second point cloud data set based on the pixel points belonging to the real road sign in each stitched image includes: performing coordinate transformation on the pixel points belonging to the real road sign in each stitched image in the stitched image set to obtain the coordinates of the real road sign in each stitched image in the world coordinate system; and fusing the coordinates of the real road sign in the world coordinate system in at least two frames of stitched images that are adjacent in time sequence to obtain the second point cloud data set. In this way, the data information contained in the determined second point cloud data set can be more comprehensive.
[0015] In some embodiments, the method further includes: marking the pixel points belonging to the same real road sign in each stitched image and storing them in the same queue to obtain at least one queue of each stitched image; determining the second point cloud data set based on the pixel points belonging to the real road sign in each stitched image includes: performing coordinate transformation on the pixel points in at least one queue of each stitched image to obtain the coordinates of the real road sign in each queue of each stitched image in the world coordinate system; fusing the coordinates of the real road sign in at least one queue of at least two frames of stitched images that are adjacent in time sequence in the world coordinate system to obtain the second point cloud data set. In this way, the accuracy of the subsequent determination of the second point cloud data set based on the pixel points belonging to the real road sign can be higher.
[0016] In some embodiments, the at least two spliced images that are adjacent in time sequence include a first image and a second image, and the coordinates of the real road sign in the at least two spliced images that are adjacent in time sequence are fused in the world coordinate system to obtain the second point cloud data set, including: determining a first bounding box of the coordinates of the real road sign in the first image in the world coordinate system; determining a second bounding box of the coordinates of the real road sign in the second image in the world coordinate system; determining a vertex set of the first bounding box and a center point of the second bounding box; based on the vertex set and the center point, fusing the coordinates of the real road sign in the first image and the second image in the world coordinate system to obtain the second point cloud data set. In this way, by fusing the coordinates corresponding to the real road sign in the spliced images that meet the preset fusion conditions, it is possible to obtain the coordinates of the real road sign in the world coordinate system with higher accuracy by supplementing the point cloud data of the real road sign.
[0017] In some embodiments, the coordinates of the real road signs in the first image and the second image in the world coordinate system are fused based on the vertex set and the center point to obtain the second point cloud data set, including: generating a first vector to be compared based on the target vertex in the vertex set and the center point; generating a second vector to be compared based on the target vertex and the adjacent vertices of the target vertex in the vertex set; fusing the first vector to be compared with the second vector to be compared to obtain a first fused vector; fusing at least two of the second vectors to be compared to obtain a second fused vector; when the first fused vector is less than the second fused vector and the first fused vector is greater than zero, fusing the coordinates of the real road signs in the first image and the second image in the world coordinate system to obtain the second point cloud data set. In this way, by fusing the relevant coordinate points with more sophisticated fusion conditions, a second point cloud data set with higher accuracy and richer data volume can be obtained.
[0018] In some embodiments, the updating of the position information of the first point cloud data set in the navigation map based on the second point cloud data set to obtain an updated navigation map includes: normalizing the second point cloud data set in a preset direction to obtain a target point cloud data set; adjusting the position information of the first point cloud data set in the navigation map based on the target point cloud data set to obtain a vectorized model of the real road sign in the navigation map; and obtaining the updated navigation map based on the vectorized model. In this way, virtual road signs that better match the position information of real road signs can be obtained in the navigation map, and high-precision maps can be provided during vehicle driving to serve vehicle driving.
[0019] In some embodiments, the step of normalizing the second point cloud dataset in a preset direction to obtain target point cloud data includes: determining a virtual plane matching the second point cloud dataset and a normal vector of the virtual plane in the preset direction; adjusting the normal vector to obtain a rotation vector based on the centroid of the second point cloud dataset; and rotating the second point cloud dataset to the virtual plane based on the rotation vector to obtain the target point cloud dataset. In this way, a point cloud dataset belonging to a real road sign that better matches the two-dimensional coordinate parameters in the navigation map can be obtained.
[0020] In some embodiments, determining the virtual plane matching the second point cloud data set and the normal vector of the virtual plane in the preset direction includes: fitting an initial plane set matching the second point cloud data set in the preset direction; determining the distance from the second point cloud data set to each initial plane in the initial plane set to obtain a distance set; sorting each distance in the distance set to obtain a queue corresponding to the initial plane; determining the initial plane located at a preset position in the queue as the virtual plane, and determining the plane parameters of the initial plane as the normal vector of the virtual plane. In this way, the virtual plane can be determined with higher accuracy.
[0021] In some embodiments, adjusting the normal vector based on the centroid of the second point cloud data set to obtain a rotation vector includes: generating a first vector to be combined based on the centroid of the second point cloud data set and a plane point in the virtual plane; fusing the normal vector and the first vector to be combined to obtain a second vector to be combined; and combining the normal vector, the first vector to be combined, and the second vector to be combined to obtain the rotation vector. In this way, a rotation vector with higher accuracy can be obtained.
[0022] In some embodiments, the adjusting the position information of the first point cloud data set in the navigation map based on the target point cloud data set to obtain the vectorized model of the real road sign in the navigation map includes: determining the confidence of each target point cloud data in the target point cloud data set; obtaining the point cloud data set to be processed based on the target point cloud data with a confidence greater than a first threshold in the target point cloud data set; and adjusting the position information of the first point cloud data set in the navigation map to obtain the vectorized model when the data volume of the point cloud data set to be processed is greater than a second threshold; wherein the second threshold is the product of the data volume of the first point cloud data set and a preset coefficient. In this way, the position information of the relevant road signs in the navigation map can be more closely matched with the position parameters in the real road, thereby obtaining a navigation map with higher accuracy.
[0023] In some embodiments, when the amount of data of the point cloud data set to be processed is greater than a second threshold, the position information of the first point cloud data set in the navigation map is adjusted to obtain the vectorized model, including: when the amount of data of the point cloud data set to be processed is greater than the second threshold, the centroid of the point cloud data set to be processed and the centroid of the first point cloud data set are moved to a preset origin respectively; based on the point cloud data set to be processed, the first point cloud data set in the navigation map is moved in a first direction and a second direction to obtain a third point cloud data set; and the third point cloud data set is determined as the vectorized model. In this way, point cloud data that better matches the real coordinate information of real road signs can be provided in the navigation map.
[0024] In some embodiments, based on the point cloud dataset to be processed, the first point cloud dataset in the navigation map is moved in the first direction and in the second direction to obtain a third point cloud dataset, including: in the navigation map, the first point cloud dataset is rotated in the first direction with a first step length to obtain an intermediate point cloud dataset whose overlap with the point cloud dataset to be processed in the first direction meets a third threshold; the intermediate point cloud dataset is moved in the second direction with a second step length to obtain the third point cloud dataset whose overlap with the point cloud dataset to be processed in the second direction meets the third threshold. In this way, a third point cloud dataset with higher accuracy can be determined by a more convenient and efficient method.
[0025] The present application provides a map updating device, the device comprising:
[0026] A determination module, configured to determine a first point cloud data set of virtual road signs in a virtual road scene in a navigation map of a vehicle in a driving state;
[0027] An acquisition module, used for acquiring a second point cloud data set of real road signs in a real road scene where the vehicle is traveling;
[0028] An updating module is used to update the position information of the first point cloud data set in the navigation map based on the second point cloud data set to obtain an updated navigation map.
[0029] An embodiment of the present application provides a computer device, which includes a memory and a processor. The memory stores computer executable instructions, and the processor can implement the above-mentioned map updating method when running the computer executable instructions on the memory.
[0030] An embodiment of the present application provides a computer storage medium, on which computer executable instructions are stored. After the computer executable instructions are executed, the above-mentioned map updating method can be implemented.
[0031] The map updating method, device, equipment and storage medium provided in the embodiment of the present application first determine the first point cloud data set of virtual road signs in the virtual road scene from the navigation map of the vehicle in motion; then obtain the second point cloud data set of real road signs in the real road scene where the vehicle is traveling through image acquisition; finally, based on the second point cloud data set, update the position information of the first point cloud data set in the navigation map to obtain an updated navigation map. In this way, the position information of the road traffic indicator arrows in the navigation map can be more closely matched with the actual position information of the real road traffic indicator arrows in the real road scene, thereby obtaining a more accurate navigation map and high-quality navigation service capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0033] Figure 1 A schematic diagram of a flow chart of a first map updating method provided in an embodiment of the present application;
[0034] Figure 2 A flowchart of a second map updating method provided in an embodiment of the present application;
[0035] Figure 3 A schematic diagram of a flow chart of a third map updating method provided in an embodiment of the present application;
[0036] Figure 4 A schematic diagram of representing a road traffic indication arrow based on a convex hull point provided in an embodiment of the present application;
[0037] Figure 5 A schematic diagram of pixel points belonging to a real road traffic indicator arrow in an image provided in an embodiment of the present application;
[0038] Figure 6 A schematic diagram of real point cloud data of a real road traffic indicator arrow obtained by fusing point cloud data in multiple frames of images provided in an embodiment of the present application;
[0039] Figure 7 A schematic diagram of a navigation map obtained by applying the map updating method provided in an embodiment of the present application;
[0040] Figure 8 A schematic diagram of the structure of a map updating device provided in an embodiment of the present application;
[0041] Fig. 9 A schematic diagram of the structural composition of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the invention will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the embodiments of the present application, but are not used to limit the scope of the embodiments of the present application.
[0043] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0044] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the technical field of the present application. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the embodiments of the present application.
[0046] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0047] 1) Navigation map: It is used for route planning and navigation. It is a digital map, which is a map stored and consulted digitally using computer technology. The electronic navigation map stores information in a way that generally uses vector images for storage. The map scale can be enlarged, reduced or rotated without affecting the display effect.
[0048] 2) Point cloud data refers to a set of vectors in a three-dimensional coordinate system.
[0049] 3) Vector: A vector image, also known as a vector, is also called an object-oriented image or a drawing image and is mathematically defined as a series of points connected by lines.
[0050] 4) Coordinate transformation: It is the description of the position of a spatial entity and the process of transforming from one coordinate system to another. It is achieved by establishing a one-to-one correspondence between the two coordinate systems.
[0051] The following describes an exemplary application of the map updating device provided in the embodiment of the present application. The device provided in the embodiment of the present application can be implemented as various types of user terminals such as a laptop computer with an image acquisition function, a tablet computer, a desktop computer, a camera, a mobile device (for example, a personal digital assistant, a dedicated messaging device, a portable gaming device), etc., and can also be implemented as a server. The following describes an exemplary application when the device is implemented as a terminal or a server.
[0052] The method can be applied to a computer device, and the functions implemented by the method can be implemented by calling a program code through a processor in the computer device. Of course, the program code can be stored in a computer storage medium. It can be seen that the computer device at least includes a processor and a storage medium.
[0053] The present application embodiment provides a map updating method, such as Figure 1 FIG. 1 is a flow chart showing a first map updating method provided in an embodiment of the present application; FIG. Figure 1 The steps shown are as follows:
[0054] Step S101: determining a first point cloud data set of virtual road signs in a virtual road scene in a navigation map of a vehicle in a driving state.
[0055] In some embodiments, a vehicle in a driving state may refer to a motor vehicle traveling at any speed. The vehicle may travel at any position. In the embodiments of the present application, a vehicle in a driving state may refer to a vehicle that requires a person to drive in order to move, or may refer to an unmanned vehicle.
[0056] In some embodiments, the navigation map may refer to an online real-time navigation map of a vehicle in motion, wherein the navigation map may be composed of a two-dimensional image that changes dynamically in real time, that is, the three-dimensional parameters corresponding to the road information in the real road scene are converted into two-dimensional data for display.
[0057] In some embodiments, the virtual road scene refers to information generated in the navigation map based on the parameters of the real road on which the vehicle is actually traveling; it may change as the road scene on which the vehicle is actually traveling changes. At the same time, the virtual road signs may refer to data mapped to the navigation map from real road signs on the road on which the vehicle is traveling, such as road indicator arrows (including straight ahead indicator arrows, left turn indicator arrows, right turn indicator arrows, etc.), road indicator icons, etc.
[0058] In some embodiments, the number of virtual road signs in the navigation map may be one or two or more; when the number of virtual road signs is two or more, the types of the virtual road signs may be the same or different; and different virtual road signs have different location information in the navigation map, that is, in the virtual road scene of the navigation map.
[0059] In some embodiments, the virtual road signs are generally irregular polygons, that is, the first point cloud data set may refer to all pixel points included in the irregular polygon in the navigation map; it may also refer to the pixel points corresponding to the outline of the irregular polygon in the navigation map, and it may also refer to the pixel points corresponding to the convex hull points of the irregular polygon in the navigation map.
[0060] In some possible implementations, convex hull points are used to represent the point cloud data set associated with the virtual road sign. In this way, it is possible to represent the virtual road sign based on a more concise amount of data, thereby reducing the amount of corresponding data in the navigation map and reducing the usage rate of the storage space of the navigation map. That is, the above step S101 can be implemented by the following process:
[0061] First, in the navigation map, a template point cloud dataset associated with the virtual road sign is obtained.
[0062] In some embodiments, object recognition may be performed on the navigation map to obtain a target area associated with the virtual road sign in the navigation map, and pixels in the target area may be determined as a template point cloud data set associated with the virtual road sign.
[0063] Then, the convex hull points corresponding to the template point cloud data set are determined as the first point cloud data set.
[0064] In some embodiments, the contour corresponding to the acquired template point cloud data set is first determined, then the convex hull points in the contour are extracted, and finally the pixel points corresponding to the convex hull points in the navigation map are determined as the first point cloud data set, that is, the first point cloud data set of the virtual road sign. Since the virtual road sign is generally an irregular polygon and does not satisfy the convex hull property, the virtual road sign can be characterized based on the corresponding multiple convex hull points.
[0065] Step S102: Acquire a second point cloud data set of real road signs in a real road scene where the vehicle is traveling.
[0066] In some embodiments, the second point cloud data set of real road signs in the real road scene where the vehicle is traveling may be three-dimensional coordinate data of real road signs in the real road scene collected during the vehicle's driving, wherein the real road signs correspond to the virtual road signs in the navigation map and are also irregular polygons in two-dimensional space.
[0067] In some embodiments, the image acquisition devices deployed at different positions of the vehicle may be used to acquire images of real road signs that appear during the driving process of the vehicle in the real road scene, obtain multiple images, and perform object recognition on the multiple images to extract the second point cloud data set of the real road signs. It is also possible to continuously acquire real road signs at multiple moments based on multiple image acquisition devices located at different positions of the vehicle to obtain multiple images with continuous acquisition time sequence, and then perform fusion processing and object recognition on the multiple images with continuous acquisition time sequence in sequence to obtain the corresponding second point cloud data set.
[0068] Step S103: Based on the second point cloud data set, the position information of the first point cloud data set in the navigation map is updated to obtain an updated navigation map.
[0069] In some embodiments, the position information of the first point cloud data set in the navigation map can be updated based on the acquired second point cloud data set, such as adjustments including but not limited to: displacement and rotation, to obtain a target point cloud data set, and based on the target point cloud data set, an updated navigation map is obtained.
[0070] In some embodiments, the three-dimensional coordinate parameters corresponding to the second point cloud data set are first normalized to obtain corresponding two-dimensional coordinate parameters; secondly, the two-dimensional coordinate parameters corresponding to the first point cloud data set in the navigation map are displaced and rotated to obtain a target point cloud data set whose degree of overlap with the two-dimensional coordinate parameters of the second point cloud data set meets a preset threshold; then, the target point cloud data set is determined as the display data of the real road signs in the navigation map, that is, the vectorized model; finally, based on the vectorized model, that is, based on the vectorized model displayed in the navigation map, an updated navigation map is obtained.
[0071] In some embodiments, first, a template point cloud automatically generated by a vehicle navigation map during vehicle driving and corresponding to a road traffic indicator arrow in a real driving road is obtained, and at the same time, based on the convex hull points corresponding to the template point cloud, the vectorized virtual road traffic indicator arrow in the vehicle navigation map is characterized. Then, based on the vehicle's surround fisheye camera, the road traffic indicator arrow in the actual driving road is collected in real time to obtain multiple frames of images, and the multiple frames of images are segmented and fused to obtain the real point cloud data corresponding to the road traffic indicator arrow collected in real time. Finally, based on the real coordinate parameters corresponding to the real point cloud data, the virtual point cloud data corresponding to the vectorized virtual road traffic indicator arrow in the vehicle navigation map is displaced and rotated, that is, the position of the relevant virtual point cloud data is updated by rotation and displacement, and the target virtual point cloud data whose overlap with the real coordinate parameters corresponding to the real point cloud data meets the preset threshold is obtained, that is, the position information of the virtual road traffic indicator arrow in the vehicle navigation map is updated. In this way, a vehicle navigation map with higher accuracy can be obtained, and then the accurate position and vectorized representation of the road traffic indicator arrow can be provided based on the high-precision vehicle navigation map, which helps to improve the accuracy of the vehicle's driving route.
[0072] The map updating method provided in the embodiment of the present application first determines a first point cloud data set of virtual road signs in a virtual road scene in a navigation map of a vehicle in motion; secondly, obtains a second point cloud data set of real road signs in a real road scene where the vehicle is traveling; finally, based on the second point cloud data set, updates the position information of the first point cloud data set in the navigation map to obtain an updated navigation map. In this way, the position information of the road traffic indicator arrows in the navigation map can be more closely matched with the actual position information of the real road traffic indicator arrows in the real road scene, thereby obtaining a more accurate navigation map and high-quality navigation service capabilities.
[0073] In some embodiments, the image acquisition device located at different positions of the vehicle is used to acquire images of the real road signs at multiple times to obtain a set of images to be processed, and the image set to be processed is stitched, fused, and recognized to obtain a second point cloud data set of the real road signs. In this way, a second point cloud data set with higher accuracy can be extracted, that is, step S102 in the above embodiment can be implemented by the following steps S201 and S202. Figure 2 As shown, Figure 2 A flowchart of a second map updating method provided in an embodiment of the present application; Figure 1 and Figure 2 The steps shown are explained below:
[0074] Step S201 : using image acquisition devices located at different positions of the vehicle to acquire images of the real road signs at at least two acquisition moments to obtain a set of images to be processed.
[0075] In some embodiments, multiple image acquisition devices are located at different positions of a moving vehicle; for example, they may include but are not limited to: four image acquisition devices located at the upper left, lower left, upper right and lower right of the vehicle body; wherein the acquisition functions of the multiple image acquisition devices may be the same or different.
[0076] In some embodiments, based on multiple image acquisition devices at different positions of the vehicle body, real road signs are continuously imaged at at least two acquisition moments to obtain a corresponding set of images to be processed. The at least two acquisition moments may include multiple acquisition moments that are sequentially continuous.
[0077] Here, based on the image acquisition devices located at different positions of the vehicle, the real road signs are imaged at the same acquisition time to obtain multiple images to be processed; wherein the area occupied by the real road signs in each image to be processed and the size of the position in the image can be the same or different. At the same time, the data of the real road signs contained in each image to be processed can be the same or different. For example, the first image to be processed includes the front-end information of the real road sign, the second image to be processed includes the front-end information and the middle information of the real road sign, the third image to be processed includes the middle information and the back-end information of the real road sign, and the fourth image to be processed includes all the information of the real road sign.
[0078] Step S202: obtaining the second point cloud data set based on the image set to be processed.
[0079] In some embodiments, the obtained set of images to be processed may be subjected to image stitching, image feature point fusion, and object recognition to obtain a second point cloud data set.
[0080] In some possible implementations, a spliced image set is obtained by splicing multiple frames of to-be-processed images at the same acquisition time, and a second point cloud data set is determined based on the pixel points belonging to the real road sign in each spliced image. In this way, the determined second point cloud data set can be made more comprehensive and accurate. That is, the above step S202 can be implemented by the following steps S2021 to S2023 (not shown in the figure):
[0081] Step S2021: In the image set to be processed, at least two frames of images to be processed at the same acquisition time are stitched together to obtain a stitched image set.
[0082] In some embodiments, at least two frames of images to be processed in the image set to be processed that belong to the same acquisition moment can be stitched together to obtain a stitched image corresponding to each acquisition moment, thereby obtaining a stitched image set. In particular, the image stitching of at least two frames of images to be processed at the same acquisition moment can be performed based on the position of the image acquisition device corresponding to the images to be processed on the vehicle. At the same time, the image stitching process can be completed based on image feature extraction, image feature matching, and stitching using key points in the matched images.
[0083] In some embodiments, each stitched image in the stitched image set corresponds to a collection moment. The stitched image set includes a stitched image corresponding to each collection moment in a plurality of collection moments. Meanwhile, the plurality of collection moments include moments with adjacent collection time sequences.
[0084] Step S2022: determining the pixel points belonging to the real road sign in each stitched image in the stitched image set.
[0085] In some embodiments, object recognition is performed on each of the stitched images, and the pixel points belonging to the real road signs in each stitched image are determined.
[0086] In some embodiments, the number of pixels belonging to real road signs in different stitched images and their positions in the corresponding stitched images may be the same or different. The number and type of real road signs included in each stitched image are not limited in any way in the embodiments of the present application.
[0087] In some embodiments, based on the pre-set pixel points belonging to the real road sign, a similarity comparison can be performed on each pixel point in each stitched image in the stitched image set. When the similarity meets the preset threshold, it can be determined that the pixel point belongs to the real road sign.
[0088] In some possible implementations, each pixel in each stitched image may be identified to determine whether each pixel in each stitched image is a pixel of a real road sign; and the next pixel to be identified in each stitched image may be determined based on whether any pixel is a pixel of a real road sign. In this way, the speed and accuracy of identifying whether a pixel in each stitched image is a pixel of a real road sign can be improved, that is, the above step S2022 may be implemented by the following process:
[0089] In the first step, when any pixel point belongs to a pixel point of the real road sign, the neighboring pixel points of the any pixel point in each spliced image are identified.
[0090] In some embodiments, for any pixel point in each stitched image, whether it belongs to a pixel point of a real road sign is identified. Then, if any pixel point belongs to a pixel point of a real road sign, the neighboring pixel points of the any pixel point in each stitched image can be obtained, and then the neighboring pixel points of the any pixel point can be identified to determine whether it belongs to a pixel point of a real road sign. Among them, any pixel point can have eight neighboring pixel points in each stitched image; wherein the eight neighboring pixel points include: four neighboring pixel points located above, below, left and right of any pixel point, and four neighboring pixel points connected to the four vertices of any pixel point. At the same time, it is identified that the neighboring pixel point of any pixel point in each stitched image can be any one of the eight neighboring pixel points. Here, if the pixel points among the eight neighboring pixel points have been identified, no further identification is performed, that is, other neighboring pixel points or other pixel points in each stitched image are identified according to a pre-set identification order.
[0091] In some embodiments, based on the pre-set pixel points belonging to the real road sign, a similarity comparison may be performed on each pixel point in each spliced image to determine whether each pixel point belongs to the pixel point of the real road sign.
[0092] In some possible implementations, when any of the pixels does not belong to a pixel of the real road sign, a next pixel to be identified is determined in each spliced image according to a preset identification order.
[0093] In some embodiments, when any pixel does not belong to a pixel of a real road sign, the next pixel to be identified is determined in each spliced image according to a preset identification order, that is, the neighboring pixels of any pixel are not identified, but the next pixel to be identified is identified in sequence according to a preset identification order, for example, from left to right, from top to bottom, etc. In this way, all the pixels in the spliced image can be identified, thereby improving the recognition accuracy of the pixels in the spliced image.
[0094] In some embodiments, the preset recognition order may be pre-set; wherein the preset recognition order may be to recognize the pixels in each spliced image from top to bottom and from left to right in sequence.
[0095] In the second step, based on the recognition result of the neighborhood pixel points, the next pixel point to be recognized is determined in each stitched image.
[0096] In some embodiments, the next pixel point to be identified in each stitched image can be determined based on whether the neighborhood pixel points of any pixel point in each stitched image belong to the pixel points of a real road sign. That is, when the neighborhood pixel point belongs to the pixel point of a real road sign, the neighborhood pixel points of the neighborhood pixel point can be identified in each stitched image; similarly, when the neighborhood pixel point does not belong to the pixel point of a real road sign, the next pixel point to be identified in each stitched image is determined according to the preset identification order mentioned above.
[0097] The third step is to identify the next pixel point to be identified, and obtain the pixel point belonging to the real road sign in each spliced image.
[0098] In some embodiments, the next pixel to be identified is identified to obtain the identification result of each pixel in each spliced image, and then the pixel belonging to the real road sign in each spliced image is determined based on the identification result.
[0099] Step S2023: determining the second point cloud data set based on the pixel points belonging to the real road sign in each stitched image.
[0100] In some embodiments, the pixel points belonging to the real road signs in each stitched image may be fused to obtain a second point cloud data set of real road signs in a real road scene collected during the actual driving process of the vehicle in a driving state.
[0101] In some possible implementations, the coordinates of the pixels belonging to the real road signs in each stitched image may be transformed to obtain the coordinates of the real road signs in each stitched image in the world coordinate system, and then the coordinates of the real road signs in the relevant stitched images in the world coordinate system may be fused based on the time series information to obtain the second point cloud data set. In this way, the data information contained in the determined second point cloud data set may be more comprehensive. That is, the above step S2023 may be implemented by the following steps S2231 and S2232 (not shown in the figure):
[0102] Step S2231 : in the stitched image set, coordinate transformation is performed on the pixel points belonging to the real road sign in each stitched image to obtain the coordinates of the real road sign in each stitched image in the world coordinate system.
[0103] In some embodiments, the transformation between the world coordinates and the image coordinates may be performed based on the transformation relationship among the world coordinates, the camera coordinates and the image coordinates, that is, through rigid body transformation and perspective projection.
[0104] In some embodiments, coordinate transformation is performed on the pixel points belonging to the real road sign in each stitched image in the stitched image set to obtain the corresponding three-dimensional coordinates of the pixel points belonging to the real road sign in each stitched image in the world coordinate system.
[0105] Step S2232: Fusing the coordinates of the real road signs in the world coordinate system in at least two spliced image frames that are adjacent in time sequence to obtain the second point cloud data set.
[0106] In some embodiments, in a stitched image set, at least two frames of stitched images that are adjacent in time sequence are determined, and then the coordinates of the real road signs in the at least two frames of stitched images that are adjacent in time sequence in the world coordinate system are fused to obtain a second point cloud data set of the real road signs in the world coordinate system.
[0107] In some possible implementations, when each spliced image includes multiple real road signs, pixel points belonging to the same real road sign may be clustered. In this way, the accuracy of subsequently determining the second point cloud data set based on the pixel points belonging to the real road sign can be higher. That is, this can be achieved through the following process:
[0108] The pixel points in each stitched image that belong to the same real road sign are marked and stored in the same queue to obtain at least one queue for each stitched image.
[0109] In some embodiments, the pixels belonging to the same real road sign in each stitched image are marked respectively, for example, the pixels belonging to the first real road sign are marked as 1 and clustered into queue 1, and the pixels belonging to the second real road sign are marked as 2 and clustered into queue 2. In this way, at least one queue corresponding to each stitched image can be obtained.
[0110] Here, at least one queue based on each stitched image may be synchronized to perform coordinate transformation and fusion on the pixel points belonging to the real road sign in each stitched image, thereby obtaining a second point cloud data set. That is, the above step S2023 may be implemented by the following steps:
[0111] In the first step, coordinate transformation is performed on pixel points in at least one queue of each stitched image to obtain coordinates of the real road sign in each queue of each stitched image in a world coordinate system.
[0112] Here, coordinate transformation is performed on the pixel points in at least one queue of each stitched image. The specific implementation process is similar to the implementation process of step S2231 and will not be described here.
[0113] In the second step, the coordinates of the real road signs in the world coordinate system in at least one queue of at least two spliced image frames adjacent in time sequence are fused to obtain the second point cloud data set.
[0114] Here, the relevant world coordinates in at least one queue of at least two temporally adjacent stitched image frames are fused, and the specific implementation process is similar to the implementation process of step S2232, which will not be described here.
[0115] In some possible implementations, when the coordinates of the real road signs corresponding to at least two spliced images that are adjacent in time sequence in the world coordinate system meet the preset fusion conditions, the coordinates of the real road signs in the at least two spliced images that are adjacent in time sequence in the world coordinate system are fused and then obtained into the second point cloud data set. In this way, by fusing the coordinates corresponding to the real road signs in the spliced images that meet the preset fusion conditions, it is possible to obtain the coordinates of the real road signs in the world coordinate system with higher accuracy by supplementing the point cloud data of the real road signs. That is, the above step S2232 can be implemented by the following process:
[0116] First, a first bounding box of the coordinates of the real road sign in the first image in the world coordinate system is determined.
[0117] In some embodiments, at least two temporally adjacent stitched image frames include a first image and a second image, that is, a capture time of the first image is temporally adjacent to a capture time of the second image.
[0118] In some embodiments, the first bounding box for determining the coordinates of the real road sign in the first image in the world coordinate system may be a minimum rectangular box that can enclose the coordinates of the pixel points belonging to the real road sign in the first image in the world coordinate system.
[0119] Secondly, a second bounding box of the coordinates of the real road sign in the second image in the world coordinate system is determined.
[0120] In some embodiments, the second bounding box may also be a minimum rectangular box that can enclose the coordinates of the pixel points belonging to the real road sign in the second image in the world coordinate system.
[0121] Then, a vertex set of the first bounding box and a center point of the second bounding box are determined.
[0122] In some embodiments, the vertex set of the first bounding box is determined, that is, when the first bounding box is a rectangular box, its corresponding four vertices constitute the vertex set. Similarly, the center point of the second bounding box, when the second bounding box is a rectangular box, its center point is the center point of the rectangular box.
[0123] Finally, based on the vertex set and the center point, the coordinates of the real road signs in the first image and the second image in the world coordinate system are fused to obtain the second point cloud data set.
[0124] In some embodiments, the coordinates of the real road signs in the first image and the second image in the world coordinate system can be fused through the determined vertex set and the center point to obtain the second point cloud data set; wherein, the relationship between the first image and the second image can be judged through the vertex set and the center point, and when the judgment result indicates that the first image and the second image can be fused, the coordinates of the pixel points in the first image and the second image that belong to the real road signs in the world coordinate system are fused to obtain the second point cloud data set.
[0125] Here, based on the vertex set corresponding to the first image and the center point corresponding to the second image, the relevant world coordinates corresponding to the first image and the second image are fused. In this way, by fusing the relevant coordinate points with more refined fusion conditions, a second point cloud data set with higher accuracy and richer data volume can be obtained. This can be achieved through the following process:
[0126] First, a first vector to be compared is generated based on a target vertex in the vertex set and the center point.
[0127] In some embodiments, a target vertex is selected from the vertex set, and then a first vector to be compared from the target vertex to the center point is generated based on the target vertex and the center point corresponding to the second image.
[0128] Secondly, in the vertex set, a second vector to be compared is generated based on the target vertex and adjacent vertices of the target vertex.
[0129] In some embodiments, the vertices are concentrated, and the vertices adjacent to the target vertex include two adjacent locations, and a second vector to be compared is constructed from the target vertex to the adjacent vertex. Similarly, the second vector to be compared may include two.
[0130] In some embodiments, the vertex set includes vertex A, vertex B, vertex C, and vertex D, and the center point is center point M. Therefore, the first vector to be compared may be vector AM, and the second vector to be compared may be vector AB and vector AD.
[0131] Thirdly, the first vector to be compared and the second vector to be compared are fused to obtain a first fused vector.
[0132] In some embodiments, fusing the first vector to be compared and the second vector to be compared may be performing vector multiplication on the first vector to be compared and the second vector to be compared to obtain a first fused vector.
[0133] Then, at least two of the second vectors to be compared are fused to obtain a second fused vector.
[0134] In some embodiments, two second vectors to be compared are vector-multiplied to obtain the square of the second vector to be compared, that is, the second fused vector.
[0135] Finally, when the first fusion vector is smaller than the second fusion vector and the first fusion vector is greater than zero, the coordinates of the real road signs in the first image and the second image in the world coordinate system are fused to obtain the second point cloud data set.
[0136] In some embodiments, when the first fusion vector is smaller than the second fusion vector and the first fusion vector is greater than zero, the first image and the second image are fused, that is, the coordinates of the pixel points in the first image and the second image belonging to the real road sign in the world coordinate system are fused to obtain point cloud data of the real road sign in the world coordinate system, that is, the second point cloud data set.
[0137] In some embodiments, multiple image acquisition devices are used on a moving vehicle to acquire images of real road signs at multiple acquisition times to obtain multiple images to be processed. Then, image stitching is performed on the multiple images to be processed based on the acquisition time, and information fusion is performed based on the timing information, that is, multi-frame image information fusion is achieved to obtain more accurate and comprehensive point cloud data that can represent real road signs.
[0138] In some embodiments, the second point cloud data set can be normalized in a preset direction first, that is, the second point cloud data set is converted from three-dimensional parameters to two-dimensional parameters, and then based on the two-dimensional parameters obtained after the conversion, the position information of the first point cloud data set in the navigation map is adjusted to obtain a vectorized model of the real road signs in the navigation map, and then the navigation map is updated based on the vectorized model to finally obtain an updated navigation map. In this way, virtual road signs that better match the position information of real road signs can be obtained in the navigation map, and then high-precision maps can be provided during vehicle driving to serve vehicle driving. Here, step S103 in the above embodiment can be implemented by following the steps S301 to S303, such as Figure 3 As shown, it is a schematic diagram of the third map update process provided by the embodiment of the present application, combined with Figures 1 to 3 The steps shown are explained below:
[0139] Step S301, normalizing the second point cloud data set in a preset direction to obtain a target point cloud data set.
[0140] In some embodiments, the three-dimensional coordinate parameters, that is, the second point cloud data set in the world coordinate system, may be normalized on the z-axis to obtain the two-dimensional coordinate parameters, that is, the target point cloud data set.
[0141] Here, normalization is performed in a preset direction. If normalization is performed in the z-axis, the influence of the angle tilt of the road in the real road scene can be reduced.
[0142] In some possible implementations, a virtual plane in a preset direction with respect to the second point cloud data set may be first constructed, and then a target point cloud data set corresponding to the second point cloud data set may be determined on the virtual plane. In this way, by normalizing the second point cloud data set on the z-axis, a relevant point cloud data set in image coordinates, i.e., two-dimensional coordinates, may be obtained, and then a point cloud data set belonging to a real road sign that better matches the two-dimensional coordinate parameters in the navigation map may be obtained. That is, the above step S301 may be implemented by the following steps S3011 to S3013:
[0143] Step S3011: determining a virtual plane matching the second point cloud data set and a normal vector of the virtual plane in the preset direction.
[0144] In some embodiments, a virtual plane matching the second point cloud data set is constructed in a preset direction, and a normal vector of the virtual plane is determined; wherein the virtual plane is constructed based on the z-axis.
[0145] In some possible implementations, multiple initial planes matching the second point cloud data set can be constructed in a preset direction, and the initial plane with the smallest sum of distances from the second point cloud data set to the multiple initial planes can be selected from the multiple initial planes, and the initial plane can be used as the best initial plane of the second point cloud data in the preset direction, that is, a virtual plane, and the plane parameters of the virtual plane can be determined as the normal vector of the virtual plane. In this way, the virtual plane can be determined with higher accuracy. That is, the above step S3011 can be implemented by the following steps:
[0146] The first step is to fit an initial plane set matching the second point cloud data set in the preset direction.
[0147] In some embodiments, multiple plane equations can be constructed in a preset direction based on the three-dimensional coordinate parameters of each second point cloud data in the second point cloud data set, each plane equation corresponds to an initial plane, and thus multiple initial plane sets are obtained.
[0148] In the second step, in the initial plane set, the distance from the second point cloud data set to each initial plane is determined to obtain a distance set.
[0149] In some embodiments, for each initial plane, the distance from each second point cloud data in the second point cloud data set to the initial plane can be determined, and multiple distances can be fused to obtain the sum of the corresponding distances; and then the distance parameters corresponding to each initial plane can be obtained to obtain a distance set.
[0150] The third step is to sort each distance in the distance set to obtain a queue corresponding to the initial plane.
[0151] In some embodiments, the distances in the distance set are sorted from large to small to obtain a corresponding distance queue, that is, a queue corresponding to each initial plane.
[0152] In the fourth step, an initial plane located at a preset position of the queue is determined as the virtual plane, and a plane parameter of the initial plane is determined as a normal vector of the virtual plane.
[0153] In some embodiments, the initial plane located at the preset position of the queue, for example, the initial plane corresponding to the minimum distance, is determined as the best initial plane for fitting the second point cloud data set in the preset direction, that is, the virtual plane. And the plane parameters in the virtual plane are determined as the normal vector corresponding to the virtual plane.
[0154] Step S3012: Based on the centroid of the second point cloud data set, adjust the normal vector to obtain a rotation vector.
[0155] In some embodiments, based on the three-dimensional coordinate parameters of each second point cloud data in the second point cloud data set, the center of mass of the second point cloud data set is determined; then based on the center of mass and the normal vector, a rotation vector for mapping the second point cloud data set to a virtual plane is obtained.
[0156] In some possible implementations, a rotation vector associated with the normal vector, the second point cloud data set, and the virtual plane can be obtained by combining multiple vectors, so that a rotation vector with higher accuracy can be obtained. That is, the above step S3012 can be implemented by the following process:
[0157] In the first step, a first vector to be combined is generated based on the centroid of the second point cloud data set and the plane points located on the virtual plane.
[0158] In some embodiments, a vector from the centroid of the second point cloud data set to any plane point of the virtual plane is constructed to obtain a first vector to be combined.
[0159] The second step is to fuse the normal vector and the first vector to be combined to obtain a second vector to be combined.
[0160] In some embodiments, the normal vector and the first vector to be combined are vector-multiplied to obtain the second vector to be combined.
[0161] The third step is to combine the normal vector, the first vector to be combined, and the second vector to be combined to obtain the rotation vector.
[0162] In some embodiments, the normal vector, the first vector to be combined, and the second vector to be combined may be combined in a preset order to form a rotation vector.
[0163] Step S3013: Rotate the second point cloud dataset to the virtual plane based on the rotation vector to obtain the target point cloud dataset.
[0164] In some embodiments, each second point cloud data in the second point cloud dataset can be rotated and mapped to a virtual plane based on the rotation vector to obtain corresponding point cloud data, thereby obtaining the target point cloud dataset.
[0165] Step S302: Based on the target point cloud data set, the position information of the first point cloud data set in the navigation map is adjusted to obtain a vectorized model of the real road sign in the navigation map.
[0166] In some embodiments, the position information of the first point cloud dataset in the navigation map is adjusted or updated through the target point cloud dataset, i.e., the point cloud dataset after normalization on the z-axis, to obtain vectorized model data of the real road signs in the navigation map, which can be represented by point cloud data.
[0167] In some possible implementations, the location information of the first point cloud data set in the navigation map is updated by using the target point cloud data set whose quantity and confidence meet the preset conditions, so that the location information of the relevant road signs in the navigation map can be more matched with the location parameters in the real road, thereby obtaining a navigation map with higher accuracy. That is, the above step S302 can be represented by the following steps S3021 to S3022 (not shown in the figure):
[0168] Step S3021, determining the confidence level of each target point cloud data in the target point cloud data set.
[0169] In some embodiments, the confidence of each target point cloud data in the target point cloud data set is obtained and determined; wherein the confidence may have a mapping relationship with the observation value of the target point cloud data, that is, the higher the observation value, the higher the confidence; wherein the observation value may refer to the number of times the target point cloud data is captured by multiple image acquisition devices located at different positions of the vehicle.
[0170] Step S3022: obtaining a point cloud dataset to be processed based on the target point cloud data whose confidence level is greater than a first threshold in the target point cloud dataset.
[0171] In some embodiments, the data in the target point cloud data set can be screened by confidence, for example, the target point cloud data with a confidence greater than a first threshold is extracted from the target point cloud data set to generate a point cloud data set to be processed, wherein the first threshold can be a pre-set parameter, such as 90.
[0172] Step S3023, when the data volume of the point cloud data set to be processed is greater than a second threshold, adjusting the position information of the first point cloud data set in the navigation map to obtain the vectorized model.
[0173] The second threshold is the product of the data volume of the first point cloud data set and a preset coefficient.
[0174] In some embodiments, a point cloud data set to be processed is formed by screening out the point cloud data to be processed whose confidence meets certain conditions, that is, the confidence is greater than a first threshold. Then, when the data volume of the point cloud data set to be processed is greater than a second threshold, the position information of the first point cloud data set in the navigation map is adjusted based on the point cloud data set to be processed to obtain a vectorized representation of the real road signs in the navigation map, that is, a vectorized model.
[0175] In some embodiments, the second threshold may be the product of the amount of the first point cloud data set determined above and a preset coefficient; wherein the first point cloud data set may include all pixel points corresponding to the virtual road sign in the navigation map. Meanwhile, the preset coefficient may be 0.8 or 0.85.
[0176] In some possible implementations, when the amount of data of the point cloud data set to be processed meets the preset conditions, the first point cloud data set can be displaced and rotated in the navigation map based on the two-dimensional coordinate parameters of the point cloud data set to be processed, so as to obtain a third point cloud data set whose coincidence degree with the two-dimensional coordinate parameters of the point cloud data set to be processed meets the preset threshold. In this way, point cloud data that better matches the real coordinate information of the real road sign can be provided in the navigation map, thereby making the navigation map more accurate. That is, the above step S3023 can be implemented by the following process:
[0177] First, when the data volume of the point cloud data set to be processed is greater than the second threshold, the centroid of the point cloud data set to be processed and the centroid of the first point cloud data set are moved to a preset origin respectively.
[0178] In some embodiments, when the amount of data of the point cloud data set to be processed is greater than a second threshold, the centroid of the point cloud data set to be processed and the centroid of the first point cloud data set are first moved to a preset origin at the same time; wherein the preset origin can be the origin of a set two-dimensional coordinate system.
[0179] Secondly, based on the point cloud dataset to be processed, the first point cloud dataset in the navigation map is moved in a first direction and in a second direction to obtain a third point cloud dataset.
[0180] In some embodiments, the first point cloud dataset may be moved in a first direction and a second direction in a navigation map to obtain a third point cloud dataset whose degree of overlap with the point cloud dataset to be processed meets a preset threshold.
[0181] In some possible implementations, the first point cloud dataset is rotated in the first direction using different step lengths in sequence, and a third point cloud dataset is obtained in the navigation map, the degree of overlap between which and the point cloud dataset to be processed meets a preset threshold. In this way, point cloud data with a higher degree of match with real road signs can be obtained in the navigation map. That is, in the above steps, based on the point cloud dataset to be processed, the first point cloud dataset is moved in the first direction and the second direction in the navigation map to obtain the third point cloud dataset. In this way, based on the point cloud data that meets the preset conditions and belongs to the real road signs, the first point cloud dataset can be adjusted in different directions to obtain the third point cloud dataset, that is, a third point cloud dataset with higher accuracy can be determined by a more convenient and efficient method. This can be achieved through the following process:
[0182] In the first step, in the navigation map, the first point cloud dataset is rotated in the first direction using the first step length to obtain an intermediate point cloud dataset whose overlap with the point cloud dataset to be processed in the first direction meets a third threshold.
[0183] In some embodiments, in a navigation map, a first step is taken to rotate a first point cloud data set, which may be a plurality of pixel points of a virtual road sign represented by convex hull points, in a first direction to obtain a plurality of rotated point cloud data, and an intermediate point cloud data set whose degree of overlap with the point cloud data set to be processed in the first direction satisfies a third threshold is determined from the plurality of rotated point cloud data.
[0184] The third threshold may be a pre-set parameter, such as 90%, 80%, etc.
[0185] In the second step, the intermediate point cloud dataset is moved in the second direction with a second step length to obtain the third point cloud dataset whose overlap degree with the point cloud dataset to be processed in the second direction satisfies the third threshold.
[0186] Finally, the third point cloud data set is determined as the vectorized model.
[0187] In some embodiments, the third point cloud data set is determined to represent real road signs in the navigation map.
[0188] Step S303: obtaining the updated navigation map based on the vectorized model.
[0189] In some embodiments, the first point cloud data in the navigation map is updated to a vectorized model to obtain an updated navigation map.
[0190] In some embodiments, by displacing and rotating the first point cloud data set of virtual road signs in the navigation map through a second point cloud data set belonging to real road signs collected in real time, it is possible to obtain virtual road signs in the navigation map that are more closely matched with the actual positions and actual directions of the real road signs in the real road scene, thereby enabling more accurate navigation maps and high-quality navigation service capabilities to be obtained.
[0191] The above map updating method is described below in conjunction with a specific embodiment. However, it should be noted that this specific embodiment is only for better illustrating the embodiment of the present application and does not constitute an improper limitation on the embodiment of the present application.
[0192] High-precision navigation maps are thematic maps that serve vehicle driving, which contain rich and detailed static information. The high-precision navigation maps also contain lane models and road components with semantic information. The high precision is mainly reflected in two aspects: first, the absolute coordinate accuracy of high-precision navigation maps is higher, and second, the road traffic information contained in high-precision navigation maps is richer.
[0193] At the same time, the vectorization of road elements in the high-precision navigation map is generally divided into two categories, one is the vectorization of line-related elements; the other is the vectorization of template-related elements. Among them, the vectorization of line-related elements, such as lane lines, crosswalks, and stop lines, is mostly achieved by using curve fitting methods. For template-related elements, such as traffic arrows, such road elements have fixed polygonal shapes and cannot be fitted using traditional fitting methods. In related technologies, for the fitting of templates of fixed shapes, considering the use of point clouds, the iterative closest point (ICP) registration method is usually used. However, due to the influence of the actual segmented image and the positioning noise, the point cloud of the arrow fused by multiple frames will be different from the template arrow in the navigation map. The two point clouds registered by ICP cannot meet sufficient similarity from the beginning, and it is difficult to obtain the ideal registration result in the end. And considering the real-time problem of the navigation map, the ICP registration method cannot meet the requirements well.
[0194] Based on the above problems, an embodiment of the present application provides a map updating method, which is mainly based on the displacement and angle adjustment of the system template point cloud data given in the navigation map to obtain a vectorized model of the relevant road indication icon in the real road, which can be used in the production process of the vectorized map. Among them, first, the template point cloud data corresponding to the initial road traffic indication arrow given by the national standard, that is, the navigation map opened by the vehicle during driving, is used, and the convex hull points of the template point cloud data are used to characterize its vectorization. Then, the relevant road traffic indication arrows in the real road are collected from the surround fisheye camera of the moving vehicle, and the point cloud data of the road traffic indication arrows in the single-frame image are found from the multiple spliced images obtained, and the motion information of the vehicle body is used to fuse the multi-frame arrows to obtain the real point cloud data of the real road traffic indication arrows based on the fusion of the multi-frame images. Finally, based on the real point cloud data that meets the vectorization conditions, the convex hull points of the template point cloud data are rotated and displaced in the navigation map, and finally the vectorized representation of the real point cloud data in the navigation map is obtained. In this way, the position and direction of the road traffic arrows in the navigation map can be more closely matched with the actual position and direction of the real road traffic arrows in the real road scene, thereby obtaining a more accurate navigation map. The specific implementation steps are as follows:
[0195] The first step is to determine the navigation map that the vehicle opens during driving, and determine the template point cloud data of the virtual road sign in the virtual road scene from the navigation map, wherein the virtual road sign can be a road traffic indicator arrow; here, because the road traffic indicator arrow is generally an irregular polygon and does not satisfy the convex hull property, the convex hull point of the template point cloud data can be determined, and the convex hull point is used to represent the virtual point cloud data of the virtual road sign in the navigation map. In this way, compared with the existing solution of representing the road traffic indicator arrow based on all pixel points on the outline of the road traffic indicator arrow, this can simplify the storage space of the navigation map and is more conducive to the real-time update of the navigation map.
[0196] like Figure 4 As shown, a schematic diagram of representing road traffic indication arrows based on convex hull points provided in an embodiment of the present application is given. Figure 4 The road traffic arrows in can be represented by convex hull points 1, 2, 3, 4, 5, 6, 7, 8, 9; among them, 1, 2, 3, 4, 9 represent a convex hull; 4, 5, 8, 9 represent a convex hull; 5, 6, 7, 8 represent a convex hull.
[0197] The second step is to collect the real road traffic arrows on the real road from the surround fisheye camera of the moving vehicle to obtain multiple stitched images; then determine the point cloud data of the real road traffic arrows from each stitched image, and use the motion information of the vehicle body to fuse the relevant point cloud data in multiple frames of arrows, that is, multiple frames of temporally adjacent stitched images, to obtain the real point cloud data of the real road traffic arrows based on the fusion of multiple frames of images. This can be achieved through the following processes:
[0198] Firstly, based on image acquisition devices deployed at different positions on the body of a moving vehicle, images of real road traffic arrows are acquired at at least two acquisition moments to obtain multiple frames of images corresponding to different acquisition moments, and then the multiple frames of images at the same acquisition moment are spliced to obtain a spliced image corresponding to each acquisition moment, and then object recognition is performed on pixel points in the spliced image corresponding to each acquisition moment to obtain pixel points belonging to the real road traffic arrows in each spliced image.
[0199] To identify whether each pixel of each stitched image is a pixel of a real road traffic arrow, a breadth traversal method can be used to identify each pixel in each stitched image. The first pixel in the upper left corner of the stitched image can be identified, that is, to identify whether it is a pixel of a real road traffic arrow. The similarity can be compared with a pre-set pixel belonging to a real road traffic arrow. When the similarity meets a preset threshold, it is determined that the pixel belongs to a real road traffic arrow. Figure 5 As shown, it is a schematic diagram of pixel points belonging to real road traffic indication arrows in an image provided by an embodiment of the present application; wherein 501 is a frame of spliced image, wherein 5011 and 5012 respectively refer to pixel point sets of real road traffic indication arrows in a frame of spliced image, 5011 is a real road traffic indication arrow, and 5012 is another real road traffic indication arrow.
[0200] At the same time, when it is determined that any pixel point belongs to a pixel point of a real road traffic sign arrow, the pixel point can be added to the queue that needs to be clustered, and the neighboring pixels of the pixel point in the spliced image are identified in sequence, and the next pixel point to be identified in the spliced image is determined based on the identification result of the pixels in the area. If the same spliced image includes multiple real road traffic sign arrows, the pixels in the same spliced image that belong to the same real road traffic sign arrow can be classified into the same queue.
[0201] Secondly, the fusion of multiple-frame stitched images, because the observation of the real road traffic arrows in a single-frame stitched image is often incomplete, needs to be complemented by multiple-frame stitched images. In this process, the pixel coordinates of the clustered pixels on the single-frame stitched image need to be projected into a unified three-dimensional coordinate system, that is, the world coordinate system, according to the position of the vehicle movement, and then the coordinates of the pixel points belonging to the real road traffic arrows in each stitched image in the world coordinate system are obtained; then, based on the coordinates of the pixel points belonging to the real road traffic arrows in each stitched image in the world coordinate system, it is determined whether it is necessary to fuse the coordinates corresponding to the stitched images corresponding to different acquisition moments that are adjacent in time sequence.
[0202] Here, the minimum rectangular frame is used to enclose the coordinates of the pixel points belonging to the real road traffic indication arrow in the spliced image corresponding to the first acquisition moment in the world coordinate system, and the enclosing frame corresponding to the first acquisition moment is obtained, and then the four vertices of the enclosing frame, namely, vertex A, vertex B, vertex C, and vertex D, are determined; at the same time, the minimum rectangular frame is used to enclose the coordinates of the pixel points belonging to the real road traffic indication arrow in the spliced image corresponding to the second acquisition moment in the world coordinate system, and the enclosing frame corresponding to the second acquisition moment is obtained, and then the center point of the enclosing frame, namely, center point M, is determined; wherein the first acquisition moment and the second acquisition moment are adjacent in time sequence. When the corresponding vector parameters generated by vertex A, vertex B, vertex C, vertex D and center point M satisfy formula (1), the coordinates of the pixel points belonging to the real road traffic indication arrow in the spliced image corresponding to the first acquisition moment and the spliced image corresponding to the second acquisition moment in the world coordinate system can be fused, and so on, the coordinates of the pixel points belonging to the real road traffic indication arrow in the spliced images corresponding to at least two acquisition moments in the world coordinate system are fused to obtain the real point cloud data of the real road traffic indication arrow.
[0203] (0<AM·AB<AB·AB)∧(0<AM·AD<AD·AD) Formula (1);
[0204] like Figure 6 As shown, it is a schematic diagram of the real point cloud data of the real road traffic indication arrow obtained after the fusion of the point cloud data in the multi-frame images provided in the embodiment of the present application; wherein, the trajectory line 601 represents the vehicle driving trajectory, and at the same time, multiple different types of road traffic indication arrows around the trajectory line are obtained by performing relevant pixel point coordinate transformation and fusion of the collected multi-frame images to obtain the real point cloud data belonging to the real road traffic indication arrow.
[0205] The third step is to perform z-axis normalization processing on the real point cloud data of the real road traffic sign arrow to obtain its corresponding two-dimensional coordinate parameters, that is, the real target point cloud data.
[0206] First, a plane equation is fitted on the z-axis for the obtained real point cloud data, as shown in formula (2):
[0207] ax i +by i +cz i +d=0 Formula (2);
[0208] Among them, (x i ,y i ,z i ) is the three-dimensional coordinate parameter of any point cloud data in the real point cloud data. The corresponding constraint condition is shown in formula (3):
[0209] a 2 +b 2 +c 2 =1 Formula (3);
[0210] To make the fitting plane optimal, the distance between the multiple point cloud data included in the real point cloud data and the fitting plane should be minimized, that is, the following formula (4) needs to be satisfied:
[0211]
[0212] Among them, d i is any point cloud data in the real point cloud data (x i ,y i ,z i ) to the virtual plane, that is, d = |ax+by+cz+d|; at the same time, if e is to be minimized, singular value decomposition (SVD) can be used to obtain the corresponding plane parameters, that is, to determine a, b, c. Then, the corresponding fitting plane and the normal vector n of the fitting plane can be obtained, where the normal vector n is obtained by combining the plane parameters a, b, c.
[0213] Secondly, determine the vector between any point in the fitting plane and the centroid of the real point cloud data of the real road traffic indicator arrow, and perform normalization processing to obtain a vector d. Then, cross-product the vector d with the normal vector n to obtain another vector k. These three vectors constitute the rotation vector of the real point cloud data to the fitting plane.
[0214] Finally, based on the rotation vector, each real point cloud data in the real point cloud data is rotated and mapped to the fitting plane in turn to obtain the real target point cloud data.
[0215] The fourth step is to rotate and displace the convex hull points of the template point cloud data in the navigation map based on the real point cloud data that meets the vectorization conditions, and finally obtain the vectorized representation of the real point cloud data in the navigation map, that is, to update the navigation map and obtain an updated navigation map. The position and angle of the virtual road traffic arrows in the updated navigation map are more matched with the position and angle of the real road traffic arrows, thereby making the updated navigation map more accurate, which helps to provide more accurate navigation services.
[0216] Here, since the real road traffic arrows observed by the vehicle during driving are incomplete and unstable, it is often necessary to set the conditions for the number of point cloud data that each real road traffic arrow vectorization needs to meet when performing vectorization representation in the navigation map; for example, the threshold is set to 80% of the amount of point cloud data in the template point cloud data, where the template point cloud data here can refer to all pixel points of the virtual road arrow indicator arrow in the navigation map. At the same time, in order to ensure the confidence of all point cloud data, the observation value of the real point cloud data will be set. Only when the number of real point cloud observations reaches the specified threshold, the real point cloud data will be identified as stable point cloud data. Then, when the number of the real point cloud data and the corresponding confidence of the real point cloud data meet certain conditions, the virtual point cloud data can be adjusted based on the real point cloud data that meets certain conditions to obtain the corresponding vectorization model. Among them, it can be implemented in the following several processes:
[0217] First, it is assumed that the centroid of the virtual point cloud data is consistent with the centroid of the real point cloud data, that is, the centroid of the virtual point cloud data and the centroid of the real point cloud data are simultaneously moved to the coordinate origin, which can be the coordinate origin in a two-dimensional coordinate system.
[0218] Secondly, the virtual point cloud represented by convex hull points can be roughly searched in the rotation direction with a step size of 5 degrees, and then finely searched in the rotation direction with a step size of 0.5 degrees. At the same time, the rotation range is 360 degrees. Finally, based on multiple search values, the intermediate point cloud data whose matching degree with the real point cloud data in the rotation direction meets the preset threshold is determined.
[0219] Finally, for the intermediate point cloud data, a rough displacement search is performed with a step size of 0.1mm, and the search range is -0.5m to 0.5m; then a fine displacement search is performed with a step size of 0.01mm, where the search range can be determined according to the actual situation. Finally, based on multiple search values, the target point cloud data whose matching degree with the real point cloud data in the displacement direction meets the preset threshold is determined.
[0220] Here, the effect of rotation and displacement of virtual point cloud data can be evaluated by the voxel repetition of point cloud. When the repetition between virtual point cloud data and real point cloud data meets a certain threshold, it is considered that the fit between the two is high, and the virtual point cloud data with angle and displacement changes is used as the mapping information of the real road traffic arrow in the navigation map. Figure 7 As shown, it is a schematic diagram of a navigation map obtained by applying the map updating method provided in an embodiment of the present application; wherein, each road traffic indication arrow in the navigation map adopts virtual point cloud data automatically generated by the system in the navigation map, which is obtained after displacing and rotating the virtual point cloud data based on the real point cloud data of the real road traffic indication arrow collected in real time, which can make the position and direction of the virtual road traffic indication arrow displayed in the navigation map more matched with the position and direction of the real road traffic indication arrow.
[0221] Based on the above four steps, the problem of vectorization of real point cloud data representing real road signs based on template point cloud data can be realized. Among them, firstly, image splicing and fusion are performed based on multiple frames of images collected in real time to obtain real point cloud data of real traffic signs in real road scenes, so as to prepare for the subsequent display of the vectorization of the real road traffic signs in the navigation map; secondly, in the process of pixel recognition of each frame of image, that is, identifying whether the pixel belongs to the real road traffic sign, instantiation numbering and related queue storage can be performed, so that the real point cloud data of the real road traffic signs collected in real time can be extracted more accurately. Then, considering the angle problem existing in the actual vehicle driving process, the real point cloud data can be normalized on the z-axis, and then the corresponding two-dimensional real point cloud data can be obtained. Finally, when the number of two-dimensional real point cloud data and the corresponding confidence meet certain conditions, the virtual point cloud data representing the real road traffic signs in the navigation map are aligned in angle and displacement, and then the real road traffic signs are mapped to the vectorization model in the navigation map. At the same time, considering the subsequent evaluation and visualization, all the pixels representing the real road traffic signs in the navigation map can be represented based on the convex hull points. In this way, the position and direction of the road traffic arrows in the navigation map can be more closely matched with the actual position and direction of the real road traffic arrows in the real road scene, thereby obtaining a more accurate navigation map and high-quality navigation service capabilities.
[0222] The present application embodiment provides a map updating device. Figure 8 A schematic diagram of the structure of a map updating device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the map updating device 800 includes:
[0223] A determination module 801 is used to determine a first point cloud data set of virtual road signs in a virtual road scene in a navigation map of a vehicle in a driving state;
[0224] An acquisition module 802 is used to acquire a second point cloud data set of real road signs in a real road scene where the vehicle is traveling;
[0225] The updating module 803 is used to update the position information of the first point cloud data set in the navigation map based on the second point cloud data set to obtain an updated navigation map.
[0226] In some embodiments, the determination module 801 is further used to obtain a template point cloud dataset associated with the virtual road sign in the navigation map; and determine the convex hull point corresponding to the template point cloud dataset as the first point cloud dataset.
[0227] In some embodiments, the acquisition module 802 includes: a collection submodule, used to use image collection devices located at different positions of the vehicle to collect images of the real road signs at at least two collection times to obtain a set of images to be processed; and a determination submodule, used to obtain the second point cloud data set based on the set of images to be processed.
[0228] In some embodiments, the determination submodule includes: a stitching subunit, used to stitch at least two frames of images to be processed at the same acquisition time in the image set to be processed to obtain a stitched image set; a first determination subunit, used to determine the pixel points belonging to the real road sign in each stitched image in the stitched image set; and a second determination subunit, used to determine the second point cloud data set based on the pixel points belonging to the real road sign in each stitched image.
[0229] In some embodiments, the first determination subunit is further used to identify the neighboring pixel points of any pixel point in each of the stitched images when any pixel point belongs to the pixel point of the real road sign; determine the next pixel point to be identified in each of the stitched images based on the identification result of the neighboring pixel points; and identify the next pixel point to be identified to obtain the pixel point belonging to the real road sign in each of the stitched images.
[0230] In some embodiments, the first determining subunit is further configured to determine the next pixel point to be identified in each spliced image according to a preset identification order when any of the pixel points does not belong to a pixel point of the real road sign.
[0231] In some embodiments, the second determining subunit is further used to perform coordinate transformation on the pixel points belonging to the real road sign in each stitched image in the stitched image set to obtain the coordinates of the real road sign in each stitched image in the world coordinate system; and to fuse the coordinates of the real road sign in the world coordinate system in at least two frames of stitched images that are adjacent in time sequence to obtain the second point cloud data set.
[0232] In some embodiments, the second determining subunit is further used to mark the pixel points in each stitched image belonging to the same real road sign and store them in the same queue to obtain at least one queue of each stitched image; perform coordinate transformation on the pixel points in at least one queue of each stitched image to obtain the coordinates of the real road sign in each queue of each stitched image in the world coordinate system; and fuse the coordinates of the real road sign in at least one queue of at least two frames of stitched images adjacent in time sequence in the world coordinate system to obtain the second point cloud data set.
[0233] In some embodiments, the at least two temporally adjacent stitched image frames include a first image and a second image, and the second determining subunit is further used to determine a first bounding box of the coordinates of the real road sign in the first image in a world coordinate system; determine a second bounding box of the coordinates of the real road sign in the second image in a world coordinate system; determine a vertex set of the first bounding box and a center point of the second bounding box; and based on the vertex set and the center point, fuse the coordinates of the real road sign in the first image and the second image in the world coordinate system to obtain the second point cloud data set.
[0234] In some embodiments, the second determination subunit is further used to generate a first vector to be compared based on the target vertex in the vertex set and the center point; in the vertex set, generate a second vector to be compared based on the target vertex and the adjacent vertices of the target vertex; fuse the first vector to be compared and the second vector to be compared to obtain a first fused vector; fuse at least two of the second vectors to be compared to obtain a second fused vector; and when the first fused vector is less than the second fused vector and the first fused vector is greater than zero, fuse the coordinates of the real road signs in the first image and the second image in the world coordinate system to obtain the second point cloud data set.
[0235] In some embodiments, the update module 803 includes: a normalization submodule, used to normalize the second point cloud data set in a preset direction to obtain a target point cloud data set; an adjustment submodule, used to adjust the position information of the first point cloud data set in the navigation map based on the target point cloud data set to obtain a vectorized model of the real road sign in the navigation map; and an update submodule, used to obtain the updated navigation map based on the vectorized model.
[0236] In some embodiments, the normalization submodule is also used to determine a virtual plane matching the second point cloud dataset and a normal vector of the virtual plane in the preset direction; based on the center of mass of the second point cloud dataset, adjust the normal vector to obtain a rotation vector; and based on the rotation vector, rotate the second point cloud dataset to the virtual plane to obtain the target point cloud dataset.
[0237] In some embodiments, the normalization submodule is also used to fit an initial plane set that matches the second point cloud data set in the preset direction; in the initial plane set, determine the distance from the second point cloud data set to each initial plane to obtain a distance set; sort each distance in the distance set to obtain a queue corresponding to the initial plane; determine the initial plane located at a preset position in the queue as the virtual plane, and determine the plane parameters of the initial plane as the normal vector of the virtual plane.
[0238] In some embodiments, the normalization submodule is also used to generate a first vector to be combined based on the centroid of the second point cloud data set and the plane point on the virtual plane; fuse the normal vector and the first vector to be combined to obtain a second vector to be combined; and combine the normal vector, the first vector to be combined and the second vector to be combined to obtain the rotation vector.
[0239] In some embodiments, the adjustment submodule is also used to determine the confidence of each target point cloud data in the target point cloud data set; in the target point cloud data set, based on the target point cloud data whose confidence is greater than a first threshold, a point cloud data set to be processed is obtained; when the data volume of the point cloud data set to be processed is greater than a second threshold, the position information of the first point cloud data set in the navigation map is adjusted to obtain the vectorized model; wherein the second threshold is the product of the data volume of the first point cloud data set and a preset coefficient.
[0240] In some embodiments, the adjustment submodule is also used to move the centroid of the point cloud dataset to be processed and the centroid of the first point cloud dataset to a preset origin, respectively, when the data volume of the point cloud dataset to be processed is greater than the second threshold; based on the point cloud dataset to be processed, move the first point cloud dataset in the navigation map in the first direction and the second direction to obtain a third point cloud dataset; and determine the third point cloud dataset as the vectorized model.
[0241] In some embodiments, the adjustment submodule is also used to, in the navigation map, rotate the first point cloud dataset in the first direction using a first step size to obtain an intermediate point cloud dataset whose degree of overlap with the point cloud dataset to be processed in the first direction satisfies a third threshold; and move the intermediate point cloud dataset in the second direction using a second step size to obtain the third point cloud dataset whose degree of overlap with the point cloud dataset to be processed in the second direction satisfies the third threshold.
[0242] It should be noted that the description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0243] It should be noted that in the embodiments of the present application, if the above-mentioned map updating method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application can essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for a computer device (which can be a terminal, server, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a sports hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0244] Correspondingly, an embodiment of the present application further provides a computer program product, which includes computer executable instructions. After the computer executable instructions are executed, the map updating method provided in the embodiment of the present application can be implemented.
[0245] Accordingly, an embodiment of the present application provides a computer device, Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present application is shown in FIG. Fig. 9As shown, the computer device 900 includes: a processor 901, at least one communication bus 904, a communication interface 902, at least one external communication interface and a memory 903. The communication interface 902 is configured to realize the connection and communication between these components. The communication interface 902 may include a display screen, and the external communication interface may include a standard wired interface and a wireless interface. The processor 901 is configured to execute the program in the memory to implement the map update method provided in the above embodiment.
[0246] Accordingly, an embodiment of the present application further provides a computer storage medium, on which computer executable instructions are stored. When the computer executable instructions are executed by a processor, the map updating method provided in the above embodiment is implemented.
[0247] The description of the above map updating device, computer equipment and storage medium embodiments is similar to the description of the above method embodiments, and has similar technical descriptions and beneficial effects as the corresponding method embodiments. Due to space limitations, reference can be made to the records of the above method embodiments, so no further description is given here. For technical details not disclosed in the map updating device, computer equipment and storage medium embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0248] It should be understood that the "one embodiment" or "one embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the embodiment of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence number of the embodiment of the present application is only for description and does not represent the advantages and disadvantages of the embodiment. It should be noted that in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the element.
[0249] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0250] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0251] In addition, all functional units in the embodiments of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units. It can be understood by ordinary technicians in this field that all or part of the steps of the above method embodiments can be completed by hardware related to program instructions, and the above program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the above storage medium includes: mobile storage devices, ROM, disks or optical disks and other media that can store program codes.
[0252] Alternatively, if the above-mentioned integrated unit of the embodiment of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which 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 execute all or part of the methods described in each embodiment of the embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks. The above is only a specific implementation method of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiment of the present application, which should be covered within the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.
Claims
1. A map updating method, It is characterized in that The method comprises: In a navigation map of a vehicle in motion, determining a first point cloud data set of virtual road signs in a virtual road scene; Acquire a second point cloud data set of real road signs in a real road scene where the vehicle is traveling; Based on the second point cloud data set, updating the position information of the first point cloud data set in the navigation map to obtain an updated navigation map; The updating of the position information of the first point cloud data set in the navigation map based on the second point cloud data set to obtain an updated navigation map includes: Normalizing the second point cloud data set in a preset direction to obtain a target point cloud data set; Based on the target point cloud data set, adjusting the position information of the first point cloud data set in the navigation map to obtain a vectorized model of the real road sign in the navigation map; Based on the vectorized model, the updated navigation map is obtained.
2. The method according to claim 1, It is characterized in that The step of determining a first point cloud data set of virtual road signs in a virtual road scene in a navigation map of a vehicle in a driving state includes: In the navigation map, obtaining a template point cloud data set associated with the virtual road sign; The convex hull points corresponding to the template point cloud data set are determined as the first point cloud data set.
3. The method according to claim 1 or 2, It is characterized in that The step of obtaining a second point cloud data set of real road signs in a real road scene where the vehicle is traveling comprises: Using image acquisition devices located at different positions of the vehicle, the real road sign is imaged at at least two acquisition moments to obtain a set of images to be processed; Based on the image set to be processed, the second point cloud data set is obtained.
4. The method according to claim 3, It is characterized in that The step of obtaining the second point cloud data set based on the image set to be processed includes: In the image set to be processed, stitching is performed on at least two frames of images to be processed at the same acquisition time to obtain a stitched image set; Determining the pixel points belonging to the real road sign in each stitched image in the stitched image set; The second point cloud data set is determined based on the pixel points belonging to the real road sign in each stitched image.
5. The method according to claim 4, It is characterized in that The determining the pixel points belonging to the real road sign in each stitched image in the stitched image set includes: In the case where any pixel point belongs to a pixel point of the real road sign, identifying neighboring pixel points of the any pixel point in each of the spliced images; Based on the recognition result of the neighborhood pixel points, determining the next pixel point to be recognized in each stitched image; The next pixel point to be identified is identified to obtain the pixel point belonging to the real road sign in each spliced image.
6. The method according to claim 5, It is characterized in that The method further comprises: In the case that any of the pixel points does not belong to the pixel point of the real road sign, the next pixel point to be identified is determined in each spliced image according to a preset identification sequence.
7. The method according to any one of claims 4 to 6, It is characterized in that The determining the second point cloud data set based on the pixel points belonging to the real road sign in each stitched image includes: In the stitched image set, coordinate transformation is performed on the pixel points belonging to the real road sign in each stitched image to obtain the coordinates of the real road sign in each stitched image in the world coordinate system; The coordinates of the real road signs in the world coordinate system in at least two spliced image frames that are adjacent in time sequence are fused to obtain the second point cloud data set.
8. The method according to claim 7, It is characterized in that The method further comprises: Marking the pixel points in each stitched image that belong to the same real road sign and storing them in the same queue to obtain at least one queue for each stitched image; The determining the second point cloud data set based on the pixel points belonging to the real road sign in each stitched image includes: Performing coordinate transformation on pixel points in at least one queue of each stitched image to obtain coordinates of the real road sign in each queue of each stitched image in a world coordinate system; The coordinates of the real road signs in the world coordinate system in at least one queue of at least two spliced image frames that are adjacent in time sequence are fused to obtain the second point cloud data set.
9. The method according to claim 7, It is characterized in that The at least two spliced image frames that are adjacent in time sequence include a first image and a second image, and the coordinates of the real road signs in the at least two spliced image frames that are adjacent in time sequence in a world coordinate system are fused to obtain the second point cloud data set, including: Determine a first bounding box of coordinates of the real road sign in the first image in a world coordinate system; Determine a second bounding box of coordinates of the real road sign in the second image in a world coordinate system; Determine a vertex set of the first bounding box and a center point of the second bounding box; Based on the vertex set and the center point, the coordinates of the real road signs in the first image and the second image in the world coordinate system are fused to obtain the second point cloud data set.
10. The method according to claim 9, It is characterized in that The step of fusing the coordinates of the real road signs in the first image and the second image in a world coordinate system based on the vertex set and the center point to obtain the second point cloud data set includes: Generate a first vector to be compared based on the target vertex in the vertex set and the center point; In the vertex set, based on the target vertex and adjacent vertices of the target vertex, generate a second vector to be compared; fusing the first vector to be compared and the second vector to be compared to obtain a first fused vector; fusing at least two of the second vectors to be compared to obtain a second fused vector; When the first fusion vector is smaller than the second fusion vector and the first fusion vector is greater than zero, the coordinates of the real road signs in the first image and the second image in the world coordinate system are fused to obtain the second point cloud data set.
11. The method according to claim 1, It is characterized in that The step of normalizing the second point cloud data set in a preset direction to obtain target point cloud data includes: In the preset direction, determining a virtual plane matching the second point cloud data set and a normal vector of the virtual plane; Based on the centroid of the second point cloud data set, adjusting the normal vector to obtain a rotation vector; The second point cloud dataset is rotated to the virtual plane based on the rotation vector to obtain the target point cloud dataset.
12. The method according to claim 11, It is characterized in that Determining a virtual plane matching the second point cloud data set and a normal vector of the virtual plane in the preset direction includes: Fitting an initial plane set matching the second point cloud data set in the preset direction; In the initial plane set, determining the distance from the second point cloud data set to each initial plane to obtain a distance set; sorting each distance in the distance set to obtain a queue corresponding to the initial plane; An initial plane located at a preset position of the queue is determined as the virtual plane, and a plane parameter of the initial plane is determined as a normal vector of the virtual plane.
13. The method according to claim 11 or 12, It is characterized in that The adjusting the normal vector to obtain the rotation vector based on the centroid of the second point cloud data set includes: Generate a first vector to be combined based on the centroid of the second point cloud data set and the plane point on the virtual plane; Fusion of the normal vector and the first vector to be combined to obtain a second vector to be combined; The normal vector, the first vector to be combined, and the second vector to be combined to obtain the rotation vector.
14. The method according to claim 1, It is characterized in that The adjusting, based on the target point cloud data set, the position information of the first point cloud data set in the navigation map to obtain the vectorized model of the real road sign in the navigation map includes: Determining the confidence level of each target point cloud data in the target point cloud data set; In the target point cloud data set, based on the target point cloud data whose confidence is greater than a first threshold, a point cloud data set to be processed is obtained; When the amount of the point cloud data set to be processed is greater than a second threshold, adjusting the position information of the first point cloud data set in the navigation map to obtain the vectorized model; The second threshold is the product of the data volume of the first point cloud data set and a preset coefficient.
15. The method according to claim 14, It is characterized in that When the amount of the point cloud data set to be processed is greater than a second threshold, adjusting the position information of the first point cloud data set in the navigation map to obtain the vectorized model includes: When the data volume of the to-be-processed point cloud data set is greater than the second threshold, moving the centroid of the to-be-processed point cloud data set and the centroid of the first point cloud data set to a preset origin respectively; Based on the point cloud dataset to be processed, moving the first point cloud dataset in the navigation map in a first direction and in a second direction to obtain a third point cloud dataset; The third point cloud data set is determined as the vectorized model.
16. The method according to claim 15, It is characterized in that The step of moving the first point cloud dataset in the navigation map in a first direction and a second direction based on the point cloud dataset to be processed to obtain a third point cloud dataset includes: In the navigation map, the first point cloud dataset is rotated in the first direction using a first step length to obtain an intermediate point cloud dataset whose overlap degree with the point cloud dataset to be processed in the first direction meets a third threshold; The intermediate point cloud dataset is moved in the second direction with a second step length to obtain the third point cloud dataset whose degree of overlap with the point cloud dataset to be processed in the second direction satisfies the third threshold.
17. A map updating device, It is characterized in that The device comprises: A determination module, configured to determine a first point cloud data set of virtual road signs in a virtual road scene in a navigation map of a vehicle in a driving state; An acquisition module, used for acquiring a second point cloud data set of real road signs in a real road scene where the vehicle is traveling; An updating module, configured to update the position information of the first point cloud data set in the navigation map based on the second point cloud data set to obtain an updated navigation map; The updating module is further used to normalize the second point cloud data set in a preset direction to obtain a target point cloud data set; based on the target point cloud data set, adjust the position information of the first point cloud data set in the navigation map to obtain a vectorized model of the real road sign in the navigation map; and based on the vectorized model, obtain the updated navigation map.
18. A computer device, It is characterized in that The computer device includes a memory and a processor, the memory stores computer executable instructions, and the processor can implement the map updating method according to any one of claims 1 to 16 when running the computer executable instructions on the memory.
19. A computer storage medium, It is characterized in that The computer storage medium stores computer executable instructions, which, after being executed, can implement the map updating method described in any one of claims 1 to 16.
Citation Information
Patent Citations
Road condition preview method suitable for integrated control of vehicle chassis
CN111829514A
Positioning method and apparatus, device, and storage medium
WO2021057742A1
