Robot vision perception data processing method, storage medium and program product

By splitting visual perception data processing into independent threads and adopting asynchronous parallel processing in the robot system, the problems of high latency and poor stability in robot visual perception data processing are solved, achieving efficient and stable perception data output and ensuring the robot's safe navigation and obstacle avoidance in complex environments.

CN123161006APending Publication Date: 2026-11-24BEWIS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611034636.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-13
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing robot systems, operating on resource-constrained embedded platforms, suffer from high end-to-end latency, unstable output frame rates, and significant jitter in their visual perception links, making it impossible to provide reliable input for the robot's real-time navigation and obstacle avoidance decisions.

Method used

The robot's visual perception data processing is broken down into independent threads such as camera acquisition, target detection, depth estimation, and data fusion. A highly parallel pipeline processing architecture is achieved by using an asynchronous parallel processing mechanism and a lock-free queue or circular buffer for data transfer.

Benefits of technology

It significantly reduces the end-to-end latency of the system, improves the efficiency of robot visual perception data processing, ensures the stability and reliability of perception data output, and provides a reliable guarantee for real-time path planning and safe obstacle avoidance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123161006A_ABST
    Figure CN123161006A_ABST
Patent Text Reader

Abstract

This invention relates to a robot visual perception data processing method, storage medium, and program product, belonging to the field of computer vision technology. The method is executed by a robot system. The robot system acquires image frames through a camera acquisition thread, adds an acquisition timestamp to the image frames, and writes the timestamped image frames into an image circular buffer. An object detection thread asynchronously reads image frames from the image circular buffer and performs object detection operations on the image frames to generate image detection results. A depth estimation thread asynchronously reads image frames from the image circular buffer and performs depth estimation operations on the image frames to generate depth estimation results. A fusion thread fuses the image detection results and depth estimation results to generate navigation perception data. A publishing thread encapsulates the navigation perception data and publishes the encapsulated navigation perception data to the corresponding navigation system of the robot system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer vision technology, and in particular to a method for processing robot visual perception data, a storage medium, and a program product. Background Technology

[0002] With the rapid development of artificial intelligence and robotics, mobile robots (such as service robots, unmanned delivery vehicles, and cleaning robots) are increasingly being used in commercial and home scenarios. In practical applications, it is particularly important for mobile robots to achieve safe and reliable autonomous navigation and near-field obstacle avoidance.

[0003] In existing solutions, robot systems can acquire image frames through cameras and process robot visual perception data using serial or tightly coupled multi-threaded processes. This results in blocking and timing mismatches between detection, depth estimation, and fusion steps, and fails to fully utilize the parallel computing capabilities of embedded hardware.

[0004] However, on resource-constrained embedded platforms, the end-to-end latency of the visual perception link is high, the output frame rate is unstable and jitter is large, which cannot provide reliable input for the robot's real-time navigation and obstacle avoidance decisions. Summary of the Invention

[0005] This invention provides a method, apparatus, computer equipment, storage medium, and program product for processing robot visual perception data, which can improve the efficiency of robot visual perception data processing. The technical solution is as follows: On one hand, a method for processing robot visual perception data is provided. This method is executed by a robot system, which includes a camera acquisition thread, an object detection thread, a fusion thread, a depth estimation thread, and a publishing thread. The method includes: Image frames are acquired through the camera acquisition thread, and an acquisition timestamp is attached to the image frames. The image frames with the acquisition timestamp are then written into the image circular buffer. The target detection thread asynchronously reads the image frame from the image circular buffer and performs target detection operation on the image frame to generate an image detection result containing the detection box and the corresponding acquisition timestamp of the image frame; The depth estimation thread asynchronously reads the image frame from the image circular buffer and performs a depth estimation operation on the image frame to generate a depth estimation result containing a depth map and the corresponding acquisition timestamp of the image frame; The fusion thread, based on the timestamp matching principle, fuses the image detection results and the depth estimation results to generate navigation perception data, which is the perception information used by the robot system for path planning and obstacle avoidance. The navigation perception data is encapsulated through the publishing thread, and the encapsulated navigation perception data is published to the navigation system corresponding to the robot system.

[0006] On the other hand, a robot visual perception data processing device is provided, the device comprising: The camera acquisition module is used to acquire image frames through the camera acquisition thread, attach an acquisition timestamp to the image frame, and write the image frame with the acquisition timestamp into the image circular buffer. The target detection module is used to asynchronously read the image frame from the image circular buffer through the target detection thread, and perform target detection operation on the image frame to generate an image detection result containing the detection box and the corresponding acquisition timestamp of the image frame; The depth estimation module is used to asynchronously read the image frame from the image circular buffer through the depth estimation thread, and perform a depth estimation operation on the image frame to generate a depth estimation result containing a depth map and the acquisition timestamp of the image frame; The perception data generation module is used to fuse the image detection results and the depth estimation results based on the timestamp matching principle through the fusion thread to generate navigation perception data. The navigation perception data is the perception information used by the robot system for path planning and obstacle avoidance. The data publishing module is used to encapsulate the navigation perception data through the publishing thread and publish the encapsulated navigation perception data to the navigation system corresponding to the robot system.

[0007] In another aspect, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, code set, or instruction set is stored therein, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the robot visual perception data processing method described above.

[0008] In another aspect, a computer program product is provided, comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the robot visual perception data processing method provided in the various optional implementations described above.

[0009] The technical solution provided by this invention may include the following beneficial effects: Because each thread in the robot system of this solution executes its loop independently and does not directly call downstream logic, the target detection thread and the depth estimation thread can simultaneously process image frames with different timestamps asynchronously. This avoids the problem of the entire process being blocked due to the processing delay of a certain module in the traditional serial architecture. As a result, the overall processing efficiency of the robot system is no longer limited by the slowest link. The above-mentioned asynchronous parallel mechanism effectively smooths the fluctuations in data processing and ensures the stability of the perception data output. By separating the high-load AI inference tasks (target detection and depth estimation) into different threads and cooperating with efficient resource scheduling, it avoids the NPU being continuously occupied by high load in a short period of time, which would lead to overheating and frequency reduction. This fundamentally reduces the frame drop phenomenon caused by hardware performance throttling, ensuring that the robot can continuously and stably acquire high-quality perception data in complex dynamic environments, and providing a reliable guarantee for real-time path planning and safe obstacle avoidance. In summary, the above solution achieves a highly parallel pipelined processing architecture by splitting core functional modules such as image acquisition, object detection, depth estimation, data fusion, and result publishing into independently running threads and using lock-free queues or circular buffers for data transfer. This significantly reduces the end-to-end latency of the system and improves the efficiency of robot visual perception data processing.

[0010] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0011] The accompanying drawings, which are incorporated in and form part of this specification, illustrate the invention and, together with the description, serve to explain the principles of the invention.

[0012] Figure 1 This is a structural diagram of a robot visual perception data processing system related to the present invention; Figure 2 This is a flowchart of a robot visual perception data processing method provided by the present invention; Figure 3 This is a flowchart of a robot visual perception data processing method provided by the present invention; Figure 4 This is a flowchart of a robot visual perception data processing method provided by the present invention; Figure 5 This is a timing diagram for asynchronous pipelined processing provided by the present invention; Figure 6 This is a block diagram of a robot visual perception data processing device provided by the present invention. Detailed Implementation

[0013] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0014] This invention proposes a robot visual perception data processing scheme. By decoupling and coordinating the target detection and depth estimation processes, it achieves efficient generation and fusion of perception data, thereby significantly improving the efficiency of robot visual perception data processing. For ease of understanding, some concepts involved in this invention are explained below.

[0015] 1) Artificial Intelligence (AI) is the theory, methods, technology, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI studies the design principles and implementation methods of various intelligent machines, enabling them to possess the functions of perception, reasoning, and decision-making.

[0016] Artificial intelligence (AI) is a comprehensive discipline encompassing a wide range of fields, including both hardware and software technologies. Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, pre-trained model technology, operating / interactive systems, and mechatronics. Among these, pre-trained models, also known as large-scale models or foundational models, can be widely applied to downstream tasks across various AI fields after fine-tuning. AI software technologies primarily include computer vision, speech processing, natural language processing, and machine learning / deep learning.

[0017] 2) The Neural Processing Unit (NPU) is a hardware accelerator dedicated to deep neural network computing, capable of performing parallel matrix operations and convolution calculations.

[0018] 3) Object Detection Network (You Only Look Once, YOLO) is an end-to-end object detection algorithm that can output object category and location box information simultaneously in a single forward propagation.

[0019] 4) Depth Estimation Network (FastDepth) is a lightweight monocular depth prediction network based on MobileNetV2, used to estimate scene depth from a single image.

[0020] 5) A monocular camera is an imaging device with only a single lens. It can capture two-dimensional images, but requires an algorithm to estimate depth information.

[0021] 6) A stereo camera has two lenses and obtains depth information through parallax calculation.

[0022] 7) Virtual Laser Scan: Simulated laser scan data generated from images or depth maps, in the same format as the LiDAR / scan topic, used for navigation.

[0023] Figure 1 This is a structural diagram of a robot visual perception data processing system related to this invention. Figure 1 As shown, the robot system 100 includes a camera acquisition thread 10, an object detection thread 11, a fusion thread 12, a depth estimation thread 13, and a publishing thread 14. The robot system 100 acquires image frames 15 through the camera acquisition thread 10, adds an acquisition timestamp to the image frames 15, and writes the image frames 15 with acquisition timestamps into an image circular buffer. The object detection thread 11 asynchronously reads image frames 15 from the image circular buffer and performs object detection operations on the image frames 15 to generate an image detection result containing detection boxes and the corresponding acquisition timestamp of image frames 15. The depth estimation thread 13 asynchronously reads image frames 15 from the image circular buffer and performs depth estimation operations on the image frames 15 to generate a depth estimation result containing a depth map and the corresponding acquisition timestamp of image frames 15. The fusion thread 12 fuses the image detection result and the depth estimation result based on timestamp matching principles to generate navigation perception data, which is the perception information used by the robot system for path planning and obstacle avoidance. The publishing thread 14 encapsulates the navigation perception data and publishes the encapsulated navigation perception data to the navigation system corresponding to the robot system.

[0024] The aforementioned robot system is a software system that controls the activities of the robot. In this embodiment, the robot includes, but is not limited to, service robots, warehousing and logistics robots, inspection robots, or autonomous vehicles.

[0025] The camera acquisition thread is a module in the robot system responsible for acquiring real-time environmental visual data. Its main function is to capture image frames from the camera device on the robot and attach timestamp information to the image frames to ensure timing synchronization in subsequent processing. The image frames can be images of the robot's environment.

[0026] The aforementioned object detection thread is a processing module in the robot system responsible for asynchronously reading image frames from the buffer, identifying key objects in the image (such as obstacles, pedestrians, landmarks, etc.) through object detection algorithms, and generating image detection results containing detection boxes and corresponding timestamps.

[0027] The aforementioned depth estimation thread is a processing module in the robot system responsible for asynchronously reading image frames from the buffer, calculating the distance from pixels in the image to the camera using depth perception technology, and generating depth estimation results containing depth maps and timestamps.

[0028] The aforementioned fusion thread is a processing module in the robot system that uses a timestamp matching mechanism to perform spatiotemporal alignment and data fusion of image detection results and depth estimation results, generating navigation perception data that can be used for path planning and obstacle avoidance.

[0029] The aforementioned publishing thread is a communication module in the robot system responsible for encapsulating and publishing the fused navigation perception data, enabling the encapsulated and published navigation perception data to be subscribed to and used by the robot navigation system in real time.

[0030] For example, please refer to Figure 2 , Figure 2 This is a flowchart of a robot visual perception data processing method according to an embodiment of the present invention. The robot visual perception data processing method can be executed by a robot system, for example, the robot system described above... Figure 1 The robot system 100 shown.

[0031] In this embodiment, the robot system includes a camera acquisition thread, a target detection thread, a fusion thread, a depth estimation thread, and a publishing thread.

[0032] In this embodiment, the camera acquisition thread, target detection thread, fusion thread, depth estimation thread, and publishing thread are set to execute in independent loops, only handling the tasks of their current stage and not directly calling downstream processing logic. Data is transferred between the threads using a lock-free queue.

[0033] The above-mentioned robot visual perception data processing method may include the following steps: Step 210: Acquire image frames through the camera acquisition thread, attach an acquisition timestamp to the image frames, and write the image frames with acquisition timestamps into the image circular buffer.

[0034] The aforementioned image frames refer to image frames acquired by the robot system from camera devices installed on the robot via the camera acquisition thread.

[0035] Specifically, the camera acquisition thread can capture optical signals in the environment of the robot controlled by the robot system through camera hardware interfaces (such as USB3.0, GigE or CSI-2), and convert the captured optical signals into digital image signals to form image frames.

[0036] In some embodiments, the robot system can acquire image frames at a specified frequency through a camera acquisition thread, such as acquiring 2 frames per minute. In other embodiments, the robot system continuously acquires image frames through a camera acquisition thread, such as acquiring 1 frame per second.

[0037] In this embodiment, the robot system adds a high-precision acquisition timestamp to each frame of image, which is usually generated by the system clock or hardware synchronization clock, accurate to the millisecond or even microsecond level.

[0038] The aforementioned image circular buffer is a buffer that uses a first-in, first-out (FIFO) circular queue mechanism.

[0039] Step 220: Asynchronously read image frames from the image circular buffer through the object detection thread, and perform object detection operations on the image frames to generate image detection results containing detection boxes and the corresponding acquisition timestamps of the image frames.

[0040] The aforementioned target detection thread reads the latest image frame from the image circular buffer asynchronously, meaning it does not block the main process and runs independently on a separate CPU (Central Processing Unit) core.

[0041] Specifically, the object detection model can call the RKNN (Rockchip Neural Network) inference interface to read the latest image frame from the image circular buffer and perform object detection on the RK3588's NPU.

[0042] In some embodiments, the target detection thread can be a YOLO detection thread, in which a YOLO detection model runs.

[0043] In this embodiment, after the robot system reads the image frame through the target detection thread, it can call a pre-trained deep learning model, such as YOLO, SSD (Single Shot MultiBox Detector), or Faster R-CNN (Faster Region-based Convolutional Neural Network), to perform forward inference on the read image frame, analyze the content of the image frame, identify the predefined categories of targets in the image frame (such as pedestrians, vehicles, obstacles, etc.), and output the position information of each target—that is, the detection box, which is usually represented by the coordinates of the upper left corner, width, and height.

[0044] Meanwhile, the robot system retains the acquisition timestamp attached to the image frame and encapsulates the acquisition timestamp along with information such as the detection box, category label, and confidence score to form a structured image detection result.

[0045] Step 230: Asynchronously read image frames from the image circular buffer through the depth estimation thread, and perform depth estimation operations on the image frames to generate depth estimation results containing depth maps and the corresponding acquisition timestamps of the image frames.

[0046] The aforementioned depth estimation thread can read image frames from the image circular buffer in a non-blocking manner, running independently of the object detection thread, thus achieving parallel processing.

[0047] In some embodiments, the aforementioned depth estimation thread may be a FastDepth depth estimation thread, in which the FastDepth fast monocular depth estimation algorithm runs.

[0048] In some embodiments, the depth estimation thread may employ different technical approaches depending on the type of sensor used.

[0049] Optionally, the robotic system uses a binocular camera, and the depth estimation thread calculates the disparity between the left and right images using a stereo matching algorithm and converts it into a depth value.

[0050] Optionally, the robotic system uses a monocular camera, and the depth estimation thread can perform monocular depth prediction via a deep neural network.

[0051] Optionally, the robot system uses an RGB-D (Red, Green, Blue-Depth, color-depth camera) camera, and the depth estimation thread directly decodes the infrared projection information to obtain a depth map.

[0052] In this embodiment, the aforementioned depth map is a matrix with the same resolution as the image frames asynchronously read from the image circular buffer by the depth estimation thread. Each pixel value in the depth map represents the physical distance (usually in meters) from that point to the camera. In this embodiment, the robot system binds the depth map to the timestamps of the image frames asynchronously read from the image circular buffer by the depth estimation thread, encapsulating it into a depth estimation result.

[0053] Step 240: Based on the timestamp matching principle, the image detection results and depth estimation results are fused by the fusion thread to generate navigation perception data. The navigation perception data is the perception information used by the robot system for path planning and obstacle avoidance.

[0054] In this embodiment, the aforementioned fusion thread continuously monitors the output queues of image detection results and depth estimation results, and performs fusion processing on the image detection results and depth estimation results according to the timestamp matching principle to generate navigation perception data.

[0055] The aforementioned navigation perception data includes, but is not limited to, location data, distance data, and route planning data.

[0056] Position data can be the orientation of the robot currently controlled by the robotic system relative to the corresponding object in the image frame. For example, the robot currently controlled by the robotic system may be located behind an obstacle in the image frame.

[0057] Distance data can be the distance between the robot currently controlled by the robotic system and the corresponding object in the image frame. This distance can be a straight-line distance (i.e., Euclidean distance), a projected distance along the ground, or a path-based travel distance. For example, the robot currently controlled by the robotic system might be located 5 meters in front of an obstacle in the image frame. Accurate distance data allows the robot to determine whether a collision is imminent and how far to maintain a safe distance.

[0058] Route planning data, based on the aforementioned location data and distances, can also generate preliminary path suggestions or traversable area analyses. For example, based on the positions and distances of multiple detected obstacles, a collision-free path from the robot's current location to the target area can be calculated, or traversable free space in the image frame can be marked. This data directly serves the decision-making of the upper-level navigation system, guiding the robot's movement.

[0059] Step 250: Encapsulate the navigation perception data by publishing a thread, and publish the encapsulated navigation perception data to the navigation system corresponding to the robot system.

[0060] In this embodiment, the aforementioned publishing thread can encapsulate the raw navigation perception data output by the fusion thread, transforming the navigation perception data into a data format recognizable by the navigation system, such as a custom message type in ROS (Robot Operating System) (e.g., NavigationData.msg), a JSON structure, or a Protocol Buffers serialized object, ensuring clear field definitions and strong compatibility.

[0061] In this embodiment, the encapsulated content includes, but is not limited to, key data such as timestamps, target lists, coordinate information, and confidence levels. The publishing thread can publish the encapsulated navigation-aware data through efficient communication mechanisms, such as ROS Topics, MQTT (Message Queuing Telemetry Transport) topics, TCP (Transmission Control Protocol) sockets, or shared memory, for the navigation system to subscribe to and process in real time. In some embodiments, the publishing thread can execute cyclically at a fixed frequency (e.g., 10Hz or 30Hz) to ensure data stream continuity and low latency.

[0062] In this embodiment, since each thread in the robot system executes its loop independently and does not directly call downstream logic, the target detection thread and the depth estimation thread can simultaneously process image frames with different timestamps asynchronously. This avoids the problem of the entire process being blocked due to the processing delay of a certain module in the traditional serial architecture. As a result, the overall processing efficiency of the robot system is no longer limited by the slowest link. The above-mentioned asynchronous parallel mechanism effectively smooths the fluctuations in data processing and ensures the stability of the perception data output. By separating the high-load AI inference tasks (target detection and depth estimation) into different threads and cooperating with efficient resource scheduling, the overheating and frequency reduction caused by the continuous high load of the NPU in a short period of time are avoided. This fundamentally reduces the frame drop phenomenon caused by hardware performance throttling, ensuring that the robot can continuously and stably acquire high-quality perception data in complex dynamic environments, providing a reliable guarantee for real-time path planning and safe obstacle avoidance. In summary, the above solution achieves a highly parallel pipelined processing architecture by splitting core functional modules such as image acquisition, object detection, depth estimation, data fusion, and result publishing into independently running threads and using lock-free queues or circular buffers for data transfer. This significantly reduces the end-to-end latency of the system and improves the efficiency of robot visual perception data processing.

[0063] based on Figure 2 For any one or more embodiments, please refer to Figure 3 , Figure 3This is a flowchart of a robot visual perception data processing method provided in one embodiment of the present invention.

[0064] Please refer to Figure 3 Following step 220 above, the method further includes step 225: Step 225: Write the image detection results into the detection result circular buffer through the object detection thread.

[0065] The image detection results mentioned above refer to the structured data generated by the target detection thread after completing deep learning inference on the original image frames. The content of the image detection results includes not only the coordinates of the detection box (e.g., the top left corner x, y and width w, height h), the target category label (e.g., pedestrian, obstacle), and the confidence score, but also the acquisition timestamp corresponding to the image frame to ensure the temporal traceability of the data.

[0066] In this embodiment, the robot system can write the encapsulated image detection results into the detection result circular buffer through the target detection thread. Specifically, each time the target detection thread obtains an image detection result, it creates a record in the detection result circular buffer and writes the image detection result into this record.

[0067] The aforementioned circular buffer for detection results employs a first-in, first-out (FIFO) circular queue mechanism, operating within the robot system's shared memory to efficiently manage limited storage space. When the circular buffer is full, the robot system automatically overwrites the oldest data frame within it, preventing memory overflow and supporting high-frequency data writing and reading.

[0068] In this embodiment, through this design, the target detection thread can immediately return to execute the next round of detection tasks without waiting for the processing status of the subsequent fusion thread, thus decoupling processing and transmission and significantly improving the real-time performance and stability of the system.

[0069] Following step 230 above, the method further includes step 235: Step 235: Write the depth estimation results to the depth result circular buffer through the depth estimation thread.

[0070] The aforementioned depth estimation result refers to the two-dimensional depth map matrix generated by the depth estimation thread after performing depth prediction or stereo matching algorithms on the image frame. Each pixel value in the two-dimensional depth map matrix corresponds to the physical distance (usually in meters) from that point to the camera in the scene. At the same time, the result is also bound to the acquisition timestamp of the original image frame to maintain time consistency.

[0071] In this embodiment, the robot system can write structured data into the depth result circular buffer through the depth estimation thread. Specifically, each time the depth estimation thread obtains a depth estimation result, it creates a record in the depth estimation circular buffer and writes the depth estimation result into this record. The depth result circular buffer is similar to the detection result circular buffer, and it also adopts a circular queue structure with a FIFO mechanism, which can support multi-threaded concurrent access in a low-latency and lock-free manner.

[0072] Prior to step 240 above, the method also includes step 237: Step 237: Read the image detection results from the detection result circular buffer and the depth estimation results from the depth result circular buffer via the fusion thread.

[0073] In this embodiment, the fusion thread continuously listens to and accesses the detection result circular buffer and the depth result circular buffer in a non-blocking manner, and reads the latest written image detection result and depth estimation result, respectively.

[0074] In this embodiment, by introducing a circular buffer for detection results and a circular buffer for depth results, the target detection thread and the depth estimation thread can run independently without waiting for the processing status of the fusion thread. This achieves complete decoupling of computation and data transfer. This non-blocking asynchronous architecture allows detection and estimation tasks to be executed in parallel, significantly improving system throughput. Simultaneously, the FIFO mechanism of the circular queue combined with timestamp binding not only effectively avoids memory overflow but also ensures the temporal consistency of multimodal data. This significantly reduces the end-to-end latency of the system and improves the efficiency of robot visual perception data processing.

[0075] Based on any one or more of the above embodiments, in some embodiments, step 240 can be implemented as follows: using the acquisition timestamp of the image detection result obtained from the detection result circular buffer as the reference timestamp through the fusion thread; using the fusion thread to search for the depth estimation result with the smallest difference between the acquisition timestamp and the reference timestamp in the depth result circular buffer within a preset time window, and using it as the matching result; using the fusion thread to generate navigation perception data based on the matching result.

[0076] In this embodiment, after the fusion thread successfully reads an image detection result from the circular buffer of detection results, it extracts the acquisition timestamp encapsulated in the image detection result and uses the acquisition timestamp encapsulated in the image detection result as the reference timestamp for subsequent matching operations.

[0077] In this embodiment, the fusion thread sets a preset time window (e.g., ±50 milliseconds) centered on the reference timestamp, and within this time range, it traverses the depth estimation results cached in the circular buffer of depth results, calculates the time difference between the acquisition timestamp of each depth result and the reference timestamp, filters out the depth estimation result with the smallest time difference within the time window range, and marks the depth estimation result as the matching result.

[0078] In this embodiment, after obtaining a pair of spatiotemporally aligned image detection results and depth estimation results through the fusion thread, the robot system can perform pixel-level alignment between the pixel region within the detection box and the corresponding depth map, extract the distance distribution of the target object in the depth map, and combine camera intrinsic and extrinsic parameters to convert the two-dimensional pixel coordinates into three-dimensional spatial coordinates, thereby calculating the actual distance, azimuth, and spatial position of the target object relative to the robot. Based on this information, navigation perception data containing position data, distance data, and navigable area analysis is further generated.

[0079] In this embodiment, object detection and depth estimation are executed in parallel on independent threads, and the results are asynchronously written to their respective circular buffers, avoiding blocking and waiting caused by direct dependencies between threads. The fusion thread reads data from the buffer in a non-blocking manner and performs precise matching based on timestamps, realizing pipelined data processing. This architecture allows each module to operate efficiently at its optimal pace without synchronous waiting, significantly improving overall throughput and real-time performance. This effectively reduces the end-to-end latency from image acquisition to the generation of navigation perception data. The decoupling design of multi-threaded parallel processing and circular buffers significantly reduces the end-to-end latency of the system, thereby improving the efficiency of robot visual perception data processing.

[0080] Based on any one or more of the above embodiments, after step 240b, the computer system can obtain the verification information corresponding to the matching result through the fusion thread. The verification information includes at least one of the following: the proportion of invalid hole regions in the depth map corresponding to the depth estimation result, the proportion of effective pixels in the depth map of the detection box in the image detection result, and the time difference between the timestamp of the matching result and the reference timestamp. The fusion thread performs a confidence verification operation on the matching result based on the verification information.

[0081] The aforementioned proportion of invalid hole regions refers to the proportion of invalid pixels in the depth map that lack depth values ​​due to physical limitations (such as specular reflection or weak texture).

[0082] The aforementioned effective pixel ratio refers to the ratio of the number of pixels containing effective depth values ​​within the detection box after it is projected onto the depth map plane to the total area of ​​the detection box.

[0083] The time difference between the timestamp of the matching result and the reference timestamp refers to the absolute difference between the depth map timestamp of the matching result and the timestamp of the image detection result used as the reference.

[0084] In this embodiment, after the computer system obtains the above data, it performs a confidence check operation, that is, it performs a logical judgment on each piece of information against a preset threshold.

[0085] In some embodiments, the computer system may have a built-in verification logic unit that processes the verification tasks of the three dimensions in parallel.

[0086] In some embodiments, step 240c above can be implemented as: generating navigation-aware data by a fusion thread based on the matching result obtained through a confidence check operation.

[0087] In this embodiment, the robot system no longer processes the unfiltered raw matching results, but instead generates navigation perception data specifically for those high-confidence matching results that have passed the confidence check operation after step 240b.

[0088] Specifically, the fusion thread locks the verified image detection results and depth estimation results, performing pixel-level spatial alignment. For example, the fusion thread can use the camera's intrinsic and extrinsic parameter matrices to convert the two-dimensional pixel coordinates within the image detection box into point cloud data in three-dimensional space through back projection. Combined with the distance information provided by the depth map, it calculates the precise physical distance, azimuth, and three-dimensional spatial position of the detected target (e.g., pedestrian, obstacle) relative to the robot. Finally, the robot system integrates this structured spatial information to generate navigation perception data that includes target position data, distance data, and traversable area analysis.

[0089] In this embodiment, the above scheme ensures the accuracy of navigation perception data by limiting the calculation to data that has passed the confidence check. This step improves the accuracy of the output navigation commands, making them based on real and reliable environmental information, and greatly enhancing the effect of robot visual perception data processing.

[0090] based on Figure 3 In any one or more of the corresponding embodiments, in some embodiments, before generating navigation perception data based on the matching results through the fusion thread, the method further includes: performing a downgrade processing operation on the matching results through the fusion thread when the proportion of invalid hole regions in the depth map corresponding to the depth estimation result is greater than the proportion threshold, the proportion of effective pixels in the depth map of the detection box in the image detection result is less than the proportion threshold, or the time difference between the timestamp and the reference timestamp is greater than the time difference threshold. The downgrade operation includes replacing the current matching result with the data successfully fused in the previous cycle, or performing conservative filtering processing on the depth values ​​in the matching results.

[0091] In this embodiment, if the proportion of invalid void regions exceeds a preset proportion threshold (e.g., 30%), it indicates that the overall reliability of the depth map is low.

[0092] The effective pixel percentage of the detection box in the depth map refers to the proportion of the number of effective depth value pixels contained within the detection box after the image detection result is projected onto the depth map, relative to the total area of ​​the detection box.

[0093] In this embodiment, if the percentage threshold is too low (e.g., below 10%), it indicates that there is a lack of sufficient distance information within the target area.

[0094] The time difference between the aforementioned timestamp and the baseline timestamp refers to the absolute difference between the acquisition timestamp of the matched depth estimation result and the baseline timestamp (i.e., the timestamp of the image detection result).

[0095] In this embodiment, when any of the above conditions are met, the fusion thread determines that the current matching result is unreliable and immediately performs a downgrade process. The specific downgrade strategy includes two modes: First, data inheritance means discarding unreliable matching results and directly reusing navigation perception data that has been successfully fused and verified in the previous cycle to maintain the continuity of system output.

[0096] Second, conservative filtering involves special processing of the depth values ​​in the matching results. For example, invalid void areas are filled with a larger safe distance value (e.g., 10 meters), and the effective depth values ​​are filtered by mean or median to ensure that the output depth information is physically safe (i.e., tends to judge obstacles as farther or larger), thereby avoiding collisions caused by misjudging distances.

[0097] In some embodiments, the computer system may have a built-in verification logic unit that processes the verification tasks of the three dimensions in parallel.

[0098] If the proportion of invalid void regions exceeds a preset threshold (e.g., 30%), the overall quality of the depth map is deemed unqualified. If the proportion of valid pixels in the detection bounding boxes in the depth map is less than a preset threshold (e.g., 10%), the target lacks sufficient distance support data. If the time difference between the timestamp and the baseline timestamp exceeds a preset time difference threshold (e.g., 100 milliseconds), the data is deemed spatiotemporally out of sync. Only when all verification items pass (i.e., all verification information is within the threshold range) is the matching result considered high-confidence valid data and allowed to proceed to the next step of the data fusion process.

[0099] In this embodiment, the aforementioned data inheritance and reuse of historical valid data or conservative filtering can quickly repair abnormal data. The system can skip low-confidence fusion operations without interrupting the process, reducing retries or navigation anomalies caused by data errors and lowering overall processing latency. This strategy effectively shields the system stability from the impact of noise and abnormal inputs, making the perception process more efficient and reliable, improving the robot's real-time response capability in complex environments. Combined with the introduction of pre-emptive quality verification and degradation processing mechanisms, it significantly improves the efficiency of robot visual perception data processing.

[0100] Based on any one or more of the above embodiments, in some embodiments, the target detection thread and the depth estimation thread are scheduled to be executed in parallel on different computing cores of the neural network processing unit of the robot system.

[0101] The aforementioned neural network processing unit refers to a module on the robot system motherboard specifically designed to efficiently accelerate deep learning tensor operations. Compared to general-purpose CPUs or GPUs, neural network processing units have higher energy efficiency and computational throughput when performing matrix multiplication and convolution operations.

[0102] The aforementioned different computing cores refer to physically independent processing units within the NPU. Each core has an independent computing engine, local cache, and instruction queue, enabling it to execute different computing tasks simultaneously without interfering with each other.

[0103] In this embodiment, a neural network processing unit may have multiple computing cores, each of which is used to process different computing tasks.

[0104] In this embodiment, during the initialization phase, the robot system can identify the hardware topology of the NPU through the underlying driver or runtime scheduler, and bind the target detection thread where the target detection model is located and the depth estimation thread where the depth estimation model is located to different computing cores of the NPU according to the computational graph resource requirements of the target detection model and the depth estimation model.

[0105] For example, the computer system schedules the object detection thread to NPU Core 0 and the depth estimation thread to NPU Core 1. During runtime, the object detection thread and the depth estimation thread each exclusively utilize the computing core resources allocated to their respective threads. Whenever a new image frame is output, the robot system can distribute the image data simultaneously to both the object detection and depth estimation threads using zero-copy or shared memory techniques. The object detection thread independently performs detection inference on Core 0, generating detection boxes and category labels corresponding to the image frame; the depth estimation thread performs depth prediction in parallel on Core 1, generating a depth map corresponding to the image frame.

[0106] In this embodiment, since the computation processes of the two threads are completely mutually exclusive and lock-free, there is no queuing or context switching overhead caused by shared computing resources. This achieves full-process parallelization from data input and model inference to result output, significantly improving the utilization rate of the NPU, enabling more image frames to be processed per unit time, greatly reducing the end-to-end latency of visual perception, and thus improving the overall efficiency of robot visual perception data processing.

[0107] Based on any one or more of the above embodiments, please refer to Figure 4 , Figure 4 This is a flowchart of a robot visual perception data processing method according to an embodiment of the present invention. The method further includes steps 260a and 260b: Step 260a: Delete depth estimation results from the depth result circular buffer whose write duration exceeds the first duration threshold using the depth estimation thread.

[0108] The circular nature of the aforementioned deep result circular buffer means that when the buffer is full, new data writes will overwrite the oldest data.

[0109] The above-mentioned write duration refers to the difference between the current system time and the timestamp when the depth estimation result is written to the cache. The write duration reflects the duration of the written data in the cache.

[0110] The aforementioned first duration threshold is a preset duration, which represents the maximum duration during which the depth estimation result is allowed to be written to the depth result circular buffer.

[0111] In some embodiments, the robot system calculates the write duration of each depth estimation result in the depth result circular cache by periodically or triggeringly traversing the cache head (i.e., the oldest data end).

[0112] In specific technical implementations, in some embodiments, the robot system can maintain a background cleanup thread or embed cleanup logic in the main loop. Once it is detected that the write time of a depth estimation result in the depth result circular cache exceeds a first time threshold, it is determined that the depth estimation result has expired, that is, the depth estimation result no longer reflects the real-time state of the current environment (for example, due to robot movement, the depth map from a few hundred milliseconds ago can no longer accurately describe the obstacle distribution at the current location). At this time, the system will delete the depth estimation result from the depth result circular cache, physically release the memory space occupied by the depth estimation result, and adjust the read and write pointers of the circular cache to ensure that subsequent read operations will not retrieve this stale data.

[0113] Step 260b: Delete target detection results whose write duration exceeds the second duration threshold from the detection result circular buffer using the depth estimation thread.

[0114] The aforementioned second duration threshold is a preset duration, which represents the maximum duration during which the target detection result is allowed to be written into the detection result circular buffer.

[0115] In some embodiments, the second duration threshold and the first duration threshold can be dynamically adjusted according to the frequency of target detection and the robot's movement speed.

[0116] In some embodiments, the robot system can independently monitor the status of the detection result circular buffer and calculate the residence time of the target detection result in the detection result circular buffer by comparing the current system time with the detection result write timestamp. When it is determined that the write duration of the target detection result in the detection result circular buffer exceeds a second duration threshold, a deletion mechanism is triggered to remove the target detection result from the detection result circular buffer and update the metadata of the detection result circular buffer.

[0117] In this embodiment, the robot system effectively prevents the cache from being occupied by expired depth estimation results and target detection results by periodically deleting outdated data whose writing time exceeds the first or second time threshold. Since the robot is in a dynamic environment, outdated perception data can no longer accurately reflect the current obstacle distribution or target position. Cleaning up the expired data in the cache can ensure that the matching algorithm always operates based on the latest environmental information. This not only improves the turnover rate of memory resources, but also fundamentally guarantees the real-time performance and reliability of the final generated navigation perception data, thereby optimizing the response speed and operating efficiency of the entire visual perception system.

[0118] Based on any one or more of the above embodiments, in some embodiments, the fusion thread and the publishing thread run at a fixed periodic frequency.

[0119] The aforementioned fixed cycle frequency refers to the fact that the fusion thread and the publishing thread regularly trigger and execute a complete task cycle at a preset, constant time interval (e.g., every 100 milliseconds or every 50 milliseconds).

[0120] In some embodiments, the robot system can implement this mechanism using a real-time operating system or a high-performance scheduling library. Specifically, during the initialization phase, the robot system creates high-precision periodic timers for the fusion thread and the publishing thread, respectively, and binds the callback functions of the periodic timers to the main execution logic of the threads. For example, the system sets the period of the fusion thread to T1 and the period of the publishing thread to T2 (T2 is usually greater than or equal to T1). When the system starts, the timers begin counting. Every time T1 elapses, the scheduler of the operating system kernel triggers an interrupt, waking up the fusion thread and causing it to transition from a blocked state to a running state to perform a data fusion operation. Similarly, every T2 elapses, the publishing thread is woken up and performs a data broadcast. In this embodiment, the fusion thread and the publishing thread run regularly at preset constant time intervals (e.g., every 50 milliseconds), giving the entire data processing flow a deterministic "rhythm." The system triggers interrupts through a high-precision periodic timer to precisely wake up threads, avoiding frequent context switching and scheduling jitter caused by uneven data arrival in traditional event-driven models. This mechanism ensures predictable allocation of computing resources, reduces thread idling or blocking time, thereby lowering the average CPU load and significantly improving the efficiency and system stability of robot visual perception data processing.

[0121] For example, based on Figures 2 to 4 For any one or more embodiments, the present invention proposes an asynchronous pipelined + NPU-priority scheduling real-time perception framework.

[0122] In this application embodiment, a camera acquisition thread is set (corresponding to...) Figures 1 to 4 The camera acquisition thread and YOLO detection thread in the embodiment (corresponding to) Figures 1 to 4 The example includes the target detection thread and the FastDepth depth estimation thread (corresponding to...). Figures 1 to 4 The depth estimation thread and fusion thread in the embodiment (corresponding to) Figures 1 to 4 The fusion thread in the embodiment), and the / scan thread (corresponding to Figures 1 to 4 (Publish thread in the example).

[0123] In this application embodiment, the aforementioned real-time perception framework splits the entire perception and planning front-end link into multiple functionally independent threads, and implements asynchronous pipelined processing through a circular buffer and timestamp synchronization mechanism. This aims to reduce end-to-end latency, decrease frame rate jitter, and improve the real-time performance and stability of the / scan thread output.

[0124] The specific implementation is as follows: First, the camera acquisition thread acts as the producer, specifically responsible for continuously reading image frames from the USB or CSI camera driver. The camera acquisition thread appends a unique timestamp to each frame and then writes it to a pre-allocated memory-based circular image buffer queue (corresponding to...). Figures 1 to 4 (Image circular buffer in the embodiment). The image circular buffer queue adopts an overwrite strategy. When the write pointer catches up with the read pointer, the oldest unconsumed data frame is discarded first to avoid buffer accumulation and memory jitter.

[0125] Secondly, the YOLO detection thread and the FastDepth depth estimation thread, acting as parallel consumers, asynchronously read the latest color image frames from the image circular buffer queue. The YOLO detection thread and the FastDepth depth estimation thread do not need to process the same buffer slot; instead, they run independently according to the "most recently available frame" strategy. The YOLO detection thread calls the RKNN inference interface to perform object detection on the RK3588 NPU, obtaining the bounding box, category, and confidence score. The FastDepth depth estimation thread performs deep network inference and outputs a depth map. It is important to note that the output records of the YOLO detection thread and the FastDepth depth estimation thread (containing the detection result / depth map, source frame_id, and timestamp corresponding to the inference result, respectively) are written, along with their respective timestamps, to independent detection result caches (corresponding to the detection result circular cache in the above embodiment) and depth result caches (corresponding to the depth result circular cache in the above embodiment). To maximize parallel efficiency, the YOLO detection thread and the FastDepth depth estimation thread can be scheduled to execute on different NPU cores.

[0126] Then, the fusion thread, acting as the core consumer, reads data from both the detection result cache and the depth result cache. Using the timestamp of the detection result as a reference, this thread searches for and matches the depth frame with the smallest absolute time difference within a preset time window (e.g., ±Δt), achieving time alignment. After a successful match, the fusion thread statistically analyzes the depth values ​​within the detection box region (e.g., calculating the median or quantile), and combines this with camera intrinsic and extrinsic parameters to perform 3D backprojection and coordinate transformation, ultimately generating obstacle point clouds or virtual laser scan data. To prevent temporal mismatches, the fusion thread also performs confidence checks, such as checking the proportion of holes or effective pixels in the depth map, automatically discarding low-confidence matching results.

[0127] Finally, the / scan publishing thread is responsible for encapsulating the point cloud or distance array output by the fusion thread, generating a standard LaserScan message, and publishing it to / scan via the ROS2 topic for use by the subsequent Nav2 costmap. The / scan publishing thread works at a fixed frequency; if the upstream data is not updated in time, it publishes the valid results of the previous frame or downgraded data.

[0128] For example, please refer to Figure 5 , Figure 5 This is a timing diagram of asynchronous pipelined processing provided in one embodiment of the present invention.

[0129] like Figure 5 As shown, each thread uses a circular buffer indexed by time, and selects the nearest frame within the ±Δt window during fusion; if a depth frame is missing or a timeout occurs, a degradation strategy is triggered, otherwise the previous frame / extended safety radius is used.

[0130] In this application embodiment, by introducing an "asynchronous pipelined architecture" and an "NPU-priority scheduling" mechanism, the end-to-end real-time performance and stability of the system on resource-constrained embedded platforms (such as the RK3588) are significantly improved. Its core advantage lies in achieving high-frequency, low-jitter ` / scan` data output, thereby ensuring that the downstream local planner can obtain continuous and reliable environmental perception input, making robot motion control more responsive and effectively reducing trajectory oscillations, abnormal braking, and decision hesitation caused by perception delays or data instability.

[0131] It should be noted that, in some embodiments, in addition to the aforementioned asynchronous multithreaded pipeline architecture, various innovative architectural layer alternatives have emerged in the industry when building real-time sensing systems, aiming to further optimize the system's performance, efficiency, and maintainability from different dimensions. These solutions provide new ideas for solving problems such as end-to-end latency, resource contention, and synchronization complexity by reconstructing data flow, communication mechanisms, or computing paradigms.

[0132] A significant alternative is to employ graph computing or dataflow frameworks, such as GStreamer, MediaPipe, OpenCV G-API, or RKNN-Toolkit2 Graph. These approaches abstract the entire perception chain—from acquisition → preprocessing → detection → depth → fusion → / scan—as a directed acyclic graph (DAG). In this graph, each processing step is modeled as a node, and nodes are connected by data edges, enabling zero-copy data transfer. The core mechanism lies in the framework's runtime automatically handling operator fusion, parallel scheduling, and buffer reuse. This means developers don't need to manually manage complex thread synchronization and locking mechanisms; the runtime intelligently schedules node execution based on data dependencies and hardware resources. This approach effectively reduces system overhead caused by multi-threaded contention and frequent context switching, and is expected to further reduce end-to-end latency and jitter. Simultaneously, because business logic is clearly expressed as a dataflow graph, the code structure is more modular, and maintainability and reproducibility are significantly improved.

[0133] For ROS2-based systems, an alternative approach is to employ a composable single-process architecture combined with shared-memory middleware. Specifically, functional modules such as camera driver, object detection, depth estimation, and data fusion are implemented as ROS2 composable nodes and loaded into the same process. Simultaneously, ROS2's intra-process communication is enabled, or a zero-copy shared-memory middleware (such as eProsima FastDDS and iceoryx) is integrated. The mechanism behind this approach is that it completely bypasses the time-consuming message serialization / deserialization process and data copying intervened by the operating system kernel in traditional inter-process communication. Messages can flow directly in memory as "loaned messages," with the receiver directly accessing the sender's memory buffer. The expected effect is a dramatic reduction in communication time from milliseconds to sub-milliseconds, significantly reducing CPU jitter caused by high-frequency data transmission and providing a solid foundation for building ultra-real-time sensing systems.

[0134] In other embodiments, system load can be optimized by redesigning the pipeline logic. This includes two "detection↔ depth" master-slave inversion strategies. Scheme A is "depth-first," which calculates the full map depth first, then uses prior information such as ground bands to define regions of interest (ROIs), triggering a lightweight target detection model only within these regions. Scheme B is "detection-first," which reduces the frequency of target detection (e.g., once every N frames), while using optical flow or tracking algorithms for motion extrapolation in the interval frames between detection frames, while maintaining a high frequency of depth estimation calculations. The mechanism of these two schemes is to stagger the computational loads of target detection and depth estimation, or to use the results of one branch to prune the computational scope of the other. The aim is to break the deadlock where the peak load of any branch determines the overall latency, enabling the system to maintain a higher and more stable output frame rate under the same hardware conditions.

[0135] Finally, from the model level, a "One-Encoder-Many-Heads" architecture can be used to replace the parallel computation of two independent models. This scheme designs a shared backbone network (encoder) followed by two specialized "heads"—one for object detection and the other for depth estimation. Its working mechanism is that during a forward propagation, the input image first extracts common features through the shared encoder, and then these features are fed in parallel into the two "heads," simultaneously generating bounding boxes and depth maps. This design reuses the feature extraction process, avoiding the computational redundancy caused by two independent models repeatedly performing convolution calculations on the same input. More importantly, since detection and depth information originate from the same forward propagation, they are naturally aligned in time, completely eliminating the synchronization problem caused by asynchronous inference across models. The expected effect is that while significantly reducing overall computational power consumption, end-to-end latency is further reduced due to the simplification of the computation process.

[0136] Please refer to Figure 6 The diagram illustrates a block diagram of a robot visual perception data processing device provided by the present invention. This device can be implemented as part of a robot system through hardware or a combination of hardware and software to achieve the above-described... Figures 2 to 5 All or part of the steps in the illustrated embodiments. For example... Figure 6 As shown, the robot's visual perception data processing device includes: The camera acquisition module 601 is used to acquire image frames through the camera acquisition thread, attach an acquisition timestamp to the image frame, and write the image frame with the acquisition timestamp into the image circular buffer. The target detection module 602 is used to asynchronously read image frames from the image circular buffer through the target detection thread, and perform target detection operations on the image frames to generate image detection results containing detection boxes and the corresponding acquisition timestamps of the image frames; The depth estimation module 603 is used to asynchronously read image frames from the image circular buffer through the depth estimation thread and perform depth estimation operations on the image frames to generate depth estimation results containing a depth map and the corresponding acquisition timestamp of the image frame; The perception data generation module 604 is used to fuse the image detection results and depth estimation results based on the timestamp matching principle through the fusion thread to generate navigation perception data. The navigation perception data is the perception information used by the robot system for path planning and obstacle avoidance. The data publishing module 605 is used to encapsulate navigation perception data through a publishing thread and publish the encapsulated navigation perception data to the navigation system corresponding to the robot system.

[0137] In an exemplary embodiment, a computer program product is also provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to implement all or part of the steps of the methods shown in the above embodiments of the present invention.

[0138] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores a computer program that is loaded and executed by a processor to implement all or part of the steps of the methods shown in the above embodiments of the present invention.

[0139] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0140] Although the operations are described in a specific order in the accompanying drawings, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the operations shown to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.

[0141] Any step, operation, or procedure described herein may be performed or implemented using one or more hardware or software modules, either alone or in combination with other devices. In one embodiment, the software module is implemented using a computer program product comprising a computer-readable medium containing computer program code, which is executable by a computer processor to perform any or all of the described steps, operations, or procedures.

[0142] The foregoing description of embodiments of the invention has been provided for purposes of illustration and description. The foregoing description is not exhaustive and is not intended to limit the invention to the exact forms disclosed; various modifications and variations may be made in accordance with the foregoing teachings, or may be derived from the practice of the invention. These embodiments were chosen and described to illustrate the principles of the invention and its practical application, enabling those skilled in the art to utilize the invention in various embodiments and with various modifications to suit the particular purpose of the concept.

[0143] It can be further understood that, unless otherwise specified, "connection" includes both direct connections where no other components exist between the two parties and indirect connections where other components exist between them.

[0144] It is further understood that although the operations are described in a specific order in the accompanying drawings in the embodiments of the present invention, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all the operations shown to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.

[0145] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the field of the invention not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.

[0146] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

[0147] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for processing robot visual perception data, characterized in that, The method is executed by a robotic system, which includes a camera acquisition thread, an object detection thread, a fusion thread, a depth estimation thread, and a publishing thread. The method includes: Image frames are acquired through the camera acquisition thread, and an acquisition timestamp is attached to the image frames. The image frames with the acquisition timestamp are then written into the image circular buffer. The target detection thread asynchronously reads the image frame from the image circular buffer and performs target detection operation on the image frame to generate an image detection result containing the detection box and the corresponding acquisition timestamp of the image frame; The depth estimation thread asynchronously reads the image frame from the image circular buffer and performs a depth estimation operation on the image frame to generate a depth estimation result containing a depth map and the corresponding acquisition timestamp of the image frame; The fusion thread, based on the timestamp matching principle, fuses the image detection results and the depth estimation results to generate navigation perception data, which is the perception information used by the robot system for path planning and obstacle avoidance. The navigation perception data is encapsulated through the publishing thread, and the encapsulated navigation perception data is published to the navigation system corresponding to the robot system.

2. The method according to claim 1, characterized in that, After asynchronously reading image frames from the image circular buffer via the target detection thread and performing target detection operations on the image frames to generate an image detection result containing detection boxes and the corresponding acquisition timestamps of the image frames, the method further includes: The target detection thread writes the image detection results into the detection result circular buffer. After asynchronously reading the image frame from the image circular buffer via the depth estimation thread and performing a depth estimation operation on the image frame to generate a depth estimation result containing a depth map and the corresponding acquisition timestamp of the image frame, the method further includes: The depth estimation thread writes the depth estimation result into a circular buffer for the depth result. Before fusing the image detection result and the depth estimation result based on the timestamp matching principle through the fusion thread to generate navigation perception data, the method further includes: The fusion thread reads the image detection results from the detection result circular buffer and the depth estimation results from the depth result circular buffer.

3. The method according to claim 2, characterized in that, The process of fusing the image detection results and the depth estimation results based on the timestamp matching principle through the fusion thread to generate navigation perception data includes: The fusion thread uses the acquisition timestamp of the image detection results obtained from the detection result circular buffer as the base timestamp. Within a preset time window, the fusion thread searches the circular buffer of the depth results for the depth estimation result with the smallest difference between the acquisition timestamp and the reference timestamp, and uses this result as the matching result. Based on the matching results, the fusion thread generates navigation-aware data.

4. The method according to claim 2, characterized in that, After the method searches the depth estimation result with the smallest difference between the acquisition timestamp and the reference timestamp from the depth result circular buffer within a preset time window using the fusion thread as the matching result, the method further includes: The verification information corresponding to the matching result is obtained through the fusion thread. The verification information includes at least one of the following: the proportion of invalid hole regions in the depth map corresponding to the depth estimation result, the proportion of effective pixels of the detection box in the image detection result in the depth map, and the time difference between the timestamp of the matching result and the reference timestamp. The fusion thread performs a confidence check operation on the matching result based on the verification information. The step of generating navigation-aware data based on the matching result through the fusion thread includes: The fusion thread generates navigation-aware data based on the matching results obtained through the confidence verification operation.

5. The method according to claim 4, characterized in that, Before generating navigation-aware data through the fusion thread based on the matching result of the confidence verification operation, the method further includes: If the proportion of invalid hole regions in the depth map corresponding to the depth estimation result is greater than the proportion threshold, the proportion of effective pixels of the detection box in the image detection result in the depth map is less than the proportion threshold, or the time difference between the timestamp and the reference timestamp is greater than the time difference threshold, the matching result is downgraded through the fusion thread. The downgraded operation includes replacing the current matching result with the data successfully fused in the previous cycle, or performing conservative filtering on the depth value in the matching result.

6. The method according to claim 1, characterized in that, The target detection thread and the depth estimation thread are scheduled to be executed in parallel on different computing cores of the neural network processing unit of the robot system.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: The depth estimation thread deletes depth estimation results whose write duration exceeds a first duration threshold from the depth result circular cache. The target detection thread deletes target detection results whose write duration exceeds the second duration threshold from the detection result circular buffer.

8. The method according to claim 7, characterized in that, The fusion thread and the publishing thread run at a fixed periodic frequency.

9. A robot visual perception data processing device, characterized in that, The device includes: The camera acquisition module is used to acquire image frames through the camera acquisition thread, attach an acquisition timestamp to the image frame, and write the image frame with the acquisition timestamp into the image circular buffer. The target detection module is used to asynchronously read the image frame from the image circular buffer through the target detection thread, and perform target detection operation on the image frame to generate an image detection result containing the detection box and the corresponding acquisition timestamp of the image frame; The depth estimation module is used to asynchronously read the image frame from the image circular buffer through the depth estimation thread, and perform a depth estimation operation on the image frame to generate a depth estimation result containing a depth map and the acquisition timestamp of the image frame. The perception data generation module is used to fuse the image detection results and the depth estimation results based on the timestamp matching principle through the fusion thread to generate navigation perception data. The navigation perception data is the perception information used by the robot system for path planning and obstacle avoidance. The data publishing module is used to encapsulate the navigation perception data through a publishing thread and publish the encapsulated navigation perception data to the navigation system corresponding to the robot system.

10. A computer-readable storage medium, characterized in that, The storage medium stores instructions that are executed by a processor of a computer device to implement the robot visual perception data processing method as described in any one of claims 1 to 8.