Relocation method, device and electronic device based on semantic segmentation
Through semantic segmentation technology, the topological relationship of the semantic categories of static objects is used to determine the target environment image, which solves the problem of robustness of traditional descriptors under illumination changes and achieves accurate relocation and navigation of vehicles in various scenarios.
Patent Information
- Application Number
- CN202111465175.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-03
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-12-03
AI Technical Summary
Among existing simultaneous positioning and mapping technologies, relocation methods based on traditional descriptors are less robust to illumination and cannot effectively reposition and navigate vehicles in various lighting environments.
A relocation method based on semantic segmentation is adopted to perform semantic segmentation on the current environment image and historical key environment images, and use the topological relationship of the semantic categories of static objects to determine the target environment image, thereby relocating the vehicle.
It improves the illumination robustness of vehicle relocation, enables accurate navigation and route planning in a variety of scenarios, and avoids the failure of traditional descriptors under illumination changes.
Smart Images

Figure CN114166204B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle relocation, and in particular to a relocation method, device and electronic equipment based on semantic segmentation. Background Art
[0002] With the development of vehicle technology, functions such as navigation and route planning are becoming more and more mature. These functions need to rely on the current location information of the vehicle, especially when the vehicle restarts, the current location needs to be obtained in order to realize functions such as navigation.
[0003] In the current simultaneous localization and mapping (SLAM), repositioning is generally achieved based on traditional descriptors (ORB, Fourier, Hu moment, etc.). However, the above methods have poor robustness to lighting and cannot meet the needs of various applications of actual vehicles. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a relocalization method, device and electronic device based on semantic segmentation, which can avoid the problem of poor illumination robustness of images and can be adapted to various vehicle application scenarios.
[0005] In a first aspect, an embodiment provides a relocalization method based on semantic segmentation, the method comprising:
[0006] Semantic segmentation is performed on the current environment image corresponding to the current parking position of the vehicle and the key environment image set collected historically, and multiple static object semantic categories corresponding to each image are obtained;
[0007] Determine a target environment image corresponding to the current environment image from a set of key environment images by using the topological relationship of the static object semantic categories as a descriptor of each image;
[0008] The current vehicle is relocated based on the position information corresponding to the target environment image.
[0009] In an optional implementation, the step of determining a target environment image corresponding to the current environment image from a set of key environment images using the topological relationship of the static object semantic categories as a descriptor of each image includes:
[0010] Respectively obtaining a vector corresponding to each semantic category of static objects in the current environment image and the key environment image;
[0011] Selecting vectors corresponding to the same semantic category of the static object from the current environment image and the key environment image respectively;
[0012] Determine the distance between the current environment image and each of the key environment images based on the vector corresponding to the same static object semantic category;
[0013] A target environment image is determined according to the distance between the current environment image and each of the key environment images.
[0014] In an optional implementation, the step of respectively acquiring the vector corresponding to each semantic category of the static object in the current environment image and the key environment image comprises:
[0015] The following steps are performed for the current environment image and each key environment image in the key environment image set until each image obtains a corresponding vector of each static object semantic category:
[0016] Obtaining static object coordinates of each static object semantic category in the current image, wherein each static object semantic category includes at least one static object coordinate;
[0017] Adding up the coordinates of each static object belonging to the same static object semantic category and calculating the average value, to determine the center coordinates corresponding to each static object semantic category;
[0018] Adding the center coordinates corresponding to each static object semantic category and calculating the average value to determine the total center coordinates of the current image;
[0019] A difference calculation is performed based on the total center coordinate and the center coordinate corresponding to each static object semantic category to determine a vector corresponding to each static object semantic category.
[0020] In an optional implementation, the step of selecting vectors corresponding to the same static object semantic category from the current environment image and the key environment image respectively includes:
[0021] Comparing the static object semantic category of the current environment image with the static object semantic category of each of the key environment images to determine a common static object semantic category of the current environment image and each of the key environment images;
[0022] Normalizing the vectors corresponding to the common static object semantic category of the current environment image and each of the key environment images respectively to obtain the normalized vectors corresponding to the common static object semantic category of the current environment image and each of the key environment images.
[0023] In an optional implementation, the step of determining the distance between the current environment image and each of the key environment images based on the vectors corresponding to the same static object semantic category includes:
[0024] Respectively obtaining the difference between the vectors corresponding to each same static object semantic category corresponding to the current environment image and the current key environment image;
[0025] The difference values of the vectors corresponding to each identical static object semantic category are added and the average value is calculated to determine the distance between the current environment image and the current key environment image, and the above steps are repeated until each key environment image in the key environment image set is traversed.
[0026] In an optional implementation, the step of determining the target environment image according to the distance between the current environment image and each of the key environment images includes:
[0027] The key environment image having the smallest distance from the current environment image is used as the target environment image.
[0028] In an optional embodiment, the step of performing semantic segmentation on the current environment image corresponding to the current parking position of the vehicle and the set of key environment images collected historically to obtain multiple static object semantic categories corresponding to each image includes:
[0029] Obtain the current environment image corresponding to the current parking position of the vehicle and a set of key environment images collected historically;
[0030] A semantic segmentation map of each key environment image and the current environment image is obtained based on a neural network, and the semantic categories of static objects corresponding to each key environment image and the current environment image are respectively identified.
[0031] In a second aspect, an embodiment provides a relocation device based on semantic segmentation, the device comprising:
[0032] The semantic segmentation module performs semantic segmentation on the current environment image corresponding to the current parking position of the vehicle and the key environment image set collected historically, and obtains multiple static object semantic categories corresponding to each image;
[0033] A determination module, which uses the topological relationship of the static object semantic category as a descriptor of each image to determine the target environment image corresponding to the current environment image from the key environment image set;
[0034] A relocation module is used to relocate the current vehicle based on the position information corresponding to the target environment image.
[0035] In a third aspect, an embodiment provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the method described in any of the aforementioned implementation methods are implemented.
[0036] In a fourth aspect, an embodiment provides a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the steps of the method described in any one of the aforementioned implementations.
[0037] The embodiments of the present invention provide a relocation method, device and electronic device based on semantic segmentation. By using the topological relationship of the semantic categories of static objects as a descriptor, a target environment image that is identical or similar to the current environment image is selected from a set of key environment images, and the position information corresponding to the target environment image is used to relocate the position of the current vehicle. This can avoid the defect of poor illumination robustness of traditional descriptors in the image, so as to realize operations such as navigation or route planning for restarting parked vehicles in various scenarios.
[0038] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0039] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A flow chart of a relocalization method based on semantic segmentation provided by an embodiment of the present invention;
[0042] Figure 2 A functional module diagram of a semantic segmentation-based relocation device provided by an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of the hardware architecture of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are 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.
[0045] Repositioning can be understood as reacquiring the current vehicle location information. Since the places where vehicles travel or park are complex and changeable, for some vehicles parked in underground parking lots, there may be poor signals, and the vehicle's own positioning device may not be able to accurately obtain the current vehicle location information. Therefore, this repositioning method is introduced to estimate the current vehicle location.
[0046] Generally speaking, this relocation method is applied to the scenario of restarting a stopped vehicle. That is, for a vehicle that needs to be restarted, it is necessary to obtain the current vehicle location information in order to perform subsequent navigation driving or route planning and other functions.
[0047] However, loop detection and relocalization are often performed based on traditional descriptors (ORB, Fourier, Hu moments, etc.). Due to their lighting instability, the ground truth based on such descriptors is not very robust. Figure 1 Generally, they cannot be used over long time spans. For example, a map created based on such descriptors during the day cannot be used to relocate a vehicle under night lighting conditions.
[0048] Based on this, an embodiment of the present invention provides a relocalization method, device and electronic device based on semantic segmentation.
[0049] To facilitate understanding of this embodiment, a semantic segmentation-based relocalization method disclosed in an embodiment of the present invention is first introduced in detail. The method can be applied to a vehicle controller.
[0050] Figure 1 A flow chart of a relocalization method based on semantic segmentation provided by an embodiment of the present invention.
[0051] like Figure 1 As shown, the method comprises the following steps:
[0052] Step S102 , semantic segmentation is performed on the current environment image corresponding to the current parking position of the vehicle and the set of key environment images collected historically, to obtain multiple static object semantic categories corresponding to each image.
[0053] Among them, when the current vehicle stops or is parked in a parking space, the current environment image of the environment in which the current vehicle is located can be collected according to the vehicle's visual equipment such as cameras. The historically collected key environment image set can be obtained from a preset public data set, such as the KITTI00 data set. It should be noted that the set includes the historically collected key environment images of the current vehicle or the historically collected key environment images of other vehicles. Key environment images refer to images with positioning significance during the vehicle positioning process, that is, images with typical road signs, buildings and other facilities collected during the vehicle's driving process can be identified as key environment images, and such key environment images are stored.
[0054] It can be understood that the environment image after semantic segmentation includes multiple semantic categories, including static object semantic categories and dynamic object semantic categories. The static object semantic category can be understood as the target object category in a static state in image acquisition, such as buildings, roads, sidewalks, traffic lights, etc.
[0055] Step S104 , using the topological relationship of the static object semantic categories as the descriptor of each image, a target environment image corresponding to the current environment image is determined from the key environment image set.
[0056] Among them, the topological relationship refers to the relationship between various spatial data that satisfies the principles of topological geometry. Here it refers to the positional relationship of each static target object in the image, that is, based on the comparison of the positional relationship between the current environment image and the static target objects in each key environment image, the target environment image that is the same or similar to the current environment image is determined.
[0057] Each environment image corresponds to a descriptor, and each descriptor is a vector set, each vector in the set corresponds to each static object semantic category. That is, based on the vector corresponding to the static object semantic category in each environment image, the position relationship between the current environment image and the static target object in each key environment image is compared.
[0058] Step S106: relocate the current vehicle based on the position information corresponding to the target environment image.
[0059] Each environment image contains the position information corresponding to the image acquisition position, and the position information in the target environment image is used as the relocation reference of the current vehicle.
[0060] In a preferred embodiment of practical application, by taking the topological relationship of the static object semantic category as a descriptor, a target environment image that is identical or similar to the current environment image is selected from a set of key environment images, and the position information corresponding to the target environment image is used to relocate the position of the current vehicle. This can avoid the defect of poor illumination robustness of traditional descriptors in the image, so as to realize operations such as navigation or route planning for restarting parked vehicles in various scenarios.
[0061] In some embodiments, the semantically segmented image can be obtained according to the semantic segmentation function of the neural network to obtain a more accurate static object semantic recognition result. As an example, the above step S102 may include the following steps:
[0062] Step 1.1), obtain the current environment image corresponding to the current parking position of the vehicle and the set of key environment images collected historically.
[0063] The embodiment of the present invention is generally applied to restarting a parked vehicle, that is, obtaining a current environment image collected at the current parking position of the vehicle based on a visual device.
[0064] Step 1.2), based on the neural network, a semantic segmentation map of each key environment image and the current environment image is obtained, and the semantic categories of static objects corresponding to each key environment image and the current environment image are respectively identified.
[0065] For example, the current environment image includes 20 object semantic categories, of which 15 are static object semantic categories.
[0066] The neural network may include a fully convolutional neural network (FCN), etc. It should be noted that by inputting the above-mentioned environment image into the trained neural network, a semantic segmentation map of the above-mentioned image can be output, and each semantic segmentation map has marked the semantic category of each static object.
[0067] In some embodiments, the topological relationship of the static object semantic category is used as a descriptor to avoid the influence of factors such as lighting and ensure accuracy. Step S104 includes:
[0068] Step 2.1), respectively obtain the corresponding vectors of each static object semantic category in the current environment image and the key environment image.
[0069] Each static object semantic category of the environment image corresponds to a vector. As described in the above embodiment, if the current environment image includes 15 static object semantic categories, there are 15 corresponding vectors respectively.
[0070] In step 2.2), vectors corresponding to the same static object semantic category are selected from the current environment image and the key environment image respectively.
[0071] If the current key environment image includes 25 static object semantic categories, the current environment image includes 15 static object semantic categories, and the two key environment images have 10 static object semantic categories in common, then the vectors corresponding to the 10 static object semantic categories are obtained respectively. This process is repeated until each key environment image is traversed.
[0072] Step 2.3), determine the distance between the current environment image and each key environment image based on the vector corresponding to the same static object semantic category.
[0073] It should be noted that the current environment image and each key environment image may have a vector corresponding to the same static object semantic category, and the distance between the current environment image and each key environment image is obtained through the vector.
[0074] Step 2.4), determine the target environment image according to the distance between the current environment image and each key environment image.
[0075] Exemplarily, based on key environmental images at various distances from the current environmental image, a key environmental image that is identical to or relatively similar to the current environmental image is determined and used as the target environmental image.
[0076] In some embodiments, the above step 2.1) can also be implemented by the following steps, specifically including:
[0077] The following steps are performed for the current environment image and each key environment image in the key environment image set until each image obtains a corresponding vector for each static object semantic category:
[0078] Step 2.1.1), obtaining the static object coordinates of each static object semantic category in the current image, wherein each static object semantic category includes at least one static object coordinate.
[0079] For example, the current image includes 12 static object semantic categories, static object semantic category A includes 3 static object coordinates, static object semantic category B includes 4 static object coordinates, and so on, to obtain all static object coordinates.
[0080] It should be noted that if the static object semantic category A is a street lamp, the current image includes three street lamps, and thus the three static object coordinates of the static object semantic category A are known.
[0081] Step 2.1.2), the coordinates of each static object belonging to the same static object semantic category are added up and the average value is calculated to determine the center coordinates corresponding to each static object semantic category.
[0082] For example, if the coordinates of three static objects belonging to the same static object semantic category A are (x1, y1), (x2, y2) and (x3, y3), then the center coordinates corresponding to the static object semantic category A are
[0083] Step 2.1.3), add up the center coordinates corresponding to each static object semantic category and calculate the average value to determine the total center coordinates of the current image.
[0084] Here, if the center coordinates corresponding to the static object semantic category A are (X1, Y1), the center coordinates corresponding to the static object semantic category B are (X2, Y2), and the center coordinates corresponding to the static object semantic category C are (X3, Y3), then the total center coordinates corresponding to the current image are
[0085] Step 2.1.4), based on the difference calculation between the total center coordinates and the center coordinates corresponding to each static object semantic category, determine the vector corresponding to each static object semantic category, that is, the descriptor.
[0086] Exemplarily, the total center coordinates corresponding to the current image are respectively calculated by difference with the center coordinates corresponding to the static object semantic categories A, B, C, etc., to obtain vectors corresponding to the static object semantic categories A, B, C, etc.
[0087] In some embodiments, the above step 2.2) can also be implemented by the following steps, including:
[0088] Step 2.2.1), compare the static object semantic category of the current environment image with the static object semantic category of each key environment image to determine the common static object semantic category of the current environment image and each key environment image.
[0089] Exemplarily, if the static object semantic categories of the current environment image include streetlights, building A and roads, and the static object semantic categories of the current key environment image include streetlights, building B and roads, then the common static object categories of the two environment images are streetlights and roads.
[0090] Step 2.2.2), respectively normalize the vectors corresponding to the common static object semantic categories of the current environment image and each key environment image to obtain the normalized vectors corresponding to the common static object semantic categories of the current environment image and each key environment image.
[0091] It can be understood that the total length of the vectors corresponding to the above common static object categories of street lights and roads is normalized to obtain normalized vectors of the two common static object categories respectively.
[0092] In some embodiments, step 2.3) further includes:
[0093] Step 2.3.1), respectively obtain the difference between the vectors corresponding to each identical static object semantic category corresponding to the current environment image and the current key environment image.
[0094] Among them, the common static object categories of the current environment image are the vectors of street lamps M1 and roads N1, the common static object categories of the current key environment image are the vectors of street lamps M2 and roads N2, and the differences of vectors of the same category are calculated as M1-M2, N1-N2.
[0095] Step 2.3.2), add up the differences of the vectors corresponding to each same static object semantic category and calculate the average value, determine the distance between the current environment image and the current key environment image, and repeat the above steps 2.3.1)-step 2.3.2) until each key environment image in the key environment image set has been traversed.
[0096] Among them, the distance between the current environment image and the current key environment image is According to the above process, the distance between the current environment image and each key environment image is calculated.
[0097] In some embodiments, step 2.4) further comprises:
[0098] Step 2.4.1), the key environment image with the minimum distance to the current environment image is used as the target environment image.
[0099] It should be noted that the key environment image with the smallest distance from the current environment image is considered to be the target environment image that is identical to or most similar to the current environment image, and the current vehicle is relocated based on the target environment image.
[0100] like Figure 2 As shown, the embodiment of the present invention further provides a relocation device 200 based on semantic segmentation, the device comprising:
[0101] The semantic segmentation module 201 performs semantic segmentation on the current environment image corresponding to the current parking position of the vehicle and the key environment image set collected historically, and obtains multiple static object semantic categories corresponding to each image;
[0102] A determination module 202 determines a target environment image corresponding to the current environment image from a set of key environment images using the topological relationship of the static object semantic categories as a descriptor of each image;
[0103] The relocation module 203 relocates the current vehicle based on the position information corresponding to the target environment image.
[0104] In some embodiments, the determination module 202 is further specifically used to respectively obtain the corresponding vectors of each static object semantic category in the current environment image and the key environment image; respectively select the vectors corresponding to the same static object semantic category from the current environment image and the key environment image; determine the distance between the current environment image and each of the key environment images based on the vectors corresponding to the same static object semantic category; and determine the target environment image according to the distance between the current environment image and each of the key environment images.
[0105] In some embodiments, the determination module 202 is further specifically used to perform the following steps for the current environment image and each key environment image in the key environment image set until each image obtains a corresponding vector for each static object semantic category: obtaining the static object coordinates of each static object semantic category in the current image, wherein each static object semantic category includes at least one static object coordinate; summing up the static object coordinates belonging to the same static object semantic category and calculating the average value to determine the center coordinates corresponding to each static object semantic category; summing up the center coordinates corresponding to each static object semantic category and calculating the average value to determine the total center coordinates of the current image; and determining the vector corresponding to each static object semantic category by performing a difference calculation based on the total center coordinate and the center coordinate corresponding to each static object semantic category.
[0106] In some embodiments, the determination module 202 is further specifically used to compare the static object semantic category of the current environment image with the static object semantic category of each of the key environment images to determine the common static object semantic category of the current environment image and each of the key environment images; and normalize the vectors corresponding to the common static object semantic category of the current environment image and each of the key environment images, respectively, to obtain the normalized vectors corresponding to the common static object semantic category of the current environment image and each of the key environment images.
[0107] In some embodiments, the determination module 202 is further specifically used to respectively obtain the difference between the vectors corresponding to each identical static object semantic category corresponding to the current environment image and the current key environment image; add the difference between the vectors corresponding to each identical static object semantic category and calculate the average value to determine the distance between the current environment image and the current key environment image, and repeat the above steps until each key environment image in the key environment image set has been traversed.
[0108] In some embodiments, the determination module 202 is further specifically configured to use a key environment image having a minimum distance from the current environment image as a target environment image.
[0109] In some embodiments, the semantic segmentation module 201 is further specifically used to obtain a current environment image corresponding to the current parking position of the vehicle and a set of key environment images collected historically; obtain a semantic segmentation map of each key environment image and the current environment image based on a neural network, and respectively identify the static object semantic categories corresponding to each key environment image and the current environment image.
[0110] Figure 3 Schematic diagram of the hardware architecture of the electronic device 300 provided in an embodiment of the present invention. Figure 3 As shown, the electronic device 300 includes: a machine-readable storage medium 301 and a processor 302, and may also include a non-volatile storage medium 303, a communication interface 304 and a bus 305; wherein the machine-readable storage medium 301, the processor 302, the non-volatile storage medium 303 and the communication interface 304 communicate with each other through the bus 305. The processor 302 can execute the relocation method based on semantic segmentation described in the above embodiment by reading and executing the machine-executable instructions of relocation based on semantic segmentation in the machine-readable storage medium 301.
[0111] The machine-readable storage medium mentioned in this article can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.
[0112] The non-volatile medium may be a non-volatile memory, a flash memory, a storage drive (such as a hard drive), any type of storage disk (such as a CD, DVD, etc.), or a similar non-volatile storage medium, or a combination thereof.
[0113] It can be understood that the specific operation methods of each functional module in this embodiment can refer to the detailed description of the corresponding steps in the above method embodiment, and will not be repeated here.
[0114] The computer-readable storage medium provided in the embodiment of the present invention stores a computer program. When the computer program code is executed, the semantic segmentation-based relocalization method described in any of the above embodiments can be implemented. For specific implementation, please refer to the method embodiment, which will not be repeated here.
[0115] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0116] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0117] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0118] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the aforementioned embodiments, those of ordinary skill in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the aforementioned embodiments within the technical scope disclosed by the present invention, or can easily conceive of changes, or make equivalent replacements for some of the technical features therein. Such modifications, changes 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, and should all be covered within the protection scope of the present invention.
Claims
1. A relocalization method based on semantic segmentation, It is characterized in that The method comprises: Semantic segmentation is performed on the current environment image corresponding to the current parking position of the vehicle and the key environment image set collected historically, and multiple static object semantic categories corresponding to each image are obtained; Determine a target environment image corresponding to the current environment image from a set of key environment images by using the topological relationship of the static object semantic categories as a descriptor of each image; Relocating the current vehicle based on the position information corresponding to the target environment image; The step of determining a target environment image corresponding to the current environment image from a set of key environment images by using the topological relationship of the static object semantic categories as a descriptor of each image comprises: Respectively obtaining a vector corresponding to each semantic category of a static object in the current environment image and the key environment image; Selecting vectors corresponding to the same static object semantic category from the current environment image and the key environment image respectively; Determine the distance between the current environment image and each of the key environment images based on the vector corresponding to the same static object semantic category; Determining a target environment image according to a distance between the current environment image and each of the key environment images; The steps of respectively obtaining the vector corresponding to each semantic category of the static object in the current environment image and the key environment image include: The following steps are performed for the current environment image and each key environment image in the key environment image set until each image obtains a corresponding vector of each static object semantic category: Obtaining static object coordinates of each static object semantic category in the current image, wherein each static object semantic category includes at least one static object coordinate; Adding up the coordinates of each static object belonging to the same static object semantic category and calculating the average value, to determine the center coordinates corresponding to each static object semantic category; Adding the center coordinates corresponding to each static object semantic category and calculating the average value to determine the total center coordinates of the current image; A difference calculation is performed based on the total center coordinate and the center coordinate corresponding to each static object semantic category to determine a vector corresponding to each static object semantic category.
2. The method according to claim 1, It is characterized in that The step of selecting vectors corresponding to the same static object semantic category from the current environment image and the key environment image respectively comprises: Comparing the static object semantic category of the current environment image with the static object semantic category of each of the key environment images to determine a common static object semantic category of the current environment image and each of the key environment images; Normalizing the vectors corresponding to the common static object semantic category of the current environment image and each of the key environment images respectively to obtain the normalized vectors corresponding to the common static object semantic category of the current environment image and each of the key environment images.
3. The method according to claim 1, It is characterized in that The step of determining the distance between the current environment image and each of the key environment images based on the vector corresponding to the same static object semantic category comprises: Respectively obtaining the difference between the vectors corresponding to each same static object semantic category corresponding to the current environment image and the current key environment image; The difference values of the vectors corresponding to each identical static object semantic category are added and the average value is calculated to determine the distance between the current environment image and the current key environment image, and the above steps are repeated until each key environment image in the key environment image set is traversed.
4. The method according to claim 1, It is characterized in that The step of determining the target environment image according to the distance between the current environment image and each of the key environment images comprises: The key environment image having the smallest distance from the current environment image is used as the target environment image.
5. The method according to claim 1, It is characterized in that The steps of performing semantic segmentation on the current environment image corresponding to the parking position of the current vehicle and the key environment image set collected historically to obtain multiple static object semantic categories corresponding to each image include: Obtain the current environment image corresponding to the current parking position of the vehicle and a set of key environment images collected historically; A semantic segmentation map of each key environment image and the current environment image is obtained based on a neural network, and the semantic categories of static objects corresponding to each key environment image and the current environment image are respectively identified.
6. A relocalization device based on semantic segmentation, It is characterized in that The device comprises: The semantic segmentation module performs semantic segmentation on the current environment image corresponding to the current parking position of the vehicle and the key environment image set collected historically, and obtains multiple static object semantic categories corresponding to each image; A determination module, which uses the topological relationship of the static object semantic category as a descriptor of each image to determine the target environment image corresponding to the current environment image from the key environment image set; A relocation module, for relocating the current vehicle based on the position information corresponding to the target environment image; The determination module is also used to respectively obtain the vectors corresponding to each static object semantic category in the current environment image and the key environment image; respectively select the vectors corresponding to the same static object semantic category from the current environment image and the key environment image; determine the distance between the current environment image and each of the key environment images based on the vectors corresponding to the same static object semantic category; and determine the target environment image according to the distance between the current environment image and each of the key environment images; The determination module is also used to perform the following steps for the current environment image and each key environment image in the key environment image set until each image obtains the corresponding vector of each static object semantic category: obtaining the static object coordinates of each static object semantic category in the current image, wherein each static object semantic category includes at least one static object coordinate; summing up the static object coordinates belonging to the same static object semantic category and calculating the average value to determine the center coordinates corresponding to each static object semantic category; summing up the center coordinates corresponding to each static object semantic category and calculating the average value to determine the total center coordinates of the current image; and determining the vector corresponding to each static object semantic category by performing a difference calculation based on the total center coordinate and the center coordinate corresponding to each static object semantic category.
7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A machine-readable storage medium, It is characterized in that The machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the steps of the method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Two-stage clustering-based SAR image semantic segmentation method
CN107403434A
Behavior recognition and positioning method based on multi-task joint learning
CN108830185A
Descriptor map generation method and device, positioning method and device, equipment and storage medium
CN111105459A
Map construction method and device, repositioning method and device, storage medium and electronic equipment
CN111325842A
Map construction method and device
CN111882611A
