A method and device for constructing a map for memorizing parking scenes
Through semantic segmentation detection and feature point mapping, a map is constructed to remember the parking scene, which solves the problems of high cost and limitations of basement map construction in the existing technology, realizes the safety and universality of automatic parking, and reduces the memory cost. Cost of parking scenarios.
Patent Information
- Application Number
- CN202110216105.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-26
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-02-26
AI Technical Summary
In the existing memory parking technology, the construction of the basement map requires additional QR code markings, lidar equipment and wireless identification equipment, which is costly and has great limitations, affecting the safety and universality of automatic parking.
Through semantic segmentation detection and feature point mapping, the image collection data of the vehicle in the target scene is used to construct feature point maps and semantic maps to achieve automatic parking positioning without the need for additional auxiliary equipment.
It reduces the cost of memorizing parking scenarios, improves the universality and replicability of the algorithm, and ensures the safety and accuracy of automatic parking.
Smart Images

Figure CN114972494B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a method and device for constructing a map for memorizing parking scenarios. Background Art
[0002] Memory parking is an autonomous driving parking scenario with a degree of automation between Automatic Parking Assistant (APA) and fully autonomous valet parking (AVP). The memory parking application process is divided into two stages: learning and cruising. In the learning stage, the human driver drives the vehicle, and after turning on the learning function in the basement, normal driving, parking space selection and driving out of the basement begin. The memory parking algorithm will calculate and record the vehicle's driving trajectory in the above process, and build a basement map based on the data collected by the vehicle's sensors in the above process. In the cruising stage, the vehicle with the memory parking algorithm does not require human intervention after turning on the cruise function. During the driving process in the basement, the vehicle will perform autonomous positioning based on the constructed map corresponding to the basement, thereby realizing functions such as automatic parking in the parking space or parking out to the pick-up point. Accordingly, the accuracy of the vehicle's autonomous positioning results in the cruising stage is crucial to the safety of the parking process.
[0003] In order to ensure the safety of subsequent vehicle parking, relevant technologies need to transform the basement before constructing the basement map, and add QR code signs, lidar equipment, and wireless identification equipment in the basement. In the process of constructing the basement map, the vehicle collects images of the QR code signs and constructs a basement map containing the QR code signs. The QR code signs, lidar equipment, and wireless identification equipment are used to assist the vehicle in obtaining accurate external environment information and the vehicle's location information, and then construct a corresponding accurate basement map to ensure automatic parking of subsequent vehicles in the basement.
[0004] In the above process, it is necessary to set up additional equipment such as QR code markers, lidar equipment, and wireless identification equipment in the basement to construct a map containing the QR code markers, which is costly and has great limitations. Summary of the invention
[0005] The present invention provides a method and device for building a map of memorized parking scenes, so as to reduce the cost of memorizing parking scenes and improve the universality of the algorithm. The specific technical solution is as follows:
[0006] In a first aspect, an embodiment of the present invention provides a method for constructing a map for memorizing parking scenarios, the method comprising:
[0007] The image captured by the auxiliary vehicle at the current moment for the target scene is obtained as the current auxiliary image; semantic segmentation detection is performed on the spliced current auxiliary image to obtain the current segmented image; based on the current auxiliary image, the current cylindrical image is determined; the current posture information of the auxiliary vehicle at the current moment is determined using the current cylindrical image and the wheel speed information corresponding to the current auxiliary image; if the current cylindrical image meets the first key frame condition, the feature point map corresponding to the target scene is constructed using the current posture information, the current cylindrical image and the first multiple groups of the current cylindrical image as the image position information of the first feature point in the cylindrical image of the feature key image and the three-dimensional position information of the map point corresponding to the second feature point, wherein the first feature point is a feature point that does not currently correspond to a map point; if the current segmented image meets the second key frame condition, the semantic map corresponding to the target scene is constructed based on the current segmented image, the current posture information, the previous and next V frames of the current segmented image as the segmented image of the semantic key image and the corresponding body posture information of the auxiliary vehicle, so as to support the automatic parking of the target scene vehicle through the feature point map and the semantic map corresponding to the target scene.
[0008] In a second aspect, an embodiment of the present invention provides a map construction device for memorizing parking scenes, the device comprising:
[0009] The first acquisition module is configured to obtain an image captured by the auxiliary vehicle at the current moment for the target scene as the current auxiliary image; the first segmentation module is configured to perform semantic segmentation detection on the spliced current auxiliary image to obtain the current segmented image; the first determination module is configured to determine the current cylindrical image based on the current auxiliary image; the first posture determination module is configured to determine the current posture information of the auxiliary vehicle at the current moment using the current cylindrical image and the wheel speed information corresponding to the current auxiliary image; the feature point mapping module is configured to determine the current posture information of the auxiliary vehicle at the current moment using the current cylindrical image and the wheel speed information corresponding to the current auxiliary image if the current cylindrical image meets the first key frame condition; The image position information of the first feature point in the cylindrical image of the first multiple groups as the feature key image and the three-dimensional position information of the map point corresponding to the second feature point are used to construct a feature point map corresponding to the target scene, wherein the first feature point is a feature point that does not currently correspond to a map point; the semantic mapping module is configured to construct a semantic map corresponding to the target scene based on the current segmented image, the current posture information, the front and rear V frames of the current segmented image as segmented images of the semantic key image and the corresponding body posture information of the auxiliary vehicle if the current segmented image meets the second key frame condition, so as to support automatic parking of the target scene vehicle through the feature point map and the semantic map corresponding to the target scene.
[0010] As can be seen from the above content, an embodiment of the present invention provides a method and device for constructing a map of a memory parking scene, which obtains an image collected by an auxiliary vehicle at the current moment for the target scene as the current auxiliary image; performs semantic segmentation detection on the spliced current auxiliary image to obtain the current segmented image; determines the current cylindrical image based on the current auxiliary image; determines the current posture information of the auxiliary vehicle at the current moment using the current cylindrical image and the wheel speed information corresponding to the current auxiliary image; if the current cylindrical image meets the first key frame condition, uses the current posture information, the current cylindrical image, and the first multiple groups of the current cylindrical image as the image position information of the first feature point in the cylindrical image of the feature key image and the three-dimensional position information of the map point corresponding to the second feature point to construct a feature point map corresponding to the target scene, wherein the first feature point is a feature point that does not currently correspond to a map point; if the current segmented image meets the second key frame condition, constructs a semantic map corresponding to the target scene based on the current segmented image, the current posture information, the previous and next V frames of the current segmented image as the segmented image of the semantic key image and the corresponding body posture information of the auxiliary vehicle, so as to support automatic parking of the target scene vehicle through the feature point map and the semantic map corresponding to the target scene.
[0011] By applying the embodiments of the present invention, a feature point map corresponding to the target scene can be constructed based on the current cylindrical image corresponding to the current auxiliary image to obtain a feature point map with higher accuracy. At the same time, a semantic map corresponding to the target scene can be constructed based on the current segmented image corresponding to the current auxiliary image. The feature point map and the semantic map are subsequently used together as the parking location of the vehicle in the target scene, without the need to add other auxiliary equipment to assist in vehicle positioning, so as to reduce the cost of memorizing parking scenes and improve the universality of the algorithm, with good replicability and scalability. Of course, any product or method implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time.
[0012] The innovative features of the embodiments of the present invention include:
[0013] 1. A feature point map corresponding to the target scene can be constructed based on the current cylindrical image corresponding to the current auxiliary image to obtain a feature point map with higher accuracy. At the same time, a semantic map corresponding to the target scene can be constructed based on the current segmented image corresponding to the current auxiliary image. The feature point map and the semantic map can be used together as the parking location of the vehicle in the target scene. There is no need to add other auxiliary equipment to assist in vehicle positioning, so as to reduce the cost of memorizing parking scenes and improve the universality of the algorithm, with good replicability and scalability.
[0014] 2. The current posture information is determined based on the cylindrical image and wheel speed information to determine more accurate current posture information to ensure accurate establishment of subsequent maps.
[0015] 3. The feature point map is constructed based on the cylindrical image as the feature key frame. Subsequently, in order to ensure the accuracy of the established feature point map and thus the accuracy of the subsequent actual positioning of the vehicle, after the feature point map is constructed, the cylindrical image as the non-feature key image is used to verify the feature point map to determine the verification result corresponding to the feature point map and to quantitatively evaluate the usability of the feature point map.
[0016] 4. When the difference between the posture information of the auxiliary vehicle corresponding to the cylindrical image and the posture information of the auxiliary vehicle corresponding to the latest cylindrical image as the feature key image meets the preset difference condition, it is determined as a new feature key image and the map is constructed. Based on the posture information of the auxiliary vehicle corresponding to the current segmented image and the posture information of the auxiliary vehicle corresponding to the latest segmented image as the semantic key image, the posture increment of the auxiliary vehicle determined satisfies the plane assumption condition, that is, it represents that the auxiliary vehicle is in the plane, and the position change and heading angle change are large; or it represents that the auxiliary vehicle is not in the plane, but the position change and heading angle change are large, then the current segmented image is determined as a new semantic key image, and the map is constructed to reduce the computing burden of the device to a certain extent.
[0017] 5. Provide a method for constructing a feature point map corresponding to a specific target scene to obtain a feature point map with high accuracy.
[0018] 6. Use the constructed map points to project the feature points in the current cylindrical image, and use different extraction thresholds to extract feature points in the local area where the feature points are not projected to ensure the number of feature points used to construct the feature point map, so as to obtain a feature point map with high accuracy.
[0019] 7. Provide a specific method for constructing a semantic map corresponding to the target scenario to obtain a semantic map with high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative work.
[0021] Figure 1 A schematic diagram of a flow chart of a method for constructing a map of a memorized parking scene provided by an embodiment of the present invention;
[0022] Figure 2 A schematic diagram of a verification process for a feature point map provided by an embodiment of the present invention;
[0023] Figure 3 The embodiment of the present invention provides Figure 2 A schematic diagram of a specific implementation method of S203;
[0024] Figure 4A A schematic diagram of a feature point map construction process provided by an embodiment of the present invention;
[0025] Figure 4B A schematic diagram of a semantic map construction process provided by an embodiment of the present invention;
[0026] Figure 5 A schematic diagram of the structure of a map building device for memorizing parking scenes provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present invention and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0029] The present invention provides a method and device for constructing a map of a memorized parking scene, so as to reduce the cost of memorizing the parking scene and improve the universality of the algorithm. The embodiments of the present invention are described in detail below. Figure 1 A flowchart of a method for building a map of a memory parking scene provided by an embodiment of the present invention. The method may include the following steps:
[0030] S101: Obtain an image captured by the auxiliary vehicle at the current moment for the target scene in which the auxiliary vehicle is located, as the current auxiliary image.
[0031] The method provided in the embodiment of the present invention can be applied to any electronic device with computing capability, which can be a terminal or a server. In one implementation, the functional software implementing the method can exist in the form of a separate client software or in the form of a plug-in of currently related client software, which is possible.
[0032] In one case, the electronic device may be a vehicle-mounted device or a non-vehicle-mounted device.
[0033] In the memory parking scenario, it is necessary to ensure the accuracy of the positioning results of the vehicle's subsequent cruising phase. First, a map can be constructed for the target scene that the vehicle needs to cruise. Subsequently, the vehicle can achieve accurate positioning based on the map constructed for the target scene. Accordingly, when it is necessary to construct a map for the target scene, an image acquisition device set by a vehicle traveling in the target scene can be used to capture images of the target scene, wherein a vehicle that assists in collecting images to construct a map in the target scene is called an auxiliary vehicle. The target scene can be any scene that can be used for vehicle parking and requires map construction, such as a basement.
[0034] When the auxiliary vehicle is traveling in the target scene, it can use the image acquisition device set therein to collect images of the target scene in real time or periodically and send them to the electronic device. The electronic device obtains the image collected by the auxiliary vehicle for the target scene at the current moment as the current auxiliary image. In one case, the current moment may refer to the moment of the latest image collected by the auxiliary vehicle.
[0035] In order to ensure the accuracy of the map constructed for the target scene, the auxiliary vehicle can be equipped with an image acquisition device for acquiring images of the road surface in front of the vehicle, an image acquisition device for acquiring images of the road surface behind the vehicle, an image acquisition device for acquiring images of the road surface on the left side of the vehicle, and an image acquisition device for acquiring images of the road surface on the right side of the vehicle, so as to realize image acquisition of the surrounding environment of the auxiliary vehicle. In one case, the image acquisition device is a fisheye image.
[0036] The auxiliary vehicle may also be provided with other sensor devices, such as a wheel speed sensor, which may collect wheel speed information of the auxiliary vehicle in real time or periodically to assist in the positioning of the auxiliary vehicle.
[0037] S102: Perform semantic segmentation detection on the spliced current auxiliary image to obtain a current segmented image.
[0038] After obtaining the current auxiliary image, the electronic device can use the posture relationship between the image acquisition devices to splice the current auxiliary images to obtain the spliced current auxiliary image; and use the preset semantic segmentation model to perform semantic segmentation detection on the spliced current auxiliary image to obtain the current segmented image. The semantic segmentation model can be a model trained based on a deep learning algorithm using images containing road sign targets and their corresponding calibration information. The road sign targets include but are not limited to: lane lines, parking spaces, traffic arrows and other traffic sign targets.
[0039] Among them, the process of splicing the current auxiliary image is: splicing the current auxiliary image at an angle overlooking the ground to obtain the spliced current auxiliary image. The plane where the spliced current auxiliary image is located coincides with the plane where the horizontal and vertical coordinate axes of the body coordinate system of the auxiliary vehicle are located. Correspondingly, the conversion relationship between the pixel points in the spliced current auxiliary image and the points in the body coordinate system of the auxiliary vehicle is recorded, that is, the conversion relationship between the pixel points in the current segmented image and the points in the body coordinate system of the auxiliary vehicle. Among them, the image center point corresponding to the current auxiliary image coincides with the origin of the body coordinate system of the auxiliary vehicle. Specifically, it can be that the pixel point (u, v) in the current auxiliary image corresponds to the point A*(uW / 2, vH / 2, 0) in the body coordinate system of the auxiliary vehicle, where A is the scaling factor between one coordinate unit of the body coordinate system of the auxiliary vehicle and one pixel unit of the current auxiliary image, W represents the width of the current auxiliary image, and H represents the height of the current auxiliary image. Correspondingly,
[0040] In one case, the current segmented image is an image of the same size as the current auxiliary image after stitching, wherein the pixel values of the segmented pixel points representing the road sign target are first pixel values, such as 1, and the pixel values of the pixel points at the remaining positions are second pixel values, such as 0, and the first pixel value is not equal to the second pixel value.
[0041] S103: Determine a current cylindrical image based on the current auxiliary image.
[0042] In order to improve the accuracy of the subsequently constructed map, the electronic device may first convert each current auxiliary image into a current cylindrical image, and then construct the map based on the current cylindrical image.
[0043] In one implementation of the present invention, the current auxiliary image is an image captured by an image capture device provided in the auxiliary vehicle; S103 may include the following steps:
[0044] 011: For each current auxiliary image, each cylindrical pixel point in the preset cylindrical image corresponding to the current auxiliary image is back-projected from the cylindrical image coordinate system to the device coordinate system of the image acquisition device corresponding to the current auxiliary image to determine the spatial position information of each cylindrical pixel point.
[0045] 012: For each current auxiliary image, based on the spatial position information of each cylindrical pixel point in the preset cylindrical image corresponding to the current auxiliary image, determine the projection position information of each cylindrical pixel point in the image coordinate system where the current auxiliary image is located.
[0046] 013: For each current auxiliary image, the pixel value corresponding to the projection position information of each cylindrical pixel point in the current auxiliary image is determined by using the pixel value of the pixel point within the preset range of the projection position information of each cylindrical pixel point in the current auxiliary image to determine the current cylindrical image corresponding to the current auxiliary image.
[0047] In this implementation, a virtual cylindrical camera with a cylindrical imaging surface can be defined in advance for each image acquisition device set up by the auxiliary vehicle, with a horizontal field of view of 180 degrees, and the length, width and radius of the corresponding acquired image are preset fixed values. The origin of the camera coordinate system of the virtual cylindrical camera coincides with the origin of the device coordinate system of the corresponding image acquisition device, and the vertical axis of the camera coordinate system of the virtual cylindrical camera is parallel to the ground. Accordingly, the posture conversion relationship between the image acquisition device and its corresponding virtual cylindrical camera is recorded.
[0048] For each virtual cylindrical camera, its normalized imaging plane is defined as a plane whose vertical axis coordinate value on the camera coordinate system of the virtual cylindrical camera is a preset coordinate value and is parallel to the plane where the horizontal axis and the vertical axis of the camera coordinate system of the virtual cylindrical camera are located. Accordingly, the conversion relationship between each point on the imaging surface of the virtual cylindrical camera and the point on the normalized imaging plane corresponding to it is recorded as the first conversion relationship, and the conversion relationship between each point on the auxiliary image and the point on the normalized imaging plane corresponding to it is recorded as the second conversion relationship. Among them, there is a corresponding relationship between the auxiliary image and the image acquisition device of the auxiliary vehicle, there is a corresponding relationship between the image acquisition device of the auxiliary vehicle and the virtual cylindrical camera, there is a corresponding relationship between the virtual cylindrical camera and the normalized imaging plane, and there is a corresponding relationship between the corresponding auxiliary image and the normalized imaging plane. In one case, the above preset coordinate value can be 1.
[0049] After the electronic device obtains the current auxiliary image, for each current auxiliary image, the preset cylindrical image corresponding to the virtual cylindrical camera corresponding to the image acquisition device corresponding to the current auxiliary image, that is, each cylindrical pixel point P in the preset cylindrical image corresponding to the current auxiliary image, is back-projected from the cylindrical image coordinate system where it is located to the normalized imaging plane of the corresponding virtual cylindrical camera using the corresponding first conversion relationship to obtain the first back-projection position information corresponding to each cylindrical pixel point P. The spatial position information of each cylindrical pixel point P in the device coordinate system of the image acquisition device corresponding to it and the spatial position information of each cylindrical pixel point P in the preset cylindrical image corresponding to the current auxiliary image are determined using the first back-projection position information corresponding to each cylindrical pixel point P and the corresponding second conversion relationship.
[0050] Furthermore, for each current auxiliary image, based on the spatial position information of each cylindrical pixel point P in the preset cylindrical image corresponding to the current auxiliary image, and the intrinsic parameter matrix of the image acquisition device corresponding to the current auxiliary image, the projection position information of each cylindrical pixel point P in the image coordinate system where the current auxiliary image is located is determined.
[0051] For each current auxiliary image, the pixel values of the pixels within the preset range of the projection position information of each cylindrical pixel point P in the current auxiliary image are used to obtain the pixel value corresponding to the projection position information of the cylindrical pixel point P by adopting a bilinear difference method, and the pixel value corresponding to the projection position information of the cylindrical pixel point P is determined as the pixel value of the cylindrical pixel point P in the cylindrical image corresponding to the current auxiliary image, thereby obtaining the current cylindrical image corresponding to the current auxiliary image. The number of images of the current cylindrical image is the same as the number of images of the current auxiliary image.
[0052] S104: Determine the current position information of the auxiliary vehicle at the current moment by using the current cylindrical image and the wheel speed information corresponding to the current auxiliary image.
[0053] The wheel speed information corresponding to the current auxiliary image includes: information collected by the wheel speed sensor of the auxiliary vehicle between the current moment and the collection moment corresponding to the previous image of the current auxiliary image, that is, the previous moment.
[0054] In this step, after the electronic device obtains the current cylindrical image, it extracts feature points from each current cylindrical image to obtain image feature points in each current cylindrical image, and determines the feature point tracking result based on the position information of the image feature points in each current cylindrical image and the position information of the image feature points in the previous cylindrical image of each current cylindrical image; and according to the feature point tracking result, it is determined whether to re-acquire the initial value of the posture of the auxiliary vehicle at the current moment or to continue to track the posture of the auxiliary vehicle. Wherein, when it is determined that the corresponding motion distance is greater than the preset motion threshold based on the image feature points in each current cylindrical image and any pair of matching feature points in the image feature points in the previous cylindrical image of each current cylindrical image, it indicates that the auxiliary vehicle is moving at a faster speed. Accordingly, in order to ensure the positioning accuracy of the auxiliary vehicle, it is determined to re-acquire the initial value of the posture of the auxiliary vehicle at the current moment, otherwise the posture of the auxiliary vehicle is continued to be tracked.
[0055] Among them, the image feature points in the above-mentioned current cylindrical images and any pair of matching feature points in the image feature points in the previous cylindrical image of each current cylindrical image are: feature points corresponding to the same actual physical space point.
[0056] For each current cylindrical image, image feature points can be selected. For example, the image feature points in the current cylindrical image can be selected by uniformly selecting feature points. Afterwards, each image feature point can be triangulated using the selected image feature points and the image feature points matched by the selected image feature points in the previous cylindrical image to obtain the estimated value of the vehicle posture corresponding to the current cylindrical image, that is, the estimated value of the vehicle posture corresponding to each image acquisition device; and the estimated value of the vehicle posture corresponding to each current cylindrical image is averaged to obtain the initial value of the vehicle posture. In addition, the cameras can be jointly optimized by minimizing the reprojection error to obtain the optimized three-dimensional point coordinates and vehicle posture information, that is, the current posture information of the auxiliary vehicle at the current moment. Among them, the coordinates of the three-dimensional point refer to: the coordinates of the actual physical space points corresponding to each matching image feature point in each current cylindrical image and its previous cylindrical image.
[0057] Among them, the above reprojection error is:
[0058]
[0059] in, is the coordinate information of the i-th three-dimensional point observed by the c-th image acquisition device, is the coordinate information of the corresponding feature point on the image, is the external parameter of the image acquisition device, is the vehicle body posture information of the auxiliary vehicle at the jth moment.
[0060] Among them, the external parameters of the image acquisition device, that is, the parameters of the image acquisition device relative to the body coordinate system of the auxiliary vehicle, can be calibrated in advance. During the driving of the auxiliary vehicle, the relative position relationship between the image acquisition device and the auxiliary vehicle remains unchanged.
[0061] In the above optimization process, the external parameters of the image acquisition device and the coordinate information of the image feature points on the image are known numbers. The three-dimensional point coordinate information and the vehicle body posture information when the reprojection error value is the smallest are the optimized three-dimensional point coordinates and current posture information. Among them, the three-dimensional point coordinates are the coordinates in the world coordinate system.
[0062] When it is determined to continue tracking the posture of the auxiliary vehicle, the initial value of the body posture of the auxiliary vehicle at the current moment can be obtained according to the previous posture of the auxiliary vehicle at the previous moment and the wheel speed information corresponding to the current auxiliary image. For example, the displacement of the auxiliary vehicle in unit time can be calculated according to the wheel speed information corresponding to the current auxiliary image, and then the previous posture of the auxiliary vehicle and the calculated displacement are added to obtain the initial value of the body posture.
[0063] After obtaining the initial value of the vehicle body posture, the initial value of the vehicle body posture and the pre-calibrated external parameter of the image acquisition device can be multiplied to obtain the initial value of the image acquisition device posture of each image acquisition device.
[0064] For example, the initial camera pose can be calculated by the following formula:
[0065]
[0066] in is the transformation matrix between the world coordinate system and the device coordinate system of the image acquisition device, is the transformation matrix between the body coordinate system of the auxiliary vehicle and the device coordinate system of the image acquisition device, that is, the calibrated image acquisition device external parameters, It is the transformation matrix between the world coordinate system and the body coordinate system of the auxiliary vehicle, that is, the estimated initial value of the body pose.
[0067] After obtaining the initial pose value of the image acquisition device, the three-dimensional points of each image acquisition device can be projected onto the corresponding current cylindrical image through the initial pose value of the image acquisition device, and the optical flow matching is performed with the projection position as the initial value to obtain the corresponding matching points. The vehicle pose is optimized by minimizing the reprojection error to obtain the optimized vehicle pose information, that is, the current pose information of the auxiliary vehicle at the current moment.
[0068] Among them, the reprojection error is the same as above, which is also:
[0069]
[0070] In the above optimization process, the three-dimensional point coordinate information (the initial value of the posture of the image acquisition device), the external parameters of the image acquisition device and the coordinate information of the image feature points on the image (matching points) are known numbers. The body posture information when the reprojection error value is the smallest is the optimized body posture information, that is, the current posture information of the auxiliary vehicle at the current moment.
[0071] S105: If the current cylindrical image satisfies the first key frame condition, a feature point map corresponding to the target scene is constructed using the current posture information, the current cylindrical image, and the first multiple groups of the current cylindrical image as feature key images, the image position information of the first feature point in the cylindrical image, and the three-dimensional position information of the map point corresponding to the second feature point.
[0072] The first feature point is a feature point that does not currently correspond to a map point.
[0073] In this step, the electronic device first determines whether the current cylindrical image satisfies the first key frame condition. When it is determined that the current cylindrical image satisfies the first key frame image, it uses the current posture information, the current cylindrical image, and the first multiple groups of the current cylindrical image as feature key images, the image position information of the first feature point in the cylindrical image, and the three-dimensional position information of the map point corresponding to the second feature point, to construct a feature point map corresponding to the target scene.
[0074] Among them, the first key frame condition includes: the difference value between the posture information of the corresponding auxiliary vehicle and the posture information of the auxiliary vehicle corresponding to the latest cylindrical image serving as the feature key image satisfies the preset difference condition.
[0075] The electronic device can first determine the posture of the auxiliary vehicle at the current moment based on the current posture information and the posture information of the auxiliary vehicle corresponding to the latest cylindrical image as the feature key point, the change in posture at the moment corresponding to the latest cylindrical image as the feature key point, that is, the difference in the posture of the auxiliary vehicle between the two moments, and then determine whether the difference value meets the difference condition. When the preset difference condition is met, it is determined that the current cylindrical image meets the first key frame condition.
[0076] The cylindrical image serving as the characteristic key image includes: a cylindrical image corresponding to the first group of auxiliary images collected for the target scene when the auxiliary vehicle is driving in the target scene; and a cylindrical image corresponding to the auxiliary images collected before the current moment when the auxiliary vehicle is driving in the target scene and meeting the first key frame condition.
[0077] The preset difference condition may include but is not limited to: the posture difference between the posture information of the auxiliary vehicle corresponding to the cylindrical image and the posture information of the auxiliary vehicle corresponding to the latest feature key image corresponding to the cylindrical image exceeds a preset threshold.
[0078] In one implementation, if the current cylindrical image is the first set of cylindrical images obtained by the electronic device after the map building process of the current memory parking scene is started, that is, the cylindrical image corresponding to the first set of auxiliary images collected for the target scene when the auxiliary vehicle is driving in the target scene, then the current cylindrical image is directly used as the feature key image. Correspondingly, there are no detected feature points in the current cylindrical image. In this case, the electronic device can directly use a preset feature point extraction algorithm to perform feature point detection on each current cylindrical image to obtain the image position information of each feature point in each current cylindrical image. Subsequently, the electronic device continues to obtain a new current auxiliary image, and executes the map building process of the current memory parking scene provided by the embodiment of the present invention for the new current auxiliary image.
[0079] Among them, the preset feature point extraction algorithm can be a FAST feature point extraction algorithm
[0080] In another implementation, if the current cylindrical image is not the first group of cylindrical images obtained by the electronic device after the map construction process of the memory parking scene is started, and if the current cylindrical image meets the first key frame condition, the current cylindrical image is used as a new feature key image to construct a feature point map corresponding to the target scene.
[0081] The electronic device can realize the construction process of the feature point map corresponding to the target scene through its feature point mapping module, wherein the feature point mapping module maintains a sliding window with a length of W frames, and for the sake of clarity, the sliding window with a length of W frames is called the first sliding window. Wherein, W is a positive integer greater than 1, which is specifically set according to the actual situation.
[0082] Each frame in the first sliding window represents the relevant information corresponding to a group of cylindrical images corresponding to each moment, and the relevant information includes: image information corresponding to the group of cylindrical images, image position information of feature points in the group of cylindrical images, depth information corresponding to some feature points of some groups of cylindrical images, and correspondingly, the relevant information corresponding to the group of cylindrical images may also include depth information corresponding to some feature points of the cylindrical images, and the corresponding map points corresponding to the some feature points. The image information is the image information obtained after image processing is performed on each image in the group of cylindrical images.
[0083] When it is determined that the current cylindrical image is a feature key image, the relevant information corresponding to the current cylindrical image is input into the first sliding window. In one case, after the relevant information corresponding to the current cylindrical image is input into the first sliding window, there may be a number of feature key images in the first sliding window that is less than W. Then, the feature point map corresponding to the target scene is constructed using the current posture information, the current cylindrical image, and the image position information of the first feature point in the other plurality of feature key images included in the first sliding window, and the three-dimensional position information of the map point corresponding to the second feature point.
[0084] In another case, after the relevant information corresponding to the current cylindrical image is input into the first sliding window, the number of feature key images in the first sliding window satisfies W, and the current posture information, the current cylindrical image, and the image position information of the first feature point in the W-1 feature key images in the first sliding window and the three-dimensional position information of the map point corresponding to the second feature point are used to construct a feature point map corresponding to the target scene.
[0085] It can be understood that each time a cylindrical image frame is input as a feature key frame in the first sliding window, the map point corresponding to the first feature point where no map point exists is constructed using the latest input cylindrical image and the image position information of the first feature point in the cylindrical image already existing in the first sliding window, that is, the three-dimensional position information of the map point is constructed; and / or the three-dimensional position information of the map point corresponding to the second feature point in the cylindrical image already existing in the first sliding window is used to update the three-dimensional position information of the map point, and then the feature point map corresponding to the target scene is constructed based on the constructed three-dimensional position information of the map point. Among them, the first feature point is a feature point that does not currently correspond to a map point, and the second feature point is a feature point that currently corresponds to a map point.
[0086] In one case, after the relevant information corresponding to the current cylindrical image enters the first sliding window, if the number of key feature images contained in the first sliding window exceeds W, the cylindrical image that enters the first sliding window as the key feature image first slides out of the first sliding window. And the map points in the cylindrical image that are convergent in position and meet the preset output conditions can be output at the same time. The output map point refers to the three-dimensional position information of the output map point.
[0087] In another implementation, if the current cylindrical image does not satisfy the first key frame condition, the current cylindrical image is determined to be a non-feature key image, and the feature point map is not constructed using the current cylindrical image.
[0088] S106: If the current segmented image satisfies the second key frame condition, a semantic map corresponding to the target scene is constructed based on the current segmented image, the current posture information, the front and rear V frames of the current segmented image as the segmented image of the semantic key image and its corresponding body posture information of the auxiliary vehicle, so as to support automatic parking of the target scene vehicle through the feature point map and semantic map corresponding to the target scene.
[0089] The second key frame condition includes: based on the posture information of the corresponding auxiliary vehicle and the posture information of the auxiliary vehicle corresponding to the latest segmented image as the semantic key image, the posture increment of the auxiliary vehicle determined meets the plane assumption condition, and the posture increment of the auxiliary vehicle represents that the position change of the auxiliary vehicle exceeds the first position threshold, and the heading angle change exceeds the first angle threshold; or based on the posture information of the corresponding auxiliary vehicle and the posture information of the auxiliary vehicle corresponding to the latest segmented image as the semantic key image, the posture increment of the auxiliary vehicle determined does not meet the plane assumption condition, and the posture increment of the auxiliary vehicle represents that the position change of the auxiliary vehicle exceeds the second position threshold, and the heading angle change exceeds the second angle threshold. The second position threshold is greater than the first position threshold, and the second angle threshold is greater than the first angle threshold.
[0090] The plane assumption conditions include: the roll angle change of the auxiliary vehicle does not exceed the first angle, the pitch angle change does not exceed the second angle; the sum of the roll angle change and the pitch angle change does not exceed the third angle, and the position change of the vertical axis in the world coordinate system does not exceed the preset value. The first angle, the second angle and the third angle can be equal or different. In one case, the first angle, the second angle and the third angle are all 0.5 degrees. The preset value is 0.2 meters.
[0091] After obtaining the current segmented image, the electronic device determines the posture difference value of the auxiliary vehicle, i.e., the posture increment, based on the posture information of the auxiliary vehicle corresponding to the current segmented image, i.e., the current posture information, and the posture information of the auxiliary vehicle corresponding to the latest segmented image as the semantic key image. It is determined whether the posture increment meets the plane assumption condition.
[0092] When it is determined that the posture increment satisfies the plane assumption condition, continue to determine whether the position change of the auxiliary vehicle represented by the posture increment exceeds the first position threshold, and whether the heading angle change of the auxiliary vehicle exceeds the first angle threshold; if both of the above judgment results are yes, it is determined that the current segmented image meets the second key frame condition, and the current segmented image is determined to be a new semantic key image, and the subsequent process of constructing the semantic map is executed.
[0093] When it is determined that the posture increment does not meet the plane assumption condition, it is determined whether the position change of the auxiliary vehicle represented by the posture increment exceeds the second position threshold, and whether the heading angle change of the auxiliary vehicle exceeds the second angle threshold. When the judgment result is that the position change of the auxiliary vehicle represented by the posture increment exceeds the second position threshold, and the heading angle change of the auxiliary vehicle exceeds the second angle threshold, it is determined that the current segmented image meets the second key frame condition, and the current segmented image is determined to be a new semantic key image, and the subsequent process of constructing the semantic map is executed.
[0094] The second position threshold is greater than the first position threshold, and the second angle threshold is greater than the first angle threshold. In one case, the first position threshold is 0.5 meters, the first angle threshold is 5.0 degrees, the second position threshold is 0.75 meters, and the second angle threshold is 7.5 degrees.
[0095] In one case, the current segmented image is the first group of segmented images obtained by the electronic device after the map construction process of the memory parking scene is started, that is, the segmented image corresponding to the first group of auxiliary images collected for the target scene while the auxiliary vehicle is driving in the target scene. The current segmented image is directly used as the semantic key image.
[0096] In another implementation, if the current segmented image is not the first group of segmented images obtained by the electronic device after the map construction process of the memory parking scene is started, and if the current segmented image meets the second key frame condition, the current segmented image is used as a new semantic key image to construct a semantic map corresponding to the target scene.
[0097] The electronic device can realize the construction process of the semantic map corresponding to the target scene through its ground semantic mapping module, wherein the feature point mapping module maintains a sliding window with a length of 2V+1 frames, and for the sake of description, the sliding window with a length of 2V+1 frames is called the second sliding window. When determining the semantic map point corresponding to the current segmented image, it is necessary to use the first V frames of the current segmented image as the segmented image of the semantic key image, and the last V frames of the current segmented image as the segmented image of the semantic key image.
[0098] When the current segmented image is determined to be a semantic key image, the current segmented image is input into the second sliding window. In one case, after the current segmented image is input into the second sliding window, the number of semantic key images before the current segmented image in the second sliding window may be less than V. In one case, the corresponding semantic map point may not be determined for the segmented image of this type.
[0099] In another case, with respect to the process of constructing semantic map points for the current segmented image, after the current segmented image is input into the second sliding window, if the number of semantic key images before the current segmented image contained in the second sliding window is greater than or equal to V, then V frames after the current segmented image may continue to be waited for as the segmented image of the semantic key image. For the convenience of description, the current segmented image may be referred to as the t-th frame image.
[0100] In the case where the second sliding window includes the t-th frame image, the previous V frames of the t-th frame image are used as the segmented images of the semantic key image, and the subsequent V frames of the t-th frame image are used as the segmented images of the semantic key image, the corresponding map points of the t-th frame image are constructed, that is, the three-dimensional position information of the map points corresponding to the t-th frame image is constructed. Specifically, the t-th frame image, that is, the semantic pixel points therein, the posture information of the auxiliary vehicle corresponding to the t-th frame image, that is, the current posture information, the previous V frames of the t-th frame image are used as the segmented images of the semantic key image, that is, the semantic pixel points therein, and the posture information of the corresponding auxiliary vehicle, the three-dimensional position information of the map points corresponding to the t-th frame image is constructed, and then the three-dimensional position information of the map points corresponding to the t-th frame image is used to construct the semantic map corresponding to the target scene.
[0101] In one case, after the current segmented image enters the second sliding window, if the number of semantic key images contained in the first sliding window exceeds 2V+1, the segmented image that enters the second sliding window earliest as the semantic key image slides out of the first sliding window. And the semantic map point corresponding to the segmented image that slides out can be output at the same time.
[0102] Outputting a semantic map point refers to outputting the three-dimensional position information of the semantic map point.
[0103] In another implementation, if the current segmented image does not satisfy the second key frame condition, the current segmented image is determined to be a non-semantic key image, and the semantic map is not constructed using the current segmented image.
[0104] By applying the embodiments of the present invention, a feature point map corresponding to the target scene can be constructed based on the current cylindrical image corresponding to the current auxiliary image to obtain a feature point map with higher accuracy. At the same time, a semantic map corresponding to the target scene can be constructed based on the current segmented image corresponding to the current auxiliary image. The feature point map and the semantic map can be subsequently used together as parking locations for vehicles in the target scene. There is no need to add other auxiliary equipment to assist in vehicle positioning, thereby reducing the cost of memorizing parking scenes and improving the universality of the algorithm, and having good replicability and scalability.
[0105] In another embodiment of the present invention, the method may further include a verification process for the feature point map, wherein: Figure 2 As shown, the verification process may include the following steps S201-S203:
[0106] S201: For each feature key image, determine a non-feature key image that is farthest from the feature key image and has feature information extracted from the n frames of non-feature key images before and after the feature key image; and form an associated frame pair with the feature key image.
[0107] Among them, the feature key image is a cylindrical image that meets the first key frame condition, the non-feature key image is a cylindrical image that does not meet the first key frame condition, and the feature information includes: image position information of feature points in the corresponding non-feature key image and feature descriptors.
[0108] S202: For each associated frame pair, determine the feature points corresponding to the map points corresponding to the feature key images in the associated frame pair from the feature points of the non-feature key images in the associated frame pair; and for each map point corresponding to the feature key images in the associated frame pair, filter out the feature points that meet the preset associated point conditions from the determined feature points corresponding to the map points, and determine them as the associated feature points corresponding to the map points corresponding to the feature key images in the associated frame pair.
[0109] Among them, the preset association point conditions include: among the feature points whose Hamming distance between the corresponding feature descriptor and the feature descriptor of the map point corresponding to the feature key image in the associated frame pair does not exceed the first distance threshold, and whose location is at a distance from the projection point of the map point corresponding to the feature key image in the associated frame pair in the non-feature key image does not exceed the second distance threshold, the feature point whose Hamming distance between the corresponding feature descriptor and the feature descriptor of the map point corresponding to the feature key image in the associated frame pair is the smallest.
[0110] S203: Determine a verification result corresponding to the feature point map based on the determined number of associated feature points corresponding to the map points corresponding to the feature key images in all associated frame pairs and the total number of map points corresponding to the feature key images in all associated frame pairs.
[0111] In order to ensure the safety of subsequent vehicles parking automatically in the target scene, it is necessary to ensure the accurate positioning of the vehicle in the target scene, and accordingly, it is necessary to ensure the accuracy of the constructed map. In this implementation, after constructing the feature point map corresponding to the target scene, a quantitative evaluation can be performed on the usability of the feature point map, and accordingly, the feature point map is verified. Among them, the electronic device can implement the verification process of the feature point image through the verification module.
[0112] The electronic device can verify whether the constructed feature point map can meet the positioning needs by simulating the positioning process. Since the feature point map is constructed using the feature key image, the electronic device can use the non-feature key image to simulate the positioning frame accordingly. The non-feature key image has the position of the corresponding auxiliary vehicle, is close to the position of the map frame, i.e., the feature key image, and has image content that is similar to but not completely the same as the image content of the map frame. The above characteristics are similar to the characteristics of the image used in the positioning process.
[0113] Before the feature point map is verified, the electronic device may pre-process each set of cylindrical images differently based on whether each set of cylindrical images is used to construct the feature point map. Specifically, the processing may be:
[0114] When the cylindrical image is a feature key image, a frame storage space is created in the key frame storage area, and when the cylindrical image of the frame as the feature key image slides out of the first sliding window, the map information of the frame cylindrical image is stored in its corresponding storage space position, wherein the map information of the frame cylindrical image includes the three-dimensional position information of the map point corresponding to the frame cylindrical image, as well as the feature descriptor mentioned later.
[0115] When the cylindrical image is a non-feature key image, feature point extraction and feature descriptor extraction are performed on the cylindrical image as the non-feature key image every preset number of frames of non-feature key images to obtain feature information of the cylindrical image as the non-feature key image, wherein the feature information includes: image position information and feature descriptors of feature points extracted from the corresponding non-feature key image; and the extracted feature information is stored in a storage interval corresponding to the non-feature key image. The preset number of frames may be 2 frames.
[0116] The algorithm used for extracting feature points from the cylindrical image as the non-feature key image may be the FAST feature point extraction algorithm, and the algorithm used for extracting feature descriptors of the feature points may be the BRIEF descriptor extraction algorithm.
[0117] Subsequently, after the feature point map is constructed, that is, after the corresponding memory parking scene map construction process is performed for all auxiliary images collected during the auxiliary vehicle's driving in the target scene, the availability of the feature point map is matched and verified. The matching verification process is as follows:
[0118] For each feature key image, i.e., a group of cylindrical images serving as the feature key image, a non-feature key image which is farthest from the feature key image and from which feature information has been extracted is determined from the n non-feature key images before and after the feature key image; the determined non-feature key image which is farthest from the feature key image and from which feature information has been extracted and the feature key image are determined as a group of associated frame pairs, which can also be called a key frame-non-key frame pair. The n is a value set according to actual conditions.
[0119] For each associated frame pair, for each observable map point corresponding to the feature key image of the associated frame pair, that is, the map point corresponding to the feature key image, a pair is sought in the feature points of the non-feature key image of the associated frame pair. That is, from the feature points of the non-feature key image in the associated frame pair, the feature points corresponding to the map points corresponding to the feature key image in the associated frame pair are determined. Specifically, it can be: using the three-dimensional position information of the map point Q corresponding to the feature key image of the associated frame pair, the posture information of the auxiliary vehicle corresponding to the feature key image of the associated frame pair, the posture information of the auxiliary vehicle corresponding to the non-feature key image of the associated frame pair, and the internal and external parameters of the image acquisition device for acquiring the non-feature key image, the map point Q corresponding to the feature key image of the associated frame pair is projected onto the non-feature key image of the associated frame pair to obtain the projection point q corresponding to the map point Q thereon; and among the feature points of the non-feature key image of the associated frame pair, the K feature points with the closest Hamming distance between the feature descriptor and the feature descriptor of the map point Q are determined, that is, the feature points corresponding to the map point Q.
[0120] The feature descriptor of the map point Q is: a descriptor determined based on the feature descriptors of the feature points corresponding to the map point Q in all feature key images used to construct the map point Q.
[0121] Subsequently, for each map point corresponding to the feature key image in the associated frame pair, feature points that meet the preset associated point conditions are screened out from the determined feature points corresponding to the map point, and are determined as associated feature points corresponding to the map point corresponding to the feature key image in the associated frame pair; that is, from the feature points corresponding to each map point Q, the feature points whose corresponding Hamming distance does not exceed the first distance threshold and whose distance between their locations and the location of the projection point q of the map point Q does not exceed the second distance threshold are determined, and the feature point whose corresponding Hamming distance is the smallest is determined as the associated feature point corresponding to the map point corresponding to the feature key image in the associated frame pair.
[0122] If the projection point p of the map point Q is at the position of the non-feature key image of the associated frame pair corresponding to the projection point p of the associated frame pair and falls within the effective imaging area of the non-feature key image of the associated frame pair, then the projection point q of the map point Q is considered to be valid. The feature point whose distance between the above-mentioned position and the position of the projection point q of the map point Q does not exceed the second distance threshold may refer to: the feature point whose distance between the position and the position of the effective projection point q of the map point Q does not exceed the second distance threshold.
[0123] If the effective imaging area of the cylindrical image contains a feature point corresponding to a map point, then the cylindrical image is considered to be able to observe the map point. Each observable map point corresponding to the feature key image means that the effective imaging area of the feature key image contains the feature point corresponding to the map point.
[0124] The electronic device continues to determine the verification result corresponding to the feature point map based on the number of associated feature points corresponding to the map points corresponding to the feature key images in the determined associated frame pairs and the total number of map points corresponding to the feature key images in all associated frame pairs. The verification result corresponding to the feature point map includes information that the feature point map verification is successful or information that the feature point map verification fails.
[0125] In another embodiment of the present invention, Figure 3 As shown, the S203 may include the following steps:
[0126] S301: Calculate the ratio of the number of associated feature points corresponding to the map points corresponding to the feature key images in all the associated frame pairs determined, and the total number of map points corresponding to the feature key images in all the associated frame pairs, as the first ratio. S302: If the first ratio is lower than the first map verification threshold, determine that the initial verification result corresponding to the feature point map is a failure. S303: If the first ratio is not lower than the first map verification threshold, for each target non-feature key image, use the preset given rate and the number of associated feature points in the target non-feature key image to determine the target associated feature points corresponding to the target non-feature key image. Wherein, the target non-feature key image is: a non-feature key image containing associated feature points. S304: For each target non-feature key image, use the preset posture perturbation parameters to perturb the vehicle body posture information corresponding to the target non-feature key image, and determine the perturbed vehicle body posture information corresponding to the target non-feature key image. S305: For each target non-feature key image, the image position information of the target-associated feature points corresponding to the target non-feature key image and the three-dimensional position information of the map points corresponding to the target-associated feature points corresponding to the target non-feature key image are used to optimize the disturbed vehicle body posture information corresponding to the target non-feature key image, and obtain the optimized vehicle body posture information corresponding to the target non-feature key image. S306: Determine the verification result corresponding to the feature point map by using the vehicle body posture information corresponding to each target non-feature key image and the optimized vehicle body posture information.
[0127] In this implementation, the image verification module can count the number of associated feature points corresponding to the map points corresponding to the feature key images in all associated frame pairs, that is, the number of feature points successfully associated with the map points in all associated frame pairs; and count the total number of map points corresponding to the feature key images in all associated frame pairs, and calculate the ratio between the two as the first ratio.
[0128] It is determined whether the first ratio is lower than the first map verification threshold. If the first ratio is lower than the first map verification threshold, it is determined that the initial verification result corresponding to the feature point map is a failure. Accordingly, the electronic device can output a message prompting the need to rebuild the map, so as to prompt the staff to rebuild the feature point map for the target scene.
[0129] If the first ratio is not lower than the first map verification threshold, in one case, it can be directly considered that the feature point map of the target scene is available.
[0130] In another case, in order to better ensure the availability of the feature point map, you can continue to start the pose perturbation optimization verification process for the feature point map: the specific process can be as follows:
[0131] For non-feature key images that contain feature points associated with map points corresponding to feature key images after the above matching verification, that is, contain associated feature points, that is, for each target non-feature key image, the target associated feature points corresponding to the target non-feature key image are determined using the preset given rate and the number of associated feature points in the target non-feature key image. For example, it can be: the product of the preset given rate and the number of associated feature points in the target non-feature key image is calculated to obtain a first product value, and the first product value of associated feature points are selected from the associated feature points in the target non-feature key image as the target associated feature points corresponding to the target non-feature key image.
[0132] For each target non-feature key image, the vehicle body pose information corresponding to the target non-feature key image is perturbed using a preset pose perturbation parameter to determine the perturbed vehicle body pose information corresponding to the target non-feature key image. The preset pose perturbation parameter may be a randomly generated parameter or a preset parameter, and when pose perturbations are performed for different target non-feature key images, the preset pose perturbation parameters used may be the same or different.
[0133] For each target non-feature key image, the three-dimensional position information of the map point corresponding to the target-associated feature point corresponding to the target non-feature key image, the posture information of the auxiliary vehicle corresponding to the target non-feature key image, the posture information of the corresponding image acquisition device and the internal parameter matrix are used to determine the position information of the projection point of the map point corresponding to the target-associated feature point corresponding to the target non-feature key image in the target non-feature key image; the position information of the projection point of the map point corresponding to the target-associated feature point corresponding to the target non-feature key image in the target non-feature key image and the image position information of the target-associated feature point are used to construct the target non-feature key image. The reprojection error equation corresponding to the feature key image; the reprojection error equation corresponding to the target non-feature key image is nonlinearly optimized using the Levenberg-Marquardt algorithm until the value of the reprojection error equation corresponding to the target non-feature key image reaches a minimum or the number of optimization iterations of the reprojection error equation corresponding to the target non-feature key image reaches a preset number, and it is determined that the reprojection error equation corresponding to the target non-feature key image reaches a convergence state, and the value of the posture information of the auxiliary vehicle corresponding to the target non-feature key image at this time is determined as the optimized vehicle posture information corresponding to the target non-feature key image.
[0134] The verification result corresponding to the feature point map is determined by using the disturbed vehicle posture information corresponding to each target non-feature key image, and the optimized vehicle posture information. Specifically, for each target non-feature key image, the corresponding vehicle posture information and the optimized vehicle posture information are used to calculate the corresponding position change and posture change. If the position change corresponding to the target non-feature key image exceeds the preset position change, or the posture change exceeds the preset posture change, then it is determined that the map positioning effect corresponding to the target non-feature key image is not good. If the position change corresponding to the target non-feature key image does not exceed the preset position change, and the posture change does not exceed the preset posture change, then it is determined that the map positioning effect corresponding to the target non-feature key image is good.
[0135] The number of target non-feature key images with poor positioning effect of the corresponding map is counted; the ratio of the number of target non-feature key images with poor positioning effect of the corresponding map is calculated to the total number of target non-feature key images. If the ratio exceeds the preset ratio threshold, it is determined that the constructed feature point map verification fails, and accordingly, the corresponding verification result includes the information that the feature point map verification fails. If the ratio does not exceed the preset ratio threshold, it is determined that the constructed feature point map verification is successful, and accordingly, the corresponding verification result includes the information that the feature point map verification is successful.
[0136] In another embodiment of the present invention, the S105 may include the following steps 021-0210:
[0137] 021: Determine the image pyramid corresponding to the current cylindrical image by using a preset image pyramid algorithm and the current cylindrical image.
[0138] 022: For each first feature point in each target cylindrical image in the first multiple groups of cylindrical images of the current cylindrical image that serve as feature key images, a preset inverse depth value determination method is used to determine the inverse depth value sequence corresponding to the first feature point and the uncertainty corresponding to each sampled inverse depth value therein.
[0139] Among them, the preset inverse depth value determination method includes: on the back projection ray corresponding to the first feature point, binary sampling of the inverse depth value is performed within the preset inverse depth value range to obtain the first sampling point corresponding to each inverse depth value obtained by sampling corresponding to the first feature point; until the distance between the projection points of each two adjacent first sampling points projected onto the designated layer image of the image pyramid corresponding to the current cylindrical image does not exceed 1 pixel distance, the sampling ends; the target cylindrical image is: the distance between the vehicle position determined based on the posture information of the corresponding auxiliary vehicle and the current posture information is less than the third distance threshold.
[0140] 023: For each first feature point in each target cylindrical image, based on the image position information of the first feature point and its corresponding inverse depth value sequence, the first sampling point corresponding to each sampled inverse depth value in the inverse depth value sequence is projected onto the designated layer image as the projection point of each first sampling point; based on the pixel value of the first feature point and its corresponding pixel point in the first neighborhood and the pixel value of the pixel point in the first area corresponding to the projection point of each first sampling point, the similarity value corresponding to each first sampling point is determined.
[0141] 024: For each target cylindrical image, from the first feature points in the target cylindrical image, determine, as the second feature point, a first feature point whose total number of corresponding valid first sampling points is greater than a first quantity threshold, whose corresponding first sampling point with the smallest numerical value corresponds to a similarity value that does not exceed a preset similarity threshold, and whose ratio of the similarity value corresponding to the first sampling point with the second smallest numerical value to the similarity value corresponding to the first sampling point with the smallest numerical value is not less than a first ratio threshold; and determine the sampling inverse depth value of the first sampling point corresponding to the similarity value with the smallest numerical value corresponding to the second feature point as the current inverse depth value corresponding to the second feature point; and determine the three-dimensional position information of the map point corresponding to the second feature point based on the current inverse depth value corresponding to the second feature point and the image position information of the second feature point.
[0142] The effective first sampling point is: the first sampling point where the projection point projected onto the designated layer image is located within the effective imaging area.
[0143] 025: For each second feature point in each cylindrical image of the first multiple groups of cylindrical images serving as feature key images, a sampling range is determined using the current inverse depth value and the current uncertainty corresponding to the second feature point; binary sampling is performed within the sampling range on the back-projection ray corresponding to the second feature point to obtain a second sampling point corresponding to the second feature point, until the distance between the projection points of each two adjacent second sampling points corresponding to the second feature point projected onto the current participating layer image of the image pyramid corresponding to the current cylindrical image corresponding to the second feature point does not exceed 1 pixel distance, and the sampling is terminated to obtain a sequence of inverse depth values corresponding to the second feature point and the uncertainty corresponding to each sampled inverse depth value.
[0144] 026: For each second feature point in each cylindrical image in the first multiple groups of cylindrical images serving as feature key images, based on the image position information of the second feature point and its corresponding inverse depth value sequence, the second sampling point corresponding to each sampled inverse depth value in the inverse depth value sequence is projected onto the current participating layer image to determine the projection point of each second sampling point; based on the pixel value of the pixel point in the first neighborhood corresponding to the second feature point and the pixel value of the pixel point in the first area corresponding to the projection point of each second sampling point, the similarity value corresponding to each second sampling point is determined.
[0145] 027: For each cylindrical image in the first plurality of groups of cylindrical images as feature key images, determine, from the second feature points in the cylindrical image, a second feature point whose total number of corresponding valid second sampling points is greater than a first quantity threshold, whose corresponding second sampling point with the smallest numerical value corresponds to a similarity value not exceeding a preset similarity threshold, and whose ratio of the similarity value corresponding to the second sampling point with the second smallest numerical value to the similarity value corresponding to the second sampling point with the smallest numerical value is not less than a first ratio threshold, as a second target feature point; for each second target feature point, using the sampled inverse depth value and its uncertainty of the second sampling point corresponding to the second target feature point with the smallest numerical similarity value, and the current inverse depth value and its current uncertainty corresponding to the second target feature point, obtain a new current inverse depth value and its new current uncertainty corresponding to the second target feature point; based on the new current inverse depth value corresponding to the second target feature point and the image position information of the second feature point, update the three-dimensional position information of the map point corresponding to the second target feature point.
[0146] 028: If the current participating layer image corresponding to the second target feature point is the bottom layer image of the image pyramid corresponding to the current cylindrical image, and the number of updates of the three-dimensional position information of the map point corresponding to the second target feature point is greater than the preset number threshold, and the ratio of the uncertainty interval length corresponding to the second target feature point to the new current inverse depth value corresponding to the second target feature point is less than the second ratio threshold, it is determined that the position of the map point corresponding to the second target feature point converges.
[0147] Among them, the length of the uncertainty interval corresponding to the second target feature point is determined based on the new current inverse depth value corresponding to the second target feature point and its uncertainty.
[0148] 029: Determine the feature points in the current cylindrical image by using the three-dimensional position information and current posture information of the map points corresponding to the current second feature points of the first multiple groups of cylindrical images as feature key images, and / or a preset feature point extraction algorithm.
[0149] 0210: Using the determined map points whose positions converge and meet the preset output conditions and their corresponding feature descriptors, a feature point map corresponding to the target scene is constructed.
[0150] Among them, the preset output conditions are: the number of frames of the cylindrical image containing the feature point corresponding to the map point exceeds the preset frame number threshold, and the three-dimensional position information represents that the map point is not located underground, and the feature descriptor corresponding to the map point is: determined based on the feature descriptor of the feature point corresponding to the map point.
[0151] Among them, the three-dimensional position information representing that the map point is not located underground can be: the coordinate value of the vertical axis in its three-dimensional position information represents the height of the point is not lower than the height representing the ground. For example, the coordinate value of the vertical axis representing the height of the ground is 0, then the coordinate value of the vertical axis in the three-dimensional position information is not less than 0, indicating that the map point is not located underground.
[0152] In this implementation, when the current cylindrical image satisfies the first key frame condition, the current cylindrical image is used as a new feature key image, and the preset image pyramid algorithm is used to process the current cylindrical image to determine the L-layer image pyramid corresponding to the current cylindrical image, that is, the image information corresponding to the current cylindrical image. Among them, the 0th layer of the L-layer image pyramid corresponding to the current cylindrical image is the image itself, and the images of other layers are the images of the previous layer. After convolution processing using the preset Gaussian convolution kernel, the image obtained after removing the pixels of even rows and columns, wherein the length and width of the image of the i-th layer are 1 / 2 of the image of the i-1th layer, respectively. Among them, the preset Gaussian convolution kernel can be expressed as follows:
[0153]
[0154] Wherein, when the current cylindrical image is a multi-frame image, the above image processing needs to be performed on each frame of the current cylindrical image, and the image pyramid corresponding to the current cylindrical image includes the image pyramid corresponding to each image in the current cylindrical image.
[0155] The cylindrical image mentioned in the embodiment of the present invention refers to the multi-channel cylindrical images obtained at each moment.
[0156] The image pyramid corresponding to the current cylindrical image is used as the relevant information corresponding to the current cylindrical image and input into the first sliding window. At this time, the feature points in the current cylindrical image have not been detected yet, and accordingly, the corresponding relevant information does not include the image position information of the feature points therein.
[0157] Subsequently, all map points corresponding to the feature key images currently existing in the first sliding window have their three-dimensional position information updated according to the relevant information corresponding to the current cylindrical image, and for the first feature points that do not form map points in the first multiple groups of cylindrical images of the current cylindrical image in the first sliding window that serve as feature key images, that is, the first feature points that do not correspond to depth information, try to generate new map points according to the relevant information corresponding to the current cylindrical image. Subsequently, a feature point supplementation operation is performed on the current cylindrical image to obtain the image position information of the feature points contained in the current cylindrical image. If the length of the first sliding window exceeds W after the relevant information corresponding to the current cylindrical image enters the first sliding window, the relevant information of the cylindrical image that serves as the feature key image that enters the first sliding window earliest is moved out of the first sliding window, and the map points in the image that converge and meet the preset output conditions are output. Figure 4AAs shown, when the current cylindrical image meets the first key frame condition, the current cylindrical image is processed to obtain relevant information corresponding to the current cylindrical image and input into the first sliding window, that is, Figure 4A The image frame t shown in Figure 4A As shown, the first sliding window includes the previous W frames corresponding to the current cylindrical image as the relevant information corresponding to the cylindrical image of the feature key image, such as Figure 4A As shown, they are image frame t-1, ..., image frame t-(W-1) and image frame tW. The three-dimensional position information of the corresponding map point is updated using the relevant information corresponding to image frame t, and a new map point is attempted to be generated, such as Figure 4A The “map point update” shown in , then performs feature point supplementation operation on the current cylindrical image, and outputs the image frame tW and the map points tW thereon that converge and meet the preset output conditions when the length W of the first sliding window is exceeded.
[0158] Specifically, the process of attempting to generate a map point for a first feature point that has no corresponding map point generated currently may be:
[0159] For each first feature point in each target cylindrical image in the first multiple groups of cylindrical images of the current cylindrical image as the feature key images, a preset inverse depth value determination method is used, that is, the inverse of the depth value, i.e., the inverse depth value, is sampled in binary within a given upper and lower limit threshold, i.e., the preset inverse depth value range, on the back-projection ray corresponding to the first feature point, to obtain a number of sampled inverse depth values {d e}, for example: first perform binary sampling on the upper and lower limits of the preset inverse depth value range, and then perform binary sampling on the currently existing inverse depth values in turn, and so on. Accordingly, the first sampling point corresponding to each sampled inverse depth value sampled corresponding to the first feature point is obtained, and the sampled inverse depth values are binary sampled in turn within the preset inverse depth value preset range, until the distance between the projection points of each two adjacent first sampling points projected onto the designated layer image of the image pyramid corresponding to the current cylindrical image does not exceed 1 pixel distance, the sampling is completed, and the inverse depth value sequence corresponding to the first feature point is obtained, wherein the inverse depth value sequence is the final sampled inverse depth value sequence corresponding to the first feature point.
[0160] Then, the uncertainty corresponding to each sampled inverse depth value is determined using a preset uncertainty calculation formula. The preset uncertainty calculation formula can be expressed by the following formula (1):
[0161]
[0162] Among them, σ e represents the uncertainty corresponding to the e-th sampled inverse depth value in the inverse depth value sequence corresponding to the first feature point, d eIndicates the inverse depth value of the e-th sample, d e-1 Indicates the e-1th sampled inverse depth value in the inverse depth value sequence corresponding to the first feature point, d e+1 Represents the e+1th sampled inverse depth value in the inverse depth value sequence corresponding to the first feature point.
[0163] The target cylindrical image is an image whose distance between the vehicle position determined based on the posture information of the corresponding auxiliary vehicle and the current posture information is less than the third distance threshold. For the images whose straight-line distance between the posture information of the corresponding auxiliary vehicle and the position of the auxiliary vehicle represented by the current posture information corresponding to the current cylindrical image is greater than the third distance threshold among the first plurality of groups of cylindrical images as feature key images, the first feature point in the current cylindrical image that has not yet corresponded to a map point is abandoned, and a new map point is generated.
[0164] In one case, the specified layer image of the image pyramid corresponding to the current cylindrical image may refer to: the image of the smallest layer L-1 in the image pyramid corresponding to the current cylindrical image.
[0165] For each first feature point in each target cylindrical image, based on the image position information of the first feature point and its corresponding inverse depth value sequence, the pose information of the image acquisition device corresponding to the target cylindrical image is determined by utilizing the current pose information and the pose conversion relationship between the auxiliary vehicle and the image acquisition device corresponding to the current cylindrical image. Furthermore, based on the pose information of the image acquisition device corresponding to the target cylindrical image and the intrinsic parameter matrix, the first sampling points corresponding to each sampled inverse depth value in the corresponding inverse depth value sequence are projected onto the corresponding designated layer image to obtain the projection point of each first sampling point.
[0166] For each first feature point in each target cylindrical image, a similarity value corresponding to each first sampling point is determined based on a pixel value of the first feature point and a pixel value of a pixel in a first neighborhood corresponding to a projection point of each first sampling point, wherein the similarity value represents the similarity between the projection point of each first sampling point and the first feature point, wherein a smaller similarity value represents a higher similarity between the projection point of the first sampling point and the first feature point.
[0167] The process of determining the similarity value corresponding to each first sampling point can be calculated by using a squared distance (SSD) algorithm, which can be expressed by the following formula (2):
[0168]
[0169] Wherein, N represents the pixel point in the first neighborhood corresponding to the first feature point, or the position index value range corresponding to the pixel point in the first neighborhood corresponding to the projection point of the first sampling point corresponding to the e-th sampled inverse depth value sequence corresponding to the first feature point, |N| represents the number of pixel points in the first neighborhood corresponding to the projection point of the first sampling point; Δp r represents the position index value of the r-th pixel point in the first neighborhood corresponding to the first feature point, and the projection point of the first sampling point corresponds to the r-th pixel point in the first neighborhood; p represents the position of the first feature point, I(p+Δp r ) represents the pixel value of the rth pixel in the first neighborhood corresponding to the first feature point; p' e represents the position of the projection point of the first sampling point corresponding to the e-th sampling inverse depth value in the inverse depth value sequence corresponding to the first feature point; I'(p' e +Δp r ) represents the pixel value of the rth pixel in the first neighborhood corresponding to the projection point of the first sampling point corresponding to the eth sampled inverse depth value in the inverse depth value sequence corresponding to the first feature point, and the value range of r is: 1 to the number of pixels in the first neighborhood and integers therebetween.
[0170] The position index value refers to the distance between the position of each pixel in the first neighborhood and the position of the neighborhood center. For example, the first neighborhood corresponding to the projection point of the first sampling point is a 3*3 neighborhood, that is, the first neighborhood includes 9 pixels, wherein the projection point of the first sampling point is located at the center of the 3*3 neighborhood, and the position index values corresponding to the pixel point from the upper left corner to the pixel point from the lower right corner of the first neighborhood are (-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 0), (0, 1), (1, -1), (1, 0) and (1, 1), respectively.
[0171] For each target cylindrical image, from the first feature points in the target cylindrical image, determine the first feature point whose total number of corresponding valid first sampling points is greater than the first quantity threshold, for example, 3, and the similarity value corresponding to the first sampling point with the smallest numerical value does not exceed the preset similarity threshold, and the ratio of the similarity value corresponding to the first sampling point with the second smallest numerical value to the similarity value corresponding to the first sampling point with the smallest numerical value is not less than the first ratio threshold, as the second feature point, that is, it is considered that this type of first feature point is the second feature point that can generate the corresponding map point.
[0172] The sampled inverse depth value of the first sampling point corresponding to the minimum similarity value corresponding to the second feature point is determined as the current inverse depth value corresponding to the second feature point. The three-dimensional position information of the corresponding map point is generated by using the current inverse depth value and the image position information of the second feature point, and the current inverse depth value of the second feature point and the three-dimensional position information of the corresponding map point are recorded, as well as the uncertainty corresponding to the current inverse depth value corresponding to the second feature point.
[0173] Through the above method, an attempt is made to generate a map point for a first feature point that has no corresponding map point currently generated, and the first feature point of the generated map point is used as the second feature point.
[0174] The process of updating the three-dimensional position information of the map point corresponding to the second feature point of the generated corresponding map point is as follows:
[0175] Here, updating the three-dimensional position information of the map point corresponding to the second feature point of the generated corresponding map point may refer to updating the current depth value, ie, the inverse depth value, corresponding to the second feature point of the generated corresponding map point.
[0176] For each second feature point in each cylindrical image in the first plurality of groups of cylindrical images as feature key images, the current inverse depth value corresponding to the second feature point is used And the current uncertainty σ1, determine the sampling range. Specifically, the sampling range is [d1-2σ1,d1+2σ1].
[0177] On the back-projection ray corresponding to the second feature point, the reciprocal of the depth value, i.e., the inverse depth value, is sampled by two points within its corresponding sampling range to obtain a number of sampled inverse depth values. Accordingly, a second sampling point corresponding to each sampled inverse depth value corresponding to the second feature point is obtained, until the distance between the projection points of every two adjacent second sampling points corresponding to the second feature point projected onto the current participating layer image of the image pyramid corresponding to the current cylindrical image corresponding to the second feature point does not exceed 1 pixel distance, and the sampling is completed to obtain the inverse depth value sequence corresponding to the second feature point and the uncertainty corresponding to each sampled inverse depth value.
[0178] Then, a preset uncertainty calculation formula is used to determine the uncertainty corresponding to each sampled inverse depth value in the inverse depth value sequence corresponding to the second feature point.
[0179] For each second feature point in each cylindrical image in the first multiple groups of cylindrical images serving as feature key images, based on the image position information of the second feature point and its corresponding inverse depth value sequence, the second sampling points corresponding to each sampled inverse depth value in the inverse depth value sequence are projected onto the current participating layer image to determine the projection point of each second sampling point; based on the pixel value of the pixel point in the first neighborhood corresponding to the second feature point and the pixel value of the pixel point in the first area corresponding to the projection point of each second sampling point, the similarity value corresponding to each second sampling point is determined.
[0180] The process of determining the projection point of each second sampling point can refer to the process of determining the projection point of each first sampling point. The process of determining the similarity value corresponding to each second sampling point can refer to the process of determining the similarity value corresponding to each first sampling point, which will not be repeated here.
[0181] For each cylindrical image in the first multiple groups of cylindrical images serving as feature key images, a second feature point whose total number of corresponding valid second sampling points is greater than a first quantity threshold, for example, 3, and whose similarity value corresponding to the second sampling point with the smallest corresponding value does not exceed a preset similarity threshold, and whose ratio of the similarity value corresponding to the second sampling point with the second smallest corresponding value to the similarity value corresponding to the second sampling point with the smallest corresponding value is not less than the first ratio threshold is determined from the second feature points in the cylindrical image as the second target feature point.
[0182] For each second target feature point, the sampled inverse depth value and its uncertainty of the second sampling point corresponding to the minimum similarity value corresponding to the second target feature point, as well as the current inverse depth value and its current uncertainty corresponding to the second target feature point, are used to obtain the new current inverse depth value and its new current uncertainty corresponding to the second target feature point. Specifically, the new current inverse depth value corresponding to the second target feature point can be determined by the following formula (3): and its new current uncertainty:
[0183]
[0184]
[0185] Among them, d represents the depth value corresponding to the new current inverse depth value corresponding to the second target feature point, d1 represents the depth value corresponding to the current inverse depth value corresponding to the second target feature point; σ represents the new uncertainty corresponding to the new current inverse depth value corresponding to the second target feature point; d2 represents the depth value corresponding to the sampled inverse depth value of the second sampling point corresponding to the minimum similarity value corresponding to the second target feature point; σ1 represents the current uncertainty corresponding to the current inverse depth value corresponding to the second target feature point; σ2 represents the uncertainty corresponding to the sampled inverse depth value of the second sampling point corresponding to the minimum similarity value corresponding to the second target feature point.
[0186] Furthermore, for each second target feature point, based on the new current inverse depth value corresponding to the second target feature point and the image position information of the second feature point, the three-dimensional position information of the map point corresponding to the second target feature point is updated. The three-dimensional position information of the map point corresponding to the updated second target feature point, its new current inverse depth value, and the new uncertainty are stored accordingly.
[0187] Subsequently, if the current participating layer image corresponding to the second target feature point is the bottom layer image of the image pyramid corresponding to the current cylindrical image, and the number of updates of the three-dimensional position information of the map point corresponding to the second target feature point is greater than the preset number threshold, and the ratio of the uncertainty interval length corresponding to the second target feature point to the new current inverse depth value corresponding to the second target feature point is less than the second ratio threshold, it is determined that the position of the map point corresponding to the second target feature point has converged. In the case where the position of the second target feature point, i.e., the map point corresponding to the second feature point, has converged, i.e., the three-dimensional position of the map point has converged, the three-dimensional position information of the map point whose position has converged may no longer be updated.
[0188] Among them, the uncertainty interval length corresponding to the second target feature point can be expressed as:
[0189]
[0190] In this case, after the position of the map point corresponding to the second feature point in the cylindrical image serving as the feature key image in the first sliding window converges and the map point corresponding to the second feature point meets the preset output conditions, it can be output immediately, or it can be output when the cylindrical image where the second feature point is located slides out of the first sliding window.
[0191] For the map point corresponding to the output second feature point, the feature descriptor corresponding to the map point, i.e., the BRIEF descriptor, is calculated using all cylindrical images of the map point corresponding to the second feature point. This is used to construct a feature point map. The process of calculating the feature descriptor corresponding to the map point using all cylindrical images of the map point corresponding to the second feature point can be: calculating the feature descriptor corresponding to the map point using the feature point corresponding to the map point in all cylindrical images of the map point corresponding to the second feature point. For example: the feature descriptors corresponding to the feature points corresponding to the map point in all cylindrical images of the map point corresponding to the second feature point are fused to obtain the feature descriptor corresponding to the map point.
[0192] After updating the three-dimensional position information of the map point corresponding to the second feature point corresponding to the map point in the first multiple groups of cylindrical images as the feature key images, and attempting to generate the map point for the first feature point that does not correspond to the map point, i.e., the three-dimensional position information of the map point, it is necessary to supplement the feature points of the current cylindrical image. Accordingly, the feature point supplementation process can be: using the three-dimensional position information and current posture information of the map point corresponding to the current second feature point of the first multiple groups of cylindrical images as the feature key images, and / or a preset feature point extraction algorithm, to determine the feature points in the current cylindrical image.
[0193] Specifically, the current cylindrical image may be divided to obtain a plurality of regional images, and then, the map points corresponding to the current second feature points of the first plurality of cylindrical images as feature key images are projected to the plurality of regional images corresponding to the current cylindrical image using the three-dimensional position information of the map points corresponding to the current second feature points of the first plurality of cylindrical images as feature key images, and the current posture information. It is determined whether there is a regional image that does not contain the projection point of the map point from the plurality of regional images, and if so, feature points are extracted from the regional image using a preset feature point extraction algorithm to obtain feature points in the current cylindrical image, and if not, it is not necessary to extract feature points from the regional image using the preset feature point extraction algorithm.
[0194] Among them, the map points corresponding to the current second feature point include: map points that already existed in the first sliding window before the current cylindrical image was used as the feature key image, and map points newly generated after the current cylindrical image entered the first sliding window as the feature key image.
[0195] In one implementation, the step 029 may include the following steps 0291-0294:
[0196] 0291: Divide the current cylindrical image according to the preset number of feature points to obtain multiple regional images corresponding to the current cylindrical image.
[0197] 0292: Using the three-dimensional position information of the map points corresponding to the current second feature points of the previous multiple groups of cylindrical images as feature key images, and the current posture information, the map points corresponding to the current second feature points of the previous multiple frames of cylindrical images are projected to multiple regional images corresponding to the current cylindrical image.
[0198] 0293: If the regional image contains a projection point corresponding to a map point corresponding to the current second feature point of the previous multiple frames of cylindrical images, the projection point corresponding to the map point corresponding to the current second feature point of the previous multiple frames of cylindrical images is determined as a feature point in the current cylindrical image.
[0199] 0294: If the regional image does not contain the projection point corresponding to the map point corresponding to the current second feature point of the previous multiple frames of cylindrical images, use a preset feature point extraction algorithm and a preset extraction threshold to extract feature points of the regional image; if no feature points are extracted from the regional image, use a preset feature point extraction algorithm and half of the preset extraction threshold to extract feature points of the regional image to obtain feature points in the regional image; if multiple feature points are extracted from the same image position in the regional image, then the point with the largest corresponding response value among the multiple feature points extracted from the image position is determined as the feature point in the regional image.
[0200] In this implementation, the electronic device can determine the number of image division regions based on the preset number of feature points M, taking b=round(sqrt(M)), and divide the current cylindrical image based on the number of image division regions to obtain b×b regional images corresponding to the current cylindrical image.
[0201] By using the current posture information and the position conversion relationship between the auxiliary vehicle and the image acquisition device, the device posture information when acquiring the current auxiliary image corresponding to the current cylindrical image is determined as the current device posture information corresponding to the current cylindrical image.
[0202] The first multiple groups of the current cylindrical image in the first sliding window are used as the three-dimensional position information of the map points corresponding to the current second feature points of the cylindrical image of the feature key image, as well as the current device posture information and the internal parameter matrix of the image acquisition device, and the map points corresponding to the current second feature points of the previous multiple frames of cylindrical images are projected to multiple regional images corresponding to the current cylindrical image. If the regional images contain the projection points corresponding to the map points corresponding to the current second feature points of the previous multiple frames of cylindrical images, the projection points corresponding to the map points corresponding to the current second feature points of the previous multiple frames of cylindrical images are determined as the feature points in the current cylindrical image.
[0203] If the regional image does not contain the projection point corresponding to the map point corresponding to the current second feature point of the previous multiple-frame cylindrical image, the regional image is subjected to feature point extraction using a preset feature point extraction algorithm and a preset extraction threshold; if no feature point is extracted from the regional image, the regional image is subjected to feature point extraction using a preset feature point extraction algorithm and half of the preset extraction threshold to obtain feature points in the regional image; if multiple feature points are extracted from the same image position in the regional image, the point with the largest corresponding response value among the multiple feature points extracted from the image position is determined as the feature point in the regional image. The response value corresponding to the feature point is the value determined by the preset feature point extraction algorithm for each extracted feature point.
[0204] The same image position means that the distance between the positions of the feature points extracted based on the preset extraction threshold and half of the preset extraction threshold is lower than the preset threshold.
[0205] In the map construction process for determining the memory parking scenario, no new map points that converge in position and meet the preset output conditions are determined. Alternatively, after each map point that converges in position and meets the preset output conditions and its corresponding feature descriptor are determined, the feature point map corresponding to the target scenario is constructed using the determined map points that converge in position and meet the preset output conditions and their corresponding feature descriptors.
[0206] In one case, the current cylindrical image includes multiple frames of images. In the process of determining the feature point map, the process described for the cylindrical image is a description process for each image in the cylindrical image. Correspondingly, the process described for each target cylindrical image is a description process for each image in each target cylindrical image. In the process of projecting the first feature point in the target cylindrical image, the first feature point of each image in the target cylindrical image is projected onto the image captured by the same image capture device in the current cylindrical image.
[0207] In another embodiment of the present invention, after the step of obtaining a new current inverse depth value and its uncertainty corresponding to the second target feature point by using the sampled inverse depth value and its uncertainty of the second sampling point corresponding to the minimum similarity value corresponding to the second target feature point, and the current inverse depth value and its uncertainty corresponding to the second target feature point, the method may further include the following step 031:
[0208] 031: If the update amount between the new current inverse depth value corresponding to the second target feature point and the previous current inverse depth value is less than a preset update threshold, the next layer image of the current participating layer image of the image pyramid corresponding to the current cylindrical image is determined as the new current participating layer image of the image pyramid corresponding to the current cylindrical image corresponding to the second target feature point.
[0209] When the three-dimensional position information of the map point corresponding to the second feature point is updated for the first time, that is, when the depth value of the map point corresponding to the second feature point is updated for the second time, the cylindrical image most recently input as the feature key frame in the first sliding window, such as the current participating layer image corresponding to the current cylindrical image, is the top layer of the corresponding image pyramid, that is, the L-1th layer with the smallest size.
[0210] After each update of the three-dimensional position information of the map point corresponding to the second feature point, i.e., the depth value of the map point corresponding to the second feature point is updated, if the update amount between the new current inverse depth value corresponding to the second feature point, i.e., the current inverse depth value after the update, and the previous current inverse depth value, i.e., the current inverse depth value before the update, is less than the preset update threshold, the current participating layer image corresponding to the second target feature point is replaced with the next layer image of the current participating layer image in the image pyramid where the current participating layer image is located, for the next update of the three-dimensional position information of the map point corresponding to the second target feature point.
[0211] In another embodiment of the present invention, the S106 may include the following steps 041-048:
[0212] 041: Convert the current posture information from three dimensions to two dimensions to obtain the current two-dimensional posture information corresponding to the current posture information.
[0213] 042: Perform convolution processing on the current segmented image to obtain the convolved current segmented image.
[0214] 043: For each semantic pixel point in the current segmented image after convolution, use the image position information of the semantic pixel point to back-project the semantic pixel point into the body coordinate system of the auxiliary vehicle to obtain the first spatial position information of the semantic space point corresponding to the semantic pixel point.
[0215] 044: For each semantic pixel point in the current segmented image after convolution, the semantic space point corresponding to the semantic pixel point is projected to each image in the front and back V groups of segmented images after convolution using the first spatial position information of the semantic space point corresponding to the semantic pixel point, so as to obtain the semantic projection point of the semantic pixel point in each image in the front and back V groups of segmented images after convolution.
[0216] 045: For each semantic pixel point in the current segmented image after convolution, the semantic projection point of the semantic pixel point in each image of the front and rear V groups of segmented images after convolution is back-projected to the body coordinate system of the auxiliary vehicle to obtain the second spatial position information corresponding to the semantic pixel point in each image.
[0217] 046: For each semantic pixel point in the current segmented image after convolution, the consistency result corresponding to the semantic pixel point and each image in the front and back V groups of segmented images is determined by using the first spatial position information of the semantic space point corresponding to the semantic pixel point, the second spatial position information corresponding to the semantic pixel point in each image, the pixel value of the semantic pixel point, and the pixel value of the semantic projection point of the semantic pixel point in each image in the front and back V groups of segmented images.
[0218] 047: For each semantic pixel in the current segmented image after convolution, if the ratio of the number of consistency results corresponding to the semantic pixel and each image in the previous and next V groups of segmented images, which characterizes the consistency between the semantic pixel and the corresponding image, to the total number of consistency results corresponding to the semantic pixel exceeds the third ratio threshold, then the semantic space point corresponding to the semantic pixel is determined to be a semantic map point, and the first spatial position information corresponding to the semantic space point corresponding to the semantic pixel is the spatial position information of the semantic map point.
[0219] 048: Construct a semantic map corresponding to the target scene based on the spatial position information corresponding to the determined semantic map point and the current two-dimensional posture information corresponding to the current posture information.
[0220] It can be understood that in the process of stitching the current auxiliary image, the current auxiliary image is stitched from an angle of looking down at the ground, and the plane where the stitched current auxiliary image is located is parallel to the ground and coincides with the plane where the horizontal and vertical coordinate axes of the body coordinate system of the auxiliary vehicle are located. Accordingly, the conversion relationship between each pixel point in the stitched current auxiliary image and the point of the body coordinate system of the auxiliary vehicle is recorded.
[0221] The electronic device can construct a semantic map corresponding to the target scene through the ground semantic mapping module. In this implementation, when the current segmented image meets the second key frame condition, the current segmented image can be used as a new semantic key image to construct a semantic map corresponding to the target scene. The process of constructing the semantic map corresponding to the target scene can be as follows:
[0222] Among them, the ground semantic mapping module takes the segmented image of each frame as the semantic key image and the corresponding auxiliary vehicle posture information as input, and takes the point cloud on the same layer of semantic markings on the two-dimensional plane, that is, the map information of the point cloud on the two-dimensional ground as output.
[0223] like Figure 4BAs shown, when the current stitched image meets the second key frame condition, as shown in 4B, the "stitched segmented image frame" is determined as a mapping frame by the "mapping frame determination" unit, that is, it is input as a semantic key frame into the second sliding window maintained by the ground semantic mapping module. And after the rear V frames of the current stitched image are input into the second sliding window as the segmented image of the semantic key image, the front V frames of the current stitched image are used as the segmented image of the semantic key image, and the current stitched image and the rear V frames of the current stitched image are used as the segmented images of the semantic key image to construct the semantic map point corresponding to the current stitched image. Specifically:
[0224] When the current segmented image is obtained or the current segmented image is input into the second sliding window, the current posture information corresponding to the current segmented image is converted from three dimensions to two dimensions to obtain the current two-dimensional posture information corresponding to the current posture information. Specifically, the translation amount in the vertical axis direction in the current posture information, i.e., the vertical axis coordinate value, is discarded, and the rotation components in the pitch direction and the roll direction in the current posture information are discarded to convert the current posture information from three dimensions to two dimensions to obtain the current two-dimensional posture information corresponding to the current posture information, and the current two-dimensional posture information replaces the posture information of the auxiliary vehicle corresponding to the current segmented image.
[0225] The current segmented image is convolved to obtain the current segmented image after convolution. The convolution kernel used in the convolution of the current segmented image is a Gaussian convolution kernel, which is the same as the convolution kernel used in the convolution of other segmented images as semantic key images.
[0226] Subsequently, after obtaining the convolved segmented image corresponding to the segmented image of the semantic key image and the two-dimensional information corresponding to the posture information of the auxiliary vehicle, for each semantic pixel point u in the convolved current segmented image, use the image position information of the semantic pixel point u and the pre-recorded conversion relationship between the pixel points in the current segmented image and the points in the body coordinate system of the auxiliary vehicle to back-project the semantic pixel point u to the body coordinate system of the auxiliary vehicle to obtain the first spatial position information of the semantic space point U corresponding to the semantic pixel point u.
[0227] Using the first spatial position information of the semantic space point U corresponding to the semantic pixel point, the two-dimensional posture information of the auxiliary vehicle corresponding to each image in the convolved front and rear V frame segmentation images, the current two-dimensional posture information corresponding to the current posture information, and the pre-recorded conversion relationship between the pixel point in each image in the convolved front and rear V frame segmentation images and the point in the body coordinate system of the auxiliary vehicle, the semantic space point U corresponding to the semantic pixel point is projected to each image in the convolved front and rear V frame segmentation images to obtain the semantic projection point u of the semantic pixel point in each image in the convolved front and rear V frame segmentation images f .
[0228] Among them, the two-dimensional posture information of the auxiliary vehicle corresponding to each image in the front and rear V frame segmentation images after convolution is: the posture information of the auxiliary vehicle corresponding to each image in the front and rear V frame segmentation images is converted from three-dimensional to two-dimensional.
[0229] For each semantic pixel point in the current segmented image after convolution, the semantic projection point u of the semantic pixel point in each image of the V frame segmented images before and after convolution is converted into the semantic projection point u of the semantic pixel point in each image of the V frame segmented images before and after convolution by using the pre-recorded conversion relationship between the pixel point in each image and the point of the body coordinate system of the auxiliary vehicle. f , back-projected to the body coordinate system of the auxiliary vehicle, and the three-dimensional point U corresponding to the semantic pixel point of each image is obtained f The second spatial position information.
[0230] For each semantic pixel in the current segmented image after convolution, the first spatial position information of the semantic space point U corresponding to the semantic pixel is used to obtain the three-dimensional point U corresponding to the semantic pixel in each image. f the second spatial position information of the semantic pixel point u, the pixel value of the semantic pixel point u and the semantic projection point u of the semantic pixel point in each image of the previous and next V frame segmentation images f The pixel value of is used to determine the consistency result of the semantic pixel point u and each image in the previous and next V frame segmentation images. The following formula (4) is used to determine the consistency result of the semantic pixel point u and each image in the previous and next V frame segmentation images:
[0231]
[0232] Among them, I(u) represents the pixel value of semantic pixel u, represents the pixel value of the semantic projection point of the semantic pixel point u in the j-th frame image in the previous and subsequent V frame segmentation images, where the value range of j is 1 to 2V and integers therebetween; U represents the first spatial position information of the semantic space point U corresponding to the semantic pixel point u; Represents the 3D point U corresponding to the semantic projection point of the semantic pixel u in the j-th frame image in the previous and next V frame segmentation images f The second spatial position information of θ u represents the pixel value threshold, θ U Represents the spatial distance threshold.
[0233] If the absolute value of the pixel difference between the pixel value of the semantic pixel point u and the pixel value of the semantic projection point of the semantic pixel point u in the j-th frame image of the previous and next V-frame segmentation images is less than the pixel value threshold; and the first spatial position information of the semantic space point U corresponding to the semantic pixel point u is the same as the three-dimensional point U corresponding to the semantic projection point of the semantic pixel point u in the j-th frame image of the previous and next V-frame segmentation images. f If the distance between the second spatial position information is less than the spatial distance threshold, then the semantic pixel point u and the semantic projection point of the semantic pixel point u in the j-th frame image in the previous and next V frame segmentation images meet the consistency, that is, the consistency result corresponding to the semantic pixel point and the j-th frame image in the previous and next V frame segmentation images meets the consistency result.
[0234] On the contrary, if the absolute value of the pixel difference between the pixel value of the semantic pixel point u and the pixel value of the semantic projection point of the semantic pixel point u in the j-th frame image of the previous and next V-frame segmentation images is not less than the pixel value threshold; or the first spatial position information of the semantic space point U corresponding to the semantic pixel point u and the three-dimensional point U corresponding to the semantic projection point of the semantic pixel point u in the j-th frame image of the previous and next V-frame segmentation images f If the distance between the second spatial position information is not less than the spatial distance threshold, then the semantic pixel point u and the semantic projection point of the semantic pixel point u in the j-th frame image in the previous and next V frame segmentation images do not satisfy the consistency, that is, the consistency result corresponding to the semantic pixel point and the j-th frame image in the previous and next V frame segmentation images does not satisfy the consistency result.
[0235] For each semantic pixel in the current segmented image after convolution, if the ratio of the number of consistency results corresponding to the semantic pixel u and each image in the previous and next V frame segmented images, which indicates that the semantic pixel is consistent with the corresponding image, to the total number of consistency results corresponding to the semantic pixel exceeds the third ratio threshold, then the semantic space point corresponding to the semantic pixel is determined to be a semantic map point, and the first spatial position information corresponding to the semantic space point corresponding to the semantic pixel is the spatial position information of the semantic map point. The value of the second ratio threshold can be V.
[0236] Based on the spatial position information corresponding to the determined semantic map point and the current two-dimensional posture information corresponding to the current posture information, a semantic map corresponding to the target scene is constructed. It can be understood that the spatial position information corresponding to the determined semantic map point is the spatial position information in the body coordinate system of the auxiliary vehicle, wherein the vertical axis coordinate value in the spatial position information is 0, and the determined semantic map point is converted from the body coordinate system of the auxiliary vehicle to the world coordinate system using the spatial position information corresponding to the determined semantic map point and the current two-dimensional posture information corresponding to the current posture information, so as to construct a semantic map corresponding to the target scene.
[0237] In one case, after determining the map point corresponding to the current segmented image, the spatial position information of the map point corresponding to the current segmented image can be output immediately; or when the current segmented image outputs the second sliding window, the spatial position information of the map point on it can be output, which is both possible.
[0238] In another embodiment of the present invention, the method may further include the following steps 051-058:
[0239] 051: Obtain an image of the vehicle to be parked in the target scene as a backup image.
[0240] 052: Perform semantic segmentation detection on the spliced backup image to obtain a semantic segmentation image corresponding to the spliced backup image.
[0241] 053: Based on the spare image, determine a spare cylindrical image corresponding to the spare image.
[0242] 054: Determine the initial position information of the vehicle to be parked by using the backup cylinder image and the wheel speed information corresponding to the backup image.
[0243] 055: Determine the first position information of the vehicle to be parked by using the initial position information of the vehicle to be parked, the semantic segmentation image and the semantic map corresponding to the target scene;
[0244] 056: Perform feature point detection on the spare cylindrical image to determine each spare feature point in the spare cylindrical image and its image position information.
[0245] 057: Determine second posture information of the vehicle to be parked based on the initial posture information of the vehicle to be parked, each backup feature point in the backup cylindrical image and its image position information, and a feature point map corresponding to the target scene.
[0246] 058: Determine target posture information of the vehicle to be parked using the first posture information and / or the second posture information, so that the vehicle to be parked can automatically park based on the target posture information.
[0247] In this implementation, after constructing a feature point map and a semantic image for the target scene, when the verification result representation map of the feature point map is available, the vehicle traveling in the target scene can be positioned using the feature point map and the semantic image corresponding to the target scene, thereby achieving automatic parking.
[0248] The images captured by the four image acquisition devices set at the front, back, left and right of the vehicle to be parked in the target scene are obtained as backup images. The backup images are spliced, and the semantic segmentation detection is performed on the spliced backup images using a preset semantic segmentation model to obtain a semantic segmentation image corresponding to the spliced backup images. The backup images are converted into cylindrical images, and the backup cylindrical images corresponding to the backup images are determined. The initial posture information of the vehicle to be parked is determined using the backup cylindrical images and the wheel speed information corresponding to the backup images.
[0249] Then, the initial posture information of the vehicle to be parked is used to determine the local semantic map area corresponding to the initial posture information from the semantic map corresponding to the target scene; then, the pixel points corresponding to each semantic target in the semantic segmentation image and each semantic target in the local semantic map area are matched to optimize the initial posture information and obtain the first posture information of the vehicle to be parked. Among them, the semantic targets include but are not limited to: traffic sign targets such as lane lines, parking spaces, and indicator arrows.
[0250] Using a preset feature point extraction algorithm, feature point detection is performed on the spare cylindrical image to determine each spare feature point in the spare cylindrical image and its image position information. Using the initial posture information of the vehicle to be parked, a local feature point map area corresponding to the initial posture information is determined from the feature point map corresponding to the target scene. Using each spare feature point in the spare cylindrical image and its image position information, as well as the position information of the feature points in the local feature point map area, the initial posture information is optimized to obtain the second posture information of the vehicle to be parked.
[0251] Furthermore, in one implementation, the first pose information and the second pose information are fused to determine the target pose information of the vehicle to be parked, so that the vehicle to be parked can be automatically parked based on the target pose information. In one case, the fusion of the first pose information and the second pose information can be: using a framework such as an extended Kalman filter (EKF) to fuse the first pose information and the second pose information, and outputting the fused pose information as the target pose information of the vehicle to be parked.
[0252] In another implementation, after determining the initial posture information of the vehicle to be parked, the initial posture information, the semantic segmentation image and the semantic map corresponding to the target scene are used to construct constraints for semantic segmentation matching, wherein the constraints for semantic segmentation matching include: image position information of each semantic pixel in the semantic segmentation image, the difference between the projection position information of the map points corresponding to each semantic pixel in the semantic map corresponding to the target scene and the projection position information of the projection points in the semantic segmentation image, and the projection position information of the map points corresponding to each semantic pixel in the semantic map corresponding to the target scene and the projection position information of the projection points in the semantic segmentation image: determined by the initial posture information of the vehicle to be parked, the position information of each map pixel in the semantic map corresponding to the target scene and the internal and external parameters of the image acquisition device of the semantic segmentation image.
[0253] Perform feature point detection on the spare cylindrical image to determine each spare feature point in the spare cylindrical image and its image position information; and use the initial posture information, each spare feature point in the spare cylindrical image and its image position information, and the feature point map corresponding to the target scene to construct feature point matching constraints, wherein the feature point matching constraints include: image position information of each spare feature point in the spare cylindrical image, difference between map points corresponding to each spare feature point in the feature point map corresponding to the target scene and projection position information of projection points in the spare cylindrical image, and map points corresponding to each spare feature point in the feature point map corresponding to the target scene and projection position information of projection points in the spare cylindrical image: determined by the initial posture information of the vehicle to be parked, position information of map points corresponding to each spare feature point in the feature point map corresponding to the target scene, and internal and external parameters of the virtual cylindrical camera corresponding to the spare cylindrical image.
[0254] Then, the constraints of semantic segmentation matching and feature point matching are weighted and combined into an optimization problem, that is, a target equation is constructed, and the target equation is solved. The current value of the initial posture information of the vehicle to be parked when the equation value of the target equation is minimized is used as the target posture information of the vehicle to be parked.
[0255] In another implementation, the first posture information may be determined as the target posture information of the parked vehicle, or the second posture information may be determined as the target posture information of the parked vehicle. This is both possible.
[0256] Corresponding to the above method embodiment, the present invention provides a map construction device for memorizing parking scenes, such as Figure 5As shown, the device may include: a first acquisition module 510, configured to obtain an image captured by the auxiliary vehicle at the current moment for the target scene, as the current auxiliary image; a first segmentation module 520, configured to perform semantic segmentation detection on the spliced current auxiliary image to obtain the current segmented image; a first determination module 530, configured to determine the current cylindrical image based on the current auxiliary image; a first posture determination module 540, configured to use the current cylindrical image and the wheel speed information corresponding to the current auxiliary image to determine the current posture information of the auxiliary vehicle at the current moment; a feature point mapping module 550, configured to use the current posture information, the current cylindrical image and the wheel speed information corresponding to the current auxiliary image if the current cylindrical image meets the first key frame condition; The image and the first multiple groups of the current cylindrical image as the image position information of the first feature point in the cylindrical image of the feature key image and the three-dimensional position information of the map point corresponding to the second feature point are used to construct a feature point map corresponding to the target scene, wherein the first feature point is a feature point that does not currently correspond to a map point; the semantic mapping module 560 is configured to construct a semantic map corresponding to the target scene based on the current segmented image, the current posture information, the front and rear V frames of the current segmented image as segmented images of the semantic key image and the corresponding body posture information of the auxiliary vehicle if the current segmented image meets the second key frame condition, so as to support the automatic parking of the target scene vehicle through the feature point map and the semantic map corresponding to the target scene.
[0257] By applying the embodiments of the present invention, a feature point map corresponding to the target scene can be constructed based on the current cylindrical image corresponding to the current auxiliary image to obtain a feature point map with higher accuracy. At the same time, a semantic map corresponding to the target scene can be constructed based on the current segmented image corresponding to the current auxiliary image. The feature point map and the semantic map can be subsequently used together as parking locations for vehicles in the target scene. There is no need to add other auxiliary equipment to assist in vehicle positioning, thereby reducing the cost of memorizing parking scenes and improving the universality of the algorithm, and having good replicability and scalability.
[0258] In another embodiment of the present invention, the device further includes: a verification module (not shown in the figure), configured to verify the feature point map, wherein the verification module includes:
[0259] The first determining unit (not shown in the figure) is configured to determine, for each feature key image, from the n frames of non-feature key images before and after the feature key image, a non-feature key image which is farthest from the feature key image and from which feature information has been extracted; and form an associated frame pair with the feature key image, wherein the feature key image is a cylindrical image that meets the first key frame condition, and the non-feature key image is a cylindrical image that does not meet the first key frame condition, and the feature information includes: image position information of feature points in the corresponding non-feature key image and feature descriptors;
[0260] The second determination unit (not shown in the figure) is configured to determine, for each associated frame pair, from the feature points of the non-feature key image in the associated frame pair, the feature points corresponding to the map point corresponding to the feature key image in the associated frame pair; and for each map point corresponding to the feature key image in the associated frame pair, screen out the feature points that meet the preset associated point conditions from the determined feature points corresponding to the map point, and determine them as the associated feature points corresponding to the map point corresponding to the feature key image in the associated frame pair, wherein the preset associated point conditions include: among the feature points whose Hamming distance between the corresponding feature descriptor and the feature descriptor of the map point corresponding to the feature key image in the associated frame pair does not exceed a first distance threshold, and whose location and the distance from the projection point of the map point corresponding to the feature key image in the associated frame pair on the non-feature key image do not exceed a second distance threshold, the feature point whose Hamming distance between the corresponding feature descriptor and the feature descriptor of the map point corresponding to the feature key image in the associated frame pair is the smallest;
[0261] The third determination unit (not shown in the figure) is configured to determine the verification result corresponding to the feature point map based on the number of associated feature points corresponding to the map points corresponding to the feature key images in all associated frame pairs, and the total number of map points corresponding to the feature key images in all associated frame pairs.
[0262] In another embodiment of the present invention, the third determination unit is specifically configured to calculate a ratio of the number of associated feature points corresponding to the map points corresponding to the feature key images in all the associated frame pairs determined and the total number of map points corresponding to the feature key images in all the associated frame pairs as the first ratio;
[0263] If the first ratio is lower than a first map verification threshold, determining that the initial verification result corresponding to the feature point map is a failure;
[0264] If the first ratio is not lower than the first verification threshold, for each target non-feature key image, using a preset given rate and the number of associated feature points in the target non-feature key image, determine the target associated feature points corresponding to the target non-feature key image, wherein the target non-feature key image is: a non-feature key image containing associated feature points;
[0265] For each target non-feature key image, using preset pose disturbance parameters, the vehicle body pose information corresponding to the target non-feature key image is disturbed to determine the disturbed vehicle body pose information corresponding to the target non-feature key image;
[0266] For each target non-feature key image, using the image position information of the target-associated feature points corresponding to the target non-feature key image and the three-dimensional position information of the map points corresponding to the target-associated feature points corresponding to the target non-feature key image, optimize the disturbed vehicle body posture information corresponding to the target non-feature key image to obtain the optimized vehicle body posture information corresponding to the target non-feature key image;
[0267] The vehicle body posture information corresponding to each target non-feature key image is used, and the vehicle body posture information is optimized to determine the verification result corresponding to the feature point map.
[0268] In another embodiment of the present invention, the first key frame condition includes: the difference value between the posture information of the corresponding auxiliary vehicle and the posture information of the auxiliary vehicle corresponding to the latest cylindrical image as the feature key image satisfies a preset difference condition;
[0269] The second key frame condition includes: based on the posture information of the corresponding auxiliary vehicle and the posture information of the auxiliary vehicle corresponding to the latest segmented image as the semantic key image, the posture increment of the auxiliary vehicle determined satisfies the plane assumption condition, and the posture increment of the auxiliary vehicle represents that the position change of the auxiliary vehicle exceeds the first position threshold, and the heading angle change exceeds the first angle threshold; or based on the posture information of the corresponding auxiliary vehicle and the posture information of the auxiliary vehicle corresponding to the latest segmented image as the semantic key image, the posture increment of the auxiliary vehicle determined does not meet the plane assumption condition, and the posture increment of the auxiliary vehicle represents that the position change of the auxiliary vehicle exceeds the second position threshold, and the heading angle change exceeds the second angle threshold, wherein the second position threshold is greater than the first position threshold, and the second angle threshold is greater than the first angle threshold.
[0270] In another embodiment of the present invention, the current auxiliary image is an image captured by an image capture device provided in the auxiliary vehicle;
[0271] The first determination module 530 is specifically configured to, for each current auxiliary image, back-project each cylindrical pixel point in the preset cylindrical image corresponding to the current auxiliary image from the cylindrical image coordinate system where the cylindrical pixel point is located to the device coordinate system of the image acquisition device corresponding to the current auxiliary image, and determine the spatial position information of each cylindrical pixel point;
[0272] For each current auxiliary image, based on the spatial position information of each cylindrical pixel point in the preset cylindrical image corresponding to the current auxiliary image, determine the projection position information of each cylindrical pixel point in the image coordinate system where the current auxiliary image is located;
[0273] For each current auxiliary image, the pixel value corresponding to the projection position information of each cylindrical pixel point in the current auxiliary image is determined by using the pixel value of the pixel point within the preset range of the projection position information of each cylindrical pixel point in the current auxiliary image to determine the current cylindrical image corresponding to the current auxiliary image.
[0274] In another embodiment of the present invention, the feature point mapping module 550 is specifically configured to determine the image pyramid corresponding to the current cylindrical image using a preset image pyramid algorithm and the current cylindrical image;
[0275] For each first feature point in each target cylindrical image in the first multiple groups of cylindrical images of the current cylindrical image as feature key images, a preset inverse depth value determination method is used to determine the inverse depth value sequence corresponding to the first feature point and the uncertainty corresponding to each sampled inverse depth value, wherein the preset inverse depth value determination method includes: on the back-projection ray corresponding to the first feature point, binary sampling is performed on the inverse depth value within a preset inverse depth value range to obtain a first sampling point corresponding to each inverse depth value obtained by sampling corresponding to the first feature point; sampling is terminated until the distance between the projection points of each two adjacent first sampling points projected onto the designated layer image of the image pyramid corresponding to the current cylindrical image does not exceed 1 pixel distance; the target cylindrical image is: an image whose vehicle body position distance determined based on the posture information of the corresponding auxiliary vehicle and the current posture information is less than a third distance threshold;
[0276] For each first feature point in each target cylindrical image, based on the image position information of the first feature point and its corresponding inverse depth value sequence, the first sampling point corresponding to each sampled inverse depth value in the inverse depth value sequence is projected onto the designated layer image as the projection point of each first sampling point; based on the pixel value of the first feature point and the pixel value of the pixel point in the first neighborhood corresponding to the first feature point and the pixel value of the pixel point in the first area corresponding to the projection point of each first sampling point, the similarity value corresponding to each first sampling point is determined;
[0277] For each target cylindrical image, from the first feature points in the target cylindrical image, determine the first feature point whose total number of corresponding valid first sampling points is greater than the first quantity threshold, whose corresponding first sampling point with the smallest numerical value corresponds to a similarity value that does not exceed the preset similarity threshold, and whose ratio of the similarity value corresponding to the first sampling point with the second smallest numerical value to the similarity value corresponding to the first sampling point with the smallest numerical value is not less than the first ratio threshold as the second feature point; and determine the sampling inverse depth value of the first sampling point corresponding to the similarity value with the smallest numerical value corresponding to the second feature point as the current inverse depth value corresponding to the second feature point; and determine the three-dimensional position information of the map point corresponding to the second feature point based on the current inverse depth value corresponding to the second feature point and the image position information of the second feature point; wherein the valid first sampling point is: the first sampling point whose projection point projected onto the designated layer image is located in the valid imaging area;
[0278] For each second feature point in each cylindrical image of the first plurality of groups of cylindrical images as feature key images, a sampling range is determined using the current inverse depth value and the current uncertainty corresponding to the second feature point; on the back-projection ray corresponding to the second feature point, the inverse depth value is sampled in binary within the sampling range to obtain a second sampling point corresponding to the second feature point, until the distance between the projection points of each two adjacent second sampling points corresponding to the second feature point projected onto the current participating layer image of the image pyramid corresponding to the current cylindrical image corresponding to the second feature point does not exceed 1 pixel distance, the sampling is terminated, and an inverse depth value sequence corresponding to the second feature point and the uncertainty corresponding to each sampled inverse depth value are obtained;
[0279] For each second feature point in each cylindrical image in the first plurality of groups of cylindrical images serving as feature key images, based on the image position information of the second feature point and its corresponding inverse depth value sequence, the second sampling point corresponding to each sampled inverse depth value in the inverse depth value sequence is projected onto the current participating layer image to determine the projection point of each second sampling point; based on the pixel value of the pixel point in the first neighborhood corresponding to the second feature point and the pixel value of the pixel point in the first area corresponding to the projection point of each second sampling point, the similarity value corresponding to each second sampling point is determined;
[0280] For each cylindrical image in the first plurality of groups of cylindrical images as feature key images, from the second feature points in the cylindrical image, determine, as the second target feature point, a second feature point whose total number of corresponding valid second sampling points is greater than a first quantity threshold, whose corresponding second sampling point with the smallest numerical value has a similarity value that does not exceed a preset similarity threshold, and whose ratio of the similarity value corresponding to the second sampling point with the second smallest numerical value to the similarity value corresponding to the second sampling point with the smallest numerical value is not less than a first ratio threshold; for each second target feature point, using the sampled inverse depth value and its uncertainty of the second sampling point corresponding to the smallest numerical similarity value corresponding to the second target feature point, and the current inverse depth value and its current uncertainty corresponding to the second target feature point, obtain a new current inverse depth value and its new current uncertainty corresponding to the second target feature point; based on the new current inverse depth value corresponding to the second target feature point and the image position information of the second feature point, update the three-dimensional position information of the map point corresponding to the second target feature point;
[0281] If the current participating layer image corresponding to the second target feature point is the bottom layer image of the image pyramid corresponding to the current cylindrical image, and the number of updates of the three-dimensional position information of the map point corresponding to the second target feature point is greater than a preset number threshold, and the ratio of the uncertainty interval length corresponding to the second target feature point to the new current inverse depth value corresponding to the second target feature point is less than a second ratio threshold, it is determined that the position of the map point corresponding to the second target feature point converges, and the uncertainty interval length corresponding to the second target feature point is determined based on the new current inverse depth value corresponding to the second target feature point and its uncertainty;
[0282] Determine the feature points in the current cylindrical image by using the three-dimensional position information of the map points corresponding to the current second feature points of the first plurality of groups of cylindrical images as feature key images and the current posture information, and / or a preset feature point extraction algorithm;
[0283] A feature point map corresponding to the target scene is constructed using the determined map points whose positions converge and satisfy preset output conditions and their corresponding feature descriptors, wherein the preset output conditions are: the number of frames of the cylindrical image containing the feature point corresponding to the map point exceeds a preset frame number threshold, and the three-dimensional position information represents that the map point is not located underground, and the feature descriptor corresponding to the map point is determined based on the feature descriptor of the feature point corresponding to the map point.
[0284] In another embodiment of the present invention, the feature point mapping module 550 is specifically configured to divide the current cylindrical image according to a preset number of feature points to obtain a plurality of regional images corresponding to the current cylindrical image;
[0285] Using the three-dimensional position information of the map points corresponding to the current second feature points of the first multiple groups of cylindrical images as feature key images and the current posture information, the map points corresponding to the current second feature points of the first multiple frames of cylindrical images are projected to multiple regional images corresponding to the current cylindrical image;
[0286] If the regional image contains a projection point corresponding to a map point corresponding to the current second feature point of the previous multiple-frame cylindrical image, determine the projection point corresponding to the map point corresponding to the current second feature point of the previous multiple-frame cylindrical image as a feature point in the current cylindrical image;
[0287] If the regional image does not contain the projection point corresponding to the map point corresponding to the current second feature point of the previous multiple frames of cylindrical images, feature points of the regional image are extracted using a preset feature point extraction algorithm and a preset extraction threshold; if no feature points are extracted from the regional image, feature points of the regional image are extracted using the preset feature point extraction algorithm and half of the preset extraction threshold to obtain feature points in the regional image; if multiple feature points are extracted from the same image position in the regional image, the point with the largest corresponding response value among the multiple feature points extracted from the image position is determined as the feature point in the regional image.
[0288] In another embodiment of the present invention, the feature point mapping module 550 is further configured to, after the step of obtaining a new current inverse depth value and its uncertainty corresponding to the second target feature point using the sampled inverse depth value and its uncertainty of the second sampling point corresponding to the minimum similarity value corresponding to the second target feature point, and the current inverse depth value and its uncertainty corresponding to the second target feature point, if an update amount between the new current inverse depth value corresponding to the second target feature point and the previous current inverse depth value is less than a preset update threshold, determine the next layer image of the current participating layer image of the image pyramid corresponding to the current cylindrical image as the new current participating layer image of the image pyramid corresponding to the current cylindrical image corresponding to the second target feature point.
[0289] In another embodiment of the present invention, the semantic mapping module 560 is specifically configured to convert the current posture information from three dimensions to two dimensions to obtain current two-dimensional posture information corresponding to the current posture information;
[0290] Performing convolution processing on the current segmented image to obtain a convolved current segmented image;
[0291] For each semantic pixel point in the current segmented image after the convolution, using the image position information of the semantic pixel point, back-projecting the semantic pixel point into the body coordinate system of the auxiliary vehicle to obtain first spatial position information of the semantic space point corresponding to the semantic pixel point;
[0292] For each semantic pixel point in the current segmented image after the convolution, using the first spatial position information of the semantic space point corresponding to the semantic pixel point, the semantic space point corresponding to the semantic pixel point is projected to each image in the front and back V frame segmented images after the convolution, so as to obtain the semantic projection point of the semantic pixel point in each image in the front and back V frame segmented images after the convolution;
[0293] For each semantic pixel point in the current segmented image after the convolution, the semantic projection point of the semantic pixel point in each of the segmented images of the previous and next V frames after the convolution is back-projected into the body coordinate system of the auxiliary vehicle to obtain the second spatial position information corresponding to the semantic pixel point in each image;
[0294] For each semantic pixel point in the current segmented image after the convolution, the consistency result corresponding to the semantic pixel point and each image in the previous and next V frame segmented images is determined by using the first spatial position information of the semantic space point corresponding to the semantic pixel point, the second spatial position information corresponding to the semantic pixel point in each image, the pixel value of the semantic pixel point, and the pixel value of the semantic projection point of the semantic pixel point in each image in the previous and next V frame segmented images;
[0295] For each semantic pixel in the current segmented image after the convolution, if the ratio of the number of consistency results corresponding to the semantic pixel and each image in the previous and next V frame segmented images, which characterizes the consistency between the semantic pixel and the corresponding image, to the total number of consistency results corresponding to the semantic pixel exceeds a third ratio threshold, then the semantic space point corresponding to the semantic pixel is determined to be a semantic map point, and the first spatial position information corresponding to the semantic space point corresponding to the semantic pixel is the spatial position information of the semantic map point;
[0296] Based on the determined spatial position information corresponding to the semantic map point and the current two-dimensional posture information corresponding to the current posture information, a semantic map corresponding to the target scene is constructed.
[0297] In another embodiment of the present invention, the device further includes: a second acquisition module (not shown in the figure), configured to obtain an image captured of the vehicle to be parked in the target scene as a backup image; a second segmentation module (not shown in the figure), configured to perform semantic segmentation detection on the spliced backup image to obtain a semantic segmentation image corresponding to the spliced backup image; a second determination module (not shown in the figure), configured to determine a backup cylindrical image corresponding to the backup image based on the backup image; a second posture determination module (not shown in the figure), configured to determine the initial posture information of the vehicle to be parked using the backup cylindrical image and the wheel speed information corresponding to the backup image; a third posture determination module (not shown in the figure), configured to determine the initial posture information of the vehicle to be parked using the initial posture information of the vehicle to be parked, the semantic segmentation information, and the wheel speed information corresponding to the backup image; a detection module (not shown in the figure) configured to perform feature point detection on the spare cylindrical image to determine each spare feature point in the spare cylindrical image and its image position information; a fourth posture determination module (not shown in the figure) configured to determine the second posture information of the vehicle to be parked based on the initial posture information of the vehicle to be parked, each spare feature point in the spare cylindrical image and its image position information, and the feature point map corresponding to the target scene; a fifth posture determination module (not shown in the figure) configured to determine the target posture information of the vehicle to be parked by using the first posture information and / or the second posture information, so that the vehicle to be parked is automatically parked based on the target posture information.
[0298] The above-mentioned system and device embodiments correspond to the system embodiments and have the same technical effects as the method embodiments. For specific descriptions, please refer to the method embodiments. The device embodiments are obtained based on the method embodiments. For specific descriptions, please refer to the method embodiment part, which will not be repeated here. It can be understood by those of ordinary skill in the art that the accompanying drawings are only schematic diagrams of one embodiment, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present invention.
[0299] Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description of the embodiment, or can be changed accordingly and located in one or more devices different from the embodiment. The modules in the above embodiment can be combined into one module, or can be further divided into multiple sub-modules.
[0300] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for constructing a map for memorizing parking scenes, characterized in that: The method comprises: Obtaining an image captured by the auxiliary vehicle at the current moment for the target scene as a current auxiliary image; Perform semantic segmentation detection on the spliced current auxiliary image to obtain the current segmented image; Based on the current auxiliary image, determining a current cylindrical image; Determine the current position information of the auxiliary vehicle at the current moment by using the current cylindrical image and the wheel speed information corresponding to the current auxiliary image; If the current cylindrical image satisfies the first key frame condition, a feature point map corresponding to the target scene is constructed using the current posture information, the current cylindrical image, and the image position information of the first feature point in the cylindrical image of the first multiple groups of the current cylindrical image as feature key images, and the three-dimensional position information of the map point corresponding to the second feature point, wherein the first feature point is a feature point that does not currently correspond to a map point, and the first key frame condition includes: the posture information corresponding to the auxiliary vehicle, and the difference value between the posture information of the auxiliary vehicle corresponding to the latest cylindrical image as the feature key image satisfies a preset difference condition; The method uses the current posture information, the current cylindrical image, and the image position information of the first feature point in the cylindrical images of the first multiple groups of the current cylindrical image as the feature key images, and the three-dimensional position information of the map points corresponding to the second feature points to construct a feature point map corresponding to the target scene, including: for each first feature point in each target cylindrical image in the first multiple groups of cylindrical images of the current cylindrical image as the feature key images, based on the image position information of the first feature point and its corresponding inverse depth value sequence, projecting the first sampling point corresponding to each sampled inverse depth value in the inverse depth value sequence onto the designated layer image as the projection point of each first sampling point, and determining the relative position between each first sampling point and its corresponding projection point The similarity is taken as the similarity value corresponding to each first sampling point, wherein the target cylindrical image is: the distance between the vehicle position determined based on the posture information of the corresponding auxiliary vehicle and the current posture information is less than the third distance threshold; for each target cylindrical image, according to the similarity value corresponding to each first sampling point and the total number of valid first sampling points, the second feature point is determined from the first feature points, wherein the valid first sampling point is: the first sampling point where the projection point projected onto the designated layer image is located within the valid imaging area; the sampling inverse depth value of the first sampling point corresponding to the smallest similarity value corresponding to the second feature point is determined as the current inverse depth value corresponding to the second feature point; based on the current inverse depth value corresponding to the second feature point and the second The image position information of the feature point is used to determine the three-dimensional position information of the map point corresponding to the second feature point; for each second feature point in each cylindrical image in the first multiple groups of cylindrical images used as feature key images of the current cylindrical image, based on the image position information of the second feature point and its corresponding inverse depth value sequence, the second sampling points corresponding to each sampled inverse depth value in the inverse depth value sequence are projected onto the current participating layer image, the projection point of each second sampling point is determined, and the similarity between each second sampling point and its corresponding projection point is determined as the similarity value corresponding to each second sampling point; according to the similarity value corresponding to each second sampling point, a second target feature point is determined from the second feature point; for each second target feature point, Using the sampled inverse depth value and its uncertainty of the second sampling point corresponding to the minimum similarity value corresponding to the second target feature point, as well as the current inverse depth value and its current uncertainty corresponding to the second target feature point, update the three-dimensional position information of the map point corresponding to the second target feature point until the position of the map point corresponding to the second target feature point converges; using the three-dimensional position information and current posture information of the map point corresponding to the current second feature point of the first multiple groups of cylindrical images as feature key images, and / or a preset feature point extraction algorithm, determine the feature points in the current cylindrical image; using the determined map points whose positions converge and meet preset output conditions and their corresponding feature descriptors, construct a feature point map corresponding to the target scene;The preset output condition is: the number of frames of the cylindrical image containing the feature point corresponding to the map point exceeds the preset frame number threshold, and the three-dimensional position information indicates that the map point is not located underground, and the feature descriptor corresponding to the map point is: determined based on the feature descriptor of the feature point corresponding to the map point; If the current segmented image satisfies the second key frame condition, a semantic map corresponding to the target scene is constructed based on the current segmented image, the current posture information, the segmented images of the previous and next V frames of the current segmented image as semantic key images, and the corresponding body posture information of the auxiliary vehicle, so as to support automatic parking of the target scene vehicle through the feature point map and semantic map corresponding to the target scene, wherein the second key frame condition includes: based on the posture information of the corresponding auxiliary vehicle and the posture information of the auxiliary vehicle corresponding to the latest segmented image as the semantic key image, the posture increment of the auxiliary vehicle determined The plane assumption condition is satisfied, and the posture increment of the auxiliary vehicle indicates that the position change of the auxiliary vehicle exceeds the first position threshold, and the heading angle change exceeds the first angle threshold; or based on the posture information of the corresponding auxiliary vehicle and the posture information of the auxiliary vehicle corresponding to the latest segmented image as the semantic key image, the posture increment of the auxiliary vehicle determined does not satisfy the plane assumption condition, and the posture increment of the auxiliary vehicle indicates that the position change of the auxiliary vehicle exceeds the second position threshold, and the heading angle change exceeds the second angle threshold, wherein the second position threshold is greater than the first position threshold, and the second angle threshold is greater than the first angle threshold; The method of constructing a semantic map corresponding to the target scene based on the current segmented image, the current posture information, the segmented images of the front and rear V frames of the current segmented image as semantic key images and the corresponding body posture information of the auxiliary vehicle includes: for each semantic pixel point in the current segmented image after convolution, determining whether the semantic space point corresponding to the semantic pixel point is a semantic map point according to the consistency result corresponding to each image in the front and rear V groups of segmented images, and using the first spatial position information corresponding to the semantic space point corresponding to the semantic pixel point as the spatial position information of the semantic map point; wherein the first spatial position information corresponding to the semantic space point corresponding to the semantic pixel point is determined by back-projecting the semantic pixel point to the body coordinate system of the auxiliary vehicle; and constructing a semantic map corresponding to the target scene based on the determined spatial position information corresponding to the semantic map point and the current two-dimensional posture information corresponding to the current posture information.
2. The method according to claim 1, characterized in that The method further comprises: A verification process for the feature point map, wherein the verification process includes: For each feature key image, a non-feature key image which is farthest from the feature key image and from which feature information has been extracted is determined from the n frames of non-feature key images before and after the feature key image; and an associated frame pair is formed with the feature key image, wherein the feature key image is a cylindrical image that meets the first key frame condition, and the non-feature key image is a cylindrical image that does not meet the first key frame condition, and the feature information includes: image position information of feature points in the corresponding non-feature key image and feature descriptors; For each associated frame pair, determine the feature points corresponding to the map points corresponding to the feature key image in the associated frame pair from the feature points of the non-feature key image in the associated frame pair; and for each map point corresponding to the feature key image in the associated frame pair, screen out the feature points that meet the preset associated point conditions from the determined feature points corresponding to the map point, and determine them as the associated feature points corresponding to the map points corresponding to the feature key image in the associated frame pair, wherein the preset associated point conditions include: among the feature points whose Hamming distance between the corresponding feature descriptor and the feature descriptor of the map point corresponding to the feature key image in the associated frame pair does not exceed a first distance threshold, and whose location and the distance from the projection point of the map point corresponding to the feature key image in the associated frame pair on the non-feature key image do not exceed a second distance threshold, the feature point whose Hamming distance between the corresponding feature descriptor and the feature descriptor of the map point corresponding to the feature key image in the associated frame pair is the smallest; Based on the determined number of associated feature points corresponding to the map points corresponding to the feature key images in all associated frame pairs and the total number of map points corresponding to the feature key images in all associated frame pairs, the verification result corresponding to the feature point map is determined.
3. The method according to claim 2, characterized in that The step of determining the verification result corresponding to the feature point map based on the number of associated feature points corresponding to the map points corresponding to the feature key images in the determined associated frame pairs and the total number of map points corresponding to the feature key images in the associated frame pairs comprises: Calculating the ratio of the number of associated feature points corresponding to the map points corresponding to the feature key images in all the associated frame pairs determined to be associated, and the total number of map points corresponding to the feature key images in all the associated frame pairs, as a first ratio; If the first ratio is lower than a first map verification threshold, determining that the initial verification result corresponding to the feature point map is a failure; If the first ratio is not lower than the first verification threshold, for each target non-feature key image, using a preset given rate and the number of associated feature points in the target non-feature key image, determine the target associated feature points corresponding to the target non-feature key image, wherein the target non-feature key image is: a non-feature key image containing associated feature points; For each target non-feature key image, using preset pose disturbance parameters, the vehicle body pose information corresponding to the target non-feature key image is disturbed to determine the disturbed vehicle body pose information corresponding to the target non-feature key image; For each target non-feature key image, using the image position information of the target-associated feature points corresponding to the target non-feature key image and the three-dimensional position information of the map points corresponding to the target-associated feature points corresponding to the target non-feature key image, optimize the disturbed vehicle body posture information corresponding to the target non-feature key image to obtain the optimized vehicle body posture information corresponding to the target non-feature key image; The vehicle body posture information corresponding to each target non-feature key image is used, and the vehicle body posture information is optimized to determine the verification result corresponding to the feature point map.
4. The method according to claim 1, characterized in that The current auxiliary image is an image captured by an image capture device provided in the auxiliary vehicle; The step of determining the current cylindrical image based on the current auxiliary image comprises: For each current auxiliary image, each cylindrical pixel point in the preset cylindrical image corresponding to the current auxiliary image is back-projected from the cylindrical image coordinate system to the device coordinate system of the image acquisition device corresponding to the current auxiliary image, and the spatial position information of each cylindrical pixel point is determined; For each current auxiliary image, based on the spatial position information of each cylindrical pixel point in the preset cylindrical image corresponding to the current auxiliary image, determine the projection position information of each cylindrical pixel point in the image coordinate system where the current auxiliary image is located; For each current auxiliary image, the pixel value corresponding to the projection position information of each cylindrical pixel point in the current auxiliary image is determined by using the pixel value of the pixel point within the preset range of the projection position information of each cylindrical pixel point in the current auxiliary image to determine the current cylindrical image corresponding to the current auxiliary image.
5. The method according to claim 1, characterized in that The step of constructing a feature point map corresponding to the target scene using the current posture information, the current cylindrical image, and the first multiple groups of the current cylindrical image as image position information of the first feature point in the cylindrical image of the feature key image and the three-dimensional position information of the map point corresponding to the second feature point comprises: Determine an image pyramid corresponding to the current cylindrical image by using a preset image pyramid algorithm and the current cylindrical image; For each first feature point in each target cylindrical image in the first multiple groups of cylindrical images of the current cylindrical image as feature key images, a preset inverse depth value determination method is used to determine the inverse depth value sequence corresponding to the first feature point and the uncertainty corresponding to each sampled inverse depth value, wherein the preset inverse depth value determination method includes: on the back-projection ray corresponding to the first feature point, binary sampling is performed on the inverse depth value within a preset inverse depth value range to obtain a first sampling point corresponding to each inverse depth value obtained by sampling corresponding to the first feature point; sampling is terminated until the distance between the projection points of each two adjacent first sampling points projected onto the designated layer image of the image pyramid corresponding to the current cylindrical image does not exceed 1 pixel distance; the target cylindrical image is: an image whose vehicle body position distance determined based on the posture information of the corresponding auxiliary vehicle and the current posture information is less than a third distance threshold; For each first feature point in each target cylindrical image, based on the image position information of the first feature point and its corresponding inverse depth value sequence, the first sampling point corresponding to each sampled inverse depth value in the inverse depth value sequence is projected onto the designated layer image as the projection point of each first sampling point; based on the pixel value of the first feature point and the pixel value of the pixel point in the first neighborhood corresponding to the first feature point and the pixel value of the pixel point in the first area corresponding to the projection point of each first sampling point, the similarity value corresponding to each first sampling point is determined; For each target cylindrical image, from the first feature points in the target cylindrical image, determine the first feature point whose total number of corresponding valid first sampling points is greater than the first quantity threshold, whose corresponding first sampling point with the smallest numerical value corresponds to a similarity value that does not exceed the preset similarity threshold, and whose ratio of the similarity value corresponding to the first sampling point with the second smallest numerical value to the similarity value corresponding to the first sampling point with the smallest numerical value is not less than the first ratio threshold as the second feature point; and determine the sampling inverse depth value of the first sampling point corresponding to the similarity value with the smallest numerical value corresponding to the second feature point as the current inverse depth value corresponding to the second feature point; and determine the three-dimensional position information of the map point corresponding to the second feature point based on the current inverse depth value corresponding to the second feature point and the image position information of the second feature point; wherein the valid first sampling point is: the first sampling point whose projection point projected onto the designated layer image is located in the valid imaging area; For each second feature point in each cylindrical image of the first plurality of groups of cylindrical images as feature key images, a sampling range is determined using the current inverse depth value and the current uncertainty corresponding to the second feature point; on the back-projection ray corresponding to the second feature point, the inverse depth value is sampled in binary within the sampling range to obtain a second sampling point corresponding to the second feature point, until the distance between the projection points of each two adjacent second sampling points corresponding to the second feature point projected onto the current participating layer image of the image pyramid corresponding to the current cylindrical image corresponding to the second feature point does not exceed 1 pixel distance, the sampling is terminated, and an inverse depth value sequence corresponding to the second feature point and the uncertainty corresponding to each sampled inverse depth value are obtained; For each second feature point in each cylindrical image in the first plurality of groups of cylindrical images serving as feature key images, based on the image position information of the second feature point and its corresponding inverse depth value sequence, the second sampling point corresponding to each sampled inverse depth value in the inverse depth value sequence is projected onto the current participating layer image to determine the projection point of each second sampling point; based on the pixel value of the pixel point in the first neighborhood corresponding to the second feature point and the pixel value of the pixel point in the first area corresponding to the projection point of each second sampling point, the similarity value corresponding to each second sampling point is determined; For each cylindrical image in the first plurality of groups of cylindrical images as feature key images, from the second feature points in the cylindrical image, determine, as the second target feature point, a second feature point whose total number of corresponding valid second sampling points is greater than a first quantity threshold, whose corresponding second sampling point with the smallest numerical value has a similarity value that does not exceed a preset similarity threshold, and whose ratio of the similarity value corresponding to the second sampling point with the second smallest numerical value to the similarity value corresponding to the second sampling point with the smallest numerical value is not less than a first ratio threshold; for each second target feature point, using the sampled inverse depth value and its uncertainty of the second sampling point corresponding to the smallest numerical similarity value corresponding to the second target feature point, and the current inverse depth value and its current uncertainty corresponding to the second target feature point, obtain a new current inverse depth value and its new current uncertainty corresponding to the second target feature point; based on the new current inverse depth value corresponding to the second target feature point and the image position information of the second feature point, update the three-dimensional position information of the map point corresponding to the second target feature point; If the current participating layer image corresponding to the second target feature point is the bottom layer image of the image pyramid corresponding to the current cylindrical image, and the number of updates of the three-dimensional position information of the map point corresponding to the second target feature point is greater than a preset number threshold, and the ratio of the uncertainty interval length corresponding to the second target feature point to the new current inverse depth value corresponding to the second target feature point is less than a second ratio threshold, it is determined that the position of the map point corresponding to the second target feature point converges, and the uncertainty interval length corresponding to the second target feature point is determined based on the new current inverse depth value corresponding to the second target feature point and its uncertainty; Determine the feature points in the current cylindrical image by using the three-dimensional position information of the map points corresponding to the current second feature points of the first plurality of groups of cylindrical images as feature key images and the current posture information, and / or a preset feature point extraction algorithm; A feature point map corresponding to the target scene is constructed using the determined map points whose positions converge and satisfy preset output conditions and their corresponding feature descriptors, wherein the preset output conditions are: the number of frames of the cylindrical image containing the feature point corresponding to the map point exceeds a preset frame number threshold, and the three-dimensional position information represents that the map point is not located underground, and the feature descriptor corresponding to the map point is determined based on the feature descriptor of the feature point corresponding to the map point.
6. The method according to claim 5, characterized in that The step of determining the feature points in the current cylindrical image by using the three-dimensional position information of the map points corresponding to the current second feature points of the first multiple groups of cylindrical images as feature key images and the current posture information, and / or a preset feature point extraction algorithm, comprises: Dividing the current cylindrical image according to a preset number of feature points to obtain a plurality of regional images corresponding to the current cylindrical image; Using the three-dimensional position information of the map points corresponding to the current second feature points of the first multiple groups of cylindrical images as feature key images and the current posture information, the map points corresponding to the current second feature points of the first multiple frames of cylindrical images are projected to multiple regional images corresponding to the current cylindrical image; If the regional image contains a projection point corresponding to a map point corresponding to the current second feature point of the previous multiple-frame cylindrical image, determine the projection point corresponding to the map point corresponding to the current second feature point of the previous multiple-frame cylindrical image as a feature point in the current cylindrical image; If the regional image does not contain the projection point corresponding to the map point corresponding to the current second feature point of the previous multiple frames of cylindrical images, feature points of the regional image are extracted using a preset feature point extraction algorithm and a preset extraction threshold; if no feature points are extracted from the regional image, feature points of the regional image are extracted using the preset feature point extraction algorithm and half of the preset extraction threshold to obtain feature points in the regional image; if multiple feature points are extracted from the same image position in the regional image, the point with the largest corresponding response value among the multiple feature points extracted from the image position is determined as the feature point in the regional image.
7. The method according to claim 5, characterized in that After the step of obtaining a new current inverse depth value and its uncertainty corresponding to the second target feature point by using the sampled inverse depth value and its uncertainty of the second sampling point corresponding to the minimum similarity value corresponding to the second target feature point, and the current inverse depth value and its uncertainty corresponding to the second target feature point, the method further includes: If an update amount between a new current inverse depth value corresponding to the second target feature point and a previous current inverse depth value is less than a preset update threshold, a next layer image of the current participating layer image of the image pyramid corresponding to the current cylindrical image is determined as a new current participating layer image of the image pyramid corresponding to the current cylindrical image corresponding to the second target feature point.
8. The method according to claim 1, characterized in that The step of constructing a semantic map corresponding to the target scene based on the current segmented image, the current posture information, the front and rear V frames of the current segmented image as the segmented image of the semantic key image and the corresponding body posture information of the auxiliary vehicle includes: Convert the current posture information from three dimensions to two dimensions to obtain current two-dimensional posture information corresponding to the current posture information; Performing convolution processing on the current segmented image to obtain a convolved current segmented image; For each semantic pixel point in the current segmented image after the convolution, using the image position information of the semantic pixel point, back-projecting the semantic pixel point into the body coordinate system of the auxiliary vehicle to obtain first spatial position information of the semantic space point corresponding to the semantic pixel point; For each semantic pixel point in the current segmented image after the convolution, using the first spatial position information of the semantic space point corresponding to the semantic pixel point, the semantic space point corresponding to the semantic pixel point is projected to each image in the front and back V frame segmented images after the convolution, so as to obtain the semantic projection point of the semantic pixel point in each image in the front and back V frame segmented images after the convolution; For each semantic pixel point in the current segmented image after the convolution, the semantic projection point of the semantic pixel point in each of the segmented images of the previous and next V frames after the convolution is back-projected into the body coordinate system of the auxiliary vehicle to obtain the second spatial position information corresponding to the semantic pixel point in each image; For each semantic pixel point in the current segmented image after the convolution, the consistency result corresponding to the semantic pixel point and each image in the previous and next V frame segmented images is determined by using the first spatial position information of the semantic space point corresponding to the semantic pixel point, the second spatial position information corresponding to the semantic pixel point in each image, the pixel value of the semantic pixel point, and the pixel value of the semantic projection point of the semantic pixel point in each image in the previous and next V frame segmented images; For each semantic pixel in the current segmented image after the convolution, if the ratio of the number of consistency results corresponding to the semantic pixel and each image in the previous and next V frame segmented images, which characterizes the consistency between the semantic pixel and the corresponding image, to the total number of consistency results corresponding to the semantic pixel exceeds a third ratio threshold, then the semantic space point corresponding to the semantic pixel is determined to be a semantic map point, and the first spatial position information corresponding to the semantic space point corresponding to the semantic pixel is the spatial position information of the semantic map point; Based on the determined spatial position information corresponding to the semantic map point and the current two-dimensional posture information corresponding to the current posture information, a semantic map corresponding to the target scene is constructed.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: Obtaining an image of the vehicle to be parked in the target scene as a backup image; Performing semantic segmentation detection on the spliced spare image to obtain a semantic segmentation image corresponding to the spliced spare image; Based on the spare image, determining a spare cylindrical image corresponding to the spare image; Determining initial position information of the vehicle to be parked by using the backup cylinder image and wheel speed information corresponding to the backup image; Determine the first position information of the vehicle to be parked by using the initial position information of the vehicle to be parked, the semantic segmentation image and the semantic map corresponding to the target scene; Performing feature point detection on the spare cylindrical image to determine each spare feature point in the spare cylindrical image and image position information thereof; Determining second posture information of the vehicle to be parked based on the initial posture information of the vehicle to be parked, each backup feature point in the backup cylindrical image and its image position information, and a feature point map corresponding to the target scene; The target posture information of the vehicle to be parked is determined by using the first posture information and / or the second posture information, so that the vehicle to be parked performs automatic parking based on the target posture information.
10. A map construction device for memorizing parking scenes, characterized in that: The device is used to perform the method according to any one of claims 1 to 9, and the device comprises: A first acquisition module is configured to obtain an image captured by the auxiliary vehicle at a current moment for the target scene in which the auxiliary vehicle is located as a current auxiliary image; A first segmentation module is configured to perform semantic segmentation detection on the spliced current auxiliary image to obtain a current segmented image; A first determination module is configured to determine a current cylindrical image based on the current auxiliary image; a first posture determination module, configured to determine current posture information of the auxiliary vehicle at a current moment by using the current cylindrical image and wheel speed information corresponding to the current auxiliary image; The feature point mapping module is configured to construct a feature point map corresponding to the target scene by using the current posture information, the current cylindrical image, and the first multiple groups of the current cylindrical image as the image position information of the first feature point in the cylindrical image of the feature key image and the three-dimensional position information of the map point corresponding to the second feature point, if the current cylindrical image satisfies the first key frame condition, wherein the first feature point is a feature point that does not currently correspond to a map point; The semantic mapping module is configured to construct a semantic map corresponding to the target scene based on the current segmented image, the current posture information, the front and rear V frames of the current segmented image as segmented images of the semantic key image and the corresponding body posture information of the auxiliary vehicle if the current segmented image meets the second key frame condition, so as to support automatic parking of the target scene vehicle through the feature point map and semantic map corresponding to the target scene.
