Three-dimensional map construction method and apparatus, storage medium and chip system

The event data of the event camera is used to deblur the RGB camera image frames, which solves the blur problem of traditional SLAM technology during high-speed motion, realizes high-precision three-dimensional map construction under high-frequency motion, and improves construction efficiency and map integrity. .

WO2024222149A1PCT designated stage expired Publication Date: 2024-10-31HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/076683
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-27
Filing Date
2024-02-07
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Traditional SLAM technology is prone to motion blur when moving at high speeds, resulting in low efficiency in 3D map construction, and cannot achieve high-speed and efficient construction of high-precision maps.

Method used

The event data collected by the event camera is used to deblur the image frames collected by the RGB camera. By removing the blur problem caused by motion, high-precision three-dimensional map construction under high-frequency motion is achieved.

Benefits of technology

Under high-frequency motion conditions, high-precision three-dimensional maps can be constructed quickly and efficiently, improving construction efficiency and map integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024076683_31102024_PF_FP_ABST
    Figure CN2024076683_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a three-dimensional map construction method and apparatus, a storage medium and a chip system, which are used for solving the current problem of low efficiency in map construction due to camera vibration. The present application proposes to perform, by taking an acquisition time as a reference and by means of event data acquired by an event camera, image compensation processing on image frames acquired by an RGB camera, so as to eliminate the problem of RGB image frame blurring caused by vibration, improve the efficiency of three-dimensional map construction and the integrity of the map, and enable high-precision, efficient and fast mapping even in high-frequency motion scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

A three-dimensional map construction method, device, storage medium and chip system

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on April 27, 2023, with application number 202310481620.0 and application name "A method, device, storage medium and chip system for constructing a three-dimensional map", the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of communication technology, and in particular to a method, device, storage medium, and chip system for constructing a three-dimensional map. Background Art

[0004] In the numerous technical fields of autonomous driving, map navigation, and mobile robots, building three-dimensional maps is a very important technical link. The technology of building three-dimensional maps refers to the intelligent terminal (such as a robot) fusing multi-sensor perception information to create a three-dimensional map of the current environment. In the existing technology, simultaneous localization and mapping (SLAM) technology is mainly used to achieve the construction of three-dimensional maps. With the widespread application of this technology, users' requirements for the speed and efficiency of creating three-dimensional maps are constantly increasing. Traditional SLAM technology uses standard red, green, blue (RGB) cameras, which are prone to motion blur and failure at high speeds. Therefore, it is necessary to limit the movement speed of the intelligent terminal, and high-speed mapping cannot be achieved.

[0005] Summary of the Invention

[0006] The present application provides a three-dimensional map construction method, device, storage medium and chip system for solving the current problem that the collected RGB image frames are blurred due to device movement, thereby affecting the efficiency of constructing three-dimensional maps.

[0007] In a first aspect, the present application provides a method for constructing a three-dimensional map, which is used to construct a three-dimensional map of a set scene. The method is applied to an electronic terminal, and an RGB camera and an event camera are provided in the electronic terminal. The method includes: in the process of the electronic terminal moving in the set scene, obtaining a video stream captured by the RGB camera, the video stream including multiple image frames, and obtaining an event data stream captured by the event camera, the event data stream including event data at multiple moments; performing image processing on multiple image frames in the video stream based on the event data stream captured by the event camera to obtain a processed video stream; and constructing a three-dimensional map of the set scene based on the processed video stream; wherein the image processing includes deblurring processing, and the deblurring processing for the first image frame is performed based on the event data within a set time range, the first image frame is any image frame among the multiple image frames, and the set time range includes the acquisition time of the first image frame.

[0008] Based on the above solution, this application proposes to use the event data collected by the event camera to deblur the RGB image frames captured by the RGB camera based on the acquisition time, eliminating the problem of RGB image frame blurring caused by electronic terminal movement, which leads to low mapping efficiency. The solution of this application can achieve high-speed and efficient construction of high-precision three-dimensional maps even in the case of high-frequency movement of electronic terminals.

[0009] In some embodiments, the deblurring processing of the first image frame includes: generating an event frame based on event data within the set time range; the event frame includes feature points for describing objects in the set scene; determining the position of the feature points of the object in the first image frame based on the first position of the feature points of the object included in the event frame in the event frame; and deleting feature points in other positions in the first image used to describe the object based on the position of the feature points of the object in the first image frame.

[0010] Based on the above scheme, when deblurring the RGB image frame, the specific position of the feature points used to describe the object in the RGB image frame can be determined through event data, and the feature points used to describe the object at other positions in the RGB image frame can be deleted, thereby eliminating the problem of blurring of the RGB image frame due to the movement of the electronic terminal.

[0011] In some embodiments, the image processing also includes exposure compensation processing; the exposure compensation processing of the first image frame includes: determining a second area at a corresponding position in the event frame based on the position of the first area in the first image frame; the first area is an image area with an abnormal exposure status in the first image frame; the event frame is generated based on event data within the set time range; and feature point compensation is performed on the first area based on feature points included in the second area for describing objects in the set scene.

[0012] Based on the above scheme, this application proposes using event data captured by an event camera to perform exposure compensation on RGB image frames. Based on the event frames generated based on the event data, the specific locations of feature points included in the abnormal exposure state areas in the RGB image frames are determined, thereby compensating the feature points in the abnormal exposure areas in the RGB image frames. In other words, based on the locations of feature points used to describe the outline of objects in the event frames, feature points are added to the corresponding locations in the RGB image frames, allowing clear images to be obtained under the same exposure conditions for constructing three-dimensional maps.

[0013] In some embodiments, before performing image processing on multiple image frames in the video stream based on the event data stream collected by the event camera, the method also includes: determining the center point of multiple feature points included in the first image frame, and determining the center point of multiple feature points included in the second image frame; the second image frame is the previous image frame of the first image frame in the video stream; determining the offset of the center point of the first image frame relative to the center point of the second image frame; and determining that the center point offset is greater than an offset threshold.

[0014] In some embodiments, the electronic terminal is also provided with an inertial measurement unit IMU. Before performing image processing on multiple image frames in the video stream based on the event data stream collected by the event camera, the method further includes: obtaining the acceleration value and linear velocity value of the electronic terminal during movement collected by the IMU; determining that the acceleration value exceeds the acceleration threshold, and determining that the linear velocity value exceeds the linear velocity threshold.

[0015] Based on the above scheme, the present application proposes to first determine whether the RGB image frame has a blur problem before deblurring the RGB image frame to save equipment processing resources. The present application proposes two schemes for determining whether there is a blur problem in the RGB image frame. One is based on the distribution of feature points in the RGB image frame. If the center point offset of the feature points of two consecutive image frames is too large, it can be determined that the latter RGB image frame has a blur problem. Among them, the offset threshold used to determine the offset size can be determined based on the moving speed of the electronic terminal and the acquisition frequency of the RGB image. The other is to judge the motion state of the electronic terminal based on the data collected by the IMU sensor. If it is determined that the motion state of the electronic terminal is abnormal, it can be determined that the RGB image frame collected at the corresponding moment has a blur problem.

[0016] In some embodiments, before performing exposure compensation processing on the first image frame, the method further includes: obtaining the brightness of multiple image frames included in the video stream; calculating the average brightness of image frames captured before the first image frame among the multiple image frames, and determining that the difference between the brightness of the first image frame and the average brightness is greater than a first brightness threshold; or, determining that the difference between the brightness of the first image frame and the brightness of a second image frame is greater than a second brightness threshold; wherein, the second image frame is the image frame preceding the first image frame in the video stream.

[0017] Based on the above solution, the present application proposes that before performing exposure compensation processing on the RGB image, it can first be determined whether the RGB image has an exposure abnormality problem, thereby saving device resources.

[0018] In some embodiments, constructing a three-dimensional map of the set scene based on the processed video stream includes: determining at least two key frames from multiple image frames included in the processed video stream; the time difference between the acquisition time of two adjacent key frames in the at least two key frames is greater than a time threshold, and the number of feature points included in any key frame is greater than a number threshold; and using the at least two key frames to construct the three-dimensional map.

[0019] Based on the above solution, the present application proposes that when a processed video stream is used to construct a three-dimensional map, at least two key frames can be identified from the video stream for use in constructing the map, thereby improving the efficiency of map construction.

[0020] In some embodiments, the use of the at least two key frames to construct the three-dimensional map includes: determining the three-dimensional coordinates of each pixel point in the camera coordinate system based on the grayscale information of each pixel point in the first key frame; the first key frame is any key frame of the at least two key frames; combining the coordinates of the electronic terminal in the world coordinate system at the first moment and the three-dimensional coordinates of each pixel point in the camera coordinate system, determining the three-dimensional coordinates of each pixel point in the world coordinate system; wherein the first moment is the acquisition time of the first key frame; and constructing a three-dimensional map of the scene based on the three-dimensional coordinates of the pixel points in the world coordinate system respectively included in the at least two key frames.

[0021] In some embodiments, determining the coordinates of the electronic terminal in the world coordinate system at the acquisition time of the first key frame includes: performing feature matching on the first key frame and the second key frame to determine the feature points for describing the same object included in the first key frame and the second key frame; wherein the second key frame is the previous key frame of the first key frame in the at least two key frames; determining the movement distance of the electronic terminal from the acquisition time of the second key frame to the acquisition time of the first key frame based on the positions of the feature points for describing the same object in the first key frame and the second key frame respectively; determining the coordinates of the electronic terminal in the world coordinate system at the acquisition time of the first key frame based on the coordinates of the electronic terminal in the world coordinate system at the acquisition time of the second key frame and the movement distance.

[0022] In a second aspect, the present application proposes a three-dimensional map construction device, which is used to construct a three-dimensional map of a set scene. The device can be an electronic terminal, or can be applied to an electronic terminal, such as a processor, processing chip, or processing circuit in the electronic terminal. The device includes: an acquisition unit, which is used to acquire a video stream captured by the RGB camera and an event data stream captured by the event camera while the electronic terminal moves within the set scene; the video stream includes multiple image frames, and the event data stream includes event data at multiple moments; a processing unit, which is used to perform image processing on the multiple image frames in the video stream based on the event data stream captured by the event camera to obtain a processed video stream; wherein the image processing includes deblurring, and the deblurring is performed on a first image frame based on event data within a set time range, the first image frame being any image frame of the multiple image frames, and the set time range including the acquisition time of the first image frame; the processing unit is further used to construct a three-dimensional map of the set scene based on the processed video stream.

[0023] In some embodiments, the processing unit is specifically used to: generate an event frame based on event data within the set time range; the event frame includes feature points for describing objects in the set scene; determine the position of the feature points of the object in the first image frame based on the first position of the feature points of the object included in the event frame; and delete the feature points in other positions in the first image used to describe the object based on the position of the feature points of the object in the first image frame.

[0024] In some embodiments, the image processing also includes exposure compensation processing; the processing unit is further used to: determine the second area at the corresponding position in the event frame based on the position of the first area in the first image frame; the first area is the image area with an abnormal exposure status in the first image frame; the event frame is generated based on the event data within the set time range; and feature point compensation is performed on the first area based on the feature points included in the second area for describing the objects in the set scene.

[0025] In some embodiments, before performing image processing on multiple image frames in the video stream based on the event data stream collected by the event camera, the processing unit is also used to: determine the center point of multiple feature points included in the first image frame, and determine the center point of multiple feature points included in the second image frame; the second image frame is the previous image frame of the first image frame in the video stream; determine the offset of the center point of the first image frame relative to the center point of the second image frame; determine that the center point offset is greater than an offset threshold.

[0026] In some embodiments, the electronic terminal is also provided with an IMU. Before performing image processing on multiple image frames in the video stream based on the event data stream collected by the event camera, the acquisition unit is also used to obtain the acceleration value and linear velocity value of the electronic terminal during movement collected by the IMU; the processing unit is also used to determine whether the acceleration value exceeds the acceleration threshold, and determine whether the linear velocity value exceeds the linear velocity threshold.

[0027] In some embodiments, before the exposure compensation processing of the first image frame, the acquisition unit is further used to acquire the brightness of multiple image frames included in the video stream; the processing unit is further used to calculate the average brightness of the image frames captured before the first image frame among the multiple image frames, and determine that the difference between the brightness of the first image frame and the average brightness is greater than a first brightness threshold; or, determine that the difference between the brightness of the first image frame and the brightness of the second image frame is greater than a second brightness threshold; wherein, the second image frame is the image frame before the first image frame in the video stream.

[0028] In some embodiments, the processing unit is specifically used to: determine at least two key frames from the multiple image frames included in the processed video stream; the time difference between the acquisition time of two adjacent key frames in the at least two key frames is greater than a time threshold, and the number of feature points included in any key frame is greater than a number threshold; and use the at least two key frames to construct the three-dimensional map.

[0029] In some embodiments, the processing unit is specifically used to: determine the three-dimensional coordinates of each pixel point in the camera coordinate system based on the grayscale information of each pixel point in the first key frame; the first key frame is any key frame of the at least two key frames; combine the coordinates of the electronic terminal in the world coordinate system at the first moment, and the three-dimensional coordinates of each pixel point in the camera coordinate system, to determine the three-dimensional coordinates of each pixel point in the world coordinate system; wherein the first moment is the acquisition time of the first key frame; construct a three-dimensional map of the scene according to the three-dimensional coordinates of the pixel points respectively included in the at least two key frames in the world coordinate system.

[0030] In some embodiments, the processing unit is specifically used to: perform feature matching on the first key frame and the second key frame to determine the feature points included in the first key frame and the second key frame for describing the same object; wherein the second key frame is the previous key frame of the first key frame in the at least two key frames; determine the moving distance of the electronic terminal from the acquisition time of the second key frame to the acquisition time of the first key frame based on the positions of the feature points for describing the same object in the first key frame and the second key frame respectively; determine the coordinates of the electronic terminal in the world coordinate system at the acquisition time of the first key frame based on the coordinates of the electronic terminal in the world coordinate system at the acquisition time of the second key frame and the moving distance.

[0031] In the third aspect, the present application proposes another device for constructing a three-dimensional map, comprising a processor and a memory; the memory is used to store programs; the processor is used to execute the programs stored in the memory, so that the device implements the method described in any possible design of the first aspect above.

[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a program code. When the program code runs on the computer, the computer executes the method described in any possible design of the first aspect above.

[0033] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in any possible design of the first aspect above.

[0034] In a sixth aspect, an embodiment of the present application provides a chip system, which includes a processor coupled to a memory and configured to call a computer program or computer instruction stored in the memory so that the processor executes the method described in any possible design of the first aspect above.

[0035] In a seventh aspect, an embodiment of the present application provides a processor for calling a computer program or computer instruction stored in a memory so that the processor executes the method described in any possible design of the first aspect above.

[0036] Based on the implementations provided in the above aspects, the embodiments of the present application can be further combined to provide more implementations.

[0037] The technical effects that can be achieved by any possible design in any of the second to seventh aspects mentioned above can be described by referring to the technical effects that can be achieved by any possible design in the first aspect mentioned above, and the repetitions will not be discussed. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] FIG1 is a schematic diagram of an event frame determined based on DVS event data;

[0039] FIG2 is a schematic diagram of a flow chart of a method for constructing a three-dimensional map according to an embodiment of the present application;

[0040] FIG3 is a schematic diagram of a process of aligning timestamps provided in an embodiment of the present application;

[0041] FIG4 is a schematic diagram of the architecture of an electronic terminal provided in an embodiment of the present application;

[0042] FIG5 is a flow chart of another method for constructing a three-dimensional map according to an embodiment of the present application;

[0043] FIG6 is a flow chart of another method for constructing a three-dimensional map according to an embodiment of the present application;

[0044] FIG7 is an exemplary block diagram of a three-dimensional map construction device provided in an embodiment of the present application;

[0045] FIG8 is an exemplary block diagram of another three-dimensional map construction device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The solution of this application can be applied to scenarios such as real-time positioning and navigation of mobile electronic terminals during autonomous movement. Examples of mobile electronic terminals include sweeping robots, food delivery robots, drones, delivery robots, mobile carts, logistics carts, and self-driving vehicles. This application does not impose any restrictions on the specific types of applicable mobile electronic terminals.

[0047] In order to facilitate understanding of the solutions of the present application, the concepts and terms involved in the embodiments of the present application are first briefly explained.

[0048] (1) Dynamic vision sensor (DVS): Also known as event camera, DVS camera uses an event-driven approach to capture dynamic changes in the scene. Unlike traditional RGB cameras, DVS cameras do not have the concept of "frames". When the real scene it captures changes, such as when an object moves, the DVS camera will generate some pixel-level output (i.e., events, which usually refer to feature points of motion). An event specifically includes acquisition time, location information, and event polarity. For example, an event can be represented as (t, x, y, p), where t is the acquisition time, (x, y) is the coordinates of the feature point, and p is the polarity of the event. The polarity is used to describe whether the change in light intensity at the pixel point reaches a threshold. Therefore, when the object captured by the DVS camera does not move, the output of the DVS camera is a black image. When the object captured by the DVS camera moves, causing the brightness of multiple pixels to change, the pixels with brightness changes in the image output by the DVS camera can describe the outline of the moving object. The image output by the DVS camera can be called an event image frame or an event frame. For the sake of convenience, it will be collectively referred to as an event frame. DVS cameras have the advantages of no requirements for lighting conditions, low latency, and sensitivity to small and fast movements.

[0049] (2) Inertial measurement unit (IMU): A device used to measure the three-axis attitude angle (or angular rate) and acceleration of an object. Generally, an IMU contains three single-axis angular accelerometers and three single-axis gyroscopes. The accelerometers are used to detect the acceleration signals of the object in the three independent axes of the carrier coordinate system, and the gyroscopes are used to detect the angular velocity signals of the carrier relative to the navigation coordinate system. The IMU measures the angular velocity and acceleration of the object in three-dimensional space to determine the object's attitude.

[0050] (3) Loose coupling: A multi-sensor fusion algorithm refers to treating multiple sensors (such as IMU and DVS camera) as two separate modules, calculating the results of each module, and then fusing the results of each module to obtain the final positioning result or posture result (fusion can use algorithms such as weighted average fusion).

[0051] (4) Oriented fast and rotated briff (ORB): a fast and stable feature point detection and extraction algorithm, widely used in image feature extraction.

[0052] Rapid mapping technology involves robots integrating multi-sensor information to rapidly map unknown environments. It has widespread application in a wide range of fields, including mobile robotics, autonomous driving, and map navigation. Currently, existing technologies primarily utilize SLAM (Simultaneous Localization and Mapping) technology to construct three-dimensional maps. SLAM technology can be understood as the process of autonomously positioning and navigating mobile devices from an unknown location in an unknown environment using position estimates and maps. This technology also constructs incremental maps based on this localization, enabling autonomous positioning and navigation. However, traditional SLAM technology uses standard RGB cameras, which are prone to motion blur and failure at high speeds. Therefore, when implementing SLAM technology, the speed of the mobile device is limited to mitigate vibration, while also ensuring robustness through relocalization. However, relocalization requires the device to return to its original path to locate its global position, which also limits the speed and efficiency of mapping.

[0053] To address these issues, related technologies have proposed SLAM algorithms that fuse RGB camera and IMU data, known as visual-inertial odometry, and SLAM algorithms based on DVS cameras, known as event-based visual odometry (EVO). While visual-inertial odometry can recover camera scale information and maintain localization accuracy for a short period of time even when camera blur is lost, maintaining map accuracy and integrity over extended periods of time due to motion blur remains a challenge. The EVO algorithm takes event data as input, compresses the event data within a set time range to produce frames of the same size as regular RGB image frames, and then performs feature extraction and pose estimation based on the frame data. For example, see Figure 1, which shows a schematic diagram of an event frame determined based on DVS event data. As can be seen, because event frames only capture the moving edges of objects and lack texture, they are difficult to generate high-precision maps. The sparse point cloud of object edge contours in the environment input by DVS cameras cannot be directly applied to existing navigation or autonomous driving applications, nor can it generate high-precision 3D maps. Therefore, how to use multi-sensor fusion technology to achieve rapid positioning and mapping has become an urgent problem that needs to be solved.

[0054] This application proposes a method for constructing a three-dimensional map. Based on the acquisition time, the event data collected by the DVS camera is used to compensate the corresponding RGB image frames, eliminating the problem of RGB image frame blurring caused by the movement of the electronic terminal, improving the efficiency of constructing the three-dimensional map and the integrity of the map, so that high-precision, efficient and fast mapping can still be achieved in scenarios with high frequency of movement.

[0055] The following describes the three-dimensional map construction scheme proposed in this application with reference to the accompanying drawings.

[0056] In one possible scenario, the solution of the present application can be executed by an electronic terminal that moves in a set scene where a three-dimensional map needs to be constructed. The electronic terminal is provided with an RGB camera and a DVS camera (for the convenience of description, the DVS camera will be referred to as an event camera, and the data collected by the event camera will be referred to as event data). Exemplarily, the electronic terminal can be the drone, self-driving vehicle, etc. introduced in the aforementioned embodiments, or the electronic terminal can also be a device-to-device communication (D2D) terminal, vehicle to everything (V2X) terminal, machine-to-machine / machine-type communications (M2M / MTC) terminal, Internet of Things (IoT) terminal, user terminal, etc. provided with an RGB camera and an event camera. The electronic terminal can also be a tablet computer provided with an RGB camera and an event camera, or a computer with wireless transceiver function. The electronic terminal can also be a virtual reality (VR) terminal equipped with an RGB camera and an event camera, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in a smart grid, a wireless terminal in a smart city, a wireless terminal in a smart home, and the like.

[0057] In another possible scenario, the solution of the present application may also be executed by specific components in an electronic terminal, such as a processor, processing chip, or circuit system in the electronic terminal. Examples of electronic terminals can be found in the above description. The components in the electronic terminal used to execute the solution of the present application may acquire data from an RGB camera and an event camera provided in the electronic terminal, and implement the solution of the present application based on the acquired data to construct a three-dimensional map.

[0058] In another possible scenario, the solution of the present application can also be executed by a system consisting of a cloud server and an electronic terminal. For example, an RGB camera and an event camera are deployed in the electronic terminal included in the system, and the electronic terminal has a communication module for communicating with the cloud server. The electronic terminal can obtain data collected by the RGB camera and the event camera, and send the collected data to the cloud server. The cloud server in the system may include a processor, memory, a network card and a hard disk. The processor, memory, network card and hard disk are connected by a bus. The network card is used to receive data from the electronic terminal, and the processor and memory are used to provide computing resources. Specifically, the processor can be a central processing unit (CPU) for processing data from the electronic terminal and generating a three-dimensional map of the scene. The hard disk is used to provide storage resources, such as a three-dimensional map generated by the storage processor. It can be a disk or other types of storage media, such as a solid-state drive or a shingled magnetic recording hard disk. The network card is used to communicate with other application first storage devices.

[0059] Of course, the above execution methods are only examples, and this application does not limit the specific execution subject of the solution. For the sake of convenience, the following description will take the electronic terminal as the execution subject as an example. The following is a detailed introduction to the solution of this application. See Figure 2, which is a flow chart of a three-dimensional map construction method provided in an embodiment of this application, specifically including:

[0060] 201 , while the electronic terminal is moving in a set scene, obtaining a video stream captured by an RGB camera and an event data stream captured by an event camera.

[0061] The video stream captured by the RGB camera includes multiple image frames.

[0062] 202 : Perform image processing on multiple image frames in the video stream based on the event data stream collected by the event camera to obtain a processed video stream.

[0063] Image processing includes deblurring, which involves using an event data stream to deblur image frames captured by an RGB camera. For example, taking the first frame of a plurality of image frames as an example, event data within a set time range can be obtained. Deblurring can then be performed on the first frame based on the obtained event data to determine the specific locations of feature points in the first frame. The set time range includes the capture time of the first frame. For example, event data collected between 1 and 10 seconds can be used to deblur an RGB image frame captured at the 5th second.

[0064] 203 , constructing a three-dimensional map of the set scene based on the processed video stream.

[0065] Based on the above solution, this application proposes compensating the image frames captured by the RGB camera using event data collected by the event camera, based on the acquisition time. This event data is used to determine the specific locations of feature points used to describe objects in the RGB image frames, eliminating the problem of RGB image frame blurring caused by electronic terminal movement. This solution can achieve high-speed and efficient construction of high-precision three-dimensional maps even in the case of high-frequency movement of electronic terminals.

[0066] In some scenarios, before deblurring the RGB image frame based on the event data, the electronic terminal may first determine whether the RGB image frame has a blur problem. After determining that the RGB image frame has a blur problem, the electronic terminal may deblur the RGB image frame based on the event data. For example, the electronic terminal may use the following first and second embodiments to determine whether the RGB image frame has a blur problem.

[0067] Example 1: The electronic terminal can determine whether there is a blur problem based on the offset of the distribution of feature points of two consecutive image frames in the video stream. For example, still taking the first image frame in the video stream as an example, the electronic terminal can perform feature extraction on the first image frame and the image frame before the first image frame. For the convenience of description, the image frame before the first image frame in the video stream will be referred to as the second image frame. It should be noted that this application does not limit the algorithm used by the electronic terminal to extract features from the first image frame and the second image frame. For example, the ORB feature extraction operator can be used, or the features from accelerated segment test (FAST) algorithm, scale-invariant feature transform (SIFT) algorithm, accelerated robust features (SURF) extraction algorithm, etc. can also be used. Optionally, after extracting the feature points in the first image frame and the second image frame, the electronic terminal can determine the center point of each feature point in the first image frame, and determine the center point of each feature point in the second image frame. Furthermore, the offset of the center point of the first image frame relative to the center point of the second image frame can be determined based on the position coordinates of the center point of the first image frame and the position coordinates of the center point of the second image frame. For example, if the calculated coordinates of the center point of the first image frame are (2, 5) and the calculated coordinates of the center point of the second image frame are (2, 20), then it can be determined that the offset of the center point of the first image frame relative to the center point of the second image frame is 15. Furthermore, the electronic terminal can determine whether the offset of the center point of the first image frame is greater than the offset threshold. If it is greater than, it means that the motion state of the electronic terminal was unstable at the time of acquisition of the first image frame, resulting in a blurring problem in the first image frame; if it is not greater than, it means that the motion state of the electronic terminal was stable at the time of acquisition of the first image frame, and there is no blurring problem in the first image frame, and no deblurring process is required.

[0068] The offset threshold may be determined based on the movement speed of the electronic terminal. For example, based on the movement speed of the electronic terminal and the frequency of RGB image frame acquisition, the distance that the electronic terminal can move between two consecutive RGB image frames may be determined, and the offset threshold may be set to be greater than this distance.

[0069] Embodiment 2: The electronic terminal can determine whether the RGB image frame has a blurring problem based on its own movement. Exemplarily, the electronic terminal can also be provided with an IMU for collecting motion parameters such as linear velocity and acceleration during the movement of the electronic terminal. Still taking the determination of whether the first image frame has a blurring problem as an example: the electronic terminal can obtain the acceleration value and linear velocity value of the electronic terminal collected by the IMU within the time range A. The time range A includes the acquisition time of the first image frame. Furthermore, the electronic terminal can determine whether the acquired acceleration value exceeds the acceleration threshold, and determine whether the acquired linear velocity value exceeds the linear velocity threshold. If the acceleration value exceeds the acceleration threshold, and the linear velocity value exceeds the linear velocity threshold, it can be explained that the motion state of the electronic terminal is unstable at the acquisition time of the first image frame, resulting in a blurring problem in the first image frame, and deblurring processing is required with the help of event data. Otherwise, deblurring processing is not required.

[0070] It should be noted that the above-mentioned embodiment 1 and embodiment 2 can be implemented separately as two separate embodiments, or can be implemented in combination, and this application does not limit this. Optionally, before executing the above-mentioned embodiment 2, the IMU data, event data and RGB image frames can be time stamp aligned based on the acquisition frequencies of the IMU, RGB camera and event camera. For example, the lowest acquisition frequency can be used as the reference device, and the acquisition timestamp of other acquisition devices closest to this acquisition timestamp can be determined under each acquisition timestamp of the reference device, so as to align it with the sampling timestamp of the reference device, and delete the data collected by the part of the timestamp that is not aligned, so as to form a multi-mode signal based on the acquisition frequency of the reference device, thereby improving the efficiency of judging and compensating RGB image frames. For example, see Figure 3, which is a schematic diagram of a process of aligning timestamps provided in an embodiment of the present application.

[0071] In some embodiments, after the electronic terminal determines that the first image frame has a blur problem, it can use event data within a set time range to deblur it. For example, in a specific implementation, the electronic terminal can generate an event frame based on the event data within the set time range. The event frame includes feature points used to describe objects in a set scene. It should be noted that the feature points in the event frame are different from the feature points in the first image frame. The feature points in the event frame only include the object's outline information and position information, while the feature points in the first image frame also include information such as the object's RGB. Furthermore, the electronic terminal can determine the position of the object's feature points in the first image frame based on the first position of the object's feature points in the event frame. For example, if the electronic terminal determines that the position coordinates of feature point A used to describe a certain object in the event frame are (2, 4), it can correspondingly determine that the position coordinates of feature point A in the first image frame are also (2, 4). Furthermore, based on the determined position of the feature points used to describe the object in the first image frame, the electronic terminal can delete feature points used to describe the object at other locations in the first image frame. Continuing with the above example, assume that due to blurring of the first image frame, it may include multiple feature points A used to describe a certain object, and each of the feature points A is located at different positions in the first image frame. After the electronic terminal determines the position coordinates of feature point A as (2, 4) based on the event frame, it can delete all feature points A except for the feature point A at coordinates (2, 4) from the first image frame, thereby deblurring the first image frame.

[0072] Traditional RGB cameras are very sensitive to ambient light, and once an exposure problem occurs, it will have a great impact on the images captured by the RGB camera. Especially when mapping outdoor scenes, the ambient light is mainly sunlight, and the electronic terminal is very likely to be overexposed or underexposed due to backlight or facing a strong light source during movement, resulting in the problem that part of the captured image is completely black or part of it is completely white. In order to solve this problem, the present application proposes that the RGB image frame can be subjected to exposure compensation processing using event data based on the acquisition time. In some embodiments, the electronic terminal can generate an event frame using event data within a certain time range, and compensate the feature points included in the RGB image frame based on the feature points included in the event frame. For example, still taking the first image frame in the video stream as an example, the process of the electronic terminal performing exposure compensation processing on the first image frame is introduced:

[0073] Exemplarily, the electronic terminal can determine the second area at the corresponding position in the event frame based on the position of the first area in the first image frame. The first area is the area with abnormal exposure status in the first image frame. The electronic terminal can determine the area with abnormal exposure status in the first image frame by comparing the brightness of each pixel in the first image frame. The abnormal exposure status may include overexposure or underexposure. Furthermore, the electronic terminal can compensate for the feature points included in the first area based on the feature points included in the second area for describing the objects in the scene. Exemplarily, the electronic terminal can add feature points for describing the contour information of the object at the corresponding position in the first area based on the position information of each feature point included in the second area. After supplementing the feature points, the first area includes the contour information of the object. The electronic terminal can also determine the RGB information of the object included in the first area based on the RGB information of the area in the first image frame where there is no abnormal exposure status, thereby completing the object in the first area. For example, due to abnormal exposure status, the partial image of object A included in the first area is not successfully displayed. The electronic terminal can determine the contour information of the partial image of object A included in the first area based on the feature points included in the second area, and then determine the RGB information of the partial image of object A included in the first area based on the RGB information of other partial images of object A included in the first image frame, thereby completing the partial image of object A included in the first area.

[0074] In some embodiments, before performing exposure compensation processing on an RGB image frame, it is first possible to determine whether the RGB image frame has an exposure abnormality based on a comparison of the brightness of multiple RGB image frames. For example, a brightness statistical histogram of the RGB image frame can be created and analyzed to determine the exposure status of the RGB image frame. In one possible implementation, the electronic terminal can obtain the brightness of the first image frame and the brightness of the second image frame, and determine whether the difference between the brightness of the first image frame and the brightness of the second image frame is greater than a first brightness threshold. If so, it indicates that the first image frame has an exposure abnormality; if not, it indicates that the first image frame does not have an exposure abnormality. In another possible implementation, the electronic terminal can count the average brightness of at least one image frame in the video stream that precedes the first image frame, and determine whether the difference between the brightness of the first image frame and the average brightness is greater than a second brightness threshold. If so, it indicates that the first image frame has an exposure abnormality; if not, it indicates that the first image frame does not have an exposure abnormality.

[0075] In some embodiments, after processing the video stream using the scheme described in the above embodiments, the processed video stream can be used to construct a three-dimensional map of the set scene. In an optional manner, at least two key frames can be identified from the video stream, and the three-dimensional map can be constructed using the at least two identified key frames. Among them, the conditions for satisfying the key frames may include: the number of feature points in the key frames is greater than a number threshold, and the time interval between any key frame and the previous key frame is greater than a time threshold. Exemplarily, when constructing a three-dimensional map using the identified key frames, it can be achieved through the following steps one to three:

[0076] Step 1: Determine the three-dimensional coordinates of each pixel in the electronic terminal coordinate system based on the grayscale information of each pixel in the first key frame.

[0077] The first keyframe is any one of the at least two keyframes. The electronic terminal coordinate system is a coordinate system with the electronic terminal as its origin. The first keyframe includes the two-dimensional coordinates (x, y) of each pixel point, and the z coordinate of each pixel point is determined based on the grayscale information of each pixel point, thereby determining the three-dimensional coordinates of each pixel point in the electronic terminal coordinate system.

[0078] Step 2: Determine the world coordinates of each pixel point by combining the world coordinates of the electronic terminal at the first moment and the three-dimensional coordinates of each pixel point in the electronic terminal coordinate system in the first key frame.

[0079] The first moment is the acquisition time of the first key frame.

[0080] Step 3: Construct a three-dimensional map based on the world coordinates of the pixel points respectively included in at least two key frames.

[0081] Optionally, when executing the above step 2 to determine the world coordinates of the electronic terminal at the first moment, there are two cases as follows:

[0082] Case 1: The first key frame is an RGB image frame that has not been processed.

[0083] In case one, at the time of acquisition of the first key frame, the electronic terminal is in normal motion and the first key frame does not have an abnormal exposure state. For case one, the electronic terminal can directly perform feature matching on the first key frame and the second key frame to determine the positions of feature points used to describe the same object in the first key frame and the second key frame. The second key frame is the previous key frame of the first key frame, and feature matching can be implemented using a pre-trained neural network, such as a convolutional neural network (CNN), or a graphics processing unit (GPU) to improve the efficiency of feature matching. Furthermore, the electronic terminal can determine the distance moved between the first moment and the second moment based on the positions of feature points used to describe the same object in the first key frame and the second key frame. The second moment is the acquisition moment of the second key frame. Still further, the world coordinates of the first key frame can be determined based on the world coordinates of the electronic terminal at the second moment and the determined distance.

[0084] Case 2: The first key frame is an RGB image frame after image processing.

[0085] In the second case, at the acquisition time of the first key frame, the motion state of the electronic terminal is abnormal or there is an abnormal exposure state in the first key frame, so the electronic terminal performs image processing on the first key frame according to the event data corresponding to the first key frame. For the second case, the electronic terminal can obtain an event frame generated according to the event data corresponding to the first key frame, and use an optical flow estimation algorithm (such as the Lucas-Kanade optical flow estimation algorithm) to determine the optical flow relationship between the event frame and the previous event frame of the event frame. Furthermore, the posture information of the electronic terminal at the acquisition moment of the event frame can be determined based on the optical flow relationship. Optionally, a pre-trained optical flow estimation network, such as a deep learning network such as DeepFlow and DeepMatch, can be used to implement it, and a GPU can also be used to execute it to increase the speed of posture estimation.

[0086] The solutions described in the above embodiments can be executed by the electronic terminal or by different processing modules of the electronic terminal. For example, see Figure 4, which is a schematic diagram of the architecture of an electronic terminal provided in an embodiment of the present application. As shown in Figure 4, the electronic terminal may include a motion state detection module, an RGB feature matching acceleration module, a multimodal fusion deblurring module, a multimodal fusion exposure compensation module, a positioning fusion sharing module, and an RGB three-dimensional reconstruction acceleration module.

[0087] Among them, the motion state detection module is used to determine the current motion state of the electronic terminal and determine whether there is a blur problem in the RGB image frame. The RGB feature matching acceleration module is used to perform feature matching on two adjacent RGB image frames. The multimodal fusion deblurring module is used to deblur the RGB image frame according to the event data. The multimodal fusion exposure compensation module is used to perform exposure compensation on the RGB image frame according to the event data. The positioning fusion sharing module is used to locate the electronic terminal (see the relevant introduction of Case 1 and Case 2 above). The RGB three-dimensional reconstruction acceleration module is used to construct a three-dimensional map of the scene based on the key frames. It should be noted that the architecture shown in Figure 4 is only an example, in which the various modules are only functional divisions of the electronic terminal and are not intended to limit the structure of the electronic terminal.

[0088] The following is a detailed introduction to the solution of this application in conjunction with the architecture shown in Figure 4. Referring to Figure 5, there is a flow chart of a method for constructing a three-dimensional map provided in an embodiment of this application, which specifically includes:

[0089] 501. A motion detection module obtains a motion state of an electronic terminal.

[0090] 502. The motion detection module determines whether the motion state of the electronic terminal is normal.

[0091] For example, please refer to the relevant introduction of the above-mentioned embodiment 1 and embodiment 2, which will not be repeated here.

[0092] If yes, continue to execute step 503.

[0093] If not, continue to execute step 504.

[0094] 503, the RGB feature matching acceleration module determines the posture data of the electronic terminal.

[0095] 504, the multimodal fusion deblurring module uses the event data to deblur the RGB image.

[0096] 505. The positioning fusion sharing module determines the position and posture data of the electronic terminal according to the event data.

[0097] 506, the RGB 3D reconstruction acceleration module constructs a 3D map of the scene based on the RGB image and the position data of the electronic terminal.

[0098] As can be seen from the above, this application proposes to judge whether the motion state of the electronic terminal is normal based on the data collected by the sensor during the mapping process. If it is normal, the image frames collected by the RGB camera are used for mapping and positioning. If it is abnormal, the data collected by the RGB camera and the event camera are used together to build the map, and the electronic terminal is positioned in a loosely coupled manner to ensure the continuity and robustness of the mapping.

[0099] 6 , which is a flow chart of another method for constructing a three-dimensional map provided in an embodiment of the present application, specifically comprising:

[0100] 601. The multimodal fusion exposure compensation module obtains the brightness of the RGB image frame.

[0101] 602. The multimodal fusion exposure compensation module determines whether the RGB image frame has an abnormal exposure state.

[0102] If yes, continue to execute step 603.

[0103] If not, continue to execute step 605.

[0104] 603, the multimodal fusion exposure compensation module uses the event data to perform exposure compensation processing on the RGB image.

[0105] 604. The positioning fusion sharing module determines the position and posture data of the electronic terminal according to the event data.

[0106] 605, the RGB feature matching acceleration module determines the posture data of the electronic terminal.

[0107] 606, the RGB three-dimensional reconstruction acceleration module constructs a three-dimensional map of the scene based on the RGB image and the posture data of the electronic terminal.

[0108] The following describes the three-dimensional map construction device for implementing the above method in the embodiment of the present application with reference to the accompanying drawings. Therefore, the above contents can be used in the subsequent embodiments, and the repeated contents will not be repeated.

[0109] Figure 7 is a schematic block diagram of a three-dimensional map construction device 700 provided in an embodiment of the present application. The device 700 can correspondingly implement the functions or steps implemented by the electronic terminal in the above-mentioned various method embodiments. The three-dimensional map construction device 700 may include an acquisition unit 701 and a processing unit 702. Optionally, it may also include a storage unit, which can be used to store instructions (code or program) and / or data. The acquisition unit 701 and the processing unit 702 can be coupled with the storage unit. For example, the processing unit 702 can read the instructions (code or program) and / or data in the storage unit to implement the corresponding method. The above-mentioned various units can be set independently or partially or fully integrated. For example, the processing unit 702 can include the various modules in the architectural diagram shown in Figure 4 above, that is, the processing unit 702 can implement the functions of the various modules shown in Figure 4.

[0110] In some possible implementations, the three-dimensional map construction device 700 can implement the behaviors and functions of the electronic terminal in the above-mentioned method embodiments. For example, the three-dimensional map construction device 700 can be an electronic terminal, or it can be a component in the electronic terminal (such as a chip or circuit). Among them, the acquisition unit 701 is used to execute the steps of acquiring data collected by the RGB camera, event camera and IMU in the above-mentioned embodiments. For example, the acquisition unit 701 can be used to execute the operations of acquiring the video stream collected by the RGB camera and acquiring the event data stream collected by the event camera in the embodiment shown in Figure 2 above. The processing unit 702 can be used to execute all operations performed by the electronic terminal in the embodiment shown in Figure 2 above except the operation of acquiring data, and / or to support other processes of the technology described herein.

[0111] For example, the processing unit 702 may be configured to perform image processing on each of the plurality of image frames in the video stream based on the event data stream captured by the event camera to obtain processed video streams, and to construct a three-dimensional map of the set scene based on the processed video streams. The image processing may include deblurring, wherein the deblurring is performed on a first image frame based on event data within a set time range, the first image frame being any one of the plurality of image frames, and the set time range including the time when the first image frame was captured.

[0112] For other operations performed by the acquisition unit 701 and the processing unit 702, reference may be made to the relevant description of the aforementioned method embodiment.

[0113] It should be noted that the division of units in the embodiments of the present application is schematic and is merely a logical functional division. In actual implementation, other division methods may be used. Each functional unit in the embodiments of the present application may be integrated into a processing unit 702, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0114] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0115] It should be understood that the processing unit 702 in the embodiments of the present application can be implemented by a processor or processor-related circuit components, and the acquisition unit 701 can be implemented by a data transmission interface. For example, the three-dimensional map construction device in the above embodiment can also adopt the form shown in Figure 8. The device 800 shown in Figure 8 includes at least one processor 810, a memory 820, and optionally, a communication interface 830.

[0116] The specific connection medium between the processor 810 and the memory 820 is not limited in the embodiments of the present application. The processor 810 can be a general-purpose processor or a dedicated processor. For example, it can be a baseband processor or a central processing unit. The memory 820 stores computer-executable instructions, which can be executed on the processor 810 to enable the device 800 to perform the method described in the above method embodiment. Optionally, data can also be stored in the memory 820. The processor 810 can also optionally store instructions and / or data. The processor and memory can be provided separately or integrated together.

[0117] It should be noted that the processor 810 in the embodiments of the present application can be an integrated circuit chip with signal processing capabilities. During implementation, the steps of the above-described method embodiments can be completed by hardware integrated logic circuits or software instructions in the processor 810. The processor 810 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software modules can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above-described method.

[0118] It is understood that the memory 820 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a 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 RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0119] An embodiment of the present application further provides a computer storage medium having a computer program stored thereon, which, when executed by a computer, implements the method for constructing a three-dimensional map of any of the method embodiments shown above.

[0120] An embodiment of the present application also provides a computer program product, which, when executed by a computer, implements the method for constructing a three-dimensional map of any of the method embodiments shown above.

[0121] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. Available media may be magnetic media (eg, floppy disks, hard disks, tapes), optical media (eg, high-density digital video discs (DVDs)), or semiconductor media (eg, solid state disks (SSDs)).

[0122] An embodiment of the present application also provides a chip system, which includes a processor for calling a computer program or computer instruction stored in a memory so that the processor executes the method of any of the above embodiments.

[0123] In a possible implementation, the processor is coupled to the memory through an interface.

[0124] In one possible implementation, the chip system further includes a memory in which computer programs or computer instructions are stored.

[0125] An embodiment of the present application further relates to a processor, which is used to call a computer program or computer instruction stored in a memory so that the processor executes the method described in any of the above embodiments.

[0126] It should be understood that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0127] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0129] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application also intends to include such modifications and variations.

Claims

1. A method for constructing a three-dimensional map, characterized in that: The method is applied to an electronic terminal, wherein the electronic terminal is provided with a red, blue, and green (RGB) camera and an event camera, and the method comprises: When the electronic terminal moves in a set scene, a video stream captured by the RGB camera is acquired, the video stream includes a plurality of image frames, and an event data stream captured by the event camera, the event data stream includes event data at a plurality of moments; Based on the event data stream collected by the event camera, image processing is performed on multiple image frames in the video stream to obtain a processed video stream; The image processing includes a deblurring process, and the deblurring process for the first image frame is performed based on event data within a set time range, the first image frame is any image frame among the multiple image frames, and the set time range includes the acquisition time of the first image frame; A three-dimensional map of the set scene is constructed based on the processed video stream.

2. The method according to claim 1, characterized in that: The deblurring process for the first image frame includes: Generate an event frame according to the event data within the set time range; the event frame includes feature points for describing objects in the set scene; Determine the position of the feature point of the object in the first image frame according to the first position of the feature point of the object in the event frame; Feature points at other positions in the first image used to describe the object are deleted according to the positions of the feature points of the object in the first image frame.

3. The method according to claim 1 or 2, characterized in that: The image processing also includes exposure compensation processing; The exposure compensation processing of the first image frame includes: Determine, according to the position of the first area in the first image frame, a second area at a corresponding position in the event frame; The first area is an image area in the first image frame with abnormal exposure status; the event frame is generated according to the event data within the set time range; Feature point compensation is performed on the first area according to feature points included in the second area and used to describe objects in the set scene.

4. The method according to any one of claims 1 to 3, characterized in that: Before performing image processing on a plurality of image frames in the video stream respectively based on the event data stream collected by the event camera, the method further includes: Determine a center point of a plurality of feature points included in the first image frame, and determine a center point of a plurality of feature points included in a second image frame; the second image frame is an image frame preceding the first image frame in the video stream; Determining an offset of a center point of the first image frame relative to a center point of the second image frame; It is determined that the offset is greater than an offset threshold.

5. The method according to any one of claims 1 to 4, characterized in that: The electronic terminal is also provided with an inertial measurement unit IMU. Before performing image processing on a plurality of image frames in the video stream respectively based on the event data stream collected by the event camera, the method further includes: Acquire the acceleration value and linear velocity value of the electronic terminal during movement collected by the IMU; It is determined that the acceleration value exceeds an acceleration threshold, and it is determined that the linear velocity value exceeds a linear velocity threshold.

6. The method according to claim 3, characterized in that Before performing exposure compensation processing on the first image frame, the method further includes: Acquire brightness of a plurality of image frames included in the video stream; Calculating an average brightness of image frames acquired before the first image frame among the multiple image frames, and determining that a difference between the brightness of the first image frame and the average brightness is greater than a first brightness threshold; or determining that a difference between the brightness of the first image frame and the brightness of the second image frame is greater than a second brightness threshold; The second image frame is an image frame preceding the first image frame in the video stream.

7. The method according to any one of claims 1 to 6, characterized in that: The step of constructing a three-dimensional map of the set scene based on the processed video stream includes: Determine at least two key frames from the multiple image frames included in the processed video stream; the time difference between the acquisition times of two adjacent key frames in the at least two key frames is greater than a time threshold, and the number of feature points included in any key frame is greater than a number threshold; The three-dimensional map is constructed using the at least two key frames.

8. A three-dimensional map construction device, characterized in that: The device is applied to an electronic terminal, or the device is the electronic terminal, the electronic terminal is provided with an RGB camera and an event camera, and the device includes: An acquisition unit, used to acquire a video stream captured by the RGB camera and an event data stream captured by the event camera during the movement of the electronic terminal in a set scene; the video stream includes a plurality of image frames, and the event data stream includes event data at a plurality of moments; A processing unit, configured to perform image processing on a plurality of image frames in the video stream respectively based on the event data stream collected by the event camera to obtain a processed video stream; wherein the image processing includes a deblurring process, and the deblurring process for a first image frame is performed based on event data within a set time range, the first image frame is any image frame of the plurality of image frames, and the set time range includes the collection time of the first image frame; The processing unit is further used to construct a three-dimensional map of the set scene based on the processed video stream.

9. The device according to claim 8, characterized in that The processing unit is specifically used for: Generate an event frame according to the event data within the set time range; the event frame includes feature points for describing objects in the set scene; Determine the position of the feature point of the object in the first image frame according to the first position of the feature point of the object in the event frame; Feature points at other positions in the first image used to describe the object are deleted according to the positions of the feature points of the object in the first image frame.

10. The device according to claim 8 or 9, characterized in that The image processing further includes exposure compensation processing; the processing unit is further used for: Determine a second area at a corresponding position in the event frame according to a position of a first area in the first image frame; the first area is an image area in the first image frame with an abnormal exposure state; and the event frame is generated according to event data within the set time range; Feature point compensation is performed on the first area according to feature points included in the second area and used to describe objects in the set scene.

11. The device according to any one of claims 8 to 10, characterized in that: Before performing image processing on a plurality of image frames in the video stream respectively based on the event data stream collected by the event camera, the processing unit is further configured to: Determine a center point of a plurality of feature points included in the first image frame, and determine a center point of a plurality of feature points included in a second image frame; the second image frame is an image frame preceding the first image frame in the video stream; Determining an offset of a center point of the first image frame relative to a center point of the second image frame; It is determined that the center point offset is greater than an offset threshold.

12. The device according to any one of claims 8 to 11, characterized in that: The electronic terminal is also provided with an IMU. Before performing image processing on a plurality of image frames in the video stream respectively based on the event data stream collected by the event camera, the acquisition unit is further used to acquire the acceleration value and the linear velocity value of the electronic terminal during movement collected by the IMU; The processing unit is further configured to determine whether the acceleration value exceeds an acceleration threshold and whether the linear velocity value exceeds a linear velocity threshold.

13. The device according to claim 10, characterized in that Before performing exposure compensation processing on the first image frame, the acquisition unit is further used to acquire brightness of multiple image frames included in the video stream; The processing unit is further configured to calculate an average brightness of image frames acquired before the first image frame among the multiple image frames, and determine that a difference between the brightness of the first image frame and the average brightness is greater than a first brightness threshold; Alternatively, determining that a difference between the brightness of the first image frame and the brightness of the second image frame is greater than a second brightness threshold; The second image frame is an image frame preceding the first image frame in the video stream.

14. The device according to any one of claims 8 to 13, characterized in that: The processing unit is specifically used for: Determine at least two key frames from the multiple image frames included in the processed video stream; the time difference between the acquisition times of two adjacent key frames in the at least two key frames is greater than a time threshold, and the number of feature points included in any key frame is greater than a number threshold; The three-dimensional map is constructed using the at least two key frames.

15. A three-dimensional map construction device, characterized in that: include: Processor and memory; The memory is used to store programs; The processor is used to execute the program stored in the memory so that the device implements the method as described in any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called by an electronic device, the electronic device executes the method according to any one of claims 1 to 7.

17. A chip system, characterized in that: Including communication interface and processor: The communication interface is used to input and / or output signaling or data; The processor is used to execute a computer executable program so that a device equipped with the chip system executes the method according to any one of claims 1 to 7.

18. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Map scene construction method and system and related device

    CN110095111A

  • Visual-inertial odometry with event camera

    CN111052183A

  • Object recognition method of autonomous driving device, and autonomous driving device

    CN112805718A

  • Image processing method and device

    WO2022141477A1

  • Optical flow estimation method and device

    WO2023061187A1

Cited By

  • Multi-modal tight coupling SLAM method based on gradient descent optimization

    CN120877054A