TWI712004B - Coordinate system calibration method and device of augmented reality equipment - Google Patents

Coordinate system calibration method and device of augmented reality equipment Download PDF

Info

Publication number
TWI712004B
TWI712004B TW108116870A TW108116870A TWI712004B TW I712004 B TWI712004 B TW I712004B TW 108116870 A TW108116870 A TW 108116870A TW 108116870 A TW108116870 A TW 108116870A TW I712004 B TWI712004 B TW I712004B
Authority
TW
Taiwan
Prior art keywords
coordinate system
real
augmented reality
image
coordinate
Prior art date
Application number
TW108116870A
Other languages
Chinese (zh)
Other versions
TW202008305A (en
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 TW202008305A publication Critical patent/TW202008305A/en
Application granted granted Critical
Publication of TWI712004B publication Critical patent/TWI712004B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • G06T3/604Rotation of whole images or parts thereof using coordinate rotation digital computer [CORDIC] devices

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本說明書提供一種擴增實境設備的座標系校準方法及裝置。所述方法包括:利用擴增實境設備掃描預設圖案,獲取擴增實境設備中所述預設圖案的圖像資訊;獲取所述圖像資訊中的參考點在所述擴增實境設備的圖像座標系中的圖像座標資訊,和所述參考點在真實座標系中的真實座標資訊;基於所述圖像座標資訊、所述真實座標資訊,獲得所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係,根據所述轉換關係將所述設備座標系進行校準。利用本說明書中各個實施例,可以不限制AR設備設置在同一個位置、同一個姿勢進行AR座標系的校準,操作方便,實用性強,滿足了不同位置用戶的AR設備的座標系校準的需求。 This manual provides a coordinate system calibration method and device for augmented reality equipment. The method includes: using an augmented reality device to scan a preset pattern to obtain image information of the preset pattern in the augmented reality device; and acquiring a reference point in the image information in the augmented reality device The image coordinate information in the image coordinate system of the device, and the real coordinate information of the reference point in the real coordinate system; based on the image coordinate information and the real coordinate information, the real coordinate system and the real coordinate system are obtained. The conversion relationship between the image coordinate system and the device coordinate system of the augmented reality device, and the device coordinate system is calibrated according to the conversion relationship. By using the various embodiments in this specification, it is possible to calibrate the AR coordinate system without restricting the AR device to be set in the same position and the same posture. The operation is convenient and the practicability is strong, which meets the needs of the coordinate system calibration of the AR device of users in different locations. .

Description

擴增實境設備的座標系校準方法及裝置 Coordinate system calibration method and device of augmented reality equipment

本說明書屬於擴增實境技術領域,尤其涉及一種擴增實境設備的座標系校準方法及裝置。 This specification belongs to the field of augmented reality technology, and in particular relates to a coordinate system calibration method and device for augmented reality equipment.

隨著科技的發展,擴增實境技術即AR(Augmented Reality)技術的應用越來越多,AR技術將虛擬的資訊應用到真實世界,真實的環境和虛擬的物體即時地疊加到了同一個畫面或空間同時存在,人們可以利用AR設備體驗虛擬與現實結合的場景。 With the development of science and technology, there are more and more applications of augmented reality technology, namely AR (Augmented Reality) technology. AR technology applies virtual information to the real world. The real environment and virtual objects are instantly superimposed on the same screen. Or the space exists at the same time, and people can use AR equipment to experience the combination of virtual and reality.

但是,AR設備中的AR座標系通常是與AR設備初始化時的姿勢、位置相關,不同的AR設備在初始化時位置和姿勢不同,AR座標系可能就會不同。不同的用戶之間無法在同一個AR空間下進行互動,因此,AR應用通常是單機應用。現有技術中,對於AR設備的座標系校準的方法,通常是將各個設備放置在同一個位置,保持同一個姿勢,再將設備進行初始化。可以看出,這種方法局限性比較強,操作不方便,不能實現不同位置的用戶的AR座標系的校準。因此,極需一種能夠方便多個AR設備座標系校準的實施方案。 However, the AR coordinate system in the AR device is usually related to the posture and position of the AR device when it is initialized. Different AR devices have different positions and postures during initialization, and the AR coordinate system may be different. Different users cannot interact in the same AR space. Therefore, AR applications are usually stand-alone applications. In the prior art, the method for calibrating the coordinate system of an AR device is usually to place each device in the same position, maintain the same posture, and then initialize the device. It can be seen that this method has relatively strong limitations, inconvenient operation, and cannot realize the calibration of the AR coordinate system of users in different positions. Therefore, there is a great need for an implementation solution that can facilitate the calibration of multiple AR equipment coordinate systems.

本說明書目的在於提供一種擴增實境設備的座標系校準方法及裝置,方法簡單,實現了不同的AR設備的AR座標系的校準。 The purpose of this specification is to provide a coordinate system calibration method and device for augmented reality equipment. The method is simple and realizes the calibration of the AR coordinate system of different AR equipment.

一方面本說明書實施例提供了一種擴增實境設備的座標系校準方法,包括:利用擴增實境設備掃描預設圖案,獲取擴增實境設備中所述預設圖案的圖像資訊;獲取所述圖像資訊中的參考點在所述擴增實境設備的圖像座標系中的圖像座標資訊,和所述參考點在真實座標系中的真實座標資訊;基於所述圖像座標資訊、所述真實座標資訊,確定所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係;根據所述轉換關係將所述設備座標系進行校準。 On the one hand, an embodiment of the present specification provides a coordinate system calibration method of an augmented reality device, which includes: scanning a preset pattern with the augmented reality device to obtain image information of the preset pattern in the augmented reality device; Obtain the image coordinate information of the reference point in the image information in the image coordinate system of the augmented reality device, and the real coordinate information of the reference point in the real coordinate system; based on the image The coordinate information, the real coordinate information, determine the conversion relationship between the real coordinate system, the image coordinate system, and the device coordinate system of the augmented reality device; according to the conversion relationship, the device coordinate system Department for calibration.

進一步地,所述方法的另一個實施例中,所述參考點在真實座標系中的真實座標資訊獲取方法包括:確定所述圖像資訊中的標定點;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座標資訊。 Further, in another embodiment of the method, the method for acquiring the real coordinate information of the reference point in the real coordinate system includes: determining a calibration point in the image information; The relative position between the reference point and the calibration point determines the real coordinate information of the reference point in the real coordinate system.

進一步地,所述方法的另一個實施例中,所述確定所述圖像資訊中的標定點包括: 選取一個所述參考點作為所述標定點;相應地,所述確定所述參考點在所述真實座標系中的真實座標資訊,包括:以所述標定點為座標原點,選取所述標定點之外的兩個參考點與所述標定點的連線所在的直線作為座標軸,構建所述真實座標系;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座標資訊。 Further, in another embodiment of the method, the determining the calibration point in the image information includes: Selecting one of the reference points as the calibration point; accordingly, the determining the real coordinate information of the reference point in the real coordinate system includes: taking the calibration point as the origin of the coordinate, and selecting the calibration point The straight line connecting the two reference points outside the fixed point and the calibration point is used as the coordinate axis to construct the real coordinate system; according to the relative position between the reference point and the calibration point in the preset pattern To determine the real coordinate information of the reference point in the real coordinate system.

進一步地,所述方法的另一個實施例中,所述確定所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係包括:獲取所述擴增實境設備的所述設備座標系轉換為所述圖像座標系的設備轉換矩陣;根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,計算所述真實座標系轉變為所述圖像座標系的真實轉換矩陣;相應地,所述根據所述轉換關係將所述設備座標系進行校準的方法包括:根據所述設備轉換矩陣、所述真實轉換矩陣,將所述設備座標系進行校準。 Further, in another embodiment of the method, the determining the conversion relationship between the real coordinate system, the image coordinate system, and the device coordinate system of the augmented reality device includes: acquiring the The device coordinate system of the augmented reality device is converted into a device conversion matrix of the image coordinate system; according to the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device, Calculating the real conversion matrix that transforms the real coordinate system into the image coordinate system; correspondingly, the method for calibrating the device coordinate system according to the conversion relationship includes: according to the device conversion matrix, the The real conversion matrix is used to calibrate the coordinate system of the device.

進一步地,所述方法的另一個實施例中,所述根據所述設備轉換矩陣、所述真實轉換矩陣,將所述設備座標系進行校準,包括: 按照下述公式實現第一擴增實境設備和第二擴增實境設備的設備座標系的校準:P cameraA_real -1 P cameraA_AR O ARA =P cameraB_real -1 P cameraB_AR O ARB Further, in another embodiment of the method, the calibrating the device coordinate system according to the device conversion matrix and the real conversion matrix includes: implementing the first augmented reality according to the following formula Calibration of the device coordinate system of the device and the second augmented reality device: P cameraA_real -1 P cameraA_AR O ARA =P cameraB_real -1 P cameraB_AR O ARB

上式中,P cameraA_real 表示所述第一擴增實境設備對應的真實轉換矩陣,P cameraA_AR 表示所述第一擴增實境設備對應的設備轉換矩陣,O ARA 表示點O在所述第一擴增實境設備的設備座標系中的座標,P cameraB_real 表示所述第二擴增實境設備對應的真實轉換矩陣,P cameraB_AR 表示所述第二擴增實境設備對應的設備轉換矩陣,O ARB 表示點O在所述第二擴增實境設備的設備座標系中的座標。 In the above formula, P cameraA_real represents the real conversion matrix corresponding to the first augmented reality device, P cameraA_AR represents the device conversion matrix corresponding to the first augmented reality device, and O ARA represents the point O in the first augmented reality device. amplification device coordinate system reality device coordinates, P cameraB_real represents the second augmented reality device corresponding to the true transformation matrix, P cameraB_AR augmented reality represents the second device corresponds to the device transformation matrix, O ARB represents the coordinate of point O in the device coordinate system of the second augmented reality device.

進一步地,所述方法的另一個實施例中,所述根據所述轉換關係將所述設備座標系進行校準的方法還包括:若進行設備座標系校準的擴增實境設備大於2個,則以其中任意一個擴增實境設備的設備座標系為基準進行設備座標系的校準。 Further, in another embodiment of the method, the method for calibrating the device coordinate system according to the conversion relationship further includes: if there are more than two augmented reality devices for performing device coordinate system calibration, then The device coordinate system is calibrated based on the device coordinate system of any one of the augmented reality devices.

進一步地,所述方法的另一個實施例中,所述根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,計算所述真實座標系轉變為所述圖像座標系的真實轉換矩陣,包括:根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,利用SolvePnP演算法,計算獲得所述真實轉換矩陣。 Further, in another embodiment of the method, the calculation of the conversion of the real coordinate system into the real coordinate system based on the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device The real conversion matrix of the image coordinate system includes: according to the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device, the real conversion matrix is calculated by using the SolvePnP algorithm .

進一步地,所述方法的另一個實施例中,所述預設圖案包括二維碼、條碼中的至少一種。 Further, in another embodiment of the method, the preset pattern includes at least one of a two-dimensional code and a barcode.

另一方面,本說明書提供了擴增實境設備的座標系校準裝置,包括:圖像資訊獲取模組,用於利用擴增實境設備掃描預設圖案,獲取擴增實境設備中所述預設圖案的圖像資訊;座標資訊獲取模組,用於獲取所述圖像資訊中的參考點在所述擴增實境設備的圖像座標系中的圖像座標資訊,和所述參考點在真實座標系中的真實座標資訊;轉換關係確定模組,用於基於所述圖像座標資訊、所述真實座標資訊,獲得所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係;設備座標系校準模組,用於根據所述轉換關係將所述設備座標系進行校準。 On the other hand, this specification provides a coordinate system calibration device for augmented reality equipment, including: an image information acquisition module, which is used to scan a preset pattern with the augmented reality equipment to obtain the information described in the augmented reality equipment Image information of a preset pattern; a coordinate information acquisition module for acquiring image coordinate information of a reference point in the image information in the image coordinate system of the augmented reality device, and the reference Point on the real coordinate information in the real coordinate system; the conversion relationship determination module is used to obtain the real coordinate system, the image coordinate system, and the expansion based on the image coordinate information and the real coordinate information The conversion relationship between the device coordinate systems of the augmented reality device; the device coordinate system calibration module is used to calibrate the device coordinate system according to the conversion relationship.

進一步地,所述裝置的另一個實施例中,所述座標資訊獲取模組包括真實座標獲取單元,所述真實座標獲取單元具體用於:確定所述圖像資訊中的標定點;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座標資訊。 Further, in another embodiment of the device, the coordinate information acquisition module includes a real coordinate acquisition unit, and the real coordinate acquisition unit is specifically configured to: determine a calibration point in the image information; The relative position between the reference point and the calibration point in the preset pattern determines the real coordinate information of the reference point in the real coordinate system.

進一步地,所述裝置的另一個實施例中,所述真實座標獲取單元還用於:選取一個所述參考點作為所述標定點;以所述標定點為座標原點,選取所述標定點之外的兩個參考點與所述標定點的連線所在的直線作為座標軸,構 建所述真實座標系;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座標資訊。 Further, in another embodiment of the device, the real coordinate acquisition unit is further configured to: select one of the reference points as the calibration point; use the calibration point as the coordinate origin to select the calibration point The line connecting the two other reference points and the calibration point is used as the coordinate axis to construct Establishing the real coordinate system; and determining the real coordinate information of the reference point in the real coordinate system according to the relative position between the reference point and the calibration point in the preset pattern.

進一步地,所述裝置的另一個實施例中,所述轉換關係確定模組包括:設備轉換矩陣計算單元,用於獲取所述擴增實境設備的所述設備座標系轉換為所述圖像座標系的設備轉換矩陣;真實轉換矩陣計算單元,用於根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,計算所述真實座標系轉變為所述圖像座標系的真實轉換矩陣;相應地,所述設備座標系校準模組用於根據所述設備轉換矩陣、所述真實轉換矩陣,將所述設備座標系進行校準。 Further, in another embodiment of the apparatus, the conversion relationship determination module includes: a device conversion matrix calculation unit configured to obtain the device coordinate system of the augmented reality device and convert it into the image The device conversion matrix of the coordinate system; the real conversion matrix calculation unit is used to calculate the conversion of the real coordinate system into the real coordinate system according to the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device The real conversion matrix of the image coordinate system; accordingly, the device coordinate system calibration module is used to calibrate the device coordinate system according to the device conversion matrix and the real conversion matrix.

進一步地,所述裝置的另一個實施例中,所述設備座標系校準模組具體用於:按照下述公式實現第一擴增實境設備和第二擴增實境設備的設備座標系的校準:P cameraA_real -1 P cameraA_AR O ARA =P cameraB_real -1 P cameraB_AR O ARB Further, in another embodiment of the apparatus, the device coordinate system calibration module is specifically configured to: implement the device coordinate system of the first augmented reality device and the second augmented reality device according to the following formula Calibration: P cameraA_real -1 P cameraA_AR O ARA =P cameraB_real -1 P cameraB_AR O ARB

上式中,P cameraA_real 表示所述第一擴增實境設備對應的真實轉換矩陣,P cameraA_AR 表示所述第一擴增實境設備對應的設備轉換矩陣,O ARA 表示點O在所述第一擴增實境設備 的設備座標系中的座標,P cameraB_real 表示所述第二擴增實境設備對應的真實轉換矩陣,P cameraB_AR 表示所述第二擴增實境設備對應的設備轉換矩陣,O ARB 表示點O在所述第二擴增實境設備的設備座標系中的座標。 In the above formula, P cameraA_real represents the real conversion matrix corresponding to the first augmented reality device, P cameraA_AR represents the device conversion matrix corresponding to the first augmented reality device, and O ARA represents the point O in the first augmented reality device. amplification device coordinate system reality device coordinates, P cameraB_real represents the second augmented reality device corresponding to the true transformation matrix, P cameraB_AR augmented reality represents the second device corresponds to the device transformation matrix, O ARB represents the coordinate of point O in the device coordinate system of the second augmented reality device.

進一步地,所述裝置的另一個實施例中,所述設備座標系校準模組還用於:若進行設備座標系校準的擴增實境設備大於2個,則以其中任意一個擴增實境設備的設備座標系為基準進行設備座標系的校準。 Further, in another embodiment of the device, the device coordinate system calibration module is further used for: if there are more than two augmented reality devices for performing device coordinate system calibration, use any one of them to augment reality The equipment coordinate system of the equipment is used as a reference to calibrate the equipment coordinate system.

進一步地,所述裝置的另一個實施例中,所述座標系校準處理單元具體用於:根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,利用SolvePnP演算法,計算獲得所述真實轉換矩陣。 Further, in another embodiment of the device, the coordinate system calibration processing unit is specifically configured to: according to the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device, The SolvePnP algorithm is used to calculate the true conversion matrix.

進一步地,所述裝置的另一個實施例中,所述圖像資訊獲取模組獲取到的所述預設圖案的圖像資訊中的預設圖案包括二維碼、條碼中的至少一種。 Further, in another embodiment of the device, the preset pattern in the image information of the preset pattern acquired by the image information acquisition module includes at least one of a two-dimensional code and a barcode.

再一方面,本說明書實施例提供了一種電腦儲存媒體,其上儲存有電腦程式,所述電腦程式被執行時,實現申請專利範圍中擴增實境設備的座標系校準方法。 In another aspect, the embodiments of the present specification provide a computer storage medium with a computer program stored thereon, and when the computer program is executed, the coordinate system calibration method of the augmented reality device in the scope of the patent application is realized.

又一方面,本說明書實施例提供了擴增實境設備的座標系校準系統,包括至少一個處理器以及用於儲存處理器可執行指令的儲存器,所述處理器執行所述指令時實現上述擴增實境設備的座標系校準方法。 In another aspect, an embodiment of the present specification provides a coordinate system calibration system for augmented reality equipment, which includes at least one processor and a memory for storing executable instructions of the processor. The processor implements the foregoing when executing the instructions. The coordinate system calibration method of augmented reality equipment.

本說明書提供的擴增實境設備的座標系校準方法、裝 置、系統,基於不同AR設備中的預設圖案的圖像資訊,可以獲得AR設備的圖像座標系、AR座標系、真實座標系之間的轉換關係,根據各座標系之間的轉換關係可以實現不同AR設備的AR座標系的校準,使得不同的用戶可以共享虛擬物體的位置、方向,得到相同的體驗,使得多用戶之間的AR體驗互動成為可能,為後續AR應用的連線開發提供了理論基礎。本說明實施例提供的方法可以不限制AR設備設置在同一個位置、保持同一個姿勢進行AR座標系的校準,操作方便,實用性強,滿足了不同位置用戶的AR設備的座標系校準的需求。 The coordinate system calibration method and equipment of the augmented reality equipment provided in this manual Based on the image information of the preset patterns in different AR devices, the conversion relationship between the image coordinate system, AR coordinate system, and real coordinate system of the AR device can be obtained, according to the conversion relationship between each coordinate system The AR coordinate system of different AR devices can be calibrated, so that different users can share the position and direction of virtual objects and get the same experience, making AR experience interaction between multiple users possible, and developing for subsequent AR applications. Provide a theoretical basis. The method provided by the embodiment of this description can perform AR coordinate system calibration without restricting the AR device to be set in the same position and maintaining the same posture. It is easy to operate and has strong practicability, and meets the needs of the coordinate system calibration of AR devices of users in different locations. .

S2-S8:步驟 S2-S8: steps

41:圖像資訊獲取模組 41: Image information acquisition module

42:座標資訊獲取模組 42: Coordinate information acquisition module

43:轉換關係確定模組 43: Conversion relationship determination module

44:設備座標系校準模組 44: Equipment coordinate system calibration module

51:設備轉換矩陣計算單元 51: Device conversion matrix calculation unit

52:真實轉換矩陣計算單元 52: Real conversion matrix calculation unit

61:處理器 61: processor

62:儲存器 62: Storage

63:匯流排 63: Bus

為了更清楚地說明本說明書實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的圖式作簡單地介紹,顯而易見地,下面描述中的圖式僅僅是本說明書中記載的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動性的前提下,還可以根據這些圖式獲得其他的圖式。 In order to more clearly explain the technical solutions in the embodiments of this specification or the prior art, the following will briefly introduce the drawings that need to be used in the embodiments or the description of the prior art. Obviously, the drawings in the following description are merely the present For some of the embodiments described in the specification, for those of ordinary skill in the art, without creative labor, other schemes can be obtained from these schemes.

圖1是本說明書提供的一個實施例中的擴增實境設備的座標系校準方法的流程示意圖;圖2是本說明書一個實施例中利用二維碼圖像構建真實座標系的示意圖;圖3是本說明書又一個實施例中擴增實境設備的座標系校準方法的流程示意圖; 圖4是本說明書提供的擴增實境設備的座標系校準裝置一個實施例的模組結構示意圖;圖5是本說明一個實施例中設備座標系校準模組的結構示意圖;圖6是本說明書提供的一種擴增實境設備的座標系校準系統實施例的模組結構示意圖。 Fig. 1 is a schematic flow chart of the coordinate system calibration method of an augmented reality device in an embodiment provided in this specification; Fig. 2 is a schematic diagram of constructing a real coordinate system using a two-dimensional code image in an embodiment of this specification; Fig. 3 It is a schematic flow diagram of the coordinate system calibration method of the augmented reality device in another embodiment of this specification; 4 is a schematic diagram of the module structure of an embodiment of the coordinate system calibration device for augmented reality equipment provided in this specification; FIG. 5 is a schematic diagram of the structure of the device coordinate system calibration module in an embodiment of this specification; FIG. 6 is this specification A schematic diagram of the module structure of an embodiment of a coordinate system calibration system for augmented reality equipment is provided.

為了使本技術領域的人員更好地理解本說明書中的技術方案,下面將結合本說明書實施例中的圖式,對本說明書實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本說明書一部分實施例,而不是全部的實施例。基於本說明書中的實施例,本領域普通技術人員在沒有作出創造性勞動前提下所獲得的所有其他實施例,都應當屬於本說明書保護的範圍。 In order to enable those skilled in the art to better understand the technical solutions in this specification, the following will clearly and completely describe the technical solutions in the embodiments of this specification in conjunction with the drawings in the embodiments of this specification. Obviously, the described The embodiments are only a part of the embodiments in this specification, rather than all the embodiments. Based on the embodiments in this specification, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this specification.

擴增實境技術即AR技術在工程、醫療、軍事、航海航空中的應用也越來越多,應用AR技術開發的應用程式也越來越多,如:蘋果公司推出的一款擴增實境應用程式軟體開發工具包ARKit。本說明書實施例中的擴增實境設備也可以稱為AR設備,可以包括帶有AR應用的用戶端,如:智慧手機、平板電腦、智慧可穿戴設備(智慧手錶、虛擬實境眼鏡、虛擬實境頭盔等)等電子設備。 Augmented reality technology, that is, AR technology is increasingly used in engineering, medical, military, navigation and aviation, and more and more applications developed using AR technology, such as an augmented reality launched by Apple Environment application software development kit ARKit. The augmented reality device in the embodiments of this specification may also be called an AR device, and may include a user terminal with AR applications, such as smart phones, tablets, smart wearable devices (smart watches, virtual reality glasses, virtual Reality helmets, etc.) and other electronic equipment.

在使用AR設備時,需要確定出AR設備中的設備座標系(即AR座標系),AR座標系是AR設備中的Camera(相機) 座標系(即本說明書實施例中的圖像座標系)與真實世界的真實座標系之間的橋樑。AR設備可以實現虛擬世界與真實世界進行互動,利用AR設備中的AR座標系可以將虛擬世界與真實世界連接起來。通常情況下AR設備中的AR座標系是AR設備初始化成功後AR設備中的Camera在真實世界中的位置,AR座標系的Y軸的方向是重力的反方向,X軸、Z軸的方向與AR設備的姿勢相關。因此,即使是同一台AR設備,在啟動過程中只要AR設備的位置發生變化或者AR設備的姿勢有所不同,初始化後的AR座標系就會有所差異。因此,不同AR設備之間不能共享虛擬物體的位置、方向,這樣就會造成AR體驗的孤立,不同用戶之間無法在同一個AR空間下進行互動。 When using an AR device, you need to determine the device coordinate system in the AR device (that is, the AR coordinate system), and the AR coordinate system is the Camera in the AR device A bridge between the coordinate system (that is, the image coordinate system in the embodiment of this specification) and the real coordinate system of the real world. The AR device can realize the interaction between the virtual world and the real world, and the virtual world can be connected with the real world by using the AR coordinate system in the AR device. Under normal circumstances, the AR coordinate system in the AR device is the position of the Camera in the AR device in the real world after the AR device is successfully initialized. The direction of the Y axis of the AR coordinate system is the opposite direction of gravity, and the directions of the X axis and Z axis are the same as The posture of the AR device is related. Therefore, even for the same AR device, as long as the position of the AR device changes or the posture of the AR device is different during the startup process, the AR coordinate system after initialization will be different. Therefore, different AR devices cannot share the position and direction of virtual objects, which will cause the isolation of the AR experience, and different users cannot interact in the same AR space.

本說明書實施例提供的擴增實境設備的座標系校準方法,將不同的AR設備掃描預設圖案,基於AR設備中掃描到的預設圖案的圖像資訊,可以獲得AR設備的AR座標系、真實座標系以及圖像座標系之間的轉換關係,根據座標系之間的轉換關係,可以實現不同的AR設備的AR座標系的校準。對於AR設備的位置、姿勢不需要進行限定,可以不需要將不同的AR設備固定在同一個固定點、保持同一個姿勢實現AR設備的座標系的校準。方法簡單靈活,適用性廣,滿足了不同用戶之間AR設備座標系校準的需求。 The coordinate system calibration method of the augmented reality device provided by the embodiment of this specification scans different AR devices with preset patterns. Based on the image information of the preset patterns scanned in the AR device, the AR coordinate system of the AR device can be obtained. , The conversion relationship between the real coordinate system and the image coordinate system. According to the conversion relationship between the coordinate systems, the calibration of the AR coordinate system of different AR devices can be realized. There is no need to limit the position and posture of the AR device, and it is not necessary to fix different AR devices at the same fixed point and maintain the same posture to realize the calibration of the coordinate system of the AR device. The method is simple, flexible, and has wide applicability, which meets the needs of AR device coordinate system calibration among different users.

具體地,圖1是本說明書提供的一個實施例中的擴增實境設備的座標系校準方法的流程示意圖,如圖1所示, 本說明書實施例提供的擴增實境設備的座標系校準方法,包括: Specifically, FIG. 1 is a schematic flow chart of the coordinate system calibration method of an augmented reality device in an embodiment provided in this specification, as shown in FIG. 1, The coordinate system calibration method of augmented reality equipment provided in the embodiments of this specification includes:

S2、利用擴增實境設備掃描預設圖案,獲取擴增實境設備中所述預設圖案的圖像資訊。 S2. Scan the preset pattern with the augmented reality device to obtain image information of the preset pattern in the augmented reality device.

具體地,可以控制AR設備掃描預設圖案,掃描後對AR設備中的Camera的資料進行處理,即處理Camera中的每一訊框圖像資訊,獲取到AR設備中預設圖案的圖像資訊。在利用AR設備掃描預設圖案時,不同的AR設備可以掃描同一個預設圖案,也可以將預設圖案的圖像(如:照片)等資訊發送至不同的AR設備,或者將預設圖案複製多份,不同的AR設備掃描預設圖案的複製圖像,或者也可以不同的AR設備掃描具有相同圖像特徵並且尺寸相同的圖案。 Specifically, the AR device can be controlled to scan the preset pattern, and the data of the Camera in the AR device can be processed after scanning, that is, the image information of each frame in the Camera is processed to obtain the image information of the preset pattern in the AR device . When using an AR device to scan a preset pattern, different AR devices can scan the same preset pattern, or send information such as images (such as photos) of the preset pattern to different AR devices, or send the preset pattern When copying multiple copies, different AR devices scan the copied image with a preset pattern, or different AR devices may scan patterns with the same image characteristics and the same size.

本說明書一個實施例中預設圖案可以是二維碼、條碼或者其他具有特徵的平面圖案。二維碼、條碼等平面圖案在日常生活中比較常見,比較容易引導用戶使用AR設備掃描預設圖案,對於二維碼或者條碼的掃描用戶比較容易操作。例如:若用戶A、B、C分別位於不同的城市,用戶A、B、C可以共同商定使用同一個二維碼圖像作為預設圖案,用戶A、B、C可以利用各自的AR設備掃描商定的二維碼圖像,用戶A、B、C的AR設備中可以獲得二維碼圖像的圖像資訊。 The preset pattern in an embodiment of this specification may be a two-dimensional code, a barcode, or other characteristic planar patterns. Two-dimensional codes, barcodes and other flat patterns are relatively common in daily life, and it is easier to guide users to use AR devices to scan preset patterns, and it is easier for users to scan QR codes or barcodes. For example: if users A, B, and C are located in different cities, users A, B, and C can jointly agree to use the same QR code image as the preset pattern, and users A, B, and C can use their respective AR devices to scan For the agreed two-dimensional code image, the image information of the two-dimensional code image can be obtained from the AR devices of users A, B, and C.

S4、獲取所述圖像資訊中的參考點在所述擴增實境設備的圖像座標系中的圖像座標資訊,和所述參考點在真實 座標系中的真實座標資訊。 S4. Obtain the image coordinate information of the reference point in the image information in the image coordinate system of the augmented reality device, and the reference point in the real The real coordinate information in the coordinate system.

具體地,可以在預設圖案中選取出參考點,參考點可以是預設圖案中的任意像素點,如:可以是預設圖案中的角點、中心點、或者預設圖案中具有特殊特徵的點等,參考點的數量可以根據實際需要進行設置,如:4個,本說明書實施例不作具體限定。透過分析AR設備中的預設圖案的圖像資訊,可以獲得預設圖案的圖像資訊中的參考點在AR設備的圖像座標系中的圖像座標資訊、以及參考點在真實座標系中的真實座標資訊。參考點在AR設備的圖像座標系中的圖像座標資訊可以透過分析AR設備中預設圖案的圖像資訊,從AR設備的自身系統獲得,如:可以透過AR設備的檢測條碼請求獲得預設圖案的圖像資訊中的參考點在AR設備的圖像座標系中的座標資訊。圖像座標系可以表示AR設備的Camera座標系,真實座標系可以表示真實世界的座標系,真實座標系的具體構建方法可以根據實際需要選擇,本說明書實施例不作具體限定。 Specifically, the reference point can be selected from the preset pattern, and the reference point can be any pixel point in the preset pattern, for example, it can be a corner point, a center point in the preset pattern, or a special feature in the preset pattern The number of reference points can be set according to actual needs, such as four, which is not specifically limited in the embodiment of this specification. By analyzing the image information of the preset pattern in the AR device, it is possible to obtain the image coordinate information of the reference point in the image information of the preset pattern in the image coordinate system of the AR device, and the reference point in the real coordinate system Real coordinate information. The image coordinate information of the reference point in the image coordinate system of the AR device can be obtained from the AR device’s own system by analyzing the image information of the preset pattern in the AR device. For example, it can be obtained through the detection barcode request of the AR device. Let the reference point in the image information of the pattern be the coordinate information in the image coordinate system of the AR device. The image coordinate system can represent the Camera coordinate system of the AR device, the real coordinate system can represent the real world coordinate system, and the specific construction method of the real coordinate system can be selected according to actual needs, and the embodiment of this specification does not specifically limit it.

預設圖案的圖像資訊中的參考點在真實座標系中的座標資訊可以根據預設圖像的實際尺寸以及參考點在預設圖案中的實際位置確定。 The coordinate information of the reference point in the real coordinate system of the image information of the preset pattern can be determined according to the actual size of the preset image and the actual position of the reference point in the preset pattern.

本說明書一個實施例中,所述參考點在真實座標系中的真實座標資訊獲取方法包括:確定所述圖像資訊中的標定點;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座 標資訊。 In an embodiment of the present specification, the method for acquiring real coordinate information of the reference point in the real coordinate system includes: determining a calibration point in the image information; and according to the reference point and the reference point in the preset pattern The relative position between the fixed points determines the real position of the reference point in the real coordinate system Standard information.

其中,標定點可以是參考點中的一個也可以是預設圖案中除去參考點之外的其他像素點。標定點可以用於確定真實座標系的相對位置,可以作為真實座標系中參考點在預設圖案中的基準點。根據標定點和參考點在預設圖案中的相對位置,確定出參考點在真實座標系中的真實座標資訊。例如:可以以標定點為座標原點,構建真實座標系,如:若預設圖案時矩形、方形或平行四邊形,可以將平行於預設圖案的邊長的方向作為座標軸,構建真實座標系,根據預設圖案的實際尺寸,以及參考點在預設圖案中的位置,確定出參考點的真實座標資訊。 Wherein, the calibration point may be one of the reference points or other pixel points in the preset pattern except the reference point. The calibration point can be used to determine the relative position of the real coordinate system, and can be used as the reference point of the reference point in the real coordinate system in the preset pattern. According to the relative position of the calibration point and the reference point in the preset pattern, the real coordinate information of the reference point in the real coordinate system is determined. For example: the calibration point can be used as the coordinate origin to construct the real coordinate system. For example, if the preset pattern is rectangular, square or parallelogram, the direction parallel to the side length of the preset pattern can be used as the coordinate axis to construct the real coordinate system. According to the actual size of the preset pattern and the position of the reference point in the preset pattern, the real coordinate information of the reference point is determined.

本說明書一個實施例中,所述確定所述圖像資訊中的標定點包括:選取一個所述參考點作為所述標定點;相應地,所述確定所述參考點在所述真實座標系中的真實座標資訊,包括:以所述標定點為座標原點,選取所述標定點之外的兩個參考點與所述標定點的連線所在的直線作為座標軸,構建所述真實座標系;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座標資訊。 In an embodiment of this specification, the determining the calibration point in the image information includes: selecting one of the reference points as the calibration point; correspondingly, the determining that the reference point is in the real coordinate system The real coordinate information includes: taking the calibration point as the origin of the coordinate, and selecting the line connecting two reference points outside the calibration point and the calibration point as the coordinate axis to construct the real coordinate system; Determine the real coordinate information of the reference point in the real coordinate system according to the relative position between the reference point and the calibration point in the preset pattern.

圖2是本說明書一個實施例中利用二維碼圖像構建真實座標系的示意圖,如圖2所示,本說明書一個實施例 中,可以選取二維碼圖像的四個角點作為參考點,並且可以將左下角的參考點作為標定點。以左下角的參考點作為原點,以二維碼圖像中標定點所在的兩個邊長所在的直線作為座標軸,如圖2所示,可以構建出真實座標系,獲得參考點在真實座標系中的真實座標資訊。如:若二維碼圖像的邊長為1分米,則四個參考點在真實座標系中的座標資訊可以表示為:(0,0)、(1,0)、(1,1)、(0,1)。當然,根據實際需要,參考點還可以選擇二維碼圖像中的其他位置,如:二維碼圖像的中心點等,真實座標系的構建方法也可以根據實際需要進行調整,如:可以以二維碼圖像之外的一點作為座標原點構建真實座標系等,本說明書實施例不作具體限定。 Figure 2 is a schematic diagram of using a two-dimensional code image to construct a real coordinate system in an embodiment of this specification. As shown in Figure 2, an embodiment of this specification In, the four corner points of the two-dimensional code image can be selected as reference points, and the reference point in the lower left corner can be used as the calibration point. Take the reference point in the lower left corner as the origin, and use the line with the two side lengths of the calibration point in the two-dimensional code image as the coordinate axis. As shown in Figure 2, a real coordinate system can be constructed and the reference point is in the real coordinate system. The real coordinate information in. For example: if the side length of the two-dimensional code image is 1 decimeter, the coordinate information of the four reference points in the real coordinate system can be expressed as: (0, 0), (1, 0), (1, 1) , (0,1). Of course, according to actual needs, the reference point can also be selected from other positions in the QR code image, such as the center point of the QR code image, etc. The construction method of the real coordinate system can also be adjusted according to actual needs, such as: A point outside the two-dimensional code image is used as a coordinate origin to construct a real coordinate system, etc., which is not specifically limited in the embodiment of this specification.

需要說明的是,本說明書實施例中不同的AR設備的真實座標系的構建方法是相同的,這樣可以確保參考點在不同的AR設備中的真實座標資訊相同。 It should be noted that the method for constructing the real coordinate system of different AR devices in the embodiments of this specification is the same, which can ensure that the real coordinate information of the reference point in different AR devices is the same.

若多個二維碼圖像的尺寸相同,如圖2所示,若選取二維碼圖像的4個角點作為參考點,則不同的AR設備可以掃描尺寸相同的二維碼圖像,獲得預設圖案的圖像資訊。此時,不同的AR設備掃描獲得的二維碼圖像中的參考點的真實座標資訊可以認為是相同的。 If multiple two-dimensional code images have the same size, as shown in Figure 2, if four corner points of the two-dimensional code image are selected as reference points, different AR devices can scan two-dimensional code images of the same size. Obtain the image information of the preset pattern. At this time, the real coordinate information of the reference points in the two-dimensional code images scanned by different AR devices can be considered the same.

S6、基於所述圖像座標資訊、所述真實座標資訊,確定所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係。 S6. Determine a conversion relationship between the real coordinate system, the image coordinate system, and the device coordinate system of the augmented reality device based on the image coordinate information and the real coordinate information.

獲得參考點在AR設備的圖像座標系中的圖像座標資 訊、在真實座標系中的真實座標資訊後,可以透過分析參考點的圖像座標資訊、真實座標資訊,獲得真實座標系、圖像座標系以及AR座標系即設備座標系之間的轉換關係。如:可以根據參考點的真實座標資訊、圖像座標資訊,計算如何將參考點進行偏移、旋轉等操作,能夠將參考點在真實座標系中的真實座標資訊轉換為圖像座標系中的位置,獲得真實座標系和圖像座標系之間的轉換關係。同時,可以利用AR設備系統獲得AR設備的AR座標系與圖像座標系之間的轉換關係,如:可以透過基於OpenGL(開放式圖形介面)中的視圖變換矩陣獲得AR設備的AR座標系與圖像座標系之間的轉換關係,也可以透過ARKit的API(Application Program Interface,應用程式程式化介面)直接獲取AR設備的AR座標系與圖像座標系之間的轉換關係(如:可以透過ARKit的API利用AR Camera中的view Matrix(視點矩陣)獲得)。ARKit可以表示蘋果公司推出的一款擴增實境應用程式軟體開發工具包,API可以表示作業系統留給應用程式的一個呼叫介面。 Obtain the image coordinate data of the reference point in the image coordinate system of the AR device After the real coordinate information in the real coordinate system, the conversion relationship between the real coordinate system, the image coordinate system, and the AR coordinate system, that is, the device coordinate system, can be obtained by analyzing the image coordinate information and the real coordinate information of the reference point . For example, according to the real coordinate information of the reference point and the image coordinate information, how to offset and rotate the reference point can be calculated, and the real coordinate information of the reference point in the real coordinate system can be converted into the image coordinate system. Position to obtain the conversion relationship between the real coordinate system and the image coordinate system. At the same time, the AR device system can be used to obtain the conversion relationship between the AR coordinate system and the image coordinate system of the AR device. For example, the AR coordinate system and the image coordinate system of the AR device can be obtained through the view transformation matrix based on OpenGL (open graphics interface). The conversion relationship between the image coordinate systems can also be directly obtained through the ARKit API (Application Program Interface) to obtain the conversion relationship between the AR coordinate system of the AR device and the image coordinate system (for example, through The ARKit API is obtained using the view Matrix in AR Camera). ARKit can represent an augmented reality application software development kit launched by Apple, and API can represent a call interface left by the operating system to the application.

S8、根據所述轉換關係將所述設備座標系進行校準。 S8. Calibrate the device coordinate system according to the conversion relationship.

本說明書一個實施例中,利用真實座標系和圖像座標系之間的轉換關係、以及AR座標系和圖像座標系之間的轉換關係,可以間接的獲得AR座標系與真實座標系之間的轉換關係,實現了將不同的AR設備的AR座標系校準到真實座標系的,實現了不同AR設備的座標系的校準。 In an embodiment of this specification, the conversion relationship between the real coordinate system and the image coordinate system, and the conversion relationship between the AR coordinate system and the image coordinate system can be used to indirectly obtain the relationship between the AR coordinate system and the real coordinate system The conversion relationship of, realizes the calibration of the AR coordinate system of different AR equipment to the real coordinate system, and realizes the calibration of the coordinate system of different AR equipment.

如:若某個AR設備的真實座標系和圖像座標系之間 的轉換關係為:A×k=B,AR座標系與圖像座標系之間的轉換關係為:C×p=B,其中,A可以表示真實座標系中像素點O的座標,B可以表示圖像座標系中像素點O的座標,C可以表示AR座標系中像素點O的座標,k、p均表示轉換係數。則可以獲得AR座標系和真實座標系之間的轉換關係可以表示為:C=A×(k/p)。可以將AR設備的AR座標系校準到真實座標系中,利用該方法可以對不同的AR設備進行座標系的校準,獲得不同AR設備的AR座標系與真實座標系之間的轉換關係,實現AR設備的座標系的校準,使得不同的AR設備的AR座標系能夠進行統一。 For example, if the real coordinate system of an AR device is between the image coordinate system The conversion relationship of is: A×k=B, the conversion relationship between AR coordinate system and image coordinate system is: C×p=B, where A can represent the coordinate of pixel O in the real coordinate system, and B can represent The coordinates of the pixel O in the image coordinate system, C can represent the coordinates of the pixel O in the AR coordinate system, and k and p both represent conversion coefficients. The conversion relationship between AR coordinate system and real coordinate system can be expressed as: C=A×(k/p). The AR coordinate system of the AR device can be calibrated to the real coordinate system. This method can be used to calibrate the coordinate system of different AR devices to obtain the conversion relationship between the AR coordinate system and the real coordinate system of different AR devices to realize AR The calibration of the coordinate system of the device makes the AR coordinate system of different AR devices unified.

本說明書實施例提供的擴增實境設備的座標系校準方法,基於不同AR設備中的預設圖案的圖像資訊,可以獲得AR設備的圖像座標系、AR座標系、真實座標系之間的轉換關係,根據各座標系之間的轉換關係可以實現不同AR設備的AR座標系的校準,使得不同的用戶可以共享虛擬物體的位置、方向,得到相同的體驗,為後續AR應用的連線開發提供了理論基礎。本說明實施例提供的方法可以不限制AR設備設置在同一個位置、保持同一個姿勢進行AR座標系的校準,操作方便,實用性強,滿足了不同位置用戶的AR設備的座標系校準的需求。 The coordinate system calibration method of the augmented reality device provided in the embodiment of this specification is based on the image information of the preset patterns in different AR devices, and the image coordinate system, the AR coordinate system, and the real coordinate system of the AR device can be obtained. According to the conversion relationship between various coordinate systems, the calibration of the AR coordinate system of different AR devices can be realized, so that different users can share the position and direction of the virtual object and get the same experience, which is the connection for subsequent AR applications Development provides a theoretical basis. The method provided by the embodiment of this description can perform AR coordinate system calibration without restricting the AR device to be set in the same position and maintaining the same posture. It is easy to operate and has strong practicability, and meets the needs of the coordinate system calibration of AR devices of users in different locations. .

在上述實施例的基礎上,本說明書一個實施例中,所述確定所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係包括:獲取所述擴增實境設備的所述設備座標系轉換為所述 圖像座標系的設備轉換矩陣;根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,計算所述真實座標系轉變為所述圖像座標系的真實轉換矩陣;相應地,所述根據所述轉換關係將所述設備座標系進行校準的方法包括:根據所述設備轉換矩陣、所述真實轉換矩陣,將所述設備座標系進行校準。 On the basis of the foregoing embodiment, in an embodiment of this specification, the determining the conversion relationship between the real coordinate system, the image coordinate system, and the device coordinate system of the augmented reality device includes: obtaining The device coordinate system of the augmented reality device is converted to the The device conversion matrix of the image coordinate system; according to the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device, calculate the conversion of the real coordinate system to the image coordinate system Real conversion matrix; correspondingly, the method for calibrating the device coordinate system according to the conversion relationship includes: calibrating the device coordinate system according to the device conversion matrix and the real conversion matrix.

具體地,在計算真實座標系和圖像座標系之間的轉換關係時,本說明書一個實施例可以利用獲得的參考點的圖像座標資訊、真實座標資訊、以及AR設備的相機內參矩陣,透過計算參考點的位移、偏移、旋轉等,獲得真實座標系和圖像座標系之間的真實轉換矩陣。相機內參矩陣可以表示從相機座標系到像平面座標系的變換關係,像平面座標系是用像素單位來表示的,而相機座標系(即圖像座標系)則是以毫米為單位來表示,因此,要完成改變換過程就需要先得到像平面的像素單位與毫米單位之間的線性關係。本說明書實施例中的相機內參矩陣可以由AR設備中的相機的參數獲得。 Specifically, when calculating the conversion relationship between the real coordinate system and the image coordinate system, an embodiment of this specification can use the obtained image coordinate information of the reference point, the real coordinate information, and the camera internal parameter matrix of the AR device, through Calculate the displacement, offset, rotation, etc. of the reference point to obtain the real conversion matrix between the real coordinate system and the image coordinate system. The camera internal parameter matrix can represent the transformation relationship from the camera coordinate system to the image plane coordinate system. The image plane coordinate system is expressed in pixel units, while the camera coordinate system (ie image coordinate system) is expressed in millimeters. Therefore, to complete the changing process, the linear relationship between the pixel unit of the image plane and the millimeter unit must be obtained first. The camera internal parameter matrix in the embodiment of this specification can be obtained from the parameters of the camera in the AR device.

本說明書一個實施例中,真實座標系和圖像座標系之間的真實轉換矩陣可以透過所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,利用SolvePnP演算法計算獲得。SolvePnP可以表示OpenCV庫裡面提供的一個求解Camera旋轉、平移的演算法, OpenCV可以表示一個主要針對即時電腦視覺的程式化的功能庫。 In an embodiment of this specification, the real conversion matrix between the real coordinate system and the image coordinate system can be achieved through the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device, using SolvePnP The algorithm is calculated. SolvePnP can represent an algorithm for solving Camera rotation and translation provided in the OpenCV library. OpenCV can represent a library of programmed functions mainly for real-time computer vision.

利用SolvePnP演算法可以計算AR設備的相機的姿勢,計算出真實座標系和圖像座標系之間的真實轉換矩陣。 The SolvePnP algorithm can calculate the posture of the camera of the AR device, and calculate the real conversion matrix between the real coordinate system and the image coordinate system.

同時,可以利用AR設備獲取到AR座標系與圖像座標系之間的設備轉換矩陣,利用真實轉換矩陣和設備轉換矩陣,可以將不同的AR設備的AR座標系進行校準。 At the same time, the AR device can be used to obtain the device conversion matrix between the AR coordinate system and the image coordinate system, and the real conversion matrix and the device conversion matrix can be used to calibrate the AR coordinate systems of different AR devices.

本說明書一個實施例中,所述根據所述設備轉換矩陣、所述真實轉換矩陣,將所述設備座標系進行校準,可以包括:按照下述公式(1)實現第一擴增實境設備和第二擴增實境設備的設備座標系的校準:P cameraA_real -1 P cameraA_AR O ARA =P cameraB_real -1 P cameraB_AR O ARB (1) In an embodiment of this specification, the calibration of the device coordinate system according to the device conversion matrix and the real conversion matrix may include: implementing the first augmented reality device and the device according to the following formula (1) Calibration of the device coordinate system of the second augmented reality device: P cameraA_real -1 P cameraA_AR O ARA =P cameraB_real -1 P cameraB_AR O ARB (1)

上式中,P cameraA_real 可以表示所述第一擴增實境設備對應的真實轉換矩陣,P cameraA_AR 可以表示所述第一擴增實境設備對應的設備轉換矩陣,O ARA 可以表示點O在所述第一擴增實境設備的設備座標系中的座標,P cameraB_real 可以表示所述第二擴增實境設備對應的真實轉換矩陣,P cameraB_AR 可以表示所述第二擴增實境設備對應的設備轉換矩陣,O ARB 可以表示點O在所述第二擴增實境設備的設備座標系中的座標。 In the above formula, P cameraA_real can represent the real conversion matrix corresponding to the first augmented reality device, P cameraA_AR can represent the device conversion matrix corresponding to the first augmented reality device, and O ARA can represent that point O is at all For the coordinates in the device coordinate system of the first augmented reality device, P cameraB_real may represent the real conversion matrix corresponding to the second augmented reality device, and P cameraB_AR may represent the corresponding real conversion matrix of the second augmented reality device The device conversion matrix, O ARB may represent the coordinate of point O in the device coordinate system of the second augmented reality device.

假設有兩台AR設備A和B,已經知真實世界中的一個點O,做如下定義:點O在AR設備A的圖像座標系下的座 標為O cameraA ,點O在AR設備B的圖像座標系下的座標為O cameraB ,真實座標系下的點O的座標為O real ,真實座標系轉變為AR設備A的圖像座標系的真實轉換矩陣為P cameraA_real ,真實座標系轉變為AR設備B的圖像座標系的真實轉換矩陣為P cameraB_real ,點O在AR設備A的AR座標系下的座標為O ARA ,點O在AR設備B的AR座標系下的座標為O ARB ,AR設備A的AR座標系轉換為AR設備A的圖像座標系的設備矩陣為P cameraA_AR ,AR設備B的AR座標系轉換為AR設備B的圖像座標系的設備矩陣為P cameraB_AR 。則可以得到如下方程組:

Figure 108116870-A0305-02-0021-1
Suppose there are two AR devices A and B, and a point O in the real world is known, and the definition is as follows: the coordinate of point O in the image coordinate system of AR device A is O cameraA , and point O is in the image of AR device B The coordinates in the image coordinate system are O cameraB , the coordinates of the point O in the real coordinate system are O real , the real coordinate system is transformed into the real conversion matrix of the image coordinate system of the AR device A is P cameraA_real , and the real coordinate system is transformed into AR The real conversion matrix of the image coordinate system of device B is P cameraB_real , the coordinate of point O in the AR coordinate system of AR device A is O ARA , and the coordinate of point O in the AR coordinate system of AR device B is O ARB , AR The device matrix of the AR coordinate system of the device A converted to the image coordinate system of the AR device A is P cameraA_AR , and the device matrix of the AR coordinate system of the AR device B converted to the image coordinate system of the AR device B is P cameraB_AR . Then the following equations can be obtained:
Figure 108116870-A0305-02-0021-1

透過對上述公式(2)進行轉換變行可以獲得上述公式(1),因此計算獲得不同的AR設備的真實座標系和圖像座標系之間的真實轉換矩陣、AR座標系與圖像座標系之間的設備轉換矩陣後,可以利用公式(1)將點O的座標資訊進行校準,方法簡單,準確,實現了不同的AR設備的座標系校準。 The above formula (1) can be obtained by transforming the above formula (2) into rows. Therefore, the real conversion matrix, AR coordinate system and image coordinate system between the real coordinate system and image coordinate system of different AR devices are calculated After the device conversion matrix between the devices, the coordinate information of point O can be calibrated using formula (1), which is simple and accurate, and realizes the coordinate system calibration of different AR devices.

在上述實施例的基礎上,本說明書一個實施例中,所述將所述設備座標系進行校準的方法還包括:若進行設備座標系校準的擴增實境設備大於2個,則 以其中任意一個擴增實境設備的設備座標系為基準進行設備座標系的校準。 On the basis of the foregoing embodiment, in an embodiment of this specification, the method for calibrating the device coordinate system further includes: if more than two augmented reality devices are used for the device coordinate system calibration, then The device coordinate system is calibrated based on the device coordinate system of any one of the augmented reality devices.

例如:若需要對3個AR設備進行座標系的校準,可以分別獲得3個AR設備對應的真實座標系和圖像座標系之間的真實轉換矩陣、AR座標系與圖像座標系之間的設備轉換矩陣,可以以其中任意一個AR設備的AR座標系為基準,獲得另外2個AR設備的AR座標系與該AR座標系之間的轉換關係,如:可以得到下述公式(3):

Figure 108116870-A0305-02-0022-2
For example: if you need to calibrate the coordinate system of 3 AR devices, you can obtain the real conversion matrix between the real coordinate system and the image coordinate system corresponding to the 3 AR devices, and the difference between the AR coordinate system and the image coordinate system The device conversion matrix can be based on the AR coordinate system of any one of the AR devices to obtain the conversion relationship between the AR coordinate system of the other two AR devices and the AR coordinate system, for example, the following formula (3) can be obtained:
Figure 108116870-A0305-02-0022-2

將AR設備B、C的AR座標系校準到AR設備A的AR座標系中,實現了3個AR設備的座標系的校準。 The AR coordinate system of AR device B and C is calibrated to the AR coordinate system of AR device A, and the coordinate system of three AR devices is calibrated.

圖3是本說明書又一個實施例中擴增實境設備的座標系校準方法的流程示意圖,下面結合圖3,具體介紹本說明書實施例中AR設備座標系的校準流程: Fig. 3 is a schematic flowchart of a method for calibrating the coordinate system of an augmented reality device in another embodiment of this specification. The following will specifically introduce the calibration process of the coordinate system of the AR device in the embodiment of this specification with reference to Fig. 3:

(1)AR設備初始化。AR設備啟動是需要進行初始化。 (1) AR device initialization. AR device startup requires initialization.

(2)處理AR設備的相機中的訊框資料。用戶可以利用AR設備掃描預設的二維碼圖像,掃描後,可以處理AR設備的相機中的圖像資訊的訊框資料。 (2) Process the frame data in the camera of the AR device. The user can use the AR device to scan the preset QR code image. After scanning, the frame data of the image information in the camera of the AR device can be processed.

(3)識別AR設備的圖像資訊中是否有二維碼圖像,若有,則執行步驟(4),若沒有,則傳回步驟(2)直至識別到二維碼圖像。 (3) Identify whether there is a two-dimensional code image in the image information of the AR device, if so, perform step (4), if not, return to step (2) until the two-dimensional code image is recognized.

(4)獲取二維碼圖像中四個角點在圖像座標系中的圖 像座標資訊,以及二維碼圖像中四個角點在真實座標系中的真實座標資訊。 (4) Obtain the four corner points in the two-dimensional code image in the image coordinate system Like coordinate information, and the real coordinate information of the four corner points in the two-dimensional code image in the real coordinate system.

(5)根據二維圖像的圖像座標資訊、真實座標資訊、AR設備的相機內參矩陣,使用SolvePnP演算法計算AR設備的相機姿勢,獲得真實座標系轉變為AR設備的圖像座標系的真實轉換矩陣。 (5) According to the image coordinate information of the two-dimensional image, the real coordinate information, and the camera internal parameter matrix of the AR device, the SolvePnP algorithm is used to calculate the camera pose of the AR device, and the real coordinate system is converted into the image coordinate system of the AR device Real conversion matrix.

(6)獲取AR設備的AR空間視圖變換矩陣即AR設備的AR座標系轉換為圖像座標系的設備轉換矩陣。 (6) Obtain the AR space view transformation matrix of the AR device, that is, the device transformation matrix for converting the AR coordinate system of the AR device into the image coordinate system.

(7)利用上述公式(1)計算出不同AR設備的AR座標系的轉換關係,完成AR設備的座標系的校準。 (7) Use the above formula (1) to calculate the conversion relationship of the AR coordinate system of different AR devices, and complete the calibration of the coordinate system of the AR device.

本說明書實施例提供的方法,基於不同AR設備中的預設圖案的圖像資訊,可以實現不同AR設備的AR座標系的校準,使得不同的用戶可以共享虛擬物體的位置、方向,得到相同的體驗,使得多用戶之間的AR體驗互動成為可能,為後續AR應用的連線開發提供了理論基礎。本說明實施例提供的方法可以不限制AR設備設置在同一個位置、同一個姿勢進行AR座標系的校準,操作方便,實用性強,滿足了不同位置用戶的AR設備的座標系校準的需求,提高了用戶體驗。 The method provided in the embodiments of this specification can realize the calibration of the AR coordinate system of different AR devices based on the image information of the preset patterns in different AR devices, so that different users can share the position and direction of the virtual object to obtain the same Experience makes it possible to interact with AR experience among multiple users, and provides a theoretical basis for subsequent development of AR applications. The method provided by the embodiment of this description can perform AR coordinate system calibration without restricting the AR device to be set in the same position and the same posture. It is easy to operate and has strong practicability, and meets the needs of the coordinate system calibration of AR devices of users in different locations. Improve the user experience.

本說明書中上述方法的各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。相關之處參見方法實施例的部分說明即可。 The various embodiments of the above method in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the difference from other embodiments. For related details, please refer to the partial description of the method embodiment.

基於上述所述的擴增實境設備的座標系校準方法,本 說明書一個或多個實施例還提供一種擴增實境設備的座標系校準裝置。所述的裝置可以包括使用了本說明書實施例所述方法的系統(包括分布式系統)、軟體(應用)、模組、組件、伺服器、用戶端等並結合必要的實施硬體的裝置。基於同一創新構思,本說明書實施例提供的一個或多個實施例中的裝置如下面的實施例所述。由於裝置解決問題的實現方案與方法相似,因此本說明書實施例具體的裝置的實施可以參見前述方法的實施,重複之處不再贅述。以下所使用的,術語“單元”或者“模組”可以實現預定功能的軟體和/或硬體的組合。儘管以下實施例所描述的裝置較佳地以軟體來實現,但是硬體,或者軟體和硬體的組合的實現也是可能並被構想的。 Based on the coordinate system calibration method of augmented reality equipment described above, this One or more embodiments of the specification also provide a coordinate system calibration device for augmented reality equipment. The described devices may include systems (including distributed systems), software (applications), modules, components, servers, clients, etc., which use the methods described in the embodiments of this specification, combined with necessary implementation hardware devices. Based on the same innovative concept, the devices in one or more embodiments provided in the embodiments of this specification are as described in the following embodiments. Since the implementation scheme of the device to solve the problem is similar to the method, the implementation of the specific device in the embodiment of this specification can refer to the implementation of the foregoing method, and the repetition will not be repeated. As used below, the term "unit" or "module" can be a combination of software and/or hardware that can implement predetermined functions. Although the device described in the following embodiments is preferably implemented by software, the implementation of hardware or a combination of software and hardware is also possible and conceived.

具體地,圖4是本說明書提供的擴增實境設備的座標系校準裝置一個實施例的模組結構示意圖,如圖4所示,本說明書中提供的擴增實境設備的座標系校準裝置包括:圖像資訊獲取模組41、座標資訊獲取模組42、轉換關係確定模組43、設備座標系校準模組44,其中:圖像資訊獲取模組41,可以用於利用擴增實境設備掃描預設圖案,獲取擴增實境設備中所述預設圖案的圖像資訊;座標資訊獲取模組42,可以用於獲取所述圖像資訊中的參考點在所述擴增實境設備的圖像座標系中的圖像座標資訊,和所述參考點在真實座標系中的真實座標資訊;轉換關係確定模組43,可以用於基於所述圖像座標資 訊、所述真實座標資訊,確定所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係;設備座標系校準模組44,可以用於根據所述轉換關係將所述設備座標系進行校準。 Specifically, FIG. 4 is a schematic diagram of the module structure of an embodiment of the coordinate system calibration device of the augmented reality device provided in this specification. As shown in FIG. 4, the coordinate system calibration device of the augmented reality device provided in this specification Including: image information acquisition module 41, coordinate information acquisition module 42, conversion relationship determination module 43, equipment coordinate system calibration module 44, of which: image information acquisition module 41 can be used to use augmented reality The device scans the preset pattern to obtain the image information of the preset pattern in the augmented reality device; the coordinate information obtaining module 42 can be used to obtain the reference point in the image information in the augmented reality device. The image coordinate information in the image coordinate system of the device, and the real coordinate information of the reference point in the real coordinate system; the conversion relationship determination module 43 can be used to determine the image coordinates based on the image coordinate information. Information, the real coordinate information, determine the conversion relationship between the real coordinate system, the image coordinate system, and the device coordinate system of the augmented reality device; the device coordinate system calibration module 44 can be used for The device coordinate system is calibrated according to the conversion relationship.

本說明書實施例提供的擴增實境設備的座標系校準裝置,基於不同AR設備中的預設圖案的圖像資訊,可以獲得AR設備的圖像座標系、AR座標系、真實座標系之間的轉換關係,根據各座標系之間的轉換關係可以實現不同AR設備的AR座標系的校準,使得不同的用戶可以共享虛擬物體的位置、方向,得到相同的體驗,為後續AR應用的連線開發提供了理論基礎。本說明實施例提供的方法可以不限制AR設備設置在同一個位置、同一個姿勢進行AR座標系的校準,操作方便,實用性強,滿足了不同位置用戶的AR設備的座標系校準的需求。 The coordinate system calibration device of the augmented reality device provided in the embodiment of this specification can obtain the image coordinate system, AR coordinate system, and real coordinate system of the AR device based on the image information of the preset patterns in different AR devices. According to the conversion relationship between various coordinate systems, the calibration of the AR coordinate system of different AR devices can be realized, so that different users can share the position and direction of the virtual object and get the same experience, which is the connection for subsequent AR applications Development provides a theoretical basis. The method provided by the embodiment of this description may not restrict the AR device to be set in the same position and the same posture to perform the AR coordinate system calibration, which is convenient to operate and has strong practicability, and meets the needs of the coordinate system calibration of AR devices of users in different locations.

在上述實施例的基礎上,所述座標資訊獲取模組包括真實座標獲取單元,所述真實座標獲取單元具體用於:確定所述圖像資訊中的標定點;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座標資訊。 On the basis of the foregoing embodiment, the coordinate information acquisition module includes a real coordinate acquisition unit, and the real coordinate acquisition unit is specifically configured to: determine the calibration point in the image information; The relative position between the reference point and the calibration point determines the real coordinate information of the reference point in the real coordinate system.

在上述實施例的基礎上,所述真實座標獲取單元還用於: 選取一個所述參考點作為所述標定點;以所述標定點為座標原點,選取所述標定點之外的兩個參考點與所述標定點的連線所在的直線作為座標軸,構建所述真實座標系;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座標資訊。 On the basis of the foregoing embodiment, the real coordinate acquiring unit is further used for: Select one of the reference points as the calibration point; take the calibration point as the origin of the coordinate, and select the line connecting the two reference points outside the calibration point and the calibration point as the coordinate axis to construct the The real coordinate system; according to the relative position between the reference point and the calibration point in the preset pattern, determine the real coordinate information of the reference point in the real coordinate system.

本說明書實施例提供的擴增實境設備的座標系校準裝置,基於預設圖案的實際尺寸以及參考點與標定點之間的相對位置,獲取參考點在真實座標系中的座標資訊。由於不同的AR使用的相同尺寸的預設圖案,能夠實現基於預設圖案中參考點的真實座標資訊進行AR設備的座標系的校準。 The coordinate system calibration device of the augmented reality equipment provided in the embodiment of the specification obtains the coordinate information of the reference point in the real coordinate system based on the actual size of the preset pattern and the relative position between the reference point and the calibration point. Since different ARs use preset patterns of the same size, the coordinate system of the AR device can be calibrated based on the real coordinate information of the reference points in the preset patterns.

圖5是本說明一個實施例中設備座標系校準模組的結構示意圖,如圖5所示,在上述實施例的基礎上,所述轉換關係確定模組43包括:設備轉換矩陣計算單元51,可以用於獲取所述擴增實境設備的所述設備座標系轉換為所述圖像座標系的設備轉換矩陣;真實轉換矩陣計算單元52,可以用於根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,計算所述真實座標系轉變為所述圖像座標系的真實轉換矩陣;相應地,所述設備座標系校準模組44可以用於根據所 述設備轉換矩陣、所述真實轉換矩陣,將所述設備座標系進行校準。 FIG. 5 is a schematic structural diagram of a device coordinate system calibration module in an embodiment of the present description. As shown in FIG. 5, on the basis of the foregoing embodiment, the conversion relationship determination module 43 includes: a device conversion matrix calculation unit 51, It can be used to obtain the device conversion matrix of the device coordinate system of the augmented reality device converted into the image coordinate system; the real conversion matrix calculation unit 52 can be used to obtain the image coordinate information, the Real coordinate information, the camera internal parameter matrix of the augmented reality device, and calculate the real conversion matrix for transforming the real coordinate system into the image coordinate system; accordingly, the device coordinate system calibration module 44 can be used for According to the The device conversion matrix and the real conversion matrix are used to calibrate the device coordinate system.

本說明書實施例,利用AR設備的圖像座標系與真實座標系的真實轉換矩陣,以及AR座標系與圖像座標系之間的轉換矩陣,可以獲取不同AR設備之間AR座標系之間的轉換關係,為AR設備的座標系的校準提供了準確的理論基礎。 In the embodiment of this specification, by using the real conversion matrix between the image coordinate system and the real coordinate system of the AR device, and the conversion matrix between the AR coordinate system and the image coordinate system, the difference between the AR coordinate systems between different AR devices can be obtained. The conversion relationship provides an accurate theoretical basis for the calibration of the coordinate system of the AR device.

在上述實施例的基礎上,所述設備座標系校準模組具體用於:按照下述公式實現第一擴增實境設備和第二擴增實境設備的設備座標系的校準:P cameraA_real -1 P cameraA_AR O ARA =P cameraB_real -1 P cameraB_AR O ARB On the basis of the above-described embodiment, the device coordinate system calibration module is configured to: implement a first amplification calibration device coordinate system and a second device reality augmented reality device according to the following equation: P cameraA_real - 1 P cameraA_AR O ARA =P cameraB_real -1 P cameraB_AR O ARB

上式中,P cameraA_real 表示所述第一擴增實境設備對應的真實轉換矩陣,P cameraA_AR 表示所述第一擴增實境設備對應的設備轉換矩陣,O ARA 表示點O在所述第一擴增實境設備的設備座標系中的座標,P cameraB_real 表示所述第二擴增實境設備對應的真實轉換矩陣,P cameraB_AR 表示所述第二擴增實境設備對應的設備轉換矩陣,O ARB 表示點O在所述第二擴增實境設備的設備座標系中的座標。 In the above formula, P cameraA_real represents the real conversion matrix corresponding to the first augmented reality device, P cameraA_AR represents the device conversion matrix corresponding to the first augmented reality device, and O ARA represents the point O in the first augmented reality device. amplification device coordinate system reality device coordinates, P cameraB_real represents the second augmented reality device corresponding to the true transformation matrix, P cameraB_AR augmented reality represents the second device corresponds to the device transformation matrix, O ARB represents the coordinate of point O in the device coordinate system of the second augmented reality device.

本說明書實施例,提供了不同AR設備的座標系轉換公式,能夠準確的將各AR設備的座標系進行校準。 The embodiments of this specification provide the coordinate system conversion formulas of different AR devices, which can accurately calibrate the coordinate systems of each AR device.

在上述實施例的基礎上,所述設備座標系校準模組還用於:若進行設備座標系校準的擴增實境設備大於2個,則 以其中任意一個擴增實境設備的設備座標系為基準進行設備座標系的校準。 On the basis of the foregoing embodiment, the device coordinate system calibration module is also used for: if more than two augmented reality devices perform device coordinate system calibration, then The device coordinate system is calibrated based on the device coordinate system of any one of the augmented reality devices.

在上述實施例的基礎上,所述座標系校準處理單元具體用於:根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,利用SolvePnP演算法,計算獲得所述真實轉換矩陣。 On the basis of the foregoing embodiment, the coordinate system calibration processing unit is specifically configured to: use the SolvePnP algorithm according to the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device, The real conversion matrix is obtained by calculation.

本說明書實施例,利用SolvePnP演算法可以計算出AR設備中相機的姿勢,獲得AR設備的真實座標系與圖像座標系之間的真實轉換矩陣,方法簡單準確。 In the embodiment of this specification, the SolvePnP algorithm can be used to calculate the posture of the camera in the AR device and obtain the real conversion matrix between the real coordinate system of the AR device and the image coordinate system. The method is simple and accurate.

在上述實施例的基礎上,所述圖像資訊獲取模組獲取到的所述預設圖案的圖像資訊中的預設圖案包括二維碼、條碼中的至少一個。 On the basis of the above embodiment, the preset pattern in the image information of the preset pattern acquired by the image information acquiring module includes at least one of a two-dimensional code and a barcode.

本說明書實施例,將二維碼、條碼等具有特徵、且日常生活比較常見的平面圖案作為預設圖案,方便引導用戶掃描,操作方便,提高了用戶體驗。 In the embodiments of this specification, two-dimensional codes, barcodes, and other flat patterns that have characteristics and are relatively common in daily life are used as preset patterns, which are convenient for guiding users to scan, easy to operate, and improve user experience.

需要說明書的是,上述所述的裝置根據方法實施例的描述還可以包括其他的實施方式。具體的實現方式可以參照相關方法實施例的描述,在此不作一一贅述。 It should be noted that the above-mentioned device may also include other implementation manners according to the description of the method embodiment. For specific implementation manners, reference may be made to the description of the related method embodiments, which will not be repeated here.

本說明書一個實施例中,還可以提供一種電腦儲存媒體,其上儲存有電腦程式,所述電腦程式被執行時,實現上述實施例中視頻資料的處理方法,例如可以實現如下方法:利用擴增實境設備掃描預設圖案,獲取擴增實境設備中所述預設圖案的圖像資訊; 獲取所述圖像資訊中的參考點在所述擴增實境設備的圖像座標系中的圖像座標資訊,和所述參考點在真實座標系中的真實座標資訊;基於所述圖像座標資訊、所述真實座標資訊,確定所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係;根據所述轉換關係將所述設備座標系進行校準。 In one embodiment of this specification, a computer storage medium may also be provided, on which a computer program is stored. When the computer program is executed, the video data processing method in the above-mentioned embodiment is implemented. For example, the following method may be implemented: The reality device scans the preset pattern to obtain image information of the preset pattern in the augmented reality device; Obtain the image coordinate information of the reference point in the image information in the image coordinate system of the augmented reality device, and the real coordinate information of the reference point in the real coordinate system; based on the image The coordinate information, the real coordinate information, determine the conversion relationship between the real coordinate system, the image coordinate system, and the device coordinate system of the augmented reality device; according to the conversion relationship, the device coordinate system Department for calibration.

上述對本說明書特定實施例進行了描述。其它實施例在所附申請專利範圍的範圍內。在一些情況下,在申請專利範圍中記載的動作或步驟可以按照不同於實施例中的順序來執行並且仍然可以實現期望的結果。另外,在圖式中描繪的過程不一定要求顯示的特定順序或者連續順序才能實現期望的結果。在某些實施方式中,多任務處理和並行處理也是可以的或者可能是有利的。 The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the attached patent application. In some cases, the actions or steps described in the scope of the patent application may be performed in a different order from the embodiment and still achieve desired results. In addition, the process depicted in the drawings does not necessarily require a specific order or sequential order of display to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

本說明書提供的上述實施例所述的方法或裝置可以透過電腦程式實現業務邏輯並記錄在儲存媒體上,所述的儲存媒體可以電腦讀取並執行,實現本說明書實施例所描述方案的效果。 The methods or devices described in the above-mentioned embodiments provided in this specification can implement business logic through a computer program and record them on a storage medium, and the storage medium can be read and executed by a computer to achieve the effects of the solutions described in the embodiments of this specification.

本說明書實施例提供的上述擴增實境設備的座標系校準方法或裝置可以在電腦中由處理器執行相應的程式指令來實現,如使用windows作業系統的c++語言在PC端實現、linux系統實現,或其他例如使用android、iOS系統程式設計語言在智慧終端實現,以及基於量子電腦的處理邏輯實現等。本說明書提供的一種擴增實境設備的座標系校 準系統的一個實施例中,圖6是本說明書提供的一種擴增實境設備的座標系校準系統實施例的模組結構示意圖,如圖6所示,本說明書實施例提供的擴增實境設備的座標系校準系統可以包括處理器61以及用於儲存處理器可執行指令的儲存器62,處理器61和儲存器62透過匯流排63完成相互間的通訊;所述處理器61用於呼叫所述儲存器62中的程式指令,以執行上述各地震資料處理方法實施例所提供的方法,例如包括:利用擴增實境設備掃描預設圖案,獲取擴增實境設備中所述預設圖案的圖像資訊;獲取所述圖像資訊中的參考點在所述擴增實境設備的圖像座標系中的圖像座標資訊,和所述參考點在真實座標系中的真實座標資訊;基於所述圖像座標資訊、所述真實座標資訊,確定所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係,根據所述轉換關係將所述設備座標系進行校準。 The coordinate system calibration method or device of the augmented reality device provided in the embodiments of this specification can be implemented by the processor in the computer by executing the corresponding program instructions, such as using the c++ language of the windows operating system to be implemented on the PC side or the linux system , Or other such as the use of android, iOS system programming language in smart terminals, and quantum computer-based processing logic implementation. The coordinate system calibration of an augmented reality device provided in this manual In an embodiment of the barebones system, FIG. 6 is a schematic diagram of the module structure of an embodiment of the coordinate system calibration system for augmented reality equipment provided in this specification. As shown in FIG. 6, the augmented reality provided by the embodiment of this specification The coordinate system calibration system of the equipment may include a processor 61 and a memory 62 for storing executable instructions of the processor. The processor 61 and the memory 62 communicate with each other through the bus 63; the processor 61 is used for calling The program instructions in the storage 62 to execute the methods provided in the embodiments of the above-mentioned seismic data processing methods, for example, include: scanning a preset pattern with an augmented reality device to obtain the preset pattern in the augmented reality device Image information of the pattern; acquiring the image coordinate information of the reference point in the image information in the image coordinate system of the augmented reality device, and the real coordinate information of the reference point in the real coordinate system Based on the image coordinate information and the real coordinate information, determine the conversion relationship between the real coordinate system, the image coordinate system, and the device coordinate system of the augmented reality device, according to the conversion The relationship calibrates the coordinate system of the device.

需要說明的是說明書上述所述的裝置、電腦儲存媒體、系統根據相關方法實施例的描述還可以包括其他的實施方式,具體的實現方式可以參照方法實施例的描述,在此不作一一贅述。 It should be noted that the device, computer storage medium, and system described above in the specification may also include other implementation manners according to the description of the related method embodiments. For specific implementation manners, refer to the description of the method embodiments, which will not be repeated here.

本說明書中的各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。尤其,對於硬 體+程式類實施例而言,由於其基本相似於方法實施例,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。 The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. Especially for hard As far as the body+program embodiment is concerned, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the part of the description of the method embodiment.

本說明書實施例並不局限於必須是符合行業通訊標準、標準電腦資料處理和資料儲存規則或本說明書一個或多個實施例所描述的情況。某些行業標準或者使用自定義方式或實施例描述的實施基礎上略加修改後的實施方案也可以實現上述實施例相同、等同或相近、或變形後可預料的實施效果。應用這些修改或變形後的資料獲取、儲存、判斷、處理方式等獲取的實施例,仍然可以屬於本說明書實施例的可選實施方案範圍之內。 The embodiments of this specification are not limited to the conditions described in one or more embodiments of this specification that must comply with industry communication standards, standard computer data processing and data storage rules. Certain industry standards or implementations described in custom methods or examples with slight modifications can also achieve the same, equivalent or similar implementation effects of the foregoing examples, or predictable implementation effects after modification. Examples obtained by applying these modified or deformed data acquisition, storage, judgment, processing methods, etc., can still fall within the scope of optional implementation schemes of the embodiments of the present specification.

在20世紀90年代,對於一個技術的改進可以很明顯地區分是硬體上的改進(例如,對二極體、電晶體、開關等電路結構的改進)還是軟體上的改進(對於方法流程的改進)。然而,隨著技術的發展,當今的很多方法流程的改進已經可以視為硬體電路結構的直接改進。設計人員幾乎都透過將改進的方法流程程式化到硬體電路中來得到相應的硬體電路結構。因此,不能說一個方法流程的改進就不能用硬體實體模組來實現。例如,可程式化邏輯裝置(Programmable Logic Device,PLD)(例如現場可程式化閘陣列(Field Programmable Gate Array,FPGA))就是這樣一種積體電路,其邏輯功能由用戶對裝置程式化來確定。由設計人員自行程式化來把一個數位系統“集成”在一片PLD上,而不需要請晶片製造廠商來設計和製作專用的積體電 路晶片。而且,如今,取代手工地製作積體電路晶片,這種程式化也多半改用“邏輯編譯器(logic compiler)”軟體來實現,它與程式開發撰寫時所用的軟體編譯器相類似,而要編譯之前的原始代碼也得用特定的程式化語言來撰寫,此稱之為硬體描述語言(Hardware Description Language,HDL),而HDL也並非僅有一種,而是有許多種,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)與Verilog。本領域技術人員也應該清楚,只需要將方法流程用上述幾種硬體描述語言稍作邏輯程式化並程式化到積體電路中,就可以很容易得到實現該邏輯方法流程的硬體電路。 In the 1990s, the improvement of a technology can be clearly distinguished between hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (for method flow Improve). However, with the development of technology, the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by the hardware entity module. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. It is programmed by the designer to "integrate" a digital system on a PLD without requiring the chip manufacturer to design and manufacture a dedicated integrated circuit Road chip. Moreover, nowadays, instead of manually making integrated circuit chips, this programming is mostly realized by using "logic compiler" software, which is similar to the software compiler used in program development and writing. The original code before compilation must also be written in a specific programming language, which is called Hardware Description Language (HDL), and HDL is not only one, but there are many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., Currently the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also be clear that only need to logically program the method flow in the above hardware description languages and program it into an integrated circuit, the hardware circuit that implements the logic method flow can be easily obtained.

控制器可以按任何適當的方式實現,例如,控制器可以採取例如微處理器或處理器以及儲存可由該(微)處理器執行的電腦可讀程式代碼(例如軟體或韌體)的電腦可讀媒體、邏輯閘、開關、特殊應用積體電路(Application Specific Integrated Circuit,ASIC)、可程式化邏輯控制器和嵌入微控制器的形式,控制器的例子包括但不限於以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,儲存器控制器還可以被實現為儲存器的控制邏輯的一部分。本領域技術人員也知道,除了以純電腦可讀程式代碼方式實現控制器以外,完全可以透過將方法步驟進行邏輯程式化來使得控制器以邏輯閘、開關、特殊應用積體電路、可程式化邏輯控制器和嵌入微控制器等的形式來實現相同功能。因此這種控制器可以被認為是一種硬體部件,而對其內包括的用於實現各種功能的裝置也可以視為硬體部件內的結構。或者甚至,可以將用於實現各種功能的裝置視為既可以是實現方法的軟體模組又可以是硬體部件內的結構。 The controller can be implemented in any suitable manner. For example, the controller can be a microprocessor or a processor and a computer readable program code (such as software or firmware) that can be executed by the (micro) processor. Media, logic gates, switches, Application Specific Integrated Circuits (ASIC), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D , Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, the storage controller can also be implemented as part of the storage control logic. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, it is completely possible to make the controller use logic gates, switches, integrated circuits for special applications, and programmable logic by logically programming method steps. Controllers and embedded microcontrollers can realize the same function. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure in a hardware component.

上述實施例闡明的系統、裝置、模組或單元,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦。具體的,電腦例如可以為個人電腦、膝上型電腦、車載人機互動設備、蜂巢式電話、相機電話、智慧手機、個人數位助理、媒體播放器、導航設備、電子郵件設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任何設備的組合。 The systems, devices, modules or units explained in the above embodiments may be implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, Tablets, wearable devices, or any combination of these devices.

雖然本說明書一個或多個實施例提供了如實施例或流程圖所述的方法操作步驟,但基於常規或者無創造性的手段可以包括更多或者更少的操作步驟。實施例中列舉的步驟順序僅僅為眾多步驟執行順序中的一種方式,不代表唯一的執行順序。在實際中的裝置或終端產品執行時,可以按照實施例或者圖式所示的方法順序執行或者並行執行(例如平行處理器或者多執行緒處理的環境,甚至為分布 式資料處理環境)。術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、產品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、產品或者設備所固有的要素。在沒有更多限制的情況下,並不排除在包括所述要素的過程、方法、產品或者設備中還存在另外的相同或等同要素。第一,第二等詞語用來表示名稱,而並不表示任何特定的順序。 Although one or more embodiments of this specification provide method operation steps as described in the embodiments or flowcharts, conventional or non-inventive means may include more or fewer operation steps. The sequence of steps listed in the embodiment is only one way of the execution sequence of the steps, and does not represent the only execution sequence. When the actual device or terminal product is executed, it can be executed sequentially or in parallel according to the method shown in the embodiment or the diagram (for example, in a parallel processor or multi-threaded processing environment, or even distributed Data processing environment). The terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, product, or device that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed Elements, or also include elements inherent to such processes, methods, products, or equipment. If there are no more restrictions, it does not exclude that there are other identical or equivalent elements in the process, method, product, or device including the elements. Words such as first and second are used to denote names, but do not denote any specific order.

為了描述的方便,描述以上裝置時以功能分為各種模組分別描述。當然,在實施本說明書一個或多個時可以把各模組的功能在同一個或多個軟體和/或硬體中實現,也可以將實現同一功能的模組由多個子模組或子單元的組合實現等。以上所描述的裝置實施例僅僅是示意性的,例如,所述單元的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式,例如多個單元或組件可以結合或者可以集成到另一個系統,或一些特徵可以忽略,或不執行。另一點,所顯示或討論的相互之間的耦接或直接耦接或通訊連接可以是透過一些介面,裝置或單元的間接耦接或通訊連接,可以是電性,機械或其它的形式。 For the convenience of description, when describing the above device, the functions are divided into various modules and described separately. Of course, when implementing one or more of this specification, the functions of each module can be implemented in the same one or more software and/or hardware, or the modules that implement the same function can be composed of multiple sub-modules or sub-units. The combination of realization and so on. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation. For example, multiple units or components can be combined or integrated into Another system, or some features can be ignored, or not implemented. On the other hand, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms.

本發明是參照根據本發明實施例的方法、裝置(系統)、和電腦程式產品的流程圖和/或方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方塊圖中的每一流程和/或方塊、以及流程圖和/或方塊圖中的流程和/或方塊的結合。可提供這些電腦程式指令到通用電腦、 專用電腦、嵌入式處理機或其他可程式化資料處理設備的處理器以產生一個機器,使得透過電腦或其他可程式化資料處理設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的裝置。 The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to general-purpose computers, The processor of a dedicated computer, embedded processor, or other programmable data processing equipment is used to generate a machine so that the instructions executed by the processor of the computer or other programmable data processing equipment are used to implement a process or Multiple processes and/or block diagrams A device with functions specified in one block or multiple blocks.

這些電腦程式指令也可儲存在能引導電腦或其他可程式化資料處理設備以特定方式工作的電腦可讀儲存器中,使得儲存在該電腦可讀儲存器中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能。 These computer program instructions can also be stored in a computer-readable storage that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable storage produce a manufactured product including the instruction device , The instruction device realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.

這些電腦程式指令也可裝載到電腦或其他可程式化資料處理設備上,使得在電腦或其他可程式化設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可程式化設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的步驟。 These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to generate computer-implemented processing, so that the computer or other programmable equipment The instructions executed above provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

在一個典型的配置中,計算設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。 In a typical configuration, the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.

記憶體可能包括電腦可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非揮發性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀媒體的範例。 Memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.

電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可 以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可抹除可程式化唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁碟儲存、石墨烯儲存或其他磁性儲存設備或任何其他非傳輸媒體,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀媒體不包括暫態電腦可讀媒體(transitory media),如調變的資料訊號和載波。 Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. Information can So it is computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), and other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only CD-ROM, digital multi-function Optical discs (DVD) or other optical storage, magnetic cassettes, magnetic tape storage, graphene storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transient computer-readable media (transitory media), such as modulated data signals and carrier waves.

本領域技術人員應明白,本說明書一個或多個實施例可提供為方法、系統或電腦程式產品。因此,本說明書一個或多個實施例可採用完全硬體實施例、完全軟體實施例或結合軟體和硬體態樣的實施例的形式。而且,本說明書一個或多個實施例可採用在一個或多個其中包含有電腦可用程式代碼的電腦可用儲存媒體(包括但不限於磁碟儲存器、CD-ROM、光學儲存器等)上實施的電腦程式產品的形式。 Those skilled in the art should understand that one or more embodiments of this specification can be provided as a method, a system or a computer program product. Therefore, one or more embodiments of this specification may adopt the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of this specification can be implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. In the form of a computer program product.

本說明書一個或多個實施例可以在由電腦執行的電腦可執行指令的一般上下文中描述,例如程式模組。一般地,程式模組包括執行特定任務或實現特定抽象資料類型的例程、程式、對象、組件、資料結構等等。也可以在分 布式計算環境中實踐本說明書一個或多個實施例,在這些分布式計算環境中,由透過通訊網路而被連接的遠端處理設備來執行任務。在分布式計算環境中,程式模組可以位於包括儲存設備在內的本地和遠端電腦儲存媒體中。 One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. Can also be divided One or more embodiments of this specification are practiced in a distributed computing environment. In these distributed computing environments, remote processing devices connected through a communication network perform tasks. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

本說明書中的各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。尤其,對於系統實施例而言,由於其基本相似於方法實施例,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。在本說明書的描述中,參考術語“一個實施例”、“一些實施例”、“範例”、“具體範例”、或“一些範例”等的描述意指結合該實施例或範例描述的具體特徵、結構、材料或者特點包含於本說明書的至少一個實施例或範例中。在本說明書中,對上述術語的示意性表述不必須針對的是相同的實施例或範例。而且,描述的具體特徵、結構、材料或者特點可以在任一個或多個實施例或範例中以合適的方式結合。此外,在不相互矛盾的情況下,本領域的技術人員可以將本說明書中描述的不同實施例或範例以及不同實施例或範例的特徵進行結合和組合。 The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment. In the description of this specification, descriptions with reference to terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean specific features described in conjunction with the embodiment or example , Structure, materials or features are included in at least one embodiment or example of this specification. In this specification, the schematic representations of the aforementioned terms do not necessarily refer to the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples and the features of the different embodiments or examples described in this specification under the condition of not conflicting each other.

以上所述僅為本說明書一個或多個實施例的實施例而已,並不用於限制本說明書一個或多個實施例。對於本領域技術人員來說,本說明書一個或多個實施例可以有各種更改和變化。凡在本說明書的精神和原理之內所作的任何修改、等同替換、改進等,均應包含在申請專利範圍的範 圍之內。 The above descriptions are only examples of one or more embodiments of this specification, and are not used to limit one or more embodiments of this specification. For those skilled in the art, one or more embodiments of this specification can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the scope of the patent application. Within the surrounding.

Claims (16)

一種擴增實境設備的座標系校準方法,包括:利用擴增實境設備掃描預設圖案,獲取擴增實境設備中所述預設圖案的圖像資訊;獲取所述圖像資訊中的參考點在所述擴增實境設備的圖像座標系中的圖像座標資訊,和所述參考點在真實座標系中的真實座標資訊;基於所述圖像座標資訊、所述真實座標資訊,確定所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係;根據所述轉換關係將所述設備座標系進行校準;其中,所述預設圖案包括二維碼、條碼中的至少一種。 A method for calibrating the coordinate system of an augmented reality device includes: scanning a preset pattern by the augmented reality device to obtain image information of the preset pattern in the augmented reality device; The image coordinate information of the reference point in the image coordinate system of the augmented reality device, and the real coordinate information of the reference point in the real coordinate system; based on the image coordinate information and the real coordinate information , Determine the conversion relationship between the real coordinate system, the image coordinate system, and the device coordinate system of the augmented reality device; calibrate the device coordinate system according to the conversion relationship; wherein, the The preset pattern includes at least one of a two-dimensional code and a barcode. 如申請專利範圍第1項所述的方法,所述參考點在真實座標系中的真實座標資訊獲取方法包括:確定所述圖像資訊中的標定點;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座標資訊。 According to the method described in item 1 of the scope of patent application, the method for obtaining the real coordinate information of the reference point in the real coordinate system includes: determining the calibration point in the image information; according to the reference in the preset pattern The relative position between the point and the calibration point determines the real coordinate information of the reference point in the real coordinate system. 如申請專利範圍第2項所述的方法,所述確定所述圖像資訊中的標定點包括: 選取一個所述參考點作為所述標定點;相應地,所述確定所述參考點在所述真實座標系中的真實座標資訊,包括:以所述標定點為座標原點,選取所述標定點之外的兩個參考點與所述標定點的連線所在的直線作為座標軸,構建所述真實座標系;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座標資訊。 According to the method described in item 2 of the scope of patent application, the determining the calibration point in the image information includes: Selecting one of the reference points as the calibration point; accordingly, the determining the real coordinate information of the reference point in the real coordinate system includes: taking the calibration point as the origin of the coordinate, and selecting the calibration point The straight line connecting the two reference points outside the fixed point and the calibration point is used as the coordinate axis to construct the real coordinate system; according to the relative position between the reference point and the calibration point in the preset pattern To determine the real coordinate information of the reference point in the real coordinate system. 如申請專利範圍第1項所述的方法,所述確定所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係包括:獲取所述擴增實境設備的所述設備座標系轉換為所述圖像座標系的設備轉換矩陣;根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,計算所述真實座標系轉變為所述圖像座標系的真實轉換矩陣;相應地,所述根據所述轉換關係將所述設備座標系進行校準的方法包括:根據所述設備轉換矩陣、所述真實轉換矩陣,將所述設備座標系進行校準。 For the method described in item 1 of the scope of the patent application, the determining the conversion relationship between the real coordinate system, the image coordinate system, and the device coordinate system of the augmented reality device includes: obtaining the extension The device coordinate system of the augmented reality device is converted into a device conversion matrix of the image coordinate system; based on the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device, calculate The real coordinate system is transformed into the real conversion matrix of the image coordinate system; accordingly, the method for calibrating the device coordinate system according to the conversion relationship includes: according to the device conversion matrix, the real The conversion matrix is used to calibrate the coordinate system of the device. 如申請專利範圍第4項所述的方法,所述根據所述設 備轉換矩陣、所述真實轉換矩陣,將所述設備座標系進行校準,包括:按照下述公式實現第一擴增實境設備和第二擴增實境設備的設備座標系的校準:P cameraA_real -1 P cameraA_AR O ARA =P cameraB_real -1 P cameraB_AR O ARB 上式中,P cameraA_real 表示所述第一擴增實境設備對應的真實轉換矩陣,P cameraA_AR 表示所述第一擴增實境設備對應的設備轉換矩陣,O ARA 表示點O在所述第一擴增實境設備的設備座標系中的座標,P cameraB_real 表示所述第二擴增實境設備對應的真實轉換矩陣,P cameraB_AR 表示所述第二擴增實境設備對應的設備轉換矩陣,O ARB 表示點O在所述第二擴增實境設備的設備座標系中的座標。 According to the method described in item 4 of the scope of patent application, the calibration of the device coordinate system according to the device conversion matrix and the real conversion matrix includes: implementing the first augmented reality device according to the following formula Calibration with the device coordinate system of the second augmented reality device: P cameraA_real -1 P cameraA_AR O ARA = P cameraB_real -1 P cameraB_AR O ARB In the above formula, P cameraA_real represents the corresponding first augmented reality device Real conversion matrix, P cameraA_AR represents the device conversion matrix corresponding to the first augmented reality device, O ARA represents the coordinate of point O in the device coordinate system of the first augmented reality device, and P cameraB_real represents the The real conversion matrix corresponding to the second augmented reality device, P cameraB_AR represents the device conversion matrix corresponding to the second augmented reality device, O ARB represents the point O in the device coordinate system of the second augmented reality device Coordinates in. 如申請專利範圍第5項所述的方法,所述根據所述轉換關係將所述設備座標系進行校準的方法還包括:若進行設備座標系校準的擴增實境設備大於2個,則以其中任意一個擴增實境設備的設備座標系為基準進行設備座標系的校準。 For the method described in item 5 of the scope of patent application, the method of calibrating the device coordinate system according to the conversion relationship further includes: if more than two augmented reality devices are used for device coordinate system calibration, then The device coordinate system of any augmented reality device is used as a reference to calibrate the device coordinate system. 如申請專利範圍第4項所述的方法,所述根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,計算所述真實座標系轉變為所述圖像座標系的真實轉換矩陣,包括:根據所述圖像座標資訊、所述真實座標資訊、所述擴 增實境設備的相機內參矩陣,利用SolvePnP演算法,計算獲得所述真實轉換矩陣。 According to the method described in item 4 of the scope of patent application, the calculation of the real coordinate system is transformed into the said image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device The real conversion matrix of the image coordinate system includes: according to the image coordinate information, the real coordinate information, the expansion The camera internal parameter matrix of the augmented reality device is calculated to obtain the real conversion matrix using the SolvePnP algorithm. 一種擴增實境設備的座標系校準裝置,包括:圖像資訊獲取模組,用於利用擴增實境設備掃描預設圖案,獲取擴增實境設備中所述預設圖案的圖像資訊;座標資訊獲取模組,用於獲取所述圖像資訊中的參考點在所述擴增實境設備的圖像座標系中的圖像座標資訊,和所述參考點在真實座標系中的真實座標資訊;轉換關係確定模組,用於基於所述圖像座標資訊、所述真實座標資訊,確定所述真實座標系、所述圖像座標系、所述擴增實境設備的設備座標系之間的轉換關係;設備座標系校準模組,用於根據所述轉換關係將所述設備座標系進行校準;其中,所述圖像資訊獲取模組獲取到的所述預設圖案的圖像資訊中的預設圖案包括二維碼、條碼中的至少一種。 A coordinate system calibration device for augmented reality equipment includes: an image information acquisition module for scanning a preset pattern with the augmented reality equipment to obtain image information of the preset pattern in the augmented reality equipment The coordinate information acquisition module is used to acquire the image coordinate information of the reference point in the image information in the image coordinate system of the augmented reality device, and the reference point in the real coordinate system Real coordinate information; a conversion relationship determination module for determining the real coordinate system, the image coordinate system, and the device coordinates of the augmented reality device based on the image coordinate information and the real coordinate information The conversion relationship between the systems; the device coordinate system calibration module is used to calibrate the device coordinate system according to the conversion relationship; wherein the image information acquisition module obtains the image of the preset pattern The preset pattern in the image information includes at least one of a two-dimensional code and a barcode. 如申請專利範圍第8項所述的裝置,所述座標資訊獲取模組包括真實座標獲取單元,所述真實座標獲取單元具體用於:確定所述圖像資訊中的標定點;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座 標資訊。 For the device described in item 8 of the scope of patent application, the coordinate information acquisition module includes a real coordinate acquisition unit, and the real coordinate acquisition unit is specifically configured to: determine the calibration point in the image information; Set the relative position between the reference point and the calibration point in the pattern, and determine the real position of the reference point in the real coordinate system Standard information. 如申請專利範圍第9項所述的裝置,所述真實座標獲取單元還用於:選取一個所述參考點作為所述標定點;以所述標定點為座標原點,選取所述標定點之外的兩個參考點與所述標定點的連線所在的直線作為座標軸,構建所述真實座標系;根據所述預設圖案中所述參考點與所述標定點之間的相對位置,確定所述參考點在所述真實座標系中的真實座標資訊。 As in the device described in item 9 of the scope of patent application, the true coordinate acquisition unit is further used to: select one of the reference points as the calibration point; use the calibration point as the coordinate origin to select one of the calibration points The straight line connecting the two outer reference points and the calibration point is used as the coordinate axis to construct the real coordinate system; according to the relative position between the reference point and the calibration point in the preset pattern, determine The real coordinate information of the reference point in the real coordinate system. 如申請專利範圍第8項所述的裝置,所述轉換關係確定模組包括:設備轉換矩陣計算單元,用於獲取所述擴增實境設備的所述設備座標系轉換為所述圖像座標系的設備轉換矩陣;真實轉換矩陣計算單元,用於根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,計算所述真實座標系轉變為所述圖像座標系的真實轉換矩陣;相應地,所述設備座標系校準模組用於:根據所述設備轉換矩陣、所述真實轉換矩陣,將所述設備座標系進行校準。 According to the device described in item 8 of the scope of patent application, the conversion relationship determination module includes: a device conversion matrix calculation unit for obtaining the device coordinate system of the augmented reality device and converting it into the image coordinate System of equipment conversion matrix; a real conversion matrix calculation unit for calculating the conversion of the real coordinate system to the said image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device The real conversion matrix of the image coordinate system; accordingly, the device coordinate system calibration module is used to calibrate the device coordinate system according to the device conversion matrix and the real conversion matrix. 如申請專利範圍第11項所述的裝置,所述設備座標系校準模組具體用於:按照下述公式實現第一擴增實境設備和第二擴增實境設備的設備座標系的校準:P cameraA_real -1 P cameraA_AR O ARA =P cameraB_real -1 P cameraB_AR O ARB 上式中,P cameraA_real 表示所述第一擴增實境設備對應的真實轉換矩陣,P cameraA_AR 表示所述第一擴增實境設備對應的設備轉換矩陣,O ARA 表示點O在所述第一擴增實境設備的設備座標系中的座標,P cameraB_real 表示所述第二擴增實境設備對應的真實轉換矩陣,P cameraB_AR 表示所述第二擴增實境設備對應的設備轉換矩陣,O ARB 表示點O在所述第二擴增實境設備的設備座標系中的座標。 For the device described in item 11 of the scope of the patent application, the device coordinate system calibration module is specifically used to implement the calibration of the device coordinate system of the first augmented reality device and the second augmented reality device according to the following formula : P cameraA_real -1 P cameraA_AR O ARA = P cameraB_real -1 P cameraB_AR O ARB In the above formula, P cameraA_real represents the real conversion matrix corresponding to the first augmented reality device, and P cameraA_AR represents the first augmented reality device. The device conversion matrix corresponding to the environment device, O ARA represents the coordinate of point O in the device coordinate system of the first augmented reality device, P cameraB_real represents the real conversion matrix corresponding to the second augmented reality device, P cameraB_AR represents the device conversion matrix corresponding to the second augmented reality device, and O ARB represents the coordinate of the point O in the device coordinate system of the second augmented reality device. 如申請專利範圍第12項所述的裝置,所述設備座標系校準模組還用於:若進行設備座標系校準的擴增實境設備大於2個,則以其中任意一個擴增實境設備的設備座標系為基準進行設備座標系的校準。 For the device described in item 12 of the scope of patent application, the device coordinate system calibration module is also used to: if there are more than two augmented reality devices for performing device coordinate system calibration, use any one of the augmented reality devices The equipment coordinate system of is used as the reference to calibrate the equipment coordinate system. 如申請專利範圍第11項所述的裝置,所述座標系校準處理單元具體用於:根據所述圖像座標資訊、所述真實座標資訊、所述擴增實境設備的相機內參矩陣,利用SolvePnP演算法,計算獲得所述真實轉換矩陣。 As for the device described in item 11 of the scope of patent application, the coordinate system calibration processing unit is specifically configured to: use the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented reality device The SolvePnP algorithm calculates and obtains the real conversion matrix. 一種電腦儲存媒體,其上儲存有電腦程式,所述電腦程式被執行時,實現申請專利範圍第1至7項中任一項所述的方法。 A computer storage medium has a computer program stored thereon, and when the computer program is executed, the method described in any one of items 1 to 7 of the scope of patent application is realized. 一種擴增實境設備的座標系校準系統,包括至少一個處理器以及用於儲存處理器可執行指令的儲存器,所述處理器執行所述指令時實現申請專利範圍第1至7項中任一項所述的方法。 A coordinate system calibration system for augmented reality equipment includes at least one processor and a memory for storing executable instructions of the processor. When the processor executes the instructions, any of items 1 to 7 of the scope of patent application can be realized The method described in one item.
TW108116870A 2018-07-27 2019-05-16 Coordinate system calibration method and device of augmented reality equipment TWI712004B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810841785.3 2018-07-27
CN201810841785.3A CN109272454B (en) 2018-07-27 2018-07-27 Coordinate system calibration method and device of augmented reality equipment

Publications (2)

Publication Number Publication Date
TW202008305A TW202008305A (en) 2020-02-16
TWI712004B true TWI712004B (en) 2020-12-01

Family

ID=65148337

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108116870A TWI712004B (en) 2018-07-27 2019-05-16 Coordinate system calibration method and device of augmented reality equipment

Country Status (3)

Country Link
CN (1) CN109272454B (en)
TW (1) TWI712004B (en)
WO (1) WO2020019962A1 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109272454B (en) * 2018-07-27 2020-07-03 阿里巴巴集团控股有限公司 Coordinate system calibration method and device of augmented reality equipment
CN110988947B (en) * 2019-02-20 2020-09-22 以见科技(上海)有限公司 Augmented reality positioning method based on real-time dynamic carrier phase difference technology
CN110322484B (en) * 2019-05-29 2023-09-08 武汉幻石佳德数码科技有限公司 Calibration method and system for multi-device shared augmented reality virtual space
CN110160749B (en) * 2019-06-05 2022-12-06 歌尔光学科技有限公司 Calibration device and calibration method applied to augmented reality equipment
CN112085797A (en) * 2019-06-12 2020-12-15 通用电气精准医疗有限责任公司 3D camera-medical imaging device coordinate system calibration system and method and application thereof
CN110335307B (en) * 2019-06-26 2021-07-09 Oppo广东移动通信有限公司 Calibration method, calibration device, computer storage medium and terminal equipment
CN112230256B (en) * 2019-07-15 2024-04-09 苏州宝时得电动工具有限公司 Autonomous robot, positioning calibration method and device thereof, and storage medium
CN110718043B (en) * 2019-10-17 2021-07-30 辽宁中航信诺科技有限公司 Hazardous area inspection and alarm method based on AR artificial intelligence equipment
US11288877B2 (en) 2020-01-10 2022-03-29 38th Research Institute, China Electronics Technology Group Corp. Method for matching a virtual scene of a remote scene with a real scene for augmented reality and mixed reality
CN111260793B (en) * 2020-01-10 2020-11-24 中国电子科技集团公司第三十八研究所 Remote virtual-real high-precision matching positioning method for augmented and mixed reality
CN111540060B (en) * 2020-03-25 2024-03-08 深圳奇迹智慧网络有限公司 Display calibration method and device of augmented reality equipment and electronic equipment
CN111627114A (en) * 2020-04-14 2020-09-04 北京迈格威科技有限公司 Indoor visual navigation method, device and system and electronic equipment
CN112102479B (en) * 2020-09-18 2021-09-28 贝壳找房(北京)科技有限公司 Augmented reality method and device based on model alignment, storage medium and electronic equipment
CN113804195A (en) * 2020-06-15 2021-12-17 阿里巴巴集团控股有限公司 Information processing method and device and indoor map positioning method and device
CN114869528A (en) * 2022-05-02 2022-08-09 先临三维科技股份有限公司 Scanning data processing method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI449953B (en) * 2010-04-13 2014-08-21 Sony Comp Entertainment Us Methods for generating an interactive space viewable through at least a first and a second device, and portable device for sharing a virtual reality among portable devices
TWI522650B (en) * 2012-12-19 2016-02-21 洛伊馬汀公司 System, method and computer program product for real-time alignment of an augmented reality device
TWI590189B (en) * 2015-12-23 2017-07-01 財團法人工業技術研究院 Augmented reality method, system and computer-readable non-transitory storage medium
TWI591378B (en) * 2014-07-10 2017-07-11 精工愛普生股份有限公司 Calibration method of ost hmd of ar system and non-transient computer readable media
CN107564089A (en) * 2017-08-10 2018-01-09 腾讯科技(深圳)有限公司 Three dimensional image processing method, device, storage medium and computer equipment
CN108318029A (en) * 2017-11-27 2018-07-24 中国电子科技集团公司电子科学研究院 Attitude Tracking and image superimposing method and display equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4816789B2 (en) * 2009-11-16 2011-11-16 ソニー株式会社 Information processing apparatus, information processing method, program, and information processing system
CN102222333B (en) * 2011-05-20 2013-01-02 同济大学 Method and device of mobile augmented reality of underground engineering based on mixed registration
JP6070206B2 (en) * 2013-01-18 2017-02-01 日本電気株式会社 Position coordinate conversion system, position coordinate conversion method, in-vehicle device, world coordinate measuring device, and position coordinate conversion program
CN108022267A (en) * 2016-10-31 2018-05-11 北京新长征天高智机科技有限公司 A kind of camera calibration device and scaling method
CN106558080B (en) * 2016-11-14 2020-04-24 天津津航技术物理研究所 Monocular camera external parameter online calibration method
CN107560637B (en) * 2017-08-21 2021-02-19 歌尔光学科技有限公司 Method for verifying calibration result of head-mounted display device and head-mounted display device
CN109272454B (en) * 2018-07-27 2020-07-03 阿里巴巴集团控股有限公司 Coordinate system calibration method and device of augmented reality equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI449953B (en) * 2010-04-13 2014-08-21 Sony Comp Entertainment Us Methods for generating an interactive space viewable through at least a first and a second device, and portable device for sharing a virtual reality among portable devices
TWI522650B (en) * 2012-12-19 2016-02-21 洛伊馬汀公司 System, method and computer program product for real-time alignment of an augmented reality device
TWI591378B (en) * 2014-07-10 2017-07-11 精工愛普生股份有限公司 Calibration method of ost hmd of ar system and non-transient computer readable media
TWI590189B (en) * 2015-12-23 2017-07-01 財團法人工業技術研究院 Augmented reality method, system and computer-readable non-transitory storage medium
CN107564089A (en) * 2017-08-10 2018-01-09 腾讯科技(深圳)有限公司 Three dimensional image processing method, device, storage medium and computer equipment
CN108318029A (en) * 2017-11-27 2018-07-24 中国电子科技集团公司电子科学研究院 Attitude Tracking and image superimposing method and display equipment

Also Published As

Publication number Publication date
CN109272454B (en) 2020-07-03
TW202008305A (en) 2020-02-16
CN109272454A (en) 2019-01-25
WO2020019962A1 (en) 2020-01-30

Similar Documents

Publication Publication Date Title
TWI712004B (en) Coordinate system calibration method and device of augmented reality equipment
TWI706375B (en) Method, update method and device for generating tile map in virtual map
TWI698841B (en) Data processing method and device for merging map areas
US10726580B2 (en) Method and device for calibration
CN104581111B (en) It is filled using the target area of transformation
US9135678B2 (en) Methods and apparatus for interfacing panoramic image stitching with post-processors
JP2017130929A (en) Correction method and correction device for document image acquired by imaging apparatus
US20180122044A1 (en) Environmental Map Generation from a Digital Image
CN113654765B (en) Phase deflection measurement method, system and terminal based on curved screen
US9952677B2 (en) Method and apparatus for distinguishing features in data
WO2022111609A1 (en) Grid encoding method and computer system
TWI691206B (en) Watermark adding processing method, device and client
WO2019179342A1 (en) Image processing method, image processing device, image processing system and medium
US20190019333A1 (en) Vector Graphics Rendering Techniques
WO2020259152A1 (en) Sticker generating method and apparatus, and medium and electronic device
WO2023179341A1 (en) Method for placing virtual object in video and related device
US20230147474A1 (en) Information processing apparatus to display image of illuminated target object, method of information processing, and storage medium
CN116912467A (en) Image stitching method, device, equipment and storage medium
CN112132909B (en) Parameter acquisition method and device, media data processing method and storage medium
KR20230034351A (en) Face image display method, device, electronic device and storage medium
US11741626B2 (en) Surface projection determination of a multidimensional object in a viewport space
CN116740114B (en) Object boundary fitting method and device based on convex hull detection
CN117611726B (en) Real model sunlight display method and device
WO2022252833A1 (en) Image rendering method and apparatus
Pak The concept and implementation of smooth generic camera calibration