Data processing method and device based on event camera

Through the optical flow estimation and motion blur compensation technology of event cameras, the problem of inaccurate image processing of XR devices in high-speed motion and high dynamic range scenarios is solved, and the user experience and technology immersion is improved.

CN119012011APending Publication Date: 2024-11-22BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310553177.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-16
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Motion blur problem in XR devices leads to inaccurate image subsequent processing, especially in high-speed motion or high dynamic range scenarios, which affects the immersion and user experience of virtual reality and augmented reality technologies.

Method used

Using the data processing method based on the event camera, optical flow estimation is performed through the event stream, the motion offset information of the image is obtained, and motion blur compensation is performed, thereby improving the clarity and accuracy of the image and improving the video caused by the movement of XR equipment. Compensation accuracy for flow motion fuzzy.

Benefits of technology

It improves the image processing accuracy of XR devices in high-speed motion and high dynamic range scenarios, enhances user experience and immersion, and ensures efficient operation of virtual reality and augmented reality technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012011A_ABST
    Figure CN119012011A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method and device based on an event camera, and the method comprises the steps: obtaining an event stream generated by the event camera of XR equipment, carrying out the optical flow estimation according to the event stream, determining the motion offset information of a first image according to an optical flow estimation result, and enabling the first image to be an image shot by a first camera of the XR equipment; performing motion blur compensation on the first image according to the motion offset information to obtain a first compensation image; and obtaining a depth image corresponding to the first image, and determining a binocular VST image according to the first compensation image and the depth image. In the method, the motion offset information of the first image obtained by performing optical flow estimation according to the event flow generated by the event camera is more accurate, so that the compensation precision of the motion blur of the VST video stream caused by the motion of the XR equipment is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer vision technology, and in particular to a data processing method based on an event camera. Background Art

[0002] Extended Reality (XR) refers to the combination of reality and virtuality through computers to create a virtual environment for human-computer interaction. XR is also a general term for multiple technologies such as Virtual Reality (VR), Augmented Reality (AR) and Mixed Reality (MR). By integrating the visual interaction technologies of the three, it brings the experiencer an "immersive feeling" of seamless transition between the virtual world and the real world.

[0003] With the development of XR devices, more and more XR devices are equipped with various types of cameras such as depth cameras, eye tracking cameras, and facial expression tracking cameras to enhance the information acquisition and interaction capabilities of XR devices. The cameras of XR devices usually use standard cameras, which generate image frames at fixed time intervals. When the camera moves at high speed, the target moves at a high altitude, or the lighting changes dramatically, motion blur is likely to occur.

[0004] The motion blur problem of XR devices will lead to inaccurate subsequent processing of motion blurred images, causing a series of problems. Summary of the invention

[0005] The embodiment of the present application provides a data processing method and device based on an event camera, which performs optical flow estimation according to the event stream generated by the event camera to compensate for motion blur of a first image. The motion offset information of the first image obtained by performing optical flow estimation according to the event stream generated by the event camera is more accurate, thereby improving the compensation accuracy of the motion blur of the VST video stream caused by the movement of the XR device and improving the user experience.

[0006] In a first aspect, an embodiment of the present application provides a data processing method based on an event camera, which is applied to an extended reality XR device, wherein the XR device includes an event camera and a first camera, and the method includes:

[0007] Obtaining the event stream generated by the event camera;

[0008] performing optical flow estimation according to the event stream, and determining motion offset information of a first image according to the optical flow estimation result, where the first image is an image captured by the first camera;

[0009] According to the motion offset information, motion blur compensation is performed on the first image to obtain a first compensated image;

[0010] A depth image corresponding to the first image is acquired, and a binocular video perspective VST image is determined according to the first compensation image and the depth image.

[0011] In some embodiments, the XR device includes a vision positioning camera;

[0012] The acquiring a depth image corresponding to the first image includes:

[0013] Acquire the tracking image captured by the visual positioning camera and the IMU data measured by the inertial measurement unit (IMU) of the XR device;

[0014] A depth image corresponding to the first image is determined according to the tracking image and the IMU data.

[0015] In some embodiments, the XR device includes a structured light apparatus, the structured light apparatus including a projector and the event camera;

[0016] The acquiring a depth image corresponding to the first image includes:

[0017] The structured light device is used to acquire a depth image corresponding to the first image.

[0018] In some embodiments, the XR device includes a vision positioning camera and a structured light device, the structured light device including a projector and the event camera;

[0019] The acquiring a depth image corresponding to the first image includes:

[0020] Acquire the tracking image captured by the visual positioning camera and the IMU data measured by the inertial measurement unit (IMU) of the XR device;

[0021] Determine a first depth image corresponding to the first image according to the tracking image and the IMU data;

[0022] Acquire a second depth image corresponding to the first image using the structured light device;

[0023] The first depth image and the second depth image are fused to obtain a depth image corresponding to the first image.

[0024] In some embodiments, the step of acquiring a depth image or a second depth image corresponding to the first image by using a structured light device includes:

[0025] Acquire an event stream generated by the event camera, wherein the pixel points corresponding to the events in the event stream are feature points;

[0026] Performing image preprocessing on the event stream to obtain feature points of a projection pattern of the structured light device, where the projection pattern is formed by projecting a reference pattern emitted by the projector onto a surface of an object;

[0027] Matching feature points of the projection pattern with feature points of the reference pattern;

[0028] The parallax of the matching feature points is calculated according to the feature point matching results, and the depth information of the matching feature points of the projection pattern is determined according to the parallax of the matching feature points to obtain a depth image or a second depth image corresponding to the first image.

[0029] In some embodiments, determining the depth image corresponding to the first image or the first depth image according to the tracking image and the IMU data includes:

[0030] Obtaining estimated pose information of the XR device based on the tracking image and the IMU data;

[0031] determining a candidate depth image corresponding to the first image according to the tracking image;

[0032] Determine a depth image or a first depth image corresponding to the first image according to the pose estimation information of the XR device and the candidate depth image corresponding to the first image.

[0033] In some embodiments, after performing motion blur compensation on the first image according to the motion offset information to obtain a first compensated image, the method further includes:

[0034] Perform pose estimation based on the first compensated image and IMU data measured by an inertial measurement unit (IMU) of the XR device to obtain pose estimation information of the XR device.

[0035] In some embodiments, performing pose estimation according to the first compensated image and IMU data measured by an inertial measurement unit (IMU) of the XR device to obtain pose estimation information of the XR device includes:

[0036] Extracting feature points from the first compensated image;

[0037] Performing triangulation processing on the feature points of the first compensated image to obtain three-dimensional coordinates of the feature points of the first compensated image;

[0038] Selecting landmark points according to the three-dimensional coordinates of the feature points of the first compensated image;

[0039] The IMU data and the selected landmark points are processed by a graph optimization algorithm to obtain pose estimation information of the XR device.

[0040] In some embodiments, performing optical flow estimation according to the event flow and determining motion offset information of the first image according to the optical flow estimation result includes:

[0041] Performing time stamp synchronization on the event stream and the first image;

[0042] Performing optical flow estimation according to the synchronization events of the first image and the synchronization events of a reference image of the first image, wherein the reference image is n frames before the first image, where n is an integer greater than or equal to 1;

[0043] The motion offset information of the first image is determined according to the optical flow estimation result.

[0044] In some embodiments, performing optical flow estimation according to the synchronization events of the first image and the synchronization events of the reference image includes:

[0045] Optical flow estimation is performed based on the pose estimation information of the XR device, the synchronization events of the first image, and the synchronization events of the reference image, wherein the pose estimation information of the XR device is estimated based on a previous frame image of the first image.

[0046] In some embodiments, the IMU data is synchronized with a timestamp of the tracking images.

[0047] In some embodiments, the IMU data is synchronized with a timestamp of the first compensated image.

[0048] On the other hand, an embodiment of the present application provides a data processing device based on an event camera, which is applied to an XR device, wherein the XR device includes an event camera and a first camera, and the device includes:

[0049] A first acquisition module, used to acquire the event stream generated by the event camera;

[0050] an optical flow estimation module, configured to perform optical flow estimation according to the event flow, and determine motion offset information of a first image according to the optical flow estimation result, wherein the first image is an image captured by the first camera;

[0051] A compensation module, configured to perform motion blur compensation on the first image according to the motion offset information to obtain a first compensated image;

[0052] A second acquisition module, used to acquire a depth image corresponding to the first image;

[0053] A determination module is used to determine a binocular video perspective VST image using the first compensation image and the depth image.

[0054] On the other hand, an embodiment of the present application provides an XR device, comprising: a processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute any of the methods described above.

[0055] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program enables a computer to execute any of the methods described above.

[0056] On the other hand, an embodiment of the present application provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, it implements any of the methods described above.

[0057] The event camera-based data processing method and device provided in the embodiment of the present application obtain the event stream generated by the event camera of the XR device, perform optical flow estimation based on the event stream, and determine the motion offset information of the first image based on the optical flow estimation result, where the first image is the image captured by the first camera of the XR device; based on the motion offset information, perform motion blur compensation on the first image to obtain a first compensated image; obtain a depth image corresponding to the first image, and determine a binocular VST image based on the first compensated image and the depth image. In this method, the motion offset information of the first image obtained by performing optical flow estimation based on the event stream generated by the event camera is more accurate, thereby improving the compensation accuracy of the motion blur of the VST video stream caused by the movement of the XR device and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0059] Figure 1 A flow chart of a data processing method based on an event camera provided in Embodiment 1 of the present application;

[0060] Figure 2 A flow chart of a data processing method based on an event camera provided in Embodiment 2 of the present application;

[0061] Figure 3 The schematic diagram of the depth image acquisition method based on structured light of an event camera;

[0062] Figure 4 The process of the depth image acquisition method based on structured light of an event camera provided in the third embodiment of the present application;

[0063] Figure 5 A schematic diagram of image comparison at each stage of acquiring a depth image using structured light;

[0064] Figure 6 The schematic diagram of VST image processing based on event camera;

[0065] Figure 7 A flowchart of VST image processing based on an event camera provided in Embodiment 4 of the present application;

[0066] Figure 8 A flowchart of a data processing method based on an event camera provided in Embodiment 5 of the present application;

[0067] Fig. 9 This is the schematic diagram of 6Dof positioning and tracking based on event camera;

[0068] Fig.10 A flowchart of 6Dof positioning and tracking based on an event camera provided in Example 6 of the present application;

[0069] Fig.11 A schematic diagram of the structure of a data processing device based on an event camera provided in Embodiment 7 of the present application;

[0070] Fig.12 A structural schematic diagram of the XR device provided in Example 8 of the present application. DETAILED DESCRIPTION

[0071] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0072] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0073] The embodiment of the present application provides a data processing method based on an event camera, which is applied in XR devices. XR refers to the combination of reality and virtuality through computers to create a virtual environment for human-computer interaction. XR is also a general term for multiple technologies such as VR, AR and MR. By integrating the visual interaction technologies of the three, it brings the experiencer an "immersive feeling" of seamless transition between the virtual world and the real world.

[0074] VR: Technology for creating and experiencing a virtual world. It generates a virtual environment by computation. It is a multi-source information (the virtual reality mentioned in this article includes at least visual perception, and can also include auditory perception, tactile perception, motion perception, and even taste perception, olfactory perception, etc.). It realizes the simulation of the fusion and interactive three-dimensional dynamic vision and entity behavior of the virtual environment, immersing users in a simulated virtual reality environment, and realizing applications in various virtual environments such as maps, games, videos, education, medical care, simulation, collaborative training, sales, assisted manufacturing, maintenance and repair.

[0075] VR device refers to a terminal that realizes virtual reality effects, which can usually be provided in the form of glasses, helmet-mounted displays (Head Mount Display, HMD), and contact lenses to realize visual perception and other forms of perception. Of course, the form of virtual reality devices is not limited to this, and can be further miniaturized or enlarged as needed.

[0076] Optionally, the virtual reality devices described in the embodiments of the present application may include but are not limited to the following types:

[0077] 2.1) PC-based virtual reality (PCVR) devices use the PC to perform relevant calculations and data output for virtual reality functions. External PC-based virtual reality devices use the data output by the PC to achieve virtual reality effects.

[0078] 2.2) Mobile virtual reality devices support the configuration of mobile terminals (such as smart phones) in various ways (such as head-mounted displays with dedicated card slots). Through wired or wireless connection with the mobile terminal, the mobile terminal performs relevant calculations of virtual reality functions and outputs data to the mobile virtual reality device, such as watching virtual reality videos through the mobile terminal's APP.

[0079] 2.3) All-in-one virtual reality devices have a processor for performing relevant calculations of virtual functions, and thus have independent virtual reality input and output functions. They do not need to be connected to a PC or mobile terminal and have a high degree of freedom in use.

[0080] AR: AR scenery refers to a simulated scenery in which at least one virtual object is superimposed on a physical scenery or a representation thereof. For example, an electronic system may have an opaque display and at least one imaging sensor for capturing images or videos of a physical scenery, which are representations of the physical scenery. The system combines the image or video with the virtual object and displays the combination on the opaque display. An individual uses the system to indirectly view the physical scenery via an image or video of the physical scenery and observes the virtual object superimposed on the physical scenery. When the system uses one or more image sensors to capture images of the physical scenery and uses those images to present the AR scenery on an opaque display, the displayed image is referred to as video transmission. Alternatively, an electronic system for displaying an AR scenery may have a transparent or translucent display through which an individual can directly view the physical scenery. The system may display virtual objects on a transparent or translucent display so that an individual uses the system to observe virtual objects superimposed on the physical scenery. As another example, the system may include a projection system that projects virtual objects into a physical scenery. Virtual objects can be projected, for example, on a physical surface or as a hologram, so that individuals using the system observe virtual objects superimposed on a physical setting. Specifically, a technology that calculates the camera's posture parameters in the real world (or three-dimensional world, real world) in real time during the process of the camera capturing images, and adds virtual elements to the images captured by the camera based on the camera posture parameters. Virtual elements include, but are not limited to: images, videos, and three-dimensional models. The goal of AR technology is to integrate the virtual world into the real world on the screen for interaction.

[0081] MR: By presenting virtual scene information in the real scene, an interactive feedback information loop is established between the real world, the virtual world and the user to enhance the realism of the user experience. For example, computer-created sensory input (e.g., virtual objects) is integrated with sensory input from the physical scene or its representation in the simulated scene. In some MR scenes, the computer-created sensory input can adapt to changes in sensory input from the physical scene. In addition, some electronic systems used to present MR scenes can monitor the orientation and / or position relative to the physical scene so that virtual objects can interact with real objects (i.e., physical elements from the physical scene or their representations). For example, the system can monitor movement so that virtual plants appear stationary relative to physical buildings.

[0082] The method provided in the embodiment of the present application is applied in an XR device using an event camera, which is a neuromorphic visual sensor designed based on the human eye retina. It is based on an event-driven approach to capture changes in the outside world. Its working principle is very different from that of a traditional camera (or standard camera). Compared with a traditional camera that captures images at a fixed frame rate, there is no way to update image frames in an event camera. When the scene in the outside world changes, the event camera will perform a series of pixel-level updates, and no updates will be performed on the parts that have not changed.

[0083] In a pixel array, when the intensity change of a pixel exceeds a threshold, the corresponding pixel will independently generate an output, which is called an "event". Therefore, unlike a standard camera, the data output by an event camera is an event stream in time and space. Each event in the event stream contains at least two parts of information, which can be expressed as (x, y, t), where (x, y) represents the position of the event pixel, the position of the pixel can be expressed by a two-dimensional coordinate, and t represents the timestamp of the event pixel.

[0084] Optionally, the event information may further include the polarity of the pixel, which reflects the trend of the brightness change of the pixel, including an upward trend and a downward trend, or the event information may include a brightness change value.

[0085] Several concepts are emphasized here: (1) Brightness change: The output of the event camera is related to the change in brightness value, but has nothing to do with the absolute value of brightness; (2) Threshold: When the brightness change reaches a certain level, data will be output. This threshold is an inherent parameter of the camera.

[0086] Event cameras have the following advantages over traditional cameras:

[0087] (1) Not affected by motion blur

[0088] Traditional cameras capture video images at a fixed frame rate. There are certain exposure events between frames. If the camera moves too fast or the target moves too fast, motion blur will occur, leaving a residual image. However, event cameras have an extremely high update rate. The update rate of adjacent events can be less than 1 microsecond, which can capture highly moving scenes.

[0089] (2) Higher dynamic range

[0090] Traditional cameras have a low dynamic range. When encountering scenes with dim light or too bright light, the images are often blurry. However, event cameras can overcome the situation where the light is too dim or too bright. Their dynamic range can be twice that of ordinary cameras. For scenes with strong contrast between light and dark, sensor failures such as overexposure and underexposure are less likely to occur.

[0091] (3) Lower power

[0092] Event cameras do not have the concept of exposure time and "frames". Each pixel independently outputs asynchronous data streams, reducing the delay from the sensor to the processor. In addition, the output signal of the event camera filters out stationary objects, greatly reducing data redundancy and alleviating a lot of computing power for data transmission and processing at the source. Therefore, the power of event cameras is much lower than that of traditional cameras.

[0093] The event camera consists of a lens and an event camera receiving chip. The lens is used to collect external brightness, and the receiving chip is used to output events based on the brightness information collected by the lens, thereby forming an image.

[0094] The existence of motion blur in XR devices will lead to inaccurate subsequent processing of motion blurred images, causing a series of problems.

[0095] A common motion blur scenario is the motion blur of video see-through (VST) images. VST uses the camera of a head-mounted XR device (also referred to as a head-mounted device) to collect a real-time view of the surrounding environment, processes the image captured by the camera through an anti-distortion algorithm, and then outputs it on the display of the XR device to simulate the image of the outside world through perspective, that is, the user can see the external environment through the display of the XR device.

[0096] VST allows users to interact with the real world without removing their headsets, for example, turning on controllers, signing documents, and operating mobile phones. Therefore, VST is widely used in XR devices. When users wear headsets and move, the image content seen on the display of the headset changes with the user's movement. When the user moves too fast, the image seen by the user will be blurred.

[0097] Another common motion blur scenario is 6-degree-of-freedom (Dof) positioning tracking. In addition to detecting changes in field of view angle caused by head rotation (3 degrees of freedom of rotation angles), 6Dof head-mounted XR devices can also detect changes caused by up and down, front and back, and left and right displacements (3 displacement-related degrees of freedom) caused by body movement.

[0098] 6Dof positioning and tracking usually uses the camera on the head-mounted XR device to collect images and performs positioning and tracking through visual simultaneous localization and mapping (SLAM). The SLAM module in the XR device obtains feature point information in the environment and builds a map based on feature points to realize the positioning of the XR device.

[0099] SLAM involves a series of complex calculations and algorithms, using sensors to build maps and structures in unknown environments and locate the position and orientation of the device. Relevant steps may include: the sensor reads data such as laser scans, video images or point clouds; the front-end visual odometry (VO) estimates the change in the camera's posture at two moments through algorithms such as feature matching and direct registration; the back-end receives the camera posture measured by the visual odometry at different moments, and optimizes it to obtain a globally consistent trajectory and map. The process involves loop detection, cumulative error processing and map creation.

[0100] The visual odometry part still has accuracy and robustness issues when using a standard camera in extreme environments. There are two main extreme cases: when the camera moves at high speed, if the camera moves too fast when acquiring images with a standard camera, the acquired images will be blurred; in the case of a high dynamic range scene, the light intensity in the scene changes strongly, and the brightness of the previous and next frames changes significantly. In these extreme cases, using a standard camera will seriously affect the accuracy and effect of the visual odometry state estimation.

[0101] After introducing some concepts involved in the embodiments of the present application, a data processing method based on an event camera provided in the embodiments of the present application is specifically described below in conjunction with the accompanying drawings. The same content refers to the description of the previous embodiments and will not be repeated.

[0102] Figure 1 This is a flow chart of a data processing method based on an event camera provided in Embodiment 1 of the present application. The method of this embodiment is executed by an XR device, which includes an event camera and a first camera, wherein the first camera is a standard camera. Figure 1 As shown, the method of this embodiment includes the following steps.

[0103] S101. Acquire an event stream generated by an event camera.

[0104] The event stream includes multiple events, and the content of each event includes the pixel coordinates where the event occurs and the timestamp of the event.

[0105] S102, performing optical flow estimation according to the event flow, and determining motion offset information of a first image according to the optical flow estimation result, where the first image is an image captured by a first camera.

[0106] Exemplarily, timestamp synchronization is performed on the event stream and the first image, and optical flow estimation is performed based on the synchronization events of the first image and the synchronization events of a reference image of the first image, where the reference image is the first n frames of the first image, and n is an integer greater than or equal to 1, and the motion offset information of the first image is determined based on the optical flow estimation result.

[0107] The first camera is a standard camera, and the acquisition frequency of the event camera is much higher than that of the standard camera. For example, the standard camera usually acquires 15 or 30 frames of images in 1 second, while the event camera can acquire thousands of frames of images. The data acquired by the two are not synchronized. Therefore, it is necessary to first synchronize the timestamps of the event stream acquired by the event camera and the first image acquired by the first camera.

[0108] Timestamp synchronization can be understood as time matching or frame matching, that is, matching an event from the event stream with the same timestamp as that of each first image captured by the first camera. For the sake of ease of description, in the embodiment of the present application, an event synchronized with the timestamp of each frame image captured by the standard camera is referred to as an image synchronization event.

[0109] The data collected by the two cameras are time-stamped and then optical flow is estimated. Optical flow is the "instantaneous speed" of the pixel movement of a moving object in space on the observation imaging plane. In computer vision, it defines the movement of an object in an image. This movement can be caused by camera movement or object movement. Optical flow estimation can be understood as the motion vector of the pixel points representing the same object (object) in one frame of a video image moving to the next frame. The motion vector includes the movement distance and movement direction. The motion vector can be understood as the change in posture between two frames of images. The change in posture includes changes in position and posture.

[0110] In this embodiment, the optical flow estimation is performed based on the synchronization events of two frames of images (the first image and the reference image of the first image) to obtain the optical flow estimation result, and the optical flow estimation result is the motion vector of the two frames of images, that is, the motion vector of the first image relative to the reference image, and the reference image of the first image is the first n frames of images of the first image, n is an integer greater than or equal to 1, and the reference image is located before the first image in time. When n is 1, the reference image is an adjacent image of the first image, and when n is not 1, the reference image is separated from the first image by one or more images.

[0111] The optical flow estimation result is the motion vector of the first image relative to the reference image. The predicted image of the first image is predicted based on the motion vector and the reference image. The motion offset information of the first image is determined based on the predicted image and the first image. The motion offset information can be understood as the residual between the first image and the predicted image.

[0112] Optical flow estimation can adopt any existing estimation method, for example, the Lucas-Kanade algorithm, deep learning algorithm (FlowNet / FlowNet2.0), etc., and the embodiments of the present application are not limited to this.

[0113] Optionally, in one implementation, when performing optical flow estimation, the pose estimation information of the XR device can be combined, and the optical flow estimation is performed according to the pose estimation information of the XR device, the synchronization events of the first image, and the synchronization events of the reference image, thereby improving the accuracy of the optical flow estimation result. Among them, the pose estimation information of the XR device is estimated based on the previous frame image of the first image, and the pose estimation information can be implemented based on the 6Dof positioning and tracking function.

[0114] S103: Perform motion blur compensation on the first image according to the motion offset information to obtain a first compensated image.

[0115] Based on the motion offset information obtained by optical flow estimation, motion blur compensation is performed on the first image to obtain a clear first compensated image. In this embodiment, the motion offset information is obtained by performing optical flow estimation based on the event stream generated by the event camera. The event camera is suitable for scenes with high-speed motion or scenes with strong light-dark contrast, so that the estimated motion offset information is more accurate, and the result of motion blur compensation on the first image is also more accurate.

[0116] S104 , obtaining a depth image corresponding to the first image, and determining a binocular VST image according to the first compensated image and the depth image.

[0117] After the first image is motion-blur compensated, the first compensated image is used for subsequent processing, so that the processing result based on the first compensated image is more accurate. Motion blur scenes include but are not limited to VST scenes and 6Dof positioning tracking scenes. In the VST scene, the first image is used for video perspective. By performing motion blur compensation on the first image, the binocular VST image determined according to the first compensated image is a clear image, compensating for the motion blur of the VST video stream caused by the movement of the head-mounted XR device, thereby improving the user experience. In the 6Dof positioning tracking scene, the first image is used for positioning tracking, and motion blur compensation is performed on the first image used for positioning tracking, thereby improving the accuracy and robustness of the positioning tracking results.

[0118] In this embodiment, an event stream generated by an event camera of an XR device is obtained, an optical flow estimation is performed based on the event stream, and the motion offset information of a first image is determined based on the optical flow estimation result, where the first image is an image captured by a first camera of the XR device; based on the motion offset information, motion blur compensation is performed on the first image to obtain a first compensated image; a depth image corresponding to the first image is obtained, and a binocular VST image is determined based on the first compensated image and the depth image. In this method, the motion offset information of the first image obtained by performing optical flow estimation based on the event stream generated by the event camera is more accurate, so that the first compensated image obtained by performing motion blur compensation on the first image is clearer, thereby improving the compensation accuracy of the motion blur of the VST video stream caused by the movement of the head-mounted XR device and improving the user experience.

[0119] Based on the first embodiment, the second embodiment of the present application provides a data processing method based on an event camera, which is used to compensate for motion blur in a VST scene. The first image captured by the first camera is used for VST, so the first camera can also be called a VST camera. Figure 2 This is a flow chart of a data processing method based on an event camera provided in Embodiment 2 of the present application, such as Figure 2 As shown, the method provided in this embodiment includes the following steps.

[0120] S201. Obtain an event stream generated by an event camera.

[0121] S202: performing optical flow estimation according to the event flow, and determining motion offset information of a first image according to the optical flow estimation result, where the first image is an image captured by a first camera.

[0122] Exemplarily, the event stream and the first image are first timestamped to obtain the synchronization event of the first image. After the VST function is turned on, each first image captured by the first camera is timestamped with the event stream. Then, optical flow estimation is performed based on the synchronization event of the first image and the synchronization event of the reference image of the first image to obtain an optical flow estimation result, where the reference image is the first n frames of the first image, where n is an integer greater than or equal to 1. Finally, the motion offset information of the first image is determined based on the optical flow estimation result.

[0123] S203: Perform motion blur compensation on the first image according to the motion offset information to obtain a first compensated image.

[0124] The first image is a color image captured by the first camera. The first image is a 2D image. Motion offset information is obtained by optical flow estimation based on the event stream, and motion blur compensation is performed on the first image to compensate for the motion blur of the VST video stream caused by the movement of the head-mounted XR device.

[0125] The specific implementation of steps S201-S203 refers to the relevant description of the first embodiment and will not be repeated here.

[0126] S204: Acquire a depth image corresponding to the first image.

[0127] In this embodiment, the XR device also includes a depth camera, which uses the depth camera to obtain a depth image corresponding to the first image. The depth image corresponding to the first image includes the depth information of each pixel in the first image, and the depth information is also called a depth value. The data obtained by the depth camera can determine the distance between each pixel in the image and the camera (i.e., the depth value of the pixel), and add the (x, y) coordinates of the pixel in the 2D image to obtain the three-dimensional spatial coordinates of each pixel in the image. The three-dimensional coordinates can be used to restore the real scene and realize applications such as scene modeling.

[0128] In this embodiment, the depth camera includes but is not limited to one or more of the following cameras: a structured-light device, a binocular camera, a monocular camera, and a Time of Flight (TOF) sensor.

[0129] Structured light device is an important branch of computer stereo vision technology. Its main principle is to project a specific pattern through a transmitter, then recognize the pattern in the image taken by the camera, and infer the three-dimensional shape of the object by calculating the degree and position of the deformation of the pattern.

[0130] The binocular camera is based on the parallax principle and uses two cameras to obtain two images of the object under test from different positions. The three-dimensional geometric information of the object is obtained by calculating the position deviation between the corresponding feature points of the images.

[0131] A monocular camera uses a camera to take several images at different angles (in time sequence), and then uses a series of methods such as Mobileye monocular ranging to solve and obtain the depth information of the image.

[0132] The Tof sensor determines the distance by measuring the flight time of light. Specifically, it continuously emits laser pulses to the target, then uses the sensor to receive the reflected light and determines the distance of the target by detecting the round-trip flight time of the light pulse.

[0133] S205 . Determine a binocular VST image according to the first compensated image and the depth image corresponding to the first image by using the binocular parallax principle.

[0134] The binocular VST image includes the VST image of the left eye and the VST image of the right eye. The binocular VST image estimation is performed using the binocular parallax principle, which can be understood as the reverse calculation of the depth measured by the binocular camera. When the binocular camera is used to calculate the depth, the parallax of the two images (equivalent to the left and right eye images) and the camera parameters are used to calculate the depth value of the pixel. Conversely, when the depth value of a pixel and the camera parameters are known, the parallax of the two images can also be calculated to obtain the binocular VST image.

[0135] S206: Display the binocular VST image.

[0136] After the binocular VST image is estimated, the binocular VST image is displayed on a screen. Exemplarily, the XR device has dual screens, and the binocular VST images are displayed on one screen respectively.

[0137] In this embodiment, an event stream generated by an event camera is obtained, an optical flow estimation is performed based on the event stream, motion offset information of the first image is determined based on the optical flow estimation result, motion blur compensation is performed on the first image based on the motion offset information to obtain a first compensated image, a depth image corresponding to the first image is obtained, and a binocular VST image is determined based on the first compensated image and the depth image corresponding to the first image using the binocular parallax principle, and the binocular VST image is displayed. In this method, the motion offset information of the first image obtained by performing optical flow estimation based on the event stream generated by the event camera is more accurate, so that the first compensated image obtained by performing motion blur compensation on the first image is clearer, which improves the compensation accuracy of the motion blur of the VST video stream caused by the movement of the head-mounted XR device and improves the user experience.

[0138] Embodiment 3 of the present application provides a method for acquiring a depth image of a structured light device based on an event camera, wherein the structured light device includes an event camera and a transmitter. The method of this embodiment can be used to acquire a depth image of the first image in Embodiment 1 and Embodiment 2, and of course, can also be applied to other scenarios in XR devices that require calculation of depth images, and the embodiment of the present application is not limited to this.

[0139] Figure 3 The schematic diagram of the depth image acquisition method of the structured light device based on the event camera is shown in FIG. Figure 4 This is a flowchart of a method for acquiring a depth image of a structured light device based on an event camera provided in Example 3 of the present application, with reference to Figure 3 and Figure 4 , the method provided in this embodiment includes the following steps.

[0140] S301: Acquire an event stream generated by an event camera, where pixel points corresponding to events in the event stream are feature points.

[0141] Feature points refer to points where the grayscale value of an image changes dramatically or points with large curvature on the edge of an image (i.e., the intersection of two edges). Image feature points play a very important role in image matching algorithms based on feature points. Image feature points can reflect the essential features of an image and identify the target object in the image. Image matching can be completed through matching feature points.

[0142] The structured light device includes an event camera and a transmitter, wherein the transmitter is used to project a fixed pattern onto the surface of an object, and the fixed pattern projected by the transmitter is hereinafter referred to as a reference pattern. The transmitter is also called a projector, and the transmitter is set with a fixed frequency and power.

[0143] After the transmitter projects the reference pattern onto the surface of an object in the real scene, the lens of the event camera collects the changes in illumination in the real scene. The receiving chip of the event camera receives the changes in illumination in the real scene and outputs events at the pixel coordinate positions where there are reference patterns. The projection pattern and the corresponding pixel coordinates captured by the structured light device are directly captured. The projection pattern is the pattern corresponding to the reference pattern identified in the image captured by the event camera.

[0144] The reference patterns projected by the transmitter include, but are not limited to, random speckle, pseudo-random speckle, stripe structured light, QR code structured light and other patterns.

[0145] Optionally, the wavelength of the filter of the receiving chip of the event camera is 850nm±15nm or 940nm±15nm. Accordingly, the wavelength range of the transmitter is slightly smaller than the spectral bandwidth of the receiving chip of the event camera. The main reason for using a narrow bandwidth filter is to reduce the interference of ambient light on the event camera and improve the imaging signal-to-noise ratio.

[0146] The hardware parameters of the transmitter's laser, such as exposure time, duty cycle, current and voltage, are configurable. The threshold voltage of the event camera's receiving chip can also be dynamically adjusted. By adjusting these parameters, imaging of objects at different distances and with different reflectivities can be achieved.

[0147] S302: Perform image preprocessing on the event stream to obtain feature points of a projection pattern, where the projection pattern is formed by projecting a reference pattern emitted by a projector of the structured light device onto a surface of an object.

[0148] The events in the event stream are timestamped and aligned, that is, the pixel points corresponding to the events with the same timestamp are combined to form a projection pattern.

[0149] Image preprocessing includes, but is not limited to, one or more of the following processes: adjusting exposure parameters, removing image noise, normalization, binarization, or filtering.

[0150] S303: Match feature points of the projection pattern with feature points of the reference pattern.

[0151] Since the event camera has a high acquisition frequency, a large number of projection patterns will be formed. The feature points of the projection patterns of each time stamp can be matched with the feature points of the reference pattern. You can also select the feature points of the projection patterns of some time stamps to match the feature points of the reference pattern. For example, feature point matching is performed every 10, 20, or 30 time stamps.

[0152] A suitable timestamp may be selected for feature point matching according to the usage scenario of the depth image. For example, in the VST scenario of the second embodiment, the event stream may be timestamped with the first image, and only feature points of the projection pattern synchronized with the timestamp of the first image may be matched with feature points of the reference pattern.

[0153] S304 , calculating the disparity of the matching feature points according to the feature point matching results, and determining the depth information of the matching feature points of the projection pattern according to the disparity of the matching feature points.

[0154] In the VST scene, the depth information of each matching feature point of the projection pattern constitutes a depth image corresponding to the first image.

[0155] Figure 5 A schematic diagram of image comparison at various stages of acquiring a depth image using a structured light device.

[0156] Steps S302-S304 correspond to Figure 3 Image preprocessing, feature point matching, disparity and depth calculation in .

[0157] Ordinary structured light devices use standard cameras. The receiving chip of the structured light device generally uses the GlobalShutter global exposure shutter image sensor to capture the projected pattern, and then performs the following processing on the projected pattern in sequence: image preprocessing, feature point extraction, feature point matching, disparity and depth calculation. Among them, the pixel accuracy and baseline distance of feature point extraction determine the accuracy of depth calculation, and the resolution of the image sensor and the number of feature points determine the density of the depth image. With the improvement of image sensor resolution, the hardware power consumption and the complexity of algorithm calculation increase exponentially.

[0158] Unlike standard cameras, the pixel points corresponding to the events output by event cameras are feature points, that is, the event camera extracts feature points through hardware. Therefore, when using a structured light device based on an event camera, the event camera outputs feature points. After image preprocessing, there is no need to extract feature points from the data output by the event camera, and feature point matching can be performed directly, which greatly simplifies the complexity and power consumption of depth image acquisition.

[0159] Based on Example 2, Example 4 of the present application provides a data processing method based on an event camera, which uses a visual positioning camera (also called a 6Dof camera or a tracking camera) and the IMU data of the XR device to perform depth estimation. The visual positioning camera can be understood as a camera used for 6Dof positioning and tracking, and the image taken by the visual positioning camera is also called a tracking image or a positioning image. Figure 6 The schematic diagram of VST image processing based on event camera. Figure 7 The flowchart of VST image processing based on event camera provided in the fourth embodiment of the present application is shown in FIG. Figure 6 and Figure 7 , the method provided in this embodiment includes the following steps.

[0160] S401: Acquire the event stream generated by the event camera.

[0161] S402 , performing optical flow estimation according to the event flow, and determining motion offset information of a first image according to the optical flow estimation result, where the first image is an image captured by a first camera.

[0162] S403: Perform motion blur compensation on the first image according to the motion offset information to obtain a first compensated image.

[0163] S404: Determine a depth image corresponding to the first image according to the tracking image captured by the visual positioning camera and the IMU data.

[0164] Reference Figure 6 , step S402 corresponds to Figure 6 In the optical flow estimation, step S403 corresponds to Figure 6 In compensating the motion blur of the first image, step S404 corresponds to Figure 6 Depth image estimation in .

[0165] The visual positioning camera can use one or more binocular cameras. When the visual positioning camera uses multiple binocular cameras for depth estimation, the viewing angles of the multiple binocular cameras together cover the viewing angle of the first camera. For example, four lenses are used to form a binocular camera, and two adjacent lenses can form a binocular camera. Different from the first image used for VST, the image collected by the visual positioning camera is usually a black and white image.

[0166] When multiple sets of binocular cameras are used for depth estimation, each set of binocular cameras estimates a candidate depth image of the first image, and multiple candidate depth images of the first image estimated by the multiple sets of binocular cameras are fused to obtain a depth image of the first image.

[0167] Exemplarily, the pose estimation information of the XR device is estimated based on the tracking image and the IMU data, and the pose estimation information of the XR device is 6Dof data. The candidate depth image corresponding to the first image is estimated based on the tracking image, and the depth image corresponding to the first image is determined based on the pose estimation information of the XR device and the candidate depth image corresponding to the first image. The depth image corresponding to the first image is obtained by fusing the pose estimation information of the XR device and the candidate depth image corresponding to the first image, so that the depth image corresponding to the first image is more accurate.

[0168] S405 . Determine a binocular VST image according to the first compensated image and the depth image corresponding to the first image by using the binocular parallax principle.

[0169] S406 , displaying binocular VST images on dual screens.

[0170] Reference Figure 6 , step S405 corresponds to Figure 6 The estimated binocular VST image in step S406 corresponds to Figure 6 Rendering on screen.

[0171] In this embodiment, the depth image corresponding to the first image is determined based on the tracking image and IMU data captured by the visual positioning camera, so that the depth image corresponding to the first image is more accurate, thereby making the estimation result of the binocular VST image more accurate, and the VST image seen by the user is closer to the real scene, providing a better user experience.

[0172] In one embodiment of the present application, depth estimation can also be performed in combination with a visual positioning camera and a structured light device based on an event camera to improve the accuracy of the estimation result of the depth image corresponding to the first image. Specifically, a tracking image taken by a visual positioning camera and IMU data obtained by IMU measurement of the XR device are obtained, and a first depth image corresponding to the first image is determined based on the tracking image and the IMU data; a second depth image corresponding to the first image is obtained using a structured light device based on an event camera, and the first depth image and the second depth image are fused to obtain a depth image corresponding to the first image. Among them, the estimation method of the first depth image refers to the description of Example 4, and the estimation method of the second depth image refers to the description of Example 3, which will not be repeated here.

[0173] Embodiment 5 of the present application provides a data processing method based on an event camera, which is used to compensate for motion blur in a 6Dof positioning and tracking scenario, that is, the first image captured by the first camera in Embodiment 1 is used for 6Dof positioning and tracking. Therefore, the first camera is a visual positioning camera and the first image is a tracking image. Figure 8 This is a flow chart of a data processing method based on an event camera provided in Embodiment 5 of the present application, such as Figure 8As shown, the method provided in this embodiment includes the following steps.

[0174] S501: Acquire the event stream generated by the event camera.

[0175] S502: performing optical flow estimation according to the event flow, and determining motion offset information of a first image according to the optical flow estimation result, where the first image is an image captured by a first camera.

[0176] In this embodiment, the first camera is a visual positioning camera, and the first image is used for 6Dof positioning tracking.

[0177] S503: Perform motion blur compensation on the first image according to the motion offset information to obtain a first compensated image.

[0178] The specific implementation of steps S201-S203 refers to the relevant description of the first embodiment and will not be repeated here.

[0179] S504 , performing pose estimation based on the first compensated image and IMU data obtained by IMU measurement of the XR device to obtain pose estimation information of the XR device.

[0180] The IMU data is synchronized with the timestamp of the first image, and the XR device synchronizes the timestamps of the IMU data and the first image before step S504. The XR device may also synchronize the first image, the IMU data, and the event stream when performing optical flow estimation.

[0181] The first camera may be a binocular depth camera, which performs depth estimation based on the first image captured by the binocular depth camera to obtain a depth image of the first image, and then performs pose estimation based on the IMU data and the depth image of the first image to obtain pose estimation information of the XR device.

[0182] For example, feature points of the first compensated image are extracted, and the feature points of the first compensated image are triangulated to obtain the three-dimensional coordinates of the feature points of the first compensated image, and landmark points are selected according to the three-dimensional coordinates of the feature points of the first compensated image. The IMU data and the landmark points of the first compensated image are processed by a graph optimization algorithm to obtain the pose estimation information corresponding to the XR.

[0183] In this embodiment, the event stream generated by the event camera is obtained, the optical flow is estimated based on the event stream, the motion offset information of the first image is determined based on the optical flow estimation result, the first image is motion-blur compensated based on the motion offset information to obtain a first compensated image, and the pose is estimated based on the first compensated image and IMU data to obtain the pose estimation information of the XR device. In this method, optical flow estimation is performed based on the event stream generated by the event camera to perform motion blur compensation on the first image used for tracking and positioning, thereby improving the accuracy and robustness of tracking and positioning of the head-mounted XR device in overexposure scenes, fast motion and other scenes, and improving the user experience.

[0184] It should be noted that the method of Example 5 of the present application can be used alone or in combination with the method described in any one of Examples 1 to 4, that is, motion blur compensation can be used to obtain a first compensation image for 6Dof tracking and positioning, or the first compensation image can be used to perform blur compensation for the VST video stream, or the first compensation image can be used for both 6Dof tracking and positioning and blur compensation for the VST video stream.

[0185] Based on the fifth embodiment, the sixth embodiment of the present application provides a data processing method based on an event camera, which is used to illustrate the 6Dof positioning and tracking process. Fig. 9 This is the schematic diagram of 6Dof positioning and tracking based on event camera. Fig.10 This is a flowchart of 6Dof positioning and tracking based on an event camera provided in Example 6 of the present application, refer to Fig. 9 and Fig.10 The method provided in this embodiment includes the following steps.

[0186] S601: Acquire the event stream generated by the event camera.

[0187] S602, synchronizing timestamps of an event stream, a first image, and IMU data, where the first image is an image captured by a first camera.

[0188] This step corresponds to Fig. 9 Timestamp synchronization in .

[0189] S603 , performing optical flow estimation according to the synchronization event of the first image, the synchronization event of the reference image of the first image, and the pose estimation information corresponding to the previous frame image of the first image.

[0190] When performing optical flow estimation based on the event flow, this embodiment also integrates the pose estimation information of the XR device, wherein the pose estimation information of the XR device is the pose estimation information corresponding to the previous frame image of the first image, thereby making the pose estimation information of the XR device more accurate.

[0191] Optionally, in other embodiments of the present application, when performing optical flow estimation, it is also possible not to fuse the pose estimation information corresponding to the previous frame image of the first image, but to perform optical flow estimation based on the synchronization events of the first image and the synchronization events of the reference image of the first image.

[0192] S604: Determine motion offset information of the first image according to the optical flow estimation result.

[0193] S605: Perform motion blur compensation on the first image according to the motion offset information to obtain a first compensated image.

[0194] Steps S603-S605 correspond to Fig. 9 Medium motion blur compensation.

[0195] S606: Extract feature points from the first compensated image.

[0196] This step corresponds to Fig. 9 For example, feature point extraction can be performed using algorithms such as FAST corner detection algorithm, Harris corner detection algorithm, Scale-invariant feature transform (SIFT), and Speeded Up Robust Features (SURF), but this is not limited in the present application.

[0197] S607 , performing triangulation processing on the feature points of the first compensated image to obtain three-dimensional coordinates of the feature points of the first compensated image.

[0198] This step corresponds to Fig. 9 The triangulation method can be understood as: observing the same 3D point P (x, y, z) at different positions, knowing the 2D projection points X1 (x1, y1) and X2 (x2, y2) of the 3D point observed at different positions, and using the triangulation relationship to restore the depth information z of the 3D point. In this embodiment, the depth value of the feature point of the first compensated image is calculated using the triangulation method.

[0199] S608: Select landmark points according to the three-dimensional coordinates of the feature points of the first compensated image.

[0200] This step corresponds to Fig. 9 Since the number of feature points in the first compensated image is large, too many feature points will lead to a large amount of calculation required for subsequent processing, while some feature points are not necessary and their existence has no effect on the final estimation result. Therefore, in this embodiment, some key feature points or typical feature points are selected as landmark points.

[0201] S609: Process the IMU data and the landmark points of the first compensated image through a graph optimization algorithm to obtain pose estimation information of the XR device.

[0202] The landmark points of the first compensated image represent the coordinates of the landmark points relative to the XR device at a certain moment. Based on the landmark points of the first compensated image, IMU data and camera parameters, the information of the six degrees of freedom of the XR device in the real scene, that is, the pose estimation information of the XR device, can be reversely estimated.

[0203] There is a deviation between the actual posture of the XR device in the real scene and the estimated posture. Therefore, an optimization function is established to optimize the error between the actual posture of the XR device in the real scene and the estimated posture. After the optimization function is established, the error is continuously optimized through an iterative method to obtain the estimated posture corresponding to the minimum error as the final posture estimation information of the XR device. The graph optimization algorithm includes but is not limited to the least squares method, the maximum likelihood estimation method, etc.

[0204] This step corresponds to Fig. 9 The pose estimation information of the XR device in the current frame is obtained through graph optimization. Figure 7 It can be seen that the pose estimation information of the XR device in the current frame is used to perform motion blur compensation for the next frame tracking image, thereby improving the accuracy and robustness of tracking and positioning.

[0205] It should be noted that the motion blur compensation in the 6Dof tracking and positioning scenario and the motion blur compensation in the VST scenario may adopt the same compensation method or different compensation methods. Fig. 9 The motion blur compensation method in the 6Dof tracking and positioning scenario shown can be used Figure 6 The motion blur compensation method in the VST scenario shown in the figure is similar. Figure 6 The motion blur compensation method in the VST scenario shown can also be used Fig. 9 Motion blur compensation in the 6Dof tracking and positioning scenario is shown.

[0206] In order to facilitate better implementation of the data processing method based on an event camera of an embodiment of the present application, an embodiment of the present application also provides a data processing device based on an event camera, which is applied to an XR device, and the XR device includes an event camera and a first camera. Fig.11 This is a schematic diagram of the structure of a data processing device based on an event camera provided in Embodiment 7 of the present application, such as Fig.11 As shown, the event camera-based data processing device 100 may include:

[0207] A first acquisition module 11 is used to acquire the event stream generated by the event camera;

[0208] an optical flow estimation module 12, configured to perform optical flow estimation according to the event flow, and determine motion offset information of a first image according to the optical flow estimation result, wherein the first image is an image captured by the first camera;

[0209] A compensation module 13, configured to perform motion blur compensation on the first image according to the motion offset information to obtain a first compensated image;

[0210] A second acquisition module 14 is used to acquire a depth image corresponding to the first image;

[0211] The determination module 15 is configured to determine a binocular video perspective VST image using the first compensation image and the depth image.

[0212] In some embodiments, the XR device includes a vision positioning camera;

[0213] The second acquisition module 14 is specifically used for:

[0214] Acquire the tracking image captured by the visual positioning camera and the IMU data measured by the inertial measurement unit (IMU) of the XR device;

[0215] A depth image corresponding to the first image is determined according to the tracking image and the IMU data.

[0216] In some embodiments, the XR device includes a structured light device, and the structured light device includes a projector and the event camera; the second acquisition module 14 is specifically used to: use the structured light device to acquire a depth image corresponding to the first image.

[0217] In some embodiments, the XR device includes a visual positioning camera and a structured light device, wherein the structured light device includes a projector and the event camera; the second acquisition module 14 is specifically used to:

[0218] Acquire the tracking image captured by the visual positioning camera and the IMU data measured by the inertial measurement unit (IMU) of the XR device;

[0219] Determine a first depth image corresponding to the first image according to the tracking image and the IMU data;

[0220] Acquire a second depth image corresponding to the first image using the structured light device;

[0221] The first depth image and the second depth image are fused to obtain a depth image corresponding to the first image.

[0222] In some embodiments, the using of a structured light device to acquire a depth image or a second depth image corresponding to the first image is specifically:

[0223] Acquire an event stream generated by the event camera, wherein the pixel points corresponding to the events in the event stream are feature points;

[0224] Performing image preprocessing on the event stream to obtain feature points of a projection pattern of the structured light device, where the projection pattern is formed by projecting a reference pattern emitted by the projector onto a surface of an object;

[0225] Performing feature point matching on the feature points of the projection pattern and the feature points of the reference pattern;

[0226] The parallax of the matching feature points is calculated according to the feature point matching results, and the depth information of the matching feature points of the projection pattern is determined according to the parallax of the matching feature points to obtain a depth image or a second depth image corresponding to the first image.

[0227] In some embodiments, determining the depth image corresponding to the first image or the first depth image according to the tracking image and the IMU data is specifically:

[0228] Obtaining estimated pose information of the XR device based on the tracking image and the IMU data;

[0229] determining a candidate depth image corresponding to the first image according to the tracking image;

[0230] Determine a depth image or a first depth image corresponding to the first image according to the pose estimation information of the XR device and the candidate depth image corresponding to the first image.

[0231] In some embodiments, a posture estimation module is further included, which is used to:

[0232] Perform pose estimation based on the first compensated image and IMU data measured by an inertial measurement unit (IMU) of the XR device to obtain pose estimation information of the XR device.

[0233] In some embodiments, the pose estimation module is specifically used to:

[0234] Extracting feature points from the first compensated image;

[0235] Performing triangulation processing on the feature points of the first compensated image to obtain three-dimensional coordinates of the feature points of the first compensated image;

[0236] Selecting landmark points according to the three-dimensional coordinates of the feature points of the first compensated image;

[0237] The IMU data and the selected landmark points are processed by a graph optimization algorithm to obtain pose estimation information of the XR device.

[0238] In some embodiments, the optical flow estimation module 12 is specifically used for:

[0239] Performing time stamp synchronization on the event stream and the first image;

[0240] Performing optical flow estimation according to the synchronization events of the first image and the synchronization events of a reference image of the first image, wherein the reference image is n frames before the first image, where n is an integer greater than or equal to 1;

[0241] The motion offset information of the first image is determined according to the optical flow estimation result.

[0242] In some embodiments, the optical flow estimation module 12 is specifically used to: perform optical flow estimation based on the pose estimation information of the XR device, the synchronization events of the first image, and the synchronization events of the reference image, wherein the pose estimation information of the XR device is estimated based on the previous frame image of the first image.

[0243] In some embodiments, the IMU data is synchronized with a timestamp of the tracking images.

[0244] In some embodiments, the IMU data is synchronized with a timestamp of the first compensated image.

[0245] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here.

[0246] The above describes the device 100 of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.

[0247] The embodiment of the present application also provides an XR device. Fig.12 A structural diagram of an XR device provided in Embodiment 8 of the present application is shown in FIG. Fig.12 As shown, the XR device 200 may include:

[0248] The memory 21, the processor 22 and the dual camera module 23, the memory 21 is used to store the computer program and transmit the program code to the processor 22. In other words, the processor 22 can call and run the computer program from the memory 21 to implement the method in the embodiment of the present application. The dual camera module 23 is used to capture images and send the images to the memory 21 and the processor 22 for processing.

[0249] For example, the processor 22 may be configured to execute the above method embodiments according to instructions in the computer program.

[0250] In some embodiments of the present application, the processor 22 may include but is not limited to:

[0251] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.

[0252] In some embodiments of the present application, the memory 21 includes but is not limited to:

[0253] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).

[0254] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 21 and executed by the processor 22 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the XR device.

[0255] like Fig.12 As shown, the XR device 200 may further include: a transceiver 24 , which may be connected to the processor 22 or the memory 21 .

[0256] The processor 22 may control the transceiver 24 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 23 may include a transmitter and a receiver. The transceiver 24 may further include an antenna, and the number of antennas may be one or more.

[0257] Understandable, although Fig.12 Not shown, the XR device 200 may also include a wireless fidelity WIFI module, a positioning module, a Bluetooth module, a display, a controller, etc., which will not be repeated here.

[0258] It should be understood that the components in the XR device are connected via a bus system, wherein the bus system includes, in addition to a data bus, a power bus, a control bus and a status signal bus.

[0259] The present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.

[0260] The present application also provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium. The processor of the XR device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the XR device executes the corresponding process in the map relocation method combined with semantic information in the embodiment of the present application, which will not be repeated here for the sake of brevity.

[0261] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0262] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0263] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data processing method based on an event camera, applied to an extended reality device, characterized in that: The extended reality device includes an event camera and a first camera, and the method includes: Obtaining the event stream generated by the event camera; performing optical flow estimation according to the event stream, and determining motion offset information of a first image according to the optical flow estimation result, where the first image is an image captured by the first camera; According to the motion offset information, motion blur compensation is performed on the first image to obtain a first compensated image; A depth image corresponding to the first image is acquired, and a binocular video perspective VST image is determined according to the first compensation image and the depth image.

2. The method according to claim 1, characterized in that The extended reality device includes a visual positioning camera; The acquiring a depth image corresponding to the first image includes: Acquire the tracking image captured by the visual positioning camera and the IMU data measured by the inertial measurement unit (IMU) of the extended reality device; A depth image corresponding to the first image is determined according to the tracking image and the IMU data.

3. The method according to claim 1, characterized in that The extended reality device includes a structured light device, and the structured light device includes a projector and the event camera; The acquiring a depth image corresponding to the first image includes: The structured light device is used to acquire a depth image corresponding to the first image.

4. The method according to claim 1, characterized in that: The extended reality device includes a visual positioning camera and a structured light device, wherein the structured light device includes a projector and the event camera; The acquiring a depth image corresponding to the first image includes: Acquire the tracking image captured by the visual positioning camera and the IMU data measured by the inertial measurement unit (IMU) of the extended reality device; Determine a first depth image corresponding to the first image according to the tracking image and the IMU data; Acquire a second depth image corresponding to the first image using the structured light device; The first depth image and the second depth image are fused to obtain a depth image corresponding to the first image.

5. The method according to claim 3 or 4, characterized in that: The method of using a structured light device to acquire a depth image or a second depth image corresponding to the first image includes: Acquire an event stream generated by the event camera, wherein the pixel points corresponding to the events in the event stream are feature points; Performing image preprocessing on the event stream to obtain feature points of a projection pattern of the structured light device, where the projection pattern is formed by projecting a reference pattern emitted by the projector onto a surface of an object; Matching feature points of the projection pattern with feature points of the reference pattern; The parallax of the matching feature points is calculated according to the feature point matching results, and the depth information of the matching feature points of the projection pattern is determined according to the parallax of the matching feature points to obtain a depth image or a second depth image corresponding to the first image.

6. The method according to claim 2 or 4, characterized in that: The determining, according to the tracking image and the IMU data, a depth image corresponding to the first image or a first depth image includes: Obtaining pose estimation information of the extended reality device based on the tracking image and the IMU data; determining a candidate depth image corresponding to the first image according to the tracking image; Determine a depth image or the first depth image corresponding to the first image based on the pose estimation information of the extended reality device and the candidate depth image corresponding to the first image.

7. The method according to claim 1, characterized in that After performing motion blur compensation on the first image according to the motion offset information to obtain a first compensated image, the method further includes: The pose estimation is performed based on the first compensated image and IMU data measured by the inertial measurement unit IMU of the extended reality device to obtain pose estimation information of the extended reality device.

8. The method according to claim 7, characterized in that The performing pose estimation according to the first compensated image and IMU data measured by an inertial measurement unit (IMU) of the extended reality device to obtain pose estimation information of the extended reality device includes: Extracting feature points from the first compensated image; Performing triangulation processing on the feature points of the first compensated image to obtain three-dimensional coordinates of the feature points of the first compensated image; Selecting landmark points according to the three-dimensional coordinates of the feature points of the first compensated image; The IMU data and the selected landmark points are processed by a graph optimization algorithm to obtain pose estimation information corresponding to the extended reality device.

9. The method according to any one of claims 1 to 4, 7 and 8, characterized in that The performing optical flow estimation according to the event flow and determining the motion offset information of the first image according to the optical flow estimation result includes: Performing time stamp synchronization on the event stream and the first image; Performing optical flow estimation according to the synchronization events of the first image and the synchronization events of a reference image of the first image, wherein the reference image is n frames before the first image, where n is an integer greater than or equal to 1; The motion offset information of the first image is determined according to the optical flow estimation result.

10. The method according to claim 9, characterized in that The performing optical flow estimation according to the synchronization events of the first image and the synchronization events of the reference image comprises: Optical flow estimation is performed based on the pose estimation information of the extended reality device, the synchronization events of the first image, and the synchronization events of the reference image, wherein the pose estimation information of the extended reality device is estimated based on a previous frame image of the first image.

11. The method according to claim 2 or 4, characterized in that: The IMU data is synchronized with the timestamp of the tracking images.

12. The method according to claim 7 or 8, characterized in that: The IMU data is synchronized with a timestamp of the first compensated image.

13. A data processing device based on an event camera, applied to an extended reality device, characterized in that: The extended reality device includes an event camera and a first camera, and the apparatus includes: A first acquisition module, used to acquire the event stream generated by the event camera; an optical flow estimation module, configured to perform optical flow estimation according to the event flow, and determine motion offset information of a first image according to the optical flow estimation result, wherein the first image is an image captured by the first camera; A compensation module, configured to perform motion blur compensation on the first image according to the motion offset information to obtain a first compensated image; A second acquisition module, used to acquire a depth image corresponding to the first image; A determination module is used to determine a binocular video perspective VST image using the first compensation image and the depth image.

14. An extended reality device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program causing a computer to execute the method according to any one of claims 1 to 12.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

Citation Information

Cited By

  • Spatial alignment method based on combined camera device of traditional camera and event camera

    CN120510349A

  • Spatial alignment method for a combination camera based on a traditional camera and an event camera

    CN120510349B