Image display method of mixed reality equipment, mixed reality device, equipment and storage medium

By collecting images with multi-camera and converting the coordinate system, and rendering based on the vertex coordinates of the display screen, the problem of image distortion in the traditional VST method is solved and the user's visual experience is improved.

CN118864779APending Publication Date: 2024-10-29EMDOORVR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410892682.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The traditional Video See-Through (VST) method has problems of image distortion and insufficient stability in dynamic scenes, which affects the user's visual experience.

Method used

A multi-camera camera is used to collect images, and through the preset conversion relationship between the camera, IMU and optical virtual camera coordinate systems, the image texture information in the optical virtual camera coordinate system is obtained, and the image is re-projected and rendered based on the display vertex coordinates. show.

Benefits of technology

It solves the problem of image distortion and shaking in dynamic scenes, ensures the consistency of user visual perception and the movement of mixed reality devices, and improves the immersion and coherence of the visual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864779A_ABST
    Figure CN118864779A_ABST
Patent Text Reader

Abstract

The invention discloses an image display method of mixed reality equipment, a mixed reality device, equipment and a storage medium, and relates to the technical field of virtual reality, and the method comprises the steps: obtaining a to-be-displayed image, and determining the image texture information of the to-be-displayed image under a camera coordinate system; based on a preset mapping relation, image texture information under the optical virtual camera coordinate system is obtained according to the image texture information under the camera coordinate system, and the preset mapping relation comprises a conversion relation among the camera coordinate system, the IMU coordinate system and the optical virtual camera coordinate system; and obtaining vertex coordinates of the display screen, determining a rendered image by combining the image texture information under the optical virtual camera coordinate system, and displaying the rendered image. According to the invention, the to-be-displayed image is converted to the optical virtual coordinate system through the preset mapping relation to realize re-projection rendering of the image, the problems of distortion and instability of the displayed image in a dynamic scene can be solved, and the consistency of user visual perception and equipment movement is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of virtual reality technology, and in particular to an image display method for a mixed reality device, a mixed reality device, a device and a storage medium. Background Art

[0002] In the application field of Mixed Reality (MR) devices, the core technology is to combine virtual objects with the real world, that is, it is necessary to convey the information of the real outside world to users through video see-through (VST) by rendering it on the screen through external sensors.

[0003] However, in the traditional VST method, images are usually captured by a camera and rendered directly on the screen for display. Therefore, although the initial superposition of virtual and reality is achieved, the clarity of the image display effect is poor. When the virtual device moves, there are problems of image distortion and insufficient stability, which affects the user's visual experience.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide an image display method, a mixed reality device, a device and a storage medium for a mixed reality device, aiming to solve the technical problems of image distortion and insufficient stability in dynamic scenes in the existing VST method of directly rendering and displaying images on the screen after acquiring images through a camera.

[0006] To achieve the above-mentioned purpose, the present application proposes an image display method for a mixed reality device, the method being applied to a mixed reality device equipped with multiple cameras, the method comprising:

[0007] Acquire an image to be displayed, and determine image texture information of the image to be displayed in a camera coordinate system, wherein the image to be displayed is acquired by the multi-eye camera;

[0008] Based on a preset mapping relationship, the image texture information in the optical virtual camera coordinate system is obtained according to the image texture information in the camera coordinate system, wherein the preset mapping relationship includes a conversion relationship between the camera coordinate system, the IMU coordinate system, and the optical virtual camera coordinate system;

[0009] The vertex coordinates of the display screen are obtained, a rendered image is determined in combination with the image texture information in the optical virtual camera coordinate system, and the rendered image is displayed.

[0010] In one embodiment, the step of acquiring the image to be displayed and determining the image texture information of the image to be displayed in the camera coordinate system includes:

[0011] Acquire the image to be displayed acquired by the multi-eye camera, and determine a number of pixel points and corresponding pixel coordinates included in the image to be displayed in a pixel coordinate system;

[0012] Based on each of the pixel points and the corresponding pixel coordinates, converting the pixel coordinates into image coordinates in an image coordinate system;

[0013] The internal parameter information of the multi-eye camera is obtained, the image coordinates are converted into camera coordinates in a camera coordinate system, and the image texture information of the image to be displayed in the camera coordinate system is determined.

[0014] In one embodiment, the preset mapping relationship includes a first mapping relationship and a second mapping relationship, and the step of obtaining the image texture information in the optical virtual camera coordinate system according to the image texture information in the camera coordinate system based on the preset mapping relationship includes:

[0015] Based on the first mapping relationship, obtaining the image texture information in the IMU coordinate system according to the image texture information in the camera coordinate system;

[0016] Based on the second mapping relationship, the image texture information in the optical virtual camera coordinate system is obtained according to the image texture information in the IMU coordinate system.

[0017] In one embodiment, before the step of obtaining the image texture information in the IMU coordinate system according to the image texture information in the camera coordinate system based on the first mapping relationship, the step includes:

[0018] Obtain first image information of the calibration plate captured by the multi-eye camera at different positions, and obtain first movement information corresponding to the IMU at different positions;

[0019] Performing external parameter calibration on the multi-eye camera according to the first captured image information and the first movement information;

[0020] A first mapping relationship is determined according to the extrinsic parameter information of the multi-eye camera obtained by calibration.

[0021] In one embodiment, before the step of obtaining the image texture information in the optical virtual camera coordinate system according to the image texture information in the IMU coordinate system based on the second mapping relationship, the step includes:

[0022] According to the position of the display screen of the mixed reality device, setting the field of view information of the optical virtual camera;

[0023] Based on the field of view information, obtain second image information of the calibration plate captured by the optical virtual camera at different positions, and obtain second movement information corresponding to the IMU at different positions;

[0024] Performing external parameter calibration on the optical virtual camera according to the second captured image information and the second movement information;

[0025] A second mapping relationship is determined according to the extrinsic parameter information of the optical virtual camera obtained through calibration.

[0026] In one embodiment, before the steps of obtaining the vertex coordinates of the display screen, determining the rendered image in combination with the image texture information in the optical virtual camera coordinate system, and displaying the rendered image, the steps include:

[0027] Acquire an anti-distortion parameter according to the first captured image information and the second captured image information;

[0028] Performing distortion correction on the image texture information in the optical virtual camera coordinate system according to the anti-distortion parameters to obtain anti-distorted texture coordinate information;

[0029] Accordingly, the steps of obtaining the vertex coordinates of the display screen, determining a rendered image in combination with the image texture information in the optical virtual camera coordinate system, and displaying the rendered image include:

[0030] The vertex coordinates of the display screen are obtained, a rendered image is determined in combination with the dedistorted texture coordinate information, and the rendered image is displayed.

[0031] In one embodiment, the steps of obtaining the vertex coordinates of the display screen, determining a rendered image in combination with the dedistorted texture coordinate information, and displaying the rendered image include:

[0032] Acquire display screen configuration information of the mixed reality device, wherein the display screen configuration information includes the number of image vertices corresponding to the display screen and the corresponding coordinates of each of the image vertices;

[0033] Performing on-screen rendering according to the dedistorted texture coordinate information combined with the number of image vertices corresponding to the display screen and the corresponding coordinates of each of the image vertices to obtain a rendered image;

[0034] The rendered image is displayed on a display screen.

[0035] In addition, to achieve the above objectives, the present application also proposes a mixed reality device, the device comprising:

[0036] An image acquisition module is used to acquire an image to be displayed and determine image texture information of the image to be displayed in a camera coordinate system, wherein the image to be displayed is acquired by a multi-camera;

[0037] A coordinate system conversion module, configured to obtain image texture information in an optical virtual camera coordinate system according to image texture information in the camera coordinate system based on a preset mapping relationship, wherein the preset mapping relationship includes a conversion relationship between the camera coordinate system, the IMU coordinate system, and the optical virtual camera coordinate system;

[0038] The image display module is used to obtain the coordinates of the vertices of the display screen, determine the rendered image in combination with the image texture information in the optical virtual camera coordinate system, and display the rendered image.

[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes a mixed reality device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the image display method of the mixed reality device as described above.

[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the image display method of the mixed reality device as described above are implemented.

[0041] The present application provides an image display method for a mixed reality device, by acquiring an image to be displayed and determining the image texture information of the image to be displayed in a camera coordinate system, wherein the image to be displayed is acquired by the multi-eye camera; based on a preset mapping relationship, the image texture information in an optical virtual camera coordinate system is obtained according to the image texture information in the camera coordinate system, wherein the preset mapping relationship includes the conversion relationship between the camera coordinate system, the IMU coordinate system, and the optical virtual camera coordinate system; the vertex coordinates of the display screen are acquired, and a rendered image is determined in combination with the image texture information in the optical virtual camera coordinate system, and the rendered image is displayed. In the present application, the image to be displayed acquired by the camera is converted from the original coordinate system to the optical virtual coordinate system through the conversion relationship between the camera coordinate system, the IMU coordinate system, and the optical virtual camera coordinate system, and the image is re-projected, rendered, and displayed in combination with the vertex coordinates of the display screen, which can restore the image clarity, solve the problem of image distortion and shaking in dynamic scenes, ensure the consistency of the user's visual perception and the movement of the mixed reality device, and help to bring a more immersive and coherent visual experience to the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0044] Figure 1 A flowchart of the first embodiment of the image display method of the mixed reality device of the present application is provided;

[0045] Figure 2 A schematic diagram of a flow chart provided for the second embodiment of the image display method of the mixed reality device of the present application;

[0046] Figure 3 A schematic diagram of a flow chart provided for the third embodiment of the image display method of the mixed reality device of the present application;

[0047] Figure 4 This is a schematic diagram of the module structure of the mixed reality device according to an embodiment of the present application;

[0048] Figure 5 Schematic diagram of the structure of the mixed reality device in the embodiment of the present application.

[0049] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0050] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0052] The present application embodiment provides an image display method for a mixed reality device, referring to Figure 1 , Figure 1 A flowchart of the first embodiment of the image display method of the mixed reality device of the present application is provided. In this embodiment, the image display method of the mixed reality device is applied to a mixed reality device equipped with multiple cameras, and the method includes steps S10 to S30:

[0053] Step S10: acquiring an image to be displayed, and determining image texture information of the image to be displayed in a camera coordinate system, wherein the image to be displayed is acquired by the multi-eye camera.

[0054] It should be noted that the execution subject of the embodiment of the present application can be a mixed reality (MR) device with screen display, data transmission, data processing and network communication functions, especially a head-mounted MR, and can also be a virtual reality (VR) device, an extended reality (XR) device, etc. with the same or similar functions. The method of this embodiment can be applied to scenarios where MR devices are used in moving environments such as subways and cars, and can also be applied to scenarios where MR devices are used in other general static environments. The following uses a head-mounted MR device (hereinafter referred to as "MR") equipped with a multi-eye camera as an example to illustrate this embodiment and the following embodiments.

[0055] It should be understood that the image texture information of the image to be displayed can be created and obtained through a graphics API such as OpenGL so as to subsequently render the image to be displayed on the screen.

[0056] It is understandable that in the method of this embodiment, after MR obtains the image to be displayed, it can first perform an image anti-distortion operation, and process the corresponding texture coordinates according to the anti-distorted image to be displayed, which is different from the existing method of performing coordinate system conversion on the full-image pixels of the image to be displayed. It can be seen from the experimental data that it takes about 520.7 milliseconds to perform a full-image coordinate system conversion on a 1728*1728 pixel image to be displayed, while it only takes about 9 milliseconds to perform a coordinate system conversion on the 30*30 texture coordinates. In this embodiment, taking into account the effectiveness of the algorithm implementation, converting the texture coordinates corresponding to the image to be displayed can improve the efficiency of the coordinate system conversion, thereby meeting the running delay requirements of the corresponding algorithm of the method of this embodiment in actual implementation deployment, and ensuring the efficient operation of the algorithm.

[0057] It should be understood that the image to be displayed can be captured by a multi-camera, such as a binocular camera, installed on the MR device. The captured image to be displayed can be regarded as a number of pixel points in a pixel coordinate system. In order to convert the image to be displayed from the pixel coordinate system to the camera coordinate system, step S10 specifically includes steps S101 to S103:

[0058] Step S101: obtaining an image to be displayed acquired by the multi-eye camera, and determining a number of pixel points and corresponding pixel coordinates included in the image to be displayed in a pixel coordinate system.

[0059] It should be understood that, in the pixel coordinate system, the position of each pixel point in the image to be displayed can be represented by pixel coordinates (u, v).

[0060] Step S102: based on each of the pixel points and the corresponding pixel coordinates, convert the pixel coordinates into image coordinates in an image coordinate system.

[0061] It should be understood that the pixel coordinate system coincides with the imaging plane of the image to be displayed, and the upper left corner vertex of the imaging plane can be taken as the origin, and the x-axis and the y-axis are parallel to the two sides of the imaging plane respectively; the image coordinate system also coincides with the imaging plane of the image to be displayed, and the center of the imaging plane (the intersection of the optical axis and the imaging plane) is taken as the coordinate origin, and the x-axis and the y-axis are parallel to the x-axis and the y-axis of the pixel coordinate system respectively.

[0062] It can be understood that the conversion between the pixel coordinate system and the image coordinate system includes the conversion of values ​​and units, that is, pixel / pixel to millimeter / mm. The image coordinates corresponding to each pixel coordinate (u, v) can be expressed as (x, y), and the conversion relationship between the pixel coordinate (u, v) and the image coordinate (x, y) can be expressed as follows:

[0063]

[0064] Where u0 and v0 are the coordinates of the center point of the imaging plane in the pixel coordinate system, and dx and dy represent the physical size of each pixel in the x-axis and y-axis directions in the pixel coordinate system, that is, the length corresponding to a single pixel.

[0065] Step S103: Acquire the internal parameter information of the multi-eye camera, convert the image coordinates into camera coordinates in a camera coordinate system, and determine the image texture information of the image to be displayed in the camera coordinate system.

[0066] It should be understood that the camera coordinate system can be a coordinate system with the optical center of the camera as the coordinate origin, the x-axis and y-axis parallel to the x-axis and y-axis of the image coordinate system, and the z-axis being the optical axis of the camera.

[0067] It should be noted that the intrinsic parameter information of the multi-eye camera may include focal length, principal point coordinates, and pixel size. The focal length can determine the scaling ratio and viewing angle of each point on the imaging plane, and the principal point can be the center of the imaging plane, i.e., the origin of the image coordinate system. The camera intrinsic parameters of the multi-eye camera can be determined by calibrating the multi-eye camera, and the camera intrinsic parameters can be expressed in the following matrix form:

[0068]

[0069] In the formula, f x and f y is the focal length along the width and height of the image, c x and c y are the x and y coordinates of the principal point.

[0070] It should be understood that the image coordinates can be converted to camera coordinates by the following conversion formula:

[0071]

[0072] Among them, K is the representation matrix of the above camera intrinsic parameters, (X c , Y c , Z c ) are the coordinates in the camera coordinate system.

[0073] In a specific implementation, the MR device obtains an image to be displayed, and can create and generate image texture information of the image to be displayed through OpenGL, and then obtains the image texture information in the camera coordinate system through the pixel coordinate system-image coordinate system-camera coordinate system conversion relationship.

[0074] Step S20: Based on a preset mapping relationship, the image texture information in the optical virtual camera coordinate system is obtained according to the image texture information in the camera coordinate system. The preset mapping relationship includes a conversion relationship among the camera coordinate system, the IMU coordinate system and the optical virtual camera coordinate system.

[0075] It should be noted that the joint calibration of the camera and IMU can accurately determine the spatial relationship and time synchronization between the camera vision system and the inertial measurement unit (IMU). The IMU coordinate system is a coordinate system with the physical location of the IMU as the origin, which is usually aligned with the main structure of the MR device.

[0076] It should be understood that the conversion process from the camera coordinate system to the IMU coordinate system involves rotation and translation operations, which can be described by a rotation matrix and a translation vector. First, the rotation matrix can be used to rotate the orientation of the points in space from the camera coordinate system to the orientation of the IMU coordinate system. Then, the translation vector is used to adjust the position of these points to reflect the actual physical offset between the IMU and the multi-view camera.

[0077] It can be understood that the optical virtual camera can be a virtual reference frame that simulates the human visual system, which can simulate the observation method of the human eye. The transformation from the IMU coordinate system to the optical virtual camera coordinate system can also involve rotation and translation operations, which can be described by a rotation matrix and a translation vector with reference to the above-mentioned transformation relationship from the camera coordinate system to the IMU coordinate system.

[0078] It should be understood that the preset mapping relationship can realize the conversion between the camera coordinate system-IMU coordinate system-optical virtual camera coordinate system, and can ensure that the motion and direction information captured from the physical world is accurately mapped to the image texture information. This ensures that the image to be displayed is displayed on the screen in front of the user's retina in the final rendering, and has completed an optimization adjustment for the user's specific perspective.

[0079] Step S30: acquiring the coordinates of the vertices of the display screen, determining a rendered image in combination with the image texture information in the optical virtual camera coordinate system, and displaying the rendered image.

[0080] It should be understood that the display screen vertex coordinates can be the coordinates of the four corners of the display screen on the MR device and a number of pre-divided sub-pixel coordinates. These coordinates can be represented by normalized device coordinates (NDC) in OpenGL, for example: (-1, -1) represents the lower left corner of the screen, and (1, 1) represents the upper right corner of the screen.

[0081] In a specific implementation, the image texture information in the optical virtual camera coordinate system can be used as a rendering target and rendered into the geometric field of view constructed by the vertex coordinates of the display screen to obtain a rendered image, which is then displayed on the display screen.

[0082] In this embodiment, the image to be displayed captured by the camera is converted from the original coordinate system to the optical virtual coordinate system through the conversion relationship between the camera coordinate system, the IMU coordinate system and the optical virtual camera coordinate system, and the image is re-projected, rendered and displayed in combination with the vertex coordinates of the display screen. This can restore the image clarity, solve the problem of image distortion and shaking in dynamic scenes, ensure the consistency of the user's visual perception and the movement of the mixed reality device, and help to bring a more immersive and coherent visual experience to the user.

[0083] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , Figure 2 A flowchart diagram of the second embodiment of the image display method of the mixed reality device of the present application is provided.

[0084] In this embodiment, the preset mapping relationship includes a first mapping relationship and a second mapping relationship. Step S20 includes steps S201 to S202:

[0085] Step S201: Based on the first mapping relationship, the image texture information in the IMU coordinate system is obtained according to the image texture information in the camera coordinate system.

[0086] It should be understood that the first mapping relationship may be a conversion relationship from a camera coordinate system to an IMU coordinate system. Therefore, in order to specifically explain how to construct the above-mentioned first mapping relationship, before step S201, steps A01 to A03 are included:

[0087] Step A01: Obtain first image information of the calibration plate captured by the multi-eye camera at different positions, and obtain first movement information corresponding to the IMU at different positions.

[0088] It should be understood that the calibration plate image, i.e., the first captured image information, obtained by photographing the calibration plate with a multi-eye camera at different positions and directions can be obtained, and it is ensured that the feature points of the calibration plate in the calibration plate image are clearly visible in the camera field of view.

[0089] It should be noted that in order to ensure that the IMU and the multi-eye camera work synchronously, the position and direction data of the IMU when taking images of the calibration plate at the above-mentioned different positions, that is, the first movement information, including acceleration, angular velocity, magnetic field, etc., can be recorded.

[0090] Step A02: calibrate the external parameters of the multi-eye camera according to the first captured image information and the first movement information.

[0091] It should be understood that a computer vision algorithm, such as corner detection, may be used in each captured calibration plate image to extract and mark feature points on the calibration plate, and the extracted feature points may be matched with actual features on the calibration plate.

[0092] It should be noted that for each captured calibration plate image, the matching correspondence between the feature points in the image and the known features on the calibration plate is determined, and then the feature point matching and the first movement information of the IMU can be used to solve the external parameters of the multi-camera relative to the IMU.

[0093] Specifically, feature point matching information and IMU data can be used to iteratively solve through mathematical optimization methods (such as the least squares method) to minimize the reprojection error or other optimization criteria to solve the rotation matrix and translation vector from the camera coordinate system to the IMU coordinate system, thereby realizing the external parameter calibration of the multi-view camera.

[0094] Step A03: Determine a first mapping relationship according to the extrinsic parameter information of the multi-eye camera obtained by calibration.

[0095] It should be understood that the conversion relationship from the camera coordinate system to the IMU coordinate system can be determined based on the external parameter information obtained by the above external parameter calibration, so that all points in the camera coordinate system can be converted to the IMU coordinate system based on the first mapping relationship. The first mapping relationship can be expressed as a homogeneous transformation matrix, which can be expressed in the following form:

[0096]

[0097] Among them, R is the rotation matrix, T is the translation vector, and the last line is used to ensure the consistency of the homogeneous coordinate system.

[0098] It can be understood that after obtaining the first mapping relationship, the rotation matrix can be used to rotate the direction of the point in space from the camera coordinate system to the direction of the IMU coordinate system. Then, the position of these points is adjusted using the translation vector to reflect the actual physical offset between the IMU and the camera.

[0099] Step S202: Based on the second mapping relationship, the image texture information in the optical virtual camera coordinate system is obtained according to the image texture information in the IMU coordinate system.

[0100] It should be understood that the second mapping relationship may be a conversion relationship from the IMU coordinate system to the optical virtual camera coordinate system. Therefore, in order to specifically explain how to construct the above-mentioned first mapping relationship, before step S202, steps B01 to B04 are included:

[0101] Step B01: setting the field of view information of the optical virtual camera according to the display screen position of the mixed reality device.

[0102] It should be understood that the optical virtual camera can be a virtual camera that simulates the human eye. First, the size and resolution of the display screen of the mixed reality device can be determined, and then the field of view (FOV) of the optical virtual camera can be set to match the perspective of the human eye. Usually, the horizontal FOV is about 60° to 120°, and the vertical FOV is about 40° to 90°.

[0103] Step B02: Based on the field of view information, obtain second image information of the calibration plate captured by the optical virtual camera at different positions, and obtain second movement information corresponding to the IMU at different positions.

[0104] It should be understood that based on the above-mentioned field of view information, the optical virtual camera is placed at a position corresponding to the user's eyes, and then the optical virtual camera is used to simulate shooting and obtain the calibration plate image obtained by shooting the calibration plate at different positions and directions, that is, the second shot image information, and ensure that the feature points of the calibration plate in the calibration plate image are clearly visible in the field of view of the optical virtual camera.

[0105] It should be noted that the position and direction data of the IMU can also be obtained when the optical virtual camera captures images of each calibration plate, thereby synchronizing the second movement information and the second captured image information to ensure that the IMU data (second movement information) corresponds to the shooting position and direction of the virtual camera.

[0106] Step B03: calibrating the external parameters of the optical virtual camera according to the second captured image information and the second movement information.

[0107] It should be understood that, referring to the above step A02, feature points on the calibration plate can be extracted and matched from the calibration plate image taken by the optical virtual camera, and then the feature point matching and IMU data (second movement information) can be used to solve the external parameters of the optical virtual camera relative to the IMU.

[0108] Step B04: determining a second mapping relationship according to the extrinsic parameter information of the optical virtual camera obtained through calibration.

[0109] It should be understood that, also referring to the above step A03, the conversion relationship between the IMU coordinate system and the optical virtual camera coordinate system can be determined based on the external parameter information obtained by the above external parameter calibration, so that each point in the IMU coordinate system can be converted to the optical virtual camera coordinate system based on the second mapping relationship.

[0110] It can be understood that after obtaining the second mapping relationship, the direction of the point in space can be first rotated from the IMU coordinate system to the direction of the optical virtual camera coordinate system using the rotation matrix. Then, the positions of these points are adjusted using the translation vector to reflect the actual physical offset between the optical virtual camera and the IMU.

[0111] In this embodiment, based on the first mapping relationship, the image texture information in the IMU coordinate system is obtained according to the image texture information in the camera coordinate system; based on the second mapping relationship, the image texture information in the optical virtual camera coordinate system is obtained according to the image texture information in the IMU coordinate system. And the first mapping relationship, i.e., the conversion relationship from the camera coordinate system to the IMU coordinate system, and the second mapping relationship, i.e., the conversion relationship from the IMU coordinate system to the optical virtual camera coordinate system, are clarified. In this embodiment, taking into account that during the use of the MR device, the rotation inside the device is based on the IMU coordinate system, and the screen rotation actually felt by the user is based on the relative position of the center of both eyes, the optical virtual camera coordinate system is constructed by simulating the human eye field of view through the optical virtual camera, and the consistent alignment of the IMU coordinate system and the optical virtual coordinate system is ensured, that is, through an accurate calibration scheme, the camera, IMU and human eye (optical virtual camera) coordinate system are effectively aligned to ensure the naturalness and accuracy of the user experience. Through fine calibration, the consistency between the rotation of the device and the user's visual perception is ensured, and the immersion and comfort are improved.

[0112] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those of the first and second embodiments can be referred to the above description, and will not be described in detail later. Figure 3 , Figure 3 A flowchart diagram of the third embodiment of the image display method of the mixed reality device of the present application is provided.

[0113] In this embodiment, before step S30, steps S001 to S002 are included:

[0114] Step S001: obtaining anti-distortion parameters according to the first captured image information and the second captured image information.

[0115] It should be understood that feature points can be extracted from the calibration plate image captured by the multi-camera and the calibration plate image captured by the optical virtual camera, and then the feature points in the two sets of images are matched to ensure that the feature points from the same feature plate can correspond. Then, a calibration algorithm can be used to solve the anti-distortion parameters based on the matched feature points and the known geometry of the calibration plate.

[0116] It should also be noted that a distortion model can also be established based on the imaging characteristics of the multi-camera, and used together with the above anti-distortion parameters for subsequent anti-distortion operations. Common distortion models can include radial distortion (such as k1, k2 coefficients) and tangential distortion (such as p1, p2 coefficients).

[0117] Step S002: performing distortion correction on the image texture information in the optical virtual camera coordinate system according to the anti-distortion parameters to obtain anti-distorted texture coordinate information.

[0118] It should be understood that the image texture information in the optical virtual camera coordinate system can be inversely transformed using the above-mentioned anti-distortion parameters and distortion model using a distortion correction algorithm to eliminate the distortion effect and obtain anti-distorted texture coordinate information.

[0119] Accordingly, step S30 specifically includes:

[0120] Step S300: obtaining the vertex coordinates of the display screen, determining a rendered image in combination with the dedistorted texture coordinate information, and displaying the rendered image.

[0121] It can be understood that, in order to specifically explain how the MR device accurately renders and displays the image to be displayed on the user's display screen, step S300 specifically includes: steps S301 to S303:

[0122] Step S301: Obtain display screen configuration information of the mixed reality device, where the display screen configuration information includes the number of image vertices corresponding to the display screen and the corresponding coordinates of each of the image vertices.

[0123] It should be understood that the display screen configuration information of the MR device may be a number of image vertices that are artificially pre-divided on the display screen, and the corresponding coordinates of each image vertex are used to define the layout of the image to be displayed on the display screen.

[0124] Step S302: performing on-screen rendering according to the dedistorted texture coordinate information in combination with the number of image vertices corresponding to the display screen and the corresponding coordinates of each of the image vertices to obtain a rendered image.

[0125] It should be noted that the use of distortion-corrected texture coordinate information can ensure the correct mapping of the rendered image, and combining the inverse-distorted texture coordinates with the corresponding coordinates of the above-mentioned image vertices can ensure that the texture of the image to be displayed is mapped to the correct screen position on the display screen.

[0126] It is understandable that to render an image on the display screen of the MR device, OpenGL or other graphics APIs can be used to set the rendering state according to the corresponding coordinates of the image vertices and the texture coordinates; then the shader program is configured in the image API, including the vertex shader and the fragment shader, for processing vertex transformation and texture mapping; finally, the rendering command is executed to draw the image to the frame buffer to obtain the rendered image.

[0127] Step S303: displaying the rendered image on a display screen.

[0128] It should be understood that the rendered image can be submitted to a display screen controller in the MR device so as to display the rendered image through the display screen, thereby completing the on-screen display of the image to be displayed.

[0129] This embodiment obtains anti-distortion parameters according to the first captured image information and the second captured image information; performs distortion correction on the image texture information in the optical virtual camera coordinate system according to the anti-distortion parameters to obtain texture coordinate information after anti-distortion; then obtains display screen configuration information of the mixed reality device, the display screen configuration information includes the number of image vertices corresponding to the display screen and the corresponding coordinates of each of the image vertices; performs on-screen rendering according to the anti-distortion texture coordinate information combined with the number of image vertices corresponding to the display screen and the corresponding coordinates of each of the image vertices to obtain a rendered image; and displays the rendered image on the display screen. In this embodiment, considering that a real lens will have optical distortion and camera distortion during imaging, distortion correction is performed using anti-distortion parameters before the image is finally rendered on the screen, which can ensure accurate alignment of virtual objects with the real world, making the image finally rendered on the screen more realistic and natural, further enhancing the user's visual experience.

[0130] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the image display method of the mixed reality device of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0131] The present application also provides a mixed reality device. Figure 4 , Figure 4 This is a schematic diagram of the module structure of a mixed reality device according to an embodiment of the present application, wherein the device comprises:

[0132] An image acquisition module 401 is used to acquire an image to be displayed and determine image texture information of the image to be displayed in a camera coordinate system, wherein the image to be displayed is acquired by a multi-camera;

[0133] A coordinate system conversion module 402 is used to obtain image texture information in an optical virtual camera coordinate system according to image texture information in the camera coordinate system based on a preset mapping relationship, wherein the preset mapping relationship includes a conversion relationship between the camera coordinate system, the IMU coordinate system, and the optical virtual camera coordinate system;

[0134] The image display module 403 is used to obtain the coordinates of the vertices of the display screen, determine the rendered image in combination with the image texture information in the optical virtual camera coordinate system, and display the rendered image.

[0135] Furthermore, the image acquisition module 401 is also used to acquire the image to be displayed acquired by the multi-eye camera, and determine a number of pixel points and corresponding pixel coordinates included in the image to be displayed in a pixel coordinate system;

[0136] Based on each of the pixel points and the corresponding pixel coordinates, converting the pixel coordinates into image coordinates in an image coordinate system;

[0137] The internal parameter information of the multi-eye camera is obtained, the image coordinates are converted into camera coordinates in a camera coordinate system, and the image texture information of the image to be displayed in the camera coordinate system is determined.

[0138] Furthermore, the preset mapping relationship includes a first mapping relationship and a second mapping relationship;

[0139] The coordinate system conversion module 402 is further configured to obtain the image texture information in the IMU coordinate system according to the image texture information in the camera coordinate system based on the first mapping relationship;

[0140] Based on the second mapping relationship, the image texture information in the optical virtual camera coordinate system is obtained according to the image texture information in the IMU coordinate system.

[0141] Furthermore, the coordinate system conversion module 402 is also used to obtain first image information captured by the multi-eye camera on the calibration plate at different positions, and obtain first movement information corresponding to the IMU at different positions;

[0142] Performing external parameter calibration on the multi-eye camera according to the first captured image information and the first movement information;

[0143] A first mapping relationship is determined according to the extrinsic parameter information of the multi-eye camera obtained by calibration.

[0144] Furthermore, the coordinate system conversion module 402 is also used to set the field of view information of the optical virtual camera according to the display screen position of the mixed reality device;

[0145] Based on the field of view information, obtain second image information of the calibration plate captured by the optical virtual camera at different positions, and obtain second movement information corresponding to the IMU at different positions;

[0146] Performing external parameter calibration on the optical virtual camera according to the second captured image information and the second movement information;

[0147] A second mapping relationship is determined according to the extrinsic parameter information of the optical virtual camera obtained through calibration.

[0148] Furthermore, the image display module 403 is further configured to obtain an anti-distortion parameter according to the first captured image information and the second captured image information;

[0149] Performing distortion correction on the image texture information in the optical virtual camera coordinate system according to the anti-distortion parameters to obtain anti-distorted texture coordinate information;

[0150] The vertex coordinates of the display screen are obtained, a rendered image is determined in combination with the dedistorted texture coordinate information, and the rendered image is displayed.

[0151] Furthermore, the image display module 403 is further used to obtain display screen configuration information of the mixed reality device, wherein the display screen configuration information includes the number of image vertices corresponding to the display screen and the corresponding coordinates of each of the image vertices;

[0152] Performing on-screen rendering according to the dedistorted texture coordinate information combined with the number of image vertices corresponding to the display screen and the corresponding coordinates of each of the image vertices to obtain a rendered image;

[0153] The rendered image is displayed on a display screen.

[0154] In this embodiment, the image to be displayed captured by the camera is converted from the original coordinate system to the optical virtual coordinate system through the conversion relationship between the camera coordinate system, the IMU coordinate system and the optical virtual camera coordinate system, and the image is re-projected, rendered and displayed in combination with the vertex coordinates of the display screen. This can restore the image clarity, solve the problem of image distortion and shaking in dynamic scenes, ensure the consistency of the user's visual perception and the movement of the mixed reality device, and help to bring a more immersive and coherent visual experience to the user.

[0155] The present application also provides a mixed reality device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the image display method of the mixed reality device in the above-mentioned embodiment one.

[0156] Reference below Figure 5 , Figure 5 Schematic diagram of the structure of the mixed reality device in the embodiment of the present application. The mixed reality device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The mixed reality device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0157] like Figure 5As shown, the mixed reality device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the image display operation of the mixed reality device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the mixed reality device to communicate with other devices wirelessly or wired to exchange data. Although the mixed reality device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0158] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0159] The mixed reality device provided by the present application adopts the image display method of the mixed reality device in the above embodiment, which can solve the technical problems of the image display method of the mixed reality device. Compared with the prior art, the beneficial effects of the mixed reality device provided by the present application are the same as the beneficial effects of the image display method of the mixed reality device provided by the above embodiment, and the other technical features in the mixed reality device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0160] The present application also provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the image display method of the mixed reality device in the above-mentioned embodiment.

[0161] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0162] The computer-readable storage medium may be included in the hybrid virtual device; or may exist independently without being installed in the hybrid virtual device.

[0163] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the image display method of the mixed reality device described above, and can solve the technical problems of the image display method of the mixed reality device. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the image display method of the mixed reality device provided in the above embodiment, and will not be repeated here.

Claims

1. An image display method for a mixed reality device, characterized in that: The method is applied to a mixed reality device equipped with multiple cameras, and the method comprises: Acquire an image to be displayed, and determine image texture information of the image to be displayed in a camera coordinate system, wherein the image to be displayed is acquired by the multi-eye camera; Based on a preset mapping relationship, the image texture information in the optical virtual camera coordinate system is obtained according to the image texture information in the camera coordinate system, wherein the preset mapping relationship includes a conversion relationship between the camera coordinate system, the IMU coordinate system, and the optical virtual camera coordinate system; The vertex coordinates of the display screen are obtained, a rendered image is determined in combination with the image texture information in the optical virtual camera coordinate system, and the rendered image is displayed.

2. The method according to claim 1, characterized in that The step of acquiring the image to be displayed and determining the image texture information of the image to be displayed in the camera coordinate system includes: Acquire the image to be displayed acquired by the multi-eye camera, and determine a number of pixel points and corresponding pixel coordinates included in the image to be displayed in a pixel coordinate system; Based on each of the pixel points and the corresponding pixel coordinates, converting the pixel coordinates into image coordinates in an image coordinate system; The internal parameter information of the multi-eye camera is obtained, the image coordinates are converted into camera coordinates in a camera coordinate system, and the image texture information of the image to be displayed in the camera coordinate system is determined.

3. The method according to claim 2, characterized in that The preset mapping relationship includes a first mapping relationship and a second mapping relationship. The step of obtaining the image texture information in the optical virtual camera coordinate system according to the image texture information in the camera coordinate system based on the preset mapping relationship includes: Based on the first mapping relationship, obtaining the image texture information in the IMU coordinate system according to the image texture information in the camera coordinate system; Based on the second mapping relationship, the image texture information in the optical virtual camera coordinate system is obtained according to the image texture information in the IMU coordinate system.

4. The method according to claim 3, characterized in that Before the step of obtaining the image texture information in the IMU coordinate system according to the image texture information in the camera coordinate system based on the first mapping relationship, the method includes: Obtain first image information of the calibration plate captured by the multi-eye camera at different positions, and obtain first movement information corresponding to the IMU at different positions; Performing external parameter calibration on the multi-eye camera according to the first captured image information and the first movement information; A first mapping relationship is determined according to the extrinsic parameter information of the multi-eye camera obtained by calibration.

5. The method according to claim 4, characterized in that Before the step of obtaining the image texture information in the optical virtual camera coordinate system according to the image texture information in the IMU coordinate system based on the second mapping relationship, the method includes: According to the position of the display screen of the mixed reality device, setting the field of view information of the optical virtual camera; Based on the field of view information, obtain second image information of the calibration plate captured by the optical virtual camera at different positions, and obtain second movement information corresponding to the IMU at different positions; Performing external parameter calibration on the optical virtual camera according to the second captured image information and the second movement information; A second mapping relationship is determined according to the extrinsic parameter information of the optical virtual camera obtained through calibration.

6. The method according to claim 5, characterized in that Before the steps of obtaining the vertex coordinates of the display screen, determining the rendered image in combination with the image texture information in the optical virtual camera coordinate system, and displaying the rendered image, the method includes: Acquire an anti-distortion parameter according to the first captured image information and the second captured image information; Performing distortion correction on the image texture information in the optical virtual camera coordinate system according to the anti-distortion parameters to obtain anti-distorted texture coordinate information; Accordingly, the steps of obtaining the vertex coordinates of the display screen, determining a rendered image in combination with the image texture information in the optical virtual camera coordinate system, and displaying the rendered image include: The vertex coordinates of the display screen are obtained, a rendered image is determined in combination with the dedistorted texture coordinate information, and the rendered image is displayed.

7. The method according to claim 6, characterized in that The step of obtaining the vertex coordinates of the display screen, determining a rendered image in combination with the anti-distorted texture coordinate information, and displaying the rendered image comprises: Acquire display screen configuration information of the mixed reality device, wherein the display screen configuration information includes the number of image vertices corresponding to the display screen and the corresponding coordinates of each of the image vertices; Performing on-screen rendering according to the dedistorted texture coordinate information combined with the number of image vertices corresponding to the display screen and the corresponding coordinates of each of the image vertices to obtain a rendered image; The rendered image is displayed on a display screen.

8. A mixed reality device, characterized in that: The device comprises: An image acquisition module is used to acquire an image to be displayed and determine image texture information of the image to be displayed in a camera coordinate system, wherein the image to be displayed is acquired by a multi-camera; A coordinate system conversion module, configured to obtain image texture information in an optical virtual camera coordinate system according to image texture information in the camera coordinate system based on a preset mapping relationship, wherein the preset mapping relationship includes a conversion relationship between the camera coordinate system, the IMU coordinate system, and the optical virtual camera coordinate system; The image display module is used to obtain the coordinates of the vertices of the display screen, determine the rendered image in combination with the image texture information in the optical virtual camera coordinate system, and display the rendered image.

9. A mixed reality device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the image display method of the mixed reality device according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the image display method of the mixed reality device as described in any one of claims 1 to 7 are implemented.