Fusion display method of mixed reality glasses
By establishing and determining the coordinate system transformation relationship of the mixed reality glasses and calculating the screen coordinate point set, the problem of inconsistency between the digital content and the real world position in the existing technology is solved, the accurate overlay display of the digital content is achieved, and the fusion effect is improved.
Patent Information
- Application Number
- CN202410898023.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-05
AI Technical Summary
Existing mixed reality glasses technology cannot accurately superimpose and display digital content that is different from the location in the real world, resulting in poor fusion effect.
By establishing the world coordinate system, the reference frame coordinate system and the locator coordinate system, the transformation relationship between each coordinate system is determined, and the screen coordinate point set of the object to be imaged in the mixed reality glasses screen coordinate system is calculated to achieve accurate digital content. show.
It improves the integration effect of digital content and the real world, enables digital content to be accurately displayed at the corresponding location, and enhances the reality of the mixed reality experience.
Smart Images

Figure CN118864780A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of mixed reality glasses, and in particular to a fusion display method of mixed reality glasses. Background Art
[0002] Mixed reality technology (MR) is a further development of virtual reality technology. This technology presents virtual scene information in real scenes, builds an interactive feedback information loop between the real world, the virtual world and the user, so as to enhance the realism of the user experience.
[0003] Mixed reality glasses are a device that combines virtual reality and augmented reality technologies. By wearing them on the eyes, they can overlay digital content onto the real world, creating a new, mixed, real and virtual interactive experience. Currently, the positioning of mixed reality glasses relies on advanced sensors and algorithms. However, these technologies can only overlay and display digital content on the real world, and cannot achieve the goal that the digital content overlaid and displayed by mixed reality glasses on the real world is different from its location in the real world, resulting in poor fusion of the overlaid digital content and the real world. Summary of the invention
[0004] In view of the deficiencies in the prior art, the invention provides a fusion display method for mixed reality glasses, which solves the above-mentioned problems in the prior art.
[0005] A fusion display method for mixed reality glasses, comprising:
[0006] Establishing a world coordinate system, a reference frame coordinate system and a positioner coordinate system, and determining a set of coordinate points of the object to be imaged;
[0007] Determine a first transformation relationship between the reference frame coordinate system and the positioner coordinate system;
[0008] Determine a second transformation relationship between the locator coordinate system and the image coordinate system of the mixed reality glasses;
[0009] Calibrate the mixed reality glasses to obtain the intrinsic parameter transformation of the imaging system;
[0010] The screen coordinate point set of the object to be imaged in the screen coordinate system of the mixed reality glasses is calculated according to the internal parameter transformation relationship, the first change relationship, the second transformation relationship and the coordinate point set of the object to be imaged, and a fusion display is performed.
[0011] As an embodiment of the present invention, establishing a world coordinate system, a reference frame coordinate system and a positioner coordinate system, and determining a coordinate point set of an object to be imaged includes:
[0012] A world coordinate system and a reference frame coordinate system are established through a spatial locator, and a locator coordinate system is established through a locator provided on the mixed reality glasses to determine the coordinate point set of the object to be imaged in the reference frame coordinate system.
[0013] As an embodiment of the present invention, determining a first transformation relationship between a reference frame coordinate system and a positioner coordinate system includes:
[0014] The spatial positioning device is used to track several reflective balls on the reference frame in real time, and the change relationship between the reference frame coordinate system and the world coordinate system is obtained. reference2world ;
[0015] The spatial locator is used to track several reflective balls on the locator in real time, and the change relationship T from the world coordinate system to the locator coordinate system is obtained. world2locator ;
[0016] Based on T world2locator and T reference2world The first transformation relationship is calculated, and the calculation formula of the first transformation relationship is as follows:
[0017] T reference2locator =T world2locator ·T reference2world
[0018] Among them, T reference2locator is the first transformation relationship.
[0019] As an embodiment of the present invention, a second transformation relationship T between the locator coordinate system and the image coordinate system of the mixed reality glasses is determined. locator2image ,include:
[0020] Establish a checkerboard coordinate system based on the preset checkerboard;
[0021] The chessboard is photographed through mixed reality glasses to obtain a number of photographed images, and the transformation relationship between the locator coordinate system fixed on the mixed reality glasses and the world coordinate system is tracked and recorded through a spatial locator;
[0022] Get the coordinates of the chessboard coordinate system in the world coordinate system;
[0023] Based on the coordinates of the points on the captured images in the image coordinate system, the coordinates of the points on the checkerboard coordinate system in the world coordinate system, and the transformation relationship from the locator coordinate system to the world coordinate system, a second transformation relationship T from the locator coordinate system to the mixed reality glasses image coordinate system is calculated. locator2image .
[0024] As an embodiment of the present invention, it includes:
[0025] Calculate the screen coordinate point set of the object to be imaged in the screen coordinate system of the mixed reality glasses. The calculation formula is as follows:
[0026] (x * ,y * , n) T =T MR intrinsic ·T reference2locator ·T locator2image (x, y, z, n) T
[0027] Among them, (x * ,y * , n) T Any element in the screen coordinate point set, (x, y, z, n) T Any element in the coordinate point set.
[0028] Compared with the prior art, the present invention has the following beneficial effects: a screen coordinate point set of the object to be imaged in the screen coordinate system of the mixed reality glasses is calculated according to various transformation relationships, and the mixed reality glasses display the digital content that needs to be superimposed and displayed in the real world according to the screen coordinate point set, thereby realizing that the digital content that needs to be superimposed and displayed is accurately displayed at the corresponding position, thereby improving the fusion effect of the superimposed digital content and the real world. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a schematic diagram of the process of an embodiment of the invention;
[0030] Figure 2 A schematic diagram of a space transformation process according to another embodiment of the invention;
[0031] Figure 3 A schematic diagram of a checkerboard according to another embodiment of the invention. DETAILED DESCRIPTION
[0032] The technical solution of the invention is further described below in conjunction with the accompanying drawings and embodiments.
[0033] like Figures 1 to 3 As shown, the embodiment of the invention proposes a fusion display method of mixed reality glasses, including:
[0034] Establishing a world coordinate system, a reference frame coordinate system and a positioner coordinate system, and determining a set of coordinate points of the object to be imaged;
[0035] Determine a first transformation relationship between the reference frame coordinate system and the positioner coordinate system;
[0036] Determine a second transformation relationship between the locator coordinate system and the image coordinate system of the mixed reality glasses;
[0037] Calibrate the mixed reality glasses to obtain the intrinsic parameter transformation of the imaging system;
[0038] The screen coordinate point set of the object to be imaged in the screen coordinate system of the mixed reality glasses is calculated according to the internal parameter transformation relationship, the first change relationship, the second transformation relationship and the coordinate point set of the object to be imaged, and a fusion display is performed.
[0039] The working principle and working principle of the above technical solution: in actual use, by establishing a world coordinate system, a reference frame coordinate system and a locator coordinate system, the coordinate point set of the object to be imaged is determined; after determining the first transformation relationship and the second transformation relationship from the reference frame coordinate system to the locator coordinate system, the mixed reality glasses are calibrated to obtain the imaging system internal parameter transformation; finally, according to various transformation relationships, the screen coordinate point set of the object to be imaged in the screen coordinate system of the mixed reality glasses is calculated, and the mixed reality glasses display the digital content that needs to be superimposed in the real world according to the screen coordinate point set, thereby realizing the accurate display of the digital content that needs to be superimposed in the corresponding position, thereby improving the fusion effect of the superimposed digital content and the real world.
[0040] In one embodiment, establishing a world coordinate system, a reference frame coordinate system, and a positioner coordinate system, and determining a set of coordinate points of an object to be imaged, includes:
[0041] A world coordinate system and a reference frame coordinate system are established through a spatial locator, a locator coordinate system is established through a locator provided on the mixed reality glasses, and a coordinate point set of the object to be imaged in the reference frame coordinate system is determined;
[0042] Determining a first transformation relationship between the reference frame coordinate system and the positioner coordinate system includes:
[0043] The spatial positioning device is used to track several reflective balls on the reference frame in real time, and the change relationship between the reference frame coordinate system and the world coordinate system is obtained. reference2world ;
[0044] The spatial locator is used to track several reflective balls on the locator in real time, and the change relationship T from the world coordinate system to the locator coordinate system is obtained. world2locator ;
[0045] Based on T world2locator and T reference2world The first transformation relationship is calculated, and the calculation formula of the first transformation relationship is as follows:
[0046] T reference2locator =T world2locator ·T reference2world
[0047] Among them, T reference2locator is the first transformation relationship.
[0048] The working principle and beneficial effects of the above technical solution are as follows: first, a world coordinate system is established through a spatial locator, and a reference frame coordinate system is established based on a reference frame through the spatial locator; the reference frame coordinate system is defined as a reference coordinate system, and during the entire transformation process, the reference frame remains relatively still with the real world; four reflective balls that can be tracked and identified by the spatial locator are installed on the reference frame, and through real-time tracking by the spatial locator, the transformation relationship T between the reference frame coordinate system, that is, the reference coordinate system, and the world coordinate system can be obtained. reference2world ; Then, the locator coordinate system is established through the locator fixed on the mixed reality glasses; three reflective balls that can be tracked and identified by the spatial locator are installed on the locator. Through the real-time tracking of the spatial locator, the transformation relationship from the world coordinate system to the locator coordinate system can be obtained. world2locator In this way, the first transformation relationship T from the reference frame coordinate system to the positioner coordinate system can be obtained through the spatial positioner reference2locator ; Among them, in the process of determining the coordinate point set of the object to be imaged, the feature points of the object to be imaged and the points on the lines are first collected.
[0049] In one embodiment, a second transformation relationship T between the locator coordinate system and the image coordinate system of the mixed reality glasses is determined. locator2image ,include:
[0050] Establish a checkerboard coordinate system based on the preset checkerboard;
[0051] The chessboard is photographed through mixed reality glasses to obtain a number of photographed images, and the transformation relationship between the locator coordinate system fixed on the mixed reality glasses and the world coordinate system is tracked and recorded through a spatial locator;
[0052] Get the coordinates of the chessboard coordinate system in the world coordinate system;
[0053] Based on the coordinates of the points on the captured images in the image coordinate system, the coordinates of the points on the checkerboard coordinate system in the world coordinate system, and the transformation relationship from the locator coordinate system to the world coordinate system, a second transformation relationship T from the locator coordinate system to the mixed reality glasses image coordinate system is calculated. locator2image .
[0054] The working principle and beneficial effects of the above technical solution are as follows: Figure 3 As shown, first, prepare a black and white chessboard, and establish a chessboard coordinate system;
[0055] Define an origin O on the chessboard, and the x-axis and y-axis serve as the origin, x-axis and y-axis of the chessboard space coordinate system respectively. y Axis, and take points A and B on the x-axis and y-axis respectively;
[0056] Use the camera function of the mixed reality glasses to take a number of images (preferably 20 images) of the chessboard from different angles. During the image capture process, keep the position of the chessboard unchanged, and track and record the transformation from the coordinate system of the locator fixed on the mixed reality glasses to the world coordinate system through the spatial locator;
[0057] Get the coordinates of the chessboard coordinate system in the world coordinate system;
[0058] Obtain the coordinates of O, A, and B in the world coordinate system through the spatial locator Then the unit vector in the x-axis direction is:
[0059]
[0060] y The unit vector in the axis direction is:
[0061]
[0062] According to the right-hand rule, the unit vector n=u·v in the z-axis direction can be calculated.
[0063] The second transformation relationship T from the locator coordinate system to the mixed reality glasses image coordinate system can be calculated by using the coordinates of the points on the 20 captured images in the image coordinate system, the coordinates of the points on the chessboard coordinate system in the world coordinate system, and the transformation relationship from the locator coordinate system to the world coordinate system obtained by tracking the spatial locator. locator2 image ;
[0064] Among them, the rotation matrix R is:
[0065]
[0066] The translation matrix T is:
[0067]
[0068] Then T locator2 image =R·T.
[0069] In one embodiment, the mixed reality glasses are calibrated to obtain an imaging system internal parameter transformation;
[0070] Working principle and beneficial effects of the above technical solution: In the image measurement process and computer vision applications, in order to determine the relationship between the three-dimensional geometric position of a point on the surface of a spatial object and its corresponding point in the image, it is necessary to establish a geometric model of the imaging of the photosensitive element. These geometric model parameters are camera parameters, and these parameters related to the characteristics of the photosensitive element are called internal parameters; the internal parameters are often obtained by calibrating the photosensitive element, including parameters such as focal length, image coordinate system, screen coordinate system, etc.; finally, the internal parameter transformation relationship T of the mixed reality glasses imaging system is obtained MR intrinsic , T MR intrinsic The internal parameter transformation relationship is mainly obtained through the above-mentioned 20 chessboard images, and the chessboard-based calibration method is used to obtain the internal parameter transformation relationship of the hybrid instant glasses imaging system.
[0071] In one embodiment, the screen coordinate point set of the object to be imaged in the screen coordinate system of the mixed reality glasses is calculated using the following calculation formula:
[0072] (x * ,y * , n) T = TMR intrinsic · Treference2locator ·T locator2image .(x, y, z, n) T
[0073] Among them, (x * ,y * , n) T Any element in the screen coordinate point set, (x, y, z, n) T Any element in the coordinate point set;
[0074] The working principle and beneficial effects of the above technical solution are as follows: the digital content of the imaged object is represented by a coordinate point set {(x, y, z)|x∈R, y∈R, z∈R), wherein a point in the coordinate point set is represented by (x, y, z, n) T , that is, any element in the coordinate point set, R represents the real number set;
[0075] The corresponding screen coordinate point set in the mixed reality glasses screen coordinate system is expressed as {(x * ,y * )|x * ∈R,y * ∈R}, where the representation of a point in the screen coordinate point set is (x * ,y * , n) T , that is, any element in the screen coordinate point set. In this way, what you see in the mixed reality glasses is the superposition and fusion of digital content and the corresponding real objects in the real world.
[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the invention rather than to limit it. Although the invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the invention, which should be included in the scope of the claims of the invention.
Claims
1. A fusion display method for mixed reality glasses, characterized in that: include: Establishing a world coordinate system, a reference frame coordinate system and a positioner coordinate system, and determining a set of coordinate points of the object to be imaged; Determine a first transformation relationship between the reference frame coordinate system and the positioner coordinate system; Determine a second transformation relationship between the locator coordinate system and the image coordinate system of the mixed reality glasses; Calibrate the mixed reality glasses to obtain the intrinsic parameter transformation of the imaging system; The screen coordinate point set of the object to be imaged in the screen coordinate system of the mixed reality glasses is calculated according to the internal parameter transformation relationship, the first change relationship, the second transformation relationship and the coordinate point set of the object to be imaged, and a fusion display is performed.
2. The fusion display method of mixed reality glasses according to claim 1, characterized in that: Establish the world coordinate system, reference frame coordinate system and locator coordinate system, and determine the coordinate point set of the object to be imaged, including: A world coordinate system and a reference frame coordinate system are established through a spatial locator, and a locator coordinate system is established through a locator provided on the mixed reality glasses to determine the coordinate point set of the object to be imaged in the reference frame coordinate system.
3. The fusion display method of mixed reality glasses according to claim 1, characterized in that: Determining a first transformation relationship between the reference frame coordinate system and the positioner coordinate system includes: The spatial positioning device is used to track several reflective balls on the reference frame in real time, and the change relationship between the reference frame coordinate system and the world coordinate system is obtained. reference2world ; The spatial locator is used to track several reflective balls on the locator in real time, and the change relationship T from the world coordinate system to the locator coordinate system is obtained. world2locator ; Based on T world2locator and T reference2world The first transformation relationship is calculated, and the calculation formula of the first transformation relationship is as follows: T reference2locator =T worLd2locator ·T reference2worLd Among them, T reference2locator is the first transformation relationship.
4. The fusion display method of mixed reality glasses according to claim 1, characterized in that: Determine the second transformation relationship T between the locator coordinate system and the image coordinate system of the mixed reality glasses locator2image ,include: Establish a checkerboard coordinate system based on the preset checkerboard; The chessboard is photographed through mixed reality glasses to obtain a number of photographed images, and the transformation relationship between the locator coordinate system fixed on the mixed reality glasses and the world coordinate system is tracked and recorded through a spatial locator; Get the coordinates of the chessboard coordinate system in the world coordinate system; Based on the coordinates of the points on the captured images in the image coordinate system, the coordinates of the points on the checkerboard coordinate system in the world coordinate system, and the transformation relationship from the locator coordinate system to the world coordinate system, a second transformation relationship T from the locator coordinate system to the mixed reality glasses image coordinate system is calculated. locator2image .
5. The fusion display method of mixed reality glasses according to claim 1, characterized in that: include: Calculate the screen coordinate point set of the object to be imaged in the screen coordinate system of the mixed reality glasses. The calculation formula is as follows: (x * ,y * ,n) T =T MRintrinsic ·T reference2locator ·T locator2image ·(x,y,z,n) T Among them, (x * ,y * , n) T Any element in the screen coordinate point set, (x, y, z, n) T Any element in the coordinate point set.
Citation Information
Patent Citations
Method and device for displaying virtual reality superposed augmented reality
CN106791784A
Augmented reality system virtual-real fusion calibration method and device
CN113793389A
Virtual-real fusion method for mixed reality flight simulation system
CN114998556A
Method, device, equipment and system for calibrating augmented reality equipment and storage medium
CN116309854A
Tablet computer-based body data visualization method for surgical navigation
WO2016095168A1
