WO2022110777A1 - 定位方法及装置、电子设备、存储介质、计算机程序产品、计算机程序 - Google Patents
定位方法及装置、电子设备、存储介质、计算机程序产品、计算机程序 Download PDFInfo
- Publication number
- WO2022110777A1 WO2022110777A1 PCT/CN2021/101040 CN2021101040W WO2022110777A1 WO 2022110777 A1 WO2022110777 A1 WO 2022110777A1 CN 2021101040 W CN2021101040 W CN 2021101040W WO 2022110777 A1 WO2022110777 A1 WO 2022110777A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- positioning
- positioning result
- result
- attitude information
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 81
- 238000004590 computer program Methods 0.000 title claims abstract description 31
- 230000000007 visual effect Effects 0.000 claims abstract description 15
- 238000012795 verification Methods 0.000 claims description 65
- 230000005484 gravity Effects 0.000 claims description 45
- 230000004807 localization Effects 0.000 claims description 21
- 230000007613 environmental effect Effects 0.000 claims description 17
- 238000005259 measurement Methods 0.000 claims description 8
- 230000003190 augmentative effect Effects 0.000 claims description 6
- 238000012545 processing Methods 0.000 description 24
- 238000010586 diagram Methods 0.000 description 22
- 230000006870 function Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 9
- 206010034719 Personality change Diseases 0.000 description 7
- 239000000470 constituent Substances 0.000 description 5
- 230000001133 acceleration Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C11/00—Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
- G01C11/04—Interpretation of pictures
- G01C11/06—Interpretation of pictures by comparison of two or more pictures of the same area
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
- G01C21/16—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/28—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network with correlation of data from several navigational instruments
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/28—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network with correlation of data from several navigational instruments
- G01C21/30—Map- or contour-matching
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/28—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network with correlation of data from several navigational instruments
- G01C21/30—Map- or contour-matching
- G01C21/32—Structuring or formatting of map data
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/36—Input/output arrangements for on-board computers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Definitions
- the present disclosure relates to, but is not limited to, the field of computer technology, and in particular, relates to a positioning method and apparatus, electronic equipment, storage medium, computer program product, and computer program.
- terminal positioning is realized by means of visual positioning, and in some scenarios, positioning errors are prone to occur.
- the embodiment of the present disclosure proposes a positioning technical solution, which can be implemented as follows:
- An embodiment of the present disclosure provides a positioning method, which is applied to a second electronic device, including:
- the current geographic area where the first electronic device is located is determined according to a first positioning result in the positioning request, where the positioning request includes the first positioning request.
- the environmental image of the environment where the electronic device is located and the first localization result of the first electronic device; the point cloud sub-map corresponding to the current geographical area is determined from the preset point cloud map; according to the environmental image and For the point cloud submap, perform visual positioning on the first electronic device to obtain a second positioning result of the first electronic device; and send the second positioning result to the first electronic device.
- performing visual positioning on the first electronic device according to the environment image and the point cloud submap to obtain a second positioning result of the first electronic device includes: The environment image is projected and matched with the point cloud submap to determine the point cloud information matched with the environment image; and the second positioning result of the first electronic device is determined according to the matched point cloud information.
- the positioning request further includes gravity posture information of the first electronic device, and the first electronic device is visually positioned according to the environment image and the point cloud submap,
- Obtaining the second positioning result of the first electronic device includes: matching the environment image with the point cloud submap to obtain a third positioning result of the first electronic device; and according to the gravity attitude information, The third positioning result is verified to determine the second positioning result, where the second positioning result includes position information and attitude information of the first electronic device.
- verifying the third positioning result according to the gravity attitude information, and determining the second positioning result includes: determining the first electronic device according to the gravity attitude information. the first direction; determine the second direction of the first electronic device according to the attitude information in the third positioning result; determine the third positioning result that satisfies the verification condition as the second positioning result, the verification condition It includes that the angle difference between the first direction and the second direction in the direction of gravity is less than or equal to an angle threshold.
- the method further includes: if all the third positioning results do not meet the verification condition, sending positioning failure information to the first electronic device.
- An embodiment of the present disclosure provides a positioning method, which is applied to a first electronic device, and includes: sending a positioning request to a second electronic device, where the positioning request includes an environmental image of the environment where the first electronic device is located and the first electronic device.
- a first localization result local to an electronic device in the case of receiving a second localization result sent by the second electronic device, according to at least one first historical localization result local to the first electronic device and the second localization result
- At least one second historical positioning result sent by the electronic device to determine whether the second positioning result satisfies the consistency verification condition; in the case that the second positioning result meets the consistency verification condition, according to the second positioning result
- the results are positioned and displayed.
- the second positioning result satisfies the Consistency verification conditions, including: according to the first posture information in the first positioning result, the second posture information in the second positioning result, and the third posture information in the first historical positioning result, the The fourth attitude information in the second historical positioning result determines the attitude deviation; in the case that the attitude deviation is less than or equal to the deviation threshold, it is determined that the second positioning result satisfies the consistency verification condition.
- the method before sending the positioning request to the second electronic device, the method further includes: determining, according to the environment image and a local map of the first electronic device, a local first location of the first electronic device. A positioning result, where the first positioning result includes position information and attitude information of the first electronic device.
- the method before sending the positioning request to the second electronic device, the method further includes: determining the gravity attitude information of the first electronic device through the inertial measurement unit IMU of the first electronic device, the The positioning request includes the gravity attitude information.
- the performing positioning and displaying according to the second positioning result includes: determining a navigation path of the first electronic device according to the second positioning result and the geographic location of the destination; Navigation path, displaying the augmented reality AR navigation path in the display interface of the screen of the first electronic device.
- the performing positioning and displaying according to the second positioning result includes: determining, according to the second positioning result and first position and attitude information of the AR object, that the AR object is in the first position of the AR object.
- the second position and attitude information in the display interface of the screen of the electronic device; the AR object is displayed in the display interface according to the second position and attitude information.
- An embodiment of the present disclosure provides a positioning apparatus, which is applied to a second electronic device, and includes: an area determination part configured to, in the case of receiving a positioning request from the first electronic device, according to the first positioning request in the positioning request
- the positioning result is to determine the current geographic area where the first electronic device is located, and the positioning request includes an environmental image of the environment where the first electronic device is located and the first localization result of the first electronic device; the sub-map is determined
- the positioning part is configured to determine the point cloud sub-map corresponding to the current geographical area from the preset point cloud map; the positioning part is configured to determine the first
- the electronic device performs visual positioning to obtain a second positioning result of the first electronic device; the result sending part is configured to send the second positioning result to the first electronic device.
- An embodiment of the present disclosure provides a positioning apparatus, which is applied to a first electronic device, and includes: a request sending part configured to send a positioning request to a second electronic device, where the positioning request includes information about the environment where the first electronic device is located. an environment image and a local first localization result of the first electronic device; the verification part is configured to, in the case of receiving the second localization result sent by the second electronic device, A first historical positioning result and at least one second historical positioning result sent by the second electronic device, to determine whether the second positioning result satisfies the consistency verification condition; the positioning and display part is configured to be in the second positioning If the result satisfies the consistency verification condition, positioning and display are performed according to the second positioning result.
- An embodiment of the present disclosure provides an electronic device, including: a processor; a memory configured to store instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
- Embodiments of the present disclosure provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented.
- Embodiments of the present disclosure provide a computer program, including computer-readable codes, and when the computer-readable codes are run on a device, a processor in the device executes instructions for implementing the above method.
- Embodiments of the present disclosure also provide a computer program product for storing computer-readable instructions, which, when executed, cause a computer to execute the above method.
- the positioning request sent by the first electronic device can include a local positioning result
- the second electronic device can determine the current geographical area where the first electronic device is located according to the local positioning result
- the sub-map is used for positioning, thereby improving the success rate and positioning accuracy of positioning, and reducing the probability of false matching.
- FIG. 1 is a schematic diagram of an implementation flowchart of a positioning method provided by an embodiment of the present disclosure.
- FIG. 2 is a schematic diagram of an implementation flow of a positioning method provided by an embodiment of the present disclosure.
- FIG. 3 is a schematic structural diagram of a positioning device according to an embodiment of the present disclosure.
- FIG. 4 is a schematic structural diagram of a positioning device according to an embodiment of the present disclosure.
- FIG. 5 is a schematic diagram of the composition and structure of an electronic device according to an embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
- the positioning in the case of realizing terminal positioning by means of visual positioning, the positioning usually only relies on the image uploaded by the user, resulting in that the positioning accuracy cannot be guaranteed, especially in application environments such as weak textures, repeated textures or large scenes. Positioning errors are prone to occur.
- the embodiments of the present disclosure provide a positioning method, which can be applied to indoor and outdoor scenarios such as large shopping malls, transportation hubs, hospitals, large exhibition halls, etc., to improve the positioning accuracy.
- the positioning method can be implemented by the first electronic device and the second electronic device.
- the first electronic device may include, for example, a terminal device
- the second electronic device may include, for example, a cloud server.
- FIG. 1 is a schematic diagram of an implementation flowchart of a positioning method provided by an embodiment of the present disclosure.
- the positioning method can be applied to a second electronic device. As shown in FIG. 1 , the positioning method includes:
- step S11 in the case of receiving a positioning request from a first electronic device, the current geographic area where the first electronic device is located is determined according to a first positioning result in the positioning request, and the positioning request includes including an environmental image of the environment where the first electronic device is located and a local first localization result of the first electronic device;
- step S12 a point cloud submap corresponding to the current geographic area is determined from a preset point cloud map
- step S13 visual positioning is performed on the first electronic device according to the environment image and the point cloud submap to obtain a second positioning result of the first electronic device;
- step S14 the second positioning result is sent to the first electronic device.
- the second electronic device may be, for example, a cloud server, which stores a point cloud map of the entire geographic area (eg, an inner area of a shopping mall, a city area, etc.) where the first electronic device is located.
- a cloud server which stores a point cloud map of the entire geographic area (eg, an inner area of a shopping mall, a city area, etc.) where the first electronic device is located.
- the first electronic device may be a terminal device, such as User Equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, Personal Digital Assistant (PDA), Handheld devices, computing devices, in-vehicle devices, wearable devices, etc.
- UE User Equipment
- PDA Personal Digital Assistant
- the method may be implemented by a processor invoking computer readable instructions stored in a memory.
- an environmental image of the environment in which he is located may be collected by a collection component (such as a camera) of the first electronic device, such as photographing the first electronic device.
- a collection component such as a camera
- the environment image may be one or more images, or may be a short video including multiple frames of images, which is not limited in this embodiment of the present disclosure.
- a set of Simultaneous Localization And Mapping (SLAM) system may be run locally on the first electronic device.
- SLAM Simultaneous Localization And Mapping
- a local map of the entire geographic area where the first electronic device is located may be stored in the first electronic device, and the accuracy of the local map is lower than that of the point cloud map in the second electronic device.
- the first electronic device may collect an environment image, and perform preliminary positioning through the SLAM system according to the environment image and the local map to obtain a local positioning result of the first electronic device (referred to as the first positioning result).
- the first positioning result may include position information and attitude information of the first electronic device, and the positioning accuracy of the first positioning result may be lower than the positioning result of the cloud.
- the first electronic device may send a positioning request to the second electronic device, and the positioning request may include the environment image and the first positioning result.
- the positioning result of the local SLAM system can be used as a priori information during cloud positioning, so that the second electronic device can improve the matching efficiency and improve the positioning accuracy.
- the second electronic device when receiving a positioning request from the first electronic device, may determine the current geographic area where the first electronic device is located according to the first positioning result. That is, the second electronic device can use the positioning information provided locally by the first electronic device, such as pose (Pose), to determine the area where the first electronic device is located, so as to perform local mini-map positioning and improve positioning accuracy.
- the positioning information provided locally by the first electronic device, such as pose (Pose)
- the current geographic area may be an area within a certain range near the local positioning position of the first electronic device, for example, the distance from the local positioning position of the first electronic device is within a preset distance (for example, 5-10 meters).
- a preset distance for example, 5-10 meters.
- a circular area, and the specific scope of the current geographic area is not limited in this embodiment of the present disclosure.
- a point cloud sub-map corresponding to the current geographic area may be determined from the point cloud map of the overall geographic area.
- the first electronic device may be visually positioned according to the environment image and the point cloud submap to obtain a second positioning result of the first electronic device.
- the second electronic device may extract feature information of the environment image.
- the feature information of the environment image can be obtained by, for example, performing feature extraction on the environment image through a pre-trained neural network.
- the embodiments of the present disclosure do not limit the specific manner of feature extraction.
- the second electronic device may match the feature information with the point cloud submap to determine a matching visual positioning result (which may be referred to as a second positioning result).
- a matching visual positioning result which may be referred to as a second positioning result.
- the second positioning result includes position information and attitude information of the first electronic device.
- the position information may include the position coordinates of the first electronic device; the attitude information may include the orientation, pitch angle, etc. of the first electronic device.
- the second electronic device may send the second positioning result to the first electronic device, so as to correct the position and attitude information of the local SLAM of the first electronic device.
- the positioning request sent by the first electronic device can include a local positioning result
- the second electronic device can determine the current geographical area where the first electronic device is located according to the local positioning result
- the sub-map is used for positioning, thereby improving the success rate and positioning accuracy of positioning, and reducing the probability of false matching.
- step S13 may include:
- a second positioning result of the first electronic device is determined.
- the second electronic device can project the three-dimensional point cloud submap into a two-dimensional image, and then match it with the environment image.
- the environmental feature points in the environmental image can only be matched with the feature points projected from the point cloud submap within the radius of the environmental feature point, thereby reducing the probability of false matching and improving the matching efficiency.
- point cloud information matching the environment image can be determined; then the position and attitude information corresponding to the matched point cloud information can be determined as the second positioning result of the first electronic device, thereby Complete the positioning process.
- an inertial measurement unit (Inertial measurement unit, IMU) is usually provided in the first electronic device, for acquiring information such as speed, acceleration, angular velocity, and the like of the first electronic device.
- the first electronic device may determine the gravity attitude (Attitude) information of the first electronic device according to the IMU, for example, including the direction of the first electronic device, which is not limited in this embodiment of the present disclosure.
- the positioning request sent by the first electronic device may include gravity posture information of the first electronic device.
- the gravity attitude information is relatively accurate and can be used as a priori information for cloud positioning.
- step S13 may include:
- the third positioning result is verified, and the second positioning result is determined, and the second positioning result includes the position information and attitude information of the first electronic device.
- the second electronic device may match the environment image with the point cloud submap of the current geographic area to obtain a preliminary positioning result (which may be referred to as a third positioning result).
- a preliminary positioning result which may be referred to as a third positioning result.
- the embodiment of the present disclosure does not limit the specific manner of matching the environment image with the point cloud submap.
- the second electronic device may verify the third positioning result, so as to eliminate erroneous positioning results.
- the third positioning result is verified according to the gravity attitude information, and the step of determining the second positioning result may include:
- a third positioning result satisfying a verification condition is determined as the second positioning result, and the verification condition includes that the angle difference between the first direction and the second direction in the direction of gravity is less than or equal to an angle threshold.
- the first direction R imu of the first electronic device can be determined; according to the attitude information in the third positioning result, the second direction R cloud of the first electronic device can be determined ; According to the first direction R imu and the second direction R cloud , the angle difference between the first direction and the second direction in the direction of gravity can be determined.
- the angle difference A can be determined by the following formula 1-1:
- z represents the coordinate axis in the direction of gravity
- dR*z represents the value of the vector dR in the z-axis direction
- acos() represents the arc cosine function
- the angle difference A between the first direction and the second direction in the direction of gravity is less than or equal to a preset angle threshold, it may be considered that the attitude of the third positioning result is within the allowable error range, which is The correct positioning result meets the verification conditions. That is, the verification condition includes that the angle difference between the first direction and the second direction in the direction of gravity is less than or equal to the angle threshold.
- the embodiment of the present disclosure does not limit the specific value of the angle threshold.
- the third positioning result satisfying the verification condition may be determined as the second positioning result.
- the third positioning result that does not meet the verification condition exceeds the allowable range of the error and is an erroneous positioning result, and the third positioning result that does not meet the verification condition may be deleted.
- the positioning method may further include:
- the third positioning results if all the third positioning results do not meet the verification condition, that is, the first direction and the second direction of each third positioning result are in the direction of gravity If the angle difference A is greater than the preset angle threshold, it can be considered that the attitude of each third positioning result exceeds the allowable range of error, which is an erroneous positioning result, and it is determined that the verification of the third positioning result fails.
- the environment image and the point cloud submap may also be matched again, so as to obtain a new positioning result.
- the embodiment of the present disclosure does not limit the specific processing manner after the verification of the third positioning result fails.
- positioning failure information can be returned to the terminal, thereby avoiding sending back an erroneous positioning result and improving the accuracy of the positioning result.
- FIG. 2 is a schematic diagram of an implementation flow of a positioning method according to an embodiment of the present disclosure.
- the positioning method can be applied to a first electronic device. As shown in FIG. 2 , the positioning method includes:
- step S21 a positioning request is sent to the second electronic device, where the positioning request includes an environmental image of the environment where the first electronic device is located and a local first positioning result of the first electronic device;
- step S22 in the case of receiving the second positioning result sent by the second electronic device, according to at least one local historical positioning result of the first electronic device and at least one local positioning result sent by the second electronic device A second historical positioning result, to judge whether the second positioning result satisfies the consistency verification condition;
- step S23 if the second positioning result satisfies the consistency verification condition, positioning and displaying are performed according to the second positioning result.
- the first electronic device may be a terminal device.
- the second electronic device may be, for example, a cloud server, which stores a point cloud map of the entire geographic area where the first electronic device is located (eg, an inner area of a shopping mall, a city area, etc.).
- an environmental image of the environment in which he is located can be collected through a collection component (such as a camera) of the first electronic device, for example, a photograph of what the first electronic device faces image of the scenery.
- the environment image may be one or more images, or may be a short video including multiple frames of images, which is not limited in this embodiment of the present disclosure.
- a SLAM system may be run locally on the first electronic device.
- the local SLAM system is used for preliminary positioning, and then the cloud positioning results are requested to correct the local SLAM position and attitude information.
- the first electronic device may send a positioning request to the second electronic device, and the positioning request may include an environment image and a local first positioning result.
- the positioning result of the local SLAM system can be used as a priori information during cloud positioning, so that the second electronic device can increase the matching efficiency and improve the positioning accuracy.
- the second electronic device when receiving a positioning request from the first electronic device, may determine where the first electronic device is located according to the first positioning result in the positioning request (for example, the pose provided by SLAM).
- the current geographic area may be an area within a certain range near the local positioning position of the first electronic device, for example, the distance from the local positioning position of the first electronic device is within a preset distance (for example, 5-10 meters).
- a preset distance for example, 5-10 meters.
- a circular area, and the specific scope of the current geographic area is not limited in this embodiment of the present disclosure.
- the second positioning result obtained by positioning the second electronic device may include position information and attitude information of the first electronic device.
- the position information may include the position coordinates of the first electronic device; the attitude information may include the orientation, pitch angle, etc. of the first electronic device.
- the first electronic device may perform consistency verification on the second positioning result to verify the accuracy of the second positioning result .
- the first electronic device may determine whether the current second positioning result satisfies the consistency verification condition according to at least one local first historical positioning result and at least one second historical positioning result sent by the second electronic device.
- the first historical positioning result may include the first positioning result obtained by performing local positioning by the first electronic device before sending the current positioning request; the second historical positioning result may include the first positioning result obtained after receiving the second electronic device The second positioning result that has been received by the first electronic device before the current second positioning result. For example, if this time is the kth positioning, the first historical positioning result may include all or part of the first positioning results from the 1st to the k-1th local positioning, and the second historical positioning results may include the first to the k-1th local positioning results. All or part of the second positioning results received in k-1 times.
- the position difference between the local first historical positioning result and the current first positioning result, and the positioning change between the second historical positioning result in the cloud and the current second positioning result can be calculated respectively; When the difference between the two sets of positioning changes is small, it can be considered that the consistency verification condition is satisfied; on the contrary, when the difference between the two sets of positioning changes is large, it can be considered that the consistency verification condition is not satisfied.
- the embodiment of the present disclosure does not limit the specific setting of the consistency verification condition.
- the second positioning result may be used as the final positioning result of the first electronic device, and positioning may be performed according to the second positioning result and display. That is, the output result of the visual-inertial odometry (VIO) module of the local SLAM system can be constrained by the second positioning result. According to the current application scenario of the first electronic device, the corresponding content to be displayed is rendered through the output result of the VIO module, and displayed on the display interface.
- VIO visual-inertial odometry
- the navigation path can be determined according to the second positioning result and the destination position and displayed on the display interface, so as to realize the navigation function; Based on the positioning result, the position and posture of the virtual object to be displayed are determined, and displayed on the display interface, thereby realizing accurate virtual object display.
- the embodiments of the present disclosure do not limit the specific content displayed in the display interface.
- a positioning request including an environmental image and a local positioning result can be sent to the second electronic device, so as to realize the positioning of a high-precision map and improve the positioning accuracy and success rate; the positioning result returned by the second electronic device can be Consistency verification is performed to filter erroneous positioning results and improve the quality of positioning.
- step S22 may include:
- the The fourth attitude information to determine the attitude deviation
- the first attitude change value of the local positioning of the first electronic device can be calculated.
- the fourth attitude information in the second historical positioning result previously sent by the cloud and the second attitude information in the second positioning result currently sent by the cloud calculate the second attitude change value of the first electronic device positioned in the cloud.
- the attitude deviation between the attitude change values may be determined according to the first attitude change value and the second attitude change value. For example, when the historical positioning result of a certain positioning is used, the attitude deviation
- the attitude deviation when the attitude deviation is less than or equal to a preset deviation threshold, it can be considered that the second positioning result currently sent by the cloud is within the allowable error range, consistent with the motion state of the local SLAM, and satisfies the consistency Verify the conditions for correct positioning results. In this case, corresponding positioning and display can be performed according to the second positioning result.
- the embodiment of the present disclosure does not limit the specific value of the deviation threshold.
- the second positioning result currently sent by the cloud exceeds the allowable range of the error, is inconsistent with the motion state of the local SLAM, does not meet the consistency verification conditions, and is an error positioning results.
- the second positioning result may be deleted, or the second positioning result may not be used to constrain the output result of the VIO module of the local SLAM system, and a positioning request may be sent to the second electronic device again.
- the method before step S21, the method further includes:
- a first localization result of the first electronic device is determined, where the first localization result includes position information and attitude information of the first electronic device.
- the first electronic device may store a local map of the entire geographic area where the first electronic device is located, and the accuracy of the local map is lower than that of the point cloud map in the second electronic device.
- the first electronic device may collect an environment image, and perform preliminary positioning through the SLAM system according to the environment image and the local map to obtain a local positioning result of the first electronic device (referred to as the first positioning result).
- the first positioning result may include position information and attitude information of the first electronic device, and the positioning accuracy of the first positioning result may be lower than the positioning result of the cloud.
- the positioning request when the first electronic device sends a positioning request to the second electronic device in step S21, the positioning request includes the local first positioning result.
- the positioning result of the local SLAM system can be used as a priori information during cloud positioning, so that the second electronic device can improve the matching efficiency, improve the positioning accuracy, and eliminate erroneous matching results.
- the method before step S21, the method further includes:
- the gravity attitude information of the first electronic device is determined through the inertial measurement unit IMU of the first electronic device, and the positioning request includes the gravity attitude information.
- an inertial measurement unit IMU is usually provided in the first electronic device, which is used to acquire information such as speed, acceleration, and angular velocity of the first electronic device.
- the first electronic device may determine gravity attitude (attitude) information of the first electronic device according to the IMU, for example, including the direction of the first electronic device, which is not limited in this embodiment of the present disclosure.
- the positioning request sent by the first electronic device may include the gravity attitude information, which is relatively accurate and can be used as a priori information during cloud positioning, and the cloud may verify the third positioning result, so that Eliminate wrong positioning results, thereby improving the accuracy of positioning results.
- step S23 may include:
- the augmented reality AR navigation path is displayed in the display interface of the screen of the first electronic device.
- the navigation path of the first electronic device can be determined according to the position information and posture information in the second positioning result and the geographic location of the destination set by the user.
- the embodiment of the present disclosure does not limit the specific manner of determining the navigation path.
- the AR navigation path may be displayed in a live image or a panoramic image of the display interface of the screen of the first electronic device, so as to instruct the user to follow the AR navigation path.
- the AR navigation path includes, for example, AR arrows along the navigation path. The embodiment of the present disclosure does not limit the specific form of the AR navigation path.
- step S23 may include:
- the second positioning result and the first position and attitude information of the AR object determine the second position and attitude information of the AR object in the display interface of the first electronic device screen
- the AR object is displayed in the display interface according to the second position and attitude information.
- the AR object is in the first electronic device according to the position information and attitude information in the second positioning result and the first position and attitude information of the AR object to be displayed.
- the second position and attitude information in the display interface of the screen do not limit the specific determination manner.
- the AR object may be displayed in the real image of the display interface.
- the AR objects to be displayed may include AR markers, virtual objects, and the like, such as virtual landscapes, virtual animals, and the like.
- the embodiments of the present disclosure do not limit the specific categories of AR objects.
- the AR object display in the real scene image can be realized, and the accuracy of the AR object display can be improved.
- the positioning request sent by the terminal to the cloud includes the positioning result of the local SLAM, so that the cloud can determine the current geographical area where the terminal is located according to the local positioning result, and perform positioning according to the submap of the current geographical area, In this way, the success rate and accuracy of positioning are improved, and the probability of mismatching is reduced; the positioning request also includes the gravity attitude information of the IMU, so that the cloud can verify the cloud positioning results according to the gravity attitude information, so as to eliminate the wrong positioning results and improve positioning. accuracy of the result.
- the terminal after receiving the positioning results returned by the cloud, the terminal can perform consistency verification on the current positioning results according to the historical positioning results, filter the wrong positioning results, and filter out the qualified positioning results, thereby improving the positioning quality.
- the positioning method according to the embodiment of the present disclosure can be applied to various application scenarios of augmented reality AR, such as AR cloud, AR navigation and other scenarios; and various application scenarios of Location Based Services (LBS).
- augmented reality AR such as AR cloud, AR navigation and other scenarios
- LBS Location Based Services
- embodiments of the present disclosure also provide positioning devices, electronic devices, computer-readable storage media, and programs, all of which can be used to implement any positioning method provided by the embodiments of the present disclosure. Record accordingly.
- FIG. 3 is a schematic structural diagram of a positioning device provided by an embodiment of the present disclosure.
- the device is applied to a second electronic device. As shown in FIG. 3 , the device includes:
- the area determination part 31 is configured to, in the case of receiving a positioning request from the first electronic device, according to the first positioning result in the positioning request, determine the current geographical area where the first electronic device is located, and the positioning The request includes an environment image of the environment where the first electronic device is located and a local first localization result of the first electronic device;
- the submap determination part 32 is configured to determine the point cloud submap corresponding to the current geographical area from the preset point cloud map;
- the positioning part 33 is configured to perform visual positioning on the first electronic device according to the environment image and the point cloud sub-map to obtain a second positioning result of the first electronic device;
- the result sending part 34 is configured to send the second positioning result to the first electronic device.
- the positioning part includes: a first matching sub-part configured to perform projection matching on the environment image and the point cloud sub-map, and determine point cloud information matched with the environment image; the result is determined The part is configured to determine the second positioning result of the first electronic device according to the matched point cloud information.
- the positioning request further includes gravity attitude information of the first electronic device
- the positioning part includes: a second matching sub-section configured to compare the environment image and the point cloud sub-map Matching is performed to obtain the third positioning result of the first electronic device; the first verification sub-section is configured to verify the third positioning result according to the gravity attitude information, and determine the second positioning result.
- the second positioning result includes position information and attitude information of the first electronic device.
- the first verification sub-section is further configured to: determine the first direction of the first electronic device according to the gravitational attitude information; determine the first direction of the first electronic device according to the attitude information in the third positioning result The second orientation of the first electronic device; the third positioning result satisfying the verification condition is determined as the second positioning result, and the verification condition includes the angle between the first direction and the second direction in the direction of gravity The difference is less than or equal to the angle threshold.
- the apparatus further includes: an information sending part configured to send positioning failure information to the first electronic device if all third positioning results do not satisfy the verification condition.
- FIG. 4 is a schematic structural diagram of a positioning device provided by an embodiment of the present disclosure.
- the device is applied to a first electronic device. As shown in FIG. 4 , the device includes:
- the request sending part 41 is configured to send a positioning request to the second electronic device, where the positioning request includes an environment image of the environment where the first electronic device is located and a local first positioning result of the first electronic device;
- the verification part 42 is configured to, in the case of receiving the second positioning result sent by the second electronic device, according to at least one first historical positioning result local to the first electronic device and the second positioning result sent by the second electronic device. At least one second historical positioning result, to determine whether the second positioning result satisfies the consistency verification condition;
- the positioning and display part 43 is configured to perform positioning and display according to the second positioning result when the second positioning result satisfies the consistency verification condition.
- the verification part includes: a deviation determination sub-part configured to be based on the first posture information in the first positioning result, the second posture information in the second positioning result, the first The third attitude information in the historical positioning result, and the fourth attitude information in the second historical positioning result, determine attitude deviation; the second verification sub-section is configured to be less than or equal to the deviation threshold when the attitude deviation is less than or equal to the threshold value, It is determined that the second positioning result satisfies the consistency verification condition.
- the apparatus further includes: a local positioning part configured to determine a local first localization result of the first electronic device according to the environment image and the local map of the first electronic device.
- the apparatus further includes: a gravity attitude determination part, configured to determine the gravity attitude information of the first electronic device through the inertial measurement unit IMU of the first electronic device, and the positioning request includes the gravity attitude information.
- the positioning and displaying part is further configured to: determine a navigation path of the first electronic device according to the second positioning result and the geographic position of the destination;
- the augmented reality AR navigation path is displayed in the display interface of the screen of the first electronic device.
- the positioning and displaying part is further configured to: determine the display interface of the AR object on the screen of the first electronic device according to the second positioning result and the first position and attitude information of the AR object The second position and attitude information in the ; according to the second position and attitude information, the AR object is displayed in the display interface.
- the functions or included parts of the apparatus provided in the embodiments of the present disclosure may be configured to execute the methods described in the above method embodiments, and for specific implementation, reference may be made to the above method embodiments.
- a "part" may be a part of a circuit, a part of a processor, a part of a program or software, etc., of course, a unit, a module or a non-modularity.
- Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented.
- the computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium.
- Embodiments of the present disclosure further provide an electronic device, including: a processor; a memory configured to store instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
- Embodiments of the present disclosure also provide a computer program, including computer-readable codes.
- a processor in the device executes the method for implementing the positioning method provided by any of the above embodiments. instruction.
- Embodiments of the present disclosure further provide a computer program product for storing computer-readable instructions, which, when executed, cause the computer to perform the operations of the positioning method provided by any of the foregoing embodiments.
- Electronic devices may be implemented as terminals, servers, or other forms of devices.
- FIG. 5 is a schematic structural diagram of an electronic device 800 according to an embodiment of the present disclosure.
- electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc. terminal.
- an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an Input/Output (I/O) interface 812, Sensor assembly 814 , and communication assembly 816 .
- the processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
- the processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above.
- processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components.
- processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
- Memory 804 is configured to store various types of data to support operation at electronic device 800 . Examples of such data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like.
- the memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable) Erasable Programmable Read Only Memory, EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (Read-Only Memory) , ROM), magnetic memory, flash memory, magnetic disk or optical disk.
- SRAM Static Random-Access Memory
- EEPROM Electrically Erasable Programmable Read-Only Memory
- EPROM Erasable Programmable Read Only Memory
- PROM Programmable Read Only Memory
- Read-Only Memory Read-Only Memory
- Power supply assembly 806 provides power to various components of electronic device 800 .
- Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
- Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
- the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
- the touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action.
- the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
- Audio component 810 is configured to output and/or input audio signals.
- audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when electronic device 800 is in operating modes, such as call mode, recording mode, and voice recognition mode.
- the received audio signal may be stored in memory 804 or transmitted via communication component 816 .
- audio component 810 also includes a speaker for outputting audio signals.
- the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
- Sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of electronic device 800 .
- the sensor assembly 814 can detect the on/off state of the electronic device 800, the relative positioning of the components, such as the display and the keypad of the electronic device 800, the sensor assembly 814 can also detect the electronic device 800 or one of the electronic device 800 Changes in the position of components, presence or absence of user contact with the electronic device 800 , orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 .
- Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
- Sensor assembly 814 may also include a light sensor, such as a Complementary Metal-Oxide-Semiconductor (CMOS) or Charge Coupled Device (CCD) image sensor, for use in imaging applications.
- CMOS Complementary Metal-Oxide-Semiconductor
- CCD Charge Coupled Device
- the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
- Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices.
- the electronic device 800 can access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (The 2nd Generation, 2G) or a third generation mobile communication technology (The 3rd Generation, 3G), or their The combination.
- the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
- the communication component 816 also includes a Near Field Communication (NFC) module to facilitate short-range communication.
- the NFC module may be based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (Bluetooth, BT) technology and other technology to achieve.
- RFID Radio Frequency Identification
- IrDA Infrared Data Association
- UWB Ultra Wide Band
- Bluetooth Bluetooth
- the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (Digital Signal Processing Devices) , DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation, used to perform the above method.
- ASICs Application Specific Integrated Circuits
- DSPs Digital Signal Processors
- DPD Digital Signal Processing Devices
- PLD Programmable Logic Device
- FPGA Field Programmable Gate Array
- controller microcontroller, microprocessor, or other electronic component implementation, used to perform the above method.
- a non-volatile computer-readable storage medium such as a memory 804 comprising computer program instructions executable by the processor 820 of the electronic device 800 to perform the above method is also provided.
- FIG. 6 is a schematic structural diagram of an electronic device 1900 according to an embodiment of the present disclosure.
- the electronic device 1900 may be implemented as a server.
- an electronic device 1900 includes a processing component 1922, which in some embodiments may include one or more processors, and a memory resource, represented by memory 1932, for storing instructions executable by the processing component 1922, such as applications program.
- An application program stored in memory 1932 may include one or more modules, each corresponding to a set of instructions.
- the processing component 1922 is configured to execute instructions to perform the above-described methods.
- the electronic device 1900 may also include a power supply assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 .
- the electronic device 1900 can operate based on an operating system stored in the memory 1932, such as a Microsoft server operating system (Windows Server TM ), a graphical user interface based operating system (Mac OS X TM ) introduced by Apple, a multi-user multi-process computer operating system (Unix TM ), Free and Open Source Unix-like Operating System (Linux TM ), Open Source Unix-like Operating System (FreeBSD TM ) or the like.
- Microsoft server operating system Windows Server TM
- Mac OS X TM graphical user interface based operating system
- Uniix TM multi-user multi-process computer operating system
- Free and Open Source Unix-like Operating System Linux TM
- FreeBSD TM Open Source Unix-like Operating System
- a non-volatile computer-readable storage medium such as memory 1932 comprising computer program instructions executable by the processing component 1922 of the electronic device 1900 to perform the above method.
- An embodiment of the present disclosure may be at least one of a system, a method, a computer-readable storage medium, a computer program product, and a computer program.
- the computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling the processor to implement the positioning method provided by any of the foregoing embodiments of the present disclosure.
- a computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device.
- the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
- Computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable Read Memory (EPROM or Flash), Static Random Access Memory (SRAM), Portable Compact Disc Read-Only Memory (CD-ROM), Digital Video Disc (DVD), Memory Stick , a floppy disk, a mechanically encoded device, such as a punched card or a raised structure in a groove with instructions stored thereon, and any suitable combination of the foregoing.
- RAM random access memory
- ROM read only memory
- EPROM or Flash erasable programmable Read Memory
- SRAM Static Random Access Memory
- CD-ROM Portable Compact Disc Read-Only Memory
- DVD Digital Video Disc
- Memory Stick a floppy disk
- mechanically encoded device such as a punched card or a raised structure in a groove with instructions stored thereon, and any suitable combination of the foregoing.
- Computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
- the computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network.
- the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
- a network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
- the computer program instructions for carrying out the operations of the present disclosure may be assembly instructions, Instruction Set Architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or in one or more source or object code written in any combination of programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages.
- the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
- the remote computer may be connected to the user's computer through any kind of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or, may be connected to an external computer (eg, use an internet service provider to connect via the internet).
- LAN Local Area Network
- WAN Wide Area Network
- custom electronic circuits such as programmable logic circuits, Field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), are personalized by utilizing state information of computer readable program instructions, The electronic circuit may execute computer-readable program instructions to implement embodiments of the present disclosure.
- Embodiments of the present disclosure are described herein with reference to flowchart illustrations and/or structural diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present disclosure. It will be understood that each block of the flowcharts and/or structural diagrams, and combinations of blocks in the flowcharts and/or structural diagrams, can be implemented by computer readable program instructions.
- These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more of the blocks in the flowcharts and/or constituent block diagrams.
- These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in the flowchart and/or constituent block diagrams.
- Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowchart and/or constituent block diagrams.
- each block in the flowchart or block diagram may represent a module, segment, or portion of an instruction that contains one or more logic for implementing the specified Executable instructions for the function.
- the functions noted in the blocks may also occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block of the constituent block diagrams and/or flowchart illustrations, and combinations of blocks in the constituent block diagrams and/or flowchart illustrations can be implemented using dedicated hardware-based hardware that performs the specified function or action. system, or can be implemented using a combination of dedicated hardware and computer instructions.
- the computer program product can be specifically implemented by hardware, software or a combination thereof.
- the computer program product is embodied as a computer storage medium, and in other embodiments, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.
- Embodiments of the present disclosure provide a positioning method and apparatus, electronic device, storage medium, computer program product, and computer program, wherein, when the method is applied to a second electronic device, the method includes: after receiving a positioning request from the first electronic device In the case where the first electronic device is located, the current geographic area where the first electronic device is located is determined according to the first positioning result in the positioning request, and the positioning request includes an environmental image of the environment where the first electronic device is located and the first electronic device. A first localization result of an electronic device; determine a point cloud submap corresponding to the current geographical area from a preset point cloud map; An electronic device performs visual positioning to obtain a second positioning result of the first electronic device; and sends the second positioning result to the first electronic device.
- positioning can be realized by the first electronic device and the second electronic device, and the success rate and positioning accuracy of positioning can be improved.
Landscapes
- Engineering & Computer Science (AREA)
- Remote Sensing (AREA)
- Radar, Positioning & Navigation (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Navigation (AREA)
Abstract
Description
Claims (26)
- 一种定位方法,应用于第二电子设备,包括:在接收到来自第一电子设备的定位请求的情况下,根据所述定位请求中的第一定位结果,确定所述第一电子设备所在的当前地理区域,所述定位请求中包括所述第一电子设备所在环境的环境图像以及所述第一电子设备本地的第一定位结果;从预设的点云地图中确定出与所述当前地理区域对应的点云子地图;根据所述环境图像以及所述点云子地图,对所述第一电子设备进行视觉定位,得到所述第一电子设备的第二定位结果;向所述第一电子设备发送所述第二定位结果。
- 根据权利要求1所述的方法,其中,所述根据所述环境图像以及所述点云子地图,对所述第一电子设备进行视觉定位,得到所述第一电子设备的第二定位结果,包括:对所述环境图像与所述点云子地图进行投影匹配,确定与所述环境图像匹配的点云信息;根据匹配的点云信息,确定所述第一电子设备的第二定位结果。
- 根据权利要求1所述的方法,其中,所述定位请求中还包括所述第一电子设备的重力姿态信息,所述根据所述环境图像以及所述点云子地图,对所述第一电子设备进行视觉定位,得到所述第一电子设备的第二定位结果,包括:对所述环境图像与所述点云子地图进行匹配,得到所述第一电子设备的第三定位结果;根据所述重力姿态信息,对所述第三定位结果进行验证,确定所述第二定位结果,所述第二定位结果包括所述第一电子设备的位置信息和姿态信息。
- 根据权利要求3所述的方法,其中,所述根据所述重力姿态信息,对所述第三定位结果进行验证,确定所述第二定位结果,包括:根据所述重力姿态信息,确定所述第一电子设备的第一方向;根据所述第三定位结果中的姿态信息,确定所述第一电子设备的第二方向;将满足验证条件的第三定位结果确定为所述第二定位结果,所述验证条件包括所述第一方向与所述第二方向在重力方向上的角度差小于或等于角度阈值。
- 根据权利要求4所述的方法,其中,所述方法还包括:在所有第三定位结果均不满足所述验证条件的情况下,向所述第一电子设备发送定位失败信息。
- 一种定位方法,应用于第一电子设备,包括:向第二电子设备发送定位请求,所述定位请求中包括所述第一电子设备所在环境的环境图像以及所述第一电子设备本地的第一定位结果;在接收到所述第二电子设备发送的第二定位结果的情况下,根据所述第一电子设备本地的至少一个第一历史定位结果以及所述第二电子设备发送的至少一个第二历史定位结果,判断所述第二定位结果是否满足一致性验证条件;在所述第二定位结果满足所述一致性验证条件的情况下,根据所述第二定位结果 进行定位及展示。
- 根据权利要求6所述的方法,其中,所述根据所述第一电子设备本地的至少一个第一历史定位结果以及所述第二电子设备发送的至少一个第二历史定位结果,判断所述第二定位结果是否满足一致性验证条件,包括:根据所述第一定位结果中的第一姿态信息、所述第二定位结果中的第二姿态信息、所述第一历史定位结果中的第三姿态信息,所述第二历史定位结果中的第四姿态信息,确定姿态偏差;在所述姿态偏差小于或等于偏差阈值的情况下,确定所述第二定位结果满足一致性验证条件。
- 根据权利要求6或7所述的方法,其中,在向第二电子设备发送定位请求之前,所述方法还包括:根据所述环境图像及所述第一电子设备的本地地图,确定所述第一电子设备本地的第一定位结果,所述第一定位结果包括所述第一电子设备的位置信息和姿态信息。
- 根据权利要求6-8中任意一项所述的方法,其中,在向第二电子设备发送定位请求之前,所述方法还包括:通过所述第一电子设备的惯性测量单元IMU,确定所述第一电子设备的重力姿态信息,所述定位请求中包括所述重力姿态信息。
- 根据权利要求6-9中任意一项所述的方法,其中,所述根据所述第二定位结果进行定位及展示,包括:根据所述第二定位结果及目的地的地理位置,确定所述第一电子设备的导航路径;根据所述导航路径,在所述第一电子设备屏幕的显示界面中展示增强现实AR导航路径。
- 根据权利要求6-10中任意一项中任意一项所述的方法,其中,所述根据所述第二定位结果进行定位及展示,包括:根据所述第二定位结果及AR对象的第一位置及姿态信息,确定所述AR对象在所述第一电子设备屏幕的显示界面中的第二位置及姿态信息;根据所述第二位置及姿态信息,在所述显示界面中展示所述AR对象。
- 一种定位装置,其特征在于,应用于第二电子设备,包括:区域确定部分,配置为在接收到来自第一电子设备的定位请求的情况下,根据所述定位请求中的第一定位结果,确定所述第一电子设备所在的当前地理区域,所述定位请求中包括所述第一电子设备所在环境的环境图像以及所述第一电子设备本地的第一定位结果;子地图确定部分,配置为从预设的点云地图中确定出与所述当前地理区域对应的点云子地图;定位部分,配置为根据所述环境图像以及所述点云子地图,对所述第一电子设备进行视觉定位,得到所述第一电子设备的第二定位结果;结果发送部分,配置为向所述第一电子设备发送所述第二定位结果。
- 根据权利要求12所述的装置,其中,所述定位部分包括:第一匹配子部分,配置为对所述环境图像与所述点云子地图进行投影匹配,确定与所述环境图像匹配的点 云信息;结果确定部分,配置为根据匹配的点云信息,确定所述第一电子设备的第二定位结果。
- 根据权利要求12所述的装置,其中,所述定位请求中还包括所述第一电子设备的重力姿态信息,所述定位部分包括:第二匹配子部分,配置为对所述环境图像与所述点云子地图进行匹配,得到所述第一电子设备的第三定位结果;第一验证子部分,配置为根据所述重力姿态信息,对所述第三定位结果进行验证,确定所述第二定位结果,所述第二定位结果包括所述第一电子设备的位置信息和姿态信息。
- 根据权利要求14所述的装置,其中,所述第一验证子部分还配置为:根据所述重力姿态信息,确定所述第一电子设备的第一方向;根据所述第三定位结果中的姿态信息,确定所述第一电子设备的第二方向;将满足验证条件的第三定位结果确定为所述第二定位结果,所述验证条件包括所述第一方向与所述第二方向在重力方向上的角度差小于或等于角度阈值。
- 根据权利要求15所述的装置,其中,所述装置还包括:信息发送部分,配置为在所有第三定位结果均不满足所述验证条件的情况下,向所述第一电子设备发送定位失败信息。
- 一种定位装置,应用于第一电子设备,包括:请求发送部分,配置为向第二电子设备发送定位请求,所述定位请求中包括所述第一电子设备所在环境的环境图像以及所述第一电子设备本地的第一定位结果;验证部分,配置为在接收到所述第二电子设备发送的第二定位结果的情况下,根据所述第一电子设备本地的至少一个第一历史定位结果以及所述第二电子设备发送的至少一个第二历史定位结果,判断所述第二定位结果是否满足一致性验证条件;定位及展示部分,配置为在所述第二定位结果满足所述一致性验证条件的情况下,根据所述第二定位结果进行定位及展示。
- 根据权利要求17所述的装置,其中,所述验证部分包括:偏差确定子部分,配置为根据所述第一定位结果中的第一姿态信息、所述第二定位结果中的第二姿态信息、所述第一历史定位结果中的第三姿态信息,所述第二历史定位结果中的第四姿态信息,确定姿态偏差;第二验证子部分,配置为在所述姿态偏差小于或等于偏差阈值的情况下,确定所述第二定位结果满足一致性验证条件。
- 根据权利要求17或18所述的装置,其中,所述装置还包括:本地定位部分,配置为根据所述环境图像及所述第一电子设备的本地地图,确定所述第一电子设备本地的第一定位结果。
- 根据权利要求17-19中任一项所述的装置,其中,所述装置还包括:重力姿态确定部分,配置为通过所述第一电子设备的惯性测量单元IMU,确定所述第一电子设备的重力姿态信息,所述定位请求中包括所述重力姿态信息。
- 根据权利要求17-20中任一项所述的装置,其中,所述定位及展示部分还配置为:根据所述第二定位结果及目的地的地理位置,确定所述第一电子设备的导航路径;根据所述导航路径,在所述第一电子设备屏幕的显示界面中展示增强现实AR导航路径。
- 根据权利要求17-21中任一项所述的装置,其中,所述定位及展示部分还配置为:根据所述第二定位结果及AR对象的第一位置及姿态信息,确定所述AR对象在所 述第一电子设备屏幕的显示界面中的第二位置及姿态信息;根据所述第二位置及姿态信息,在所述显示界面中展示所述AR对象。
- 一种电子设备,包括:处理器;配置为存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1至11中任意一项所述的方法。
- 一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现权利要求1至11中任意一项所述的方法。
- 一种计算机程序,包括计算机可读代码,在计算机可读代码在设备上运行的情况下,设备中的处理器执行用于实现权利要求1至11中任意一项所述的方法。
- 一种计算机程序产品,用于存储计算机可读指令,所述计算机可读指令被执行时使得计算机执行权利要求1至11中任意一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011382582.6A CN112683262A (zh) | 2020-11-30 | 2020-11-30 | 定位方法及装置、电子设备和存储介质 |
CN202011382582.6 | 2020-11-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022110777A1 true WO2022110777A1 (zh) | 2022-06-02 |
Family
ID=75447042
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/101040 WO2022110777A1 (zh) | 2020-11-30 | 2021-06-18 | 定位方法及装置、电子设备、存储介质、计算机程序产品、计算机程序 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112683262A (zh) |
WO (1) | WO2022110777A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112683262A (zh) * | 2020-11-30 | 2021-04-20 | 浙江商汤科技开发有限公司 | 定位方法及装置、电子设备和存储介质 |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105184852A (zh) * | 2015-08-04 | 2015-12-23 | 百度在线网络技术(北京)有限公司 | 一种基于激光点云的城市道路识别方法及装置 |
CN106525025A (zh) * | 2016-10-28 | 2017-03-22 | 武汉大学 | 一种变电站巡检机器人路线规划导航方法 |
CN108692720A (zh) * | 2018-04-09 | 2018-10-23 | 京东方科技集团股份有限公司 | 定位方法、定位服务器及定位系统 |
CN109543634A (zh) * | 2018-11-29 | 2019-03-29 | 达闼科技(北京)有限公司 | 定位过程中的数据处理方法、装置、电子设备和存储介质 |
US20190325251A1 (en) * | 2018-03-01 | 2019-10-24 | Htc Corporation | Scene reconstructing system, scene reconstructing method and non-transitory computer-readable medium |
CN111192364A (zh) * | 2020-01-09 | 2020-05-22 | 北京科技大学 | 一种低成本移动多机器人视觉同时定位和地图创建方法 |
CN111325796A (zh) * | 2020-02-28 | 2020-06-23 | 北京百度网讯科技有限公司 | 用于确定视觉设备的位姿的方法和装置 |
CN111402413A (zh) * | 2020-06-04 | 2020-07-10 | 浙江欣奕华智能科技有限公司 | 三维视觉定位方法、装置及计算设备、存储介质 |
US20200226782A1 (en) * | 2018-05-18 | 2020-07-16 | Boe Technology Group Co., Ltd. | Positioning method, positioning apparatus, positioning system, storage medium, and method for constructing offline map database |
CN111442722A (zh) * | 2020-03-26 | 2020-07-24 | 达闼科技成都有限公司 | 定位方法、装置、存储介质及电子设备 |
CN111595349A (zh) * | 2020-06-28 | 2020-08-28 | 浙江商汤科技开发有限公司 | 导航方法及装置、电子设备和存储介质 |
CN111664866A (zh) * | 2020-06-04 | 2020-09-15 | 浙江商汤科技开发有限公司 | 定位展示方法及装置、定位方法及装置和电子设备 |
CN111815779A (zh) * | 2020-06-29 | 2020-10-23 | 浙江商汤科技开发有限公司 | 对象展示方法及装置、定位方法及装置以及电子设备 |
CN112683262A (zh) * | 2020-11-30 | 2021-04-20 | 浙江商汤科技开发有限公司 | 定位方法及装置、电子设备和存储介质 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101907467B (zh) * | 2010-08-06 | 2012-08-22 | 浙江大学 | 基于运动量测信息的个人定位方法及装置 |
JP2012208033A (ja) * | 2011-03-30 | 2012-10-25 | Mitsubishi Electric Corp | 航法計算システム |
CN102435188B (zh) * | 2011-09-15 | 2013-10-02 | 南京航空航天大学 | 一种用于室内环境的单目视觉/惯性全自主导航方法 |
JP6521753B2 (ja) * | 2015-06-09 | 2019-05-29 | 株式会社Subaru | 車両の測位システム |
KR102463176B1 (ko) * | 2017-10-16 | 2022-11-04 | 삼성전자주식회사 | 위치 추정 장치 및 방법 |
CN107941212B (zh) * | 2017-11-14 | 2020-07-28 | 杭州德泽机器人科技有限公司 | 一种视觉与惯性联合定位方法 |
CN110231042A (zh) * | 2019-05-28 | 2019-09-13 | 上海车轮互联网服务有限公司 | 基于定位的线路采集方法及装置 |
CN110567480B (zh) * | 2019-09-12 | 2021-06-29 | 北京百度网讯科技有限公司 | 车辆定位的优化方法、装置、设备及存储介质 |
-
2020
- 2020-11-30 CN CN202011382582.6A patent/CN112683262A/zh active Pending
-
2021
- 2021-06-18 WO PCT/CN2021/101040 patent/WO2022110777A1/zh active Application Filing
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105184852A (zh) * | 2015-08-04 | 2015-12-23 | 百度在线网络技术(北京)有限公司 | 一种基于激光点云的城市道路识别方法及装置 |
CN106525025A (zh) * | 2016-10-28 | 2017-03-22 | 武汉大学 | 一种变电站巡检机器人路线规划导航方法 |
US20190325251A1 (en) * | 2018-03-01 | 2019-10-24 | Htc Corporation | Scene reconstructing system, scene reconstructing method and non-transitory computer-readable medium |
CN108692720A (zh) * | 2018-04-09 | 2018-10-23 | 京东方科技集团股份有限公司 | 定位方法、定位服务器及定位系统 |
US20200226782A1 (en) * | 2018-05-18 | 2020-07-16 | Boe Technology Group Co., Ltd. | Positioning method, positioning apparatus, positioning system, storage medium, and method for constructing offline map database |
CN109543634A (zh) * | 2018-11-29 | 2019-03-29 | 达闼科技(北京)有限公司 | 定位过程中的数据处理方法、装置、电子设备和存储介质 |
CN111192364A (zh) * | 2020-01-09 | 2020-05-22 | 北京科技大学 | 一种低成本移动多机器人视觉同时定位和地图创建方法 |
CN111325796A (zh) * | 2020-02-28 | 2020-06-23 | 北京百度网讯科技有限公司 | 用于确定视觉设备的位姿的方法和装置 |
CN111442722A (zh) * | 2020-03-26 | 2020-07-24 | 达闼科技成都有限公司 | 定位方法、装置、存储介质及电子设备 |
CN111402413A (zh) * | 2020-06-04 | 2020-07-10 | 浙江欣奕华智能科技有限公司 | 三维视觉定位方法、装置及计算设备、存储介质 |
CN111664866A (zh) * | 2020-06-04 | 2020-09-15 | 浙江商汤科技开发有限公司 | 定位展示方法及装置、定位方法及装置和电子设备 |
CN111595349A (zh) * | 2020-06-28 | 2020-08-28 | 浙江商汤科技开发有限公司 | 导航方法及装置、电子设备和存储介质 |
CN111815779A (zh) * | 2020-06-29 | 2020-10-23 | 浙江商汤科技开发有限公司 | 对象展示方法及装置、定位方法及装置以及电子设备 |
CN112683262A (zh) * | 2020-11-30 | 2021-04-20 | 浙江商汤科技开发有限公司 | 定位方法及装置、电子设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN112683262A (zh) | 2021-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11164379B2 (en) | Augmented reality positioning method and apparatus for location-based service LBS | |
CN111983635B (zh) | 位姿确定方法及装置、电子设备和存储介质 | |
US9699375B2 (en) | Method and apparatus for determining camera location information and/or camera pose information according to a global coordinate system | |
TWI767217B (zh) | 坐標系對齊的方法及裝置、電子設備和計算機可讀存儲介質 | |
CN111664866A (zh) | 定位展示方法及装置、定位方法及装置和电子设备 | |
WO2022110776A1 (zh) | 定位方法及装置、电子设备、存储介质、计算机程序产品、计算机程序 | |
CN112229424B (zh) | 视觉惯性系统的参数标定方法及装置、电子设备和介质 | |
WO2022134475A1 (zh) | 点云地图构建方法及装置、电子设备、存储介质和程序 | |
CN111401230A (zh) | 姿态估计方法及装置、电子设备和存储介质 | |
CN112307363A (zh) | 虚实融合展示方法及装置、电子设备和存储介质 | |
CN111563138A (zh) | 定位方法及装置、电子设备和存储介质 | |
CN112945207B (zh) | 目标定位方法及装置、电子设备和存储介质 | |
WO2022110785A1 (zh) | 定位方法及装置、电子设备、存储介质、计算机程序产品、计算机程序 | |
CN112433211A (zh) | 一种位姿确定方法及装置、电子设备和存储介质 | |
WO2022110777A1 (zh) | 定位方法及装置、电子设备、存储介质、计算机程序产品、计算机程序 | |
CN112767541B (zh) | 三维重建方法及装置、电子设备和存储介质 | |
WO2022179080A1 (zh) | 定位方法、装置、电子设备、存储介质、程序及产品 | |
CN112837372A (zh) | 数据生成方法及装置、电子设备和存储介质 | |
CN113611152A (zh) | 停车场的导航方法及装置、电子设备和存储介质 | |
WO2022237071A1 (zh) | 定位方法及装置、电子设备、存储介质和计算机程序 | |
WO2022110801A1 (zh) | 数据处理方法及装置、电子设备和存储介质 | |
CN117115244A (zh) | 云端重定位方法、装置及存储介质 | |
CN112308878A (zh) | 一种信息处理方法、装置、电子设备和存储介质 | |
CN113160424A (zh) | 基于增强现实的虚拟对象的摆放方法及装置、设备和介质 | |
CN112965652A (zh) | 信息展示方法及装置、电子设备和存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21896285 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21896285 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21896285 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28/11/2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21896285 Country of ref document: EP Kind code of ref document: A1 |