Method, apparatus, device, medium and program product for visual localization

By constructing a universal visual semantic model and function model, combined with the componentized PNT architecture, the existing technology solves the problem of reduced positioning accuracy of visual SLAM in challenging scenes and the versatility of semantic-enhanced visual positioning methods, achieving high accuracy and Robust visual localization supports the compatibility and scalability of different visual semantic acquisition networks.

CN118628566APending Publication Date: 2024-09-10WUHAN UNIV

Patent Information

Application Number
CN202410764430.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The positioning accuracy of existing visual SLAM methods decreases in challenging scenarios such as lighting and viewing angle changes, and semantic-enhanced visual positioning methods are only suitable for specific visual semantic acquisition networks and lack versatility and scalability.

Method used

By constructing universal visual semantic random models and functional model standardization rules, combined with the componentized PNT architecture, the mapping and fusion of different types of visual semantic features can be achieved, the accuracy and robustness of visual positioning can be improved, and the compatibility of different visual semantic acquisition networks can be supported. ity and scalability.

Benefits of technology

It improves the accuracy and robustness of the visual positioning method, realizes the compatibility and scalability of different visual semantic acquisition networks, and supports seamless fusion positioning with other sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628566A
    Figure CN118628566A
Patent Text Reader

Abstract

The invention provides a method, device and equipment for visual positioning, a medium and a program product. The method comprises the following steps: in response to an obtained image which is acquired by a carrier and is about the surrounding environment of the carrier at the current moment, performing feature extraction on the image based on a preset feature extraction rule to obtain visual geometric features and visual semantic features about the image; based on the visual geometric features and the visual semantic features, determining visual geometric feature point pairs and a standardized random model corresponding to the visual geometric feature point pairs by using a visual semantic random model standardization rule; and based on the visual geometric feature point pairs, the standardized random model corresponding to the visual geometric feature point pairs and the visual semantic features, determining the final pose of the carrier and / or the landmark at the current moment by utilizing a visual semantic function model standardization rule. By utilizing the method disclosed by the invention, different types of visual semantic acquisition networks can be compatible based on the modularized PNT architecture, and the precision and robustness of visual positioning are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of unmanned system positioning and navigation, and in particular to a method, device, electronic device, non-transitory computer-readable storage medium, and computer program product for visual positioning. Background Art

[0002] With the continuous development of technologies such as drones, robots, and self-driving cars, the research and application of positioning and navigation using visual information has become more extensive and mature. Among them, the more representative technologies include Simultaneous Localization and Mapping (SLAM). The visual SLAM methods of the prior art mainly use visual geometric features such as corner points and edge points in the image. However, low-level visual geometric features are easily affected by factors such as lighting and perspective changes, resulting in a decrease in SLAM positioning accuracy or even positioning failure, thereby limiting its wide application in actual scenarios.

[0003] To solve this problem, technicians in related fields have found that visual semantic features (such as object categories, etc.) are more advanced than visual geometric features and have better robustness in challenging scenarios such as lighting, perspective, and time changes. With the vigorous development of deep learning, there are many ways to acquire visual semantic features and the corresponding detection accuracy is getting higher and higher, which provides a huge impetus for the advancement of semantic-enhanced visual positioning technology. According to the type of semantic features, commonly used visual semantic acquisition methods can be divided into object detection networks, semantic segmentation networks, instance segmentation networks, and panoramic segmentation networks. The application of semantic features in visual positioning technology includes constructing feature descriptors, eliminating dynamic objects, and semantic map matching positioning.

[0004] However, the current state-of-the-art semantically enhanced visual localization methods are only applicable to specific visual semantic acquisition networks. Summary of the invention

[0005] The present disclosure provides a method, an apparatus, an electronic device, a non-transitory computer-readable storage medium, and a computer program product for visual positioning, so as to solve the defects in the prior art.

[0006] The present disclosure provides a method for visual positioning, comprising:

[0007] In response to obtaining an image of the surrounding environment of the carrier at the current moment, feature extraction is performed on the image based on a preset feature extraction rule to obtain visual geometric features and visual semantic features of the image; wherein the image includes an image taken by an onboard camera of the carrier, or an image frame in a video collected by an onboard camera of the carrier; the image includes image information of a landmark located in the surrounding environment; and the visual semantic features have a unified category label set;

[0008] Based on the visual geometric features and the visual semantic features, using the visual semantic random model standardization rule, determining the visual geometric feature point pairs and the standardized random model corresponding to the visual geometric feature point pairs;

[0009] Based on the visual geometric feature point pairs, the standardized random model corresponding to the visual geometric feature point pairs and the visual semantic features, a semantically enhanced pose constraint objective function is constructed using the visual semantic function model standardization rules to determine the final pose of the carrier and / or the landmark at the current moment.

[0010] The present disclosure also provides a device for visual positioning, comprising:

[0011] The feature extraction module is configured to: in response to acquiring an image of the surrounding environment of the carrier at the current moment, extract features from the image based on a preset feature extraction rule to obtain visual geometric features and visual semantic features of the image; wherein the image includes an image taken by an onboard camera of the carrier, or an image frame in a video collected by an onboard camera of the carrier; the image includes image information of a landmark located in the surrounding environment; and the visual semantic features have a unified category label set;

[0012] A matching tracking module is configured to: determine a pair of visual geometric feature points and a standardized random model corresponding to the pair of visual geometric feature points based on the visual geometric features and the visual semantic features and using a visual semantic random model standardization rule;

[0013] The enhanced positioning module is configured to: based on the visual geometric feature point pairs, the standardized random model corresponding to the visual geometric feature point pairs and the visual semantic features, utilize the visual semantic function model standardization rules to construct a semantically enhanced posture constraint objective function to determine the final posture of the carrier and / or the landmark at the current moment.

[0014] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for visual positioning as described in any one of the above is implemented.

[0015] The present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for visual positioning.

[0016] The present disclosure also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for visual positioning as described in any one of the above is implemented.

[0017] As described above, the method for visual positioning provided by the embodiment of the present disclosure, on the one hand, regards the visual semantic acquisition network as a new type of PNT sensor, and constructs a general visual semantic random model standardization rule and a visual semantic function model standardization rule, which can be compatible with different types of visual semantic acquisition networks, thereby improving the accuracy and robustness of the visual positioning method. On the other hand, different types of visual semantic features are mapped to standardized random models and standardized function models under the componentized PNT architecture, realizing blind plug-and-play and open expansion of different visual semantic acquisition networks, which can be seamlessly integrated into the componentized PNT system, and then complete fusion positioning with other sensors. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 It is one of the flowcharts of the method for visual positioning provided by the embodiment of the present disclosure;

[0020] Figure 2 This is the second flow chart of the method for visual positioning provided by the embodiment of the present disclosure;

[0021] Figure 3 This is a third flow chart of the method for visual positioning provided by an embodiment of the present disclosure;

[0022] Figure 4 This is a fourth flowchart of a method for visual positioning provided by an embodiment of the present disclosure;

[0023] Figure 5 This is a fifth flowchart of the method for visual positioning provided by an embodiment of the present disclosure;

[0024] Figure 6 is a schematic diagram of the structure of a device for visual positioning provided by an embodiment of the present disclosure;

[0025] Figure 7 It is a schematic diagram of the structure of an electronic device provided by the present disclosure. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions in the present disclosure will be clearly and completely described below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0027] Summary of the invention concept:

[0028] After research, the inventors of the present disclosure found that the reasons leading to the problems of the prior art mainly include: first, the training data sets used by different semantic acquisition networks are complicated, and different data sets have different label sets, which makes the existing methods unable to recognize the semantic category information acquired by different networks; second, the application method of visual semantic features is relatively single and cannot be compatible with different types of semantic features; third, the use of semantic features is limited by customization and lacks a unified observation model, which limits the scalability and versatility.

[0029] In view of this, the inventors of the present disclosure have proposed a solution for visual positioning after repeated research, which can realize general semantic enhanced visual positioning based on a componentized PNT architecture.

[0030] Among them, it should be noted that the PNT architecture is a system engineering that integrates multiple technical means. It consists of three parts: positioning, navigation, and timing, which together constitute a space-time system. This system is the key technology that allows us to accurately describe time and space in complex information. The main functions of the PNT system include but are not limited to: positioning, through the location information provided by the global satellite navigation system (such as the United States' GPS, Europe's Galileo, Russia's GLONASS, China's Beidou, etc.), to accurately determine the user's location. Navigation, using satellite signals or other navigation technologies such as ground-based radio, gravity matching navigation, magnetic matching navigation, astronomical navigation, etc., to help users navigate in different environments. Timing, through the transmission and synchronization of time signals, to ensure the accuracy and consistency of time, is particularly important for application scenarios that require high-precision time synchronization.

[0031] Reference Figure 1 The solution of the present disclosure (the execution subject of the solution is an electronic device, such as an in-vehicle computing platform or a cloud computing platform) is summarized as follows:

[0032] Step S1: feature extraction. Specifically, in response to receiving an image of the surrounding environment or landmarks at the current moment (i.e., real-time) collected by a carrier (e.g., including but not limited to a drone, a robot, or an autonomous vehicle) (here, the image may include Figure 1 The image frame of the picture or video shown in the figure is extracted by using a visual geometric feature extraction unit; visual semantic features are extracted by using a visual semantic acquisition network (in this case, visual semantic features of different types and different label sets); then, the "visual semantic features of different types and different label sets" are converted into "visual semantic features of different types and unified label sets" by using a semantic label conversion unit according to the selected label set conversion rule. Among them, the visual semantic acquisition network can be selected according to actual application requirements or situations, and can include multiple different types of networks, such as Figure 1 Shown are network 1, network 2, ..., network N.

[0033] Step S2, matching tracking. Specifically, the visual geometric features can be processed by a visual geometric feature matching unit to obtain a visual geometric feature matching pair (i.e., the "visual geometric feature point pair" described in the following embodiments); and the "visual semantic features of different types and unified label sets" can be mapped to a standardized random model under a componentized PNT architecture (wherein the standardized random model can be converted into a weight parameter corresponding to the visual geometric feature matching pair) by a semantic information random model mapping unit.

[0034] Step S3, enhanced positioning. Specifically, based on the visual geometric feature matching pair and the corresponding standardized random model, the visual geometric feature pose constraint construction is performed; the "visual semantic features of different types and unified label sets" are mapped to the standardized function model under the componentized PNT architecture by using the semantic information function model mapping unit. Specifically, based on judging whether the "visual semantic features of different types and unified label sets" belong to pixel-level semantic features, the corresponding semantic constraints are determined; for example, when the "visual semantic features of different types and unified label sets" belong to pixel-level semantic features, semantic feature point reprojection constraints are constructed; when the "visual semantic features of different types and unified label sets" belong to object-level semantic features, semantic box reprojection constraints are constructed; then, on the basis of the visual geometric feature pose constraints, semantically enhanced pose constraints are constructed based on the "semantic feature point reprojection constraints or semantic box reprojection constraints"; joint optimization is performed using the semantically enhanced pose constraints to obtain the pose of the carrier and / or landmark.

[0035] Furthermore, based on the above scheme overview, the specific scheme implementation details can refer to the following embodiments.

[0036] Example:

[0037] The following describes the implementation details of the visual positioning solution disclosed in the present invention in conjunction with the accompanying drawings.

[0038] Figure 2 FIG. 1 is a flow chart of a method for visual positioning provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices (e.g., vehicle-mounted computing platforms or cloud computing platforms), such as Figure 2 As shown, the method for visual positioning includes the following steps:

[0039] S210: In response to obtaining an image of the surrounding environment of the carrier at the current moment, extract features of the image based on preset feature extraction rules to obtain visual geometric features and visual semantic features of the image.

[0040] The image includes an image taken by an onboard camera of the carrier, or an image frame in a video captured by an onboard camera of the carrier.

[0041] The image includes image information of landmarks located in the surrounding environment.

[0042] Wherein, the visual semantic features have a unified category label set.

[0043] The "preset feature extraction rule" may include a unified visual semantic acquisition network label set; different types of visual semantic feature extraction networks may be used to extract the visual semantic features. Here, different types of visual semantic feature extraction networks can be regarded as a new type of PNT sensor. The specific content will be described in the following implementation method, and will not be repeated here.

[0044] The present disclosure does not limit the “carrier”, and may include, but is not limited to, drones, robots, and self-driving cars.

[0045] S220 , based on the visual geometric features and the visual semantic features, using visual semantic random model standardization rules, determine visual geometric feature point pairs and a standardized random model corresponding to the visual geometric feature point pairs.

[0046] The visual semantic random model standardization rule can be a universal visual semantic random model standardization rule, which is compatible with different types of visual semantic acquisition networks; that is, different types of visual semantic features acquired by different types of visual semantic acquisition networks can be mapped to a standardized random model under the componentized PNT architecture. The specific details are described in the following implementation method and will not be repeated here.

[0047] S230. Based on the visual geometric feature point pairs, the standardized random model corresponding to the visual geometric feature point pairs, and the visual semantic features, a semantically enhanced pose constraint objective function is constructed using the visual semantic function model standardization rules to determine the final pose of the carrier and / or the landmark at the current moment.

[0048] The visual semantic function model standardization rule can be a general visual semantic function model standardization rule, which is used to map different types of visual semantic features into a standardized function model under the componentized PNT architecture; furthermore, semantic constraints can be added on the basis of the pose constraints of the visual geometric feature point pairs, and the poses of the carrier and the landmark can be jointly optimized. The specific implementation details will be described below and will not be repeated here.

[0049] As described above, the method for visual positioning provided by the embodiment of the present disclosure, on the one hand, regards the visual semantic acquisition network as a new type of PNT sensor, and constructs a general visual semantic random model standardization rule and a visual semantic function model standardization rule, which can be compatible with different types of visual semantic acquisition networks, thereby improving the accuracy and robustness of the visual positioning method. On the other hand, different types of visual semantic features are mapped to standardized random models and standardized function models under the componentized PNT architecture, realizing blind plug-and-play and open expansion of different visual semantic acquisition networks, which can be seamlessly integrated into the componentized PNT system, and then complete fusion positioning with other sensors.

[0050] exist Figure 1 , 2 Based on the embodiment, as an optional implementation method, refer to Figure 3 Step S210 "extracting features from the image based on preset feature extraction rules to obtain visual geometric features and visual semantic features of the image" may include the following steps:

[0051] S2110. Perform feature extraction on the image using preset visual geometric feature extraction rules to obtain the visual geometric features.

[0052] The preset visual geometric feature extraction rules may include but are not limited to SIFT algorithm, SURF algorithm, ORB algorithm, Harris corner detection algorithm, and Hessian-Laplace algorithm.

[0053] Accordingly, the visual geometric features, for example, may include but are not limited to SIFT features and ORB features.

[0054] Specifically, the SIFT (Scale-Invariant Feature Transform) algorithm is a feature point extraction algorithm based on scale space, which can extract stable feature points under different scales, rotations and illumination changes. The SIFT algorithm includes the steps of scale space extreme value detection, key point location, direction allocation, key point description and feature point matching. The SURF (Speeded-Up Robust Feature) algorithm is an accelerated version of the SIFT algorithm, which can improve the operation speed while maintaining a high accuracy. The SURF algorithm uses the Hessian matrix to detect the local features of the image, and realizes feature description by calculating the Haar wavelet response. The ORB (Oriented FAST and Rotated BRIEF) algorithm is a feature point extraction algorithm based on FAST corner detection and BRIEF descriptor, which has high speed and good performance. The ORB algorithm uses the FAST corner detection algorithm to detect the corners of the image, and uses the BRIEF algorithm to describe the feature points. The Harris corner detection algorithm is a feature point extraction algorithm based on image grayscale changes, which extracts corner feature points by calculating the corner response function of each point in the image. The Hessian-Laplace algorithm is a feature point extraction algorithm based on the Hessian matrix. It detects the local extreme points of the image by calculating the Hessian matrix of the image, and then uses the Laplace operator to extract the feature points.

[0055] S2120: Based on the currently used preset visual semantic feature extraction network, extract features from the image to obtain the visual semantic features.

[0056] The preset visual semantic feature extraction network includes multiple types, and different types of preset semantic feature extraction networks may correspond to different category label sets.

[0057] It should be understood that different visual semantic acquisition networks obtain different types of semantic features, such as semantic segmentation networks, instance segmentation networks, and panoptic segmentation networks obtain pixel-level semantic features; object detection networks obtain object-level semantic features. Visual semantic acquisition networks trained with different datasets also obtain different label sets of visual semantic features.

[0058] S2130: Determine a matching label set conversion rule according to the category label set of the preset visual semantic feature extraction network currently used.

[0059] As an optional example, step S2130 may be implemented in the following manner:

[0060] First, according to the category label set of the preset visual semantic feature extraction network currently used, the label set category parameters are determined; then, according to the label set category parameters, the label set conversion rules are selected; wherein the label set conversion rules at least include but are not limited to merging and discarding.

[0061] S2140: Using the label set conversion rule, convert the category label set of the visual semantic features into a unified category label set.

[0062] As described above, by converting the category label set, the method of the embodiment of the present disclosure can be compatible with different types of visual semantic acquisition networks. The visual semantic acquisition network may include, but is not limited to, neural networks such as YOLO, Mask-RCNN, and SegNet.

[0063] exist Figure 1 , 2 Based on the embodiment, as an optional implementation method, refer to Figure 4 Step S220 "determine the visual geometric feature point pair and the standardized random model corresponding to the visual geometric feature point pair based on the visual geometric feature and the visual semantic feature using the visual semantic random model standardization rule" may include the following steps:

[0064] S2210: Determine the visual geometric feature point pairs using the visual geometric feature and the reference image.

[0065] The reference image may be an image of the surrounding environment of the carrier collected before the current moment.

[0066] The present disclosure does not limit the term "before the current moment". For example, it may be an image one frame or several frames before the current moment, or an image one second or several seconds before the current moment.

[0067] As an optional example, a matching algorithm based on a feature descriptor or an optical flow matching tracking algorithm may also be used to determine the visual geometric feature point pairs.

[0068] S2220: Determine the semantic category and initial uncertainty of the visual geometric feature by using a preset semantic label consistency rule.

[0069] As an optional example, the preset semantic label consistency rule can be formulated according to the type of visual semantic features. Specifically, for the visual semantic features obtained by the visual semantic segmentation network, the consistency of the category labels matching the visual geometric features is used as the judgment rule; for the visual semantic features obtained by the object detection network, the instance segmentation network and the panoramic segmentation network, in addition to determining whether the category labels are consistent, it is also necessary to determine whether the numbers of the objects to which they belong are consistent.

[0070] According to the semantic label consistency rule, the visual geometric features are divided into a qualified feature set G and an unqualified feature set B. The uncertainty of the visual geometric features in set G is kept as the initial value

[0071] The uncertainty of the visual geometric features in set B can be adjusted according to the confidence of the semantic category. Specifically, the adjustment can be performed according to the following calculation formula (1).

[0072]

[0073] Among them, S1 represents the semantic category confidence of the visual geometric features in set B in the image at the current moment; S2 represents the semantic category confidence of the visual geometric features in set B in the reference image; the confidence is provided by the visual semantic acquisition network, and the default value is 1; τ represents a preset constant greater than 1.

[0074] S2230 : Based on the semantic category of the visual geometric feature and a preset prior dynamic probability lookup table, obtain the prior dynamic probability of the visual geometric feature.

[0075] The preset a priori dynamic probability lookup table pre-stores the mapping relationship between the semantic category and the a priori dynamic probability.

[0076] It should be noted that the prior dynamic probability here can only judge the possibility of potential dynamics based on the object category, and cannot directly determine whether the object is a dynamic object. For example, cars and people with a high prior dynamic probability may also be in a stationary state. Therefore, it is also necessary to combine the observation information to obtain the posterior dynamic probability.

[0077] S2240. Determine the posterior dynamic probability of the visual geometric feature by using the prior dynamic probability.

[0078] As an optional example, step S2240 may include the following steps:

[0079] Step 1), for each feature in the visual geometric features, according to the corresponding prior dynamic probability, select the feature below the preset threshold as the target feature.

[0080] Step 2) using the target features to determine the initial position of the carrier and / or landmark at the current moment.

[0081] Optionally, matching features with lower prior dynamic probabilities are used here to calculate the pose transformation matrix of the reference image, and then obtain the initial pose of the image corresponding to the current moment. The calculation methods include epipolar geometry, perspective N-point method (PnP), iterative closest point method (ICP), etc.

[0082] Step 3) Based on the initial posture, a preset multi-view geometry algorithm is used to determine the motion consistency result of the visual geometric features.

[0083] Step 4) Determine the posterior dynamic probability according to the motion consistency result and the prior dynamic probability.

[0084] S2250. Based on the posterior dynamic probability and the dynamic probability of matching the visual geometric features in the reference image, the initial uncertainty is adjusted using a Bayesian filtering rule to obtain a final uncertainty.

[0085] S2260: Map the final uncertainty into the standardized random model using a preset semantic feature random model mapping rule.

[0086] Optionally, according to the dynamic probability of the visual geometric feature and a preset dynamic probability threshold τ D , the visual geometric features are divided into static features and dynamic features, and added to the corresponding sets S and D respectively. The uncertainty of the static features in set S remains unchanged According to whether the number of static features in the set S exceeds the threshold Adjust the uncertainty of the dynamic characteristics in set D. That is, if Then the uncertainty of all features in set D is set to Otherwise, the uncertainty of the dynamic characteristic can be determined according to the following calculation formula (2):

[0087]

[0088] Among them, bel(x i ) is the dynamic probability of dynamic feature i.

[0089] Specifically, the preset semantic feature random model mapping rule takes the uncertainty of the benchmark sensor as the unit weight basis, and the uncertainty ratio of other sensors to the benchmark sensor as the proportional factor of each sensor weight, and establishes a standardized random model under the componentized PNT architecture.

[0090] exist Figure 1 , 2 Based on the embodiment, as an optional implementation method, refer to Figure 5 , step S230 "based on the visual geometric feature point pairs, the standardized random model corresponding to the visual geometric feature point pairs and the visual semantic features, using the visual semantic function model standardization rule, constructing a semantically enhanced pose constraint objective function, and determining the final pose of the carrier and / or the landmark at the current moment", may include the following steps:

[0091] S2310, using the visual geometric feature point pairs and the standardized random model corresponding to the visual geometric feature point pairs, establishing geometric feature pose constraints that conform to the standardized function model;

[0092] S2320, using the standardized random model corresponding to the visual geometric feature point pair and the visual semantic features, establish a visual semantic pose constraint that conforms to the standardized function model.

[0093] Since the construction methods of geometric feature pose constraints and visual semantic pose constraints are similar, the visual semantic pose constraints are mainly used as an example for description here.

[0094] First of all, it should be noted that the standardized function model is a function model that conforms to the componentized PNT architecture. It condenses the common and individual characteristics of the state parameters according to the setting, updating and estimation rules of the state parameters of multi-source PNT sensors, describes the PNT state parameters in a unified paradigm, and aligns the observation information of different sensors to a unified time and space reference, and uniformly expresses it in the form of linear equations.

[0095] Based on this, as an optional example, if the visual semantic feature is of pixel-level type, the following calculation formula (3) can be used to construct the semantic feature point reprojection constraint:

[0096]

[0097] Among them, π(T i ,y j ) represents the 3D landmark point y representing the landmark j A projection function projected onto the pixel coordinate system of the onboard camera of the carrier; Indicates the shortest distance from pixel p to the region with label c.

[0098] The random model of the semantic feature point reprojection constraint is determined by the standardized random model of the visual geometric feature point pair and the semantic confidence.

[0099] As another optional example, if the visual semantic feature is of object-level type, the following calculation formula (4) can be used to construct the semantic box reprojection constraint:

[0100] e bbox =[S detect -S 2D , C detect -C 2D ] (4)

[0101] Among them, S detect Indicates the size of the object detection box; C detect Represents the center point coordinates of the object detection frame; S 2DIndicates the size of the object landmark projection frame; C 2D Indicates the coordinates of the center point of the object landmark projection box.

[0102] The random model of the reprojection constraint is determined by a standardized random model of the visual geometric feature point pairs within the frame and the confidence of the object classification.

[0103] S2330. Based on the geometric feature pose constraint and the visual semantic pose constraint, establish a semantically enhanced pose constraint objective function.

[0104] As an optional example, the geometric feature pose constraint and the visual semantic pose constraint are combined as the optimization objective function.

[0105] S2340. Utilize the semantically enhanced posture constraint objective function to optimize the initial posture of the carrier and / or the landmark at the current moment, and obtain the final posture of the carrier and / or the landmark at the current moment as the semantically enhanced visual positioning result.

[0106] As an optional example, the initial posture is used as the initial value, and the optimization objective function (ie, the set of constraint equations) is iteratively solved to achieve the optimization of the initial posture, and finally obtain the final posture.

[0107] The iterative solution algorithm may be, for example, the least square method. The number of iterative optimizations may be determined according to actual needs.

[0108] As described above, the method for visual positioning provided by the embodiments of the present disclosure, on the one hand, regards the visual semantic acquisition network as a new type of PNT sensor, and constructs universal visual semantic random model standardization rules and visual semantic function model standardization rules, which are compatible with different types of visual semantic acquisition networks, thereby improving the accuracy and robustness of the visual positioning method.

[0109] On the other hand, different types of visual semantic features are mapped to standardized random models and standardized function models under the componentized PNT architecture to achieve blind plug-and-play and open expansion of different visual semantic acquisition networks, which can be seamlessly integrated into the componentized PNT system to complete fusion positioning with other sensors.

[0110] The device for visual positioning provided by the present disclosure is described below. The device for visual positioning described below and the method for visual positioning described above can be referenced to each other.

[0111] Figure 6 FIG. 1 is a schematic diagram of a structure of a device for visual positioning provided by an exemplary embodiment of the present disclosure. Figure 6 As shown, the device for visual positioning includes:

[0112] The feature extraction module 610 is configured to: in response to obtaining an image of the surrounding environment of the carrier at the current moment, extract features from the image based on preset feature extraction rules to obtain visual geometric features and visual semantic features of the image; wherein the image includes an image taken by an onboard camera of the carrier, or an image frame in a video collected by an onboard camera of the carrier; the image includes image information of landmarks located in the surrounding environment; the visual semantic features have a unified category label set; the matching tracking module 620 is configured to: based on the visual geometric features and visual semantic features, using the visual semantic random model standardization rule, determine the visual geometric feature point pairs and the standardized random model corresponding to the visual geometric feature point pairs; the enhanced positioning module 630 is configured to: based on the visual geometric feature point pairs, the standardized random model corresponding to the visual geometric feature point pairs and the visual semantic features, using the visual semantic function model standardization rule, construct a semantically enhanced posture constraint objective function to determine the final posture of the carrier and / or the landmark at the current moment.

[0113] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor (processor) 710, a communication interface (Communications Interface) 720, a memory (memory) 730 and a communication bus 740, wherein the processor 710, the communication interface 720, and the memory 730 communicate with each other through the communication bus 740. The processor 710 can call the logic instructions in the memory 730 to execute a method for visual positioning, which includes: in response to obtaining an image of the carrier's surrounding environment at the current moment, extracting features from the image based on preset feature extraction rules to obtain visual geometric features and visual semantic features about the image; wherein the image includes an image taken by the carrier's onboard camera, or an image frame in a video collected by the carrier's onboard camera; the image includes image information of landmarks located in the surrounding environment; the visual semantic features have a unified category label set; based on the visual geometric features and visual semantic features, using the visual semantic random model standardization rule, determine the visual geometric feature point pairs and the standardized random model corresponding to the visual geometric feature point pairs; based on the visual geometric feature point pairs, the standardized random model corresponding to the visual geometric feature point pairs and the visual semantic features, using the visual semantic function model standardization rule, construct a semantically enhanced posture constraint objective function to determine the final posture of the carrier and / or the landmark at the current moment.

[0114] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0115] On the other hand, the present disclosure also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the method for visual positioning provided by the above-mentioned methods, which includes: in response to obtaining an image of the surrounding environment of the carrier at the current moment, extracting features from the image based on a preset feature extraction rule to obtain visual geometric features and visual semantic features about the image; wherein the image includes an image taken by an onboard camera of the carrier, or an image frame in a video collected by an onboard camera of the carrier; the image includes image information of a landmark located in the surrounding environment; the visual semantic features have a unified category label set; based on the visual geometric features and visual semantic features, using the visual semantic random model standardization rule, determine the visual geometric feature point pairs and the standardized random model corresponding to the visual geometric feature point pairs; based on the visual geometric feature point pairs, the standardized random model corresponding to the visual geometric feature point pairs and the visual semantic features, using the visual semantic function model standardization rule, construct a semantically enhanced posture constraint objective function to determine the final posture of the carrier and / or the landmark at the current moment.

[0116] On the other hand, the present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the method for visual positioning provided by the above-mentioned methods, the method comprising: in response to obtaining an image of the surrounding environment of the carrier at the current moment, extracting features from the image based on a preset feature extraction rule to obtain visual geometric features and visual semantic features of the image; wherein the image comprises an image taken by an onboard camera of the carrier, or an image frame in a video captured by an onboard camera of the carrier; the image comprises image information of landmarks located in the surrounding environment; the visual semantic features have a unified category label set; based on the visual geometric features and visual semantic features, using a visual semantic random model standardization rule, determining a pair of visual geometric feature points and a standardized random model corresponding to the pair of visual geometric feature points; based on the visual geometric feature point pairs, the standardized random model corresponding to the pair of visual geometric feature points and the visual semantic features, using a visual semantic function model standardization rule, constructing a semantically enhanced posture constraint objective function to determine the final posture of the carrier and / or the landmark at the current moment.

[0117] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0118] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0119] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure 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 disclosure.

Claims

1. A method for visual positioning, comprising: In response to obtaining an image of the surrounding environment of the carrier at the current moment, feature extraction is performed on the image based on a preset feature extraction rule to obtain visual geometric features and visual semantic features of the image; wherein the image includes an image taken by an onboard camera of the carrier, or an image frame in a video collected by an onboard camera of the carrier; the image includes image information of a landmark located in the surrounding environment; and the visual semantic features have a unified category label set; Based on the visual geometric features and the visual semantic features, using the visual semantic random model standardization rule, determining the visual geometric feature point pairs and the standardized random model corresponding to the visual geometric feature point pairs; Based on the visual geometric feature point pairs, the standardized random model corresponding to the visual geometric feature point pairs and the visual semantic features, a semantically enhanced pose constraint objective function is constructed using the visual semantic function model standardization rules to determine the final pose of the carrier and / or the landmark at the current moment.

2. The method according to claim 1, characterized in that Performing feature extraction on the image based on a preset feature extraction rule to obtain visual geometric features and visual semantic features of the image, including: Using a preset visual geometric feature extraction rule, extracting features from the image to obtain the visual geometric features; Based on the currently used preset visual semantic feature extraction network, feature extraction is performed on the image to obtain the visual semantic feature; wherein the preset visual semantic feature extraction network includes multiple types, and different types of preset visual semantic feature extraction networks correspond to different category label sets; Determining a matching label set conversion rule according to the category label set of the preset visual semantic feature extraction network currently used; The label set conversion rule is used to convert the category label set of the visual semantic features into a unified category label set.

3. The method according to claim 2, characterized in that According to the category label set of the preset visual semantic feature extraction network currently used, a matching label set conversion rule is determined, including: Determining label set category parameters according to the category label set of the preset visual semantic feature extraction network currently used; According to the tag set category parameter, a tag set conversion rule is selected; wherein the tag set conversion rule at least includes merging and discarding.

4. The method according to claim 1, characterized in that Based on the visual geometric features and the visual semantic features, and using the visual semantic random model standardization rule, determining the visual geometric feature point pairs and the standardized random model corresponding to the visual geometric feature point pairs, including: Determine the pair of visual geometric feature points by using the visual geometric feature and a reference image; wherein the reference image is an image of the surrounding environment of the carrier collected before the current moment; Determining the semantic category and initial uncertainty of the visual geometric feature by using a preset semantic label consistency rule; Based on the semantic category of the visual geometric feature and a preset priori dynamic probability lookup table, the priori dynamic probability of the visual geometric feature is obtained; wherein the preset priori dynamic probability lookup table pre-stores a mapping relationship between the semantic category and the priori dynamic probability; Determining the posterior dynamic probability of the visual geometric feature using the prior dynamic probability; Based on the posterior dynamic probability and the dynamic probability of matching visual geometric features in the reference image, the initial uncertainty is adjusted using a Bayesian filtering rule to obtain a final uncertainty; The final uncertainty is mapped to the standardized random model by using a preset semantic feature random model mapping rule.

5. The method according to claim 4, characterized in that Determining the posterior dynamic probability of the visual geometric feature by using the prior dynamic probability includes: For each feature in the visual geometric features, according to the corresponding prior dynamic probability, a feature below a preset threshold is selected as a target feature; Determine the initial position and posture of the carrier and / or landmark at the current moment by using the target feature; Based on the initial pose, using a preset multi-view geometry algorithm, determining a motion consistency result of the visual geometric feature; The a posteriori dynamic probability is determined according to the motion consistency result and the a priori dynamic probability.

6. The method according to claim 1, characterized in that Based on the visual geometric feature point pairs, the standardized random model corresponding to the visual geometric feature point pairs, and the visual semantic features, a semantically enhanced pose constraint objective function is constructed using a visual semantic function model standardization rule to determine the final pose of the carrier and / or the landmark at the current moment, including: Using the visual geometric feature point pairs and the standardized random model corresponding to the visual geometric feature point pairs, a geometric feature pose constraint conforming to the standardized function model is established; Using the standardized random model corresponding to the visual geometric feature point pair and the visual semantic feature, a visual semantic pose constraint conforming to the standardized function model is established; Based on the geometric feature pose constraint and the visual semantic pose constraint, a semantically enhanced pose constraint objective function is established; The semantically enhanced posture constraint objective function is used to optimize the initial posture of the carrier and / or the landmark at the current moment, and the final posture of the carrier and / or the landmark at the current moment is obtained as the semantically enhanced visual positioning result.

7. A device for visual positioning, comprising: The feature extraction module is configured to: in response to acquiring an image of the surrounding environment of the carrier at the current moment, extract features from the image based on a preset feature extraction rule to obtain visual geometric features and visual semantic features of the image; wherein the image includes an image taken by an onboard camera of the carrier, or an image frame in a video collected by an onboard camera of the carrier; the image includes image information of a landmark located in the surrounding environment; and the visual semantic features have a unified category label set; A matching tracking module is configured to: determine a pair of visual geometric feature points and a standardized random model corresponding to the pair of visual geometric feature points based on the visual geometric features and the visual semantic features and using a visual semantic random model standardization rule; The enhanced positioning module is configured to: based on the visual geometric feature point pairs, the standardized random model corresponding to the visual geometric feature point pairs and the visual semantic features, utilize the visual semantic function model standardization rules to construct a semantically enhanced posture constraint objective function to determine the final posture of the carrier and / or the landmark at the current moment.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for visual positioning according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for visual positioning according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for visual positioning according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Unmanned aerial vehicle visual repositioning method based on object semantics

    CN114202701A

  • Visual localization and mapping method, system and equipment based on geometry and semantics and medium

    CN117036484A

  • Mobile robot visual positioning method and system based on object-level road sign

    CN117911967A

  • Positioning method, positioning system, and vehicle

    WO2022041706A1

  • Training method for visual inertial odometer model, posture estimation method and apparatuses, electronic device, computer-readable storage medium, and program product

    WO2023165093A1

Cited By

  • Robot positioning method, device and equipment and storage medium

    CN121089752A