WO2020019962A1 - Coordinate system calibration method and device for augmented reality device - Google Patents

Coordinate system calibration method and device for augmented reality device Download PDF

Info

Publication number
WO2020019962A1
WO2020019962A1 PCT/CN2019/094835 CN2019094835W WO2020019962A1 WO 2020019962 A1 WO2020019962 A1 WO 2020019962A1 CN 2019094835 W CN2019094835 W CN 2019094835W WO 2020019962 A1 WO2020019962 A1 WO 2020019962A1
Authority
WO
WIPO (PCT)
Prior art keywords
coordinate system
real
augmented reality
image
coordinate
Prior art date
Application number
PCT/CN2019/094835
Other languages
French (fr)
Chinese (zh)
Inventor
周轶霄
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020019962A1 publication Critical patent/WO2020019962A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof
    • G06T3/604Rotation of a whole image or part thereof using a CORDIC [COordinate Rotation Digital Compute] device

Definitions

  • This specification belongs to the field of augmented reality technology, and particularly relates to a coordinate system calibration method and device of an augmented reality device.
  • AR Augmented Reality
  • AR technology applies virtual information to the real world, and real environments and virtual objects are superimposed on the same screen or space in real time. At the same time, people can use AR equipment to experience the combination of virtual and reality.
  • the AR coordinate system in the AR device is usually related to the posture and position of the AR device during initialization. Different AR devices may 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.
  • a method of calibrating a coordinate system of an AR device generally, each device is placed at the same position, the same posture is maintained, and then the device is initialized. It can be seen that this method is relatively limited and inconvenient to operate, and it is not possible to calibrate the AR coordinate system of users at different positions. Therefore, there is an urgent need for an implementation that can facilitate the calibration of multiple AR device coordinate systems.
  • the purpose of this specification is to provide a coordinate system calibration method and device for an augmented reality device.
  • the method is simple, and the calibration of the AR coordinate system of different AR devices is achieved.
  • embodiments of the present specification provide a coordinate system calibration method for an augmented reality device, including:
  • the device coordinate system is calibrated according to the conversion relationship.
  • a method for acquiring real coordinate information of the reference point in a real coordinate system includes:
  • the determining a calibration point in the image information includes:
  • determining the real coordinate information of the reference point in the real coordinate system includes:
  • the determining a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device includes:
  • the method for calibrating the device coordinate system according to the conversion relationship includes:
  • the device coordinate system is calibrated according to the device conversion matrix and the real conversion matrix.
  • the calibrating the device coordinate system according to the device conversion matrix and the real conversion matrix includes:
  • the device coordinate system of the first augmented reality device and the second augmented reality device is calibrated according to the following formula:
  • P cameraA_real -1 P cameraA_AR O ARA P cameraB_real -1 P cameraB_AR O ARB
  • P cameraA_real represents a real transformation matrix corresponding to the first augmented reality device
  • P cameraA_AR represents a device transformation matrix corresponding to the first augmented reality device
  • O ARA represents a point O on the first augmented reality device.
  • P cameraB_real represents the real transformation matrix corresponding to the second augmented reality device
  • P cameraB_AR represents the device transformation matrix corresponding to the second augmented reality device
  • O ARB represents the point O at the second augmentation Coordinates in the device coordinate system of the real device.
  • the method for calibrating the device coordinate system according to the conversion relationship further includes:
  • the device coordinate system is calibrated based on the device coordinate system of any one of the augmented reality devices.
  • the calculation of the real coordinate system into the image coordinates is performed according to the image coordinate information, the real coordinate information, and a camera internal parameter matrix of the augmented real device.
  • the system's true transformation matrix including:
  • the SolvePnP algorithm is used to calculate and obtain the real transformation matrix.
  • the preset pattern includes at least one of a two-dimensional code and a barcode.
  • this specification provides a coordinate system calibration device for an augmented reality device, including:
  • An image information acquisition module configured to scan a preset pattern using an augmented reality device to acquire image information of the preset pattern in the augmented reality device;
  • a coordinate information acquisition module configured to acquire image coordinate information of a reference point in the image information in an image coordinate system of the enhancement device, and real coordinate information of the reference point in a real coordinate system;
  • a conversion relationship determining module configured to obtain a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device based on the image coordinate information and the real coordinate information;
  • the device coordinate system calibration module is configured to calibrate the device coordinate system according to the conversion relationship.
  • the coordinate information acquisition module includes a real coordinate acquisition unit
  • the real coordinate obtaining unit is specifically configured to:
  • the real coordinate obtaining unit is further configured to:
  • the conversion relationship determination module includes:
  • a device transformation matrix calculation unit configured to obtain a device transformation matrix for converting the device coordinate system of the augmented reality device into the image coordinate system;
  • a real transformation matrix calculation unit configured to calculate a real transformation matrix transformed from the real coordinate system into the image coordinate system according to the image coordinate information, the real coordinate information, and a camera internal reference matrix of the augmented real device;
  • the equipment coordinate system calibration module is configured to calibrate the equipment coordinate system according to the equipment transformation matrix and the real transformation matrix.
  • the device coordinate system calibration module is specifically configured to:
  • the device coordinate system of the first augmented reality device and the second augmented reality device is calibrated according to the following formula:
  • P cameraA_real -1 P cameraA_AR O ARA P cameraB_real -1 P cameraB_AR O ARB
  • P cameraA_real represents a real transformation matrix corresponding to the first augmented reality device
  • P cameraA_AR represents a device transformation matrix corresponding to the first augmented reality device
  • O ARA represents a point O on the first augmented reality device.
  • P cameraB_real represents the real transformation matrix corresponding to the second augmented reality device
  • P cameraB_AR represents the device transformation matrix corresponding to the second augmented reality device
  • O ARB represents the point O at the second augmentation Coordinates in the device coordinate system of the real device.
  • the device coordinate system calibration module is further configured to:
  • the device coordinate system is calibrated based on the device coordinate system of any one of the augmented reality devices.
  • 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 real device To calculate the real transformation matrix.
  • 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.
  • an embodiment of the present specification provides a computer storage medium on which a computer program is stored.
  • the computer program is executed, the method for calibrating a coordinate system of an augmented reality device according to the claim is implemented.
  • an embodiment of the present specification provides a coordinate system calibration system for an augmented reality device, including at least one processor and a memory for storing processor-executable instructions.
  • the processor executes the instructions, the AR device is implemented Coordinate system calibration method.
  • the coordinate system calibration method, device, and system of the augmented reality device provided in this manual can obtain the conversion between the image coordinate system, AR coordinate system, and real coordinate system of the AR device based on the image information of preset patterns in different AR devices. Relationship, according to the conversion relationship between the coordinate systems, the AR coordinate system of different AR devices can be calibrated, so that different users can share the position and orientation of virtual objects, get the same experience, and make the AR experience interaction between multiple users It becomes possible and provides a theoretical basis for the subsequent online development of AR applications.
  • the method provided in this embodiment of the present invention can not restrict the AR device to be set at the same position and maintain the same posture for calibration of the AR coordinate system. The operation is convenient and practical, and it meets the needs of the AR device coordinate system calibration of users at different positions .
  • FIG. 1 is a schematic flowchart of a coordinate system calibration method of an augmented reality device according to an embodiment provided in the present specification
  • FIG. 2 is a schematic diagram of constructing a real coordinate system by using a two-dimensional code image in an embodiment of the present specification
  • FIG. 3 is a schematic flowchart of a coordinate system calibration method for an augmented reality device in another embodiment of the present specification
  • FIG. 4 is a schematic structural diagram of a module of an embodiment of a coordinate system calibration apparatus for an augmented reality device provided in this specification;
  • FIG. 5 is a schematic structural diagram of a device coordinate system calibration module according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a module structure of an embodiment of a coordinate system calibration system of an augmented reality device provided in the present specification.
  • Augmented reality technology that is, AR technology is increasingly used in engineering, medical, military, marine aviation, and more and more applications developed by AR technology, such as an augmented reality application software launched by Apple Development Kit ARKit.
  • the augmented reality device in the embodiments of the present specification may also be referred to as an AR device, and may include a client with an AR application, such as: a smartphone, a tablet, a smart wearable device (a smart watch, a virtual reality glasses, a virtual reality helmet, etc.) ) And other electronic equipment.
  • the device coordinate system (that is, the AR coordinate system) in the AR device needs to be determined.
  • the AR coordinate system is the Camera coordinate system (that is, the image coordinate system in the embodiment of the present specification) in the AR device.
  • the AR device can realize the interaction between the virtual world and the real world, and the AR coordinate system in the AR device can be used to connect the virtual world with the real world.
  • 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 of gravity, and the directions of the X and Z axes are The posture of AR devices is related.
  • the AR coordinate system after initialization will be different. Therefore, the position and orientation of virtual objects cannot be shared between different AR devices, which will cause isolation of the AR experience, and different users cannot interact in the same AR space.
  • the method for calibrating the coordinate system of an augmented reality device scans different AR devices for preset patterns, and based on the image information of the preset patterns scanned in the AR device, the AR coordinate system and real coordinates of the AR device can be obtained.
  • the conversion relationship between the image 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 achieved. 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 achieve the calibration of the coordinate system of the AR device.
  • the method is simple and flexible, and has wide applicability, which meets the needs of AR device coordinate system calibration between different users.
  • FIG. 1 is a schematic flowchart of a coordinate system calibration method of an augmented reality device according to an embodiment provided in this specification.
  • a coordinate system calibration method of an augmented reality device provided by an embodiment of this specification includes:
  • S2 Scan the preset pattern by using the augmented reality device to obtain image information of the preset pattern in the augmented reality device.
  • the AR device can be controlled to scan a preset pattern, and after scanning, the camera data in the AR device is processed, that is, each frame of image information in the Camera is processed to obtain image information of the preset pattern in the AR device.
  • different AR devices can scan the same preset pattern, or send information (such as a photo) of the preset pattern to different AR devices, or copy the preset pattern
  • Multiple copies different AR devices scan the copied image of a preset pattern, or different AR devices can scan patterns with the same image characteristics and the same size.
  • the preset pattern may be a two-dimensional code, a bar code, or other planar patterns with characteristics.
  • Flat patterns such as two-dimensional codes and barcodes are more common in daily life. It is easier to guide users to scan preset patterns using AR devices, and it is easier for users to scan two-dimensional codes or barcodes. For example: if users A, B, and C are located in different cities, users A, B, and C can agree to use the same QR code image as a preset pattern, and users A, B, and C can use their respective AR devices to scan and agree Image of the QR code, the AR device of users A, B, and C can obtain the image information of the QR code image.
  • a reference point can be selected in the preset pattern, and the reference point can be any pixel point in the preset pattern, such as: 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 are not specifically limited in the embodiments of the present specification.
  • 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.
  • the preset pattern can be obtained by detecting the barcode 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, which are not specifically limited in the embodiments of this specification.
  • the coordinate information of the reference point in the image information of the preset pattern in the real coordinate system may be determined according to the actual size of the preset image and the actual position of the reference point in the preset pattern.
  • a method for acquiring real coordinate information of the reference point in a real coordinate system includes:
  • the calibration point may be one of the reference points, or may be another pixel point other than the reference point in the preset pattern.
  • 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 preset pattern in the real coordinate system.
  • the real coordinate information of the reference point in the real coordinate system is determined. For example, you can use the calibration point as the coordinate origin to build a real coordinate system.
  • the preset pattern is rectangular, square, or parallelogram, you can use the direction parallel to the length of the side of the preset pattern as the coordinate axis to construct the real coordinate system.
  • the true coordinate information of the reference point is determined.
  • the determining a calibration point in the image information includes:
  • determining the real coordinate information of the reference point in the real coordinate system includes:
  • FIG. 2 is a schematic diagram of constructing a real coordinate system by using a QR code image in an embodiment of the specification.
  • four corner points of the QR code image may be selected as reference points, and The reference point in the lower left corner can be used as the calibration point.
  • the reference point in the lower left corner is used as the origin, and the straight line on which the two sides of the calibration point are located in the two-dimensional code image is used as the coordinate axis.
  • FIG. Real coordinate information For example, if the side length of a QR 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).
  • the reference point can also choose other positions in the QR code image, such as the center point of the QR code image.
  • the method of constructing the real coordinate system can also be adjusted according to actual needs, such as: A point other than the dimension code image is used as a coordinate origin to construct a real coordinate system, etc., which are not specifically limited in the embodiments of the present specification.
  • the two QR code images have the same size, as shown in FIG. 2, if four corner points of the two-dimensional code image are selected as reference points, different AR devices can scan the same-sized two-dimensional code image to obtain a preset. Image information of the pattern. At this time, the true coordinate information of the reference point in the two-dimensional code image obtained by scanning by different AR devices may be considered to be the same.
  • the real coordinate system, image coordinate system, and The AR coordinate system is a conversion relationship between device coordinate systems.
  • the real coordinate information and image coordinate information of the reference point how to perform offset, rotation, and other operations on the reference point can be used to convert the real coordinate information of the reference point in the real coordinate system to the position in the image coordinate system.
  • the AR device system can be used to obtain the conversion relationship between the AR coordinate system of the AR device and the image coordinate system.
  • the AR coordinate system and image of the AR device can be obtained through a view transformation matrix based on OpenGL (Open Graphics Interface)
  • OpenGL Open Graphics Interface
  • the conversion relationship between the coordinate systems can also be directly obtained through the ARKit API (Application Program Interface).
  • ARKit can represent an augmented reality application software development kit launched by Apple, and API can represent a calling interface left by the operating system to applications.
  • the conversion relationship between the AR coordinate system and the real coordinate system can be obtained indirectly by using 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. Relationship, the AR coordinate system of different AR devices is calibrated to the real coordinate system, and the coordinate system of different AR devices is calibrated.
  • A can represent the coordinates of pixel O in the real coordinate system
  • B can represent the coordinates of pixel O in the image coordinate system
  • C can represent the coordinates of pixel O in the AR coordinate system
  • k and p each represent a conversion coefficient.
  • the AR coordinate system of the AR device can be calibrated into the real coordinate system. Using this method, the coordinate system of different AR devices can be calibrated, and the conversion relationship between the AR coordinate system of different AR devices and the real coordinate system can be obtained.
  • the calibration of the device coordinate system enables the AR coordinate systems of different AR devices to be unified.
  • the coordinate system calibration method of the augmented reality device provided in the embodiment of the present specification can obtain the conversion relationship between the image coordinate system, the AR coordinate system, and the real coordinate system of the AR device based on the image information of preset patterns in different AR devices. According to the transformation relationship between the coordinate systems, the calibration of the AR coordinate system of different AR devices can be achieved, so that different users can share the position and orientation of virtual objects and get the same experience, providing a theoretical basis for the subsequent online development of AR applications. .
  • the method provided in this embodiment of the present invention can not restrict the AR device to be set at the same position and maintain the same posture for calibration of the AR coordinate system. The operation is convenient and practical, and it meets the needs of the AR device coordinate system calibration of users at different positions. .
  • the determining a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device includes:
  • the method for calibrating the device coordinate system according to the conversion relationship includes:
  • the device coordinate system is calibrated according to the device conversion matrix and the real conversion matrix.
  • an embodiment of the present specification may use the obtained image coordinate information of the reference point, the real coordinate information, and the camera internal parameter matrix of the AR device to calculate the reference. Point displacement, offset, rotation, etc., to obtain the real transformation 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, and the camera coordinate system (that is, the image coordinate system) is expressed in millimeters. To complete the change process, you must first obtain the linear relationship between the pixel unit and the millimeter unit of the image plane.
  • the camera internal reference matrix in the embodiment of the present specification may be obtained from parameters of a camera in an AR device.
  • the real transformation matrix between the real coordinate system and the image coordinate system may be calculated by using the SolvePnP algorithm through the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented real device.
  • SolvePnP can represent an algorithm for solving camera rotation and translation provided in the OpenCV library.
  • OpenCV can represent a function library mainly for real-time computer vision programming.
  • the SolvePnP algorithm can be used to calculate the pose of the camera of the AR device, and calculate the real transformation matrix between the real coordinate system and the image coordinate system.
  • an AR device can be used to obtain a device transformation matrix between the AR coordinate system and the image coordinate system.
  • the AR coordinate systems of different AR devices can be calibrated.
  • the calibrating the device coordinate system according to the device conversion matrix and the real conversion matrix may include:
  • P cameraA_real may represent a real transformation matrix corresponding to the first augmented reality device
  • P cameraA_AR may represent a device transformation matrix corresponding to the first augmented reality device
  • O ARA may represent a point O at the first augmentation Coordinates in the device coordinate system of a real device
  • P cameraB_real may represent a real transformation matrix corresponding to the second augmented reality device
  • P cameraB_AR may represent a device transformation matrix corresponding to the second augmented reality device
  • O ARB may represent point O Coordinates in a device coordinate system of the second augmented reality device.
  • the coordinates of point O in the image coordinate system of AR device A are O cameraA and the image coordinates of point O in AR device B.
  • the coordinates in the system are O cameraB
  • the coordinates of point O in the real coordinate system are O real
  • the real coordinate system is transformed into the real transformation matrix of the image coordinate system of AR device A as P cameraA_real
  • the real coordinate system is transformed into that of AR device B
  • the real transformation matrix of the image coordinate system is P cameraB_real
  • the coordinates of point O in the AR coordinate system of AR device A is O ARA
  • the coordinates of point O in the AR coordinate system of AR device B is O ARB
  • the device matrix of the coordinate system converted to the image coordinate system of AR device A is P cameraA_AR
  • the device matrix of the AR coordinate system of AR device B to the image coordinate system of AR device B is P cameraB_AR .
  • the above formula (1) can be obtained by transforming and changing the above formula (2), so the real conversion matrix between the real coordinate system and image coordinate system of different AR devices, and between the AR coordinate system and the image coordinate system can be calculated. After the conversion matrix of the device, the coordinate information of the point O can be calibrated by using formula (1).
  • the method is simple and accurate, and the coordinate system calibration of different AR devices is realized.
  • the method for calibrating the device coordinate system further includes:
  • the device coordinate system is calibrated based on the device coordinate system of any one of the augmented reality devices.
  • the real transformation matrix between the real coordinate system and the image coordinate system corresponding to the 3 AR devices, and the device conversion between the AR coordinate system and the image coordinate system can be obtained.
  • the matrix can use the AR coordinate system of any one of the AR devices as a reference to obtain the conversion relationship between the AR coordinate system of the other 2 AR devices and the AR coordinate system.
  • the following formula (3) can be obtained:
  • the AR coordinate systems of AR devices B and C were calibrated to the AR coordinate system of AR device A, and the coordinate systems of the three AR devices were calibrated.
  • FIG. 3 is a schematic flowchart of a coordinate system calibration method for an augmented reality device in another embodiment of the present specification. The following describes a calibration process of an AR device coordinate system in detail with reference to FIG. 3 in the following:
  • the AR device is initialized.
  • the AR device needs to be initialized for startup.
  • step (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.
  • the SolvePnP algorithm is used to calculate the camera pose of the AR device to obtain the real transformation matrix of the real coordinate system transformed into the image coordinate system of the AR device.
  • the method provided in the embodiment of the present specification can implement the calibration of the AR coordinate system of different AR devices based on the image information of preset patterns in different AR devices, so that different users can share the position and orientation of virtual objects and get the same experience. This makes it possible for the AR experience interaction between multiple users to provide a theoretical basis for the subsequent online development of AR applications.
  • the method provided in this embodiment of the present invention can be used to calibrate the AR coordinate system without restricting the AR devices to be set at the same position and the same posture. The operation is convenient and practical. Improved user experience.
  • one or more embodiments of the present specification further provide a coordinate system calibration device of the augmented reality device.
  • the device may include a system (including a distributed system), software (application), module, component, server, client, etc. that uses the method described in the embodiments of the present specification, and a device that implements necessary hardware.
  • the devices in one or more embodiments provided in the embodiments of this specification are as described in the following embodiments. Since the implementation solution of the device to solve the problem is similar to the method, the implementation of the specific device in the embodiment of this specification may refer to the implementation of the foregoing method, and the duplicated details are not described again.
  • unit or “module” may be a combination of software and / or hardware that realizes a predetermined function.
  • the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and conceived.
  • FIG. 4 is a schematic block diagram of an embodiment of a coordinate system calibration apparatus for an augmented reality device provided in this specification.
  • the coordinate system calibration apparatus for an augmented reality device provided in this specification includes: image information acquisition Module 41, coordinate information acquisition module 42, conversion relationship determination module 43, and equipment coordinate system calibration module 44, wherein:
  • the image information acquisition module 41 may be configured to scan a preset pattern by using an augmented reality device to acquire image information of the preset pattern in the augmented reality device;
  • the coordinate information obtaining module 42 may be configured to obtain image coordinate information of a reference point in the image information in an image coordinate system of the enhancement device, and real coordinate information of the reference point in a real coordinate system;
  • a conversion relationship determining module 43 may be configured to determine a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device based on the image coordinate information and the real coordinate information;
  • the device coordinate system calibration module 44 may be configured to calibrate the device coordinate system according to the conversion relationship.
  • the coordinate system calibration device of the augmented reality device provided in the embodiment of the present specification can obtain the conversion relationship between the image coordinate system, the AR coordinate system, and the real coordinate system of the AR device based on image information of preset patterns in different AR devices. According to the transformation relationship between the coordinate systems, the calibration of the AR coordinate system of different AR devices can be achieved, so that different users can share the position and orientation of virtual objects and get the same experience, providing a theoretical basis for the subsequent online development of AR applications. .
  • the method provided in this embodiment of the present invention can be used to calibrate the AR coordinate system without restricting the AR devices to be set at 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 AR devices for users at different positions.
  • the coordinate information acquisition module includes a real coordinate acquisition unit
  • the real coordinate obtaining unit is specifically configured to:
  • the real coordinate obtaining unit is further configured to:
  • the coordinate system calibration device of the augmented reality device obtained in the embodiment of the present specification obtains 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. Because different ARs use the same size preset pattern, it is possible to calibrate the coordinate system of the AR device based on the real coordinate information of the reference point in the preset pattern.
  • FIG. 5 is a schematic structural diagram of a device coordinate system calibration module in an embodiment of the description. As shown in FIG. 5, based on the above embodiment, the conversion relationship determination module 43 includes:
  • the device conversion matrix calculation unit 51 may be configured to obtain a device conversion matrix for converting the device coordinate system of the augmented reality device into the image coordinate system;
  • the real transformation matrix calculation unit 52 may be configured to calculate a real transformation matrix converted from the real coordinate system to the image coordinate system according to the image coordinate information, the real coordinate information, and a camera internal parameter matrix of the augmented real device. ;
  • the device coordinate system calibration module 44 may be configured to calibrate the device coordinate system according to the device transformation matrix and the real transformation matrix.
  • the transformation relationship between AR coordinate systems between different AR devices can be obtained by using the real transformation matrix of the image coordinate system and the real coordinate system of the AR device, and the transformation matrix between the AR coordinate system and the image coordinate system. Provides an accurate theoretical basis for the calibration of the coordinate system of AR equipment.
  • the device coordinate system calibration module is specifically configured to:
  • the device coordinate system of the first augmented reality device and the second augmented reality device is calibrated according to the following formula:
  • P cameraA_real -1 P cameraA_AR O ARA P cameraB_real -1 P cameraB_AR O ARB
  • P cameraA_real represents a real transformation matrix corresponding to the first augmented reality device
  • P cameraA_AR represents a device transformation matrix corresponding to the first augmented reality device
  • O ARA represents a point O on the first augmented reality device.
  • P cameraB_real represents the real transformation matrix corresponding to the second augmented reality device
  • P cameraB_AR represents the device transformation matrix corresponding to the second augmented reality device
  • O ARB represents the point O at the second augmentation Coordinates in the device coordinate system of the real device.
  • the embodiments of this specification provide coordinate system conversion formulas of different AR devices, which can accurately calibrate the coordinate systems of each AR device.
  • the device coordinate system calibration module is further configured to:
  • the device coordinate system is calibrated based on the device coordinate system of any one of the augmented reality devices.
  • the coordinate system calibration processing unit is specifically configured to: according to the image coordinate information, the real coordinate information, and a camera internal parameter matrix of the augmented real device, use SolvePnP algorithm to calculate and obtain the Real transformation matrix.
  • the pose of the camera in the AR device can be calculated by using the SolvePnP algorithm, and the real transformation matrix between the real coordinate system of the AR device and the image coordinate system is obtained.
  • 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.
  • a two-dimensional code, a bar code, and other flat patterns that are common in daily life are used as preset patterns, which is convenient for guiding a user to scan, convenient in operation, and improving the user experience.
  • a computer storage medium may also be provided, in which a computer program is stored.
  • the method for processing video data in the foregoing embodiment is implemented.
  • the following method may be implemented:
  • the device coordinate system is calibrated according to the conversion relationship.
  • the method or device described in the foregoing embodiments provided in this specification may implement business logic through a computer program and record it on a storage medium, and the storage medium may be read and executed by a computer to achieve the effect of the solution described in the embodiments of this specification.
  • the method or device for calibrating the coordinate system of the above-mentioned augmented reality device provided in the embodiment of the present specification may be implemented by a processor executing corresponding program instructions in a computer, such as using a C ++ language of a Windows operating system on a PC, a Linux system, or Others, for example, use android and iOS system programming languages to implement in smart terminals, and to implement processing logic based on quantum computers.
  • FIG. 6 is a schematic diagram of a module structure of an embodiment of a coordinate system calibration system for an augmented reality device provided in this specification, as shown in FIG. 6,
  • the coordinate system calibration system of the augmented reality device provided by the embodiment of the present specification may include a processor 61 and a memory 62 for storing processor-executable instructions.
  • the processor 61 and the memory 62 complete communication with each other through a bus 63;
  • the processor 61 is configured to call program instructions in the memory 62 to execute the methods provided in the foregoing seismic data processing method embodiments. For example, the processor 61 scans a preset pattern using an augmented reality device, and obtains the information in the augmented reality device. The image information of the preset pattern; acquiring image coordinate information of a reference point in the image information in an image coordinate system of the enhancement device, and real coordinate information of the reference point in a real coordinate system; based on the The image coordinate information and the real coordinate information, determine a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device, and perform the device coordinate system according to the conversion relationship calibration.
  • the embodiments of the present specification are not limited to situations that must conform to industry communication standards, standard computer data processing and data storage rules, or one or more embodiments described in this specification. Certain industry standards or implementations that are slightly modified based on implementations described in custom methods or embodiments can also achieve the same, equivalent or similar, or predictable implementation effects of the above embodiments. The embodiments obtained by applying these modified or deformed data acquisitions, storages, judgments, and processing methods may still fall within the scope of the optional implementations of the examples in this specification.
  • a programmable logic device Programmable Logic Device (PLD)
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog Verilog
  • the controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor. , Logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, With the Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory.
  • the controller may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor. , Logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are
  • controller logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded controllers by logically programming the method steps. Microcontrollers, etc. to achieve the same function. Therefore, such a controller can be regarded as a hardware component, and a device included in the controller for implementing various functions can also be regarded as a structure within the hardware component. Or even, the means for implementing various functions can be regarded as a structure that can be both a software module implementing the method and a hardware component.
  • the system, device, module, or unit described in the foregoing embodiments may be specifically implemented by a computer chip or entity, or a product with a certain function.
  • a typical implementation device is a computer.
  • the computer may 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, and a tablet.
  • a computer, a wearable device, or a combination of any of these devices may 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, and a tablet.
  • a computer, a wearable device, or a combination of any of these devices are examples of any of these devices.
  • each module may be implemented in the same or multiple software and / or hardware, or the module that implements the same function may be implemented by a combination of multiple submodules or subunits, etc. .
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or integrated.
  • 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, which may be electrical, mechanical or other forms.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions
  • the device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
  • a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
  • processors CPUs
  • input / output interfaces output interfaces
  • network interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-persistent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information can be stored by any method or technology.
  • Information may be computer-readable instructions, data structures, modules of a program, 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), other types of random access memory (RAM), and read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk 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.
  • computer-readable media does not include temporary computer-readable media, such as modulated data signals and carrier waves.
  • one or more embodiments of the present specification may be provided as a method, a system, or a computer program product. Therefore, one or more embodiments of the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of the present specification may adopt a computer program 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 code therein. The form of the product.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • One or more embodiments of the specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • One or more embodiments of the present specification may also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network.
  • program modules may be located in local and remote computer storage media, including storage devices.

Abstract

Provided by the present description is a coordinate system calibration method and device for an augmented reality device. The method comprises: scanning a preset pattern using an augmented reality device to obtain image information of the preset pattern in the augmented reality device; acquiring image coordinate information of a reference point in the image information within an image coordinate system of the augmented reality device and real coordinate information of the reference point in a real coordinate system; obtaining the real coordinate system, the image coordinate system, and a conversion relationship between the device coordinate systems of the augmented reality device on the basis of the image coordinate information and the real coordinate information; and calibrating the device coordinate system according to the conversion relationship. By employing each embodiment in the present description, an augmented reality coordinate system may be calibrated without restricting the configuration of augmented reality devices to a same position and a same orientation; the operation is convenient, the the method is highly practical, and the requirement of calibrating the coordinate system of the AR devices of users at different positions is met.

Description

一种增强现实设备的坐标系校准方法及装置Method and device for calibrating coordinate system of augmented reality equipment 技术领域Technical field
本说明书属于增强现实技术领域,尤其涉及一种增强现实设备的坐标系校准方法及装置。This specification belongs to the field of augmented reality technology, and particularly relates to a coordinate system calibration method and device of an augmented reality device.
背景技术Background technique
随着科技的发展,增强现实技术即AR(Augmented Reality)技术的应用越来越多,AR技术将虚拟的信息应用到真实世界,真实的环境和虚拟的物体实时地叠加到了同一个画面或空间同时存在,人们可以利用AR设备体验虚拟与现实结合的场景。With the development of science and technology, AR (Augmented Reality) technology is increasingly used. AR technology applies virtual information to the real world, and real environments and virtual objects are superimposed on the same screen or space in real time. At the same time, 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 during initialization. Different AR devices may 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, for a method of calibrating a coordinate system of an AR device, generally, each device is placed at the same position, the same posture is maintained, and then the device is initialized. It can be seen that this method is relatively limited and inconvenient to operate, and it is not possible to calibrate the AR coordinate system of users at different positions. Therefore, there is an urgent need for an implementation that can facilitate the calibration of multiple AR device coordinate systems.
发明内容Summary of the Invention
本说明书目的在于提供一种增强现实设备的坐标系校准方法及装置,方法简单,实现了不同的AR设备的AR坐标系的校准。The purpose of this specification is to provide a coordinate system calibration method and device for an augmented reality device. The method is simple, and the calibration of the AR coordinate system of different AR devices is achieved.
一方面本说明书实施例提供了一种增强现实设备的坐标系校准方法,包括:On the one hand, embodiments of the present specification provide a coordinate system calibration method for an augmented reality device, including:
利用增强现实设备扫描预设图案,获取增强现实设备中所述预设图案的图像信息;Scanning the preset pattern using an augmented reality device to obtain image information of the preset pattern in the augmented reality device;
获取所述图像信息中的参考点在所述增强设备的图像坐标系中的图像坐标信息,和所述参考点在真实坐标系中的真实坐标信息;Acquiring image coordinate information of a reference point in the image information in an image coordinate system of the enhancement device, and real coordinate information of the reference point in a real coordinate system;
基于所述图像坐标信息、所述真实坐标信息,确定所述真实坐标系、所述图像坐标系、所述增强现实设备的设备坐标系之间的转换关系;Determining a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device based on the image coordinate information and the real coordinate information;
根据所述转换关系将所述设备坐标系进行校准。The device coordinate system is calibrated according to the conversion relationship.
进一步地,所述方法的另一个实施例中,所述参考点在真实坐标系中的真实坐标信息获取方法包括:Further, in another embodiment of the method, a method for acquiring real coordinate information of the reference point in a real coordinate system includes:
确定所述图像信息中的标定点;Determining a calibration point in the image information;
根据所述预设图案中所述参考点与所述标定点之间的相对位置,确定所述参考点在所述真实坐标系中的真实坐标信息。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.
进一步地,所述方法的另一个实施例中,所述确定所述图像信息中的标定点包括:Further, in another embodiment of the method, the determining a calibration point in the image information includes:
选取一个所述参考点作为所述标定点;Selecting one of the reference points as the calibration point;
相应地,所述确定所述参考点在所述真实坐标系中的真实坐标信息,包括:Correspondingly, determining the real coordinate information of the reference point in the real coordinate system includes:
以所述标定点为坐标原点,选取所述标定点之外的两个参考点与所述标定点的连线所在的直线作为坐标轴,构建所述真实坐标系;Using the calibration point as a coordinate origin, selecting a straight line where a line connecting two reference points outside the calibration point and the calibration point is located as a coordinate axis, and constructing the true 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.
进一步地,所述方法的另一个实施例中,所述确定所述真实坐标系、所述图像坐标系、所述增强现实设备的设备坐标系之间的转换关系包括:Further, in another embodiment of the method, the determining a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device includes:
获取所述增强现实设备的所述设备坐标系转换为所述图像坐标系的设备转换矩阵;Acquiring a device transformation matrix for converting the device coordinate system of the augmented reality device into the image coordinate system;
根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,计算所述真实坐标系转变为所述图像坐标系的真实转换矩阵;Calculating the real transformation matrix transformed from the real coordinate system into the image coordinate system according to the image coordinate information, the real coordinate information, and the camera internal reference matrix of the augmented real device;
相应地,所述根据所述转换关系将所述设备坐标系进行校准的方法包括:Accordingly, the method for calibrating the device coordinate system according to the conversion relationship includes:
根据所述设备转换矩阵、所述真实转换矩阵,将所述设备坐标系进行校准。The device coordinate system is calibrated according to the device conversion matrix and the real conversion matrix.
进一步地,所述方法的另一个实施例中,所述根据所述设备转换矩阵、所述真实转换矩阵,将所述设备坐标系进行校准,包括: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:
按照下述公式实现第一增强现实设备和第二增强现实设备的设备坐标系的校准:The device coordinate system of the first augmented reality device and the second augmented reality device is calibrated according to the following formula:
P cameraA_real -1P cameraA_ARO ARA=P cameraB_real -1P cameraB_ARO ARB 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 a real transformation matrix corresponding to the first augmented reality device, P cameraA_AR represents a device transformation matrix corresponding to the first augmented reality device, and O ARA represents a point O on the first augmented reality device. Coordinates in the device coordinate system, P cameraB_real represents the real transformation matrix corresponding to the second augmented reality device, P cameraB_AR represents the device transformation matrix corresponding to the second augmented reality device, and O ARB represents the point O at the second augmentation Coordinates in the device coordinate system of the real device.
进一步地,所述方法的另一个实施例中,所述根据所述转换关系将所述设备坐标系进行校准的方法还包括:Further, in another embodiment of the method, the method for calibrating the device coordinate system according to the conversion relationship further includes:
若进行设备坐标系校准的增强现实设备大于2个,则以其中任意一个增强现实设备的设备坐标系为基准进行设备坐标系的校准。If there are more than two augmented reality devices for device coordinate system calibration, the device coordinate system is calibrated based on the device coordinate system of any one of the augmented reality devices.
进一步地,所述方法的另一个实施例中,所述根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,计算所述真实坐标系转变为所述图像坐标系的真实转换矩阵,包括:Further, in another embodiment of the method, the calculation of the real coordinate system into the image coordinates is performed according to the image coordinate information, the real coordinate information, and a camera internal parameter matrix of the augmented real device. The system's true transformation matrix, including:
根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,利用SolvePnP算法,计算获得所述真实转换矩阵。According to the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented real device, the SolvePnP algorithm is used to calculate and obtain the real transformation matrix.
进一步地,所述方法的另一个实施例中,所述预设图案包括二维码、条形码中的至少一种。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 an augmented reality device, including:
图像信息获取模块,用于利用增强现实设备扫描预设图案,获取增强现实设备中所述预设图案的图像信息;An image information acquisition module, configured to scan a preset pattern using an augmented reality device to acquire image information of the preset pattern in the augmented reality device;
坐标信息获取模块,用于获取所述图像信息中的参考点在所述增强设备的图像坐标系中的图像坐标信息,和所述参考点在真实坐标系中的真实坐标信息;A coordinate information acquisition module, configured to acquire image coordinate information of a reference point in the image information in an image coordinate system of the enhancement device, and real coordinate information of the reference point in a real coordinate system;
转换关系确定模块,用于基于所述图像坐标信息、所述真实坐标信息,获得所述真实坐标系、所述图像坐标系、所述增强现实设备的设备坐标系之间的转换关系;A conversion relationship determining module, configured to obtain a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device based on the image coordinate information and the real coordinate information;
设备坐标系校准模块,用于根据所述转换关系将所述设备坐标系进行校准。The device coordinate system calibration module is configured to calibrate the device coordinate system according to the conversion relationship.
进一步地,所述装置的另一个实施例中,所述坐标信息获取模块包括真实坐标获取单元,Further, in another embodiment of the apparatus, the coordinate information acquisition module includes a real coordinate acquisition unit,
所述真实坐标获取单元具体用于:The real coordinate obtaining unit is specifically configured to:
确定所述图像信息中的标定点;Determining a calibration point in the image information;
根据所述预设图案中所述参考点与所述标定点之间的相对位置,确定所述参考点在所述真实坐标系中的真实坐标信息。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.
进一步地,所述装置的另一个实施例中,所述真实坐标获取单元还用于:Further, in another embodiment of the apparatus, the real coordinate obtaining unit is further configured to:
选取一个所述参考点作为所述标定点;Selecting one of the reference points as the calibration point;
以所述标定点为坐标原点,选取所述标定点之外的两个参考点与所述标定点的连线所在的直线作为坐标轴,构建所述真实坐标系;Using the calibration point as a coordinate origin, selecting a straight line where a line connecting two reference points outside the calibration point and the calibration point is located as a coordinate axis, and constructing the true 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.
进一步地,所述装置的另一个实施例中,所述转换关系确定模块包括:Further, in another embodiment of the apparatus, the conversion relationship determination module includes:
设备转换矩阵计算单元,用于获取所述增强现实设备的所述设备坐标系转换为所述图像坐标系的设备转换矩阵;A device transformation matrix calculation unit, configured to obtain a device transformation matrix for converting the device coordinate system of the augmented reality device into the image coordinate system;
真实转换矩阵计算单元,用于根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,计算所述真实坐标系转变为所述图像坐标系的真实转换矩阵;A real transformation matrix calculation unit, configured to calculate a real transformation matrix transformed from the real coordinate system into the image coordinate system according to the image coordinate information, the real coordinate information, and a camera internal reference matrix of the augmented real device;
相应地,所述设备坐标系校准模块用于根据所述设备转换矩阵、所述真实转换矩阵,将所述设备坐标系进行校准。Correspondingly, the equipment coordinate system calibration module is configured to calibrate the equipment coordinate system according to the equipment transformation matrix and the real transformation matrix.
进一步地,所述装置的另一个实施例中,所述设备坐标系校准模块具体用于:Further, in another embodiment of the apparatus, the device coordinate system calibration module is specifically configured to:
按照下述公式实现第一增强现实设备和第二增强现实设备的设备坐标系的校准:The device coordinate system of the first augmented reality device and the second augmented reality device is calibrated according to the following formula:
P cameraA_real -1P cameraA_ARO ARA=P cameraB_real -1P cameraB_ARO ARB 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 a real transformation matrix corresponding to the first augmented reality device, P cameraA_AR represents a device transformation matrix corresponding to the first augmented reality device, and O ARA represents a point O on the first augmented reality device. Coordinates in the device coordinate system, P cameraB_real represents the real transformation matrix corresponding to the second augmented reality device, P cameraB_AR represents the device transformation matrix corresponding to the second augmented reality device, and O ARB represents the point O at the second augmentation Coordinates in the device coordinate system of the real device.
进一步地,所述装置的另一个实施例中,所述设备坐标系校准模块还用于:Further, in another embodiment of the apparatus, the device coordinate system calibration module is further configured to:
若进行设备坐标系校准的增强现实设备大于2个,则以其中任意一个增强现实设备的设备坐标系为基准进行设备坐标系的校准。If there are more than two augmented reality devices for device coordinate system calibration, 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 apparatus, 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 real device To calculate the real transformation 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, an embodiment of the present specification provides a computer storage medium on which a computer program is stored. When the computer program is executed, the method for calibrating a coordinate system of an augmented reality device according to the claim is implemented.
又一方面,本说明书实施例提供了增强现实设备的坐标系校准系统,包括至少一个处理器以及用于存储处理器可执行指令的存储器,所述处理器执行所述指令时实现上述增强现实设备的坐标系校准方法。In another aspect, an embodiment of the present specification provides a coordinate system calibration system for an augmented reality device, including at least one processor and a memory for storing processor-executable instructions. When the processor executes the instructions, the AR device is implemented Coordinate system calibration method.
本说明书提供的增强现实设备的坐标系校准方法、装置、系统,基于不同AR设备中的预设图案的图像信息,可以获得AR设备的图像坐标系、AR坐标系、真实坐标系之间的转换关系,根据各坐标系之间的转换关系可以实现不同AR设备的AR坐标系的校准,使得不同的用户可以共享虚拟物体的位置、方向,得到相同的体验,使得多用户之间的AR体验互动成为可能,为后续AR应用的联机开发提供了理论基础。本说明实施例提供的方法可以不限制AR设备设置在同一个位置、保持同一个姿势进行AR坐标系的校准,操作方便,实用性强,满足了不同位置用户的AR设备的坐标系校准的需求。The coordinate system calibration method, device, and system of the augmented reality device provided in this manual can obtain the conversion between the image coordinate system, AR coordinate system, and real coordinate system of the AR device based on the image information of preset patterns in different AR devices. Relationship, according to the conversion relationship between the coordinate systems, the AR coordinate system of different AR devices can be calibrated, so that different users can share the position and orientation of virtual objects, get the same experience, and make the AR experience interaction between multiple users It becomes possible and provides a theoretical basis for the subsequent online development of AR applications. The method provided in this embodiment of the present invention can not restrict the AR device to be set at the same position and maintain the same posture for calibration of the AR coordinate system. The operation is convenient and practical, and it meets the needs of the AR device coordinate system calibration of users at different positions .
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely These are some of the embodiments described in this specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1是本说明书提供的一个实施例中的增强现实设备的坐标系校准方法的流程示意图;FIG. 1 is a schematic flowchart of a coordinate system calibration method of an augmented reality device according to an embodiment provided in the present specification; FIG.
图2是本说明书一个实施例中利用二维码图像构建真实坐标系的示意图;2 is a schematic diagram of constructing a real coordinate system by using a two-dimensional code image in an embodiment of the present specification;
图3是本说明书又一个实施例中增强现实设备的坐标系校准方法的流程示意图;3 is a schematic flowchart of a coordinate system calibration method for an augmented reality device in another embodiment of the present specification;
图4是本说明书提供的增强现实设备的坐标系校准装置一个实施例的模块结构示意图;FIG. 4 is a schematic structural diagram of a module of an embodiment of a coordinate system calibration apparatus for an augmented reality device provided in this specification; FIG.
图5是本说明一个实施例中设备坐标系校准模块的结构示意图;5 is a schematic structural diagram of a device coordinate system calibration module according to an embodiment of the present disclosure;
图6是本说明书提供的一种增强现实设备的坐标系校准系统实施例的模块结构示意图。FIG. 6 is a schematic diagram of a module structure of an embodiment of a coordinate system calibration system of an augmented reality device provided in the present specification.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present specification. Obviously, the described The examples are only a part of examples of this specification, but not all examples. Based on the embodiments in this specification, all other embodiments obtained by a person of ordinary skill in the art without creative efforts should 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, marine aviation, and more and more applications developed by AR technology, such as an augmented reality application software launched by Apple Development Kit ARKit. The augmented reality device in the embodiments of the present specification may also be referred to as an AR device, and may include a client with an AR application, such as: a smartphone, a tablet, a smart wearable device (a smart watch, a virtual reality glasses, a virtual reality helmet, 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, the device coordinate system (that is, the AR coordinate system) in the AR device needs to be determined. The AR coordinate system is the Camera coordinate system (that is, the image coordinate system in the embodiment of the present specification) in the AR device. A bridge between real world real coordinate systems. The AR device can realize the interaction between the virtual world and the real world, and the AR coordinate system in the AR device can be used to connect the virtual world with the real world. Generally, 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 of gravity, and the directions of the X and Z axes are The posture of AR devices is related. Therefore, even if it is 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, the position and orientation of virtual objects cannot be shared between different AR devices, which will cause 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 method for calibrating the coordinate system of an augmented reality device provided in the embodiments of this specification scans different AR devices for preset patterns, and based on the image information of the preset patterns scanned in the AR device, the AR coordinate system and real coordinates of the AR device can be obtained. The conversion relationship between the image 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 achieved. 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 achieve the calibration of the coordinate system of the AR device. The method is simple and flexible, and has wide applicability, which meets the needs of AR device coordinate system calibration between different users.
具体地,图1是本说明书提供的一个实施例中的增强现实设备的坐标系校准方法的流程示意图,如图1所示,本说明书实施例提供的增强现实设备的坐标系校准方法,包括:Specifically, FIG. 1 is a schematic flowchart of a coordinate system calibration method of an augmented reality device according to an embodiment provided in this specification. As shown in FIG. 1, a coordinate system calibration method of an augmented reality device provided by an embodiment of this specification includes:
S2、利用增强现实设备扫描预设图案,获取增强现实设备中所述预设图案的图像信息。S2. Scan the preset pattern by using 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 a preset pattern, and after scanning, the camera data in the AR device is processed, that is, each frame of image information in the Camera is processed to obtain image information of the preset pattern in the AR device. When using the AR device to scan a preset pattern, different AR devices can scan the same preset pattern, or send information (such as a photo) of the preset pattern to different AR devices, or copy the preset pattern Multiple copies, different AR devices scan the copied image of a preset pattern, or different AR devices can 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设备中可以获得二维码图像的图像信息。In one embodiment of the present specification, the preset pattern may be a two-dimensional code, a bar code, or other planar patterns with characteristics. Flat patterns such as two-dimensional codes and barcodes are more common in daily life. It is easier to guide users to scan preset patterns using AR devices, and it is easier for users to scan two-dimensional codes or barcodes. For example: if users A, B, and C are located in different cities, users A, B, and C can agree to use the same QR code image as a preset pattern, and users A, B, and C can use their respective AR devices to scan and agree Image of the QR code, the AR device of users A, B, and C can obtain the image information of the QR code image.
S4、获取所述图像信息中的参考点在所述增强设备的图像坐标系中的图像坐标信息,和所述参考点在真实坐标系中的真实坐标信息。S4. Acquire image coordinate information of a reference point in the image information in an image coordinate system of the enhancement device, and real coordinate information of the reference point in a real coordinate system.
具体地,可以在预设图案中选取出参考点,参考点可以是预设图案中的任意像素点,如:可以是预设图案中的角点、中心点、或者预设图案中具有特殊特征的点等,参考点的数量可以根据实际需要进行设置,如:4个,本说明书实施例不作具体限定。通过分析AR设备中的预设图案的图像信息,可以获得预设图案的图像信息中的参考点在AR 设备的图像坐标系中的图像坐标信息、以及参考点在真实坐标系中的真实坐标信息。参考点在AR设备的图像坐标系中的图像坐标信息可以通过分析AR设备中预设图案的图像信息,从AR设备的自身系统获得,如:可以通过AR设备的检测条形码请求获得预设图案的图像信息中的参考点在AR设备的图像坐标系中的坐标信息。图像坐标系可以表示AR设备的Camera坐标系,真实坐标系可以表示真实世界的坐标系,真实坐标系的具体构建方法可以根据实际需要选择,本说明书实施例不作具体限定。Specifically, a reference point can be selected in the preset pattern, and the reference point can be any pixel point in the preset pattern, such as: 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 are not specifically limited in the embodiments of the present specification. By analyzing the image information of the preset pattern in the AR device, 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 real coordinate information of the reference point in the real coordinate system . 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, the preset pattern can be obtained by detecting the barcode of the AR device. The coordinate information of the reference point in the image 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, which are not specifically limited in the embodiments of this specification.
预设图案的图像信息中的参考点在真实坐标系中的坐标信息可以根据预设图像的实际尺寸以及参考点在预设图案中的实际位置确定。The coordinate information of the reference point in the image information of the preset pattern in the real coordinate system may 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, a method for acquiring real coordinate information of the reference point in a real coordinate system includes:
确定所述图像信息中的标定点;Determining a calibration point in the image information;
根据所述预设图案中所述参考点与所述标定点之间的相对位置,确定所述参考点在所述真实坐标系中的真实坐标信息。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.
其中,标定点可以是参考点中的一个也可以是预设图案中除去参考点之外的其他像素点。标定点可以用于确定真实坐标系的相对位置,可以作为真实坐标系中参考点在预设图案中的基准点。根据标定点和参考点在预设图案中的相对位置,确定出参考点在真实坐标系中的真实坐标信息。例如:可以以标定点为坐标原点,构建真实坐标系,如:若预设图案时矩形、方形或平行四边形,可以将平行于预设图案的边长的方向作为坐标轴,构建真实坐标系,根据预设图案的实际尺寸,以及参考点在预设图案中的位置,确定出参考点的真实坐标信息。The calibration point may be one of the reference points, or may be another pixel point other than the reference point in the preset pattern. 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 preset pattern in the real coordinate system. According to the relative positions 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, you can use the calibration point as the coordinate origin to build a real coordinate system. For example, if the preset pattern is rectangular, square, or parallelogram, you can use the direction parallel to the length of the side of the preset pattern 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 true coordinate information of the reference point is determined.
本说明书一个实施例中,所述确定所述图像信息中的标定点包括:In an embodiment of the present specification, the determining a calibration point in the image information includes:
选取一个所述参考点作为所述标定点;Selecting one of the reference points as the calibration point;
相应地,所述确定所述参考点在所述真实坐标系中的真实坐标信息,包括:Correspondingly, determining the real coordinate information of the reference point in the real coordinate system includes:
以所述标定点为坐标原点,选取所述标定点之外的两个参考点与所述标定点的连线所在的直线作为坐标轴,构建所述真实坐标系;Using the calibration point as a coordinate origin, selecting a straight line where a line connecting two reference points outside the calibration point and the calibration point is located as a coordinate axis, and constructing the true 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)。当然,根据实际需要,参考点还可以选择二维码图像中的其他位置,如:二维码图像的中心点等,真实坐标系的构建方法也可以根据实际需要进行调整,如:可以以二维码图像之外的一点作为坐标原点构建真实坐标系等,本说明书实施例不作具体限定。FIG. 2 is a schematic diagram of constructing a real coordinate system by using a QR code image in an embodiment of the specification. As shown in FIG. 2, in an embodiment of the specification, four corner points of the QR code image may be selected as reference points, and The reference point in the lower left corner can be used as the calibration point. The reference point in the lower left corner is used as the origin, and the straight line on which the two sides of the calibration point are located in the two-dimensional code image is used as the coordinate axis. As shown in FIG. Real coordinate information. For example, if the side length of a QR 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 choose other positions in the QR code image, such as the center point of the QR code image. The method of constructing the real coordinate system can also be adjusted according to actual needs, such as: A point other than the dimension code image is used as a coordinate origin to construct a real coordinate system, etc., which are not specifically limited in the embodiments of the present specification.
需要说明的是,本说明书实施例中不同的AR设备的真实坐标系的构建方法是相同的,这样可以确保参考点在不同的AR设备中的真实坐标信息相同。It should be noted that the method of constructing the real coordinate system of different AR devices in the embodiments of the present specification is the same, so that the true coordinate information of the reference point in different AR devices can be ensured.
若多个二维码图像的尺寸相同,如图2所示,若选取二维码图像的4个角点作为参考点,则不同的AR设备可以扫描尺寸相同的二维码图像,获得预设图案的图像信息。此时,不同的AR设备扫描获得的二维码图像中的参考点的真实坐标信息可以认为是相同的。If the two QR code images have the same size, as shown in FIG. 2, if four corner points of the two-dimensional code image are selected as reference points, different AR devices can scan the same-sized two-dimensional code image to obtain a preset. Image information of the pattern. At this time, the true coordinate information of the reference point in the two-dimensional code image obtained by scanning by different AR devices may be considered to be the same.
S6、基于所述图像坐标信息、所述真实坐标信息,确定所述真实坐标系、所述图像坐标系、所述增强现实设备的设备坐标系之间的转换关系。S6. Based on the image coordinate information and the real coordinate information, determine a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device.
获得参考点在AR设备的图像坐标系中的图像坐标信息、在真实坐标系中的真实坐标信息后,可以通过分析参考点的图像坐标信息、真实坐标信息,获得真实坐标系、图像坐标系以及AR坐标系即设备坐标系之间的转换关系。如:可以根据参考点的真实坐标信息、图像坐标信息,计算如何将参考点进行偏移、旋转等操作,能够将参考点在真实坐标系中的真实坐标信息转换为图像坐标系中的位置,获得真实坐标系和图像坐标系之间的转换关系。同时,可以利用AR设备系统获得AR设备的AR坐标系与图像坐标系之间的转换关系,如:可以通过基于OpenGL(开放式图形接口)中的视图变换矩阵获得AR设备的AR坐标系与图像坐标系之间的转换关系,也可以通过ARKit的API(Application Program Interface,应用程序编程接口)直接获取AR设备的AR坐标系与图像坐标系之间的转换关系(如:可以通过ARKit的API利用AR Camera中的view Matrix(视点矩阵)获得)。ARKit可以表示苹果公司推出的一款增强现实应用程序软件开发工具包,API可以表示操作系统留给应用程序的一个调用接口。After obtaining the image coordinate information of the reference point in the image coordinate system of the AR device and the real coordinate information in the real coordinate system, the real coordinate system, image coordinate system, and The AR coordinate system is a conversion relationship between device coordinate systems. For example, according to the real coordinate information and image coordinate information of the reference point, how to perform offset, rotation, and other operations on the reference point can be used to convert the real coordinate information of the reference point in the real coordinate system to the position in the image coordinate system. Obtain the transformation 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 of the AR device and the image coordinate system. For example, the AR coordinate system and image of the AR device can be obtained through a view transformation matrix based on OpenGL (Open Graphics Interface) The conversion relationship between the coordinate systems can also be directly obtained through the ARKit API (Application Program Interface). (For example, it can be used through the ARKit API View matrix in ARCamera). ARKit can represent an augmented reality application software development kit launched by Apple, and API can represent a calling interface left by the operating system to applications.
S8、根据所述转换关系将所述设备坐标系进行校准。S8. Calibrate the device coordinate system according to the conversion relationship.
本说明书一个实施例中,利用真实坐标系和图像坐标系之间的转换关系、以及AR 坐标系和图像坐标系之间的转换关系,可以间接的获得AR坐标系与真实坐标系之间的转换关系,实现了将不同的AR设备的AR坐标系校准到真实坐标系的,实现了不同AR设备的坐标系的校准。In an embodiment of the present specification, the conversion relationship between the AR coordinate system and the real coordinate system can be obtained indirectly by using 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. Relationship, the AR coordinate system of different AR devices is calibrated to the real coordinate system, and the coordinate system of different AR devices is calibrated.
如:若某个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 conversion relationship between the real coordinate system and the image coordinate system of an AR device is: A × k = B, the conversion relationship between the AR coordinate system and the image coordinate system is: C × p = B, where: A can represent the coordinates of pixel O in the real coordinate system, B can represent the coordinates of pixel O in the image coordinate system, C can represent the coordinates of pixel O in the AR coordinate system, and k and p each represent a conversion coefficient. Then, the conversion relationship between the AR coordinate system and the real coordinate system can be obtained as: C = A × (k / p). The AR coordinate system of the AR device can be calibrated into the real coordinate system. Using this method, the coordinate system of different AR devices can be calibrated, and the conversion relationship between the AR coordinate system of different AR devices and the real coordinate system can be obtained. The calibration of the device coordinate system enables the AR coordinate systems of different AR devices to be 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 the present specification can obtain the conversion relationship between the image coordinate system, the AR coordinate system, and the real coordinate system of the AR device based on the image information of preset patterns in different AR devices. According to the transformation relationship between the coordinate systems, the calibration of the AR coordinate system of different AR devices can be achieved, so that different users can share the position and orientation of virtual objects and get the same experience, providing a theoretical basis for the subsequent online development of AR applications. . The method provided in this embodiment of the present invention can not restrict the AR device to be set at the same position and maintain the same posture for calibration of the AR coordinate system. The operation is convenient and practical, and it meets the needs of the AR device coordinate system calibration of users at different positions. .
在上述实施例的基础上,本说明书一个实施例中,所述确定所述真实坐标系、所述图像坐标系、所述增强现实设备的设备坐标系之间的转换关系包括:Based on the above embodiment, in an embodiment of the present specification, the determining a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device includes:
获取所述增强现实设备的所述设备坐标系转换为所述图像坐标系的设备转换矩阵;Acquiring a device transformation matrix for converting the device coordinate system of the augmented reality device into the image coordinate system;
根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,计算所述真实坐标系转变为所述图像坐标系的真实转换矩阵;Calculating the real transformation matrix transformed from the real coordinate system into the image coordinate system according to the image coordinate information, the real coordinate information, and the camera internal reference matrix of the augmented real device;
相应地,所述根据所述转换关系将所述设备坐标系进行校准的方法包括:Accordingly, the method for calibrating the device coordinate system according to the conversion relationship includes:
根据所述设备转换矩阵、所述真实转换矩阵,将所述设备坐标系进行校准。The device coordinate system is calibrated 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 the present specification may use the obtained image coordinate information of the reference point, the real coordinate information, and the camera internal parameter matrix of the AR device to calculate the reference. Point displacement, offset, rotation, etc., to obtain the real transformation 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, and the camera coordinate system (that is, the image coordinate system) is expressed in millimeters. To complete the change process, you must first obtain the linear relationship between the pixel unit and the millimeter unit of the image plane. The camera internal reference matrix in the embodiment of the present specification may be obtained from parameters of a camera in an AR device.
本说明书一个实施例中,真实坐标系和图像坐标系之间的真实转换矩阵可以通过所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,利用SolvePnP算法计算获得。SolvePnP可以表示OpenCV库里面提供的一个求解Camera旋转、平移的算法,OpenCV可以表示一个主要针对实时计算机视觉的编程的功能库。In one embodiment of the present specification, the real transformation matrix between the real coordinate system and the image coordinate system may be calculated by using the SolvePnP algorithm through the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented real device. SolvePnP can represent an algorithm for solving camera rotation and translation provided in the OpenCV library. OpenCV can represent a function library mainly for real-time computer vision programming.
利用SolvePnP算法可以计算AR设备的相机的姿势,计算出真实坐标系和图像坐标系之间的真实转换矩阵。The SolvePnP algorithm can be used to calculate the pose of the camera of the AR device, and calculate the real transformation matrix between the real coordinate system and the image coordinate system.
同时,可以利用AR设备获取到AR坐标系与图像坐标系之间的设备转换矩阵,利用真实转换矩阵和设备转换矩阵,可以将不同的AR设备的AR坐标系进行校准。At the same time, an AR device can be used to obtain a device transformation matrix between the AR coordinate system and the image coordinate system. Using the real transformation matrix and the device transformation matrix, the AR coordinate systems of different AR devices can be calibrated.
本说明书一个实施例中,所述根据所述设备转换矩阵、所述真实转换矩阵,将所述设备坐标系进行校准,可以包括:In an embodiment of the present specification, the calibrating the device coordinate system according to the device conversion matrix and the real conversion matrix may include:
按照下述公式(1)实现第一增强现实设备和第二增强现实设备的设备坐标系的校准:Calibration of the device coordinate system of the first augmented reality device and the second augmented reality device is performed according to the following formula (1):
P cameraA_real -1P cameraA_ARO ARA=P cameraB_real -1P cameraB_ARO ARB   (1) 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 may represent a real transformation matrix corresponding to the first augmented reality device, P cameraA_AR may represent a device transformation matrix corresponding to the first augmented reality device, and O ARA may represent a point O at the first augmentation Coordinates in the device coordinate system of a real device, P cameraB_real may represent a real transformation matrix corresponding to the second augmented reality device, P cameraB_AR may represent a device transformation matrix corresponding to the second augmented reality device, and O ARB may represent point O Coordinates in a 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。则可以得到如下方程组: Suppose there are two AR devices A and B. We already know a point O in the real world, and define it as follows: The coordinates of point O in the image coordinate system of AR device A are O cameraA and the image coordinates of point O in AR device B. The coordinates in the system are O cameraB , the coordinates of point O in the real coordinate system are O real , the real coordinate system is transformed into the real transformation matrix of the image coordinate system of AR device A as P cameraA_real , and the real coordinate system is transformed into that of AR device B The real transformation matrix of the image coordinate system is P cameraB_real , the coordinates of point O in the AR coordinate system of AR device A is O ARA , the coordinates of point O in the AR coordinate system of AR device B is O ARB , and the AR of AR device A The device matrix of the coordinate system converted to the image coordinate system of AR device A is P cameraA_AR , and the device matrix of the AR coordinate system of AR device B to the image coordinate system of AR device B is P cameraB_AR . You can get the following equations:
Figure PCTCN2019094835-appb-000001
Figure PCTCN2019094835-appb-000001
通过对上述公式(2)进行转换变行可以获得上述公式(1),因此计算获得不同的AR设备的真实坐标系和图像坐标系之间的真实转换矩阵、AR坐标系与图像坐标系之间的设备转换矩阵后,可以利用公式(1)将点O的坐标信息进行校准,方法简单,准确,实现了不同的AR设备的坐标系校准。The above formula (1) can be obtained by transforming and changing the above formula (2), so the real conversion matrix between the real coordinate system and image coordinate system of different AR devices, and between the AR coordinate system and the image coordinate system can be calculated. After the conversion matrix of the device, the coordinate information of the point O can be calibrated by using formula (1). The method is simple and accurate, and the coordinate system calibration of different AR devices is realized.
在上述实施例的基础上,本说明书一个实施例中,所述将所述设备坐标系进行校准的方法还包括:Based on the above embodiment, in an embodiment of the present specification, the method for calibrating the device coordinate system further includes:
若进行设备坐标系校准的增强现实设备大于2个,则以其中任意一个增强现实设备的设备坐标系为基准进行设备坐标系的校准。If there are more than two augmented reality devices for device coordinate system calibration, 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):For example, if coordinate systems of 3 AR devices need to be calibrated, the real transformation matrix between the real coordinate system and the image coordinate system corresponding to the 3 AR devices, and the device conversion between the AR coordinate system and the image coordinate system can be obtained. The matrix can use the AR coordinate system of any one of the AR devices as a reference to obtain the conversion relationship between the AR coordinate system of the other 2 AR devices and the AR coordinate system. For example, the following formula (3) can be obtained:
Figure PCTCN2019094835-appb-000002
Figure PCTCN2019094835-appb-000002
将AR设备B、C的AR坐标系校准到AR设备A的AR坐标系中,实现了3个AR设备的坐标系的校准。The AR coordinate systems of AR devices B and C were calibrated to the AR coordinate system of AR device A, and the coordinate systems of the three AR devices were calibrated.
图3是本说明书又一个实施例中增强现实设备的坐标系校准方法的流程示意图,下面结合图3,具体介绍本说明书实施例中AR设备坐标系的校准流程:FIG. 3 is a schematic flowchart of a coordinate system calibration method for an augmented reality device in another embodiment of the present specification. The following describes a calibration process of an AR device coordinate system in detail with reference to FIG. 3 in the following:
(1)AR设备初始化。AR设备启动是需要进行初始化。(1) The AR device is initialized. The AR device needs to be initialized for startup.
(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 a preset QR code image, and 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) Acquire the image coordinate information of the four corner points in the two-dimensional code image in the image coordinate system, 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 reference matrix of the AR device, the SolvePnP algorithm is used to calculate the camera pose of the AR device to obtain the real transformation matrix of the real coordinate system transformed into the image coordinate system of the AR device.
(6)获取AR设备的AR空间视图变换矩阵即AR设备的AR坐标系转换为图像坐标系的设备转换矩阵。(6) Acquire the AR space view transformation matrix of the AR device, that is, the device transformation matrix of the AR device's AR coordinate system to an image coordinate system.
(7)利用上述公式(1)计算出不同AR设备的AR坐标系的转换关系,完成AR设备的坐标系的校准。(7) Use the above formula (1) to calculate the conversion relationship of the AR coordinate systems of different AR devices, and complete the calibration of the AR device's coordinate system.
本说明书实施例提供的方法,基于不同AR设备中的预设图案的图像信息,可以实现不同AR设备的AR坐标系的校准,使得不同的用户可以共享虚拟物体的位置、方向,得到相同的体验,使得多用户之间的AR体验互动成为可能,为后续AR应用的联机开发提供了理论基础。本说明实施例提供的方法可以不限制AR设备设置在同一个位置、同一个姿势进行AR坐标系的校准,操作方便,实用性强,满足了不同位置用户的AR设备的坐标系校准的需求,提高了用户体验。The method provided in the embodiment of the present specification can implement the calibration of the AR coordinate system of different AR devices based on the image information of preset patterns in different AR devices, so that different users can share the position and orientation of virtual objects and get the same experience. This makes it possible for the AR experience interaction between multiple users to provide a theoretical basis for the subsequent online development of AR applications. The method provided in this embodiment of the present invention can be used to calibrate the AR coordinate system without restricting the AR devices to be set at the same position and the same posture. The operation is convenient and practical. Improved user experience.
本说明书中上述方法的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。相关之处参见方法实施例的部分说明即可。Each embodiment of the above method in this specification is described in a progressive manner, and the same or similar parts between the various embodiments may refer to each other. Each embodiment focuses on the differences from other embodiments. For related points, refer to the description of the method embodiments.
基于上述所述的增强现实设备的坐标系校准方法,本说明书一个或多个实施例还提供一种增强现实设备的坐标系校准装置。所述的装置可以包括使用了本说明书实施例所述方法的系统(包括分布式系统)、软件(应用)、模块、组件、服务器、客户端等并结合必要的实施硬件的装置。基于同一创新构思,本说明书实施例提供的一个或多个实施例中的装置如下面的实施例所述。由于装置解决问题的实现方案与方法相似,因此本说明书实施例具体的装置的实施可以参见前述方法的实施,重复之处不再赘述。以下所使用的,术语“单元”或者“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。Based on the coordinate system calibration method of the augmented reality device described above, one or more embodiments of the present specification further provide a coordinate system calibration device of the augmented reality device. The device may include a system (including a distributed system), software (application), module, component, server, client, etc. that uses the method described in the embodiments of the present specification, and a device that implements necessary hardware. 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 solution of the device to solve the problem is similar to the method, the implementation of the specific device in the embodiment of this specification may refer to the implementation of the foregoing method, and the duplicated details are not described again. As used below, the term "unit" or "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and conceived.
具体地,图4是本说明书提供的增强现实设备的坐标系校准装置一个实施例的模块结构示意图,如图4所示,本说明书中提供的增强现实设备的坐标系校准装置包括:图像信息获取模块41、坐标信息获取模块42、转换关系确定模块43、设备坐标系校准模块44,其中:Specifically, FIG. 4 is a schematic block diagram of an embodiment of a coordinate system calibration apparatus for an augmented reality device provided in this specification. As shown in FIG. 4, the coordinate system calibration apparatus for an augmented reality device provided in this specification includes: image information acquisition Module 41, coordinate information acquisition module 42, conversion relationship determination module 43, and equipment coordinate system calibration module 44, wherein:
图像信息获取模块41,可以用于利用增强现实设备扫描预设图案,获取增强现实设备中所述预设图案的图像信息;The image information acquisition module 41 may be configured to scan a preset pattern by using an augmented reality device to acquire image information of the preset pattern in the augmented reality device;
坐标信息获取模块42,可以用于获取所述图像信息中的参考点在所述增强设备的图像坐标系中的图像坐标信息,和所述参考点在真实坐标系中的真实坐标信息;The coordinate information obtaining module 42 may be configured to obtain image coordinate information of a reference point in the image information in an image coordinate system of the enhancement device, and real coordinate information of the reference point in a real coordinate system;
转换关系确定模块43,可以用于基于所述图像坐标信息、所述真实坐标信息,确定所述真实坐标系、所述图像坐标系、所述增强现实设备的设备坐标系之间的转换关系;A conversion relationship determining module 43 may be configured to determine a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device based on the image coordinate information and the real coordinate information;
设备坐标系校准模块44,可以用于根据所述转换关系将所述设备坐标系进行校准。The device coordinate system calibration module 44 may be configured to calibrate the device coordinate system 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 the present specification can obtain the conversion relationship between the image coordinate system, the AR coordinate system, and the real coordinate system of the AR device based on image information of preset patterns in different AR devices. According to the transformation relationship between the coordinate systems, the calibration of the AR coordinate system of different AR devices can be achieved, so that different users can share the position and orientation of virtual objects and get the same experience, providing a theoretical basis for the subsequent online development of AR applications. . The method provided in this embodiment of the present invention can be used to calibrate the AR coordinate system without restricting the AR devices to be set at 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 AR devices for users at different positions.
在上述实施例的基础上,所述坐标信息获取模块包括真实坐标获取单元,Based on the above embodiment, the coordinate information acquisition module includes a real coordinate acquisition unit,
所述真实坐标获取单元具体用于:The real coordinate obtaining unit is specifically configured to:
确定所述图像信息中的标定点;Determining a calibration point in the image information;
根据所述预设图案中所述参考点与所述标定点之间的相对位置,确定所述参考点在所述真实坐标系中的真实坐标信息。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.
在上述实施例的基础上,所述真实坐标获取单元还用于:Based on the above embodiment, the real coordinate obtaining unit is further configured to:
选取一个所述参考点作为所述标定点;Selecting one of the reference points as the calibration point;
以所述标定点为坐标原点,选取所述标定点之外的两个参考点与所述标定点的连线所在的直线作为坐标轴,构建所述真实坐标系;Using the calibration point as a coordinate origin, selecting a straight line where a line connecting two reference points outside the calibration point and the calibration point is located as a coordinate axis, and constructing the true 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.
本说明书实施例提供的增强现实设备的坐标系校准装置,基于预设图案的实际尺寸以及参考点与标定点之间的相对位置,获取参考点在真实坐标系中的坐标信息。由于不同的AR使用的相同尺寸的预设图案,能够实现基于预设图案中参考点的真实坐标信息进行AR设备的坐标系的校准。The coordinate system calibration device of the augmented reality device provided in the embodiment of the present specification obtains 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. Because different ARs use the same size preset pattern, it is possible to calibrate the coordinate system of the AR device based on the real coordinate information of the reference point in the preset pattern.
图5是本说明一个实施例中设备坐标系校准模块的结构示意图,如图5所示,在上述实施例的基础上,所述转换关系确定模块43包括:FIG. 5 is a schematic structural diagram of a device coordinate system calibration module in an embodiment of the description. As shown in FIG. 5, based on the above embodiment, the conversion relationship determination module 43 includes:
设备转换矩阵计算单元51,可以用于获取所述增强现实设备的所述设备坐标系转换为所述图像坐标系的设备转换矩阵;The device conversion matrix calculation unit 51 may be configured to obtain a device conversion matrix for converting the device coordinate system of the augmented reality device into the image coordinate system;
真实转换矩阵计算单元52,可以用于根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,计算所述真实坐标系转变为所述图像坐标系的真实转换矩阵;The real transformation matrix calculation unit 52 may be configured to calculate a real transformation matrix converted from the real coordinate system to the image coordinate system according to the image coordinate information, the real coordinate information, and a camera internal parameter matrix of the augmented real device. ;
相应地,所述设备坐标系校准模块44可以用于根据所述设备转换矩阵、所述真实转换矩阵,将所述设备坐标系进行校准。Accordingly, the device coordinate system calibration module 44 may be configured to calibrate the device coordinate system according to the device transformation matrix and the real transformation matrix.
本说明书实施例,利用AR设备的图像坐标系与真实坐标系的真实转换矩阵,以及AR坐标系与图像坐标系之间的转换矩阵,可以获取不同AR设备之间AR坐标系之间的转换关系,为AR设备的坐标系的校准提供了准确的理论基础。In the embodiment of the present specification, the transformation relationship between AR coordinate systems between different AR devices can be obtained by using the real transformation matrix of the image coordinate system and the real coordinate system of the AR device, and the transformation matrix between the AR coordinate system and the image coordinate system. Provides an accurate theoretical basis for the calibration of the coordinate system of AR equipment.
在上述实施例的基础上,所述设备坐标系校准模块具体用于:Based on the above embodiments, the device coordinate system calibration module is specifically configured to:
按照下述公式实现第一增强现实设备和第二增强现实设备的设备坐标系的校准:The device coordinate system of the first augmented reality device and the second augmented reality device is calibrated according to the following formula:
P cameraA_real -1P cameraA_ARO ARA=P cameraB_real -1P cameraB_ARO ARB 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 a real transformation matrix corresponding to the first augmented reality device, P cameraA_AR represents a device transformation matrix corresponding to the first augmented reality device, and O ARA represents a point O on the first augmented reality device. Coordinates in the device coordinate system, P cameraB_real represents the real transformation matrix corresponding to the second augmented reality device, P cameraB_AR represents the device transformation matrix corresponding to the second augmented reality device, and O ARB represents the point O at the second augmentation Coordinates in the device coordinate system of the real device.
本说明书实施例,提供了不同AR设备的坐标系转换公式,能够准确的将各AR设备的坐标系进行校准。The embodiments of this specification provide coordinate system conversion formulas of different AR devices, which can accurately calibrate the coordinate systems of each AR device.
在上述实施例的基础上,所述设备坐标系校准模块还用于:Based on the above embodiments, the device coordinate system calibration module is further configured to:
若进行设备坐标系校准的增强现实设备大于2个,则以其中任意一个增强现实设备的设备坐标系为基准进行设备坐标系的校准。If there are more than two augmented reality devices for device coordinate system calibration, the device coordinate system is calibrated based on the device coordinate system of any one of the augmented reality devices.
在上述实施例的基础上,所述坐标系校准处理单元具体用于:根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,利用SolvePnP算法,计算获得所述真实转换矩阵。Based on the above embodiment, the coordinate system calibration processing unit is specifically configured to: according to the image coordinate information, the real coordinate information, and a camera internal parameter matrix of the augmented real device, use SolvePnP algorithm to calculate and obtain the Real transformation matrix.
本说明书实施例,利用SolvePnP算法可以计算出AR设备中相机的姿势,获得AR设备的真实坐标系与图像坐标系之间的真实转换矩阵,方法简单准确。In the embodiment of the present specification, the pose of the camera in the AR device can be calculated by using the SolvePnP algorithm, and the real transformation matrix between the real coordinate system of the AR device and the image coordinate system is obtained.
在上述实施例的基础上,所述图像信息获取模块获取到的所述预设图案的图像信息中的预设图案包括二维码、条形码中的至少一个。Based on the above embodiment, 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 the embodiment of the present specification, a two-dimensional code, a bar code, and other flat patterns that are common in daily life are used as preset patterns, which is convenient for guiding a user to scan, convenient in operation, and improving the user experience.
需要说明书的是,上述所述的装置根据方法实施例的描述还可以包括其他的实施方式。具体的实现方式可以参照相关方法实施例的描述,在此不作一一赘述。It should be noted that the above-mentioned device according to the description of the method embodiments may also include other implementations. For specific implementation manners, reference may be made to the description of related method embodiments, and details are not described herein.
本说明书一个实施例中,还可以提供一种计算机存储介质,其上存储有计算机程序,所述计算机程序被执行时,实现上述实施例中视频数据的处理方法,例如可以实现如下方法:In an embodiment of the present specification, a computer storage medium may also be provided, in which a computer program is stored. When the computer program is executed, the method for processing video data in the foregoing embodiment is implemented. For example, the following method may be implemented:
利用增强现实设备扫描预设图案,获取增强现实设备中所述预设图案的图像信息;Scanning the preset pattern using an augmented reality device to obtain image information of the preset pattern in the augmented reality device;
获取所述图像信息中的参考点在所述增强设备的图像坐标系中的图像坐标信息,和所述参考点在真实坐标系中的真实坐标信息;Acquiring image coordinate information of a reference point in the image information in an image coordinate system of the enhancement device, and real coordinate information of the reference point in a real coordinate system;
基于所述图像坐标信息、所述真实坐标信息,确定所述真实坐标系、所述图像坐标系、所述增强现实设备的设备坐标系之间的转换关系;Determining a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device based on the image coordinate information and the real coordinate information;
根据所述转换关系将所述设备坐标系进行校准。The device coordinate system is calibrated according to the conversion relationship.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The specific embodiments of the present specification have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and the desired result may still be achieved. In addition, the processes depicted in the figures do not necessarily require the particular order shown or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
本说明书提供的上述实施例所述的方法或装置可以通过计算机程序实现业务逻辑并记录在存储介质上,所述的存储介质可以计算机读取并执行,实现本说明书实施例所描述方案的效果。The method or device described in the foregoing embodiments provided in this specification may implement business logic through a computer program and record it on a storage medium, and the storage medium may be read and executed by a computer to achieve the effect of the solution described in the embodiments of this specification.
本说明书实施例提供的上述增强现实设备的坐标系校准方法或装置可以在计算机中由处理器执行相应的程序指令来实现,如使用windows操作系统的c++语言在PC端实现、linux系统实现,或其他例如使用android、iOS系统程序设计语言在智能终端实现,以及基于量子计算机的处理逻辑实现等。本说明书提供的一种增强现实设备的坐标系校准系统的一个实施例中,图6是本说明书提供的一种增强现实设备的坐标系校准系统实施例的模块结构示意图,如图6所示,本说明书实施例提供的增强现实设备的坐标系校准系统可以包括处理器61以及用于存储处理器可执行指令的存储器62,The method or device for calibrating the coordinate system of the above-mentioned augmented reality device provided in the embodiment of the present specification may be implemented by a processor executing corresponding program instructions in a computer, such as using a C ++ language of a Windows operating system on a PC, a Linux system, or Others, for example, use android and iOS system programming languages to implement in smart terminals, and to implement processing logic based on quantum computers. In an embodiment of a coordinate system calibration system for an augmented reality device provided in this specification, FIG. 6 is a schematic diagram of a module structure of an embodiment of a coordinate system calibration system for an augmented reality device provided in this specification, as shown in FIG. 6, The coordinate system calibration system of the augmented reality device provided by the embodiment of the present specification may include a processor 61 and a memory 62 for storing processor-executable instructions.
处理器61和存储器62通过总线63完成相互间的通信;The processor 61 and the memory 62 complete communication with each other through a bus 63;
所述处理器61用于调用所述存储器62中的程序指令,以执行上述各地震数据处理方法实施例所提供的方法,例如包括:利用增强现实设备扫描预设图案,获取增强现实设备中所述预设图案的图像信息;获取所述图像信息中的参考点在所述增强设备的图像坐标系中的图像坐标信息,和所述参考点在真实坐标系中的真实坐标信息;基于所述图像坐标信息、所述真实坐标信息,确定所述真实坐标系、所述图像坐标系、所述增强现实设备的设备坐标系之间的转换关系,根据所述转换关系将所述设备坐标系进行校准。The processor 61 is configured to call program instructions in the memory 62 to execute the methods provided in the foregoing seismic data processing method embodiments. For example, the processor 61 scans a preset pattern using an augmented reality device, and obtains the information in the augmented reality device. The image information of the preset pattern; acquiring image coordinate information of a reference point in the image information in an image coordinate system of the enhancement device, and real coordinate information of the reference point in a real coordinate system; based on the The image coordinate information and the real coordinate information, determine a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device, and perform the device coordinate system according to the conversion relationship calibration.
需要说明的是说明书上述所述的装置、计算机存储介质、系统根据相关方法实施例的描述还可以包括其他的实施方式,具体的实现方式可以参照方法实施例的描述,在此不作一一赘述。It should be noted that the description of the device, the computer storage medium, and the system described in the description according to the related method embodiments may also include other implementations. For specific implementations, reference may be made to the description of the method embodiments, and details are not described herein.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于硬件+程序类实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the related parts, refer to the description of the method embodiment.
本说明书实施例并不局限于必须是符合行业通信标准、标准计算机数据处理和数据存储规则或本说明书一个或多个实施例所描述的情况。某些行业标准或者使用自定义方式或实施例描述的实施基础上略加修改后的实施方案也可以实现上述实施例相同、等同或相近、或变形后可预料的实施效果。应用这些修改或变形后的数据获取、存储、判断、处理方式等获取的实施例,仍然可以属于本说明书实施例的可选实施方案范围之内。The embodiments of the present specification are not limited to situations that must conform to industry communication standards, standard computer data processing and data storage rules, or one or more embodiments described in this specification. Certain industry standards or implementations that are slightly modified based on implementations described in custom methods or embodiments can also achieve the same, equivalent or similar, or predictable implementation effects of the above embodiments. The embodiments obtained by applying these modified or deformed data acquisitions, storages, judgments, and processing methods may still fall within the scope of the optional implementations of the examples in this 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, for a technical improvement, it can be clearly distinguished whether it is an improvement in hardware (for example, the improvement of circuit structures such as diodes, transistors, switches, etc.) or an improvement in software (for the improvement of method flow). However, with the development of technology, the improvement of many methods and processes 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 hardware entity modules. For example, a programmable logic device (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. Designers can program themselves to "integrate" a digital system on a PLD, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of making integrated circuit chips manually, this programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used in program development and writing, but before compilation The original code must also be written in a specific programming language, which is called Hardware Description Language (HDL), and HDL is not the only one, but there are many types, such as ABEL (Advanced Boolean ExpressionLanguage) , 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), etc. VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also be clear that as long as the method flow is logically programmed and integrated into the integrated circuit using the above-mentioned several hardware description languages, a 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 may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor. , Logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, With the Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to make the controller logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded controllers by logically programming the method steps. Microcontrollers, etc. to achieve the same function. Therefore, such a controller can be regarded as a hardware component, and a device included in the controller for implementing various functions can also be regarded as a structure within the hardware component. Or even, the means for implementing various functions can be regarded as a structure that can be both a software module implementing the method and a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、车载人机交互设备、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The system, device, module, or unit described in the foregoing embodiments may be specifically implemented by a computer chip or entity, or a product with a certain function. A typical implementation device is a computer. Specifically, the computer may 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, and a tablet. A computer, a wearable device, or a combination of any of these devices.
虽然本说明书一个或多个实施例提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的手段可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的装 置或终端产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境,甚至为分布式数据处理环境)。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、产品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、产品或者设备所固有的要素。在没有更多限制的情况下,并不排除在包括所述要素的过程、方法、产品或者设备中还存在另外的相同或等同要素。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。Although one or more embodiments of the present specification provide method operation steps as described in the embodiments or flowcharts, more or less operation steps may be included based on conventional or non-creative means. The sequence of steps listed in the embodiments is only one way of executing the steps, and does not represent the only sequence of execution. When the actual device or terminal product is executed, it may be executed sequentially or in parallel according to the method shown in the embodiment or the accompanying drawings (for example, a parallel processor or multi-threaded environment, or even a distributed data processing environment). The terms "including," "including," or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, product, or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed Elements, or elements that are inherent to such a process, method, product, or device. Without further limitation, it does not exclude that there are other identical or equivalent elements in the process, method, product or equipment including the elements. Words such as first and second are used to indicate names, but not in any particular 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 may be implemented in the same or multiple software and / or hardware, or the module that implements the same function may be implemented by a combination of multiple submodules or subunits, etc. . The device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated. To another system, or some features can be ignored or not implemented. In addition, 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, which 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 flowcharts and / or block diagrams, and combinations of processes and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, so that the instructions generated by the processor of the computer or other programmable data processing device are used to generate Means for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions The device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-persistent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储、石墨烯存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both permanent and non-persistent, removable and non-removable media. Information can be stored by any method or technology. Information may be computer-readable instructions, data structures, modules of a program, 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), other types of random access memory (RAM), and read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk 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. As defined herein, computer-readable media does not include temporary computer-readable media, such as modulated data signals and carrier waves.
本领域技术人员应明白,本说明书一个或多个实施例可提供为方法、系统或计算机程序产品。因此,本说明书一个或多个实施例可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书一个或多个实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that one or more embodiments of the present specification may be provided as a method, a system, or a computer program product. Therefore, one or more embodiments of the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of the present specification may adopt a computer program 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 code therein. The form of the product.
本说明书一个或多个实施例可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本本说明书一个或多个实施例,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。One or more embodiments of the specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示 例描述的具体特征、结构、材料或者特点包含于本说明书的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant part, refer to the description of the method embodiment. In the description of this specification, the description with reference to the terms “one embodiment”, “some embodiments”, “examples”, “specific examples”, or “some examples” and the like means specific features described in conjunction with the embodiments or examples , Structure, materials, or features are included in at least one embodiment or example of this specification. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Moreover, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. In addition, without any contradiction, those skilled in the art may combine and combine different embodiments or examples and features of the different embodiments or examples described in this specification.
以上所述仅为本说明书一个或多个实施例的实施例而已,并不用于限制本本说明书一个或多个实施例。对于本领域技术人员来说,本说明书一个或多个实施例可以有各种更改和变化。凡在本说明书的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在权利要求范围之内。The above description is only an embodiment of one or more embodiments of the present specification, and is not intended to limit one or more embodiments of the present specification. For those skilled in the art, various modifications and changes can be made to one or more embodiments of the present specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the scope of the claims.

Claims (18)

  1. 一种增强现实设备的坐标系校准方法,包括:A coordinate system calibration method for an augmented reality device includes:
    利用增强现实设备扫描预设图案,获取增强现实设备中所述预设图案的图像信息;Scanning the preset pattern using an augmented reality device to obtain image information of the preset pattern in the augmented reality device;
    获取所述图像信息中的参考点在所述增强设备的图像坐标系中的图像坐标信息,和所述参考点在真实坐标系中的真实坐标信息;Acquiring image coordinate information of a reference point in the image information in an image coordinate system of the enhancement device, and real coordinate information of the reference point in a real coordinate system;
    基于所述图像坐标信息、所述真实坐标信息,确定所述真实坐标系、所述图像坐标系、所述增强现实设备的设备坐标系之间的转换关系;Determining a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device based on the image coordinate information and the real coordinate information;
    根据所述转换关系将所述设备坐标系进行校准。The device coordinate system is calibrated according to the conversion relationship.
  2. 如权利要求1所述的方法,所述参考点在真实坐标系中的真实坐标信息获取方法包括:The method according to claim 1, wherein the method for acquiring real coordinate information of the reference point in a real coordinate system comprises:
    确定所述图像信息中的标定点;Determining a calibration point in the image information;
    根据所述预设图案中所述参考点与所述标定点之间的相对位置,确定所述参考点在所述真实坐标系中的真实坐标信息。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.
  3. 如权利要求2所述的方法,所述确定所述图像信息中的标定点包括:The method according to claim 2, wherein determining a calibration point in the image information comprises:
    选取一个所述参考点作为所述标定点;Selecting one of the reference points as the calibration point;
    相应地,所述确定所述参考点在所述真实坐标系中的真实坐标信息,包括:Correspondingly, determining the real coordinate information of the reference point in the real coordinate system includes:
    以所述标定点为坐标原点,选取所述标定点之外的两个参考点与所述标定点的连线所在的直线作为坐标轴,构建所述真实坐标系;Using the calibration point as a coordinate origin, selecting a straight line where a line connecting two reference points outside the calibration point and the calibration point is located as a coordinate axis, and constructing the true 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.
  4. 如权利要求1所述的方法,所述确定所述真实坐标系、所述图像坐标系、所述增强现实设备的设备坐标系之间的转换关系包括:The method according to claim 1, wherein determining a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device comprises:
    获取所述增强现实设备的所述设备坐标系转换为所述图像坐标系的设备转换矩阵;Acquiring a device transformation matrix for converting the device coordinate system of the augmented reality device into the image coordinate system;
    根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,计算所述真实坐标系转变为所述图像坐标系的真实转换矩阵;Calculating the real transformation matrix transformed from the real coordinate system into the image coordinate system according to the image coordinate information, the real coordinate information, and the camera internal reference matrix of the augmented real device;
    相应地,所述根据所述转换关系将所述设备坐标系进行校准的方法包括:Accordingly, the method for calibrating the device coordinate system according to the conversion relationship includes:
    根据所述设备转换矩阵、所述真实转换矩阵,将所述设备坐标系进行校准。The device coordinate system is calibrated according to the device conversion matrix and the real conversion matrix.
  5. 如权利要求4所述的方法,所述根据所述设备转换矩阵、所述真实转换矩阵,将所述设备坐标系进行校准,包括:The method according to claim 4, wherein calibrating the device coordinate system based on the device transformation matrix and the real transformation matrix comprises:
    按照下述公式实现第一增强现实设备和第二增强现实设备的设备坐标系的校准:The device coordinate system of the first augmented reality device and the second augmented reality device is calibrated according to the following formula:
    P cameraA_real -1P cameraA_ARO ARA=P cameraB_real -1P cameraB_ARO ARB 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 a real transformation matrix corresponding to the first augmented reality device, P cameraA_AR represents a device transformation matrix corresponding to the first augmented reality device, and O ARA represents a point O on the first augmented reality device. Coordinates in the device coordinate system, P cameraB_real represents the real transformation matrix corresponding to the second augmented reality device, P cameraB_AR represents the device transformation matrix corresponding to the second augmented reality device, and O ARB represents the point O at the second augmentation Coordinates in the device coordinate system of the real device.
  6. 如权利要求5所述的方法,所述根据所述转换关系将所述设备坐标系进行校准的方法还包括:The method according to claim 5, wherein the method for calibrating the device coordinate system according to the conversion relationship further comprises:
    若进行设备坐标系校准的增强现实设备大于2个,则以其中任意一个增强现实设备的设备坐标系为基准进行设备坐标系的校准。If there are more than two augmented reality devices for device coordinate system calibration, the device coordinate system is calibrated based on the device coordinate system of any one of the augmented reality devices.
  7. 如权利要求4所述的方法,所述根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,计算所述真实坐标系转变为所述图像坐标系的真实转换矩阵,包括:The method according to claim 4, wherein said calculating a true transformation of said real coordinate system into said image coordinate system based on said image coordinate information, said real coordinate information, and said camera internal parameter matrix of said augmented real device. Matrix, including:
    根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,利用SolvePnP算法,计算获得所述真实转换矩阵。According to the image coordinate information, the real coordinate information, and the camera internal parameter matrix of the augmented real device, the SolvePnP algorithm is used to calculate and obtain the real transformation matrix.
  8. 如权利要求1-7任一项所述的方法,所述预设图案包括二维码、条形码中的至少一种。The method according to any one of claims 1 to 7, wherein the preset pattern comprises at least one of a two-dimensional code and a bar code.
  9. 一种增强现实设备的坐标系校准装置,包括:A coordinate system calibration device for an augmented reality device includes:
    图像信息获取模块,用于利用增强现实设备扫描预设图案,获取增强现实设备中所述预设图案的图像信息;An image information acquisition module, configured to scan a preset pattern using an augmented reality device to acquire image information of the preset pattern in the augmented reality device;
    坐标信息获取模块,用于获取所述图像信息中的参考点在所述增强设备的图像坐标系中的图像坐标信息,和所述参考点在真实坐标系中的真实坐标信息;A coordinate information acquisition module, configured to acquire image coordinate information of a reference point in the image information in an image coordinate system of the enhancement device, and real coordinate information of the reference point in a real coordinate system;
    转换关系确定模块,用于基于所述图像坐标信息、所述真实坐标信息,确定所述真实坐标系、所述图像坐标系、所述增强现实设备的设备坐标系之间的转换关系;A conversion relationship determining module, configured to determine a conversion relationship between the real coordinate system, the image coordinate system, and a device coordinate system of the augmented reality device based on the image coordinate information and the real coordinate information;
    设备坐标系校准模块,用于根据所述转换关系将所述设备坐标系进行校准。The device coordinate system calibration module is configured to calibrate the device coordinate system according to the conversion relationship.
  10. 如权利要求9所述的装置,所述坐标信息获取模块包括真实坐标获取单元,The apparatus according to claim 9, wherein the coordinate information acquisition module includes a real coordinate acquisition unit,
    所述真实坐标获取单元具体用于:The real coordinate obtaining unit is specifically configured to:
    确定所述图像信息中的标定点;Determining a calibration point in the image information;
    根据所述预设图案中所述参考点与所述标定点之间的相对位置,确定所述参考点在所述真实坐标系中的真实坐标信息。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.
  11. 如权利要求10所述的装置,所述真实坐标获取单元还用于:The apparatus according to claim 10, wherein the real coordinate obtaining unit is further configured to:
    选取一个所述参考点作为所述标定点;Selecting one of the reference points as the calibration point;
    以所述标定点为坐标原点,选取所述标定点之外的两个参考点与所述标定点的连线所在的直线作为坐标轴,构建所述真实坐标系;Using the calibration point as a coordinate origin, selecting a straight line where a line connecting two reference points outside the calibration point and the calibration point is located as a coordinate axis, and constructing the true 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.
  12. 如权利要求9所述的装置,所述转换关系确定模块包括:The apparatus according to claim 9, the conversion relationship determining module comprises:
    设备转换矩阵计算单元,用于获取所述增强现实设备的所述设备坐标系转换为所述图像坐标系的设备转换矩阵;A device transformation matrix calculation unit, configured to obtain a device transformation matrix for converting the device coordinate system of the augmented reality device into the image coordinate system;
    真实转换矩阵计算单元,用于根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,计算所述真实坐标系转变为所述图像坐标系的真实转换矩阵;A real transformation matrix calculation unit, configured to calculate a real transformation matrix transformed from the real coordinate system into the image coordinate system according to the image coordinate information, the real coordinate information, and a camera internal reference matrix of the augmented real device;
    相应地,所述设备坐标系校准模块用于:根据所述设备转换矩阵、所述真实转换矩阵,将所述设备坐标系进行校准。Correspondingly, the equipment coordinate system calibration module is configured to calibrate the equipment coordinate system according to the equipment transformation matrix and the real transformation matrix.
  13. 如权利要求12所述的装置,所述设备坐标系校准模块具体用于:The device according to claim 12, wherein the device coordinate system calibration module is specifically configured to:
    按照下述公式实现第一增强现实设备和第二增强现实设备的设备坐标系的校准:The device coordinate system of the first augmented reality device and the second augmented reality device is calibrated according to the following formula:
    P cameraA_real -1P cameraA_ARO ARA=P cameraB_real -1P cameraB_ARO ARB 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 a real transformation matrix corresponding to the first augmented reality device, P cameraA_AR represents a device transformation matrix corresponding to the first augmented reality device, and O ARA represents a point O on the first augmented reality device. Coordinates in the device coordinate system, P cameraB_real represents the real transformation matrix corresponding to the second augmented reality device, P cameraB_AR represents the device transformation matrix corresponding to the second augmented reality device, and O ARB represents the point O at the second augmentation Coordinates in the device coordinate system of the real device.
  14. 如权利要求13所述的装置,所述设备坐标系校准模块还用于:The apparatus according to claim 13, the device coordinate system calibration module is further configured to:
    若进行设备坐标系校准的增强现实设备大于2个,则以其中任意一个增强现实设备的设备坐标系为基准进行设备坐标系的校准。If there are more than two augmented reality devices for device coordinate system calibration, the device coordinate system is calibrated based on the device coordinate system of any one of the augmented reality devices.
  15. 如权利要求12所述的装置,所述坐标系校准处理单元具体用于:根据所述图像坐标信息、所述真实坐标信息、所述增强真实设备的相机内参矩阵,利用SolvePnP算法,计算获得所述真实转换矩阵。The apparatus according to claim 12, wherein the coordinate system calibration processing unit is specifically configured to: according to the image coordinate information, the real coordinate information, and a camera internal parameter matrix of the augmented real device, use SolvePnP algorithm to calculate and obtain Describe the real transformation matrix.
  16. 如权利要求9所述的装置,所述图像信息获取模块获取到的所述预设图案的图像信息中的预设图案包括二维码、条形码中的至少一种。The device according to claim 9, wherein 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.
  17. 一种计算机存储介质,其上存储有计算机程序,所述计算机程序被执行时,实现权利要求1-8任一项所述的方法。A computer storage medium stores a computer program thereon, and when the computer program is executed, the method according to any one of claims 1 to 8 is implemented.
  18. 一种增强现实设备的坐标系校准系统,包括至少一个处理器以及用于存储处理器可执行指令的存储器,所述处理器执行所述指令时实现权利要求1-8任一项所述的方法。A coordinate system calibration system for an augmented reality device includes at least one processor and a memory for storing processor-executable instructions, and the processor implements the method according to any one of claims 1 to 8 when executing the instructions. .
PCT/CN2019/094835 2018-07-27 2019-07-05 Coordinate system calibration method and device for augmented reality device WO2020019962A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2020019962A1 true WO2020019962A1 (en) 2020-01-30

Family

ID=65148337

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/094835 WO2020019962A1 (en) 2018-07-27 2019-07-05 Coordinate system calibration method and device for augmented reality device

Country Status (3)

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

Families Citing this family (14)

* 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
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
CN111260793B (en) * 2020-01-10 2020-11-24 中国电子科技集团公司第三十八研究所 Remote virtual-real high-precision matching positioning method for augmented and mixed reality
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
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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109272454A (en) * 2018-07-27 2019-01-25 阿里巴巴集团控股有限公司 A kind of the coordinate system calibration method and device of augmented reality equipment

Family Cites Families (10)

* 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
CN102939139B (en) * 2010-04-13 2015-03-04 索尼电脑娱乐美国公司 Calibration of portable devices in shared virtual space
CN102222333B (en) * 2011-05-20 2013-01-02 同济大学 Method and device of mobile augmented reality of underground engineering based on mixed registration
US20140168264A1 (en) * 2012-12-19 2014-06-19 Lockheed Martin Corporation System, method and computer program product for real-time alignment of an augmented reality device
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
US10198865B2 (en) * 2014-07-10 2019-02-05 Seiko Epson Corporation HMD calibration with direct geometric modeling
TWI590189B (en) * 2015-12-23 2017-07-01 財團法人工業技術研究院 Augmented reality method, system and computer-readable non-transitory storage medium
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109272454A (en) * 2018-07-27 2019-01-25 阿里巴巴集团控股有限公司 A kind of the coordinate system calibration method and device of augmented reality equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2020019962A1 (en) Coordinate system calibration method and device for augmented reality device
CN106575160B (en) Interface providing method and device for recognizing action according to user viewpoint
US20210035346A1 (en) Multi-Plane Model Animation Interaction Method, Apparatus And Device For Augmented Reality, And Storage Medium
US20100033429A1 (en) 3d connected shadow mouse pointer
EP3243164A2 (en) Hardware accelerator for histogram of gradients
US9330466B2 (en) Methods and apparatus for 3D camera positioning using a 2D vanishing point grid
WO2018176440A1 (en) Method for fusing point cloud and planar image, intelligent device and non-volatile computer-readable storage medium
CN107481309B (en) Three-dimensional reflection rendering method and device
WO2022111609A1 (en) Grid encoding method and computer system
US10403040B2 (en) Vector graphics rendering techniques
TWI691206B (en) Watermark adding processing method, device and client
CN109333527B (en) Interaction method and device with robot, electronic equipment and storage medium
Morales et al. Video processing in real-time in FPGA
CN116912467A (en) Image stitching method, device, equipment and storage medium
US10755459B2 (en) Object painting through use of perspectives or transfers in a digital medium environment
CN112132909B (en) Parameter acquisition method and device, media data processing method and storage medium
KR20230128284A (en) 3D scan registration by deformable models
Byagowi et al. Design of a naturalistic navigational virtual reality using oculus rift
US11741626B2 (en) Surface projection determination of a multidimensional object in a viewport space
CN116612244B (en) Image generation method and device, storage medium and electronic equipment
CN112883757B (en) Method for generating tracking attitude result
Pak The concept and implementation of smooth generic camera calibration
US20230409121A1 (en) Display control method, apparatus, electronic device, medium, and program product
WO2022252833A1 (en) Image rendering method and apparatus
WO2022226995A1 (en) Processing method and processing apparatus based on ordered point set, and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19841356

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19841356

Country of ref document: EP

Kind code of ref document: A1