WO2022193508A1 - Method and apparatus for posture optimization, electronic device, computer-readable storage medium, computer program, and program product - Google Patents

Method and apparatus for posture optimization, electronic device, computer-readable storage medium, computer program, and program product Download PDF

Info

Publication number
WO2022193508A1
WO2022193508A1 PCT/CN2021/106997 CN2021106997W WO2022193508A1 WO 2022193508 A1 WO2022193508 A1 WO 2022193508A1 CN 2021106997 W CN2021106997 W CN 2021106997W WO 2022193508 A1 WO2022193508 A1 WO 2022193508A1
Authority
WO
WIPO (PCT)
Prior art keywords
pose
current
movement
mobile device
information
Prior art date
Application number
PCT/CN2021/106997
Other languages
French (fr)
Chinese (zh)
Inventor
章国锋
鲍虎军
叶智超
刘浩敏
Original Assignee
浙江商汤科技开发有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 浙江商汤科技开发有限公司 filed Critical 浙江商汤科技开发有限公司
Publication of WO2022193508A1 publication Critical patent/WO2022193508A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/97Determining parameters from multiple pictures

Definitions

  • the present disclosure relates to the field of computer vision technology, and in particular, to a pose optimization method, apparatus, electronic device, computer-readable storage medium, computer program, and program product.
  • the positioning of unmanned equipment through vision is an important part of applications in the fields of robots, unmanned aerial vehicles, automatic navigation and augmented reality. has been widely used.
  • the image data collected by the monocular camera cannot provide the real three-dimensional size information of these objects, so the scale of the monocular visual odometry cannot be determined, which leads to certain errors in the pose calculation.
  • This embodiment provides at least one pose optimization method, apparatus, electronic device, computer-readable storage medium, computer program, and program product.
  • an embodiment of the present disclosure provides a pose optimization method, including:
  • the first image includes the current frame image captured when the mobile device is at the current position and before the mobile device is at the current position The starting frame image taken when the starting position is ;
  • the pieces of estimated pose information include estimated pose information corresponding to the starting frame image, estimated pose information corresponding to the current frame image, and the starting frame image.
  • the current predicted pose is optimized based on the movement parameter information and the plurality of estimated pose information to obtain a current optimized pose.
  • the scale information of the visual odometer is recovered by acquiring the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position, and the current predicted pose is optimized based on the scale information. , which can improve the calculation accuracy of pose.
  • this method uses the acquired movement parameter information as a scale constraint, and then obtains an optimized pose information.
  • the computational complexity is low, which reduces the performance requirements of the device (for example, it is applied to some low-end mobile phones), so The adaptability of the method is improved.
  • the movement parameter information includes a movement distance
  • the determining of the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position includes:
  • the current predicted pose is optimized based on the movement parameter information and the plurality of estimated pose information to obtain the current optimized pose, including:
  • the current predicted pose is optimized based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose.
  • the moving distance corresponding to the moving process of the target is determined based on the pedestrian dead reckoning algorithm, which can simplify the process of determining the moving distance, improve the efficiency of determining the moving distance, and further improve the efficiency of the pose optimization method. Operational efficiency.
  • the current predicted pose is optimized based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose, including: :
  • the initial moving frame image corresponding to the moving start time and the moving ending frame image corresponding to the moving ending time are determined, and the moving initial frame image corresponding to the moving initial frame image and the moving ending frame image are respectively determined.
  • the movement initial estimated pose and the movement end estimated position corresponding to the movement initial frame image and the movement end frame image are determined
  • the movement distance is determined as the distance between the initial estimated pose of the movement and the estimated pose of the end of the movement, so that the distance constraint is obtained between the initial estimated pose of the movement and the estimated pose of the end of the movement, and then It can realize the optimization of the current predicted pose and improve the accuracy of visual positioning.
  • the moving distance corresponding to the moving process of the target experienced by the mobile device when moving to the current position is determined based on a pedestrian dead reckoning algorithm, include:
  • the moving distance is determined based on the number of walking steps and the step length of the user.
  • the moving distance is determined by using the user's walking steps and step length
  • only an Inertial Measurement Unit (Inertial Measurement Unit) with lower precision can be used to achieve this, and thus the positioning accuracy can be improved at the same time.
  • the requirement for the accuracy of the IMU is reduced, so that the method can perform indoor positioning in scenarios with limited computing power (for example, on the applet of a low-end mobile phone).
  • the movement parameter information further includes a movement speed
  • the determining of the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position further includes:
  • the optimizing the current predicted pose based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose includes:
  • the current predicted pose is optimized based on the moving distance, the moving speed, and the plurality of estimated pose information to obtain the current optimized pose.
  • the moving speed is also determined, so that the corresponding estimated pose information of the multi-frame images corresponding to the distance that the user walks one step is also constrained by the distance, thereby further improving the optimization of the current predicted pose precision.
  • the determining of the moving speed corresponding to the target moving process experienced by the mobile device when moving to the current position includes:
  • the movement speed is predicted based on a movement model and the historical movement speed.
  • the moving speed of the target process is predicted by the motion model and the historical motion speed, which can improve the accuracy of parameter acquisition compared to the user's walking speed measured directly based on the IMU.
  • the method further includes:
  • real-time pose information of the mobile device is determined.
  • the current predicted speed and the current orientation can be directly used to continue tracking for a period of time until the visual tracking Track recovery. In this way, even in the scene where the visual odometry is difficult to locate, the navigation and positioning results can still be obtained through the pedestrian dead position information, which improves the applicability of the method.
  • the method further includes:
  • a navigation route is planned, and the navigation route is displayed on the map.
  • the current route planning is performed by using the optimized current predicted pose, which can improve the accuracy of the planned route.
  • the navigation route is planned based on the current optimized pose, the destination input by the user, and the stored map, and the navigation route is displayed on the map, include:
  • the at least one connection line is displayed in the map.
  • the destination information input by the user is first determined in the map, and then at least one connection route is planned according to the current optimized pose and the location information of the destination, and is The at least one connection line is displayed on the map, so that multiple choices can be provided for the user, so that the user can select one of the multiple lines for navigation according to the actual situation, thereby improving the applicability of the navigation line.
  • an embodiment of the present disclosure provides a pose optimization device, including:
  • the pose estimation part is configured to determine the current predicted pose of the mobile device based on the first image captured by the mobile device; the first image includes the current frame image captured when the mobile device is in the current position and the movement The starting frame image taken when the device is at the starting position before the current position;
  • a parameter determination part configured to determine the movement parameter information corresponding to the target movement process experienced by the mobile device when moving to the current position; the target movement process is located between the starting position and the current position ;
  • a pose acquisition part configured to obtain a plurality of estimated pose information of the mobile device, the plurality of estimated pose information including the estimated pose information corresponding to the initial frame image, the estimated pose information corresponding to the current frame image pose information and estimated pose information respectively corresponding to the multi-frame images between the initial frame image and the current frame image;
  • the pose optimization part is configured to optimize the current predicted pose based on the movement parameter information and the plurality of estimated pose information to obtain the current optimized pose.
  • the movement parameter information includes a movement distance
  • the parameter determination part is configured as:
  • the pose optimization part is configured as:
  • the current predicted pose is optimized based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose.
  • the pose optimization part is configured as:
  • the initial moving frame image corresponding to the moving start time and the moving ending frame image corresponding to the moving ending time are determined, and the moving initial frame image corresponding to the moving initial frame image and the moving ending frame image are respectively determined.
  • the parameter determining part is configured to:
  • the moving distance is determined based on the number of walking steps and the step length of the user.
  • the movement parameter information further includes a movement speed
  • the parameter determination part is also configured as:
  • the pose optimization part is configured as:
  • the current predicted pose is optimized based on the moving distance, the moving speed, and the plurality of estimated pose information to obtain the current optimized pose.
  • the parameter determining part is configured to:
  • the movement speed is predicted based on a movement model and the historical movement speed.
  • the pose optimization part is further configured to:
  • real-time pose information of the mobile device is determined.
  • the pose optimization device further includes a route planning part, and the route planning part is configured to:
  • a navigation route is planned, and the navigation route is displayed on the map.
  • the route planning part is configured as:
  • the at least one connection line is displayed in the map.
  • embodiments of the present disclosure provide an electronic device, including: a processor, a memory, and a bus, where the memory stores machine-readable instructions executable by the processor, and when the electronic device runs, the processing The processor and the memory communicate through a bus, and the machine-readable instructions are executed by the processor to execute the pose optimization method according to the first aspect.
  • an embodiment of the present disclosure provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to execute the pose optimization method according to the first aspect .
  • an embodiment of the present disclosure provides a computer program, including computer-readable code, where the computer-readable code runs in an electronic device and is executed by a processor in the electronic device, and executes the following steps: The pose optimization method described in the first aspect.
  • an embodiment of the present disclosure provides a computer program product that, when executed on a computer, causes the computer to execute the pose optimization method described in the first aspect.
  • FIG. 1 shows a flowchart of a pose optimization method provided by an embodiment of the present disclosure
  • FIG. 2 shows a flowchart of a method for optimizing a current predicted pose based on a moving distance provided by an embodiment of the present disclosure
  • FIG. 3 shows a flowchart of a method for obtaining a moving distance provided by an embodiment of the present disclosure
  • FIG. 4 shows a flowchart of a method for obtaining a moving speed provided by an embodiment of the present disclosure
  • FIG. 5 shows a flowchart of another pose optimization method provided by an embodiment of the present disclosure
  • FIG. 6 shows a schematic structural diagram of a pose optimization apparatus provided by an embodiment of the present disclosure
  • FIG. 7 shows a schematic structural diagram of another pose optimization apparatus provided by an embodiment of the present disclosure.
  • FIG. 8 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure.
  • the positioning of unmanned equipment through vision is an important part of applications in the fields of robots, unmanned aerial vehicles, automatic navigation, and augmented reality.
  • the vision method only relies on the image information collected by the camera, based on the camera model and visual geometry Learning models, etc. to calculate the six-degree-of-freedom motion of the machine itself.
  • This self-localization orientation method based on image information is similar to traditional odometer dead reckoning, so it is called visual odometry.
  • One type of solution is to combine additional accurate sensors to obtain more information and restore scales, such as visual odometry combined with high-precision GPS and IMU; however, this method requires the device to be equipped with additional high-precision sensing devices and to the computing power of the device. Accuracy is required.
  • Another type of solution is to build in advance through the navigation scene, and restore the scale of the visual odometry by continuously positioning in the map.
  • this method has high requirements on the frequency of pre-mapping and positioning.
  • the present disclosure provides a pose optimization method, which determines the current predicted pose of the mobile device based on the first image captured by the mobile device; the first image includes the current frame image captured when the mobile device The initial frame image taken when the device is in the initial position before the current position; determine the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position; the target movement process is located at the initial position and the current position; obtain multiple estimated pose information of the mobile device, the multiple estimated pose information includes the estimated pose information corresponding to the starting frame image and the current frame image respectively, as well as the starting frame image and the current frame image The estimated pose information corresponding to the multi-frame images between them respectively; the current predicted pose is optimized based on the movement parameter information and the multiple estimated pose information to obtain the current optimized pose.
  • the scale information of the visual odometer is recovered by acquiring the movement parameter information corresponding to the movement process of the target experienced by the mobile device when it moves to the current position. , and optimize the current predicted pose based on the scale information, which can improve the accuracy of pose calculation.
  • the execution subject of the pose optimization method provided by the embodiment of the present disclosure is generally an electronic device with a certain computing capability.
  • the electronic device includes, for example, a terminal device or a server or other processing device, and the terminal device may be a mobile device, a user terminal, a terminal, a handheld device, a computing device, a vehicle-mounted device, a wearable device, and the like.
  • the pose optimization method may be implemented by the processor calling computer-readable instructions stored in the memory.
  • the pose optimization method includes the following S101-S104:
  • S101 Determine the current predicted pose of the mobile device based on a first image captured by the mobile device; the first image includes a current frame image captured when the mobile device is at the current position and a start image captured when the mobile device is at a starting position before the current position Start frame image.
  • the process of visual localization it usually includes the process of visual tracking, estimating pose and optimizing.
  • the correlation between the feature points between the images can be obtained by visual tracking, and then the rough pose of the camera is estimated according to the correlation between the feature points.
  • some representative points should be selected first, called feature points; after that, only the motion of the camera is estimated for these feature points, and the spatial position of the feature points and the information of other non-feature points in the image are estimated at the same time. , is discarded.
  • common feature point extraction methods including corner points, color blocks, etc. in the image.
  • a mobile device refers to a device that can be mounted on a carrier (such as a human body) and can move with the carrier.
  • the mobile device may specifically include a mobile phone, a tablet computer, augmented reality (Augmented Reality, AR) glasses, and the like. That is, the mobile device may be a mobile device or a handheld device among the aforementioned electronic devices having a certain computing capability.
  • the mobile device can have a built-in image acquisition component or an external image acquisition component. After the mobile device enters the working state, the image acquisition component can be used to capture images of the real scene to obtain several images.
  • the first image is a part of the several images, that is, the first image includes the current frame image taken when the mobile device is at the current position and the starting position before the mobile device is at the current position The starting frame image taken at the time.
  • the starting position can be set according to the complexity of the specific real scene environment. For example, if the current real scene is relatively empty and simple, the position far from the current position before the current position can be used as the starting position; If the real scene environment is more complex, the position that is closer to the current position before the current position can be used as the starting position, which is not limited here.
  • the image acquisition component in the embodiment of the present disclosure is a monocular camera, there is a problem of uncertain scale, that is, only the relative position of the current position relative to the starting position can be obtained by using the feature point method based on the first image, Therefore, the obtained current predicted pose is only a relative pose, which is not accurate, and the current predicted pose needs to be optimized.
  • S102 Determine the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position; the target movement process is located between the initial position and the current position.
  • the target moving process may be a process with the starting position as the starting point and the current position as the ending point, or may be any process between the starting position and the current position, here Not limited.
  • the movement parameter information may only include the movement distance; in other embodiments, the movement parameter information includes the movement distance and the movement speed, which will be described later for details.
  • S103 Acquire multiple estimated pose information of the mobile device, where the multiple estimated pose information includes estimated pose information corresponding to the initial frame image, estimated pose information corresponding to the current frame image, and the difference between the initial frame image and the current frame image The estimated pose information corresponding to the multi-frame images in between.
  • each image has estimated pose information of the camera (mobile device) corresponding to the image. Specifically, after matching the feature points, two one-to-one corresponding pixel point sets can be obtained, and then the motion of the camera is estimated according to the two sets of matched point sets.
  • the current predicted pose may be optimized based on the light velocity adjustment method (Bundle Adjustment).
  • the beam method adjustment method uses the camera attitude and the three-dimensional coordinates of the measurement point as unknown parameters, and uses the coordinates of the feature points detected on the image for forward intersection as the observation data to adjust to obtain the optimal camera parameters and World point coordinates.
  • the scale information of the visual odometer is recovered by acquiring the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position, and based on the scale information
  • the information optimizes the current predicted pose, which in turn can improve the accuracy of pose calculation.
  • this method uses the acquired movement parameter information as a constraint, and then obtains an optimized pose information, the computational complexity is low, and the performance requirements of the device are reduced (for example, it is applied to some low-end mobile phones), thereby improving the adaptability of the method.
  • the movement parameter information includes the movement distance. Therefore, for the above S102, when determining the movement parameter information corresponding to the target movement process experienced by the mobile device when moving to the current position, the movement parameter information may include: Based on the pedestrian dead reckoning algorithm, determine the moving distance corresponding to the target moving process experienced by the mobile device when moving to the current position; for the above S104, in the based on the moving parameter information and The multiple estimated pose information optimizes the current predicted pose, and when the current optimized pose is obtained, the method may include: performing an optimization on the current predicted pose based on the moving distance and the multiple estimated pose information. Perform optimization to obtain the current optimized pose.
  • dead reckoning is a typical process of calculating the user's current position based on a previously determined position, estimated speed and elapsed time period, which can be determined based on sensor data generated by inertial sensors.
  • the scale information of the visual odometry is recovered by obtaining the moving distance corresponding to the moving process of the target experienced by the mobile device when it moves to the current position, thereby optimizing the pose and improving the accuracy of visual positioning.
  • determining the moving distance corresponding to the target moving process based on the pedestrian dead reckoning algorithm can simplify the process of determining the moving distance, improve the efficiency of determining the moving distance, and further improve the computing efficiency of the pose optimization method.
  • the flow chart of the method for optimizing the current predicted pose based on the moving distance includes the following S1041-1043:
  • the movement initial estimated pose and the movement end estimated position corresponding to the movement initial frame image and the movement end frame image are determined
  • the movement distance is determined as the distance between the initial estimated pose of the movement and the estimated pose of the end of the movement, so that the distance constraint is obtained between the initial estimated pose of the movement and the estimated pose of the end of the movement, and then The optimization of the current predicted pose can be achieved.
  • S1021 Acquire the number of steps taken by the user of the mobile device during the movement of the target.
  • the number of steps taken by the user of the mobile device during the movement of the target may be acquired based on the IMU on the mobile device.
  • onboard inertial sensors such as accelerometers and magnetometers enable mobile computing devices to count a user's steps and calculate the distance the user has moved in one step, ie, step length, through pedestrian dead reckoning.
  • the pedestrian dead reckoning algorithm is used to determine the moving distance of the target moving process, only an IMU with lower precision can be used to realize the realization, thereby improving the positioning accuracy and reducing the requirement for the accuracy of the IMU, so that the This method can perform indoor navigation in scenarios with limited computing power (for example, on small programs on low-end mobile phones).
  • the movement parameter further includes a movement speed.
  • the determining of the movement parameter information corresponding to the target movement process experienced by the mobile device when the mobile device moves to the current position further includes: determining that the mobile device is moving to the current location. position, the moving speed corresponding to the experienced target movement process; for the above S104, the current predicted pose is optimized based on the moving distance and the plurality of estimated pose information, and the obtained When optimizing the current pose, it may include: optimizing the current predicted pose based on the moving distance, the moving speed, and the plurality of estimated pose information to obtain the current optimized pose.
  • the moving speed is also determined, so that the corresponding estimated pose information of the multi-frame images corresponding to the distance that the user walks one step is also constrained by the distance, thereby further improving the optimization of the current predicted pose precision.
  • the historical motion speed of the user of the mobile device may be acquired based on the IMU.
  • the motion model may be a uniform motion model, a uniform acceleration motion model, or a more complex motion model, which is not limited herein.
  • the movement speed of the user during the movement of the target can be predicted, and the predicted movement speed is added to the optimization algorithm of the visual odometry to calculate the optimal pose information of the current position. That is, according to the predicted moving speed combined with the user's walking time, the scale information corresponding to any two frames of images during the movement of the target can be obtained, thereby further improving the accuracy of visual positioning.
  • the historical motion speed refers to the average motion speed of the user for a period of time before the target moving process.
  • the error will be relatively large.
  • the moving speed of the target process is predicted by using the motion model and the historical motion speed, which can improve the accuracy of parameter acquisition.
  • the pose optimization method further includes the following S105 after step S104 ⁇ S108:
  • step S105 determine whether the error of the current optimized pose is less than a preset threshold; if yes, go to step S108; if not, go to step S106.
  • step S106 it may be determined based on the reprojection error whether the error of the optimized pose exceeds a preset threshold, and if the error of the current optimized pose information exceeds the preset threshold, step S106 is performed.
  • the prediction method of the current predicted speed is the same as the prediction method of the aforementioned movement speed.
  • the historical movement speed at this time is the average speed of the user's movement for a period of time before the current moment, that is, although the prediction method The same, but because the historical movement speed of the user in different time periods is different, the obtained predicted speed is also different.
  • the current heading can be obtained through IMU measurement.
  • S107 Determine real-time pose information of the mobile device based on the current optimized pose, the current predicted speed, and the current orientation.
  • the current predicted speed and the current orientation can be directly used based on the current optimized pose to continue tracking for a period of time until The error of the current optimized pose is less than the preset threshold.
  • the location information of the destination in response to a user's destination input request, may be determined in the map; and then the current optimized pose and location information of the destination may be determined based on the current At least one connecting line between the pose and the destination is optimized; finally, the at least one connecting line is displayed in the map.
  • route planning can be performed based on the current optimized pose, the destination input by the user, and the map, so that even in an indoor environment, a more accurate navigation function can be provided for the user, and the user experience can be improved.
  • the destination information input by the user is first determined in the map, and then at least one connecting route is planned according to the current optimized pose and the location information of the destination, and all the routes are displayed on the map.
  • the at least one connection line is described, so that more choices can be provided for the user, so that the user can select one of the multiple lines for navigation according to the actual situation, thereby improving the applicability of the navigation line.
  • the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.
  • the embodiments of the present disclosure also provide a pose optimization device corresponding to the pose optimization method.
  • a pose optimization device corresponding to the pose optimization method.
  • the implementation of the apparatus reference may be made to the implementation of the method, and the repetition will not be repeated.
  • the pose optimization apparatus 500 includes:
  • the pose estimation part 501 is configured to determine the current predicted pose of the mobile device based on a first image captured by the mobile device; the first image includes the current frame image captured when the mobile device is in the current position and the The initial frame image taken when the mobile device is at the initial position before the current position;
  • the parameter determination part 502 is configured to determine the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position; the target movement process is located between the starting position and the current position. between;
  • the pose obtaining part 503 is configured to obtain a plurality of estimated pose information of the mobile device, the plurality of estimated pose information includes the estimated pose information corresponding to the starting frame image, the estimated pose information corresponding to the current frame image Estimated pose information and estimated pose information respectively corresponding to multiple frames between the initial frame image and the current frame image;
  • the pose optimization part 504 is configured to optimize the current predicted pose based on the movement parameter information and the plurality of estimated pose information to obtain a current optimized pose.
  • the movement parameter information includes movement distance
  • the parameter determination part 502 is configured as:
  • the pose optimization part 504 is configured as:
  • the current predicted pose is optimized based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose.
  • the pose optimization section 504 is configured to:
  • the initial moving frame image corresponding to the moving start time and the moving ending frame image corresponding to the moving ending time are determined, and the moving initial frame image corresponding to the moving initial frame image and the moving ending frame image are respectively determined.
  • the parameter determination section 502 is configured to:
  • the moving distance is determined based on the number of walking steps and the step length of the user.
  • the movement parameter information further includes movement speed
  • the parameter determination part 502 is further configured to:
  • the pose optimization part 504 is configured as:
  • the current predicted pose is optimized based on the moving distance, the moving speed, and the plurality of estimated pose information to obtain the current optimized pose.
  • the parameter determination section 502 is configured to:
  • the movement speed is predicted based on a movement model and the historical movement speed.
  • the pose optimization part 504 is further configured to:
  • real-time pose information of the mobile device is determined.
  • the pose optimization apparatus 500 further includes a route planning part 505, and the route planning part 505 is configured as:
  • a navigation route is planned, and the navigation route is displayed on the map.
  • the route planning section 505 is configured to:
  • the at least one connection line is displayed in the map.
  • a schematic structural diagram of an electronic device 700 provided by an embodiment of the present disclosure includes a processor 701 , a memory 702 , and a bus 703 .
  • the memory 702 is used to store the execution instructions, including the memory 7021 and the external memory 7022; the memory 7021 here is also called the internal memory, which is used to temporarily store the operation data in the processor 701 and the data exchanged with the external memory 7022 such as the hard disk,
  • the processor 701 exchanges data with the external memory 7022 through the memory 7021 .
  • the memory 702 is specifically used to store the application program code for executing the solution of the present application, and the execution is controlled by the processor 701 . That is, when the electronic device 700 is running, the processor 701 communicates with the memory 702 through the bus 703, so that the processor 701 executes the application code stored in the memory 702, thereby executing the method described in any of the foregoing embodiments.
  • the memory 702 may be, but not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), or Erasable Programmable Read-Only Memory (EPROM), Electrical Erasable Programmable Read-Only Memory (EEPROM), etc.
  • RAM Random Access Memory
  • ROM read only memory
  • PROM programmable read only memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electrical Erasable Programmable Read-Only Memory
  • the processor 701 may be an integrated circuit chip with signal processing capability.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC) , Field Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA Field Programmable Gate Array
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 700 .
  • the electronic device 700 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the pose optimization method in the foregoing method embodiments are executed.
  • the storage medium may be a volatile or non-volatile computer-readable storage medium.
  • Embodiments of the present disclosure also provide a computer program, including computer-readable code, when the computer-readable code is executed in an electronic device, a processor in the electronic device executes the steps configured to implement the above-mentioned pose optimization method .
  • Embodiments of the present disclosure further provide a computer program product, where the computer program product carries program codes, and the instructions included in the program codes can be used to execute the steps of the pose optimization method in the foregoing method embodiments.
  • the computer program product carries program codes
  • the instructions included in the program codes can be used to execute the steps of the pose optimization method in the foregoing method embodiments.
  • the above-mentioned computer program product can be specifically implemented by means of hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium.
  • the computer software products are stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
  • the current predicted pose of the mobile device is determined based on a first image captured by the mobile device; the first image includes a current frame image captured when the mobile device is at the current position and a start before the mobile device is at the current position
  • the initial frame image captured when the mobile device moves to the current position determine the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position; obtain multiple estimated pose information of the mobile device, and the multiple estimated pose information includes the starting frame.
  • the predicted pose is optimized to obtain the current optimized pose, which further improves the accuracy of visual positioning.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Navigation (AREA)

Abstract

The present disclosure relates to a method and apparatus for posture optimization, an electronic device, a computer-readable storage medium, a computer program, and a program product. The method for posture optimization comprises: determining a current predicted posture of a mobile device on the basis of first images captured by the mobile device, the first images comprising a current frame of image captured by the mobile device when located at the current position and an initial frame of image captured by the mobile device when located at an initial position before the current position; determining movement parameter information corresponding to a target movement process that the mobile device experienced when moving to the current position; acquiring multiple pieces of estimated posture information of the mobile device, the multiple pieces of estimated posture information comprising estimated posture information corresponding respectively to the initial frame of image and to the current frame of image and estimated posture information corresponding respectively to multiple frames of images between the initial frame of image and the current frame of image; and optimizing the current predicted posture on the basis of the movement parameter information and of the multiple pieces of estimated posture information to produce a current optimized posture.

Description

位姿优化方法、装置、电子设备、计算机可读存储介质、计算机程序及程序产品Pose optimization method, apparatus, electronic device, computer-readable storage medium, computer program and program product
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开基于申请号为202110279737.1、申请日为2021年03月16日、申请名称为“位姿优化方法、装置、电子设备及存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。The present disclosure is based on the Chinese patent application with the application number of 202110279737.1, the application date of March 16, 2021, and the application title of "Pose Optimization Method, Device, Electronic Device and Storage Medium", and claims the priority of the Chinese patent application. , the entire content of the Chinese patent application is incorporated herein by reference.
技术领域technical field
本公开涉及计算机视觉技术领域,具体而言,涉及一种位姿优化方法、装置、电子设备、计算机可读存储介质、计算机程序及程序产品。The present disclosure relates to the field of computer vision technology, and in particular, to a pose optimization method, apparatus, electronic device, computer-readable storage medium, computer program, and program product.
背景技术Background technique
目前,通过视觉来进行无人设备的定位,是机器人、无人机、自动导航及增强现实领域应用的重要组成部分,由于单目相机具有低成本、轻量化和易于安装的特点,在视觉定位中得到了广泛应用。但是,通过单目相机采集的图像数据不能提供这些物体真实的三维大小信息,因此无法确定单目视觉里程计的尺度,进而使得位姿计算存在一定的误差。At present, the positioning of unmanned equipment through vision is an important part of applications in the fields of robots, unmanned aerial vehicles, automatic navigation and augmented reality. has been widely used. However, the image data collected by the monocular camera cannot provide the real three-dimensional size information of these objects, so the scale of the monocular visual odometry cannot be determined, which leads to certain errors in the pose calculation.
发明内容SUMMARY OF THE INVENTION
本实施例至少提供一种位姿优化方法、装置、电子设备、计算机可读存储介质、计算机程序及程序产品。This embodiment provides at least one pose optimization method, apparatus, electronic device, computer-readable storage medium, computer program, and program product.
第一方面,本公开实施例提供了一种位姿优化方法,包括:In a first aspect, an embodiment of the present disclosure provides a pose optimization method, including:
基于移动设备拍摄的第一图像,确定所述移动设备的当前预测位姿;所述第一图像包括所述移动设备处于当前位置时拍摄的当前帧图像以及所述移动设备处于所述当前位置之前的起始位置时拍摄的起始帧图像;Determine the current predicted pose of the mobile device based on the first image captured by the mobile device; the first image includes the current frame image captured when the mobile device is at the current position and before the mobile device is at the current position The starting frame image taken when the starting position is ;
确定所述移动设备在移动到所述当前位置时,所经历的目标移动过程对应的移动参数信息;所述目标移动过程位于所述起始位置与所述当前位置之间;Determine the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position; the target movement process is located between the starting position and the current position;
获取所述移动设备的多个估计位姿信息,所述多个估计位姿信息包括所述起始帧图像对应的估计位姿信息、所述当前帧图像对应的估计位姿信息以及所述起始帧图像和所述当前帧图像之间的多帧图像分别对应的估计位姿信息;Acquire multiple pieces of estimated pose information of the mobile device, where the pieces of estimated pose information include estimated pose information corresponding to the starting frame image, estimated pose information corresponding to the current frame image, and the starting frame image. The estimated pose information corresponding to the multi-frame images between the initial frame image and the current frame image respectively;
基于所述移动参数信息以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到当前优化位姿。The current predicted pose is optimized based on the movement parameter information and the plurality of estimated pose information to obtain a current optimized pose.
本公开实施例中,通过获取移动设备在移动到当前位置时,所经历的目标移动过程对应的移动参数信息,来恢复视觉里程计的尺度信息,并基于该尺度信息对当前预测位姿进行优化,进而可以提高位姿的计算精度。另外,该方法将获取的移动参数信息作为尺度约束,进而来得到一个优化位姿信息,计算的复杂度较低,降低了对设备的性能的要求(比如应用在一些低端手机上),从而提高了该方法的适应性。In the embodiment of the present disclosure, the scale information of the visual odometer is recovered by acquiring the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position, and the current predicted pose is optimized based on the scale information. , which can improve the calculation accuracy of pose. In addition, this method uses the acquired movement parameter information as a scale constraint, and then obtains an optimized pose information. The computational complexity is low, which reduces the performance requirements of the device (for example, it is applied to some low-end mobile phones), so The adaptability of the method is improved.
根据第一方面,在一种可能的实施方式中,所述移动参数信息包括移动距离;According to the first aspect, in a possible implementation manner, the movement parameter information includes a movement distance;
所述确定所述移动设备在移动到当前位置时,所经历的目标移动过程对应的移动参数信息,包括:The determining of the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position includes:
基于行人航位推算法,确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动距离;Determine, based on the pedestrian dead reckoning algorithm, the moving distance corresponding to the moving process of the target experienced by the mobile device when it moves to the current position;
所述基于所述移动参数信息以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到当前优化位姿,包括:The current predicted pose is optimized based on the movement parameter information and the plurality of estimated pose information to obtain the current optimized pose, including:
基于所述移动距离,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。The current predicted pose is optimized based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose.
本公开实施例中,基于行人航位推算法来确定所述目标移动过程对应的所述移动距离,可以简化移动距离的确定过程,提高了移动距离的确定效率,进而提高了位姿优化方法的运算效率。In the embodiment of the present disclosure, the moving distance corresponding to the moving process of the target is determined based on the pedestrian dead reckoning algorithm, which can simplify the process of determining the moving distance, improve the efficiency of determining the moving distance, and further improve the efficiency of the pose optimization method. Operational efficiency.
根据第一方面,在一种可能的实施方式中,所述基于所述移动距离,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿,包括:According to the first aspect, in a possible implementation manner, the current predicted pose is optimized based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose, including: :
确定所述目标移动过程对应的移动起始时间和移动结束时间;Determine the movement start time and movement end time corresponding to the target movement process;
根据图像拍摄时间,确定所述移动起始时间对应的移动初始帧图像和所述移动结束时间对应的移动结束帧图像,并分别确定与所述移动初始帧图像和移动结束帧图像对应的移动初始估计位姿以及移动结束估计位姿;According to the image capturing time, the initial moving frame image corresponding to the moving start time and the moving ending frame image corresponding to the moving ending time are determined, and the moving initial frame image corresponding to the moving initial frame image and the moving ending frame image are respectively determined. Estimated pose and estimated pose at the end of the move;
将所述移动距离确定为所述移动初始估计位姿以及移动结束估计位姿之间的距离,并结合所述多个估计位姿信息,对所述当前预测位姿进行优化,得到所述当前优化位姿。Determining the moving distance as the distance between the initial estimated pose of the movement and the estimated pose at the end of the movement, and combining the multiple estimated pose information, optimize the current predicted pose to obtain the current Optimize the pose.
本公开实施例中,根据图像拍摄时间以及目标移动过程对应的移动起始时间和移动结束时间,确定与所述移动初始帧图像和移动结束帧图像对应的移动初始估计位姿以及移动结束估计位姿,并将所述移动距离确定为所述移动初始估计位姿以及移动结束估计位姿之间的距离,如此使得移动初始估计位姿以及移动结束估计位姿之间得到了距离的约束,进而可以实现对当前预测位姿的优化,提高了视觉定位的精度。In the embodiment of the present disclosure, according to the image capture time and the movement start time and movement end time corresponding to the target movement process, the movement initial estimated pose and the movement end estimated position corresponding to the movement initial frame image and the movement end frame image are determined The movement distance is determined as the distance between the initial estimated pose of the movement and the estimated pose of the end of the movement, so that the distance constraint is obtained between the initial estimated pose of the movement and the estimated pose of the end of the movement, and then It can realize the optimization of the current predicted pose and improve the accuracy of visual positioning.
根据第一方面,在一种可能的实施方式中,所述基于行人航位推算法,确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的移动距离,包括:According to the first aspect, in a possible implementation manner, the moving distance corresponding to the moving process of the target experienced by the mobile device when moving to the current position is determined based on a pedestrian dead reckoning algorithm, include:
获取所述移动设备的用户在所述目标移动过程中的行走步数;Obtain the number of steps taken by the user of the mobile device during the movement of the target;
基于所述行走步数以及所述用户的步长,确定所述移动距离。The moving distance is determined based on the number of walking steps and the step length of the user.
本公开实施例中,由于利用用户的行走步数以及步长来确定移动距离,因此只需要精度较低的IMU(Inertial Measurement Unit,惯性测量单元)即可实现,进而可以在提高定位精度的同时降低对IMU精度的要求,使得该方法可以在算力受限场景下(例如,低端手机的小程序上)进行室内定位。In the embodiment of the present disclosure, since the moving distance is determined by using the user's walking steps and step length, only an Inertial Measurement Unit (Inertial Measurement Unit) with lower precision can be used to achieve this, and thus the positioning accuracy can be improved at the same time. The requirement for the accuracy of the IMU is reduced, so that the method can perform indoor positioning in scenarios with limited computing power (for example, on the applet of a low-end mobile phone).
根据第一方面,在一种可能的实施方式中,所述移动参数信息还包括移动速度;According to the first aspect, in a possible implementation manner, the movement parameter information further includes a movement speed;
所述确定所述移动设备在移动到当前位置时,所经历的目标移动过程对应的移动参数信息,还包括:The determining of the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position further includes:
确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动速度;determining the movement speed corresponding to the target movement process experienced by the mobile device when it moves to the current position;
所述基于所述移动距离,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿,包括:The optimizing the current predicted pose based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose includes:
基于所述移动距离、所述移动速度,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。The current predicted pose is optimized based on the moving distance, the moving speed, and the plurality of estimated pose information to obtain the current optimized pose.
本公开实施例中,在确定移动距离之后还确定移动速度,使得用户行走一步的距离所对应多帧图像的对应估计位姿信息也得到了距离的约束,进而进一步提高了当前预测位姿的优化精度。In the embodiment of the present disclosure, after the moving distance is determined, the moving speed is also determined, so that the corresponding estimated pose information of the multi-frame images corresponding to the distance that the user walks one step is also constrained by the distance, thereby further improving the optimization of the current predicted pose precision.
根据第一方面,在一种可能的实施方式中,所述确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动速度,包括:According to the first aspect, in a possible implementation manner, the determining of the moving speed corresponding to the target moving process experienced by the mobile device when moving to the current position includes:
获取所述移动设备的用户的历史运动速度;Obtain the historical motion speed of the user of the mobile device;
基于运动模型和所述历史运动速度预测所述移动速度。The movement speed is predicted based on a movement model and the historical movement speed.
本公开实施例中,通过运动模型和历史运动速度来预测该目标过程的移动速度,相较于直接基于IMU测量的用户行走的速度,可以提高参数获取的精度。In the embodiment of the present disclosure, the moving speed of the target process is predicted by the motion model and the historical motion speed, which can improve the accuracy of parameter acquisition compared to the user's walking speed measured directly based on the IMU.
根据第一方面,在一种可能的实施方式中,在得到所述当前优化位姿之后,所述方法 还包括:According to the first aspect, in a possible implementation manner, after obtaining the current optimized pose, the method further includes:
判断所述当前优化位姿的误差是否小于预设阈值;judging whether the error of the current optimized pose is less than a preset threshold;
在所述当前优化位姿的误差超过所述预设阈值的情况下,获取所述移动设备的当前预测速度以及当前朝向;When the error of the current optimized pose exceeds the preset threshold, acquiring the current predicted speed and current orientation of the mobile device;
基于所述当前优化位姿、所述当前预测速度以及所述当前朝向,确定所述移动设备的实时位姿信息。Based on the current optimized pose, the current predicted velocity, and the current orientation, real-time pose information of the mobile device is determined.
本公开实施例中,在当前优化位姿的误差超过所述预设阈值的情况下,也即视觉跟踪结果比较差的情况,可以直接采用当前预测速度和当前朝向进行继续跟踪一段时间,直到视觉跟踪恢复。如此,即使在视觉里程计难以定位的场景下,通过行人航位信息仍然能够得到导航定位结果,提高了该方法的适用性。In the embodiment of the present disclosure, when the error of the current optimized pose exceeds the preset threshold, that is, the visual tracking result is relatively poor, the current predicted speed and the current orientation can be directly used to continue tracking for a period of time until the visual tracking Track recovery. In this way, even in the scene where the visual odometry is difficult to locate, the navigation and positioning results can still be obtained through the pedestrian dead position information, which improves the applicability of the method.
根据第一方面,在一种可能的实施方式中,在得到所述当前优化位姿之后,所述方法还包括:According to the first aspect, in a possible implementation manner, after obtaining the current optimized pose, the method further includes:
基于所述当前优化位姿、用户输入的目的地以及存储的地图,规划导航线路,并在所述地图上展示所述导航线路。Based on the current optimized pose, the destination input by the user, and the stored map, a navigation route is planned, and the navigation route is displayed on the map.
本个公开实施例中,采用优化后的当前预测位姿进行当行线路规划,可以提高所规划的线路的精准度。In this disclosed embodiment, the current route planning is performed by using the optimized current predicted pose, which can improve the accuracy of the planned route.
根据第一方面,在一种可能的实施方式中,所述基于所述当前优化位姿、用户输入的目的地以及存储的地图,规划导航线路,并在所述地图上展示所述导航线路,包括:According to the first aspect, in a possible implementation manner, the navigation route is planned based on the current optimized pose, the destination input by the user, and the stored map, and the navigation route is displayed on the map, include:
响应所述用户出入的目的地输入请求,在所述地图中确定所述目的地的位置信息;determining the location information of the destination in the map in response to the destination input request of the user entering and leaving;
基于所述当前优化位姿、以及所述目的地的位置信息,确定所述当前优化位姿与所述目的地之间的至少一条连接线路;Based on the current optimized pose and the location information of the destination, determining at least one connection line between the current optimized pose and the destination;
在所述地图中展示所述至少一条连接线路。The at least one connection line is displayed in the map.
本公开实施例中,在线路规划过程中,首先在地图中确定用户输入的目的地信息,然后根据当前优化位姿以及所述目的地的位置信息,规划出至少一条连接线路,并在所述地图中展示所述至少一条连接线路,如此可以为用户提供多的选择,使得用户可以根据实际情况从多条线路中,选择一条进行导航,进而提高了导航线路的适用性。In the embodiment of the present disclosure, in the route planning process, the destination information input by the user is first determined in the map, and then at least one connection route is planned according to the current optimized pose and the location information of the destination, and is The at least one connection line is displayed on the map, so that multiple choices can be provided for the user, so that the user can select one of the multiple lines for navigation according to the actual situation, thereby improving the applicability of the navigation line.
第二方面,本公开实施例提供了一种位姿优化装置,包括:In a second aspect, an embodiment of the present disclosure provides a pose optimization device, including:
位姿估计部分,配置为基于移动设备拍摄的第一图像,确定所述移动设备的当前预测位姿;所述第一图像包括所述移动设备处于当前位置时拍摄的当前帧图像以及所述移动设备处于所述当前位置之前的起始位置时拍摄的起始帧图像;The pose estimation part is configured to determine the current predicted pose of the mobile device based on the first image captured by the mobile device; the first image includes the current frame image captured when the mobile device is in the current position and the movement The starting frame image taken when the device is at the starting position before the current position;
参数确定部分,配置为确定所述移动设备在移动到所述当前位置时,所经历的目标移动过程对应的移动参数信息;所述目标移动过程位于所述起始位置与所述当前位置之间;A parameter determination part, configured to determine the movement parameter information corresponding to the target movement process experienced by the mobile device when moving to the current position; the target movement process is located between the starting position and the current position ;
位姿获取部分,配置为获取所述移动设备的多个估计位姿信息,所述多个估计位姿信息包括所述起始帧图像对应的估计位姿信息、所述当前帧图像对应的估计位姿信息以及所述起始帧图像和所述当前帧图像之间的多帧图像分别对应的估计位姿信息;a pose acquisition part, configured to obtain a plurality of estimated pose information of the mobile device, the plurality of estimated pose information including the estimated pose information corresponding to the initial frame image, the estimated pose information corresponding to the current frame image pose information and estimated pose information respectively corresponding to the multi-frame images between the initial frame image and the current frame image;
位姿优化部分,配置为基于所述移动参数信息以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到当前优化位姿。The pose optimization part is configured to optimize the current predicted pose based on the movement parameter information and the plurality of estimated pose information to obtain the current optimized pose.
根据第二方面,在一种可能的实施方式中,所述移动参数信息包括移动距离;According to the second aspect, in a possible implementation manner, the movement parameter information includes a movement distance;
所述参数确定部分,配置为:The parameter determination part is configured as:
基于行人航位推算法,确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动距离;Determine, based on the pedestrian dead reckoning algorithm, the moving distance corresponding to the moving process of the target experienced by the mobile device when it moves to the current position;
所述位姿优化部分,配置为:The pose optimization part is configured as:
基于所述移动距离,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。The current predicted pose is optimized based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose.
根据第二方面,在一种可能的实施方式中,位姿优化部分,配置为:According to the second aspect, in a possible implementation manner, the pose optimization part is configured as:
确定所述目标移动过程对应的移动起始时间和移动结束时间;Determine the movement start time and movement end time corresponding to the target movement process;
根据图像拍摄时间,确定所述移动起始时间对应的移动初始帧图像和所述移动结束时间对应的移动结束帧图像,并分别确定与所述移动初始帧图像和移动结束帧图像对应的移动初始估计位姿以及移动结束估计位姿;According to the image capturing time, the initial moving frame image corresponding to the moving start time and the moving ending frame image corresponding to the moving ending time are determined, and the moving initial frame image corresponding to the moving initial frame image and the moving ending frame image are respectively determined. Estimated pose and estimated pose at the end of the move;
将所述移动距离确定为所述移动初始估计位姿以及移动结束估计位姿之间的距离,并结合所述多个估计位姿信息,对所述当前预测位姿进行优化,得到所述当前优化位姿。Determining the moving distance as the distance between the initial estimated pose of the movement and the estimated pose at the end of the movement, and combining the multiple estimated pose information, optimize the current predicted pose to obtain the current Optimize the pose.
根据第二方面,在一种可能的实施方式中,参数确定部分,配置为:According to the second aspect, in a possible implementation manner, the parameter determining part is configured to:
获取所述移动设备的用户在所述目标移动过程中的行走步数;Obtain the number of steps taken by the user of the mobile device during the movement of the target;
基于所述行走步数以及所述用户的步长,确定所述移动距离。The moving distance is determined based on the number of walking steps and the step length of the user.
根据第二方面,在一种可能的实施方式中,所述移动参数信息还包括移动速度;According to the second aspect, in a possible implementation manner, the movement parameter information further includes a movement speed;
所述参数确定部分,还配置为:The parameter determination part is also configured as:
确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动速度;determining the movement speed corresponding to the target movement process experienced by the mobile device when it moves to the current position;
所述位姿优化部分,配置为:The pose optimization part is configured as:
基于所述移动距离、所述移动速度,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。The current predicted pose is optimized based on the moving distance, the moving speed, and the plurality of estimated pose information to obtain the current optimized pose.
根据第二方面,在一种可能的实施方式中,参数确定部分,配置为:According to the second aspect, in a possible implementation manner, the parameter determining part is configured to:
获取所述移动设备的用户的历史运动速度;Obtain the historical motion speed of the user of the mobile device;
基于运动模型和所述历史运动速度预测所述移动速度。The movement speed is predicted based on a movement model and the historical movement speed.
根据第二方面,在一种可能的实施方式中,所述位姿优化部分,还配置为:According to the second aspect, in a possible implementation manner, the pose optimization part is further configured to:
判断所述当前优化位姿的误差是否小于预设阈值;judging whether the error of the current optimized pose is less than a preset threshold;
在所述当前优化位姿的误差超过所述预设阈值的情况下,获取所述移动设备的当前预测速度以及当前朝向;When the error of the current optimized pose exceeds the preset threshold, acquiring the current predicted speed and current orientation of the mobile device;
基于所述当前优化位姿、所述当前预测速度以及所述当前朝向,确定所述移动设备的实时位姿信息。Based on the current optimized pose, the current predicted velocity, and the current orientation, real-time pose information of the mobile device is determined.
根据第二方面,在一种可能的实施方式中,所述位姿优化装置还包括线路规划部分,所述线路规划部分,配置为:According to the second aspect, in a possible implementation manner, the pose optimization device further includes a route planning part, and the route planning part is configured to:
基于所述当前优化位姿、用户输入的目的地以及存储的地图,规划导航线路,并在所述地图上展示所述导航线路。Based on the current optimized pose, the destination input by the user, and the stored map, a navigation route is planned, and the navigation route is displayed on the map.
根据第二方面,在一种可能的实施方式中,线路规划部分,配置为:According to the second aspect, in a possible implementation manner, the route planning part is configured as:
响应所述用户出入的目的地输入请求,在所述地图中确定所述目的地的位置信息;determining the location information of the destination in the map in response to the destination input request of the user entering and leaving;
基于所述当前优化位姿、以及所述目的地的位置信息,确定所述当前优化位姿与所述目的地之间的至少一条连接线路;Based on the current optimized pose and the location information of the destination, determining at least one connection line between the current optimized pose and the destination;
在所述地图中展示所述至少一条连接线路。The at least one connection line is displayed in the map.
第三方面,本公开实施例提供了一种电子设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如第一方面所述的位姿优化方法。In a third aspect, embodiments of the present disclosure provide an electronic device, including: a processor, a memory, and a bus, where the memory stores machine-readable instructions executable by the processor, and when the electronic device runs, the processing The processor and the memory communicate through a bus, and the machine-readable instructions are executed by the processor to execute the pose optimization method according to the first aspect.
第四方面,本公开实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如第一方面所述的位姿优化方法。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to execute the pose optimization method according to the first aspect .
第五方面,本公开实施例提供了一种计算机程序,包括计算机可读代码,在所述计算机可读代码在电子设备中运行,被所述电子设备中的处理器执行的情况下,执行如第一方面所述的位姿优化方法。In a fifth aspect, an embodiment of the present disclosure provides a computer program, including computer-readable code, where the computer-readable code runs in an electronic device and is executed by a processor in the electronic device, and executes the following steps: The pose optimization method described in the first aspect.
第六方面,本公开实施例提供了一种计算机程序产品,当其在计算机上运行时,使得计算机执行如第一方面所述的位姿优化方法。In a sixth aspect, an embodiment of the present disclosure provides a computer program product that, when executed on a computer, causes the computer to execute the pose optimization method described in the first aspect.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, the preferred embodiments are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required in the embodiments, which are incorporated into the specification and constitute a part of the specification. The drawings illustrate embodiments consistent with the present disclosure, and together with the description serve to explain the technical solutions of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. Other related figures are obtained from these figures.
图1示出了本公开实施例所提供的一种位姿优化方法的流程图;FIG. 1 shows a flowchart of a pose optimization method provided by an embodiment of the present disclosure;
图2示出了本公开实施例所提供的一种基于移动距离对当前预测位姿优化的方法流程图;FIG. 2 shows a flowchart of a method for optimizing a current predicted pose based on a moving distance provided by an embodiment of the present disclosure;
图3示出了本公开实施例所提供的一种获取移动距离方法的流程图;FIG. 3 shows a flowchart of a method for obtaining a moving distance provided by an embodiment of the present disclosure;
图4示出了本公开实施例所提供的一种获取移动速度方法的流程图;FIG. 4 shows a flowchart of a method for obtaining a moving speed provided by an embodiment of the present disclosure;
图5示出了本公开实施例所提供的另一种位姿优化方法的流程图;FIG. 5 shows a flowchart of another pose optimization method provided by an embodiment of the present disclosure;
图6示出了本公开实施例所提供的一种位姿优化装置的结构示意图;FIG. 6 shows a schematic structural diagram of a pose optimization apparatus provided by an embodiment of the present disclosure;
图7示出了本公开实施例所提供的另一种位姿优化装置的结构示意图;FIG. 7 shows a schematic structural diagram of another pose optimization apparatus provided by an embodiment of the present disclosure;
图8示出了本公开实施例所提供的一种电子设备的示意图。FIG. 8 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are some, but not all, embodiments of the present disclosure. The components of the disclosed embodiments generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure as claimed, but is merely representative of selected embodiments of the disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present disclosure.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
本文中术语“和/或”,仅仅是描述一种关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this paper only describes an association relationship, which means that there can be three kinds of relationships, for example, A and/or B, which can mean: the existence of A alone, the existence of A and B at the same time, the existence of B alone. a situation. In addition, the term "at least one" herein refers to any combination of any one of the plurality or at least two of the plurality, for example, including at least one of A, B, and C, and may mean including from A, B, and C. Any one or more elements selected from the set of B and C.
目前,通过视觉来进行无人设备的定位,是机器人、无人机、自动导航、及增强现实领域应用的重要组成部分,视觉方法仅仅依赖于相机采集到的图像信息,基于相机模型与视觉几何学模型等来计算机器本身的六自由度运动。这种基于图像信息的自定位定向方法类似于传统里程计的航迹推算,因此称为视觉里程计。At present, the positioning of unmanned equipment through vision is an important part of applications in the fields of robots, unmanned aerial vehicles, automatic navigation, and augmented reality. The vision method only relies on the image information collected by the camera, based on the camera model and visual geometry Learning models, etc. to calculate the six-degree-of-freedom motion of the machine itself. This self-localization orientation method based on image information is similar to traditional odometer dead reckoning, so it is called visual odometry.
经研究发现,由于单目相机具有低成本、轻量化和易于安装的特点,在视觉定位中得到了广泛应用。但是,通过单目相机采集的图像数据不能提供这些物体真实的三维大小信息,因此无法确定单目视觉里程计的尺度,进而使得位姿计算存在一定的误差。After research, it is found that monocular cameras are widely used in visual positioning due to their low cost, light weight and easy installation. However, the image data collected by the monocular camera cannot provide the real three-dimensional size information of these objects, so the scale of the monocular visual odometry cannot be determined, which leads to certain errors in the pose calculation.
对此,相关技术中提出了以下方案:In this regard, the following solutions are proposed in the related art:
一类解决方案是结合额外的精确传感器来获取更多的信息恢复尺度,如结合高精度 GPS,IMU的视觉里程计;然而该方法需要设备配置额外的高精度传感设备并且对设备算力和精度有所要求。One type of solution is to combine additional accurate sensors to obtain more information and restore scales, such as visual odometry combined with high-precision GPS and IMU; however, this method requires the device to be equipped with additional high-precision sensing devices and to the computing power of the device. Accuracy is required.
另一类解决方案则是通过导航的场景进行提前建,,通过不断在地图中定位恢复出视觉里程计的尺度,然而,该方法对预先建图和定位频率有很高的要求。Another type of solution is to build in advance through the navigation scene, and restore the scale of the visual odometry by continuously positioning in the map. However, this method has high requirements on the frequency of pre-mapping and positioning.
鉴于此,如何提高单目视觉里程计的定位精度,为本公开要解决的技术问题。In view of this, how to improve the positioning accuracy of the monocular visual odometry is a technical problem to be solved by the present disclosure.
基于上述研究,本公开提供了一种位姿优化方法,基于移动设备拍摄的第一图像,确定移动设备的当前预测位姿;第一图像包括移动设备处于当前位置时拍摄的当前帧图像以及移动设备处于当前位置之前的起始位置时拍摄的起始帧图像;确定移动设备在移动到当前位置时,所经历的目标移动过程对应的移动参数信息;所述目标移动过程位于所述起始位置与所述当前位置之间;获取移动设备的多个估计位姿信息,多个估计位姿信息包括起始帧图像及当前帧图像分别对应的估计位姿信息以及起始帧图像和当前帧图像之间的多帧图像分别对应的估计位姿信息;基于移动参数信息以及多个估计位姿信息对当前预测位姿进行优化,得到当前优化位姿。Based on the above research, the present disclosure provides a pose optimization method, which determines the current predicted pose of the mobile device based on the first image captured by the mobile device; the first image includes the current frame image captured when the mobile device The initial frame image taken when the device is in the initial position before the current position; determine the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position; the target movement process is located at the initial position and the current position; obtain multiple estimated pose information of the mobile device, the multiple estimated pose information includes the estimated pose information corresponding to the starting frame image and the current frame image respectively, as well as the starting frame image and the current frame image The estimated pose information corresponding to the multi-frame images between them respectively; the current predicted pose is optimized based on the movement parameter information and the multiple estimated pose information to obtain the current optimized pose.
也即,本公开实施例中的方法,在进行视觉定位的过程中,通过获取移动设备在移动到当前位置时,所经历的目标移动过程对应的移动参数信息,来恢复视觉里程计的尺度信息,并基于该尺度信息对当前预测位姿进行优化,进而可以提高位姿计算精度。That is, in the method in the embodiment of the present disclosure, during the process of visual positioning, the scale information of the visual odometer is recovered by acquiring the movement parameter information corresponding to the movement process of the target experienced by the mobile device when it moves to the current position. , and optimize the current predicted pose based on the scale information, which can improve the accuracy of pose calculation.
为便于对本实施例进行理解,首先对本公开实施例所公开的一种位姿优化方法进行详细介绍,本公开实施例所提供的位姿优化方法的执行主体一般为具有一定计算能力的电子设备,该电子设备例如包括:终端设备或服务器或其它处理设备,终端设备可以为移动设备、用户终端、终端、手持设备、计算设备、车载设备、可穿戴设备等。在一些可能的实现方式中,该位姿优化方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In order to facilitate the understanding of this embodiment, a pose optimization method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the pose optimization method provided by the embodiment of the present disclosure is generally an electronic device with a certain computing capability. The electronic device includes, for example, a terminal device or a server or other processing device, and the terminal device may be a mobile device, a user terminal, a terminal, a handheld device, a computing device, a vehicle-mounted device, a wearable device, and the like. In some possible implementations, the pose optimization method may be implemented by the processor calling computer-readable instructions stored in the memory.
参见图1所示,为本公开实施例提供的位姿优化方法的流程图,该位姿优化方法包括以下S101~S104:Referring to FIG. 1, which is a flowchart of a pose optimization method provided by an embodiment of the present disclosure, the pose optimization method includes the following S101-S104:
S101,基于移动设备拍摄的第一图像,确定移动设备的当前预测位姿;第一图像包括移动设备处于当前位置时拍摄的当前帧图像以及移动设备处于当前位置之前的起始位置时拍摄的起始帧图像。S101: Determine the current predicted pose of the mobile device based on a first image captured by the mobile device; the first image includes a current frame image captured when the mobile device is at the current position and a start image captured when the mobile device is at a starting position before the current position Start frame image.
在视觉定位的过程中,通常包括视觉跟踪、估计位姿以及优化的过程。其中,可以通过视觉跟踪得到图像间特征点与特征点之间的关联,然后再根据特征点之间的关联估计相机的粗略位姿。例如,对于两张图像,应该首先选取一些具有代表性的点,称为特征点;之后,仅针对这些特征点估计相机的运动,同时估计特征点的空间位置,图像里其他非特征点的信息,则被丢弃。比如常用的特征点提取方法,包括图像中的角点、色块等。In the process of visual localization, it usually includes the process of visual tracking, estimating pose and optimizing. Among them, the correlation between the feature points between the images can be obtained by visual tracking, and then the rough pose of the camera is estimated according to the correlation between the feature points. For example, for two images, some representative points should be selected first, called feature points; after that, only the motion of the camera is estimated for these feature points, and the spatial position of the feature points and the information of other non-feature points in the image are estimated at the same time. , is discarded. For example, common feature point extraction methods, including corner points, color blocks, etc. in the image.
移动设备是指可以搭载于一载体(比如人体)上且可以随着载体一起移动的设备。示例性地,移动设备具体可以包括手机、平板电脑、增强现实(Augmented Reality,AR)眼镜等。也即,该移动设备可以是前述具有一定计算能力的电子设备中的移动设备或者手持设备等。移动设备可以内置图像采集部件也可以外接图像采集部件,在移动设备进入工作状态后,可以通过图像采集部件对现实场景图像进行拍摄,得到若干图像。其中,所述第一图像为该若干图像中的部分,即所述第一图像包括所述移动设备处于当前位置时拍摄的当前帧图像以及所述移动设备处于所述当前位置之前的起始位置时拍摄的起始帧图像。A mobile device refers to a device that can be mounted on a carrier (such as a human body) and can move with the carrier. Exemplarily, the mobile device may specifically include a mobile phone, a tablet computer, augmented reality (Augmented Reality, AR) glasses, and the like. That is, the mobile device may be a mobile device or a handheld device among the aforementioned electronic devices having a certain computing capability. The mobile device can have a built-in image acquisition component or an external image acquisition component. After the mobile device enters the working state, the image acquisition component can be used to capture images of the real scene to obtain several images. Wherein, the first image is a part of the several images, that is, the first image includes the current frame image taken when the mobile device is at the current position and the starting position before the mobile device is at the current position The starting frame image taken at the time.
其中,起始位置可以根据具体的现实场景环境的复杂性而进行设定,比如,若当前现实场景较为空旷简单,则可以将当前位置之前距离当前位置较远的位置作为起始位置;若当前现实场景环境较为复杂,则可以将当前位置之前距离当前位置较近的位置作为起始位置,在此不做限定。Among them, the starting position can be set according to the complexity of the specific real scene environment. For example, if the current real scene is relatively empty and simple, the position far from the current position before the current position can be used as the starting position; If the real scene environment is more complex, the position that is closer to the current position before the current position can be used as the starting position, which is not limited here.
可以理解,由于本公开实施例中的图像采集部件为单目相机,存在尺度不确定的问题, 也即,基于第一图像采用特征点法只能得到当前位置相对于起始位置的相对位置,因此,得到的当前预测位姿仅仅是相对位姿,并不准确,需要对当前预测位姿进行优化。It can be understood that since the image acquisition component in the embodiment of the present disclosure is a monocular camera, there is a problem of uncertain scale, that is, only the relative position of the current position relative to the starting position can be obtained by using the feature point method based on the first image, Therefore, the obtained current predicted pose is only a relative pose, which is not accurate, and the current predicted pose needs to be optimized.
S102,确定移动设备在移动到当前位置时,所经历的目标移动过程对应的移动参数信息;目标移动过程位于起始位置与当前位置之间。S102: Determine the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position; the target movement process is located between the initial position and the current position.
示例性地,目标移动过程可以是以所述起始位置为起点,以所述当前位置为终点的过程,也可以是所述起始位置与所述当前位置之间的任意一段过程,在此不做限定。Exemplarily, the target moving process may be a process with the starting position as the starting point and the current position as the ending point, or may be any process between the starting position and the current position, here Not limited.
一些实施方式中,所述移动参数信息可以只包括移动距离;另一些实施方式中,移动参数信息包括移动距离和移动速度,具体详见后文阐述。In some embodiments, the movement parameter information may only include the movement distance; in other embodiments, the movement parameter information includes the movement distance and the movement speed, which will be described later for details.
S103,获取移动设备的多个估计位姿信息,多个估计位姿信息包括起始帧图像对应的估计位姿信息、当前帧图像对应的估计位姿信息以及起始帧图像和当前帧图像之间的多帧图像分别对应的估计位姿信息。S103: Acquire multiple estimated pose information of the mobile device, where the multiple estimated pose information includes estimated pose information corresponding to the initial frame image, estimated pose information corresponding to the current frame image, and the difference between the initial frame image and the current frame image The estimated pose information corresponding to the multi-frame images in between.
可以理解,由于在移动设备的移动过程中会拍摄多张图像,而根据特征点法,每一图像都会存在与该图像对应的相机(移动设备)的估计位姿信息。具体地,在匹配好特征点后,可以得到两个一一对应的像素点集,然后根据两组匹配好的点集,估计相机的运动。It can be understood that since a plurality of images are captured during the movement of the mobile device, according to the feature point method, each image has estimated pose information of the camera (mobile device) corresponding to the image. Specifically, after matching the feature points, two one-to-one corresponding pixel point sets can be obtained, and then the motion of the camera is estimated according to the two sets of matched point sets.
S104,基于移动参数信息以及多个估计位姿信息对当前预测位姿进行优化,得到当前优化位姿。S104, optimize the current predicted pose based on the movement parameter information and the plurality of estimated pose information to obtain the current optimized pose.
示例性地,可以基于光速平差法(Bundle Adjustment)对当前预测位姿进行优化。其中,光束法平差法通过将相机的姿态和测量点的三维坐标作为未知参数,将影像上探测到的用于前方交会的特征点坐标作为观测数据从而进行平差得到最优的相机参数和世界点坐标。Exemplarily, the current predicted pose may be optimized based on the light velocity adjustment method (Bundle Adjustment). Among them, the beam method adjustment method uses the camera attitude and the three-dimensional coordinates of the measurement point as unknown parameters, and uses the coordinates of the feature points detected on the image for forward intersection as the observation data to adjust to obtain the optimal camera parameters and World point coordinates.
本公开实施例中,在进行视觉定位的过程中,通过获取移动设备在移动到当前位置时,所经历的目标移动过程对应的移动参数信息,来恢复视觉里程计的尺度信息,并基于该尺度信息对当前预测位姿进行优化,进而可以提高位姿计算精度。另外,该方法将获取的移动参数信息作为约束,进而来得到一个优化位姿信息,计算的复杂度较低,降低了对设备的性能的要求(比如应用在一些低端手机上),从而提高了该方法的适应性。In the embodiment of the present disclosure, during the process of visual positioning, the scale information of the visual odometer is recovered by acquiring the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position, and based on the scale information The information optimizes the current predicted pose, which in turn can improve the accuracy of pose calculation. In addition, this method uses the acquired movement parameter information as a constraint, and then obtains an optimized pose information, the computational complexity is low, and the performance requirements of the device are reduced (for example, it is applied to some low-end mobile phones), thereby improving the adaptability of the method.
在一些实施例中,移动参数信息包括移动距离,因此,针对上述S102,在确定所述移动设备在移动到所述当前位置时,所经历的目标移动过程对应的移动参数信息时,可以包括:基于行人航位推算法,确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动距离;针对上述S104,在所述基于所述移动参数信息以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到当前优化位姿时,可以包括:基于所述移动距离,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。In some embodiments, the movement parameter information includes the movement distance. Therefore, for the above S102, when determining the movement parameter information corresponding to the target movement process experienced by the mobile device when moving to the current position, the movement parameter information may include: Based on the pedestrian dead reckoning algorithm, determine the moving distance corresponding to the target moving process experienced by the mobile device when moving to the current position; for the above S104, in the based on the moving parameter information and The multiple estimated pose information optimizes the current predicted pose, and when the current optimized pose is obtained, the method may include: performing an optimization on the current predicted pose based on the moving distance and the multiple estimated pose information. Perform optimization to obtain the current optimized pose.
其中,航位推算(dead reckoning)是一种基于先前确定的位置、估计的速度和流逝的时间段来计算用户的当前位置的典型过程,其可以基于由惯性传感器生成的传感器数据来确定。Among them, dead reckoning is a typical process of calculating the user's current position based on a previously determined position, estimated speed and elapsed time period, which can be determined based on sensor data generated by inertial sensors.
本实施方式中,通过获取移动设备在移动到当前位置时,所经历的目标移动过程对应的移动距离,来恢复视觉里程计的尺度信息,进而实现位姿的优化,提高了视觉定位的精度。In this embodiment, the scale information of the visual odometry is recovered by obtaining the moving distance corresponding to the moving process of the target experienced by the mobile device when it moves to the current position, thereby optimizing the pose and improving the accuracy of visual positioning.
另外,基于行人航位推算法来确定所述目标移动过程对应的所述移动距离,可以简化移动距离的确定过程,提高了移动距离的确定效率,进而提高了位姿优化方法的运算效率。In addition, determining the moving distance corresponding to the target moving process based on the pedestrian dead reckoning algorithm can simplify the process of determining the moving distance, improve the efficiency of determining the moving distance, and further improve the computing efficiency of the pose optimization method.
参见图2所示,基于所述移动距离对所述当前预测位姿进行优化的方法流程图,包括以下S1041~1043:Referring to Fig. 2, the flow chart of the method for optimizing the current predicted pose based on the moving distance includes the following S1041-1043:
S1041,确定目标移动过程对应的移动起始时间和移动结束时间。S1041: Determine the movement start time and the movement end time corresponding to the target movement process.
S1042,根据图像拍摄时间,确定移动起始时间对应的移动初始帧图像和移动结束时 间对应的移动结束帧图像,并分别确定与移动初始帧图像和移动结束帧图像对应的移动初始估计位姿以及移动结束估计位姿。S1042, according to the image capturing time, determine the initial movement frame image corresponding to the movement start time and the movement end frame image corresponding to the movement end time, and respectively determine the movement initial estimated pose corresponding to the movement initial frame image and the movement end frame image and Estimate the pose at the end of the move.
S1043,将移动距离确定为移动初始估计位姿以及移动结束估计位姿之间的距离,并结合多个估计位姿信息,对当前预测位姿进行优化,得到当前优化位姿。S1043 , determining the moving distance as the distance between the initial estimated pose of the movement and the estimated pose of the moving end, and combining a plurality of estimated pose information to optimize the current predicted pose to obtain the current optimized pose.
本公开实施例中,根据图像拍摄时间以及目标移动过程对应的移动起始时间和移动结束时间,确定与所述移动初始帧图像和移动结束帧图像对应的移动初始估计位姿以及移动结束估计位姿,并将所述移动距离确定为所述移动初始估计位姿以及移动结束估计位姿之间的距离,如此使得移动初始估计位姿以及移动结束估计位姿之间得到了距离的约束,进而可以实现对当前预测位姿的优化。In the embodiment of the present disclosure, according to the image capture time and the movement start time and movement end time corresponding to the target movement process, the movement initial estimated pose and the movement end estimated position corresponding to the movement initial frame image and the movement end frame image are determined The movement distance is determined as the distance between the initial estimated pose of the movement and the estimated pose of the end of the movement, so that the distance constraint is obtained between the initial estimated pose of the movement and the estimated pose of the end of the movement, and then The optimization of the current predicted pose can be achieved.
针对上述S102,在基于行人航位推算法,确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的移动距离时,参见图3所示,可以包括以下S1021~1022:。For the above S102, when determining the moving distance corresponding to the target movement process experienced by the mobile device when moving to the current position based on the pedestrian dead reckoning algorithm, referring to FIG. 3, the following S1021 may be included. ~1022:.
S1021,获取移动设备的用户在目标移动过程中的行走步数。S1021: Acquire the number of steps taken by the user of the mobile device during the movement of the target.
S1022,基于行走步数以及用户的步长,确定移动距离。S1022, determining the moving distance based on the number of walking steps and the step length of the user.
示例地,可以基于移动设备上的IMU获取移动设备的用户在所述目标移动过程中的行走步数。比如,加速度计和磁力计之类的板载惯性传感器使得移动计算设备能够对用户的步数进行计数,并通过行人航位推算计算该用户一步运动的距离,即步长。For example, the number of steps taken by the user of the mobile device during the movement of the target may be acquired based on the IMU on the mobile device. For example, onboard inertial sensors such as accelerometers and magnetometers enable mobile computing devices to count a user's steps and calculate the distance the user has moved in one step, ie, step length, through pedestrian dead reckoning.
本公开实施例中,由于利用行人航位推算算法来确定目标移动过程的移动距离,因此只需要精度较低的IMU即可实现,进而可以在提高定位精度的同时降低对IMU精度的要求,使得该方法可以在算力受限场景下(例如,低端手机的小程序上)进行室内导航。In the embodiment of the present disclosure, since the pedestrian dead reckoning algorithm is used to determine the moving distance of the target moving process, only an IMU with lower precision can be used to realize the realization, thereby improving the positioning accuracy and reducing the requirement for the accuracy of the IMU, so that the This method can perform indoor navigation in scenarios with limited computing power (for example, on small programs on low-end mobile phones).
由于行人航位推算法只有当行人完成一步之后才能得到距离信息,行人处于行走一步的过程中时是没有距离信息的,因此导致行人一步之内的几帧图像是缺乏距离的信息约束的,因此,为了进一步提高视觉定位的精度,在另一些实施例中,移动参数还包括移动速度。Since the pedestrian dead reckoning algorithm can obtain the distance information only after the pedestrian completes one step, there is no distance information when the pedestrian is in the process of walking one step, so the few frames of images within one step of the pedestrian are constrained by the lack of distance information, so , in order to further improve the accuracy of visual positioning, in other embodiments, the movement parameter further includes a movement speed.
本实施方式中,针对上述S102,在所述确定所述移动设备在移动到当前位置时,所经历的目标移动过程对应的移动参数信息,还包括:确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动速度;针对上述S104,在基于所述移动距离,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿时,可以包括:基于所述移动距离、所述移动速度,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。In this embodiment, for the above S102, the determining of the movement parameter information corresponding to the target movement process experienced by the mobile device when the mobile device moves to the current position further includes: determining that the mobile device is moving to the current location. position, the moving speed corresponding to the experienced target movement process; for the above S104, the current predicted pose is optimized based on the moving distance and the plurality of estimated pose information, and the obtained When optimizing the current pose, it may include: optimizing the current predicted pose based on the moving distance, the moving speed, and the plurality of estimated pose information to obtain the current optimized pose.
本公开实施例中,在确定移动距离之后还确定移动速度,使得用户行走一步的距离所对应多帧图像的对应估计位姿信息也得到了距离的约束,进而进一步提高了当前预测位姿的优化精度。In the embodiment of the present disclosure, after the moving distance is determined, the moving speed is also determined, so that the corresponding estimated pose information of the multi-frame images corresponding to the distance that the user walks one step is also constrained by the distance, thereby further improving the optimization of the current predicted pose precision.
针对上述S102,在确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动速度时,参见图4所示,可以包括以下S102a~102b:Regarding the above S102, when determining the moving speed corresponding to the target moving process experienced by the mobile device when moving to the current position, referring to FIG. 4, the following S102a-102b may be included:
S102a,获取移动设备的用户的历史运动速度。S102a, acquiring the historical motion speed of the user of the mobile device.
S102b,基于运动模型和历史运动速度预测移动速度。S102b, predicting the movement speed based on the movement model and the historical movement speed.
示例地,可以基于IMU获取移动设备的用户的历史运动速度。其中,运动模型可以是匀速运动模型、也可以是匀加速度运动模型、还可以是更为复杂的运动模型,在此不做限定。For example, the historical motion speed of the user of the mobile device may be acquired based on the IMU. The motion model may be a uniform motion model, a uniform acceleration motion model, or a more complex motion model, which is not limited herein.
如此,根据历史运动速度以及运动模型,可以预测用户在该目标移动过程中的移动速度,再将预测的移动速度也加入到视觉里程计的优化算法,计算得出当前位置的优化位姿信息。也即,根据该预测的移动速度结合用户的行走时间,可以得出在该目标移动过程中的任意两帧图像所对应的尺度信息,进而可以进一步提高视觉定位的精度。In this way, according to the historical movement speed and the movement model, the movement speed of the user during the movement of the target can be predicted, and the predicted movement speed is added to the optimization algorithm of the visual odometry to calculate the optimal pose information of the current position. That is, according to the predicted moving speed combined with the user's walking time, the scale information corresponding to any two frames of images during the movement of the target can be obtained, thereby further improving the accuracy of visual positioning.
需要说明的是,本实施方式中的,历史运动速度是指在该目标移动过程之前的一段时 间的用户的平均运动速度。另外,若基于IMU直接测量用户行走的速度误差会比较大,本实施例中,通过运动模型和历史运动速度来预测该目标过程的移动速度,可以提高参数获取的精度。It should be noted that, in this embodiment, the historical motion speed refers to the average motion speed of the user for a period of time before the target moving process. In addition, if the user's walking speed is directly measured based on the IMU, the error will be relatively large. In this embodiment, the moving speed of the target process is predicted by using the motion model and the historical motion speed, which can improve the accuracy of parameter acquisition.
参见图5所示,为本公开实施例提供的另一种位姿优化方法的流程图,与图1中的位姿优化方法不同的是,该位姿优化方法在步骤S104之后还包括以下S105~S108:Referring to FIG. 5 , which is a flowchart of another pose optimization method provided by an embodiment of the present disclosure, different from the pose optimization method in FIG. 1 , the pose optimization method further includes the following S105 after step S104 ~S108:
S105,判断当前优化位姿的误差是否小于预设阈值;若是,则执行步骤S108;若否,则执行步骤S106。S105, determine whether the error of the current optimized pose is less than a preset threshold; if yes, go to step S108; if not, go to step S106.
可以理解,由于在一些环境(强反光、弱纹理、动态物理)下,视觉里程计难以跟踪,进而会导致当前优化位姿的误差较大,因此需要对当前优化位姿进行判断。例如,可以基于重投影误差来确定当优化位姿的误差是否超过预设阈值,在所述当前优化位姿信息的误差超过预设阈值的情况下,执行步骤S106。It can be understood that in some environments (strong reflection, weak texture, dynamic physics), the visual odometry is difficult to track, which will lead to a large error in the current optimized pose, so it is necessary to judge the current optimized pose. For example, it may be determined based on the reprojection error whether the error of the optimized pose exceeds a preset threshold, and if the error of the current optimized pose information exceeds the preset threshold, step S106 is performed.
S106,获取移动设备的当前预测速度以及当前朝向。S106: Obtain the current predicted speed and the current orientation of the mobile device.
其中,当前预测速度的预测方法与前述移动速度的预测方法相同,当需要说明的是,此时的历史运动速度为当前时刻之前的一段时间的用户运动的平均速度,也即,虽然预测的方法相同,但由于用户在不同时间段的历史运动速度不同,因此,得到的预测速度也不同。另外,当前朝向可以通过IMU测量获取。Among them, the prediction method of the current predicted speed is the same as the prediction method of the aforementioned movement speed. It should be noted that the historical movement speed at this time is the average speed of the user's movement for a period of time before the current moment, that is, although the prediction method The same, but because the historical movement speed of the user in different time periods is different, the obtained predicted speed is also different. In addition, the current heading can be obtained through IMU measurement.
S107,基于当前优化位姿、当前预测速度以及当前朝向,确定移动设备的实时位姿信息。S107: Determine real-time pose information of the mobile device based on the current optimized pose, the current predicted speed, and the current orientation.
在所述当前优化位姿的误差超过预设阈值的情况下,也即,在视觉跟踪比较差的情况,可以基于当前优化位姿,直接采用当前预测速度和当前朝向进行继续跟踪一段时间,直到当前优化位姿的误差小于预设阈值。When the error of the current optimized pose exceeds the preset threshold, that is, in the case of poor visual tracking, the current predicted speed and the current orientation can be directly used based on the current optimized pose to continue tracking for a period of time until The error of the current optimized pose is less than the preset threshold.
如此,在视觉里程计难以定位的场景下,通过行人航位信息仍然能够得到粗略的导航定位结果,提高了该方法的适用性。In this way, in the scene where the visual odometer is difficult to locate, a rough navigation and positioning result can still be obtained through the pedestrian dead position information, which improves the applicability of the method.
S108,基于当前优化位姿(或实时位姿信息)、用户输入的目的地以及存储的地图,规划导航线路,并在地图上展示导航线路。S108 , based on the current optimized pose (or real-time pose information), the destination input by the user, and the stored map, plan a navigation route, and display the navigation route on the map.
在本公开实施例中,可以响应用户的目的地输入请求,在所述地图中确定所述目的地的位置信息;然后基于当前优化位姿、以及所述目的地的位置信息,确定所述当前优化位姿与所述目的地之间的至少一条连接线路;最后在所述地图中展示所述至少一条连接线路。In this embodiment of the present disclosure, in response to a user's destination input request, the location information of the destination may be determined in the map; and then the current optimized pose and location information of the destination may be determined based on the current At least one connecting line between the pose and the destination is optimized; finally, the at least one connecting line is displayed in the map.
本公开实施例中,可以基于当前优化位姿、用户输入的目的地以及地图,进行线路规划,使得即使在室内环境下,也能为用户提供较为精确的导航功能,提高了用户体验。另外,在线路规划过程中,首先在地图中确定用户输入的目的地信息,然后根据当前优化位姿以及所述目的地的位置信息,规划出至少一条连接线路,并在所述地图中展示所述至少一条连接线路,如此可以为用户提供多的选择,使得用户可以根据实际情况从多条线路中,选择一条进行导航,进而提高了导航线路的适用性。In the embodiment of the present disclosure, route planning can be performed based on the current optimized pose, the destination input by the user, and the map, so that even in an indoor environment, a more accurate navigation function can be provided for the user, and the user experience can be improved. In addition, in the route planning process, the destination information input by the user is first determined in the map, and then at least one connecting route is planned according to the current optimized pose and the location information of the destination, and all the routes are displayed on the map. The at least one connection line is described, so that more choices can be provided for the user, so that the user can select one of the multiple lines for navigation according to the actual situation, thereby improving the applicability of the navigation line.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.
基于同一技术构思,本公开实施例中还提供了与位姿优化方法对应的位姿优化装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述位姿优化方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same technical concept, the embodiments of the present disclosure also provide a pose optimization device corresponding to the pose optimization method. For the implementation of the apparatus, reference may be made to the implementation of the method, and the repetition will not be repeated.
参照图6所示,为本公开实施例提供的一种位姿优化装置500的示意图,该位姿优化装置500包括:Referring to FIG. 6 , which is a schematic diagram of a pose optimization apparatus 500 according to an embodiment of the present disclosure, the pose optimization apparatus 500 includes:
位姿估计部分501,配置为基于移动设备拍摄的第一图像,确定所述移动设备的当前 预测位姿;所述第一图像包括所述移动设备处于当前位置时拍摄的当前帧图像以及所述移动设备处于所述当前位置之前的起始位置时拍摄的起始帧图像;The pose estimation part 501 is configured to determine the current predicted pose of the mobile device based on a first image captured by the mobile device; the first image includes the current frame image captured when the mobile device is in the current position and the The initial frame image taken when the mobile device is at the initial position before the current position;
参数确定部分502,配置为确定所述移动设备在移动到所述当前位置时,所经历的目标移动过程对应的移动参数信息;所述目标移动过程位于所述起始位置与所述当前位置之间;The parameter determination part 502 is configured to determine the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position; the target movement process is located between the starting position and the current position. between;
位姿获取部分503,配置为获取所述移动设备的多个估计位姿信息,所述多个估计位姿信息包括所述起始帧图像对应的估计位姿信息、所述当前帧图像对应的估计位姿信息以及所述起始帧图像和所述当前帧图像之间的多帧图像分别对应的估计位姿信息;The pose obtaining part 503 is configured to obtain a plurality of estimated pose information of the mobile device, the plurality of estimated pose information includes the estimated pose information corresponding to the starting frame image, the estimated pose information corresponding to the current frame image Estimated pose information and estimated pose information respectively corresponding to multiple frames between the initial frame image and the current frame image;
位姿优化部分504,配置为基于所述移动参数信息以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到当前优化位姿。The pose optimization part 504 is configured to optimize the current predicted pose based on the movement parameter information and the plurality of estimated pose information to obtain a current optimized pose.
在一些实施例中,所述移动参数信息包括移动距离;In some embodiments, the movement parameter information includes movement distance;
所述参数确定部分502,配置为:The parameter determination part 502 is configured as:
基于行人航位推算法,确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动距离;Determine, based on the pedestrian dead reckoning algorithm, the moving distance corresponding to the moving process of the target experienced by the mobile device when it moves to the current position;
所述位姿优化部分504,配置为:The pose optimization part 504 is configured as:
基于所述移动距离,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。The current predicted pose is optimized based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose.
在一些实施例中,位姿优化部分504,配置为:In some embodiments, the pose optimization section 504 is configured to:
确定所述目标移动过程对应的移动起始时间和移动结束时间;Determine the movement start time and movement end time corresponding to the target movement process;
根据图像拍摄时间,确定所述移动起始时间对应的移动初始帧图像和所述移动结束时间对应的移动结束帧图像,并分别确定与所述移动初始帧图像和移动结束帧图像对应的移动初始估计位姿以及移动结束估计位姿;According to the image capturing time, the initial moving frame image corresponding to the moving start time and the moving ending frame image corresponding to the moving ending time are determined, and the moving initial frame image corresponding to the moving initial frame image and the moving ending frame image are respectively determined. Estimated pose and estimated pose at the end of the move;
将所述移动距离确定为所述移动初始估计位姿以及移动结束估计位姿之间的距离,并结合所述多个估计位姿信息,对所述当前预测位姿进行优化,得到所述当前优化位姿。Determining the moving distance as the distance between the initial estimated pose of the movement and the estimated pose at the end of the movement, and combining the multiple estimated pose information, optimize the current predicted pose to obtain the current Optimize the pose.
在一些实施例中,参数确定部分502,配置为:In some embodiments, the parameter determination section 502 is configured to:
获取所述移动设备的用户在所述目标移动过程中的行走步数;Obtain the number of steps taken by the user of the mobile device during the movement of the target;
基于所述行走步数以及所述用户的步长,确定所述移动距离。The moving distance is determined based on the number of walking steps and the step length of the user.
在一些实施例中,所述移动参数信息还包括移动速度;In some embodiments, the movement parameter information further includes movement speed;
所述参数确定部分502,还配置为:The parameter determination part 502 is further configured to:
确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动速度;determining the movement speed corresponding to the target movement process experienced by the mobile device when it moves to the current position;
所述位姿优化部分504,配置为:The pose optimization part 504 is configured as:
基于所述移动距离、所述移动速度,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。The current predicted pose is optimized based on the moving distance, the moving speed, and the plurality of estimated pose information to obtain the current optimized pose.
在一些实施例中,参数确定部分502,配置为:In some embodiments, the parameter determination section 502 is configured to:
获取所述移动设备的用户的历史运动速度;Obtain the historical motion speed of the user of the mobile device;
基于运动模型和所述历史运动速度预测所述移动速度。The movement speed is predicted based on a movement model and the historical movement speed.
在一些实施例中,所述位姿优化部分504,还配置为:In some embodiments, the pose optimization part 504 is further configured to:
判断所述当前优化位姿的误差是否小于预设阈值;judging whether the error of the current optimized pose is less than a preset threshold;
在所述当前优化位姿的误差超过所述预设阈值的情况下,获取所述移动设备的当前预测速度以及当前朝向;When the error of the current optimized pose exceeds the preset threshold, acquiring the current predicted speed and current orientation of the mobile device;
基于所述当前优化位姿、所述当前预测速度以及所述当前朝向,确定所述移动设备的实时位姿信息。Based on the current optimized pose, the current predicted velocity, and the current orientation, real-time pose information of the mobile device is determined.
在一些实施例中,参见图7所示,所述位姿优化装置500还包括线路规划部分505, 所述线路规划部分505,配置为:In some embodiments, as shown in FIG. 7 , the pose optimization apparatus 500 further includes a route planning part 505, and the route planning part 505 is configured as:
基于所述当前优化位姿、用户输入的目的地以及存储的地图,规划导航线路,并在所述地图上展示所述导航线路。Based on the current optimized pose, the destination input by the user, and the stored map, a navigation route is planned, and the navigation route is displayed on the map.
在一些实施例中,线路规划部分505,配置为:In some embodiments, the route planning section 505 is configured to:
响应所述用户出入的目的地输入请求,在所述地图中确定所述目的地的位置信息;determining the location information of the destination in the map in response to the destination input request of the user entering and leaving;
基于所述当前优化位姿、以及所述目的地的位置信息,确定所述当前优化位姿与所述目的地之间的至少一条连接线路;Based on the current optimized pose and the location information of the destination, determining at least one connection line between the current optimized pose and the destination;
在所述地图中展示所述至少一条连接线路。The at least one connection line is displayed in the map.
关于装置中的各部分的处理流程、以及各部分之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each part in the apparatus and the interaction flow between the various parts, reference may be made to the relevant descriptions in the foregoing method embodiments, which will not be described in detail here.
基于同一技术构思,本公开实施例还提供了一种电子设备。参照图8所示,为本公开实施例提供的电子设备700的结构示意图,包括处理器701、存储器702、和总线703。其中,存储器702用于存储执行指令,包括内存7021和外部存储器7022;这里的内存7021也称内存储器,用于暂时存放处理器701中的运算数据,以及与硬盘等外部存储器7022交换的数据,处理器701通过内存7021与外部存储器7022进行数据交换。Based on the same technical concept, an embodiment of the present disclosure also provides an electronic device. Referring to FIG. 8 , a schematic structural diagram of an electronic device 700 provided by an embodiment of the present disclosure includes a processor 701 , a memory 702 , and a bus 703 . Among them, the memory 702 is used to store the execution instructions, including the memory 7021 and the external memory 7022; the memory 7021 here is also called the internal memory, which is used to temporarily store the operation data in the processor 701 and the data exchanged with the external memory 7022 such as the hard disk, The processor 701 exchanges data with the external memory 7022 through the memory 7021 .
本申请实施例中,存储器702具体用于存储执行本申请方案的应用程序代码,并由处理器701来控制执行。也即,当电子设备700运行时,处理器701与存储器702之间通过总线703通信,使得处理器701执行存储器702中存储的应用程序代码,进而执行前述任一实施例中所述的方法。In this embodiment of the present application, the memory 702 is specifically used to store the application program code for executing the solution of the present application, and the execution is controlled by the processor 701 . That is, when the electronic device 700 is running, the processor 701 communicates with the memory 702 through the bus 703, so that the processor 701 executes the application code stored in the memory 702, thereby executing the method described in any of the foregoing embodiments.
其中,存储器702可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。The memory 702 may be, but not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), or Erasable Programmable Read-Only Memory (EPROM), Electrical Erasable Programmable Read-Only Memory (EEPROM), etc.
处理器701可能是一种集成电路芯片,具有信号的处理能力。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 701 may be an integrated circuit chip with signal processing capability. The above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC) , Field Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
可以理解的是,本申请实施例示意的结构并不构成对电子设备700的具体限定。在本申请另一些实施例中,电子设备700可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 700 . In other embodiments of the present application, the electronic device 700 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中的位姿优化方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the pose optimization method in the foregoing method embodiments are executed. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.
本公开实施例还提供一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行配置为实现上述位姿优化方法的步骤。Embodiments of the present disclosure also provide a computer program, including computer-readable code, when the computer-readable code is executed in an electronic device, a processor in the electronic device executes the steps configured to implement the above-mentioned pose optimization method .
本公开实施例还提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中的位姿优化方法的步骤,具体可参见上述方法实施例,在此不再赘述。Embodiments of the present disclosure further provide a computer program product, where the computer program product carries program codes, and the instructions included in the program codes can be used to execute the steps of the pose optimization method in the foregoing method embodiments. For details, please refer to the foregoing method implementation. For example, it will not be repeated here.
其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可 选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product can be specifically implemented by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system and device described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided by the present disclosure, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. The apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium. Based on such understanding, the technical solutions of the present disclosure can be embodied in the form of software products in essence, or the parts that contribute to the prior art or the parts of the technical solutions. The computer software products are stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present disclosure, and are used to illustrate the technical solutions of the present disclosure rather than limit them. The protection scope of the present disclosure is not limited thereto, although referring to the foregoing The embodiments describe the present disclosure in detail. Those of ordinary skill in the art should understand that: any person skilled in the art can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed by the present disclosure. Changes can be easily thought of, or equivalent replacements are made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be covered in the present disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
工业实用性Industrial Applicability
本公开实施例中,通过基于移动设备拍摄的第一图像,确定移动设备的当前预测位姿;第一图像包括移动设备处于当前位置时拍摄的当前帧图像以及移动设备处于当前位置之前的起始位置时拍摄的起始帧图像;确定移动设备在移动到当前位置时,所经历的目标移动过程对应的移动参数信息;获取移动设备的多个估计位姿信息,多个估计位姿信息包括起始帧图像及当前帧图像分别对应的估计位姿信息以及起始帧图像和当前帧图像之间的多帧图像分别对应的估计位姿信息;基于移动参数信息以及多个估计位姿信息对当前预测位姿进行优化,得到当前优化位姿,进一步提高了视觉定位的精度。In this embodiment of the present disclosure, the current predicted pose of the mobile device is determined based on a first image captured by the mobile device; the first image includes a current frame image captured when the mobile device is at the current position and a start before the mobile device is at the current position The initial frame image captured when the mobile device moves to the current position; determine the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position; obtain multiple estimated pose information of the mobile device, and the multiple estimated pose information includes the starting frame. The estimated pose information corresponding to the initial frame image and the current frame image respectively, and the estimated pose information corresponding to the multi-frame images between the initial frame image and the current frame image respectively; based on the movement parameter information and multiple estimated pose information, the current The predicted pose is optimized to obtain the current optimized pose, which further improves the accuracy of visual positioning.

Claims (22)

  1. 一种位姿优化方法,包括:A pose optimization method, including:
    基于移动设备拍摄的第一图像,确定所述移动设备的当前预测位姿;所述第一图像包括所述移动设备处于当前位置时拍摄的当前帧图像以及所述移动设备处于所述当前位置之前的起始位置时拍摄的起始帧图像;Determine the current predicted pose of the mobile device based on the first image captured by the mobile device; the first image includes the current frame image captured when the mobile device is at the current position and before the mobile device is at the current position The starting frame image taken when the starting position is ;
    确定所述移动设备在移动到所述当前位置时,所经历的目标移动过程对应的移动参数信息;所述目标移动过程位于所述起始位置与所述当前位置之间;Determine the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position; the target movement process is located between the starting position and the current position;
    获取所述移动设备的多个估计位姿信息,所述多个估计位姿信息包括所述起始帧图像对应的估计位姿信息、所述当前帧图像对应的估计位姿信息以及所述起始帧图像和所述当前帧图像之间的多帧图像分别对应的估计位姿信息;Acquire multiple pieces of estimated pose information of the mobile device, where the pieces of estimated pose information include estimated pose information corresponding to the starting frame image, estimated pose information corresponding to the current frame image, and the starting frame image. The estimated pose information corresponding to the multi-frame images between the initial frame image and the current frame image respectively;
    基于所述移动参数信息以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到当前优化位姿。The current predicted pose is optimized based on the movement parameter information and the plurality of estimated pose information to obtain a current optimized pose.
  2. 根据权利要求1所述的方法,其中,所述移动参数信息包括移动距离;The method of claim 1, wherein the movement parameter information includes a movement distance;
    所述确定所述移动设备在移动到当前位置时,所经历的目标移动过程对应的移动参数信息,包括:The determining of the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position includes:
    基于行人航位推算法,确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动距离;Determine, based on the pedestrian dead reckoning algorithm, the moving distance corresponding to the moving process of the target experienced by the mobile device when it moves to the current position;
    所述基于所述移动参数信息以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到当前优化位姿,包括:The current predicted pose is optimized based on the movement parameter information and the plurality of estimated pose information to obtain the current optimized pose, including:
    基于所述移动距离,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。The current predicted pose is optimized based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose.
  3. 根据权利要求2所述的方法,其中,所述基于所述移动距离,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿,包括:The method according to claim 2, wherein the optimizing the current predicted pose based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose comprises:
    确定所述目标移动过程对应的移动起始时间和移动结束时间;Determine the movement start time and movement end time corresponding to the target movement process;
    根据图像拍摄时间,确定所述移动起始时间对应的移动初始帧图像和所述移动结束时间对应的移动结束帧图像,并分别确定与所述移动初始帧图像和移动结束帧图像对应的移动初始估计位姿以及移动结束估计位姿;According to the image capturing time, the initial moving frame image corresponding to the moving start time and the moving ending frame image corresponding to the moving ending time are determined, and the moving initial frame image corresponding to the moving initial frame image and the moving ending frame image are respectively determined. Estimate the pose and the estimated pose at the end of the move;
    将所述移动距离确定为所述移动初始估计位姿以及移动结束估计位姿之间的距离,并结合所述多个估计位姿信息,对所述当前预测位姿进行优化,得到所述当前优化位姿。Determining the moving distance as the distance between the initial estimated pose of the movement and the estimated pose at the end of the movement, and combining the multiple estimated pose information, optimize the current predicted pose to obtain the current Optimize the pose.
  4. 根据权利要求2或3所述的方法,其中,所述基于行人航位推算法,确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的移动距离,包括:The method according to claim 2 or 3, wherein the determining, based on the pedestrian dead reckoning algorithm, determines the moving distance corresponding to the moving process of the target experienced by the mobile device when moving to the current position, comprising: :
    获取所述移动设备的用户在所述目标移动过程中的行走步数;Obtain the number of steps taken by the user of the mobile device during the movement of the target;
    基于所述行走步数以及所述用户的步长,确定所述移动距离。The moving distance is determined based on the number of walking steps and the step length of the user.
  5. 根据权利要求2-4任一所述的方法,其中,所述移动参数信息还包括移动速度;The method according to any one of claims 2-4, wherein the movement parameter information further comprises a movement speed;
    所述确定所述移动设备在移动到当前位置时,所经历的目标移动过程对应的移动参数信息,还包括:The determining of the movement parameter information corresponding to the target movement process experienced by the mobile device when it moves to the current position further includes:
    确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动速度;determining the movement speed corresponding to the target movement process experienced by the mobile device when it moves to the current position;
    所述基于所述移动距离,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿,包括:The optimizing the current predicted pose based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose includes:
    基于所述移动距离、所述移动速度,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。The current predicted pose is optimized based on the moving distance, the moving speed, and the plurality of estimated pose information to obtain the current optimized pose.
  6. 根据权利要求5所述的方法,其中,所述确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动速度,包括:The method according to claim 5, wherein the determining the moving speed corresponding to the target moving process experienced by the mobile device when moving to the current position comprises:
    获取所述移动设备的用户的历史运动速度;Obtain the historical motion speed of the user of the mobile device;
    基于运动模型和所述历史运动速度预测所述移动速度。The movement speed is predicted based on a movement model and the historical movement speed.
  7. 根据权利要求1-6任一项所述的方法,其中,在得到所述当前优化位姿之后,所述方法还包括:The method according to any one of claims 1-6, wherein after obtaining the current optimized pose, the method further comprises:
    判断所述当前优化位姿的误差是否小于预设阈值;judging whether the error of the current optimized pose is less than a preset threshold;
    在所述当前优化位姿的误差超过所述预设阈值的情况下,获取所述移动设备的当前预测速度以及当前朝向;When the error of the current optimized pose exceeds the preset threshold, acquiring the current predicted speed and current orientation of the mobile device;
    基于所述当前优化位姿、所述当前预测速度以及所述当前朝向,确定所述移动设备的实时位姿信息。Based on the current optimized pose, the current predicted velocity, and the current orientation, real-time pose information of the mobile device is determined.
  8. 根据权利要求1-7任一项所述的方法,其中,在得到所述当前优化位姿之后,所述方法还包括:The method according to any one of claims 1-7, wherein after obtaining the current optimized pose, the method further comprises:
    基于所述当前优化位姿、用户输入的目的地以及存储的地图,规划导航线路,并在所述地图上展示所述导航线路。Based on the current optimized pose, the destination input by the user, and the stored map, a navigation route is planned, and the navigation route is displayed on the map.
  9. 根据权利要求8所述的方法,其中,所述基于所述当前优化位姿、用户输入的目的地以及存储的地图,规划导航线路,并在所述地图上展示所述导航线路,包括:The method according to claim 8, wherein the planning of a navigation route based on the current optimized pose, a destination input by the user and a stored map, and displaying the navigation route on the map, comprises:
    响应所述用户出入的目的地输入请求,在所述地图中确定所述目的地的位置信息;determining the location information of the destination in the map in response to the destination input request of the user entering and leaving;
    基于所述当前优化位姿、以及所述目的地的位置信息,确定所述当前优化位姿与所述目的地之间的至少一条连接线路;Based on the current optimized pose and the location information of the destination, determining at least one connection line between the current optimized pose and the destination;
    在所述地图中展示所述至少一条连接线路。The at least one connection line is displayed in the map.
  10. 一种位姿优化装置,包括:A pose optimization device, comprising:
    位姿估计部分,配置为基于移动设备拍摄的第一图像,确定所述移动设备的当前预测位姿;所述第一图像包括所述移动设备处于当前位置时拍摄的当前帧图像以及所述移动设备处于所述当前位置之前的起始位置时拍摄的起始帧图像;The pose estimation part is configured to determine the current predicted pose of the mobile device based on the first image captured by the mobile device; the first image includes the current frame image captured when the mobile device is at the current position and the movement The starting frame image taken when the device is at the starting position before the current position;
    参数确定部分,配置为确定所述移动设备在移动到所述当前位置时,所经历的目标移动过程对应的移动参数信息;所述目标移动过程位于所述起始位置与所述当前位置之间;A parameter determination part, configured to determine movement parameter information corresponding to a target movement process experienced by the mobile device when moving to the current position; the target movement process is located between the starting position and the current position ;
    位姿获取部分,配置为获取所述移动设备的多个估计位姿信息,所述多个估计位姿信息包括所述起始帧图像对应的估计位姿信息、所述当前帧图像对应的估计位姿信息以及所述起始帧图像和所述当前帧图像之间的多帧图像分别对应的估计位姿信息;a pose acquisition part, configured to obtain a plurality of estimated pose information of the mobile device, the plurality of estimated pose information including the estimated pose information corresponding to the starting frame image, the estimated pose information corresponding to the current frame image pose information and estimated pose information respectively corresponding to the multi-frame images between the initial frame image and the current frame image;
    位姿优化部分,配置为基于所述移动参数信息以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到当前优化位姿。The pose optimization part is configured to optimize the current predicted pose based on the movement parameter information and the plurality of estimated pose information to obtain the current optimized pose.
  11. 根据权利要求10所述的位姿优化装置,其中,所述移动参数信息包括移动距离;The pose optimization apparatus according to claim 10, wherein the movement parameter information includes a movement distance;
    所述参数确定部分,配置为基于行人航位推算法,确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动距离;The parameter determination part is configured to determine the moving distance corresponding to the target moving process experienced by the mobile device when moving to the current position based on a pedestrian dead reckoning algorithm;
    所述位姿优化部分,配置为基于所述移动距离,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。The pose optimization part is configured to optimize the current predicted pose based on the moving distance and the plurality of estimated pose information to obtain the current optimized pose.
  12. 根据权利要求11所述的位姿优化装置,其中,The pose optimization device according to claim 11, wherein,
    所述位姿优化部分,配置为确定所述目标移动过程对应的移动起始时间和移动结束时间;以及根据图像拍摄时间,确定所述移动起始时间对应的移动初始帧图像和所述移动结束时间对应的移动结束帧图像,并分别确定与所述移动初始帧图像和移动结束帧图像对应的移动初始估计位姿以及移动结束估计位姿;以及将所述移动距离确定为所述移动初始估计位姿以及移动结束估计位姿之间的距离,并结合所述多个估计位姿信息,对所述当前预测位姿进行优化,得到所述当前优化位姿。The pose optimization part is configured to determine the movement start time and movement end time corresponding to the target movement process; and according to the image capture time, determine the movement initial frame image corresponding to the movement start time and the movement end time The movement end frame image corresponding to the time, and respectively determine the movement initial estimation pose and the movement end estimation pose corresponding to the movement initial frame image and the movement end frame image; and determine the movement distance as the movement initial estimation The distance between the pose and the estimated pose at the end of the movement, and combined with the plurality of estimated pose information, the current predicted pose is optimized to obtain the current optimized pose.
  13. 根据权利要求11或12所述的位姿优化装置,其中,The pose optimization device according to claim 11 or 12, wherein,
    所述参数确定部分,配置为获取所述移动设备的用户在所述目标移动过程中的行走步数;以及基于所述行走步数以及所述用户的步长,确定所述移动距离。The parameter determination part is configured to acquire the number of steps taken by the user of the mobile device during the movement of the target; and determine the moving distance based on the number of steps taken and the step length of the user.
  14. 根据权利要求11至13任一项所述的位姿优化装置,其中,所述移动参数信息还包括移动速度;The pose optimization device according to any one of claims 11 to 13, wherein the movement parameter information further includes a movement speed;
    所述参数确定部分,配置为确定所述移动设备在移动到所述当前位置时,所经历的所述目标移动过程对应的所述移动速度;The parameter determination part is configured to determine the movement speed corresponding to the target movement process experienced by the mobile device when it moves to the current position;
    所述位姿优化部分,配置为基于所述移动距离、所述移动速度,以及所述多个估计位姿信息对所述当前预测位姿进行优化,得到所述当前优化位姿。The pose optimization part is configured to optimize the current predicted pose based on the moving distance, the moving speed, and the plurality of estimated pose information to obtain the current optimized pose.
  15. 根据权利要求14所述的位姿优化装置,其中,The pose optimization device according to claim 14, wherein,
    所述参数确定部分,配置为获取所述移动设备的用户的历史运动速度;基于运动模型和所述历史运动速度预测所述移动速度。The parameter determination part is configured to acquire the historical movement speed of the user of the mobile device; and predict the movement speed based on the movement model and the historical movement speed.
  16. 根据权利要求10至15任一项所述的位姿优化装置,其中,The pose optimization device according to any one of claims 10 to 15, wherein,
    所述位姿优化部分,配置为判断所述当前优化位姿的误差是否小于预设阈值;以及在所述当前优化位姿的误差超过所述预设阈值的情况下,获取所述移动设备的当前预测速度以及当前朝向;以及基于所述当前优化位姿、所述当前预测速度以及所述当前朝向,确定所述移动设备的实时位姿信息。The pose optimization part is configured to judge whether the error of the current optimized pose is less than a preset threshold; and in the case that the error of the current optimized pose exceeds the preset threshold, obtain the information of the mobile device. a current predicted speed and a current orientation; and determining real-time pose information of the mobile device based on the current optimized pose, the current predicted speed, and the current orientation.
  17. 根据权利要求10至16任一项所述的位姿优化装置,其中,所述位姿优化装置还包括:The pose optimization device according to any one of claims 10 to 16, wherein the pose optimization device further comprises:
    线路规划部分,配置为:基于所述当前优化位姿、用户输入的目的地以及存储的地图,规划导航线路,并在所述地图上展示所述导航线路。The route planning part is configured to: plan a navigation route based on the current optimized pose, the destination input by the user and the stored map, and display the navigation route on the map.
  18. 根据权利要求17所述的位姿优化装置,其中,The pose optimization device according to claim 17, wherein,
    所述线路规划部分,配置为响应所述用户出入的目的地输入请求,在所述地图中确定所述目的地的位置信息;以及基于所述当前优化位姿、以及所述目的地的位置信息,确定所述当前优化位姿与所述目的地之间的至少一条连接线路;以及在所述地图中展示所述至少一条连接线路。The route planning part is configured to determine the location information of the destination in the map in response to a destination input request of the user entering and leaving; and based on the current optimized pose and the location information of the destination , determining at least one connecting line between the current optimized pose and the destination; and displaying the at least one connecting line in the map.
  19. 一种电子设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如权利要求1-9任一所述的位姿优化方法。An electronic device, comprising: a processor, a memory and a bus, the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus , when the machine-readable instructions are executed by the processor, the pose optimization method according to any one of claims 1-9 is executed.
  20. 一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如权利要求1-9任一所述的位姿优化方法。A computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the pose optimization method according to any one of claims 1-9 is executed.
  21. 一种计算机程序,包括计算机可读代码,在所述计算机可读代码在电子设备中运行,被所述电子设备中的处理器执行的情况下,实现权利要求1至9任一项所述的位姿优 化方法。A computer program, comprising computer-readable codes, in the case that the computer-readable codes are run in an electronic device and executed by a processor in the electronic device, to implement the method described in any one of claims 1 to 9 Pose optimization method.
  22. 一种计算机程序产品,当其在计算机上运行时,使得计算机执行如权利要求1至9任一项所述的位姿优化方法。A computer program product, when running on a computer, causes the computer to execute the pose optimization method of any one of claims 1 to 9.
PCT/CN2021/106997 2021-03-16 2021-07-19 Method and apparatus for posture optimization, electronic device, computer-readable storage medium, computer program, and program product WO2022193508A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110279737.1 2021-03-16
CN202110279737.1A CN113034594A (en) 2021-03-16 2021-03-16 Pose optimization method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022193508A1 true WO2022193508A1 (en) 2022-09-22

Family

ID=76470723

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/106997 WO2022193508A1 (en) 2021-03-16 2021-07-19 Method and apparatus for posture optimization, electronic device, computer-readable storage medium, computer program, and program product

Country Status (2)

Country Link
CN (1) CN113034594A (en)
WO (1) WO2022193508A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117109603A (en) * 2023-02-22 2023-11-24 荣耀终端有限公司 POI updating method and navigation server
CN117471513A (en) * 2023-12-26 2024-01-30 合众新能源汽车股份有限公司 Vehicle positioning method, positioning device, electronic equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113034594A (en) * 2021-03-16 2021-06-25 浙江商汤科技开发有限公司 Pose optimization method and device, electronic equipment and storage medium
CN113342055A (en) * 2021-06-30 2021-09-03 广州极飞科技股份有限公司 Unmanned aerial vehicle flight control method and device, electronic equipment and storage medium
CN113658260A (en) * 2021-07-12 2021-11-16 南方科技大学 Robot pose calculation method and system, robot and storage medium
CN114565728A (en) * 2022-02-09 2022-05-31 浙江商汤科技开发有限公司 Map construction method, pose determination method, related device and equipment
CN115937305A (en) * 2022-06-28 2023-04-07 北京字跳网络技术有限公司 Image processing method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109544630A (en) * 2018-11-30 2019-03-29 南京人工智能高等研究院有限公司 Posture information determines method and apparatus, vision point cloud construction method and device
CN110084832A (en) * 2019-04-25 2019-08-02 亮风台(上海)信息科技有限公司 Correcting method, device, system, equipment and the storage medium of camera pose
CN110264509A (en) * 2018-04-27 2019-09-20 腾讯科技(深圳)有限公司 Determine the method, apparatus and its storage medium of the pose of image-capturing apparatus
CN110322500A (en) * 2019-06-28 2019-10-11 Oppo广东移动通信有限公司 Immediately optimization method and device, medium and the electronic equipment of positioning and map structuring
CN112204946A (en) * 2019-10-28 2021-01-08 深圳市大疆创新科技有限公司 Data processing method, device, movable platform and computer readable storage medium
CN113034594A (en) * 2021-03-16 2021-06-25 浙江商汤科技开发有限公司 Pose optimization method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110631554B (en) * 2018-06-22 2021-11-30 北京京东乾石科技有限公司 Robot posture determining method and device, robot and readable storage medium
CN111489393B (en) * 2019-01-28 2023-06-02 速感科技(北京)有限公司 VSLAM method, controller and mobile device
CN110246147B (en) * 2019-05-14 2023-04-07 中国科学院深圳先进技术研究院 Visual inertial odometer method, visual inertial odometer device and mobile equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110264509A (en) * 2018-04-27 2019-09-20 腾讯科技(深圳)有限公司 Determine the method, apparatus and its storage medium of the pose of image-capturing apparatus
CN109544630A (en) * 2018-11-30 2019-03-29 南京人工智能高等研究院有限公司 Posture information determines method and apparatus, vision point cloud construction method and device
CN110084832A (en) * 2019-04-25 2019-08-02 亮风台(上海)信息科技有限公司 Correcting method, device, system, equipment and the storage medium of camera pose
CN110322500A (en) * 2019-06-28 2019-10-11 Oppo广东移动通信有限公司 Immediately optimization method and device, medium and the electronic equipment of positioning and map structuring
CN112204946A (en) * 2019-10-28 2021-01-08 深圳市大疆创新科技有限公司 Data processing method, device, movable platform and computer readable storage medium
CN113034594A (en) * 2021-03-16 2021-06-25 浙江商汤科技开发有限公司 Pose optimization method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117109603A (en) * 2023-02-22 2023-11-24 荣耀终端有限公司 POI updating method and navigation server
CN117471513A (en) * 2023-12-26 2024-01-30 合众新能源汽车股份有限公司 Vehicle positioning method, positioning device, electronic equipment and storage medium
CN117471513B (en) * 2023-12-26 2024-03-15 合众新能源汽车股份有限公司 Vehicle positioning method, positioning device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113034594A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
WO2022193508A1 (en) Method and apparatus for posture optimization, electronic device, computer-readable storage medium, computer program, and program product
US20210012520A1 (en) Distance measuring method and device
US20210190497A1 (en) Simultaneous location and mapping (slam) using dual event cameras
CN107990899B (en) Positioning method and system based on SLAM
CN109887057B (en) Method and device for generating high-precision map
CN110084832B (en) Method, device, system, equipment and storage medium for correcting camera pose
JP6434513B2 (en) Inertial navigation based on vision
CN112652016B (en) Point cloud prediction model generation method, pose estimation method and pose estimation device
JP5987823B2 (en) Method and system for fusing data originating from image sensors and motion or position sensors
CN107748569B (en) Motion control method and device for unmanned aerial vehicle and unmanned aerial vehicle system
KR20220028042A (en) Pose determination method, apparatus, electronic device, storage medium and program
US20210183100A1 (en) Data processing method and apparatus
CN110553648A (en) method and system for indoor navigation
WO2015134795A2 (en) Method and system for 3d capture based on structure from motion with pose detection tool
JP6321202B2 (en) Method, apparatus and system for determining movement of a mobile platform
US20180075614A1 (en) Method of Depth Estimation Using a Camera and Inertial Sensor
WO2022062480A1 (en) Positioning method and positioning apparatus of mobile device
CN113610702B (en) Picture construction method and device, electronic equipment and storage medium
JP2023503750A (en) ROBOT POSITIONING METHOD AND DEVICE, DEVICE, STORAGE MEDIUM
Irmisch et al. Simulation framework for a visual-inertial navigation system
Huai et al. Segway DRIVE benchmark: Place recognition and SLAM data collected by a fleet of delivery robots
CN116958452A (en) Three-dimensional reconstruction method and system
EP3392748B1 (en) System and method for position tracking in a virtual reality system
JP2021047024A (en) Estimation device, estimation method, and program
CN113379850B (en) Mobile robot control method, device, mobile robot and storage medium

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: 21931086

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: 21931086

Country of ref document: EP

Kind code of ref document: A1