TW202242806A - Processing method and interface system equipment and computer readable storage medium of pose date - Google Patents

Processing method and interface system equipment and computer readable storage medium of pose date Download PDF

Info

Publication number
TW202242806A
TW202242806A TW110147055A TW110147055A TW202242806A TW 202242806 A TW202242806 A TW 202242806A TW 110147055 A TW110147055 A TW 110147055A TW 110147055 A TW110147055 A TW 110147055A TW 202242806 A TW202242806 A TW 202242806A
Authority
TW
Taiwan
Prior art keywords
pose data
identification information
current
optimized
data set
Prior art date
Application number
TW110147055A
Other languages
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 TW202242806A publication Critical patent/TW202242806A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Graphics (AREA)
  • General Engineering & Computer Science (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Studio Devices (AREA)
  • Stored Programmes (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiments of the present disclosure relate to a processing method and interface, system, equipment and medium of pose data. The processing method of the pose data includes: acquiring the current pose data of the camera and the identification information of the current pose data; in the pose data set, storing the current pose data and the current pose data Identification information, wherein any item of pose data in the pose data set can be updated based on the identification information of any item of pose data; and the pose data set is sent to the preset module.

Description

位姿資料的處理方法及介面、系統、設備和電腦可讀儲存介質Pose data processing method and interface, system, device and computer-readable storage medium

本發明實施例關於電腦視覺技術領域,尤其關於一種位姿資料的處理方法及介面、系統、設備和介質。The embodiments of the present invention relate to the technical field of computer vision, in particular to a method, interface, system, device and medium for processing pose data.

隨著視覺定位技術的不斷成熟,基於視覺的定位方法得到越來越多的應用。視覺定位是電腦視覺領域與機器人領域的重要問題。在視覺定位中,僅通過周圍的視覺資訊便可以實現定位,是一種低成本的定位方式。此外,視覺定位技術不僅能定位出位置信息,還能定位出姿態資訊,使得定位結果不僅能服務於常規的位置資訊獲取的需求,還可實現更多的智慧化應用,如AR(Augmented Reality,擴增實境)等。With the continuous maturity of vision localization technology, more and more applications of vision-based localization methods have been applied. Visual localization is an important problem in the field of computer vision and robotics. In visual positioning, positioning can be realized only by surrounding visual information, which is a low-cost positioning method. In addition, visual positioning technology can not only locate location information, but also locate attitude information, so that the positioning results can not only serve the needs of conventional location information acquisition, but also realize more intelligent applications, such as AR (Augmented Reality, augmented reality), etc.

本發明實施例提供了一種位姿資料的處理技術方案。An embodiment of the present invention provides a technical solution for processing pose data.

根據本發明實施例的一方面,提供了一種位姿資料的處理方法,包括: 獲取相機的當前位姿資料和所述當前位姿資料的標識資訊; 在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新; 向預設模組發送所述位姿資料集合。 According to an aspect of an embodiment of the present invention, a method for processing pose data is provided, including: Obtaining the current pose data of the camera and the identification information of the current pose data; In the pose data set, store the current pose data and the identification information of the current pose data, wherein any pose data in the pose data set can be based on the any pose The identification information of the data is updated; Send the set of pose data to a preset module.

通過獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,並向預設模組發送所述位姿資料集合,由此維護一個包含當前位姿資料且能基於標識資訊更新位姿資料的位姿資料集合,並將該位姿資料集合提供給預設模組,從而能夠在滿足預設模組對位姿資料的準確性的要求的前提下,滿足預設模組對位姿資料的即時性的要求。By acquiring the current pose data of the camera and the identification information of the current pose data, storing the current pose data and the identification information of the current pose data in the pose data set, wherein the pose Any one of the pose data in the data set can be updated based on the identification information of any one of the pose data, and the pose data set is sent to the default module, thereby maintaining a current pose data and The pose data set of the pose data can be updated based on the identification information, and the pose data set is provided to the default module, so that the preset module can satisfy the accuracy requirements of the pose data. The real-time requirements of the preset module for pose data.

在一些實施例中,所述方法還包括:獲取優化的位姿資料和所述優化的位姿資料的標識資訊;將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。在該實現方式中,通過獲取優化的位姿資料和所述優化的位姿資料的標識資訊,並將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料,由此能夠提高所述位姿資料集合中的位姿資料的準確性,從而能夠向預設模組提供更準確的位姿資料。In some embodiments, the method further includes: acquiring the optimized pose data and the identification information of the optimized pose data; corresponding the pose data set with the identification information of the optimized pose data The pose data of is updated to the optimized pose data. In this implementation, by obtaining the optimized pose data and the identification information of the optimized pose data, and combining the pose data corresponding to the identification information of the optimized pose data in the pose data set , update to the optimized pose data, thereby improving the accuracy of the pose data in the pose data set, thereby providing more accurate pose data to the preset module.

在一些實施例中,所述向預設模組發送所述位姿資料集合,包括:以預設頻率向所述預設模組發送所述位姿資料集合,其中,所述預設頻率高於獲取優化的位姿資料的頻率;和/或,回應於所述位姿資料集合發生更新,向預設模組發送所述位姿資料集合。在該實現方式中,通過回應於所述位姿資料集合發生更新,向預設模組發送所述位姿資料集合,由此能夠使預設模組及時獲得最新的位姿資料集合,從而能夠進一步滿足預設模組對位姿資料的即時性要求。In some embodiments, the sending the pose data set to the preset module includes: sending the pose data set to the preset module at a preset frequency, wherein the preset frequency is high Based on the frequency of obtaining optimized pose data; and/or, in response to an update of the pose data set, sending the pose data set to a default module. In this implementation, by sending the pose data set to the preset module in response to the update of the pose data set, the preset module can obtain the latest pose data set in time, thereby enabling Further meet the real-time requirements of the preset modules for pose data.

在一些實施例中,所述方法還包括:獲取所述當前位姿資料對應的圖像,其中,所述當前位姿資料對應的圖像是所述相機採集的;在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像。在該實現方式中,通過獲取所述當前位姿資料對應的圖像,並在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像,由此能夠在向預設模組提供位姿資料的同時,向預設模組提供相機採集的圖像,從而能夠便於預設模組進行AR測量或者三維場景重建等操作。In some embodiments, the method further includes: acquiring an image corresponding to the current pose data, wherein the image corresponding to the current pose data is collected by the camera; , storing images corresponding to the current pose data. In this implementation, by acquiring the image corresponding to the current pose data and storing the image corresponding to the current pose data in the pose data set, it is possible to While the group provides pose data, it also provides the image collected by the camera to the preset module, so that it can facilitate the preset module to perform operations such as AR measurement or 3D scene reconstruction.

在一些實施例中,所述方法還包括:在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至所述預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像。在該實現方式中,通過在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至所述預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像,由此能夠節省位姿資料集合所需的儲存空間。In some embodiments, the method further includes: when an image corresponding to any pose data in the pose data set has been sent to the preset module, from the pose data Delete images corresponding to the pose data from the collection. In this implementation, when an image corresponding to any pose data in the pose data set has been sent to the preset module, delete the image corresponding to the pose data from the pose data set The image corresponding to the above pose data can save the storage space required for the pose data collection.

在一些實施例中,所述獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,包括:從同步定位與建圖SLAM系統的前端獲取相機的當前位姿資料和所述當前位姿資料的標識資訊;所述獲取優化的位姿資料和所述優化的位姿資料的標識資訊,包括:從所述SLAM系統的後端獲取優化的位姿資料和所述優化的位姿資料的標識資訊。在該實現方式中,通過從SLAM系統的前端獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,從所述SLAM系統的後端獲取優化的位姿資料和所述優化的位姿資料的標識資訊,由此能夠獲得準確的當前位姿資料和優化的位姿資料。In some embodiments, the acquiring the current pose data of the camera and the identification information of the current pose data includes: acquiring the current pose data of the camera and the current position data from the front end of the synchronous positioning and mapping SLAM system The identification information of the pose data; the identification information of the obtained optimized pose data and the optimized pose data, including: obtaining the optimized pose data and the optimized pose data from the back end of the SLAM system identifying information for . In this implementation, by obtaining the current pose data of the camera and the identification information of the current pose data from the front end of the SLAM system, the optimized pose data and the optimized pose data are obtained from the back end of the SLAM system. The identification information of the pose data, so that accurate current pose data and optimized pose data can be obtained.

在一些實施例中,所述當前位姿資料包括經過滑動視窗處理的當前位姿資料。在該實現方式中,通過在位姿資料集合中儲存經過滑動視窗處理的當前位姿資料,由此能夠提高位姿資料集合中的當前位姿資料的精度。In some embodiments, the current pose data includes current pose data processed by a sliding window. In this implementation manner, by storing the current pose data processed by the sliding window in the pose data set, the accuracy of the current pose data in the pose data set can be improved.

根據本發明實施例的一方面,提供了一種視覺定位方法,包括:獲取相機的當前位姿資料和所述當前位姿資料的標識資訊;在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新;根據所述位姿資料集合,得到視覺定位結果。通過獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,並根據所述位姿資料集合,得到視覺定位結果,由此能夠基於位姿資料集合中同時滿足準確性和即時性要求的位姿資料進行視覺定位,從而能夠快速得到準確的視覺定位結果。According to an aspect of an embodiment of the present invention, a visual positioning method is provided, including: acquiring the current pose data of the camera and the identification information of the current pose data; storing the current pose data in the pose data set and the identification information of the current pose data, wherein any item of pose data in the set of pose data can be updated based on the identification information of any item of pose data; according to the set of pose data , to get the visual positioning result. By acquiring the current pose data of the camera and the identification information of the current pose data, storing the current pose data and the identification information of the current pose data in the pose data set, wherein the pose Any item of pose data in the data set can be updated based on the identification information of any one of the pose data, and a visual positioning result can be obtained based on the pose data set, so that it can be based on the pose data set in the same time The pose data that meets the accuracy and immediacy requirements are used for visual positioning, so that accurate visual positioning results can be obtained quickly.

在一些實施例中,所述根據所述位姿資料集合,得到視覺定位結果,包括:根據所述位姿資料集合,得到至少一個錨點的位置資訊;根據所述至少一個錨點的位置資訊,得到視覺定位結果。在該實現方式中,通過根據所述位姿資料集合,得到至少一個錨點的位置資訊,並根據所述至少一個錨點的位置資訊,得到視覺定位結果,由此能夠基於錨點的位置資訊得到準確的視覺定位結果。In some embodiments, the obtaining the visual positioning result according to the pose data set includes: obtaining the position information of at least one anchor point according to the pose data set; according to the position information of the at least one anchor point , to get the visual positioning result. In this implementation, the location information of at least one anchor point is obtained according to the pose data set, and the visual positioning result is obtained according to the location information of the at least one anchor point, so that the location information based on the anchor point can be Accurate visual positioning results are obtained.

在一些實施例中,所述視覺定位結果包括測量結果;所述根據所述至少一個錨點的位置資訊,得到視覺定位結果,包括:根據待測量對象上的多個錨點的位置資訊,得到所述待測量對象的測量結果。在該實現方式中,通過根據所述位姿資料集合,得到待測量對象上的多個錨點的位置資訊,並根據待測量對象上的多個錨點的位置資訊,得到所述待測量對象的測量結果,由此能夠快速得到準確的待測量對象的測量結果。In some embodiments, the visual positioning result includes a measurement result; the obtaining the visual positioning result according to the position information of the at least one anchor point includes: obtaining the position information of multiple anchor points on the object to be measured The measurement result of the object to be measured. In this implementation, the location information of multiple anchor points on the object to be measured is obtained according to the set of pose data, and the object to be measured is obtained according to the location information of multiple anchor points on the object to be measured The measurement results of the object to be measured can be obtained quickly and accurately.

在一些實施例中,所述視覺定位結果包括三維場景的重建結果;所述根據所述至少一個錨點的位置資訊,得到視覺定位結果,包括:根據三維場景中的多個錨點的位置資訊,得到所述三維場景的重建結果。在該實現方式中,通過根據所述位姿資料集合,得到三維場景中的多個錨點的位置資訊,並根據三維場景中的多個錨點的位置資訊,得到所述三維場景的重建結果,由此能夠快速得到準確的三維場景的重建結果。In some embodiments, the visual positioning result includes the reconstruction result of the 3D scene; the obtaining the visual positioning result according to the position information of the at least one anchor point includes: according to the position information of multiple anchor points in the 3D scene , to obtain the reconstruction result of the 3D scene. In this implementation, the location information of multiple anchor points in the 3D scene is obtained according to the set of pose data, and the reconstruction result of the 3D scene is obtained according to the location information of the multiple anchor points in the 3D scene , so that an accurate three-dimensional scene reconstruction result can be quickly obtained.

在一些實施例中,所述方法還包括:獲取優化的位姿資料和所述優化的位姿資料的標識資訊;將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。在該實現方式中,通過獲取優化的位姿資料和所述優化的位姿資料的標識資訊,並將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料,由此能夠提高所述位姿資料集合中的位姿資料的準確性。In some embodiments, the method further includes: acquiring the optimized pose data and the identification information of the optimized pose data; corresponding the pose data set with the identification information of the optimized pose data The pose data of is updated to the optimized pose data. In this implementation, by obtaining the optimized pose data and the identification information of the optimized pose data, and combining the pose data corresponding to the identification information of the optimized pose data in the pose data set , updated to the optimized pose data, thereby improving the accuracy of the pose data in the pose data set.

在一些實施例中,所述方法還包括:獲取所述當前位姿資料對應的圖像,其中,所述當前位姿資料對應的圖像是所述相機採集的;在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像。在該實現方式中,在該實現方式中,通過獲取所述當前位姿資料對應的圖像,並在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像,由此能夠便於利用所述圖像進行AR測量或者三維場景重建等操作。In some embodiments, the method further includes: acquiring an image corresponding to the current pose data, wherein the image corresponding to the current pose data is collected by the camera; , storing images corresponding to the current pose data. In this implementation, in this implementation, by acquiring the image corresponding to the current pose data, and storing the image corresponding to the current pose data in the pose data set, thereby Operations such as AR measurement or three-dimensional scene reconstruction can be facilitated by using the image.

在一些實施例中,所述方法還包括:在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像。在該實現方式中,通過在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像,由此能夠節省位姿資料集合所需的儲存空間。In some embodiments, the method further includes: when an image corresponding to any pose data in the pose data set has been sent to a preset module, from the pose data set Delete images corresponding to the pose data. In this implementation, when the image corresponding to any pose data in the pose data set has been sent to the preset module, delete the image corresponding to the pose data from the pose data set The image corresponding to the pose data can save the storage space required for the pose data collection.

以下裝置、電子設備等的效果描述參見上述是位姿資料的處理方法的說明。For the description of the effects of the following devices, electronic equipment, etc., please refer to the above-mentioned description of the processing method of pose data.

根據本發明實施例的一方面,提供了一種介面,包括: 第一獲取模組,配置為獲取相機的當前位姿資料和所述當前位姿資料的標識資訊; 第一儲存模組,配置為在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新; 發送模組,配置為向預設模組發送所述位姿資料集合。 According to an aspect of the embodiments of the present invention, an interface is provided, including: The first acquisition module is configured to acquire the current pose data of the camera and the identification information of the current pose data; The first storage module is configured to store the current pose data and the identification information of the current pose data in the pose data set, wherein any item of pose data in the pose data set can be updating based on the identification information of any one of the pose data; The sending module is configured to send the set of pose data to the preset module.

在一些實施例中,所述介面還包括: 第三獲取模組,配置為獲取優化的位姿資料和所述優化的位姿資料的標識資訊; 第一更新模組,配置為將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。 In some embodiments, the interface also includes: The third obtaining module is configured to obtain optimized pose data and identification information of the optimized pose data; The first update module is configured to update the pose data corresponding to the identification information of the optimized pose data in the pose data set to the optimized pose data.

在一些實施例中,所述發送模組配置為: 以預設頻率向所述預設模組發送所述位姿資料集合,其中,所述預設頻率高於獲取優化的位姿資料的頻率;和/或, 回應於所述位姿資料集合發生更新,向預設模組發送所述位姿資料集合。 In some embodiments, the sending module is configured to: Sending the set of pose data to the preset module at a preset frequency, wherein the preset frequency is higher than the frequency of obtaining optimized pose data; and/or, In response to an update of the pose data set, the pose data set is sent to a default module.

在一些實施例中,所述介面還包括: 第四獲取模組,配置為獲取所述當前位姿資料對應的圖像,其中,所述當前位姿資料對應的圖像是所述相機採集的; 第三儲存模組,配置為在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像。 In some embodiments, the interface also includes: The fourth acquisition module is configured to acquire the image corresponding to the current pose data, wherein the image corresponding to the current pose data is collected by the camera; The third storage module is configured to store an image corresponding to the current pose data in the pose data set.

在一些實施例中,所述介面還包括: 第一刪除模組,配置為在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至所述預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像。 In some embodiments, the interface also includes: The first deletion module is configured to delete an image corresponding to any pose data in the pose data set has been sent to the preset module, from the pose data set to delete the image corresponding to the pose data set The image corresponding to the pose data.

在一些實施例中, 所述第一獲取模組配置為:從同步定位與建圖SLAM系統的前端獲取相機的當前位姿資料和所述當前位姿資料的標識資訊; 所述第三獲取模組配置為:從所述SLAM系統的後端獲取優化的位姿資料和所述優化的位姿資料的標識資訊。 In some embodiments, The first acquisition module is configured to: acquire the current pose data of the camera and the identification information of the current pose data from the front end of the synchronous positioning and mapping SLAM system; The third acquisition module is configured to: acquire optimized pose data and identification information of the optimized pose data from the back end of the SLAM system.

在一些實施例中,所述當前位姿資料包括經過滑動視窗處理的當前位姿資料。In some embodiments, the current pose data includes current pose data processed by a sliding window.

根據本發明實施例的一方面,提供了一種視覺定位裝置,包括: 第二獲取模組,配置為獲取相機的當前位姿資料和所述當前位姿資料的標識資訊; 第二儲存模組,配置為在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新; 視覺定位模組,配置為根據所述位姿資料集合,得到視覺定位結果。 According to an aspect of the embodiments of the present invention, a visual positioning device is provided, including: The second acquisition module is configured to acquire the current pose data of the camera and the identification information of the current pose data; The second storage module is configured to store the current pose data and the identification information of the current pose data in the pose data set, wherein any item of pose data in the pose data set can be updating based on the identification information of any one of the pose data; The visual positioning module is configured to obtain a visual positioning result according to the set of pose data.

在一些實施例中,所述視覺定位模組配置為: 根據所述位姿資料集合,得到至少一個錨點的位置資訊; 根據所述至少一個錨點的位置資訊,得到視覺定位結果。 In some embodiments, the visual positioning module is configured to: Obtain position information of at least one anchor point according to the set of pose data; According to the position information of the at least one anchor point, a visual positioning result is obtained.

在一些實施例中, 所述視覺定位結果包括測量結果; 所述視覺定位模組配置為:根據待測量對象上的多個錨點的位置資訊,得到所述待測量對象的測量結果。 In some embodiments, The visual positioning results include measurement results; The visual positioning module is configured to: obtain a measurement result of the object to be measured according to position information of a plurality of anchor points on the object to be measured.

在一些實施例中, 所述視覺定位結果包括三維場景的重建結果; 所述視覺定位模組配置為:根據三維場景中的多個錨點的位置資訊,得到所述三維場景的重建結果。 In some embodiments, The visual positioning result includes a reconstruction result of a three-dimensional scene; The visual positioning module is configured to: obtain a reconstruction result of the 3D scene according to position information of multiple anchor points in the 3D scene.

在一些實施例中,所述裝置還包括: 第五獲取模組,配置為獲取優化的位姿資料和所述優化的位姿資料的標識資訊; 第二更新模組,配置為將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。 In some embodiments, the device also includes: The fifth obtaining module is configured to obtain optimized pose data and identification information of the optimized pose data; The second update module is configured to update the pose data corresponding to the identification information of the optimized pose data in the pose data set to the optimized pose data.

在一些實施例中,所述裝置還包括: 第六獲取模組,配置為獲取所述當前位姿資料對應的圖像,其中,所述當前位姿資料對應的圖像是所述相機採集的; 第四儲存模組,配置為在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像。 In some embodiments, the device also includes: The sixth acquisition module is configured to acquire the image corresponding to the current pose data, wherein the image corresponding to the current pose data is collected by the camera; The fourth storage module is configured to store an image corresponding to the current pose data in the pose data set.

在一些實施例中,所述裝置還包括: 第二刪除模組,配置為在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像。 In some embodiments, the device also includes: The second deletion module is configured to delete the image corresponding to any pose data in the pose data set from the pose data set when the image corresponding to the pose data has been sent to the preset module. The image corresponding to the pose data.

根據本發明實施例的一方面,提供了一種視覺定位系統,包括: 前端,配置為獲得相機的當前位姿資料,並將所述當前位姿資料和所述當前位姿資料的標識資訊發送至介面; 所述介面,配置為在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,並向預設模組發送所述位姿資料集合,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新; 所述預設模組,配置為根據所述位姿資料集合,得到視覺定位結果。 According to an aspect of the embodiments of the present invention, a visual positioning system is provided, including: The front end is configured to obtain the current pose data of the camera, and send the current pose data and the identification information of the current pose data to the interface; The interface is configured to store the current pose data and the identification information of the current pose data in the pose data set, and send the pose data set to a default module, wherein the pose Any item of pose data in the pose data set can be updated based on the identification information of any one of the pose data; The preset module is configured to obtain a visual positioning result according to the pose data set.

通過前端將所述當前位姿資料和所述當前位姿資料的標識資訊發送至介面,所述介面在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,並向預設模組發送所述位姿資料集合,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,所述預設模組根據所述位姿資料集合,得到視覺定位結果,由此在所述介面中維護一個包含當前位姿資料且能基於標識資訊更新位姿資料的位姿資料集合,並將該位姿資料集合提供給預設模組,從而能夠在滿足預設模組對位姿資料的準確性的要求的前提下,滿足預設模組對位姿資料的即時性的要求。預設模組能夠基於同時滿足準確性和即時性要求的位姿資料進行視覺定位,從而能夠快速得到準確的視覺定位結果。Send the current pose data and the identification information of the current pose data to the interface through the front end, and the interface stores the current pose data and the identification information of the current pose data in the pose data set , and send the pose data set to the preset module, wherein any pose data in the pose data set can be updated based on the identification information of any pose data, and the preset Assume that the module obtains a visual positioning result based on the pose data set, thereby maintaining a pose data set in the interface that contains the current pose data and can update the pose data based on the identification information, and stores the pose data The data set is provided to the preset module, so that the requirement of the preset module for the immediacy of the pose data can be met on the premise of meeting the requirement of the preset module for the accuracy of the pose data. The preset module can perform visual positioning based on pose data that meets both accuracy and immediacy requirements, so that accurate visual positioning results can be quickly obtained.

在一些實施例中,所述當前位姿資料包括經過滑動視窗處理的當前位姿資料。In some embodiments, the current pose data includes current pose data processed by a sliding window.

在一些實施例中,所述視覺定位系統還包括: 後端,配置為獲得優化的位姿資料,並將所述優化的位姿資料和所述優化的位姿資料的標識資訊發送至所述介面; 所述介面還配置為:將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。 In some embodiments, the visual positioning system also includes: The backend is configured to obtain optimized pose data, and send the optimized pose data and identification information of the optimized pose data to the interface; The interface is further configured to: update the pose data corresponding to the identification information of the optimized pose data in the pose data set to the optimized pose data.

根據本發明實施例的一方面,提供了一種電子設備,包括:一個或多個處理器;配置為儲存可執行指令的記憶體;其中,所述一個或多個處理器被配置為調用所述記憶體儲存的可執行指令,以執行上述方法。According to an aspect of the embodiments of the present invention, there is provided an electronic device, including: one or more processors; a memory configured to store executable instructions; wherein, the one or more processors are configured to call the Executable instructions stored in the memory to execute the above method.

根據本發明實施例的一方面,提供了一種電腦可讀儲存介質,其上儲存有電腦程式指令,所述電腦程式指令被處理器執行時實現上述方法。According to an aspect of the embodiments of the present invention, a computer-readable storage medium is provided, on which computer program instructions are stored, and the above-mentioned method is implemented when the computer program instructions are executed by a processor.

本發明實施例還提供一種電腦程式,所述電腦程式包括電腦可讀代碼,在所述電腦可讀代碼在電子設備中運行的情況下,所述電子設備的處理器執行上述的位姿資料的處理方法。An embodiment of the present invention also provides a computer program, the computer program includes computer-readable codes, and when the computer-readable codes run in an electronic device, the processor of the electronic device executes the processing of the above-mentioned pose data. Approach.

在本發明實施例中,通過獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,並向預設模組發送所述位姿資料集合,由此維護一個包含當前位姿資料且能基於標識資訊更新位姿資料的位姿資料集合,並將該位姿資料集合提供給預設模組,從而能夠在滿足預設模組對位姿資料的準確性的要求的前提下,滿足預設模組對位姿資料的即時性的要求。In the embodiment of the present invention, by acquiring the current pose data of the camera and the identification information of the current pose data, the current pose data and the identification information of the current pose data are stored in the pose data set , wherein, any one of the pose data in the pose data set can be updated based on the identification information of any one of the pose data, and the pose data set is sent to the default module, thereby maintaining A pose data set that contains the current pose data and can update the pose data based on the identification information, and provides the pose data set to the default module, so that the accuracy of the pose data can be satisfied by the preset module Under the premise of the requirements, the real-time requirements of the preset module for pose data are met.

應當理解的是,以上的一般描述和後文的細節描述僅是示例性和解釋性的,而非限制本發明實施例。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, rather than limiting the embodiments of the present invention.

根據下面參考附圖對示例性實施例的詳細說明,本發明實施例的其它特徵及方面將變得清楚。Other features and aspects of embodiments of the present invention will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.

為使本發明實施例的上述目的、特徵和優點能更明顯易懂,下文特舉較佳實施例,並配合所附附圖,作詳細說明如下。In order to make the above-mentioned objects, features and advantages of the embodiments of the present invention more comprehensible, preferred embodiments will be described below in detail together with the accompanying drawings.

以下將參考附圖詳細說明本發明實施例的各種示例性實施例、特徵和方面。附圖中相同的附圖標記表示功能相同或相似的元件。儘管在附圖中示出了實施例的各種方面,但是除非特別指出,不必按比例繪製附圖。Various exemplary embodiments, features, and aspects of embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures indicate functionally identical or similar elements. While various aspects of the embodiments are shown in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.

在這裡專用的詞“示例性”意為“用作例子、實施例或說明性”。這裡作為“示例性”所說明的任何實施例不必解釋為優於或好於其它實施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or better than other embodiments.

本文中術語“和/或”,僅僅是一種描述關聯對象的關聯關係,表示可以存在三種關係,例如,A和/或B,可以表示:單獨存在A,同時存在A和B,單獨存在B這三種情況。另外,本文中術語“至少一種”表示多種中的任意一種或多種中的至少兩種的任意組合,例如,包括A、B、C中的至少一種,可以表示包括從A、B和C構成的集合中選擇的任意一個或多個元素。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. three conditions. In addition, the term "at least one" herein means any one or any combination of at least two of the plurality, for example, including at least one of A, B, and C, may mean including the composition consisting of A, B, and C Any one or more elements selected in the collection.

另外,為了更好地說明本發明實施例,在下文的具體實施方式中給出了眾多的具體細節。本領域技術人員應當理解,沒有某些具體細節,本發明實施例同樣可以實施。在一些實例中,對於本領域技術人員熟知的方法、手段、元件和電路未作詳細描述,以便於凸顯本發明實施例的主旨。In addition, in order to better illustrate the embodiments of the present invention, numerous specific details are given in the following specific implementation manners. It will be understood by those skilled in the art that embodiments of the invention may be practiced without certain specific details. In some instances, methods, means, components and circuits well known to those skilled in the art are not described in detail so as to highlight the gist of the embodiments of the present invention.

隨著資訊技術的不斷發展,定位技術對人們的生活日趨重要。傳統的定位技術主要包括基於GPS(Global Position System,全球定位系統)的定位技術、基於無線區域網路或者藍牙的定位技術、基於超寬頻的定位技術等。這些傳統的定位技術均存在一定的局限性。其中,GPS信號穿透能力較差,在建築物密集的環境或者室內環境中,較難實現有效和精準的定位。此外,即使是在空曠場景中,若要實現高精定位,也需要造價較高的專業GPS設備,因此較難實現消費級的應用。基於無線局域網或者藍牙的定位技術需要預先在待定位區域佈置相關設備,佈置過程繁瑣,可靠性和精度較差,並且定位範圍較小。基於超寬頻的定位技術相對來說可達到較高的精度,但其需要至少三個接收機,且發射機和接收機之間需要保持空曠,這導致基於超寬頻的定位技術的應用場景受限。對於大場景而言,基於超寬頻的定位技術往往需要成倍增加接收機數量,系統可靠性較差。另外,上述定位技術通常只能獲得位置資訊,較難獲取可靠的姿態資訊。With the continuous development of information technology, positioning technology is becoming more and more important to people's life. Traditional positioning technologies mainly include GPS (Global Position System, Global Positioning System)-based positioning technology, wireless area network or Bluetooth-based positioning technology, ultra-wideband-based positioning technology, and the like. These traditional positioning technologies all have certain limitations. Among them, GPS signal penetration is poor, and it is difficult to achieve effective and accurate positioning in an environment with dense buildings or in an indoor environment. In addition, even in an open scene, to achieve high-precision positioning, high-cost professional GPS equipment is required, so it is difficult to implement consumer-grade applications. The positioning technology based on wireless local area network or bluetooth needs to pre-arrange relevant equipment in the area to be located. The arrangement process is cumbersome, the reliability and accuracy are poor, and the positioning range is small. Ultra-wideband-based positioning technology can achieve relatively high accuracy, but it requires at least three receivers, and the space between the transmitter and receiver needs to be kept open, which limits the application scenarios of ultra-wideband-based positioning technology . For large scenarios, positioning technology based on ultra-wideband often needs to double the number of receivers, and the system reliability is poor. In addition, the above-mentioned positioning technologies usually only obtain location information, and it is difficult to obtain reliable attitude information.

SLAM(Simultaneous Localization And Mapping,同步定位與建圖)系統在AR測量、環境重建、AR遊戲等應用場景中,起著重要作用。SLAM系統可以分為前端和後端。其中,前端可以相當於視覺里程計(Visual Odometry,VO),可以用於研究幀與幀之間的變換關係。例如,前端可以提取每幀圖像的特徵點,利用相鄰幀圖像進行特徵點匹配,並可以利用RANSAC(RANdom Sample Consensus,隨機抽樣一致)演算法去除較大的雜訊,然後進行匹配,得到位姿資料。同時,前端可以利用IMU(Intertial Measurement Unit,慣性測量單元)提供的資訊進行濾波融合。後端可以用於對前端輸出的位姿資料進行優化。例如,後端可以利用濾波理論或者優化理論進行樹或者圖的優化,得到優化的位姿資料。The SLAM (Simultaneous Localization And Mapping) system plays an important role in application scenarios such as AR measurement, environment reconstruction, and AR games. SLAM systems can be divided into front-end and back-end. Among them, the front end can be equivalent to a visual odometer (Visual Odometry, VO), which can be used to study the transformation relationship between frames. For example, the front end can extract the feature points of each frame of image, use adjacent frame images for feature point matching, and can use RANSAC (RANdom Sample Consensus, random sampling consensus) algorithm to remove large noise, and then perform matching, Get pose information. At the same time, the front end can use the information provided by the IMU (Intertial Measurement Unit, inertial measurement unit) to perform filter fusion. The backend can be used to optimize the pose data output by the frontend. For example, the backend can use filtering theory or optimization theory to optimize trees or graphs to obtain optimized pose data.

其中,前端可以用於提供相機的當前位姿資料,例如,前端提供的當前位姿資料可以用於即時進行使用者交互。後端可以用於提供相機的優化的位姿資料,即,後端可以提供更精準的位姿資料。例如,後端提供的位姿資料可以用於在AR測量的應用場景中得到精準的測量結果、在三維場景重建的應用場景中得到精準的三維場景的重建結果等。Wherein, the front end can be used to provide the current pose data of the camera, for example, the current pose data provided by the front end can be used for real-time user interaction. The backend can be used to provide optimized pose data of the camera, that is, the backend can provide more accurate pose data. For example, the pose data provided by the backend can be used to obtain accurate measurement results in the application scenario of AR measurement, and obtain accurate reconstruction results of the 3D scene in the application scenario of 3D scene reconstruction.

相關技術中,前端與後端之間存在較大的延遲,前端輸出當前位姿資料後,通常需要等待較長時間後,後端才能輸出相應的優化的位姿資料,導致不能滿足AR測量、三維場景重建等應用場景的即時性要求。In related technologies, there is a large delay between the front-end and the back-end. After the front-end outputs the current pose data, it usually takes a long time before the back-end can output the corresponding optimized pose data, which cannot satisfy AR measurement, Immediate requirements for application scenarios such as 3D scene reconstruction.

為了解決類似上文所述的技術問題,本發明實施例提供一種位姿資料的處理方法,通過獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,並向預設模組發送所述位姿資料集合,由此維護一個包含當前位姿資料且能基於標識資訊更新位姿資料的位姿資料集合,並將該位姿資料集合提供給預設模組,從而能夠在滿足預設模組對位姿資料的準確性的要求的前提下,滿足預設模組對位姿資料的即時性的要求。In order to solve the technical problems similar to those described above, an embodiment of the present invention provides a method for processing pose data. By acquiring the current pose data of the camera and the identification information of the current pose data, in the pose data set, storing the current pose data and identification information of the current pose data, wherein any item of pose data in the set of pose data can be updated based on the identification information of any item of pose data, And send the pose data set to the preset module, thereby maintaining a pose data set that contains the current pose data and can update the pose data based on the identification information, and provide the pose data set to the preset model group, so as to satisfy the immediacy requirement of the preset module for the pose data on the premise of satisfying the accuracy requirement of the preset module for the pose data.

下面通過一個具體的應用場景說明本發明實施例。圖1示出本發明實施例提供的視覺定位系統的一示意圖。如圖1所示,所述視覺定位系統包括:SLAM系統的前端100、SLAM系統的後端200、介面300和預設模組400。The following describes the embodiment of the present invention through a specific application scenario. Fig. 1 shows a schematic diagram of a visual positioning system provided by an embodiment of the present invention. As shown in FIG. 1 , the visual positioning system includes: a front end 100 of the SLAM system, a back end 200 of the SLAM system, an interface 300 and a preset module 400 .

所述SLAM系統的前端100可以根據相機採集的圖像以及IMU提供的三軸姿態角和加速度進行視覺定位,得到相機的當前位姿資料。所述SLAM系統的前端100可以通過滑動視窗對所述當前位姿資料進行光流跟蹤和IMU積分,得到經過滑動視窗處理的當前位姿資料。所述SLAM系統的前端100可以在得到經過滑動視窗處理的當前位姿資料之後,將相機採集的圖像、所述經過滑動視窗處理的當前位姿資料及其標識資訊(例如時間戳記)發送給所述介面300。所述介面300可以維護一個位姿資料集合,在所述位姿資料集合中儲存相機採集的圖像、所述經過滑動視窗處理的當前位姿資料及其標識資訊。The front end 100 of the SLAM system can perform visual positioning according to the image collected by the camera and the three-axis attitude angle and acceleration provided by the IMU, and obtain the current pose data of the camera. The front end 100 of the SLAM system can perform optical flow tracking and IMU integration on the current pose data through a sliding window to obtain the current pose data processed by the sliding window. The front end 100 of the SLAM system can send the image collected by the camera, the current pose data processed by the sliding window and its identification information (such as time stamp) to The interface 300 . The interface 300 can maintain a pose data set, in which the image collected by the camera, the current pose data processed by the sliding window and its identification information are stored.

所述SLAM系統的後端200可以對所述相機的當前位姿資料進行優化,得到優化的位姿資料。例如,所述SLAM系統的後端200可以利用濾波理論或者優化理論對所述相機的當前位姿資料進行樹或者圖的優化,得到優化的位姿資料。其中,濾波可以採用EKF(Extended Kalman Filter,擴展卡爾曼濾波器)、UKF(Unscented Kalman Filter,無損卡爾曼濾波器)等,優化可以採用TORO(Tree-based netwORk Optimizer,基於樹的網路優化器)、G2O(General Graph Optimization,通用圖優化)等。所述SLAM系統的後端200可以在得到優化的位姿資料後,將優化的位姿資料及其標識資訊發送至所述介面300。所述介面300在接收到所述優化的位姿資料及其標識資訊之後,可以將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料,由此能夠提高所述位姿資料集合中的位姿資料的準確性。The backend 200 of the SLAM system can optimize the current pose data of the camera to obtain optimized pose data. For example, the backend 200 of the SLAM system may use filtering theory or optimization theory to perform tree or graph optimization on the current pose data of the camera to obtain optimized pose data. Among them, EKF (Extended Kalman Filter, extended Kalman filter), UKF (Unscented Kalman Filter, lossless Kalman filter) can be used for filtering, and TORO (Tree-based netwORk Optimizer, tree-based network optimizer) can be used for optimization ), G2O (General Graph Optimization, general graph optimization), etc. The backend 200 of the SLAM system can send the optimized pose data and its identification information to the interface 300 after obtaining the optimized pose data. After receiving the optimized pose data and its identification information, the interface 300 may update the pose data corresponding to the identification information of the optimized pose data in the pose data set to the Optimized pose data, thereby improving the accuracy of the pose data in the pose data set.

表1示出了位姿資料集合的示意表格。如表1所示,位姿資料集合可以包括多個元素,例如,位姿資料集合最多可以包括200個元素。位姿資料集合中的任一元素可以包括標識資訊和位姿資料。例如,在表1中,標識資訊T1對應的位姿資料是P1,標識資訊T2對應的位姿資料是P2,標識資訊T3對應的位姿資料是P3,標識資訊T4對應的位姿資料是P4,標識資訊T5對應的位姿資料是P5,標識資訊T6對應的位姿資料是P6。位姿資料集合中的元素還可以包括圖像。例如,在表1中,標識資訊T5對應的圖像是F5,標識資訊T6對應的圖像是F6。在位姿資料集合中的任一圖像已發送至預設模組400的情況下,可以從位姿資料集合中刪除該圖像。例如,標識資訊T1、標識資訊T2、標識資訊T3和標識資訊T4對應的圖像由於已發送至預設模組400,因此已從位姿資料集合中刪除。標識資訊T5對應的圖像F5和標識資訊T6對應的圖像F6發送至預設模組400後,也可以從所述位姿資料集合中刪除。Table 1 shows a schematic table of pose data sets. As shown in Table 1, the pose data set may include multiple elements, for example, the pose data set may include up to 200 elements. Any element in the pose data set can include identification information and pose data. For example, in Table 1, the pose data corresponding to the logo information T1 is P1, the pose data corresponding to the logo information T2 is P2, the pose data corresponding to the logo information T3 is P3, and the pose data corresponding to the logo information T4 is P4 , the pose data corresponding to the logo information T5 is P5, and the pose data corresponding to the logo information T6 is P6. Elements in the pose data set may also include images. For example, in Table 1, the image corresponding to the identification information T5 is F5, and the image corresponding to the identification information T6 is F6. If any image in the pose data set has been sent to the preset module 400, the image can be deleted from the pose data set. For example, the images corresponding to the identification information T1, the identification information T2, the identification information T3, and the identification information T4 have been deleted from the pose data set because they have been sent to the default module 400 . After the image F5 corresponding to the identification information T5 and the image F6 corresponding to the identification information T6 are sent to the default module 400, they may also be deleted from the pose data set.

如表1所示,位姿資料集合中的元素還可以包括標籤。其中,標籤為1表示該元素中的位姿資料是優化的位姿資料,例如,該元素中的位姿資料是來自於所述SLAM系統的後端200的優化的位姿資料;標籤為0表示該元素中的位姿資料是未優化的位姿資料,例如,該元素中的位姿資料是來自於所述SLAM系統的前端100的經過滑動視窗處理的未優化的位姿資料。例如,在表1中,標識資訊T1對應的位姿資料P1、標識資訊T2對應的位姿資料P2和標識資訊T3對應的位姿資料P3是優化的位姿資料,標識資訊T4對應的位姿資料P4、標識資訊T5對應的位姿資料P5和標識資訊T6對應的位姿資料P6是未優化的位姿資料。 表1 標識資訊與位置資料對應關係表 標識資訊 T1 T2 T3 T4 T5 T6 位姿資料 P1 P2 P3 P4 P5 P6 圖像 F5 F6 標籤 1 1 1 0 0 0 As shown in Table 1, the elements in the pose data set can also include labels. Wherein, a label of 1 indicates that the pose data in this element is an optimized pose data, for example, the pose data in this element is an optimized pose data from the back end 200 of the SLAM system; the label is 0 Indicates that the pose data in this element is unoptimized pose data, for example, the pose data in this element is unoptimized pose data from the front end 100 of the SLAM system that has been processed through a sliding window. For example, in Table 1, the pose data P1 corresponding to the logo information T1, the pose data P2 corresponding to the logo information T2, and the pose data P3 corresponding to the logo information T3 are optimized pose data, and the pose data corresponding to the logo information T4 The data P4, the pose data P5 corresponding to the logo information T5, and the pose data P6 corresponding to the logo information T6 are unoptimized pose data. Table 1 Correspondence between identification information and location data Logo information T1 T2 T3 T4 T5 T6 pose data P1 P2 P3 P4 P5 P6 image none none none none F5 F6 Label 1 1 1 0 0 0

下面結合附圖對本發明實施例提供的位姿資料的處理方法和視覺定位方法進行詳細的說明。The method for processing pose data and the method for visual positioning provided by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

圖2示出本發明實施例提供的位姿資料的處理方法的流程圖。所述位姿資料的處理方法的執行主體可以是用於處理位姿資料的介面或者位姿資料的處理裝置等。例如,所述位姿資料的處理方法可以由終端設備或伺服器或其它處理設備執行。其中,終端設備可以是使用者設備(User Equipment,UE)、移動設備、使用者終端、終端、蜂窩電話、無線電話、個人數位助理(Personal Digital Assistant,PDA)、手持設備、計算設備、車載設備或者可穿戴設備等。在一些可能的實現方式中,所述位姿資料的處理方法可以通過處理器調用記憶體中儲存的電腦可讀指令的方式來實現。如圖2所示,所述位姿資料的處理方法包括步驟S21至步驟S23。FIG. 2 shows a flowchart of a method for processing pose data provided by an embodiment of the present invention. The execution body of the pose data processing method may be an interface for processing pose data or a pose data processing device. For example, the method for processing pose data may be executed by a terminal device or a server or other processing devices. Among them, the terminal device may be user equipment (User Equipment, UE), mobile device, user terminal, terminal, cellular phone, wireless phone, personal digital assistant (Personal Digital Assistant, PDA), handheld device, computing device, vehicle-mounted device Or wearable devices, etc. In some possible implementation manners, the method for processing the pose data may be realized by calling a computer-readable instruction stored in a memory by a processor. As shown in FIG. 2 , the method for processing the pose data includes steps S21 to S23.

在步驟S21中,獲取相機的當前位姿資料和所述當前位姿資料的標識資訊。In step S21, the current pose data of the camera and identification information of the current pose data are acquired.

本發明實施例中的相機可以是任意電子設備的相機,例如可以是手機、AR眼鏡、平板電腦、智慧手錶、機器人等電子設備的相機。所述相機的當前位姿資料可以表示所述相機的當前的位姿資料,即所述相機的即時的位姿資料。其中,位姿資料可以包括位置資料和姿態資料中的一項或兩項。位置資料可以採用座標來表示,例如,可以採用世界座標系中的三維座標來表示。姿態資料可以採用角度來表示。The camera in the embodiment of the present invention may be a camera of any electronic device, for example, it may be a camera of electronic devices such as a mobile phone, AR glasses, a tablet computer, a smart watch, and a robot. The current pose data of the camera may represent the current pose data of the camera, that is, the real-time pose data of the camera. Wherein, the pose data may include one or both of position data and attitude data. The location data can be represented by coordinates, for example, it can be represented by three-dimensional coordinates in the world coordinate system. Attitude data may be expressed in terms of angles.

在本發明實施例中,相機的當前位姿資料可以通過SLAM系統、視覺里程計、視覺慣性里程計(Visual Inertial Odometry,VIO)等處理得到,在此不作限定。例如,SLAM系統、視覺里程計等可以根據相機採集的圖像進行視覺定位,得到相機的當前位姿資料。又如,SLAM系統、視覺里程計、視覺慣性里程計等可以根據相機採集的圖像以及IMU輸出的三軸姿態角和加速度進行視覺定位,得到相機的當前位姿資料。In the embodiment of the present invention, the current pose data of the camera can be obtained through processing such as SLAM system, visual odometry, visual inertial odometry (Visual Inertial Odometry, VIO), etc., which is not limited here. For example, SLAM systems, visual odometry, etc. can perform visual positioning based on the images collected by the camera to obtain the current pose data of the camera. As another example, the SLAM system, visual odometry, visual inertial odometry, etc. can perform visual positioning based on the images collected by the camera and the three-axis attitude angle and acceleration output by the IMU to obtain the current pose data of the camera.

在本發明實施例中,當前位姿資料的標識資訊可以是能夠唯一標識所述當前位姿資料的資訊。例如,當前位姿資料的標識資訊可以是當前位姿資料的時間戳記、編號等。In the embodiment of the present invention, the identification information of the current pose data may be information capable of uniquely identifying the current pose data. For example, the identification information of the current pose data may be the time stamp, serial number, etc. of the current pose data.

在一些實施例中,所述當前位姿資料包括經過滑動視窗處理的當前位姿資料。在該實現方式中,通過在位姿資料集合中儲存經過滑動視窗處理的當前位姿資料,由此能夠提高位姿資料集合中的當前位姿資料的精度。作為該實現方式的一個示例,可以通過滑動視窗對當前位姿資料進行光流跟蹤和IMU積分,得到經過滑動視窗處理的當前位姿資料。In some embodiments, the current pose data includes current pose data processed by a sliding window. In this implementation manner, by storing the current pose data processed by the sliding window in the pose data set, the accuracy of the current pose data in the pose data set can be improved. As an example of this implementation, optical flow tracking and IMU integration can be performed on the current pose data through a sliding window to obtain the current pose data processed by the sliding window.

在另一種可能的實現方式中,所述當前位姿資料包括未經過滑動視窗處理的當前位姿資料。在該實現方式中,可以在所述位姿資料集合中儲存未經過滑動視窗處理的當前位姿資料。In another possible implementation manner, the current pose data includes current pose data that has not been processed by a sliding window. In this implementation manner, the current pose data that has not been processed by the sliding window may be stored in the pose data set.

在步驟S22中,在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新。In step S22, the current pose data and the identification information of the current pose data are stored in the pose data set, wherein any pose data in the pose data set can be based on the The identification information of any pose data is updated.

在本發明實施例中,位姿資料集合可以採用清單、集等資料形式,在此不作限定。在本發明實施例中,所述當前位姿資料和所述當前位姿資料的標識資訊可以關聯儲存在所述位姿資料集合中,即,可以在所述位姿資料集合中,通過關聯資料結構儲存所述當前位姿資料和所述當前位姿資料的標識資訊,以記錄所述當前位姿資料與所述當前位姿資料的標識資訊之間的對應關係。In the embodiment of the present invention, the pose data set may be in the form of a list, a set, etc., which is not limited here. In the embodiment of the present invention, the current pose data and the identification information of the current pose data can be associated and stored in the pose data set, that is, in the pose data set, through the associated data The structure stores the current pose data and the identification information of the current pose data to record the corresponding relationship between the current pose data and the identification information of the current pose data.

在本發明實施例中,由於所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,因此,能夠滿足預設模組對位姿資料的準確性的要求。In the embodiment of the present invention, since any one of the pose data in the pose data set can be updated based on the identification information of any one of the pose data, it can meet the requirements of the preset model for pose data. accuracy requirements.

在步驟S23中,向預設模組發送所述位姿資料集合。In step S23, the pose data set is sent to a preset module.

在本發明實施例中,預設模組可以表示預先設置的需要利用位姿資料集合的模組。例如,預設模組可以包括檢測模組、測量模組、環境重建模組等中的至少之一。例如,檢測模組可以用於AR測量和/或三維場景重建,測量模組可以用於AR測量,環境重建模組可以用於三維場景重建。In the embodiment of the present invention, the preset module may refer to a preset module that needs to use a set of pose data. For example, the preset modules may include at least one of a detection module, a measurement module, an environment reconstruction module, and the like. For example, the detection module can be used for AR measurement and/or 3D scene reconstruction, the measurement module can be used for AR measurement, and the environment reconstruction module can be used for 3D scene reconstruction.

在本發明實施例中,通過獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,並向預設模組發送所述位姿資料集合,由此維護一個包含當前位姿資料且能基於標識資訊更新位姿資料的位姿資料集合,並將該位姿資料集合提供給預設模組,從而能夠在滿足預設模組對位姿資料的準確性的要求的前提下,滿足預設模組對位姿資料的即時性的要求。In the embodiment of the present invention, by acquiring the current pose data of the camera and the identification information of the current pose data, the current pose data and the identification information of the current pose data are stored in the pose data set , wherein, any one of the pose data in the pose data set can be updated based on the identification information of any one of the pose data, and the pose data set is sent to the default module, thereby maintaining A pose data set that contains the current pose data and can update the pose data based on the identification information, and provides the pose data set to the default module, so that the accuracy of the pose data can be satisfied by the preset module Under the premise of the requirements, the real-time requirements of the preset module for pose data are met.

在本發明實施例中,通過向預設模組提供所述位姿資料集合,由此無需預設模組主動從後端獲取位姿資料,例如,無需預設模組主動從SLAM系統的後端獲取位姿資料。在相關技術的一些情況下,後端初始化的速度較慢導致預設模組從後端獲取不到位姿資料,通過採用本發明實施例,能夠大大減少預設模組獲取不到位姿資料的情況。In the embodiment of the present invention, by providing the set of pose data to the preset module, there is no need for the preset module to actively obtain the pose data from the backend, for example, there is no need for the preset module to actively obtain the pose data from the backend of the SLAM system. The terminal obtains the pose data. In some cases of related technologies, the slow initialization speed of the backend leads to the fact that the preset module cannot obtain pose data from the backend. By adopting the embodiment of the present invention, the situation that the preset module cannot obtain pose data can be greatly reduced .

另外,在本發明實施例中,通過向預設模組提供所述位姿資料集合,由此使預設模組無需保存過多的冗餘資料,從而能夠節省預設模組的儲存空間。In addition, in the embodiment of the present invention, by providing the pose data set to the preset module, the preset module does not need to save too much redundant data, thereby saving the storage space of the preset module.

在一些實施例中,所述方法還包括:獲取優化的位姿資料和所述優化的位姿資料的標識資訊;將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。在該實現方式中,通過獲取優化的位姿資料和所述優化的位姿資料的標識資訊,並將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料,由此能夠提高所述位姿資料集合中的位姿資料的準確性,從而能夠向預設模組提供更準確的位姿資料。In some embodiments, the method further includes: acquiring the optimized pose data and the identification information of the optimized pose data; corresponding the pose data set with the identification information of the optimized pose data The pose data of is updated to the optimized pose data. In this implementation, by obtaining the optimized pose data and the identification information of the optimized pose data, and combining the pose data corresponding to the identification information of the optimized pose data in the pose data set , update to the optimized pose data, thereby improving the accuracy of the pose data in the pose data set, thereby providing more accurate pose data to the preset module.

作為該實現方式的一個示例,所述獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,包括:從同步定位與建圖SLAM系統的前端獲取相機的當前位姿資料和所述當前位姿資料的標識資訊;所述獲取優化的位姿資料和所述優化的位姿資料的標識資訊,包括:從所述SLAM系統的後端獲取優化的位姿資料和所述優化的位姿資料的標識資訊。As an example of this implementation, the acquisition of the current pose data of the camera and the identification information of the current pose data includes: obtaining the current pose data of the camera and the identification information of the current pose data from the front end of the synchronous positioning and mapping SLAM system The identification information of the current pose data; the acquisition of the optimized pose data and the identification information of the optimized pose data includes: obtaining the optimized pose data and the optimized pose data from the back end of the SLAM system Identification information of posture data.

在該示例中,SLAM系統包括前端和後端,所述前端用於得到相機的當前位姿資料,所述後端用於得到優化的位姿資料。在一個例子中,所述前端可以根據相機採集的圖像進行視覺定位,得到相機的當前位姿資料。在另一個例子中,所述前端可以根據相機採集的圖像以及IMU輸出的三軸姿態角和加速度進行視覺定位,得到相機的當前位姿資料。例如,相機採集圖像的頻率可以是30Hz,即,相機每秒可以採集30個圖像。又如,IMU輸出三軸姿態角和加速度的頻率可以是200Hz,即,IMU每秒可以輸出200次三軸姿態角和加速度。其中,相機採集圖像的頻率以及IMU輸出三軸姿態角和加速度的頻率均可以根據實際應用場景需求靈活設置,在此不作限定。In this example, the SLAM system includes a front end and a back end, the front end is used to obtain the current pose data of the camera, and the back end is used to obtain the optimized pose data. In an example, the front end can perform visual positioning according to images collected by the camera to obtain current pose data of the camera. In another example, the front end can perform visual positioning according to the image collected by the camera and the three-axis attitude angle and acceleration output by the IMU, so as to obtain the current pose data of the camera. For example, the frequency at which the camera collects images may be 30 Hz, that is, the camera may collect 30 images per second. As another example, the frequency at which the IMU outputs the three-axis attitude angle and acceleration may be 200 Hz, that is, the IMU may output the three-axis attitude angle and acceleration 200 times per second. The frequency at which the camera collects images and the frequency at which the IMU outputs the three-axis attitude angle and acceleration can be flexibly set according to the requirements of the actual application scenario, and is not limited here.

在該示例中,通過從SLAM系統的前端獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,從所述SLAM系統的後端獲取優化的位姿資料和所述優化的位姿資料的標識資訊,由此能夠獲得準確的當前位姿資料和優化的位姿資料。In this example, by obtaining the current pose data of the camera and the identification information of the current pose data from the front end of the SLAM system, the optimized pose data and the optimized pose data are obtained from the back end of the SLAM system The identification information of the data, so that accurate current pose data and optimized pose data can be obtained.

在其他示例中,也可以從其他模組或者設備獲取相機的當前位姿資料、所述當前位姿資料的標識資訊、所述優化的位姿資料和所述優化的位姿資料的標識資訊。例如,可以從其他能夠處理得到相機的當前位姿資料的模組或者設備中,獲取相機的當前位姿資料和所述當前位姿資料的標識資訊;和/或,可以從其他能夠處理得到優化的位姿資料的模組或者設備中,獲取優化的位姿資料和所述優化的位姿資料的標識資訊。本發明實施例不對相機的當前位姿資料、所述當前位姿資料的標識資訊、所述優化的位姿資料和所述優化的位姿資料的標識資訊的來源進行限定。In other examples, the current pose data of the camera, identification information of the current pose data, optimized pose data, and identification information of the optimized pose data may also be obtained from other modules or devices. For example, the current pose data of the camera and the identification information of the current pose data can be obtained from other modules or devices that can process the current pose data of the camera; and/or can be optimized from other processing Obtain the optimized pose data and the identification information of the optimized pose data in the module or device of the pose data. The embodiment of the present invention does not limit the source of the current pose data of the camera, the identification information of the current pose data, the optimized pose data, and the identification information of the optimized pose data.

在一些實施例中,所述向預設模組發送所述位姿資料集合,包括:以預設頻率向所述預設模組發送所述位姿資料集合,其中,所述預設頻率高於獲取優化的位姿資料的頻率;和/或,回應於所述位姿資料集合發生更新,向預設模組發送所述位姿資料集合。In some embodiments, the sending the pose data set to the preset module includes: sending the pose data set to the preset module at a preset frequency, wherein the preset frequency is high Based on the frequency of obtaining optimized pose data; and/or, in response to an update of the pose data set, sending the pose data set to a default module.

作為該實現方式的一個示例,可以以預設頻率向所述預設模組發送所述位姿資料集合。例如,預設頻率可以是3Hz,即,每秒可以向預設模組發送3次位姿資料集合。在該示例中,預設頻率可以根據實際應用場景需求靈活設置,只要預設頻率高於獲取優化的位姿資料的頻率即可。As an example of this implementation manner, the pose data set may be sent to the preset module at a preset frequency. For example, the preset frequency may be 3 Hz, that is, the pose data set may be sent to the preset module 3 times per second. In this example, the preset frequency can be flexibly set according to the requirements of the actual application scenario, as long as the preset frequency is higher than the frequency for obtaining optimized pose data.

在一個例子中,所述預設頻率小於或等於獲取當前位姿資料的頻率。在這個例子中,通過將預設頻率設置為小於或等於獲取當前位姿資料的頻率,由此能夠大大減少發送重複的位姿資料集合的可能性,提高發送位姿資料集合的效率。In one example, the preset frequency is less than or equal to the frequency of obtaining the current pose data. In this example, by setting the preset frequency to be less than or equal to the frequency of obtaining current pose data, the possibility of sending repeated pose data sets can be greatly reduced, and the efficiency of sending pose data sets can be improved.

作為該實現方式的一個示例,可以回應於所述位姿資料集合發生更新,向預設模組發送所述位姿資料集合。其中,所述位姿資料集合可以在獲取到當前位姿資料時發生更新,和/或,所述位姿資料集合可以在獲取到優化的位姿資料時發生更新。通過回應於所述位姿資料集合發生更新,向預設模組發送所述位姿資料集合,由此能夠使預設模組及時獲得最新的位姿資料集合,從而能夠進一步滿足預設模組對位姿資料的即時性要求。As an example of this implementation, the pose data set may be sent to a preset module in response to an update of the pose data set. Wherein, the pose data set may be updated when the current pose data is acquired, and/or the pose data set may be updated when optimized pose data is obtained. By sending the pose data set to the preset module in response to the update of the pose data set, the preset module can obtain the latest pose data set in time, thereby further satisfying the preset module Immediate requirements for pose data.

在一些實施例中,所述方法還包括:獲取所述當前位姿資料對應的圖像,其中,所述當前位姿資料對應的圖像是所述相機採集的;在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像。在該實現方式中,通過獲取所述當前位姿資料對應的圖像,並在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像,由此能夠在向預設模組提供位姿資料的同時,向預設模組提供相機採集的圖像,從而能夠便於預設模組進行AR測量或者三維場景重建等操作。In some embodiments, the method further includes: acquiring an image corresponding to the current pose data, wherein the image corresponding to the current pose data is collected by the camera; , storing images corresponding to the current pose data. In this implementation, by acquiring the image corresponding to the current pose data and storing the image corresponding to the current pose data in the pose data set, it is possible to While the group provides pose data, it also provides the image collected by the camera to the preset module, so that it can facilitate the preset module to perform operations such as AR measurement or 3D scene reconstruction.

作為該實現方式的一個示例,所述方法還包括:在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至所述預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像。在該示例中,通過在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至所述預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像,由此能夠節省位姿資料集合所需的儲存空間。As an example of this implementation, the method further includes: when an image corresponding to any pose data in the pose data set has been sent to the preset module, from the position Delete the image corresponding to the pose data from the pose data set. In this example, when an image corresponding to any pose data in the pose data set has been sent to the preset module, delete the image corresponding to the pose data from the pose data set The image corresponding to the pose data can save the storage space required for the pose data collection.

在一些實施例中,所述位姿資料集合可以設置最大元素數,例如,所述位姿資料集合的最大元素數可以是預設值,例如,預設值可以是200等。當然,本領域技術人員也可以根據實際應用場景需求靈活設置位姿資料集合的最大元素數的數值,或者可以不限定位姿資料集合的長度。In some embodiments, the pose data set may set a maximum number of elements, for example, the maximum number of elements of the pose data set may be a preset value, for example, the preset value may be 200 and so on. Of course, those skilled in the art can also flexibly set the value of the maximum number of elements of the pose data set according to the requirements of actual application scenarios, or the length of the pose data set may not be limited.

圖3示出本發明實施例提供的位姿資料的處理方法的一示意圖。如圖3所示,SLAM系統的前端的輸入可以包括IMU輸入和圖像輸入。其中,IMU可以向SLAM系統的前端輸出三軸姿態角和加速度,例如,IMU每秒可以向SLAM系統的前端輸出200次三軸姿態角和加速度。相機可以向SLAM系統的前端輸出圖像。例如,相機每秒可以向SLAM系統的前端輸出30個圖像。SLAM系統的前端可以根據相機採集的圖像以及IMU輸出的三軸姿態角和加速度進行視覺定位,得到相機的當前位姿資料。其中,相機的當前位姿資料可以與圖像一一對應,即,相機採集的一個圖像可以對應於一項當前位姿資料。SLAM系統的前端還可以通過滑動視窗對相機的當前位姿資料進行光流跟蹤和IMU積分,得到經過滑動視窗處理的當前位姿資料。SLAM系統的後端可以對相機的當前位姿資料或者經過滑動視窗處理的當前位姿資料進行優化,得到優化的位姿資料。如圖3所示,可以採用標識資訊記錄圖像、未優化的位姿資料、經過滑動視窗處理的未優化的位姿資料和優化的位姿資料之間的對應關係。圖3示出了標識資訊T1對應的圖像、未優化的位姿資料、經過滑動視窗處理的未優化的位姿資料和優化的位姿資料。FIG. 3 shows a schematic diagram of a method for processing pose data provided by an embodiment of the present invention. As shown in Fig. 3, the input of the front end of the SLAM system may include IMU input and image input. Among them, the IMU can output the three-axis attitude angle and acceleration to the front end of the SLAM system. For example, the IMU can output the three-axis attitude angle and acceleration to the front end of the SLAM system 200 times per second. The camera can output images to the front end of the SLAM system. For example, a camera can output 30 images per second to the front end of a SLAM system. The front end of the SLAM system can perform visual positioning based on the image collected by the camera and the three-axis attitude angle and acceleration output by the IMU, and obtain the current pose data of the camera. Wherein, the current pose data of the camera may be in one-to-one correspondence with the images, that is, one image collected by the camera may correspond to one piece of current pose data. The front end of the SLAM system can also perform optical flow tracking and IMU integration on the current pose data of the camera through the sliding window to obtain the current pose data processed by the sliding window. The back end of the SLAM system can optimize the current pose data of the camera or the current pose data processed by the sliding window to obtain the optimized pose data. As shown in FIG. 3 , the identification information can be used to record the corresponding relationship between the image, the unoptimized pose data, the unoptimized pose data processed by the sliding window, and the optimized pose data. Fig. 3 shows the image corresponding to the identification information T1, the unoptimized pose data, the unoptimized pose data processed by the sliding window, and the optimized pose data.

圖4示出本發明實施例提供的視覺定位方法的流程圖。所述視覺定位方法的執行主體可以是視覺定位裝置。例如,所述視覺定位方法可以由終端設備或伺服器或其它處理設備執行。其中,終端設備可以是使用者設備、移動設備、使用者終端、終端、蜂窩電話、無線電話、個人數位助理、手持設備、計算設備、車載設備或者可穿戴設備等。在一些可能的實現方式中,所述視覺定位方法可以通過處理器調用記憶體中儲存的電腦可讀指令的方式來實現。如圖4所示,所述視覺定位方法包括步驟S41至步驟S43。Fig. 4 shows a flowchart of a visual positioning method provided by an embodiment of the present invention. The execution subject of the visual positioning method may be a visual positioning device. For example, the visual positioning method may be executed by a terminal device or a server or other processing devices. Wherein, the terminal device may be a user device, a mobile device, a user terminal, a terminal, a cellular phone, a wireless phone, a personal digital assistant, a handheld device, a computing device, a vehicle device, or a wearable device. In some possible implementation manners, the visual positioning method may be implemented by a processor invoking computer-readable instructions stored in a memory. As shown in FIG. 4 , the visual positioning method includes steps S41 to S43.

在步驟S41中,獲取相機的當前位姿資料和所述當前位姿資料的標識資訊。In step S41, the current pose data of the camera and identification information of the current pose data are acquired.

本發明實施例中的相機可以是任意電子設備的相機,例如可以是手機、AR眼鏡、平板電腦、智慧手錶、機器人等電子設備的相機。所述相機的當前位姿資料可以表示所述相機的即時的位姿資料。其中,位姿資料可以包括位置資料和姿態資料中的一項或兩項。位置資料可以採用座標來表示,例如,可以採用世界座標系中的三維座標來表示。姿態資料可以採用角度來表示。The camera in the embodiment of the present invention may be a camera of any electronic device, for example, it may be a camera of electronic devices such as a mobile phone, AR glasses, a tablet computer, a smart watch, and a robot. The current pose data of the camera may represent the real-time pose data of the camera. Wherein, the pose data may include one or both of position data and attitude data. The location data can be represented by coordinates, for example, it can be represented by three-dimensional coordinates in the world coordinate system. Attitude data may be expressed in terms of angles.

在本發明實施例中,相機的當前位姿資料可以通過SLAM系統、視覺里程計、視覺慣性里程計等處理得到,在此不作限定。例如,SLAM系統、視覺里程計等可以根據相機採集的圖像進行視覺定位,得到相機的當前位姿資料。又如,SLAM系統、視覺里程計、視覺慣性里程計等可以根據相機採集的圖像以及IMU輸出的三軸姿態角和加速度進行視覺定位,得到相機的當前位姿資料。In the embodiment of the present invention, the current pose data of the camera can be obtained through processing such as SLAM system, visual odometry, visual-inertial odometry, etc., which is not limited here. For example, SLAM systems, visual odometry, etc. can perform visual positioning based on the images collected by the camera to obtain the current pose data of the camera. As another example, the SLAM system, visual odometry, visual inertial odometry, etc. can perform visual positioning based on the images collected by the camera and the three-axis attitude angle and acceleration output by the IMU to obtain the current pose data of the camera.

在本發明實施例中,當前位姿資料的標識資訊可以是能夠唯一標識所述當前位姿資料的資訊。例如,當前位姿資料的標識資訊可以是當前位姿資料的時間戳記、編號等。In the embodiment of the present invention, the identification information of the current pose data may be information capable of uniquely identifying the current pose data. For example, the identification information of the current pose data may be the time stamp, serial number, etc. of the current pose data.

在一些實施例中,所述當前位姿資料包括經過滑動視窗處理的當前位姿資料。在該實現方式中,通過在位姿資料集合中儲存經過滑動視窗處理的當前位姿資料,由此能夠提高位姿資料集合中的當前位姿資料的精度。作為該實現方式的一個示例,可以通過滑動視窗對當前位姿資料進行光流跟蹤和IMU積分,得到經過滑動視窗處理的當前位姿資料。In some embodiments, the current pose data includes current pose data processed by a sliding window. In this implementation manner, by storing the current pose data processed by the sliding window in the pose data set, the accuracy of the current pose data in the pose data set can be improved. As an example of this implementation, optical flow tracking and IMU integration can be performed on the current pose data through a sliding window to obtain the current pose data processed by the sliding window.

在另一種可能的實現方式中,所述當前位姿資料包括未經過滑動視窗處理的當前位姿資料。在該實現方式中,可以在所述位姿資料集合中儲存未經過滑動視窗處理的當前位姿資料。In another possible implementation manner, the current pose data includes current pose data that has not been processed by a sliding window. In this implementation manner, the current pose data that has not been processed by the sliding window may be stored in the pose data set.

在步驟S42中,在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新。In step S42, the current pose data and the identification information of the current pose data are stored in the pose data set, wherein any pose data in the pose data set can be based on the The identification information of any pose data is updated.

在本發明實施例中,位姿資料集合可以採用清單、集等資料形式,在此不作限定。在本發明實施例中,所述當前位姿資料和所述當前位姿資料的標識資訊可以關聯儲存在所述位姿資料集合中,即,可以在所述位姿資料集合中,通過關聯資料結構儲存所述當前位姿資料和所述當前位姿資料的標識資訊,以記錄所述當前位姿資料與所述當前位姿資料的標識資訊之間的對應關係。In the embodiment of the present invention, the pose data set may be in the form of a list, a set, etc., which is not limited here. In the embodiment of the present invention, the current pose data and the identification information of the current pose data can be associated and stored in the pose data set, that is, in the pose data set, through the associated data The structure stores the current pose data and the identification information of the current pose data to record the corresponding relationship between the current pose data and the identification information of the current pose data.

在本發明實施例中,由於所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,因此,能夠滿足預設模組對位姿資料的準確性的要求。In the embodiment of the present invention, since any one of the pose data in the pose data set can be updated based on the identification information of any one of the pose data, it can meet the requirements of the preset model for pose data. accuracy requirements.

在步驟S43中,根據所述位姿資料集合,得到視覺定位結果。In step S43, a visual positioning result is obtained according to the set of pose data.

在本發明實施例中,通過獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,並根據所述位姿資料集合,得到視覺定位結果,由此能夠基於位姿資料集合中同時滿足準確性和即時性要求的位姿資料進行視覺定位,從而能夠快速得到準確的視覺定位結果。In the embodiment of the present invention, by acquiring the current pose data of the camera and the identification information of the current pose data, the current pose data and the identification information of the current pose data are stored in the pose data set , wherein any one of the pose data in the set of pose data can be updated based on the identification information of any one of the pose data, and a visual positioning result can be obtained according to the set of pose data, thereby being able to Visual positioning is performed based on the pose data in the pose data set that meets the requirements of both accuracy and immediacy, so that accurate visual positioning results can be quickly obtained.

本發明實施例提供的視覺定位方法可以應用於AR測量和/或三維場景重建等應用場景中。The visual positioning method provided by the embodiments of the present invention can be applied to application scenarios such as AR measurement and/or three-dimensional scene reconstruction.

在一些實施例中,所述根據所述位姿資料集合,得到視覺定位結果,包括:根據所述位姿資料集合,得到至少一個錨點的位置資訊;根據所述至少一個錨點的位置資訊,得到視覺定位結果。In some embodiments, the obtaining the visual positioning result according to the pose data set includes: obtaining the position information of at least one anchor point according to the pose data set; according to the position information of the at least one anchor point , to get the visual positioning result.

在該實現方式中,錨點可以表示需要定位的點。作為該實現方式的一個示例,所述錨點可以是用戶選擇的點。例如,在AR測量的應用場景中,可以由用戶在空間中選擇一個或多個點作為錨點。例如,用戶對著桌子上的某個點,在交互介面上點了一下,則可以將這個點作為錨點。作為該實現方式的另一個示例,所述錨點可以是自動選擇的點(例如角點、關鍵點等)。例如,可以將箱子的8個角點分別作為錨點。在該實現方式中,錨點的位置資訊可以包括錨點在世界座標系中的三維座標。In this implementation manner, the anchor point may represent a point to be located. As an example of this implementation manner, the anchor point may be a point selected by the user. For example, in an application scenario of AR measurement, a user may select one or more points in space as anchor points. For example, if the user points to a certain point on the table and clicks on the interactive interface, this point can be used as an anchor point. As another example of this implementation manner, the anchor point may be an automatically selected point (such as a corner point, a key point, etc.). For example, the 8 corner points of the box can be used as anchor points respectively. In this implementation, the location information of the anchor point may include the three-dimensional coordinates of the anchor point in the world coordinate system.

在該實現方式中,通過根據所述位姿資料集合,得到至少一個錨點的位置資訊,並根據所述至少一個錨點的位置資訊,得到視覺定位結果,由此能夠基於錨點的位置資訊得到準確的視覺定位結果。In this implementation, the location information of at least one anchor point is obtained according to the pose data set, and the visual positioning result is obtained according to the location information of the at least one anchor point, so that the location information based on the anchor point can be Accurate visual positioning results are obtained.

作為該實現方式的一個示例,所述視覺定位結果包括測量結果;所述根據所述至少一個錨點的位置資訊,得到視覺定位結果,包括:根據待測量對象上的多個錨點的位置資訊,得到所述待測量對象的測量結果。在該示例中,通過根據所述位姿資料集合,得到待測量對象上的多個錨點的位置資訊,並根據待測量對象上的多個錨點的位置資訊,得到所述待測量對象的測量結果,由此能夠快速得到準確的待測量對象的測量結果。As an example of this implementation, the visual positioning result includes a measurement result; the obtaining the visual positioning result according to the position information of the at least one anchor point includes: according to the position information of multiple anchor points on the object to be measured , to obtain the measurement result of the object to be measured. In this example, the location information of multiple anchor points on the object to be measured is obtained according to the set of pose data, and the location information of the object to be measured is obtained according to the location information of multiple anchor points on the object to be measured. The measurement result, thus the accurate measurement result of the object to be measured can be obtained quickly.

圖5示出AR測量的應用場景的示意圖。如圖5所示,在AR測量的應用場景中,可以根據待測量對象(例如箱子)的錨點的位置資訊,顯示待測量對象的錨點框。其中,待測量對象的錨點框可以表示連接待測量對象的錨點得到的框。例如,圖5中待測量對象(箱子)的錨點可以包括待測量對象的8個角點,連接待測量對象的8個角點,可以得到待測量對象的錨點框。在測量結果中,可以顯示錨點之間的距離,例如,在圖5所示的示例中,示出了待測量對象的長寬高分別是31.5cm、24.6cm和10.7cm。Fig. 5 shows a schematic diagram of an application scenario of AR measurement. As shown in FIG. 5 , in the application scenario of AR measurement, the anchor frame of the object to be measured can be displayed according to the location information of the anchor point of the object to be measured (eg, a box). Wherein, the anchor point frame of the object to be measured may represent a frame obtained by connecting the anchor points of the object to be measured. For example, the anchor points of the object to be measured (box) in FIG. 5 may include 8 corner points of the object to be measured, and connecting the 8 corner points of the object to be measured can obtain the anchor point frame of the object to be measured. In the measurement result, the distance between the anchor points may be displayed. For example, in the example shown in FIG. 5 , it shows that the length, width and height of the object to be measured are 31.5 cm, 24.6 cm and 10.7 cm, respectively.

作為該實現方式的另一個示例,所述視覺定位結果包括三維場景的重建結果;所述根據所述至少一個錨點的位置資訊,得到視覺定位結果,包括:根據三維場景中的多個錨點的位置資訊,得到所述三維場景的重建結果。在該示例中,通過根據所述位姿資料集合,得到三維場景中的多個錨點的位置資訊,並根據三維場景中的多個錨點的位置資訊,得到所述三維場景的重建結果,由此能夠快速得到準確的三維場景的重建結果。As another example of this implementation, the visual positioning result includes a reconstruction result of the 3D scene; the obtaining the visual positioning result according to the position information of the at least one anchor point includes: according to multiple anchor points in the 3D scene The location information of the 3D scene is obtained to obtain the reconstruction result of the 3D scene. In this example, the location information of multiple anchor points in the 3D scene is obtained according to the set of pose data, and the reconstruction result of the 3D scene is obtained according to the location information of the multiple anchor points in the 3D scene, In this way, an accurate three-dimensional scene reconstruction result can be quickly obtained.

在一個例子中,在即時三維重建的應用場景中,可以根據所述當前位姿資料顯示重建的三維點雲。在一個例子中,在離線三維重建的應用場景中,可以無需根據所述述當前位姿資料顯示重建的三維點雲。In an example, in an application scenario of real-time 3D reconstruction, the reconstructed 3D point cloud may be displayed according to the current pose data. In an example, in an application scenario of offline 3D reconstruction, it is not necessary to display the reconstructed 3D point cloud according to the current pose data.

在一些實施例中,所述方法還包括:獲取優化的位姿資料和所述優化的位姿資料的標識資訊;將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。在該實現方式中,通過獲取優化的位姿資料和所述優化的位姿資料的標識資訊,並將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料,由此能夠提高所述位姿資料集合中的位姿資料的準確性。In some embodiments, the method further includes: acquiring the optimized pose data and the identification information of the optimized pose data; corresponding the pose data set with the identification information of the optimized pose data The pose data of is updated to the optimized pose data. In this implementation, by obtaining the optimized pose data and the identification information of the optimized pose data, and combining the pose data corresponding to the identification information of the optimized pose data in the pose data set , updated to the optimized pose data, thereby improving the accuracy of the pose data in the pose data set.

作為該實現方式的一個示例,所述獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,包括:從同步定位與建圖SLAM系統的前端獲取相機的當前位姿資料和所述當前位姿資料的標識資訊;所述獲取優化的位姿資料和所述優化的位姿資料的標識資訊,包括:從所述SLAM系統的後端獲取優化的位姿資料和所述優化的位姿資料的標識資訊。As an example of this implementation, the acquisition of the current pose data of the camera and the identification information of the current pose data includes: obtaining the current pose data of the camera and the identification information of the current pose data from the front end of the synchronous positioning and mapping SLAM system The identification information of the current pose data; the acquisition of the optimized pose data and the identification information of the optimized pose data includes: obtaining the optimized pose data and the optimized pose data from the back end of the SLAM system Identification information of posture data.

在該示例中,SLAM系統包括前端和後端,所述前端用於得到相機的當前位姿資料,所述後端用於得到優化的位姿資料。在一個例子中,所述前端可以根據相機採集的圖像進行視覺定位,得到相機的當前位姿資料。在另一個例子中,所述前端可以根據相機採集的圖像以及IMU輸出的三軸姿態角和加速度進行視覺定位,得到相機的當前位姿資料。例如,相機採集圖像的頻率可以是30Hz,即,相機每秒可以採集30個圖像。又如,IMU輸出三軸姿態角和加速度的頻率可以是200Hz,即,IMU每秒可以輸出200次三軸姿態角和加速度。其中,相機採集圖像的頻率以及IMU輸出三軸姿態角和加速度的頻率均可以根據實際應用場景需求靈活設置,在此不作限定。In this example, the SLAM system includes a front end and a back end, the front end is used to obtain the current pose data of the camera, and the back end is used to obtain the optimized pose data. In an example, the front end can perform visual positioning according to images collected by the camera to obtain current pose data of the camera. In another example, the front end can perform visual positioning according to the image collected by the camera and the three-axis attitude angle and acceleration output by the IMU, so as to obtain the current pose data of the camera. For example, the frequency at which the camera collects images may be 30 Hz, that is, the camera may collect 30 images per second. As another example, the frequency at which the IMU outputs the three-axis attitude angle and acceleration may be 200 Hz, that is, the IMU may output the three-axis attitude angle and acceleration 200 times per second. The frequency at which the camera collects images and the frequency at which the IMU outputs the three-axis attitude angle and acceleration can be flexibly set according to the requirements of the actual application scenario, and is not limited here.

在該示例中,通過從SLAM系統的前端獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,從所述SLAM系統的後端獲取優化的位姿資料和所述優化的位姿資料的標識資訊,由此能夠獲得準確的當前位姿資料和優化的位姿資料。In this example, by obtaining the current pose data of the camera and the identification information of the current pose data from the front end of the SLAM system, the optimized pose data and the optimized pose data are obtained from the back end of the SLAM system The identification information of the data, so that accurate current pose data and optimized pose data can be obtained.

在其他示例中,也可以從其他模組或者設備獲取相機的當前位姿資料、所述當前位姿資料的標識資訊、所述優化的位姿資料和所述優化的位姿資料的標識資訊。例如,可以從其他能夠處理得到相機的當前位姿資料的模組或者設備中,獲取相機的當前位姿資料和所述當前位姿資料的標識資訊;和/或,可以從其他能夠處理得到優化的位姿資料的模組或者設備中,獲取優化的位姿資料和所述優化的位姿資料的標識資訊。本發明實施例不對相機的當前位姿資料、所述當前位姿資料的標識資訊、所述優化的位姿資料和所述優化的位姿資料的標識資訊的來源進行限定。In other examples, the current pose data of the camera, identification information of the current pose data, optimized pose data, and identification information of the optimized pose data may also be obtained from other modules or devices. For example, the current pose data of the camera and the identification information of the current pose data can be obtained from other modules or devices that can process the current pose data of the camera; and/or can be optimized from other processing Obtain the optimized pose data and the identification information of the optimized pose data in the module or device of the pose data. The embodiment of the present invention does not limit the source of the current pose data of the camera, the identification information of the current pose data, the optimized pose data, and the identification information of the optimized pose data.

在一些實施例中,所述方法還包括:獲取所述當前位姿資料對應的圖像,其中,所述當前位姿資料對應的圖像是所述相機採集的;在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像。在該實現方式中,通過獲取所述當前位姿資料對應的圖像,並在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像,由此能夠便於利用所述圖像進行AR測量或者三維場景重建等操作。In some embodiments, the method further includes: acquiring an image corresponding to the current pose data, wherein the image corresponding to the current pose data is collected by the camera; , storing images corresponding to the current pose data. In this implementation, by acquiring the image corresponding to the current pose data and storing the image corresponding to the current pose data in the pose data set, it is possible to facilitate the use of the image Operations such as AR measurement or 3D scene reconstruction.

作為該實現方式的一個示例,所述方法還包括:在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像。在該示例中,通過在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像,由此能夠節省位姿資料集合所需的儲存空間。As an example of this implementation, the method further includes: when an image corresponding to any pose data in the pose data set has been sent to a preset module, from the pose data Delete images corresponding to the pose data from the collection. In this example, when the image corresponding to any pose data in the pose data set has been sent to the preset module, delete the image corresponding to the pose data from the pose data set The image corresponding to the data can save the storage space required for the pose data collection.

在一些實施例中,所述位姿資料集合可以設置最大元素數,例如,所述位姿資料集合的最大元素數可以是預設值,例如,預設值可以是200等。當然,本領域技術人員也可以根據實際應用場景需求靈活設置位姿資料集合的最大元素數的數值,或者可以不限定位姿資料集合的長度。In some embodiments, the pose data set may set a maximum number of elements, for example, the maximum number of elements of the pose data set may be a preset value, for example, the preset value may be 200 and so on. Of course, those skilled in the art can also flexibly set the value of the maximum number of elements of the pose data set according to the requirements of actual application scenarios, or the length of the pose data set may not be limited.

可以理解,本發明實施例提及的上述各個方法實施例,在不違背原理邏輯的情況下,均可以彼此相互結合形成結合後的實施例,限於篇幅,本發明實施例不再贅述。本領域技術人員可以理解,在一些實施方式的上述方法中,各步驟的執行順序應當以其功能和可能的內在邏輯確定。It can be understood that the above-mentioned method embodiments mentioned in the embodiments of the present invention can all be combined with each other to form a combined embodiment without violating the principle and logic. Due to space limitations, the embodiments of the present invention will not be repeated here. Those skilled in the art can understand that, in the above method in some embodiments, the execution sequence of each step should be determined by its function and possible internal logic.

此外,本發明實施例還提供了介面、視覺定位裝置、視覺定位系統、電子設備、電腦可讀儲存介質、程式,上述均可用來實現本發明實施例提供的任一種位姿資料的處理方法或者視覺定位方法,相應技術方案和技術效果可參見方法部分的相應記載,不再贅述。In addition, the embodiment of the present invention also provides an interface, a visual positioning device, a visual positioning system, electronic equipment, a computer-readable storage medium, and a program, all of which can be used to implement any processing method or posture data provided by the embodiment of the present invention. For the visual positioning method, corresponding technical solutions and technical effects, please refer to the corresponding records in the method part, and will not repeat them here.

圖6示出本發明實施例提供的介面的方塊圖。如圖6所示,所述介面包括: 第一獲取模組61,配置為獲取相機的當前位姿資料和所述當前位姿資料的標識資訊; 第一儲存模組62,配置為在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新; 發送模組63,配置為向預設模組發送所述位姿資料集合。 FIG. 6 shows a block diagram of an interface provided by an embodiment of the present invention. As shown in Figure 6, the interface includes: The first acquiring module 61 is configured to acquire the current pose data of the camera and the identification information of the current pose data; The first storage module 62 is configured to store the current pose data and the identification information of the current pose data in the pose data set, wherein any item of pose data in the pose data set It can be updated based on the identification information of any one of the pose data; The sending module 63 is configured to send the set of pose data to the preset module.

在一些實施例中,所述介面還包括: 第三獲取模組,配置為獲取優化的位姿資料和所述優化的位姿資料的標識資訊; 第一更新模組,配置為將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。 In some embodiments, the interface also includes: The third obtaining module is configured to obtain optimized pose data and identification information of the optimized pose data; The first update module is configured to update the pose data corresponding to the identification information of the optimized pose data in the pose data set to the optimized pose data.

在一些實施例中,所述發送模組63配置為: 以預設頻率向所述預設模組發送所述位姿資料集合,其中,所述預設頻率高於獲取優化的位姿資料的頻率;和/或, 回應於所述位姿資料集合發生更新,向預設模組發送所述位姿資料集合。 In some embodiments, the sending module 63 is configured to: Sending the set of pose data to the preset module at a preset frequency, wherein the preset frequency is higher than the frequency of obtaining optimized pose data; and/or, In response to an update of the pose data set, the pose data set is sent to a default module.

在一些實施例中,所述介面還包括: 第四獲取模組,配置為獲取所述當前位姿資料對應的圖像,其中,所述當前位姿資料對應的圖像是所述相機採集的; 第三儲存模組,配置為在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像。 In some embodiments, the interface also includes: The fourth acquisition module is configured to acquire the image corresponding to the current pose data, wherein the image corresponding to the current pose data is collected by the camera; The third storage module is configured to store an image corresponding to the current pose data in the pose data set.

在一些實施例中,所述介面還包括: 第一刪除模組,配置為在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至所述預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像。 In some embodiments, the interface also includes: The first deletion module is configured to delete an image corresponding to any pose data in the pose data set has been sent to the preset module, from the pose data set to delete the image corresponding to the pose data set The image corresponding to the pose data.

在一些實施例中, 所述第一獲取模組61配置為:從同步定位與建圖SLAM系統的前端獲取相機的當前位姿資料和所述當前位姿資料的標識資訊; 所述第三獲取模組配置為:從所述SLAM系統的後端獲取優化的位姿資料和所述優化的位姿資料的標識資訊。 In some embodiments, The first acquisition module 61 is configured to: acquire the current pose data of the camera and the identification information of the current pose data from the front end of the synchronous positioning and mapping SLAM system; The third acquisition module is configured to: acquire optimized pose data and identification information of the optimized pose data from the back end of the SLAM system.

在一些實施例中,所述當前位姿資料包括經過滑動視窗處理的當前位姿資料。In some embodiments, the current pose data includes current pose data processed by a sliding window.

在本發明實施例中,通過獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,並向預設模組發送所述位姿資料集合,由此維護一個包含當前位姿資料且能基於標識資訊更新位姿資料的位姿資料集合,並將該位姿資料集合提供給預設模組,從而能夠在滿足預設模組對位姿資料的準確性的要求的前提下,滿足預設模組對位姿資料的即時性的要求。In the embodiment of the present invention, by acquiring the current pose data of the camera and the identification information of the current pose data, the current pose data and the identification information of the current pose data are stored in the pose data set , wherein, any one of the pose data in the pose data set can be updated based on the identification information of any one of the pose data, and the pose data set is sent to the default module, thereby maintaining A pose data set that contains the current pose data and can update the pose data based on the identification information, and provides the pose data set to the default module, so that the accuracy of the pose data can be satisfied by the preset module Under the premise of the requirements, the real-time requirements of the preset module for pose data are met.

本發明實施例還提供了另一種介面。所述介面可以從前端獲取當前位姿資料,並將所述當前位姿資料發送給顯示模組,以供顯示模組進行即時繪製和顯示。The embodiment of the present invention also provides another interface. The interface can obtain current pose data from the front end, and send the current pose data to the display module for real-time drawing and display by the display module.

圖7示出本發明實施例提供的視覺定位裝置的方塊圖。如圖7所示,所述視覺定位裝置包括: 第二獲取模組71,配置為獲取相機的當前位姿資料和所述當前位姿資料的標識資訊; 第二儲存模組72,配置為在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新; 視覺定位模組73,配置為根據所述位姿資料集合,得到視覺定位結果。 Fig. 7 shows a block diagram of a visual positioning device provided by an embodiment of the present invention. As shown in Figure 7, the visual positioning device includes: The second acquiring module 71 is configured to acquire the current pose data of the camera and the identification information of the current pose data; The second storage module 72 is configured to store the current pose data and the identification information of the current pose data in the pose data set, wherein any item of pose data in the pose data set It can be updated based on the identification information of any one of the pose data; The visual positioning module 73 is configured to obtain a visual positioning result according to the set of pose data.

在一些實施例中,所述視覺定位模組73配置為: 根據所述位姿資料集合,得到至少一個錨點的位置資訊; 根據所述至少一個錨點的位置資訊,得到視覺定位結果。 In some embodiments, the visual positioning module 73 is configured to: Obtain position information of at least one anchor point according to the set of pose data; According to the position information of the at least one anchor point, a visual positioning result is obtained.

在一些實施例中, 所述視覺定位結果包括測量結果; 所述視覺定位模組73配置為:根據待測量對象上的多個錨點的位置資訊,得到所述待測量對象的測量結果。 In some embodiments, The visual positioning results include measurement results; The visual positioning module 73 is configured to: obtain the measurement result of the object to be measured according to the location information of multiple anchor points on the object to be measured.

在一些實施例中, 所述視覺定位結果包括三維場景的重建結果; 所述視覺定位模組73配置為:根據三維場景中的多個錨點的位置資訊,得到所述三維場景的重建結果。 In some embodiments, The visual positioning result includes a reconstruction result of a three-dimensional scene; The visual positioning module 73 is configured to obtain a reconstruction result of the 3D scene according to the position information of multiple anchor points in the 3D scene.

在一些實施例中,所述裝置還包括: 第五獲取模組,配置為獲取優化的位姿資料和所述優化的位姿資料的標識資訊; 第二更新模組,配置為將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。 In some embodiments, the device also includes: The fifth obtaining module is configured to obtain optimized pose data and identification information of the optimized pose data; The second update module is configured to update the pose data corresponding to the identification information of the optimized pose data in the pose data set to the optimized pose data.

在一些實施例中,所述裝置還包括: 第六獲取模組,配置為獲取所述當前位姿資料對應的圖像,其中,所述當前位姿資料對應的圖像是所述相機採集的; 第四儲存模組,配置為在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像。 In some embodiments, the device also includes: The sixth acquisition module is configured to acquire the image corresponding to the current pose data, wherein the image corresponding to the current pose data is collected by the camera; The fourth storage module is configured to store an image corresponding to the current pose data in the pose data set.

在一些實施例中,所述裝置還包括: 第二刪除模組,配置為在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像。 In some embodiments, the device also includes: The second deletion module is configured to delete the image corresponding to any pose data in the pose data set from the pose data set when the image corresponding to the pose data has been sent to the preset module. The image corresponding to the pose data.

在本發明實施例中,通過獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,並根據所述位姿資料集合,得到視覺定位結果,由此能夠基於位姿資料集合中同時滿足準確性和即時性要求的位姿資料進行視覺定位,從而能夠快速得到準確的視覺定位結果。In the embodiment of the present invention, by acquiring the current pose data of the camera and the identification information of the current pose data, the current pose data and the identification information of the current pose data are stored in the pose data set , wherein any one of the pose data in the set of pose data can be updated based on the identification information of any one of the pose data, and a visual positioning result can be obtained according to the set of pose data, thereby being able to Visual positioning is performed based on the pose data in the pose data set that meets the requirements of both accuracy and immediacy, so that accurate visual positioning results can be quickly obtained.

圖8示出本發明實施例提供的視覺定位系統的方塊圖。如圖8所示,所述視覺定位系統包括:前端500,配置為獲得相機的當前位姿資料,並將所述當前位姿資料和所述當前位姿資料的標識資訊發送至介面300;所述介面300,配置為在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,並向預設模組400發送所述位姿資料集合,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新;所述預設模組400,配置為根據所述位姿資料集合,得到視覺定位結果。Fig. 8 shows a block diagram of a visual positioning system provided by an embodiment of the present invention. As shown in FIG. 8 , the visual positioning system includes: a front end 500 configured to obtain the current pose data of the camera, and send the current pose data and the identification information of the current pose data to the interface 300; The interface 300 is configured to store the current pose data and the identification information of the current pose data in the pose data set, and send the pose data set to the preset module 400, wherein the Any one of the pose data in the pose data set can be updated based on the identification information of any one of the pose data; the preset module 400 is configured to obtain a visual positioning result according to the pose data set .

在本發明實施例中,通過前端500將所述當前位姿資料和所述當前位姿資料的標識資訊發送至介面300,所述介面300在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,並向預設模組400發送所述位姿資料集合,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新,所述預設模組400根據所述位姿資料集合,得到視覺定位結果,由此在所述介面300中維護一個包含當前位姿資料且能基於標識資訊更新位姿資料的位姿資料集合,並將該位姿資料集合提供給預設模組400,從而能夠在滿足預設模組400對位姿資料的準確性的要求的前提下,滿足預設模組400對位姿資料的即時性的要求。預設模組400能夠基於同時滿足準確性和即時性要求的位姿資料進行視覺定位,從而能夠快速得到準確的視覺定位結果。In the embodiment of the present invention, the front end 500 sends the current pose data and the identification information of the current pose data to the interface 300, and the interface 300 stores the current pose data in the pose data set and the identification information of the current pose data, and send the pose data set to the preset module 400, wherein any pose data in the pose data set can be based on any one of the pose data The identification information of the pose data is updated, and the preset module 400 obtains the visual positioning result according to the set of pose data, thereby maintaining a position in the interface 300 that contains the current pose data and can update the position based on the identification information. The pose data set of the pose data, and the pose data set is provided to the preset module 400, so as to satisfy the preset module 400 under the premise of meeting the accuracy requirements of the pose data of the preset module 400. 400 Requirements for immediacy of pose data. The preset module 400 can perform visual positioning based on pose data satisfying both accuracy and immediacy requirements, so that accurate visual positioning results can be quickly obtained.

在本發明實施例中,通過所述介面300向預設模組400提供所述位姿資料集合,由此無需預設模組400主動從後端600獲取位姿資料,例如,無需預設模組400主動從SLAM系統的後端600獲取位姿資料。在相關技術的一些情況下,後端600初始化的速度較慢導致預設模組400從後端600獲取不到位姿資料,通過採用本發明實施例,能夠大大減少預設模組400獲取不到位姿資料的情況。In the embodiment of the present invention, the pose data set is provided to the preset module 400 through the interface 300, so that the preset module 400 is not required to actively obtain pose data from the backend 600, for example, no preset model The group 400 actively acquires pose data from the backend 600 of the SLAM system. In some cases of related technologies, the initialization speed of the backend 600 is slow, so that the preset module 400 cannot obtain pose data from the backend 600. By adopting the embodiment of the present invention, it is possible to greatly reduce the failure of the preset module 400 to acquire posture data.

另外,在本發明實施例中,通過所述介面300向預設模組400提供所述位姿資料集合,由此使預設模組400無需保存過多的冗餘資料,從而能夠節省預設模組400的儲存空間。In addition, in the embodiment of the present invention, the pose data set is provided to the preset module 400 through the interface 300, so that the preset module 400 does not need to save too much redundant data, thereby saving preset modules. Storage space for groups of 400.

在一些實施例中,所述當前位姿資料包括經過滑動視窗處理的當前位姿資料。例如,前端500可以通過滑動視窗對所述當前位姿資料進行光流跟蹤和IMU積分,得到經過滑動視窗處理的當前位姿資料。In some embodiments, the current pose data includes current pose data processed by a sliding window. For example, the front end 500 may perform optical flow tracking and IMU integration on the current pose data through a sliding window to obtain the current pose data processed by the sliding window.

作為該實現方式的一個示例,所述前端500可以回應於得到新的經過滑動視窗處理的當前位姿資料,向所述介面300發送所述新的經過滑動視窗處理的當前位姿資料和所述新的經過滑動視窗處理的當前位姿資料的標識資訊。在該示例中,前端500可以在滑動視窗每次處理得到新的當前位姿資料後,均向所述介面300發送新的當前位姿資料,從而使所述介面300及時獲得新的當前位姿資料。As an example of this implementation, the front end 500 may send the new current pose data processed by the sliding window and the new current pose data processed by the sliding window to the interface 300 in response to obtaining the new current pose data processed by the sliding window and the The identification information of the current pose data processed by the new sliding window. In this example, the front end 500 can send the new current pose data to the interface 300 after each processing of the sliding window to obtain the new current pose data, so that the interface 300 can obtain the new current pose data in time material.

作為該實現方式的一個示例,所述前端500可以通過滑動視窗對所述即時位子資料進行光流跟蹤和IMU積分,得到經過滑動視窗處理的當前位姿資料。As an example of this implementation, the front end 500 may perform optical flow tracking and IMU integration on the real-time position data through a sliding window to obtain the current pose data processed by the sliding window.

在一些實施例中,所述視覺定位系統還包括:後端600,配置為獲得優化的位姿資料,並將所述優化的位姿資料和所述優化的位姿資料的標識資訊發送至所述介面300;所述介面300還配置為:將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。In some embodiments, the visual positioning system further includes: a backend 600 configured to obtain optimized pose data, and send the optimized pose data and identification information of the optimized pose data to the The interface 300; the interface 300 is further configured to: update the pose data corresponding to the identification information of the optimized pose data in the pose data set to the optimized pose data.

作為該實現方式的一個示例,所述後端600可以回應於獲得優化的位姿資料,將所述優化的位姿資料和所述優化的位姿資料的標識資訊發送至所述介面300,由此後端600能夠及時將優化的位姿資料發送至所述介面300,從而使所述介面300能夠及時獲得優化的位姿資料。As an example of this implementation, the backend 600 may respond to obtaining the optimized pose data, and send the optimized pose data and the identification information of the optimized pose data to the interface 300, by The rear end 600 can send the optimized pose data to the interface 300 in time, so that the interface 300 can obtain the optimized pose data in time.

在一些實施例中,本發明實施例提供的裝置具有的功能或包含的模組可以配置為執行上文方法實施例描述的方法,其實現和技術效果可以參照上文方法實施例的描述,為了簡潔,這裡不再贅述。In some embodiments, the functions or included modules of the device provided by the embodiments of the present invention can be configured to execute the methods described in the above method embodiments, and its implementation and technical effects can refer to the descriptions of the above method embodiments, for It is concise and will not be repeated here.

本發明實施例還提供一種電腦可讀儲存介質,其上儲存有電腦程式指令,所述電腦程式指令被處理器執行時實現上述方法。其中,所述電腦可讀儲存介質可以是非易失性電腦可讀儲存介質,或者可以是易失性電腦可讀儲存介質。An embodiment of the present invention also provides a computer-readable storage medium, on which computer program instructions are stored, and the above-mentioned method is implemented when the computer program instructions are executed by a processor. Wherein, the computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.

本發明實施例還提出一種電腦程式,包括電腦可讀代碼,當所述電腦可讀代碼在電子設備中運行時,所述電子設備中的處理器執行用於實現上述方法。The embodiment of the present invention also proposes a computer program, including computer readable codes, and when the computer readable codes are run in the electronic device, the processor in the electronic device executes to implement the above method.

本發明實施例還提供了另一種電腦程式產品,用於儲存電腦可讀指令,指令被執行時使得電腦執行上述任一實施例提供的方法的操作。The embodiment of the present invention also provides another computer program product, which is used for storing computer-readable instructions. When the instructions are executed, the computer executes the operation of the method provided by any of the above-mentioned embodiments.

本發明實施例還提供一種電子設備,包括:一個或多個處理器;用於儲存可執行指令的記憶體;其中,所述一個或多個處理器被配置為調用所述記憶體儲存的可執行指令,以執行上述方法。An embodiment of the present invention also provides an electronic device, including: one or more processors; a memory for storing executable instructions; wherein, the one or more processors are configured to call the executable instructions stored in the memory Execute instructions to implement the above method.

電子設備可以被提供為終端、伺服器或其它形態的設備。Electronic devices may be provided as terminals, servers, or other types of devices.

圖9示出本發明實施例提供的一種電子設備800的方塊圖。例如,電子設備800可以是行動電話,電腦,數位廣播終端,消息收發設備,遊戲控制台,平板設備,醫療設備,健身設備,個人數位助理等終端。FIG. 9 shows a block diagram of an electronic device 800 provided by an embodiment of the present invention. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant and other terminals.

參照圖9,電子設備800可以包括以下一個或多個組件:處理組件802,記憶體804,電源組件806,多媒體組件808,音頻組件810,輸入/輸出(I/ O)的介面812,感測器組件814,以及通信組件816。Referring to FIG. 9, the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor The implementer component 814, and the communication component 816.

處理組件802通常控制電子設備800的整體操作,諸如與顯示,電話呼叫,資料通信,相機操作和記錄操作相關聯的操作。處理組件802可以包括一個或多個處理器820來執行指令,以完成上述的方法的全部或部分步驟。此外,處理組件802可以包括一個或多個模組,便於處理組件802和其他組件之間的交互。例如,處理組件802可以包括多媒體模組,以方便多媒體組件808和處理組件802之間的交互。The processing component 802 generally controls the overall operations of the electronic device 800, such as those associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .

記憶體804被配置為儲存各種類型的資料以支援在電子設備800的操作。這些資料的示例包括用於在電子設備800上操作的任何應用程式或方法的指令,連絡人資料,電話簿資料,消息,圖片,視頻等。記憶體804可以由任何類型的易失性或非易失性存放裝置或者它們的組合實現,如靜態隨機存取記憶體(SRAM),電可擦除可程式設計唯讀記憶體(EEPROM),可擦除可程式設計唯讀記憶體(EPROM),可程式設計唯讀記憶體(PROM),唯讀記憶體(ROM),磁記憶體,快閃記憶體,磁片或光碟。The memory 804 is configured to store various types of data to support operations of the electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact information, phonebook information, messages, pictures, videos, and the like. Memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.

電源組件806為電子設備800的各種組件提供電力。電源組件806可以包括電源管理系統,一個或多個電源,及其他與為電子設備800生成、管理和分配電力相關聯的組件。The power supply component 806 provides power to various components of the electronic device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 800 .

多媒體組件808包括在所述電子設備800和使用者之間的提供一個輸出介面的螢幕。在一些實施例中,螢幕可以包括液晶顯示器(LCD)和觸摸面板(TP)。如果螢幕包括觸摸面板,螢幕可以被實現為觸控式螢幕,以接收來自使用者的輸入信號。觸摸面板包括一個或多個觸摸感測器以感測觸摸、滑動和觸摸面板上的手勢。所述觸摸感測器可以不僅感測觸摸或滑動動作的邊界,而且還檢測與所述觸摸或滑動操作相關的持續時間和壓力。在一些實施例中,多媒體組件808包括一個前置攝影頭和/或後置攝影頭。當電子設備800處於操作模式,如拍攝模式或視訊模式時,前置攝影頭和/或後置攝影頭可以接收外部的多媒體資料。每個前置攝影頭和後置攝影頭可以是一個固定的光學透鏡系統或具有焦距和光學變焦能力。The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or slide action, but also detect a duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音頻組件810被配置為輸出和/或輸入音頻信號。例如,音頻組件810包括一個麥克風(MIC),當電子設備800處於操作模式,如呼叫模式、記錄模式和語音辨識模式時,麥克風被配置為接收外部音頻信號。所接收的音頻信號可以被進一步儲存在記憶體804或經由通信組件816發送。在一些實施例中,音頻組件810還包括一個揚聲器,用於輸出音頻信號。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive an external audio signal when the electronic device 800 is in an operation mode, such as a calling mode, a recording mode and a voice recognition mode. The received audio signal may be further stored in the memory 804 or sent via the communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

I/ O介面812為處理組件802和週邊介面模組之間提供介面,上述週邊介面模組可以是鍵盤,點擊輪,按鈕等。這些按鈕可包括但不限於:主頁按鈕、音量按鈕、啟動按鈕和鎖定按鈕。The I/O interface 812 provides an interface between the processing unit 802 and peripheral interface modules, such as a keyboard, a click wheel, and buttons. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

感測器組件814包括一個或多個感測器,用於為電子設備800提供各個方面的狀態評估。例如,感測器組件814可以檢測到電子設備800的打開/關閉狀態,組件的相對定位,例如所述組件為電子設備800的顯示器和小鍵盤,感測器組件814還可以檢測電子設備800或電子設備800一個組件的位置改變,使用者與電子設備800接觸的存在或不存在,電子設備800方位或加速/減速和電子設備800的溫度變化。感測器組件814可以包括接近感測器,被配置用來在沒有任何的物理接觸時檢測附近物體的存在。感測器組件814還可以包括光感測器,如互補金屬氧化物半導體或電荷耦合裝置圖像感測器,用於在成像應用中使用。在一些實施例中,該感測器組件814還可以包括加速度感測器,陀螺儀感測器,磁感測器,壓力感測器或溫度感測器。Sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for electronic device 800 . For example, the sensor assembly 814 can detect the open/closed state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the electronic device 800 or The position of a component of the electronic device 800 changes, the presence or absence of user contact with the electronic device 800 , the orientation or acceleration/deceleration of the electronic device 800 and the temperature of the electronic device 800 change. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 814 may also include a light sensor, such as a complementary metal-oxide-semiconductor or charge-coupled device image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信組件816被配置為便於電子設備800和其他設備之間有線或無線方式的通信。電子設備800可以接入基於通信標準的無線網路,如無線網路、第二代移動通信技術、第三代移動通信技術、第四代移動通信技術/通用移動通信技術的長期演進、第五代移動通信技術或它們的組合。在一個示例性實施例中,通信組件816經由廣播通道接收來自外部廣播管理系統的廣播信號或廣播相關資訊。在一個示例性實施例中,所述通信組件816還包括近場通信模組,以促進短程通信。例如,在近場通信模組可基於射頻識別技術,紅外資料協會技術,超寬頻技術,藍牙技術和其他技術來實現。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access wireless networks based on communication standards, such as wireless networks, second-generation mobile communication technologies, third-generation mobile communication technologies, fourth-generation mobile communication technologies/long-term evolution of universal mobile communication technologies, and fifth-generation mobile communication technologies. Generation mobile communication technology or their combination. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication module to facilitate short-range communication. For example, the near-field communication module can be implemented based on radio frequency identification technology, infrared data association technology, ultra-wideband technology, bluetooth technology and other technologies.

在示例性實施例中,電子設備800可以被一個或多個應用專用積體電路、數位訊號處理器、數位信號處理設備、可程式設計邏輯器件、現場可程式設計閘陣列、控制器、微控制器、微處理器或其他電子組件實現,用於執行上述方法。In an exemplary embodiment, electronic device 800 may be implemented by one or more application specific integrated circuits, digital signal processors, digital signal processing devices, programmable logic devices, field programmable gate arrays, controllers, microcontrollers Implemented by a processor, microprocessor or other electronic components for performing the above method.

在示例性實施例中,還提供了一種非易失性電腦可讀儲存介質,例如包括電腦程式指令的記憶體804,上述電腦程式指令可由電子設備800的處理器820執行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as the memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to implement the above method.

圖10示出本發明實施例提供的一種電子設備1900的方塊圖。例如,電子設備1900可以被提供為一伺服器。參照圖10,電子設備1900包括處理組件1922,其進一步包括一個或多個處理器,以及由記憶體1932所代表的記憶體資源,用於儲存可由處理組件1922的執行的指令,例如應用程式。記憶體1932中儲存的應用程式可以包括一個或一個以上的每一個對應於一組指令的模組。此外,處理組件1922被配置為執行指令,以執行上述方法。FIG. 10 shows a block diagram of an electronic device 1900 provided by an embodiment of the present invention. For example, electronic device 1900 may be provided as a server. Referring to FIG. 10 , the electronic device 1900 includes a processing component 1922 , which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922 , such as application programs. The application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

電子設備1900還可以包括一個電源組件1926被配置為執行電子設備1900的電源管理,一個有線或無線網路介面1950被配置為將電子設備1900連接到網路,和一個輸入/輸出(I/O)介面1958。電子設備1900可以操作基於儲存在記憶體1932的作業系統,例如微軟伺服器作業系統(Windows ServerTM),蘋果公司推出的基於圖形化使用者介面作業系統(Mac OS XTM),多使用者多進程的電腦作業系統(UnixTM), 自由和開放原代碼的類Unix作業系統(LinuxTM),開放原代碼的類Unix作業系統(FreeBSDTM)或類似。Electronic device 1900 may also include a power supply component 1926 configured to perform power management of electronic device 1900, a wired or wireless network interface 1950 configured to connect electronic device 1900 to a network, and an input/output (I/O ) interface 1958. The electronic device 1900 can operate based on the operating system stored in the memory 1932, such as Microsoft server operating system (Windows ServerTM), Apple's operating system based on a graphical user interface (Mac OS XTM), multi-user and multi-process Computer operating system (UnixTM), free and open source Unix-like operating system (LinuxTM), open source Unix-like operating system (FreeBSDTM) or similar.

在示例性實施例中,還提供了一種非易失性電腦可讀儲存介質,例如包括電腦程式指令的記憶體1932,上述電腦程式指令可由電子設備1900的處理組件1922執行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to implement the above method.

本發明實施例可以是系統、方法和/或電腦程式產品。電腦程式產品可以包括電腦可讀儲存介質,其上載有用於使處理器實現本發明實施例的各個方面的電腦可讀程式指令。Embodiments of the invention may be systems, methods and/or computer program products. The computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present invention.

電腦可讀儲存介質可以是可以保持和儲存由指令執行設備使用的指令的有形設備。電腦可讀儲存介質例如可以是(但不限於)電存放裝置、磁存放裝置、光存放裝置、電磁存放裝置、半導體存放裝置或者上述的任意合適的組合。電腦可讀儲存介質的更具體的例子(非窮舉的列表)包括:可擕式電腦盤、硬碟、隨機存取記憶體、唯讀記憶體、可擦式可程式設計唯讀記憶體(EPROM或快閃記憶體)、靜態隨機存取記憶體、可擕式壓縮磁碟唯讀記憶體、數位多功能盤、記憶棒、軟碟、機械編碼設備、例如其上儲存有指令的打孔卡或凹槽內凸起結構、以及上述的任意合適的組合。這裡所使用的電腦可讀儲存介質不被解釋為暫態信號本身,諸如無線電波或者其他自由傳播的電磁波、通過波導或其他傳輸媒介傳播的電磁波(例如,通過光纖電纜的光脈衝)、或者通過電線傳輸的電信號。A computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer readable storage media include: portable computer disk, hard disk, random access memory, read only memory, erasable programmable read only memory ( EPROM or flash memory), static random access memory, portable compact disk read-only memory, digital versatile disks, memory sticks, floppy disks, mechanically encoded devices such as punch holes with instructions stored thereon The protruding structure in the card or groove, and any suitable combination of the above. A computer-readable storage medium as used herein is not to be construed as a transient signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other Electrical signals transmitted by wires.

這裡所描述的電腦可讀程式指令可以從電腦可讀儲存介質下載到各個計算/處理設備,或者通過網路、例如網際網路、局域網、廣域網路和/或無線網下載到外部電腦或外部存放裝置。網路可以包括銅傳輸電纜、光纖傳輸、無線傳輸、路由器、防火牆、交換機、閘道電腦和/或邊緣伺服器。每個計算/處理設備中的網路介面卡或者網路介面從網路接收電腦可讀程式指令,並轉發該電腦可讀程式指令,以供儲存在各個計算/處理設備中的電腦可讀儲存介質中。The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in computer-readable storage in each computing/processing device medium.

用於執行本發明實施例操作的電腦程式指令可以是彙編指令、指令集架構指令、機器指令、機器相關指令、微代碼、固件指令、狀態設置資料、或者以一種或多種程式設計語言的任意組合編寫的原始程式碼或目標代碼,所述程式設計語言包括對象導向的程式設計語言—諸如Smalltalk、C++等,以及常規的過程式程式設計語言—諸如“C”語言或類似的程式設計語言。電腦可讀程式指令可以完全地在使用者電腦上執行、部分地在使用者電腦上執行、作為一個獨立的套裝軟體執行、部分在使用者電腦上部分在遠端電腦上執行、或者完全在遠端電腦或伺服器上執行。在涉及遠端電腦的情形中,遠端電腦可以通過任意種類的網路—包括局域網或廣域網路—連接到使用者電腦,或者,可以連接到外部電腦(例如利用網際網路服務提供者來通過網際網路連接)。在一些實施例中,通過利用電腦可讀程式指令的狀態資訊來個性化定制電子電路,例如可程式設計邏輯電路、現場可程式設計閘陣列或可程式設計邏輯陣列,該電子電路可以執行電腦可讀程式指令,從而實現本發明實施例的各個方面。The computer program instructions for performing the operations of the embodiments of the present invention may be assembly instructions, instruction set architecture instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or any combination of one or more programming languages Source or object code written in programming languages including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as “C” or similar programming languages. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone package, partly on the user's computer and partly on a remote computer, or entirely on a remote computer. Execute on the terminal computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer via any kind of network, including a local area network or wide area network, or it can be connected to an external computer (such as through an Internet connection). In some embodiments, electronic circuits, such as programmable logic circuits, field programmable gate arrays, or programmable logic arrays, can be customized by utilizing state information of computer-readable program instructions, which can execute computer-programmable Program instructions are read, so as to realize various aspects of the embodiments of the present invention.

這裡參照根據本發明實施例的方法、裝置(系統)和電腦程式產品的流程圖和/或方塊圖描述了本發明實施例的各個方面。應當理解,流程圖和/或方塊圖的每個方塊以及流程圖和/或方塊圖中各方塊的組合,都可以由電腦可讀程式指令實現。Aspects of embodiments of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart and/or block diagram and combinations of blocks in the flowchart and/or block diagram can be implemented by computer readable program instructions.

這些電腦可讀程式指令可以提供給通用電腦、專用電腦或其它可程式設計資料處理裝置的處理器,從而生產出一種機器,使得這些指令在通過電腦或其它可程式設計資料處理裝置的處理器執行時,產生了實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作的裝置。也可以把這些電腦可讀程式指令儲存在電腦可讀儲存介質中,這些指令使得電腦、可程式設計資料處理裝置和/或其他設備以特定方式工作,從而,儲存有指令的電腦可讀介質則包括一個製造品,其包括實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作的各個方面的指令。These computer-readable program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, or other programmable data-processing device, thereby producing a machine such that the instructions are executed by the processor of the computer or other programmable data-processing device When, means for realizing the function/action specified in one or more blocks in the flowchart and/or block diagram are produced. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause a computer, a programmable data processing device and/or other equipment to operate in a specific manner, so that the computer-readable medium storing the instructions is An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in the flowchart and/or block diagrams is included.

也可以把電腦可讀程式指令載入到電腦、其它可程式設計資料處理裝置、或其它設備上,使得在電腦、其它可程式設計資料處理裝置或其它設備上執行一系列操作步驟,以產生電腦實現的過程,從而使得在電腦、其它可程式設計資料處理裝置、或其它設備上執行的指令實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作。It is also possible to load computer-readable program instructions into a computer, other programmable data processing device, or other equipment, so that a series of operation steps are executed on the computer, other programmable data processing device, or other equipment to produce a computer The process of implementation, so that instructions executed on computers, other programmable data processing devices, or other equipment implement the functions/actions specified in one or more blocks in the flowchart and/or block diagram.

附圖中的流程圖和方塊圖顯示了根據本發明實施例的多個實施例的系統、方法和電腦程式產品的可能實現的體系架構、功能和操作。在這點上,流程圖或方塊圖中的每個方塊可以代表一個模組、程式段或指令的一部分,所述模組、程式段或指令的一部分包含一個或多個用於實現規定的邏輯功能的可執行指令。在有些作為替換的實現中,方塊中所標注的功能也可以以不同於附圖中所標注的順序發生。例如,兩個連續的方塊實際上可以基本並行地執行,它們有時也可以按相反的循序執行,這依所涉及的功能而定。也要注意的是,方塊圖和/或流程圖中的每個方塊、以及方塊圖和/或流程圖中的方塊的組合,可以用執行規定的功能或動作的專用的基於硬體的系統來實現,或者可以用專用硬體與電腦指令的組合來實現。The flowchart and block diagrams in the figures show the architecture, functions and operations of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction that contains one or more logic for implementing the specified Executable instructions for a function. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two consecutive blocks may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action. implemented, or may be implemented using a combination of dedicated hardware and computer instructions.

該電腦程式產品可以具體通過硬體、軟體或其結合的方式實現。在一些實施例中,所述電腦程式產品具體體現為電腦儲存介質,在另一個實施例中,電腦程式產品具體體現為軟體產品,例如軟體發展包(Software Development Kit,SDK)等等。The computer program product can be realized by hardware, software or a combination thereof. In some embodiments, the computer program product is embodied as a computer storage medium. In another embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.

以上已經描述了本發明實施例的各實施例,上述說明是示例性的,並非窮盡性的,並且也不限於所披露的各實施例。在不偏離所說明的各實施例的範圍和精神的情況下,對於本技術領域的普通技術人員來說許多修改和變更都是顯而易見的。本文中所用術語的選擇,旨在最好地解釋各實施例的原理、實際應用或對市場中的技術的改進,或者使本技術領域的其它普通技術人員能理解本文披露的各實施例。Having described various embodiments of the embodiments of the present invention above, the foregoing description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principle of each embodiment, practical application or improvement of technology in the market, or to enable other ordinary skilled in the art to understand each embodiment disclosed herein.

工業實用性 本發明實施例涉及一種位姿資料的處理方法及介面、裝置、系統、設備和介質。所述位姿資料的處理方法包括:獲取相機的當前位姿資料和所述當前位姿資料的標識資訊;在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新;向預設模組發送所述位姿資料集合。 Industrial Applicability Embodiments of the present invention relate to a pose data processing method, interface, device, system, equipment and medium. The processing method of the pose data includes: acquiring the current pose data of the camera and identification information of the current pose data; storing the current pose data and the current pose data in the pose data set Identification information, wherein any item of pose data in the set of pose data can be updated based on the identification information of any item of pose data; sending the set of pose data to a preset module.

100:SLAM系統的前端 200:SLAM系統的後端 300:介面 400:預設模組 500:前端 600:後端 61:第一獲取模組 62:第一儲存模組 63:發送模組 71:第二獲取模組 72:第二儲存模組 73:視覺定位模組 800:電子設備 802:處理組件 804:記憶體 806:電源組件 808:多媒體組件 810:音頻組件 812:輸入/輸出介面 814:感測器組件 816:通信組件 820:處理器 900:電子設備 922:處理組件 926:電源組件 932:記憶體 950:網路介面 958:輸入/輸出介面 S21~S23,S41~S43:步驟 100: Front end of SLAM system 200: Backend of SLAM system 300: interface 400: Default module 500: front end 600: Backend 61: The first acquisition module 62: The first storage module 63:Send module 71: The second acquisition module 72:Second storage module 73: Visual positioning module 800: Electronic equipment 802: processing components 804: Memory 806: Power components 808:Multimedia component 810:Audio components 812: input/output interface 814: Sensor component 816:Communication component 820: Processor 900: Electronic equipment 922: Processing components 926: Power components 932:Memory 950: Network interface 958: Input/Output Interface S21~S23, S41~S43: steps

為了更清楚地說明本發明實施例的技術方案,下面將對實施例中所需要使用的附圖作簡單地介紹,此處的附圖被併入說明書中並構成本說明書中的一部分,這些附圖示出了符合本發明實施例的實施例,並與說明書一起用於說明本發明實施例的技術方案。應當理解,以下附圖僅示出了本發明實施例的某些實施例,因此不應被看作是對範圍的限定,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖獲得其他相關的附圖。 此處的附圖被併入說明書中並構成本說明書的一部分,這些附圖示出了符合本發明實施例的實施例,並與說明書一起用於說明本發明實施例的技術方案。 圖1示出本發明實施例提供的視覺定位系統的一示意圖。 圖2示出本發明實施例提供的位姿資料的處理方法的流程圖。 圖3示出本發明實施例提供的位姿資料的處理方法的一示意圖。 圖4示出本發明實施例提供的視覺定位方法的流程圖。 圖5示出AR測量的應用場景的示意圖。 圖6示出本發明實施例提供的介面的方塊圖。 圖7示出本發明實施例提供的視覺定位裝置的方塊圖。 圖8示出本發明實施例提供的視覺定位系統的方塊圖。 圖9示出本發明實施例提供的一種電子設備800的方塊圖。 圖10示出本發明實施例提供的一種電子設備1900的方塊圖。 In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below, and the drawings here are incorporated into the specification and constitute a part of the specification. The drawings show embodiments consistent with the embodiments of the present invention, and are used together with the description to illustrate the technical solutions of the embodiments of the present invention. It should be understood that the following drawings only show some embodiments of the embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, without paying creative work, Other related drawings can also be obtained from these drawings. The accompanying drawings here are incorporated into the specification and constitute a part of the specification. These drawings show embodiments consistent with the embodiments of the present invention, and are used together with the description to illustrate the technical solutions of the embodiments of the present invention. Fig. 1 shows a schematic diagram of a visual positioning system provided by an embodiment of the present invention. FIG. 2 shows a flowchart of a method for processing pose data provided by an embodiment of the present invention. FIG. 3 shows a schematic diagram of a method for processing pose data provided by an embodiment of the present invention. Fig. 4 shows a flowchart of a visual positioning method provided by an embodiment of the present invention. Fig. 5 shows a schematic diagram of an application scenario of AR measurement. FIG. 6 shows a block diagram of an interface provided by an embodiment of the present invention. Fig. 7 shows a block diagram of a visual positioning device provided by an embodiment of the present invention. Fig. 8 shows a block diagram of a visual positioning system provided by an embodiment of the present invention. FIG. 9 shows a block diagram of an electronic device 800 provided by an embodiment of the present invention. FIG. 10 shows a block diagram of an electronic device 1900 provided by an embodiment of the present invention.

S21~S23:步驟 S21~S23: Steps

Claims (18)

一種位姿資料的處理方法,所述方法由電子設備執行,所述方法包括: 獲取相機的當前位姿資料和所述當前位姿資料的標識資訊; 在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新; 向預設模組發送所述位姿資料集合。 A method for processing pose data, the method being executed by an electronic device, the method comprising: Obtaining the current pose data of the camera and the identification information of the current pose data; In the pose data set, store the current pose data and the identification information of the current pose data, wherein any pose data in the pose data set can be based on the any pose The identification information of the data is updated; Send the set of pose data to a preset module. 根據請求項1所述的方法,所述方法還包括: 獲取優化的位姿資料和所述優化的位姿資料的標識資訊; 將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。 According to the method described in claim 1, the method also includes: Obtaining optimized pose data and identification information of the optimized pose data; Updating the pose data corresponding to the identification information of the optimized pose data in the pose data set to the optimized pose data. 根據請求項1或2所述的方法,其中,所述向預設模組發送所述位姿資料集合,至少包括以下之一: 以預設頻率向所述預設模組發送所述位姿資料集合,其中,所述預設頻率高於獲取優化的位姿資料的頻率; 回應於所述位姿資料集合發生更新,向預設模組發送所述位姿資料集合。 The method according to claim 1 or 2, wherein the sending the pose data set to the preset module includes at least one of the following: sending the set of pose data to the preset module at a preset frequency, wherein the preset frequency is higher than the frequency of obtaining optimized pose data; In response to an update of the pose data set, the pose data set is sent to a default module. 根據請求項1或2所述的方法,所述方法還包括: 獲取所述當前位姿資料對應的圖像,其中,所述當前位姿資料對應的圖像是所述相機採集的; 在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像。 According to the method described in claim 1 or 2, the method also includes: Acquiring an image corresponding to the current pose data, wherein the image corresponding to the current pose data is collected by the camera; In the pose data set, images corresponding to the current pose data are stored. 根據請求項4所述的方法,所述方法還包括: 在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至所述預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像。 According to the method described in claim 4, the method also includes: In the case that an image corresponding to any pose data in the pose data set has been sent to the preset module, delete the image corresponding to the pose data from the pose data set picture. 根據請求項2所述的方法,其中, 所述獲取相機的當前位姿資料和所述當前位姿資料的標識資訊,包括:從同步定位與建圖SLAM系統的前端獲取相機的當前位姿資料和所述當前位姿資料的標識資訊; 所述獲取優化的位姿資料和所述優化的位姿資料的標識資訊,包括:從所述SLAM系統的後端獲取優化的位姿資料和所述優化的位姿資料的標識資訊。 According to the method described in claim 2, wherein, The acquiring the current pose data of the camera and the identification information of the current pose data includes: acquiring the current pose data of the camera and the identification information of the current pose data from the front end of the synchronous positioning and mapping SLAM system; The obtaining the optimized pose data and the identification information of the optimized pose data includes: obtaining the optimized pose data and the identification information of the optimized pose data from the back end of the SLAM system. 根據請求項1或2所述的方法,其中,所述當前位姿資料包括經過滑動視窗處理的當前位姿資料。The method according to claim 1 or 2, wherein the current pose data includes current pose data processed through a sliding window. 一種視覺定位方法,包括: 獲取相機的當前位姿資料和所述當前位姿資料的標識資訊; 在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新; 根據所述位姿資料集合,得到視覺定位結果。 A visual positioning method, comprising: Obtaining the current pose data of the camera and the identification information of the current pose data; In the pose data set, store the current pose data and the identification information of the current pose data, wherein any pose data in the pose data set can be based on the any pose The identification information of the data is updated; According to the set of pose data, a visual positioning result is obtained. 根據請求項8所述的方法,其中,所述根據所述位姿資料集合,得到視覺定位結果,包括: 根據所述位姿資料集合,得到至少一個錨點的位置資訊; 根據所述至少一個錨點的位置資訊,得到視覺定位結果。 According to the method described in claim 8, wherein said obtaining a visual positioning result according to the set of pose data includes: Obtain position information of at least one anchor point according to the set of pose data; According to the position information of the at least one anchor point, a visual positioning result is obtained. 根據請求項9所述的方法,其中, 所述視覺定位結果包括測量結果; 所述根據所述至少一個錨點的位置資訊,得到視覺定位結果,包括:根據待測量對象上的多個錨點的位置資訊,得到所述待測量對象的測量結果。 The method according to claim 9, wherein, The visual positioning results include measurement results; The obtaining the visual positioning result according to the position information of the at least one anchor point includes: obtaining the measurement result of the object to be measured according to the position information of multiple anchor points on the object to be measured. 根據請求項9所述的方法,其中, 所述視覺定位結果包括三維場景的重建結果; 所述根據所述至少一個錨點的位置資訊,得到視覺定位結果,包括:根據三維場景中的多個錨點的位置資訊,得到所述三維場景的重建結果。 The method according to claim 9, wherein, The visual positioning result includes a reconstruction result of a three-dimensional scene; The obtaining the visual positioning result according to the position information of the at least one anchor point includes: obtaining the reconstruction result of the 3D scene according to the position information of multiple anchor points in the 3D scene. 根據請求項8至11中任一項所述的方法,所述方法還包括: 獲取優化的位姿資料和所述優化的位姿資料的標識資訊; 將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。 According to the method described in any one of claims 8 to 11, the method further comprises: Obtaining optimized pose data and identification information of the optimized pose data; Updating the pose data corresponding to the identification information of the optimized pose data in the pose data set to the optimized pose data. 根據請求項8至11中任一項所述的方法,所述方法還包括: 獲取所述當前位姿資料對應的圖像,其中,所述當前位姿資料對應的圖像是所述相機採集的; 在所述位姿資料集合中,儲存與所述當前位姿資料對應的圖像。 According to the method described in any one of claims 8 to 11, the method further comprises: Acquiring an image corresponding to the current pose data, wherein the image corresponding to the current pose data is collected by the camera; In the pose data set, images corresponding to the current pose data are stored. 根據請求項13所述的方法,所述方法還包括: 在與所述位姿資料集合中的任一位姿資料對應的圖像已發送至預設模組的情況下,從所述位姿資料集合中刪除與所述位姿資料對應的圖像 According to the method described in claim 13, the method further comprises: In the case that an image corresponding to any pose data in the pose data set has been sent to a preset module, delete the image corresponding to the pose data from the pose data set 一種視覺定位系統,包括: 前端,配置為獲得相機的當前位姿資料,並將所述當前位姿資料和所述當前位姿資料的標識資訊發送至介面; 所述介面,配置為在位姿資料集合中,儲存所述當前位姿資料及所述當前位姿資料的標識資訊,並向預設模組發送所述位姿資料集合,其中,所述位姿資料集合中的任一項位姿資料能夠基於所述任一項位姿資料的標識資訊進行更新; 所述預設模組,配置為根據所述位姿資料集合,得到視覺定位結果。 A visual positioning system comprising: The front end is configured to obtain the current pose data of the camera, and send the current pose data and the identification information of the current pose data to the interface; The interface is configured to store the current pose data and the identification information of the current pose data in the pose data set, and send the pose data set to a default module, wherein the pose Any item of pose data in the pose data set can be updated based on the identification information of any one of the pose data; The preset module is configured to obtain a visual positioning result according to the pose data set. 根據請求項15所述的視覺定位系統,還包括: 後端,配置為獲得優化的位姿資料,並將所述優化的位姿資料和所述優化的位姿資料的標識資訊發送至所述介面; 所述介面還配置為:將所述位姿資料集合中與所述優化的位姿資料的標識資訊對應的位姿資料,更新為所述優化的位姿資料。 According to the visual positioning system described in claim 15, it also includes: The backend is configured to obtain optimized pose data, and send the optimized pose data and identification information of the optimized pose data to the interface; The interface is further configured to: update the pose data corresponding to the identification information of the optimized pose data in the pose data set to the optimized pose data. 一種電子設備,包括: 一個或多個處理器; 配置為儲存可執行指令的記憶體; 其中,所述一個或多個處理器被配置為調用所述記憶體儲存的可執行指令,以執行請求項1至7中任一項所述的方法;或,執行請求項8至14中任一項所述的方法。 An electronic device comprising: one or more processors; memory configured to store executable instructions; Wherein, the one or more processors are configured to call the executable instructions stored in the memory to perform the method described in any one of claim items 1 to 7; or, to perform any one of claim items 8 to 14 one of the methods described. 一種電腦可讀儲存介質,其上儲存有電腦程式指令,其中,所述電腦程式指令被處理器執行時實現請求項1至7中任一項所述的方法;或,所述電腦程式指令被處理器執行時實現請求項8至14中任一項所述的方法。A computer-readable storage medium, on which computer program instructions are stored, wherein, when the computer program instructions are executed by a processor, the method described in any one of claims 1 to 7 is implemented; or, the computer program instructions are executed by The processor realizes the method described in any one of Claims 8 to 14 when executed.
TW110147055A 2021-04-15 2021-12-15 Processing method and interface system equipment and computer readable storage medium of pose date TW202242806A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110405996.4 2021-04-15
CN202110405996.4A CN112948411B (en) 2021-04-15 2021-04-15 Pose data processing method, interface, device, system, equipment and medium

Publications (1)

Publication Number Publication Date
TW202242806A true TW202242806A (en) 2022-11-01

Family

ID=76232745

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110147055A TW202242806A (en) 2021-04-15 2021-12-15 Processing method and interface system equipment and computer readable storage medium of pose date

Country Status (3)

Country Link
CN (1) CN112948411B (en)
TW (1) TW202242806A (en)
WO (1) WO2022217882A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948411B (en) * 2021-04-15 2022-10-18 深圳市慧鲤科技有限公司 Pose data processing method, interface, device, system, equipment and medium

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107063264A (en) * 2017-04-13 2017-08-18 杭州申昊科技股份有限公司 A kind of robot map creating method suitable for extensive substation
CN107862720B (en) * 2017-11-24 2020-05-22 北京华捷艾米科技有限公司 Pose optimization method and pose optimization system based on multi-map fusion
CN108095758A (en) * 2017-12-22 2018-06-01 飞依诺科技(苏州)有限公司 A kind of ultrasonic scan probe location real time updating method and system
CN109035303B (en) * 2018-08-03 2021-06-08 百度在线网络技术(北京)有限公司 SLAM system camera tracking method and device, and computer readable storage medium
CN109186596B (en) * 2018-08-14 2020-11-10 深圳清华大学研究院 IMU measurement data generation method, system, computer device and readable storage medium
CN109729278B (en) * 2018-11-19 2020-12-25 魔门塔(苏州)科技有限公司 Remote multi-sensor synchronous receiving device capable of setting transmission rate of each channel
CN111489393B (en) * 2019-01-28 2023-06-02 速感科技(北京)有限公司 VSLAM method, controller and mobile device
CN109870157B (en) * 2019-02-20 2021-11-02 苏州风图智能科技有限公司 Method and device for determining pose of vehicle body and mapping method
US10955245B2 (en) * 2019-04-30 2021-03-23 Samsung Electronics Co., Ltd. System and method for low latency, high performance pose fusion
CN111951325B (en) * 2019-05-14 2024-01-12 虹软科技股份有限公司 Pose tracking method, pose tracking device and electronic equipment
CN110118554B (en) * 2019-05-16 2021-07-16 达闼机器人有限公司 SLAM method, apparatus, storage medium and device based on visual inertia
CN211878189U (en) * 2019-06-26 2020-11-06 南京航空航天大学 Ground-air cooperative vision navigation device based on improved map optimization SLAM
CN110261877B (en) * 2019-06-26 2024-06-11 南京航空航天大学 Ground-air collaborative visual navigation method and device based on improved graph optimization SLAM
CN110533694B (en) * 2019-08-30 2024-02-09 腾讯科技(深圳)有限公司 Image processing method, device, terminal and storage medium
CN110926334B (en) * 2019-11-29 2022-02-22 深圳市商汤科技有限公司 Measuring method, measuring device, electronic device and storage medium
CN111442722B (en) * 2020-03-26 2022-05-17 达闼机器人股份有限公司 Positioning method, positioning device, storage medium and electronic equipment
CN114814872A (en) * 2020-08-17 2022-07-29 浙江商汤科技开发有限公司 Pose determination method and device, electronic equipment and storage medium
CN112230242B (en) * 2020-09-30 2023-04-25 深兰人工智能(深圳)有限公司 Pose estimation system and method
CN112270754B (en) * 2020-11-12 2024-06-18 Oppo广东移动通信有限公司 Local grid map construction method and device, readable medium and electronic equipment
CN112529957A (en) * 2020-12-08 2021-03-19 北京地平线信息技术有限公司 Method and device for determining pose of camera device, storage medium and electronic device
CN112948411B (en) * 2021-04-15 2022-10-18 深圳市慧鲤科技有限公司 Pose data processing method, interface, device, system, equipment and medium

Also Published As

Publication number Publication date
WO2022217882A1 (en) 2022-10-20
CN112948411B (en) 2022-10-18
CN112948411A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
US10652462B2 (en) Method and system for 360 degree video coverage visualization
KR102220443B1 (en) Apparatas and method for using a depth information in an electronic device
CN112074797A (en) System and method for anchoring virtual objects to physical locations
KR20160035248A (en) Method for providing a virtual object and electronic device thereof
US9367761B2 (en) Electronic device and object recognition method in electronic device
KR20180013277A (en) Electronic apparatus for displaying graphic object and computer readable recording medium
CN110296686B (en) Vision-based positioning method, device and equipment
CN112991553B (en) Information display method and device, electronic equipment and storage medium
CN111401230B (en) Gesture estimation method and device, electronic equipment and storage medium
TWI767217B (en) Coordinate system alignment method and apparatus, electronic device and computer-readable storage medium
CN112432637B (en) Positioning method and device, electronic equipment and storage medium
US10885682B2 (en) Method and device for creating indoor environment map
WO2022134475A1 (en) Point cloud map construction method and apparatus, electronic device, storage medium and program
CN111860373B (en) Target detection method and device, electronic equipment and storage medium
CN111652675A (en) Display method and device and electronic equipment
CN112307363A (en) Virtual-real fusion display method and device, electronic equipment and storage medium
WO2022179080A1 (en) Positioning method and apparatus, electronic device, storage medium, program and product
TW202242806A (en) Processing method and interface system equipment and computer readable storage medium of pose date
WO2022110785A1 (en) Positioning method and apparatus, electronic device, storage medium, computer program product, and computer program
KR20180082273A (en) Computer readable recording medium and electronic apparatus for performing video call
CN112837372A (en) Data generation method and device, electronic equipment and storage medium
CN113611152A (en) Parking lot navigation method and device, electronic equipment and storage medium
CN112767541A (en) Three-dimensional reconstruction method and device, electronic equipment and storage medium
CN111710046A (en) Interaction method and device and electronic equipment
CN112700468A (en) Pose determination method and device, electronic equipment and storage medium