Map matching method, system, device and readable storage medium
Through the visual perception and longitudinal splicing technology of multi-frame images, combined with high-precision map matching, the problem of positioning accuracy of single-frame perception in complex environments in intelligent driving is solved, achieving higher robustness and accuracy.
Patent Information
- Application Number
- CN202111113570.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-09-22
AI Technical Summary
In existing intelligent driving technology, visual navigation based on single-frame forward-looking perception has low positioning accuracy in complex environments and is easily affected by factors such as road obstacles, unclear road markings, and lighting changes, resulting in false detections and missed detections.
Multi-frame images are used for visual perception processing, and vertical mosaics of feature points are generated through top-view conversion and vertical splicing. High-precision maps are used for matching, and curve fitting is used for correction to enhance the robustness of the algorithm.
Improve positioning and navigation accuracy within a larger geographical range, enhance algorithm robustness, reduce system workload and storage space requirements, and improve the credibility of detection results.
Smart Images

Figure CN113834492B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent driving technology, and in particular to a map matching method, system, device and readable storage medium. Background Art
[0002] Visual navigation is a key technical step in intelligent driving and assisted driving. It extracts useful information from the environment through processing of visual data (generally image data) to provide a reliable basis for driving decisions. Lane detection is one of the important aspects. Generally, images are collected by the forward-looking camera for image processing to obtain information about road conditions. The positioning results based on the information fused from the original sensors, such as the global satellite positioning system, inertial measurement unit, wheel speed meter, etc., often cannot obtain very high positioning accuracy. The usual practice is to add visual information and fuse it with the high-precision map to correct the accuracy of the original sensor positioning. However, the visual information currently introduced is based on the perception of a single-frame forward view, which is matched and fused with the high-precision map. In traffic scenes, vision-based methods are affected by many factors, such as multiple obstacles on the road, unclear road markings, weather effects, and changes in lighting. These factors can cause the system to have false detections and missed detections, and the visual perception results of a single-frame image will become less robust.
[0003] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the invention
[0004] In response to the above technical problems, the present application provides a map matching method, system, device and readable storage medium, so that intelligent navigation based on high-precision maps can match and adapt to different complex environments and enhance the robustness of the algorithm.
[0005] In order to solve the above technical problems, the present application provides a map matching method. Specifically, the map matching method includes:
[0006] In response to acquiring a plurality of frames of images captured by a vehicle-mounted camera, respectively performing visual perception processing on the plurality of frames of images to acquire a plurality of frames of feature point bitmaps;
[0007] Performing top-down conversion on the multiple frames of feature point bitmaps respectively to obtain corresponding multiple frames of top-down conversion images;
[0008] Taking the driving direction as the longitudinal direction, the multiple frames of the overhead conversion images are longitudinally spliced according to the coordinate positions of the feature points to generate a longitudinal jigsaw puzzle of the feature points;
[0009] According to the vertical jigsaw puzzle of the feature points, map matching is performed on the local high-precision map of the current location.
[0010] Optionally, the step of generating a vertical jigsaw puzzle of feature points includes:
[0011] In response to the longitudinal splicing, curve fitting is performed on the result of the longitudinal splicing to obtain a fitting feature point curve;
[0012] According to the fitted feature point curve, the vertical jigsaw puzzle of the feature points is corrected.
[0013] Optionally, the curve fitting is selected from at least one of polynomial fitting and NURBS curve fitting.
[0014] Optionally, the step of performing top-down conversion on the multiple frames of feature point bitmaps respectively comprises:
[0015] Obtaining internal parameters, external parameters and distortion parameters of the vehicle-mounted camera;
[0016] According to the internal parameters, external parameters and distortion parameters of the vehicle-mounted camera, the multi-frame feature point bitmap is subjected to inverse perspective transformation.
[0017] Optionally, the internal parameter is selected from at least one of focal length, optical center, and distortion parameter, and / or the external parameter is selected from at least one of pitch angle, yaw angle, and ground height.
[0018] Optionally, the step of vertically splicing the multiple frames of top-view conversion images according to the coordinate positions of the feature points includes:
[0019] The multiple frames of overhead conversion images are longitudinally overlaid in sequence according to the coordinate positions of the feature points, and / or the multiple frames of overhead conversion images are cut according to the coordinate positions of the feature points and then longitudinally spliced.
[0020] Optionally, after the step of performing map matching on the currently located local high-precision map according to the vertical jigsaw puzzle of the feature points, the following steps are included:
[0021] When there is a deviation between the matching angle of the vertical puzzle of the feature points and the local high-precision map, the posture angle of the positioning group is corrected; and / or when there is a deviation between the matching position of the vertical puzzle of the feature points and the local high-precision map, the posture position of the positioning group is corrected.
[0022] On the other hand, the present application also provides a map matching system, specifically, comprising:
[0023] A visual perception unit, used to perform visual perception processing on multiple frames of images taken by the vehicle-mounted camera to obtain multiple frames of feature point bitmaps;
[0024] An inverse perspective unit, used to perform a top-down conversion on the multiple frames of feature point bitmaps respectively, so as to obtain corresponding multiple frames of top-down conversion images;
[0025] A splicing unit is used to perform longitudinal splicing of the multiple frames of top-view conversion images according to the coordinate positions of the feature points, with the driving direction as the longitudinal direction, to generate a longitudinal jigsaw puzzle of the feature points;
[0026] The map matching unit is used to perform map matching on the currently located local high-precision map according to the vertical jigsaw puzzle of the feature points.
[0027] Optionally, the stitching unit is further used to perform curve fitting on the result of the longitudinal stitching to obtain a fitted feature point curve; and to correct the longitudinal jigsaw puzzle of the feature points according to the fitted feature point curve.
[0028] Optionally, the curve fitting is selected from at least one of polynomial fitting and NURBS curve fitting.
[0029] Optionally, the inverse perspective unit is used to perform an inverse perspective transformation on the multi-frame feature point bitmap according to internal parameters, external parameters and distortion parameters of the vehicle-mounted camera.
[0030] Optionally, the internal parameter is selected from at least one of focal length, optical center, and distortion parameter, and / or the external parameter is selected from at least one of pitch angle, yaw angle, and ground height.
[0031] Optionally, the splicing unit longitudinally overlays the multiple frames of overhead view conversion images in sequence according to the coordinate positions of the feature points, and / or longitudinally splices the multiple frames of overhead view conversion images after cutting them according to the coordinate positions of the feature points.
[0032] Optionally, the map matching system further comprises a correction unit connected to the stitching unit, and when there is a deviation between the angle of the vertical puzzle of the feature point position and the matching angle of the local high-precision map, the correction unit corrects the posture angle of the positioning group; and / or, when there is a deviation between the position of the vertical puzzle of the feature point position and the matching position of the local high-precision map, the correction unit corrects the posture position of the positioning group.
[0033] On the other hand, the present application also provides a device, specifically, the device includes: a memory, a processor, wherein a processing program is stored in the memory, and when the processing program is executed by the processor, the steps of the map matching method as described above are implemented.
[0034] On the other hand, the present application also provides a readable storage medium. Specifically, the readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the map matching method as described above are implemented.
[0035] As described above, the map matching method, system, device and readable storage medium of the present application can realize the verification and evaluation of electronic maps in a larger geographical range by using the visual perception data of historical driving images, so that map matching can adapt to different complex environments, enhance the robustness of the algorithm, improve the credibility of the detection results, and improve the accuracy of positioning and navigation. In the way of performing visual perception recognition first and then splicing feature points, the system workload and the required storage space are greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0037] Figure 1 This is a flow chart of a map matching method according to an embodiment of the present application.
[0038] Figure 2 This is a schematic diagram of vertically covering multiple frames of top-view conversion images in sequence according to an embodiment of the present application.
[0039] Figure 3 It is a schematic diagram of cutting and splicing multiple frames of top-view conversion images according to an embodiment of the present application.
[0040] Figure 4 A block diagram of a map matching system according to an embodiment of the present application.
[0041] The realization of the purpose, functional features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. The above-mentioned drawings have shown clear embodiments of this application, which will be described in more detail later. These drawings and textual descriptions are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0042] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0043] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.
[0044] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] First embodiment
[0046] In one aspect, the present application provides a map matching method. Figure 1 This is a flow chart of a map matching method according to an embodiment of the present application.
[0047] like Figure 1 As shown, in one embodiment, the map matching method includes:
[0048] S10: In response to acquiring a plurality of frames of images captured by the vehicle-mounted camera, visual perception processing is performed on the plurality of frames of images respectively to acquire a plurality of frames of feature point bitmaps.
[0049] In this embodiment, a vehicle-mounted camera is configured on the vehicle to obtain image information around the vehicle in real time. By performing visual perception processing on multiple frames of images taken by the vehicle-mounted camera at different times, the characteristic points of the road signs on the lane can be identified to obtain a multi-frame characteristic point map. Among them, the multiple frames of images represent a certain distance range that the vehicle has traveled.
[0050] Preferably, the vehicle-mounted camera is mounted in front of the vehicle to obtain image information within a range of at least 120° in front of the vehicle. The vehicle-mounted camera can be one camera or multiple cameras. At the same location, the wide-angle images captured by multiple cameras from multiple different angles and then seamlessly spliced horizontally can be regarded as one frame of the vehicle-mounted camera.
[0051] For visual perception of road images, we usually first collect samples of ground signs on the road, label them, and train them to obtain a visual perception model. Then, we input the road images taken by the on-board camera into the trained visual perception model to output the perception and recognition of various road sign feature points. Depending on the road signs, the visual perception model can output feature points, attributes, and location information of elements such as lane lines, arrows, sidewalks, stop lines, and text.
[0052] On public roads, the colors of road signs are mostly yellow or white, with occasional lane lines of other colors. In image recognition technology, based on the strong contrast of colors in different color spaces and channels, color thresholding and gradient thresholding can be used to obtain relatively accurate recognition results.
[0053] The feature point data obtained by visual perception can obtain the accurate position information and geometric structure of road signs with lower storage cost and less calculation content, which is beneficial to the subsequent bird's-eye view conversion and feature point data fitting.
[0054] S20: performing a top-down conversion on the feature point bitmaps of the multiple frames respectively to obtain corresponding top-down conversion images of the multiple frames.
[0055] Since there is an inclination angle between the camera and the ground, rather than being directly facing downward (orthographic projection), the road area directly perceived by the image of the on-board camera will form a trapezoidal point cloud.
[0056] From the perspective of autonomous driving, the relationship between objects and roads on the same plane as the vehicle is very important. Therefore, the data relationship at a vertical bird's-eye view is more conducive to map display and analysis. The bird's-eye view is also called a bird's-eye view. The advantage of creating a bird's-eye view is that the image proportions are consistent, the field of view is wide, and the contrast is clear.
[0057] In the top view conversion map, the trapezoidal point cloud map of the road area will become a rectangular point cloud map in the top view (bird's eye view), so the lane line width is basically the same, which can simplify the subsequent lane line calculation processing.
[0058] The step of performing top-down conversion on the feature point bitmaps of multiple frames in S20 may include:
[0059] The internal parameters, external parameters and distortion parameters of the vehicle-mounted camera are obtained; and the multi-frame feature point bitmaps are subjected to inverse perspective transformation according to the internal parameters, external parameters and distortion parameters of the vehicle-mounted camera.
[0060] As mentioned above, due to the inclination angle between the camera and the ground, the road image captured by the camera is not a direct vertical downward projection. To correct the original image captured by the camera into an orthographic projection, it is necessary to use an inverse perspective transformation to perform a top-down transformation to obtain a top-down view. The inverse perspective transformation can perform an inverse perspective transformation on the multi-frame feature point bitmap based on the inverse perspective transformation (IPM) algorithm according to the internal parameters, external parameters and distortion parameters of the vehicle-mounted camera.
[0061] In the inverse perspective transformation, each visually perceived road sign feature point is dedistorted according to the distortion parameters of the camera. The dedistorted feature points are then projected into the physical world based on the internal and external parameters of the camera. In addition, a reference coordinate system based on the road can be established to obtain the relative coordinates of the road sign feature points in the reference coordinate system. For a specific top-down transformation image, the position information of the camera and the vehicle is also included. Further, based on the relative coordinates of the road sign feature points, the coordinate position of the vehicle relative to the road sign feature points in the reference coordinate system can be calculated, and the relative position of the vehicle in the top-down transformation image when shooting can be determined.
[0062] In one embodiment, the internal parameter is selected from at least one of focal length and optical center.
[0063] Among them, focal length is a measure of the convergence or divergence of light in an optical system. It refers to the distance from the optical center of the lens to the focus of light when parallel light is incident, that is, the distance between the shooting focus and the center point of the camera's mirror. At the optical center of the camera, when light from any direction passes through this point, the propagation direction of the light remains unchanged. Therefore, the position of the center point of the optical axis in the original image can be used to obtain the spherical coordinates of each feature point with the optical center of the lens as the center of the sphere.
[0064] In another embodiment, the external parameter is selected from at least one of a pitch angle, a yaw angle, and a ground height.
[0065] Among them, the yaw angle and pitch angle can be used to describe the posture of the camera. Specifically, the pitch angle is the angle between the vector parallel to the axis of the camera body and pointing forward and the ground. The yaw angle is the angle between the projection of the camera body axis on the horizontal plane and the earth's axis. The ground height can be used to transform and locate the feature point when it is projected in the coordinate system. For example, the origin of the reference coordinate system can be established at the center of the rear axle of the vehicle, at a height of 0 from the ground.
[0066] By calibrating the camera parameters, it is possible to obtain actual data with a specific scale by measuring the feature points in the camera image.
[0067] S30: Taking the driving direction as the longitudinal direction, vertically stitching the multiple frames of overhead conversion images according to the coordinate positions of the feature points to generate a vertical mosaic of the feature points.
[0068] According to the position of the feature points in each frame of the top-view conversion image on the reference coordinate system of the physical world road surface, and the camera's posture data, multiple frames of top-view conversion images can be spliced together according to the relative positions of multiple road signs in the reference coordinate system. According to the historical time sequence of the shooting, the vehicle will continuously take multiple frames of photos when it passes a certain distance on the road. According to the direction of driving, the multiple frames of the top-view conversion images of the road are spliced longitudinally in sequence, so that the road visual perception information that is longer than that of a single frame of photos can be obtained. The horizontal splicing of images from multiple cameras at different angles can be done before or after the vertical splicing. Therefore, the vertical puzzle of the road feature points can be composed of the horizontal splicing of the vertical puzzles of the feature points of multiple cameras. Since the lateral offset information in the image is not removed, the vertical puzzle of the lane feature points after the vertical splicing still retains the lateral offset information of the actual curved lane.
[0069] The pose information of the on-board camera in each frame is different. The pose information of the camera can be obtained by integrating the information of sensors such as the global navigation satellite system, inertial measurement unit, and wheel speed meter. Among them, the pose information includes position and attitude. The position is the three-dimensional information of the on-board camera in space, and the attitude is the three-dimensional rotation angle information of the on-board camera. After obtaining the pose information of the camera, the corresponding feature points are copied to a specific position according to the coordinates in the reference coordinate system and spliced at a specific angle. The spliced feature point vertical puzzle includes the information of the historical travel road, which can perform visual perception and training on longer road images included in multiple frames of images at a larger physical scale.
[0070] In executing S30 , the step of longitudinally splicing the multiple frames of overhead conversion images according to the coordinate positions of the feature points may include: longitudinally overlaying the multiple frames of overhead conversion images in sequence according to the coordinate positions of the feature points.
[0071] The coordinate position of each feature point is fixed to a specific position in the road reference coordinate system. Therefore, when the feature points in any two frames of the top-view conversion map have the same coordinates, it means that the two frames of the top-view conversion map have overlapping parts. Therefore, by placing feature points with the same coordinates at the same position, multiple frames of the top-view conversion map can be superimposed in a partially overlapping manner to form a vertical puzzle of feature points.
[0072] See also Figure 2 , Figure 2 This is a schematic diagram of vertically covering multiple frames of top-view conversion images in sequence according to an embodiment of the present application.
[0073] like Figure 2As shown, in the previous frame, the top view transition Figure 2 (a) and the next frame top view conversion Figure 2 (b) contains feature points with the same coordinates, that is, there are repeated feature points. Therefore, the next frame is converted to the top view Figure 2 (b) has a top-down transition with the previous frame Figure 2 The feature points with the same coordinates in (a) are stacked together to obtain the vertical splicing of feature points. Figure 2 (c).
[0074] The step of longitudinally splicing the multiple frames of overhead conversion images according to the coordinate positions of the feature points in S30 may include: longitudinally splicing the multiple frames of overhead conversion images after cutting them according to the coordinate positions of the feature points.
[0075] The coordinate position of each feature point is fixed to a specific position in the reference coordinate system. Therefore, when the feature points in any two frames of the overhead conversion image have the same coordinates, it means that the two frames of the overhead conversion image have overlapping parts. Therefore, the image with the overlapping part of one of the overhead conversion images is cut, and then spliced at the cut position, so that the feature point vertical puzzle can be formed with less data, thereby saving system resources.
[0076] See also Figure 3 , Figure 3 It is a schematic diagram of cutting and splicing multiple frames of top-view conversion images according to an embodiment of the present application.
[0077] like Figure 3 As shown, the previous frame after the cut is viewed from above. Figure 3 (a) Neutralization and the next frame of the top-down transition Figure 3 In (b), there is no feature point with the same coordinates. Therefore, the previous frame is transformed from the top view to the Figure 3 (a) Transformation from the top view to the next frame Figure 3 (b) According to the position of the feature point coordinates in the reference coordinate axis, the vertical stitching of the feature points is obtained. Figure 3 (c).
[0078] After executing the step of generating a vertical mosaic of feature points in S30, the following steps may also be included:
[0079] In response to the longitudinal splicing, curve fitting is performed on the result of the longitudinal splicing to obtain a fitted feature point curve; and the feature point position longitudinal jigsaw puzzle is corrected according to the fitted feature point curve.
[0080] Curve fitting refers to selecting an appropriate curve type to fit the observed data and using the fitted curve equation to analyze the relationship between variables. During the image capture and subsequent visual perception process of the on-board camera, unstable image recognition frames may occur. For example, the coordinates of some feature points of road signs may shift, or even the wrong feature points may be recognized. The road signs perceived visually are represented by a point group composed of some discrete points. In order to determine which feature points are correct, curve fitting can be used to approximate or compare the functional relationship between the coordinates represented by the discrete feature point group on the road plane with a continuous curve to identify the coordinate position of the feature points of each road sign.
[0081] For example, in the curve fitting of lane feature points, after obtaining the candidate lane feature point group, a quadratic polynomial can be used to fit these pixels. First, determine the approximate positions of the left and right lane lines. Based on the correlation in the time domain and the continuity in space, one or more points that deviate from the lane fitting curve by more than the deviation threshold may be the deviation in image recognition. After effectively identifying the feature point recognition deviation, it can be processed by deletion or correction. For example, feature points that exceed the deviation threshold can be deleted directly. For blanks in continuous lane lines, they can be appropriately filled and corrected.
[0082] Optionally, the curve fitting method is selected from at least one of polynomial fitting and NURBS curve fitting.
[0083] For lane lines on straight roads, straight line fitting can be used. In actual roads, lane line markings and arrows may be curved. Polynomial fitting is more suitable for curved roads. NURBS curve fitting is smoother for fitting feature points on free-form surfaces.
[0084] S40: Map matching is performed on the currently located local high-precision map according to the vertical jigsaw puzzle of the feature points.
[0085] After obtaining the feature point vertical puzzle, combined with the camera and real-world scale parameters, the actual size of the road sign and the current distance and angle of the vehicle from the road sign can be calculated, so as to accurately determine the relative position of the vehicle in the reference coordinate system as the identification position on the feature point vertical puzzle. At the same time, the distance of the boundary that can be identified by the feature point vertical puzzle relative to the vehicle identification position can also determine the area range of the feature point vertical puzzle accordingly.
[0086] At the same time, the vehicle's positioning coordinates are calculated in real time based on traditional vehicle positioning groups such as satellite positioning equipment, wheel speed meter, inertial measurement unit, fiber optic gyroscope, on-board odometer and front wheel angle meter. The current positioning coordinates located by the positioning device in the world coordinate system can be calibrated in the global high-precision map, and further based on the area range of the feature point vertical puzzle, the local high-precision map corresponding to the surrounding area of the vehicle's positioning position can be intercepted.
[0087] The local high-precision map not only contains high-precision lane information, but also stores the attributes of road signs such as lane lines, arrows, speed bumps, sidewalks, stop lines, text, and the absolute coordinates of various road sign feature points in the world coordinate system. Under the same scale of the reference coordinate system and the world coordinate system, according to the absolute coordinates of each road sign feature point, and the relative relationship between the reference coordinates of each road sign and the reference coordinates of the vehicle, the absolute coordinates of the vehicle in the world coordinate system can be obtained based on the vertical puzzle of the feature points and the mutual matching of the road sign feature points in the local high-precision map. It can be understood that according to the distance between the vehicle and the road sign feature point and the absolute coordinates of the road sign feature point in the world coordinate system, the relative positioning result in the reference coordinate system is converted to the coordinate system, so as to calculate the absolute coordinates of the vehicle in the world coordinate system, and then the absolute coordinate position of the vehicle is marked in the world coordinate system of the local high-precision map, so as to achieve accurate positioning in the lane.
[0088] Therefore, the two positioning results are mutually verified and matched and fused in the same coordinate system. The matching fusion algorithm can be used to match and verify the lane line visual perception results with the local high-definition map under the same physical scale, so as to further ensure the accuracy of vehicle positioning under macro map positioning and micro visual perception. In practical applications, the matching fusion algorithm can use the ICP (Iterative Closest Point nearest neighbor iteration) algorithm. In the ICP algorithm, first, in the target point cloud and source point cloud with matching, according to the same physical scale and certain constraints, the nearest feature points are found, and then the optimal matching parameters and are calculated to minimize the error function. In other embodiments, the matching fusion algorithm can also use a three-dimensional to two-dimensional projection, and then match in two-dimensional space.
[0089] In addition, the reliability of the current local high-precision map can be judged based on the overall matching degree between the visually perceived road sign feature points and the road sign feature points in the local high-precision map. For example, if the overall matching degree is higher than 90%, it means that the current local high-precision map is credible. If the overall matching degree is lower than 30%, it means that the map is wrong and needs to be updated. When the overall matching degree is between 90% and 30%, it means that the map data may need further verification.
[0090] The step S40 may be followed by: correcting the posture angle of the positioning group when there is a deviation in the map matching angle; and / or correcting the posture position of the positioning group when there is a deviation in the map matching position.
[0091] Due to the instability and precision limitation of the positioning group, the credibility of micro-map positioning is lower than that of visual perception results. Therefore, the detection results of visual perception can be used to correct the positioning accuracy of the positioning group. For example, based on the overall match between the road sign feature points perceived by visual perception and the road sign feature points in the local high-precision map, the yaw angle of the current vehicle's positioning group is offset by 5 degrees clockwise to correct the posture angle, and the positioning reference position of the current vehicle's positioning group is shifted 1 meter to the east to correct the posture position.
[0092] By first performing visual perception recognition and then stitching feature points, the system workload and required storage space are greatly reduced. Since the visual perception data of historical driving images are used, the matching calculation of the road sign feature points perceived by the visual perception and the road sign feature points in the local high-precision map can achieve a wider range of matching fusion to determine the credibility of the local high-precision map, while improving the accuracy of positioning.
[0093] Second embodiment
[0094] On the other hand, the present application also provides a map matching system. Figure 4 A block diagram of a map matching system according to an embodiment of the present application.
[0095] like Figure 4 As shown, in one embodiment, the map matching system includes a visual perception unit 1, a reverse perspective unit 2, a stitching unit 3 and a map matching unit 4 which are connected in sequence.
[0096] A visual perception unit 1 is used to perform visual perception processing on multiple frames of images taken by the vehicle-mounted camera to obtain multiple frames of feature point bitmaps;
[0097] The reverse perspective unit 2 is used to perform a top-down conversion on the feature point bitmaps of multiple frames respectively to obtain corresponding top-down conversion images of multiple frames;
[0098] The splicing unit 3 is used to perform longitudinal splicing of the multiple frames of top-view conversion images according to the coordinate positions of the feature points, taking the driving direction as the longitudinal direction, to generate a longitudinal jigsaw puzzle of the feature points;
[0099] The map matching unit 4 is used to perform map matching on the currently located local high-precision map according to the vertical mosaic of feature points.
[0100] In this embodiment, a vehicle-mounted camera is configured on the vehicle to obtain image information around the vehicle in real time. By performing visual perception processing on multiple frames of images taken by the vehicle-mounted camera at different times, the characteristic points of the road signs on the lane can be identified to obtain a multi-frame characteristic point map. Among them, the multiple frames of images represent a certain distance range that the vehicle has traveled.
[0101] Preferably, the vehicle-mounted camera is mounted in front of the vehicle to obtain image information of at least 120° in front of the vehicle. The vehicle-mounted camera can be one camera or multiple cameras. At the same location, the wide-angle images captured by multiple cameras from multiple different angles and then seamlessly spliced horizontally can be regarded as one frame of the vehicle-mounted camera.
[0102] The visual perception unit 1 generally obtains a visual perception model by first collecting samples of ground signs on the road, labeling, and training. The road image captured by the vehicle-mounted camera is then input into the trained visual perception model to output recognition perception of various road sign feature points. Depending on the road signs, the visual perception unit 1 can output feature points, attributes, and location information including lane lines, arrows, sidewalks, stop lines, and text through the visual perception model.
[0103] On public roads, the colors of road signs are mostly yellow or white, with occasional lane lines of other colors. In image recognition technology, based on the strong contrast of colors in different color spaces and channels, color thresholding and gradient thresholding can be used to obtain relatively accurate recognition results.
[0104] The feature point data obtained by visual perception can obtain the accurate position information and geometric structure of road signs with lower storage cost and less calculation content, which is conducive to the subsequent bird's-eye view conversion and feature point data fitting.
[0105] Since there is an inclination angle between the camera and the ground, rather than being directly facing downward (orthographic projection), the road area directly perceived by the image of the on-board camera will form a trapezoidal point cloud.
[0106] From the perspective of autonomous driving, the relationship between objects and roads on the same plane as the vehicle is very important. Therefore, the data relationship at a vertical bird's-eye view is more conducive to map display and analysis. The bird's-eye view is also called a bird's-eye view. The advantage of creating a bird's-eye view is that the image proportions are consistent, the field of view is wide, and the contrast is clear.
[0107] In the top view conversion diagram of the reverse perspective unit 2, the trapezoidal point cloud diagram of the road area will become a rectangular point cloud diagram in the top view (bird's eye view). Since the lane line width is also basically the same, the subsequent lane line calculation processing can be simplified.
[0108] Optionally, the inverse perspective unit 2 is used to perform inverse perspective transformation on the multi-frame feature point bitmaps according to the internal parameters, external parameters and distortion parameters of the vehicle-mounted camera.
[0109] Due to the tilt angle between the camera and the ground, the road map image taken by the camera is not a direct vertical downward projection. The inverse perspective unit 2 corrects the original image taken by the camera into an orthographic projection, and it is necessary to use an inverse perspective transformation to perform a top-down transformation to obtain a top view. The inverse perspective transformation of the inverse perspective unit 2 can perform an inverse perspective transformation on the multi-frame feature point bitmap based on the internal parameters, external parameters and distortion parameters of the vehicle-mounted camera based on the inverse perspective transformation algorithm.
[0110] In the inverse perspective transformation of the inverse perspective unit 2, each visually perceived road sign feature point is dedistorted according to the distortion parameters of the camera. Then, according to the internal and external parameters of the camera, the dedistorted feature points are projected into the physical world. In addition, a reference coordinate system based on the road can be established to obtain the relative coordinates of the road sign feature points in the reference coordinate system. For a specific top-down conversion map, the position information of the camera and the vehicle is also included. Further, according to the relative coordinates of the road sign feature points, the coordinate position of the vehicle relative to the road sign feature points in the reference coordinate system can be calculated, and the relative position of the vehicle in the top-down conversion map when shooting can be determined.
[0111] In one embodiment, the internal parameter of the vehicle-mounted camera is selected from at least one of focal length and optical center.
[0112] Among them, focal length is a measure of the convergence or divergence of light in an optical system. It refers to the distance from the optical center of the lens to the focus of light when parallel light is incident, that is, the distance between the shooting focus and the center point of the camera's mirror. At the optical center of the camera, when light from any direction passes through this point, the propagation direction of the light remains unchanged. Therefore, the position of the center point of the optical axis in the original image can be used to obtain the spherical coordinates of each feature point with the optical center of the lens as the center of the sphere.
[0113] In another embodiment, the external parameter of the vehicle-mounted camera is selected from at least one of a pitch angle, a yaw angle, and a ground height.
[0114] Among them, the yaw angle and pitch angle can be used to describe the posture of the camera. Specifically, the pitch angle is the angle between the vector parallel to the axis of the camera body and pointing forward and the ground. The yaw angle is the angle between the projection of the camera body axis on the horizontal plane and the earth's axis. The ground height can be used to transform and locate the feature point when it is projected in the coordinate system. For example, the origin of the reference coordinate system can be established at the center of the rear axle of the vehicle, at a height of 0 from the ground.
[0115] By calibrating the camera parameters, it is possible to obtain actual data with a specific scale by measuring the feature points in the camera image.
[0116] According to the position of the feature point in each frame of the overhead conversion image on the reference coordinate system of the physical world road surface, and the camera's posture data, the stitching unit 3 can stitch together multiple frames of overhead conversion images according to the relative positions of multiple road signs in the reference coordinate system. According to the historical time sequence of the shooting, the vehicle will continuously take multiple frames of photos when it passes a certain distance on the road. According to the driving direction, the stitching unit 3 stitches the multiple frames of the overhead conversion images of the road in sequence longitudinally, so as to obtain longer road visual perception information than a single frame of photos. For the horizontal stitching of images from multiple cameras with different angles, it can be before the longitudinal stitching or after the longitudinal stitching. Therefore, the vertical puzzle of the road feature points can be composed of the horizontal stitching of the vertical puzzles of the feature points of multiple cameras. Since the lateral offset information in the image is not removed, the vertical puzzle of the lane feature points after the longitudinal stitching still retains the lateral offset information of the actual curved lane.
[0117] The pose information of the on-board camera in each frame of the image is different. The pose information of the camera can be obtained by integrating the information of sensors such as the global navigation satellite system, inertial measurement unit, and wheel speed meter. Among them, the pose information includes position and attitude. The position is the three-dimensional information of the on-board camera in space, and the attitude is the three-dimensional rotation angle information of the on-board camera. After obtaining the pose information of the camera, the splicing unit 3 copies the corresponding feature points to a specific position according to the coordinates in the reference coordinate system and splices them at a specific angle. The vertical puzzle of the spliced feature point map includes information about the historical travel route, and can perform visual perception and training on longer road images included in multiple frames of images within a larger physical scale.
[0118] After obtaining the feature point vertical puzzle, the map matching unit 4 can calculate the actual size of the road sign and the current distance and angle of the vehicle from the road sign by combining the camera and the real world scale parameters, thereby accurately determining the relative position of the vehicle in the reference coordinate system as the identification position on the feature point vertical puzzle. At the same time, the area range of the feature point vertical puzzle can also be determined accordingly based on the distance of the boundary that can be identified by the feature point vertical puzzle relative to the vehicle identification position.
[0119] At the same time, the map matching unit 4 calculates the vehicle's positioning coordinates in real time based on the traditional vehicle positioning group such as satellite positioning equipment, wheel speed meter, inertial measurement unit, fiber optic gyroscope, vehicle odometer and front wheel angle meter. Through the current positioning coordinates located by the positioning device in the world coordinate system, the map matching unit 4 can calibrate the vehicle's positioning position in the global high-precision map, and further intercept the local high-precision map corresponding to the surrounding area of the vehicle's positioning position based on the area range of the feature point vertical puzzle.
[0120] The local high-precision map not only contains high-precision lane information, but also stores the attributes of road signs such as lane lines, arrows, speed bumps, sidewalks, stop lines, text, and the absolute coordinates of various road sign feature points in the world coordinate system. Under the same scale of the reference coordinate system and the world coordinate system, according to the absolute coordinates of each road sign feature point, and the relative relationship between the reference coordinates of each road sign and the reference coordinates of the vehicle, according to the vertical puzzle of the feature points and the mutual matching of the road sign feature points in the local high-precision map, the map matching unit 4 can obtain the absolute coordinates of the vehicle in the world coordinate system. It can be understood that the map matching unit 4 can convert the relative positioning result in the reference coordinate system according to the distance between the vehicle and the road sign feature point and the absolute coordinates of the road sign feature point in the world coordinate system, so as to calculate the absolute coordinates of the vehicle in the world coordinate system, and then mark the absolute coordinate position of the vehicle in the world coordinate system of the local high-precision map, so as to achieve accurate positioning in the lane.
[0121] Therefore, the two positioning results are mutually verified and matched and fused in the same coordinate system, and the matching and fusion algorithm can be used to match and verify the lane line visual perception results with the local high-definition map under the same physical scale, so as to further ensure the accuracy of vehicle positioning under macro map positioning and micro visual perception. In practical applications, the matching and fusion algorithm of the map matching unit 4 can use the ICP (Iterative Closest Point) algorithm. In the ICP algorithm, first, in the target point cloud and the source point cloud with matching, according to the same physical scale and certain constraints, the nearest feature point is found, and then the optimal matching parameters and are calculated to minimize the error function. In other embodiments, the matching and fusion algorithm of the map matching unit 4 can also use a three-dimensional to two-dimensional projection, and then match in two-dimensional space.
[0122] In addition, the map matching unit 4 can judge the reliability of the current local high-precision map based on the overall matching degree between the visually perceived road sign feature points and the road sign feature points in the local high-precision map. For example, if the overall matching degree is higher than 90%, it means that the current local high-precision map is credible. If the overall matching degree is lower than 30%, it means that the map is wrong and needs to be updated. When the overall matching degree is between 90% and 30%, it means that the map data may need further verification.
[0123] By first performing visual perception recognition and then stitching feature points, the system workload and required storage space are greatly reduced. Since the visual perception data of historical driving images is used, a wider range of matching fusion can be achieved based on the real-time matching of the lane line model and the local map model to determine the credibility of the lane line detection results.
[0124] Optionally, the stitching unit 3 is further used to perform curve fitting on the result of the longitudinal stitching to obtain a fitted feature point curve; and to correct the longitudinal jigsaw puzzle of the feature point positions according to the fitted feature point curve.
[0125] Curve fitting refers to selecting an appropriate curve type to fit the observed data and using the fitted curve equation to analyze the relationship between variables. During the image capture and subsequent visual perception process of the on-board camera, unstable image recognition frames may occur. For example, the coordinates of some feature points of road signs may shift, or even the wrong feature points may be recognized. The road signs perceived visually are represented by a point group composed of some discrete points. In order to determine which feature points are correct, the splicing unit 3 can use curve fitting to approximate or compare the functional relationship between the coordinates represented by the discrete feature point group on the road plane with a continuous curve to identify the coordinate position of the feature points of each road sign.
[0126] For example, in the curve fitting of the lane line feature points, after obtaining the candidate lane line feature point group, the stitching unit 3 can use a quadratic polynomial to fit these pixels. First, determine the approximate positions of the left and right lane lines. Based on the correlation in the time domain and the continuity in space, one or more points that deviate from the lane line fitting curve by more than the deviation threshold may be the deviation in image recognition. After effectively identifying the feature point recognition deviation, the stitching unit 3 can then process it by deletion or correction. For example, feature points that exceed the deviation threshold can be deleted directly. For the blanks in the continuous lane lines, the stitching unit 3 will fill and correct them appropriately.
[0127] Optionally, the curve fitting method is selected from at least one of polynomial fitting and NURBS curve fitting.
[0128] For lane lines on straight roads, a straight line fitting method can be used. In actual roads, whether it is a lane line mark or an arrow mark, it may be curved. The splicing unit 3 is more suitable for curved roads through polynomial fitting. NURBS curve fitting is smoother for fitting feature points on free-form surfaces.
[0129] Optionally, the splicing unit 3 vertically overlays multiple frames of top-view conversion images in sequence according to the posture information.
[0130] The coordinate position of each feature point is fixed to a specific position in the road reference coordinate system. Therefore, when the feature points in any two frames of the top-view conversion image have the same coordinates, it means that the two frames of the top-view conversion image have overlapping parts. Therefore, the splicing unit 3 places the feature points with the same coordinates at the same position, and can overlap multiple frames of the top-view conversion image in a partially overlapping manner, thereby forming a vertical jigsaw puzzle of the feature points.
[0131] See also Figure 2 , looking down transition in the previous frame Figure 2 (a) and the next frame top view conversion Figure 2 (b) contains feature points with the same coordinates, that is, there are repeated feature points. Therefore, the splicing unit 3 converts the next frame into a top-down view. Figure 2 (b) has a top-down transition with the previous frame Figure 2 The feature points with the same coordinates in (a) are stacked together to obtain the vertical splicing of feature points. Figure 2 (c).
[0132] Optionally, the stitching unit 3 cuts the multiple frames of top-view conversion images according to the posture information and then performs longitudinal stitching.
[0133] The coordinate position of each feature point is fixed to a specific position in the reference coordinate system. Therefore, when the feature points in any two frames of the overhead conversion image have the same coordinates, it means that the two frames of the overhead conversion image have overlapping parts. Therefore, the splicing unit 3 cuts the image with the overlapping part in one of the frames of the overhead conversion image, and then splices it at the cut position, so that less data can be used to form a vertical puzzle of the feature points, thereby saving system resources.
[0134] See also Figure 3 , the top-down transition in the previous frame after the cut Figure 3 (a) Neutralization and the next frame of the top-down transition Figure 3 In (b), there is no feature point with the same coordinates. Therefore, the previous frame is transformed from the top view to the Figure 3 (a) Transformation from the top view to the next frame Figure 3(b) According to the position of the feature point coordinates in the reference coordinate axis, the vertical stitching of the feature points is obtained. Figure 3 (c).
[0135] Optionally, the map matching system further comprises a correction unit connected to the stitching unit, and when there is a deviation in the map matching angle, the correction unit corrects the posture angle of the positioning group; and / or when there is a deviation in the map matching position, the correction unit corrects the posture position of the positioning group.
[0136] Due to the instability and accuracy limitations of the positioning group, the credibility of micro-map positioning is lower than the results of visual perception. Therefore, the detection results of the correction unit through visual perception can be used to correct the positioning accuracy of the positioning group. For example, based on the overall match between the road sign feature points perceived by visual perception and the road sign feature points in the local high-precision map, the correction unit offsets the yaw angle of the current vehicle positioning group by 5 degrees clockwise to correct the posture angle, and shifts the positioning reference position of the current vehicle positioning group 1 meter to the east to correct the posture position.
[0137] By first performing visual perception recognition and then stitching feature points, the system workload and required storage space are greatly reduced. Since the visual perception data of historical driving images are used, a wider range of matching and fusion can be achieved based on the matching calculation of visually perceived road sign feature points and road sign feature points in local high-precision maps to determine the credibility of lane line detection results.
[0138] Third embodiment
[0139] On the other hand, the present application also provides a readable storage medium. Specifically, the readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above map matching method are implemented.
[0140] Fourth embodiment
[0141] On the other hand, the present application also provides a device. Specifically, the device includes: a memory and a processor, wherein a processing program is stored in the memory, and when the processing program is executed by the processor, the steps of the map matching method as described above are implemented.
[0142] In the embodiments of the device and readable storage medium provided in the present application, all technical features of the above-mentioned map matching method embodiments are included, and the expanded and explained contents of the specification are basically the same as those of the above-mentioned method embodiments, and will not be repeated here.
[0143] As described above, the map matching method, system, device and readable storage medium of the present application can realize the verification and evaluation of local high-precision maps in a larger geographical range by using the visual perception data of historical driving images, so that map matching can adapt to different complex environments, enhance the robustness of the algorithm, improve the credibility of the detection results, and improve the accuracy of positioning and navigation. At the same time, by first performing visual perception recognition and then performing feature point splicing, the system workload and the required storage space are greatly reduced.
[0144] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A map matching method, characterized in that: include: In response to acquiring multiple frames of images captured by the vehicle-mounted camera, visual perception processing is performed on the multiple frames of images to obtain multiple frames of feature point bitmaps, wherein the multiple frames of images represent a certain distance range traveled by the vehicle; Performing top-down conversion on the multiple frames of feature point bitmaps respectively to obtain corresponding multiple frames of top-down conversion images; Taking the driving direction as the longitudinal direction, the multiple frames of the overhead conversion images are longitudinally spliced according to the coordinate positions of the feature points to generate a longitudinal jigsaw puzzle of the feature points; According to the vertical jigsaw puzzle of the feature points, map matching is performed on the local high-precision map of the current location; Wherein, the step of generating a vertical jigsaw puzzle of feature points includes: In response to the longitudinal splicing, curve fitting is performed on the result of the longitudinal splicing to obtain a fitting feature point curve; According to the fitted feature point curve, the vertical jigsaw puzzle of the feature points is corrected.
2. The method according to claim 1, characterized in that The step of vertically splicing the multiple frames of top-view conversion images according to the coordinate positions of the feature points to generate the vertical jigsaw puzzle of the feature points includes: The multiple frames of overhead conversion images are vertically overlaid in sequence according to the coordinate positions of the feature points to generate a vertical puzzle of the feature points; and / or, the multiple frames of overhead conversion images are cut according to the coordinate positions of the feature points and then vertically spliced to generate a vertical puzzle of the feature points.
3. The method according to claim 1, characterized in that After the step of performing map matching on the currently located local high-precision map according to the vertical jigsaw puzzle of the feature points, the following steps are included: When there is a deviation between the matching angle of the vertical puzzle of the feature points and the local high-precision map, the posture angle of the positioning group is corrected; and / or when there is a deviation between the matching position of the vertical puzzle of the feature points and the local high-precision map, the posture position of the positioning group is corrected.
4. A map matching system, characterized in that: include: A visual perception unit, used to perform visual perception processing on multiple frames of images taken by the vehicle-mounted camera to obtain multiple frames of feature point bitmaps; An inverse perspective unit, used to perform a top-down conversion on the multiple frames of feature point bitmaps respectively, so as to obtain corresponding multiple frames of top-down conversion images; A splicing unit is used to perform longitudinal splicing of the multiple frames of top-view conversion images according to the coordinate positions of the feature points, with the driving direction as the longitudinal direction, to generate a longitudinal jigsaw puzzle of the feature points; A map matching unit, used for performing map matching on the currently located local high-precision map according to the vertical jigsaw puzzle of the feature points; The stitching unit is further used to perform curve fitting on the result of the longitudinal stitching to obtain a fitted feature point curve; and to correct the longitudinal jigsaw puzzle of the feature points according to the fitted feature point curve.
5. The map matching system according to claim 4, characterized in that: The splicing unit vertically overlays the multiple frames of overhead conversion images in sequence according to the coordinate positions of the feature points to generate a vertical puzzle of the feature points; and / or vertically splices the multiple frames of overhead conversion images after cutting them according to the coordinate positions of the feature points to generate a vertical puzzle of the feature points.
6. The map matching system according to claim 4, characterized in that: The map matching system also includes a correction unit connected to the stitching unit, which corrects the posture angle of the positioning group when there is a deviation between the matching angle of the vertical puzzle of the feature point position and the local high-precision map; and / or, when there is a deviation between the matching position of the vertical puzzle of the feature point position and the local high-precision map, the correction unit corrects the posture position of the positioning group.
7. A device, characterized in that: The device comprises: a memory and a processor, wherein a processing program is stored in the memory, and when the processing program is executed by the processor, the steps of the map matching method according to any one of claims 1 to 3 are implemented.
8. A readable storage medium, characterized in that: The readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the map matching method according to any one of claims 1 to 3.
Citation Information
Cited By
Map generation method and equipment
CN122017874A
