Data processing method and device based on PCIe 5.0 and shared memory mapping

By using PCIe 5.0 and shared memory mapping for data processing, the bandwidth bottleneck and high latency issues in multi-sensor data processing were resolved, achieving efficient and low-latency sensor data processing and improving the environmental perception capabilities of unmanned equipment.

CN123181256APending Publication Date: 2026-11-27ZHIXIN SIMING TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611414849.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-12
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, high-bandwidth sensor data processing suffers from bandwidth bottlenecks, high latency, and inaccurate identification, especially when multiple sensors are working simultaneously, resulting in low real-time performance and accuracy of environmental perception for unmanned equipment.

Method used

A data processing method based on PCIe 5.0 and shared memory mapping is adopted. By integrating multiple PCIe 5.0 interfaces, FPGAs acquire sensor data in parallel, perform image and point cloud data preprocessing in parallel, form target processing data, and write it into a shared memory buffer. The AI ​​processing module and the central processing unit read and process the data in parallel to achieve multimodal fusion recognition.

Benefits of technology

It significantly improved data throughput, reduced bus bandwidth usage and transmission latency, enhanced the real-time performance and accuracy of environmental perception, and improved the environmental adaptability and safety of unmanned equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181256A_ABST
    Figure CN123181256A_ABST
Patent Text Reader

Abstract

The application provides a data processing method and device based on PCIe5.0 and shared memory mapping, and relates to the technical field of unmanned equipment sensor data processing. In the method, image data and point cloud data are obtained; the image data is preprocessed to obtain preprocessed image data, and the point cloud data is preprocessed to obtain preprocessed point cloud data; the preprocessed image data and the preprocessed point cloud data are formed into target processing data; the target processing data is written into a shared memory buffer; the target processing data is simultaneously read by an AI processing module and a central processor; the preprocessed image data of the target processing data is identified by the AI processing module to obtain an identification result, and the identification result is transmitted to the central processor; the identification result and the preprocessed point cloud data of the target processing data are comprehensively identified by the central processor to obtain a discrimination result, and a control instruction is generated based on the discrimination result, thereby achieving low delay and high bandwidth utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of sensor data processing technology for unmanned equipment, specifically to a data processing method and device based on PCIe 5.0 and shared memory mapping. Background Technology

[0002] Unmanned equipment (such as autonomous vehicles and drones) relies heavily on real-time and accurate perception of their surroundings when performing tasks such as autonomous navigation, environmental perception, target recognition, and tracking. High-bandwidth sensors, such as LiDAR and 4K high-definition cameras, serve as core sensing devices, providing abundant point cloud and image data, which are fundamental for achieving high-precision environmental modeling and dynamic obstacle detection. Therefore, the efficient, low-latency acquisition, sharing, and processing of this high-bandwidth sensor data directly determines the response speed, decision-making reliability, and overall mission execution capability of unmanned equipment, making it one of the key technologies in the field of unmanned systems.

[0003] In related technologies, a common approach to processing high-bandwidth sensor data is a separation of acquisition, transmission, and processing architecture. Specifically, sensor data is first acquired by a dedicated acquisition module, then transmitted via a traditional bus to an independent computing module. The computing module processes the data and then forwards the results to other units. During this process, each module often needs to independently read data from the sensor, resulting in repeated use of bus bandwidth. This is particularly problematic when multiple high-bandwidth sensors, such as LiDAR and 4K cameras, are operating simultaneously, easily creating bandwidth bottlenecks, causing data loss or processing timeouts. Furthermore, multiple data copies increase end-to-end latency, severely compromising the real-time performance and accuracy of environmental perception. Summary of the Invention

[0004] This application provides a data processing method and device based on PCIe 5.0 and shared memory mapping, which can achieve low latency, high bandwidth utilization, support parallel operation of multiple sensors, and improve the real-time performance and accuracy of environmental perception.

[0005] The technical solution of this application embodiment is as follows: In a first aspect, embodiments of this application provide a data processing method based on PCIe 5.0 and shared memory mapping, applied to a data processing system based on PCIe 5.0 and shared memory mapping. The data processing system includes an FPGA integrating multiple PCIe 5.0 interfaces, an AI processing module, and a central processing unit. The method includes: The data to be processed is acquired by the various sensors that are acquired in parallel using the FPGA, and the data to be processed includes image data and point cloud data. The image data is preprocessed to obtain preprocessed image data, the point cloud data is preprocessed to obtain preprocessed point cloud data, and the preprocessed image data and the preprocessed point cloud data are combined to form target processing data. The target processing data is written into a shared memory buffer, wherein the shared memory buffer is obtained by mapping the acquisition buffer of the FPGA, the calculation buffer of the AI ​​processing module, and the memory space of the central processing unit to the same virtual address space; The AI ​​processing module and the central processing unit simultaneously read the target processing data, the AI ​​processing module recognizes the preprocessed image data of the target processing data to obtain a recognition result, and the recognition result is transmitted to the central processing unit. The central processing unit performs comprehensive recognition processing on the recognition result and the preprocessed point cloud data of the target processing data to obtain a discrimination result, and generates control commands based on the discrimination result.

[0006] In the above solution, by integrating multiple PCIe 5.0 interfaces into an FPGA, it is possible to interface with sensors such as LiDAR and 4K high-definition cameras in parallel. Utilizing the hardware parallelism of the FPGA, data acquisition from multiple sensors can be initiated within the same clock cycle, significantly improving data throughput and laying the foundation for subsequent low-latency processing. Image and point cloud data acquired using the FPGA are obtained, and image and point cloud data undergo preprocessing. This preprocessing removes redundant and noisy data, reducing the amount of target processing data and significantly lowering bus bandwidth usage. The target processing data is then written to a shared memory cache, avoiding data transmission delays caused by repeated data copying between the AI ​​processing module and the central processing unit, effectively reducing transmission latency. Furthermore, the AI ​​processing module and the central processing unit read and process the target processing data in parallel, enabling concurrent and conflict-free direct access to their respective data partitions via virtual addresses. Compared to serial processing, end-to-end processing latency is greatly reduced. Finally, the parallel processing results are fused for multimodal recognition, which not only reduces computational load but also makes control commands more environmentally adaptable and secure.

[0007] In some embodiments of this application, the step of performing image preprocessing on the image data to obtain preprocessed image data, and performing data preprocessing on the point cloud data to obtain preprocessed point cloud data, includes: Obtain the sensor identifier, the sequence number of the acquired frame, and the acquisition timestamp of each of the aforementioned sensors; Based on the sensor identifier, the frame number, and the acquisition timestamp, the image data is distributed to the image preprocessing logic partition within the FPGA, and the point cloud data is distributed to the point cloud preprocessing logic partition within the FPGA. Based on the same acquisition timestamp, the image preprocessing process and the point cloud preprocessing process are executed in parallel in different logical partitions to obtain the preprocessed image data and the preprocessed point cloud data. Image metadata corresponding to the preprocessed image data and point cloud metadata corresponding to the preprocessed point cloud data are generated respectively. The image metadata and the point cloud metadata both include the sensor identifier, the frame number, the data length, the data type and the acquisition timestamp. According to the same preset acquisition time window, the preprocessed image data, the preprocessed point cloud data, the image metadata, and the point cloud metadata are packaged into structured data blocks, and data descriptors corresponding to the structured data blocks are generated to form target processing data.

[0008] In some embodiments of this application, the image preprocessing process includes: Within the FPGA, a dynamic projection mapping table from three-dimensional space to two-dimensional pixels is constructed based on the preset sensor calibration extrinsic parameters, the real-time driving vector, and the camera field of view parameters. The region of interest is extracted from the image data according to the dynamic projection mapping table, and a region mask is generated. The region mask is used to dynamically crop the non-region of interest, and the region of interest is marked to obtain the cropped image data. The cropped image data is divided into multiple image blocks, and pixel filtering is performed on the multiple image blocks to obtain filtered image blocks; The filtered image blocks are compared with adjacent pixels. The image blocks that are located in the non-interest region and whose change relative to the previous frame is continuously lower than the background jitter threshold are used as static background image blocks. Based on the region of interest (ROI) identifiers of the image blocks in adjacent frames, high compression rate encoding is applied to static background image blocks, and lossless or low-loss compression encoding is applied to image blocks containing ROIs to obtain the preprocessed image data.

[0009] In some embodiments of this application, the point cloud preprocessing process includes: Within the FPGA, invalid points are removed from the point cloud data based on a preset distance threshold, a preset reflection intensity threshold, and / or the effective field of view of the sensor, to obtain the removed point cloud data. Based on the depth of the point cloud data and the back pressure state of the shared memory buffer, an adaptive voxel partitioning size is calculated; The removed point cloud data is divided into grids according to the voxel division size. The removed point cloud data falling into the same voxel space are downsampled and merged to obtain the preprocessed point cloud data.

[0010] In some embodiments of this application, packaging the preprocessed image data, the preprocessed point cloud data, the image metadata, and the point cloud metadata into a structured data block includes: The total data volume is obtained by statistically analyzing the data volume of the image data and the data volume of the point cloud data within the same acquisition time window. Based on the statistically analyzed data volume of the preprocessed image data and the data volume of the preprocessed point cloud data, the preprocessed data volume is obtained. Based on the preprocessed data volume and the total data volume, the ratio of the data volume of the structured data block is obtained. When the data volume ratio exceeds the preset data volume threshold, the image blocks containing the region of interest, the near-range point cloud, and the high reflectivity point cloud are retained, while the image blocks of non-regions of interest and the far-range low reflectivity point cloud are discarded. The image blocks of the region of interest and the corresponding image metadata, as well as the near-field point cloud, the high-reflectivity point cloud and the corresponding point cloud metadata, are packaged into the structured data block.

[0011] In some embodiments of this application, the step of using the central processing unit to perform comprehensive identification processing on the preprocessed point cloud data of the identification result and the target processing data to obtain a discrimination result includes: Based on the physical hardware timestamp, the data in the shared memory buffer is parsed to obtain the asymmetric time difference between the link of the recognition result and the link of the preprocessed point cloud data. The asymmetric time difference is compared with a preset dynamic aggregation window in real time. When the asymmetric time difference is within the dynamic aggregation window, a three-dimensional spatial grid map is constructed using the preprocessed point cloud data. Alignment compensation is performed based on the historical pose corresponding to the asymmetric time difference, and the alignment compensation pose corresponding to the recognition result is projected onto the three-dimensional spatial grid map for alignment, resulting in an aligned grid map. The aligned raster map is analyzed, and when consecutive frames are in the same voxel and the displacement of the three-dimensional depth set features exceeds the collision warning threshold, a collision determination result is obtained.

[0012] In some embodiments of this application, after comparing the asymmetric time difference with a preset dynamic aggregation window in real time, the method further includes: When the asymmetric time difference exceeds the dynamic aggregation window, the central processing unit is set to a suspended waiting state, the recognition result is discarded, and the geometric boundary limit of the preprocessed point cloud data is used to generate a risk avoidance judgment result.

[0013] Secondly, embodiments of this application provide a data processing system based on PCIe 5.0 and shared memory mapping. The data processing system includes an FPGA integrating multiple PCIe 5.0 interfaces, an AI processing module, and a central processing unit. The system further includes: The data acquisition module is used to acquire the data to be processed from each sensor acquired in parallel using the FPGA. The data to be processed includes image data and point cloud data. The data preprocessing module is used to perform image preprocessing on the image data to obtain preprocessed image data, perform data preprocessing on the point cloud data to obtain preprocessed point cloud data, and combine the preprocessed image data and the preprocessed point cloud data to form target processing data. The storage mapping module is used to write the target processing data into a shared memory buffer, wherein the shared memory buffer is obtained by mapping the acquisition buffer of the FPGA, the calculation buffer of the AI ​​processing module, and the memory space of the central processing unit to the same virtual address space; The reading and recognition module is used to simultaneously read the target processing data using the AI ​​processing module and the central processing unit, use the AI ​​processing module to recognize the preprocessed image data of the target processing data, obtain the recognition result, and transmit the recognition result to the central processing unit. The control generation module is used to perform comprehensive recognition processing on the preprocessed point cloud data of the recognition result and the target processing data using the central processing unit to obtain a discrimination result, and generate control commands based on the discrimination result.

[0014] Thirdly, embodiments of this application provide an electronic device including a processor, a memory, a user interface, a communication bus, and a network interface. The processor, the memory, the user interface, and the network interface are respectively connected to the communication bus. The memory is used to store instructions. The user interface and the network interface are used to communicate with other devices. The processor is used to execute the instructions stored in the memory to cause the electronic device to perform the method described in any one of the first aspects.

[0015] Fourthly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed, perform the method described in any one of the methods provided in the first aspect above.

[0016] In summary, one or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages: 1. By employing an FPGA with multiple integrated PCIe 5.0 interfaces, parallel interfaces with sensors such as LiDAR and 4K high-definition cameras are possible. Leveraging the hardware parallelism of the FPGA, data acquisition from multiple sensors can be initiated within the same clock cycle, significantly improving data throughput and laying the foundation for subsequent low-latency processing. Image and point cloud data acquired using the FPGA are obtained, and image and point cloud data undergo preprocessing. This preprocessing removes redundant and noisy data, reducing the amount of target processing data and significantly lowering bus bandwidth usage. The target processing data is then written to a shared memory cache, avoiding data transmission delays caused by repeated data copying between the AI ​​processing module and the central processing unit, effectively reducing transmission latency. Furthermore, the AI ​​processing module and the central processing unit read and process the target processing data in parallel, enabling concurrent and conflict-free direct access to their respective data partitions via virtual addresses. Compared to serial processing, end-to-end processing latency is greatly reduced. Finally, the parallel processing results are fused for multimodal recognition, which not only reduces computational load but also makes control commands more environmentally adaptable and secure. Therefore, it effectively solves the problem of inaccurate identification caused by high bandwidth consumption and high latency in related technologies.

[0017] 2. By preprocessing the data on the FPGA side, dynamically simplifying the data, and packaging the data in a structured manner, redundancy is eliminated before the data enters the high-speed bus, which greatly reduces the amount of data transmitted. It adapts to the high bandwidth characteristics of PCIe 5.0, solves the bandwidth bottleneck of multi-sensor parallel operation, and significantly improves the bus bandwidth utilization.

[0018] 3. Breaking through the limitations of traditional fixed-time alignment algorithms, it dynamically adapts to the asymmetric engineering characteristics of inconsistent processing times between the image inference link and the point cloud acquisition link. This ensures both high accuracy of image-point cloud fusion under normal operating conditions and reliable risk avoidance under abnormal time-series conditions, significantly improving the environmental adaptability and operational robustness of the unmanned perception system, and achieving a high-precision, high-safety, and low-latency intelligent decision-making closed loop. Attached Figure Description

[0019] Figure 1 This is a schematic flowchart of a data processing method based on PCIe 5.0 and shared memory mapping provided in one embodiment of this application; Figure 2 This is a schematic diagram of the overall module provided in one embodiment of this application; Figure 3 This is a schematic diagram of the structure of a data processing system based on PCIe 5.0 and shared memory mapping provided in one embodiment of this application; Figure 4 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation

[0020] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0021] In the description of the embodiments of this application, the words "for example" or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design that is described as "for example" or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design options. Rather, the use of the words "for example" or "for instance" is intended to present the relevant concepts in a specific manner.

[0022] In the description of the embodiments of this application, the term "multiple" means two or more. For example, multiple systems means two or more systems, and multiple screen terminals means two or more screen terminals. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0023] In related technologies, the efficient, low-latency acquisition, sharing, and processing of high-bandwidth sensor data directly determines the response speed, decision-making reliability, and overall mission execution capability of unmanned equipment, making it one of the key technologies in the field of unmanned systems. However, in unmanned equipment, multiple data copies and serial data processing result in high latency, leading to lower real-time performance and accuracy in identification.

[0024] Based on this, embodiments of this application provide a data processing method, system, electronic device, and readable storage medium based on PCIe 5.0 and shared memory mapping. The data processing method based on PCIe 5.0 and shared memory mapping firstly integrates multiple PCIe 5.0 interfaces into an FPGA, which can connect to sensors such as LiDAR and 4K high-definition cameras in parallel. By utilizing the hardware parallelism of the FPGA, data acquisition from multiple sensors can be initiated within the same clock cycle, significantly improving data throughput and laying the foundation for subsequent low-latency processing. Image and point cloud data acquired using the FPGA are preprocessed. Image and point cloud data are preprocessed to remove redundancy and noise, reducing the size of the target processing data and significantly lowering bus bandwidth usage. The target processing data is then written to a shared memory cache to avoid data transmission delays caused by repeated data copying between the AI ​​processing module and the CPU, effectively reducing latency. Furthermore, the AI ​​processing module and CPU read and process the target processing data in parallel, enabling concurrent and conflict-free access to their respective data partitions via virtual addresses. Compared to serial processing, end-to-end processing latency is significantly reduced. Finally, the parallel processing results are fused for multimodal recognition, which not only reduces computational load but also enhances the environmental adaptability and security of control commands.

[0025] It should be noted that this data processing method based on PCIe 5.0 and shared memory mapping is used for unmanned equipment, including drones and autonomous vehicles. This method integrates high-speed interconnect, shared memory mapping and edge preprocessing technology to achieve low-latency acquisition, sharing and processing of high-bandwidth sensor data such as LiDAR and 4K high-definition cameras. It is suitable for real-time environmental perception of unmanned equipment and solves the problems of high latency and low bandwidth utilization in traditional data processing modes.

[0026] The technical solutions provided in the embodiments of this application will be further described below with reference to the accompanying drawings.

[0027] Reference Figure 1 , Figure 1 This is a schematic flowchart of a data processing method based on PCIe 5.0 and shared memory mapping provided in an embodiment of this application. The data processing method based on PCIe 5.0 and shared memory mapping is applied to a data processing system based on PCIe 5.0 and shared memory mapping. The method is executed by a processor in an electronic device or a readable storage medium. The data processing method includes steps S100, S200, S300, S400, and S500.

[0028] Step S100: Obtain the data to be processed from each sensor acquired in parallel using the FPGA. The data to be processed includes image data and point cloud data.

[0029] In one embodiment, the data processing system includes an FPGA integrating multiple PCIe 5.0 interfaces, an AI processing module, and a central processing unit (CPU). The specific connection method is as follows: The FPGA serves as the core acquisition and preprocessing unit, with onboard multiple high-speed interfaces and multiple PCIe 5.0 hard-core interfaces; the FPGA connects to a high-definition camera via GMSL and SDI high-speed interfaces, and to a LiDAR via an Ethernet high-speed interface, enabling parallel acquisition of raw sensor data; the FPGA's PCIe 5.0 interfaces are respectively connected at high speed to the PCIe 5.0 interfaces of the AI ​​processing module and the CPU, constructing a global high-speed interconnect network; the AI ​​processing module and the CPU achieve bidirectional data interaction with the FPGA via the PCIe 5.0 bus, and the memory spaces of all three can be mapped to the same virtual address space. The FPGA, a field-programmable gate array, is a programmable hardware chip integrating multiple high-speed sensor interfaces and a PCIe 5.0 hard-core controller, possessing hardware parallel computing, pipelined processing, and low-latency real-time preprocessing capabilities, serving as the core hardware carrier for data acquisition and preprocessing. The AI ​​processing module is equipped with a dedicated computing unit for artificial intelligence inference, used to perform intelligent perception calculations such as target recognition, semantic segmentation, and situational awareness assessment based on preprocessed image and point cloud data. The central processing unit is the core control unit of the unmanned equipment, responsible for system scheduling, task priority allocation, safety decisions, equipment linkage control, and overall data processing and equipment operation logic. The PCIe 5.0 interface is a high-speed transmission interface.

[0030] like Figure 2 As shown, the system hardware architecture diagram contains a four-layer structure. The bottom layer is the sensor layer (high-definition camera, LiDAR), the middle core layer is the FPGA preprocessing unit (integrating GMSL / SDI / Ethernet interfaces, PCIe 5.0 controller, and dual preprocessing logic partitions), the upper layer is the computing layer (AI processing module, central processing unit), and the top layer is the shared memory virtual address space. Each module is connected step by step through corresponding interfaces to form a high-speed acquisition-preprocessing-sharing-processing closed-loop architecture.

[0031] In the above structure, image data consists of raw image data acquired by a 4K high-definition camera mounted on the unmanned equipment through optical imaging. This data includes image information such as pixel brightness, color, and position, and serves as the foundational data for the unmanned equipment's visual environment perception, used to identify semantic targets such as pedestrians, vehicles, and traffic signs. Point cloud data consists of raw spatial data acquired by a lidar mounted on the unmanned equipment through laser scanning and ranging. This data includes geometric information such as obstacle distance, three-dimensional coordinates, reflection intensity, and field of view position, used to construct a three-dimensional spatial model of the environment and determine the spatial boundaries of obstacles.

[0032] Through interface adapter units corresponding to the GMSL, SDI, and Ethernet interfaces within the FPGA, high-definition cameras and LiDAR sensors are connected respectively. The system automatically completes hardware link detection, transmission rate negotiation, and data format recognition, confirming the normal operation of each sensor and the stability of the data transmission link. Based on the link detection results, a real-time sensor channel table is generated. Combining the fixed frame period, maximum data volume per frame, and system preset task priority of each sensor, a dedicated receiving channel, receiving threshold, and circular DMA descriptor queue are independently allocated to each sensor, achieving multi-sensor channel resource isolation. Each independent receiving channel acquires raw sensor data in real time, synchronously adding a unique sensor identifier, a continuously incrementing frame number, and a physical layer hardware acquisition timestamp to each frame of data, accurately marking the data source, frame order, and acquisition time. The raw image data and point cloud data with added identifiers are written to the corresponding independent acquisition buffers of the FPGA to obtain the data to be processed. This data includes image data and point cloud data, providing data support for subsequent data preprocessing. The FPGA hardware parallel acquisition architecture enables synchronous acquisition of data from multiple sensors, allowing data acquisition from multiple sensors to be initiated within the same clock cycle, significantly improving data throughput and laying the foundation for subsequent low-latency processing; hardware timestamp marking ensures the spatiotemporal alignment accuracy of subsequent data.

[0033] Step S200: Perform image preprocessing on the image data to obtain preprocessed image data; perform data preprocessing on the point cloud data to obtain preprocessed point cloud data; and combine the preprocessed image data and preprocessed point cloud data to form target processing data.

[0034] In one embodiment, the processed image data is simplified, effective, and low-redundancy image data obtained by the FPGA after performing region cropping, filtering, and differential compression on the original image data, retaining the semantic information of the core perception region and removing invalid background redundant data. The preprocessed point cloud data is regularized, high-precision, and low-data-volume point cloud data obtained by the FPGA after removing invalid points and adaptive voxel downsampling and merging on the original point cloud data, retaining the core geometric information of obstacles and removing noise and invalid data. The target processing data consists of structured data blocks formed by packaging preprocessed image data, preprocessed point cloud data, and corresponding metadata within the same time window. It is a standardized data carrier adapted to PCIe 5.0 high-speed transmission and zero-copy access to shared memory. Through independent image preprocessing logic partitions and point cloud preprocessing logic partitions within the FPGA, two-way data preprocessing is completed in parallel based on a unified acquisition timestamp, synchronously generating corresponding metadata, and finally packaging them according to time windows to form structured target processing data. The above process abandons the traditional serial preprocessing mode and realizes synchronous preprocessing of image and point cloud data through FPGA hardware partitioning and parallel operation, which greatly shortens the overall data processing time. The preprocessing process simultaneously completes data noise reduction, redundancy removal and format standardization, which greatly reduces the data volume while retaining the core perception information, adapts to the high bandwidth transmission characteristics of PCIe 5.0, reduces the pressure of subsequent transmission and calculation, and helps to reduce bandwidth occupation and latency.

[0035] In one embodiment, image preprocessing is performed on image data to obtain preprocessed image data, and point cloud data is preprocessed to obtain preprocessed point cloud data, including but not limited to the following steps: Step S210: Obtain the sensor identifier, the sequence number of the collected frame, and the timestamp of the collected data for each sensor.

[0036] Specifically, the sensor identifier is a unique identification code assigned to each sensor by the FPGA, used to distinguish different types of sensors such as high-definition cameras and LiDAR, and to accurately trace the source of data. The frame sequence number is a continuously increasing code according to the sensor acquisition time sequence, used to mark the order of data frames, ensuring the temporal continuity of multiple frames and avoiding frame data corruption. The acquisition timestamp is a high-precision time stamp generated by the FPGA physical layer hardware clock calibration, accurately recording the original acquisition time of each frame of data, and is the core benchmark for spatiotemporal alignment of multi-sensor data.

[0037] The system reads raw data frames from the buffers of each independent receiving channel and extracts the unique sensor identifier code embedded in the preset fields of the header of each data frame. It then parses the timing code field of the data frame, extracts the continuously increasing frame number, and confirms the acquisition order of the current data frames. Finally, it reads the high-precision acquisition timestamp generated by the FPGA physical layer hardware clock synchronization module. This timestamp is calibrated using the system's global time synchronization protocol, achieving microsecond-level accuracy. Three types of core identification information are accurately extracted, providing a unique timing and identity benchmark for subsequent data partitioning and distribution, parallel preprocessing, spatiotemporal alignment, and data packaging, ensuring the orderly collaborative processing of multi-source data.

[0038] Step S220: Based on the sensor identifier, frame number and acquisition timestamp, the image data is distributed to the image preprocessing logic partition in the FPGA, and the point cloud data is distributed to the point cloud preprocessing logic partition in the FPGA.

[0039] Specifically, the image preprocessing logic partition is an independently defined hardware computing logic area within the FPGA, dedicated to preprocessing operations such as image data cropping, filtering, and compression, and isolated from the point cloud processing logic hardware resources. The point cloud preprocessing logic partition is also an independently defined hardware computing logic area within the FPGA, dedicated to preprocessing operations such as invalid point removal and voxel downsampling, with independent hardware resources and no preemption.

[0040] The data type is determined based on sensor identifiers: camera identifiers match image data, and radar identifiers match point cloud data. Image and point cloud data acquired in the same batch are time-bound based on frame sequence numbers and acquisition timestamps, ensuring that the two types of data acquired at the same time enter the preprocessing process synchronously. Through the FPGA's internal high-speed data bus, image data is precisely distributed to the image preprocessing logic partition, and point cloud data is distributed to the point cloud preprocessing logic partition, achieving hardware-level parallel flow of the two data streams. Hardware logic partitioning isolates image and point cloud data for parallel processing, avoiding resource contention and process blockage between the two types of data. The time-bound mechanism ensures synchronous preprocessing of multi-source data acquired simultaneously from the same source, providing a foundation for subsequent precise spatiotemporal fusion. Compared to the traditional serial processing mode, processing efficiency is more than doubled.

[0041] Step S230: Based on the same acquisition timestamp, the image preprocessing process and the point cloud preprocessing process are executed in parallel in different logical partitions to obtain preprocessed image data and preprocessed point cloud data.

[0042] Specifically, a unified acquisition timestamp refers to the same hardware timestamp synchronously marked by the FPGA for multiple sensors within the same acquisition cycle. It is the core benchmark for achieving spatiotemporal alignment and collaborative preprocessing of image and point cloud data. Parallel preprocessing refers to a hardware-level parallel computing mode in which the FPGA, relying on two independent hardware logic partitions, synchronously starts image and point cloud preprocessing operations, with the two processes proceeding simultaneously without interference. Using the same acquisition timestamp as the synchronization benchmark, the image preprocessing logic partition executes the image preprocessing process, and the synchronous point cloud preprocessing logic partition executes the point cloud preprocessing process. The two processes are hardware parallel and time-synchronized, synchronously outputting preprocessed image data and preprocessed point cloud data. Hardware-level parallel preprocessing alleviates the time loss of serial processing and significantly reduces the overall latency of data preprocessing. The unified timestamp benchmark ensures that the timing of the two preprocessed data is completely matched, solving the problems of misaligned timing and poor coordination of image and point cloud data in traditional technologies from the hardware level, and improving the accuracy of subsequent data fusion.

[0043] In one embodiment, the image preprocessing process includes, but is not limited to, the following steps: Step S231: Within the FPGA, a dynamic projection mapping table from three-dimensional space to two-dimensional pixels is constructed based on the preset configured sensor calibration extrinsic parameters, the issued real-time driving vector, and the camera field of view parameters.

[0044] Specifically, the sensor calibration extrinsic parameters are the pre-calibrated and stored relative position and attitude transformation matrix parameters of the LiDAR and camera, used to achieve coordinate transformation between the three-dimensional radar space and the two-dimensional camera image space. The real-time driving vector is the speed, heading, and displacement parameters of the unmanned equipment in real time, sent down in real-time by the onboard navigation and inertial measurement unit, used to adapt to the equipment's motion state and correct projection deviations. The camera field of view parameters are the camera's fixed focal length, pixel resolution, and imaging field of view angle parameters, used to define the effective imaging range of the image. The dynamic projection mapping table is a real-time updated table of correspondence between three-dimensional spatial coordinates and two-dimensional image pixel coordinates, serving as the basis for mapping radar point clouds to images and dynamically extracting the perception area.

[0045] First, parameters are initialized, including the calibration matrices of the LiDAR and camera intrinsic and extrinsic parameters, camera focal length, principal pixel coordinates, and fixed field-of-view parameters such as the camera's maximum field of view. Real-time driving vector data from the vehicle chassis control system is received in real time. This data includes current vehicle speed, yaw rate, pitch angle, roll angle, and inter-frame displacement compensation. The data update frequency is synchronized with the sensor frame rate. Pre-fixed calibration extrinsic parameters are retrieved, and a static transformation matrix from the LiDAR 3D coordinate system to the camera 3D coordinate system is constructed using a 3D rigid body transformation formula. This matrix is ​​then combined with the camera intrinsic parameter matrix to generate a static 3D-2D projection reference matrix in a motionless state. The 3D rigid body transformation formula is a current technology formula, achieved through rotation and translation. Based on the received real-time driving vectors, the vehicle's current attitude offset and inter-frame motion displacement are calculated in real time to generate a dynamic compensation matrix. The dynamic compensation matrix is ​​then multiplied with the reference projection matrix to correct coordinate offsets caused by vehicle movement and attitude jitter, resulting in a real-time dynamic projection matrix. Based on the camera's maximum field of view parameter, a valid range of pixel coordinates is defined. Boundary checks are performed on the mapped coordinates calculated by the dynamic projection matrix, eliminating invalid mapped points outside the camera's imaging field of view, and retaining only the coordinate correspondence of the valid imaging area. Using a single-frame acquisition cycle as the unit, the effective radar-detected 3D spatial points are traversed, and their corresponding 2D camera pixel coordinates are calculated one by one, forming a mapping table of 3D spatial coordinates [(X / Y / Z) - 2D pixel coordinates (u / v)]. The mapping table is refreshed synchronously after each frame of sensor data acquisition, achieving real-time dynamic updates of the projection relationships in motion scenarios. Combined with dynamic correction of the mapping relationships based on the equipment's motion state, the problem of sensor coordinate projection offset during unmanned equipment movement is effectively solved, significantly improving the accuracy of subsequent region of interest extraction and adapting to the perception needs of dynamic driving scenarios.

[0046] Step S232: Extract the region of interest from the image data according to the dynamic projection mapping table, generate a region mask, dynamically crop the non-region of interest using the region mask, and mark the region of interest to obtain the cropped image data.

[0047] Specifically, the Region of Interest (ROI) is the core area in an image containing effective perceived targets such as obstacles, pedestrians, and vehicles; it is a key and effective data area for environmental perception by unmanned equipment. The region mask is a binary image mask matrix generated using an FPGA, used to accurately distinguish between ROIs and non-ROIs in an image, providing precise boundaries for image cropping. Non-ROIs are invalid image areas with no perceptual value, such as the sky, distant background, and areas without obstacles on the ground; they are considered redundant data that can be cropped.

[0048] Based on the constructed dynamic projection mapping table, all valid preprocessed point clouds in the current frame of the LiDAR are traversed, and the three-dimensional spatial coordinates of each valid point cloud are extracted. The corresponding two-dimensional image pixel coordinates are then obtained by matching them one-to-one through the mapping table. All successfully matched pixel coordinates are aggregated to form a sparse target pixel candidate point set. This set only contains image pixels corresponding to obstacles and target objects detected by the radar, excluding invalid background pixels. Dilation and closing operations are then performed sequentially on the sparse target pixel candidate point set. Specifically, first, dilation expands the neighborhood of discrete candidate points, filling small gaps around the target. Then, closing eliminates small holes within the region and smooths the edge contours, aggregating the discrete and sparse candidate pixels into one or more continuous polygonal pixel regions, which are the suspected target regions. Dilation and closing operations are fundamental image processing operations. Convolutional neural networks can also be used to extract regions of interest from the preprocessed image data, but this will not be elaborated upon here.

[0049] The system acquires pre-stored standard driving sector masks and operational safety rectangle area masks for unmanned equipment. It then performs pixel-level logical AND operations on suspected polygonal target areas with the driving direction sector mask and operational safety area mask, respectively. Invalid distant target areas deviating from the driving direction or exceeding the operational safety range are eliminated, retaining only valid target areas within the vehicle's path that pose a collision risk, thus determining the pixel boundary range of the final dynamic Region of Interest (ROI). Based on the ROI pixel boundary range, a binary region mask matrix with the same resolution as the image data is generated. In the mask matrix, valid ROI pixels are marked as 1, and non-interest-bearing background pixels are marked as 0, achieving precise pixel-level division between valid and invalid areas. The image data is read row by row and pixel by pixel. ROI pixels marked as 1 are fully retained and labeled with their unique ROI identifier, while non-interest-bearing background pixels marked as 0 are discarded. After scanning and filtering, all retained valid ROI pixels are integrated to obtain cropped image data. The cropped image data includes the corresponding region mask information and ROI identifier, for use in subsequent compression module differential encoding. By removing invalid background data from images, the size of image data is significantly reduced, thereby reducing the pressure on subsequent compression, transmission, and AI computing, which can effectively alleviate bandwidth consumption and reduce latency.

[0050] Step S233: Divide the cropped image data into multiple image blocks, and perform pixel filtering on the multiple image blocks to obtain filtered image blocks.

[0051] Specifically, an image block is a sub-image unit obtained by dividing the cropped complete image into fixed pixel sizes, using 16×16 or 32×32 pixel blocks to adapt to the FPGA parallel computing architecture. Pixel filtering is used for image denoising, such as removing noise. The cropped complete image is uniformly divided into multiple image blocks of a preset fixed size (16×16 / 32×32 pixels). Parallel pixel filtering is performed on each image block, calculating the mean and extreme values ​​of pixel grayscale within the block, and removing abnormal noise pixels. The grayscale differences between adjacent pixels within the block are smoothed, preserving image edge details and target features, ultimately resulting in a filtered image block with denoising complete. Simultaneous filtering of multiple image blocks can be achieved, effectively eliminating image acquisition noise, improving image data quality, and providing high-quality data support for subsequent accurate compression and target recognition.

[0052] Step S234: Compare adjacent pixels of the filtered image blocks, and use the image blocks that are in the non-interest area and whose change relative to the previous frame is continuously lower than the background jitter threshold as static background image blocks.

[0053] Specifically, the background jitter threshold is a preset threshold value for pixel change, used to determine whether an image region is a static, unchanging background. A static background image block is a stationary background image block within a non-interest area, where the pixel change over multiple consecutive frames is below the jitter threshold, and where there are no dynamic targets.

[0054] The filtered image block data from the previous frame is compared with the corresponding image block in the current frame using a pixel-by-pixel grayscale difference calculation to determine the pixel change. The overall pixel change for each image block is then statistically analyzed and compared with a preset background jitter threshold. The change status of image blocks is continuously monitored for 3-5 consecutive frames. Image blocks located in non-interest areas and whose change values ​​in consecutive frames are below the threshold are identified as static background image blocks and marked. This method accurately identifies redundant static background image blocks, providing a basis for subsequent differentiated compression coding, thus balancing data accuracy and compression efficiency.

[0055] It should be noted that image blocks that do not meet the criteria of being located in a non-interest region and whose change relative to the previous frame is continuously lower than the background jitter threshold, especially image blocks located in an interest region or image blocks that have undergone significant dynamic changes, are identified as image blocks containing an interest region for subsequent differential compression.

[0056] Step S235: Based on the region of interest identifiers of adjacent frame image blocks, high compression rate encoding is applied to static background image blocks, and lossless or low-loss compression encoding is applied to image blocks containing regions of interest to obtain preprocessed image data.

[0057] Specifically, high compression ratio coding is a high-frequency discard compression algorithm for static background image blocks. By discarding high-frequency redundant information in the image, it achieves a large proportion of data compression, with a compression ratio of 50% or higher. Lossless / low-loss compression coding is an encoding method for image blocks containing regions of interest (ROIs) with perceived targets. It fully preserves the detailed features of the target and removes only a very small amount of invalid redundancy, ensuring the accuracy of target recognition.

[0058] First, the DC component of the image patch is extracted, and the pixel residual block is calculated. The spatial domain signal is converted into frequency domain coefficients using discrete cosine transform. High-frequency redundant coefficients are discarded, and only low-frequency effective coefficients are retained and quantized for compression, achieving a high proportion of data simplification. For image patches containing regions of interest and exhibiting dynamic changes, lossless or low-loss compression strategies are employed, and the above process is also used for compression, fully preserving high-frequency detail coefficients with only slight quantization simplification, without losing target feature information. All compressed image patches are then stitched together in the original image arrangement order to obtain the final preprocessed image data. This differentiated compression strategy achieves a balance between accuracy and efficiency, with zero precision loss in the core sensing region and extreme compression of the background region, significantly reducing the data transmission volume of the image data, alleviating the PCIe 5.0 bus transmission pressure and AI computing power consumption, while ensuring the accuracy of target recognition by unmanned equipment.

[0059] In one embodiment, the point cloud preprocessing process includes, but is not limited to, the following steps: Step S236: Within the FPGA, invalid points are removed from the point cloud data based on a preset distance threshold, a preset reflection intensity threshold, and / or the effective field of view of the sensor, to obtain the removed point cloud data.

[0060] Specifically, the distance threshold is a preset effective detection distance threshold, used to eliminate invalid point clouds that are too far away or have no perceptual value. The reflection intensity threshold is a laser reflection intensity threshold, used to eliminate invalid point clouds caused by excessively low reflection intensity or noise interference. The effective field of view of the sensor is the spatial angular range within which the lidar can legally detect; point cloud data outside this range are considered interference and invalid data.

[0061] The system utilizes an FPGA to read the ranging, reflection intensity, and spatial angular coordinates of each frame of point cloud data. It removes weakly sensing point clouds at long distances exceeding a preset effective distance threshold. It also removes invalid point clouds containing noise and clutter with reflection intensity below a preset threshold. Finally, it removes edge interference point clouds exceeding the radar's effective field of view, retaining only high-precision, effective point cloud data. This comprehensive approach, eliminating invalid and noisy point clouds from three dimensions—distance, reflection intensity, and spatial field of view—significantly reduces the amount of point cloud data, removes interference data, and effectively improves the accuracy and efficiency of subsequent 3D modeling and obstacle detection, while reducing data processing computational overhead.

[0062] Step S237: Calculate the adaptive voxel partitioning size based on the depth of the point cloud data and the backpressure state of the shared memory buffer.

[0063] Specifically, point cloud depth is the spatial distance to obstacles detected by the lidar, i.e., the depth value of the point cloud's three-dimensional coordinates. Shared memory backpressure status refers to the remaining storage space and data accumulation status of the shared memory buffer, used to reflect data processing pressure. A voxel is the smallest grid unit in three-dimensional space and is the basic unit for point cloud data normalization and downsampling processing.

[0064] Obtain the pre-stored point cloud depth stratification thresholds and shared memory backpressure thresholds. Specifically, the point cloud depth stratification thresholds are: near distance threshold D1 = 0m~20m, mid-distance threshold D2 = 20m~50m, and far distance threshold D3 > 50m; the shared memory backpressure thresholds are: low load threshold T1 = 50% occupancy and high load threshold T2 = 80% occupancy. The basic voxel sizes are set to near distance baseline S0 = 0.1m, mid-distance baseline S1 = 0.2m, and far distance baseline S2 = 0.4m. For each valid point cloud after removal from the current frame, iterate through each point, dividing it into near, mid, and far layers based on the detection distance. Calculate the percentage of valid point clouds in each layer relative to the total number of point clouds, obtaining the near distance percentage P0, mid-distance percentage P1, and far distance percentage P2, to determine the dominant distribution area of ​​the point cloud in the current frame. The system reads the real-time occupancy rate R of the shared memory buffer in real time and classifies the load level according to the threshold: R≤50% is low load, 50%<R<80% is medium load, and R≥80% is high load. The system outputs the current memory load coefficient K, where K=1.0 for low load, K=1.2 for medium load, and K=1.5 for high load. The higher the load, the larger the size scaling factor.

[0065] The base size is matched based on the dominant distribution area of ​​the point cloud: if the proportion of near distance is the largest (P0), it is determined to be a dense near-field target scene, and the base size S0 is matched; if the proportion of mid-distance distance is the largest (P1), it is determined to be a normal perception scene, and the base size S1 is matched; if the proportion of far distance distance is the largest (P2), it is determined to be a distant open scene, and the base size S2 is matched. The final voxel size is obtained through multiplication: final voxel side length S = matching base size × load coefficient K. Dynamic adaptation is achieved, which means that high-value near-field areas always maintain small size and high precision division regardless of load; low-value far-field areas adaptively enlarge the size to simplify data; under high load conditions, the overall voxel size is moderately enlarged to reduce the amount of data processed per frame and alleviate bus and memory pressure. After each frame of point cloud data completes one calculation, the current optimal voxel size S is saved and synchronously output to the next level point cloud segmentation module as the unique voxel division standard for the current frame. The entire frame of data is processed using uniform adaptive size regularization to ensure uniform point cloud density in a single frame. Breaking away from the limitations of traditional fixed voxel size processing, small voxels are used in key areas at close range to ensure ranging accuracy, while large voxels are used in secondary areas at long distance to simplify data. At the same time, it adapts to memory load conditions and meets the needs of PCIe 5.0 high-speed transmission and real-time read and write of shared memory.

[0066] Step S238: The removed point cloud data is divided into meshes according to the voxel division size. The removed point cloud data falling into the same voxel space are downsampled and merged to obtain preprocessed point cloud data.

[0067] Specifically, mesh segmentation involves dividing the 3D detection space into several regular cubic meshes according to the adaptive voxel size. Downsampling and merging involves merging multiple redundant point cloud data within the same voxel mesh into a single valid point cloud through mean fitting and feature optimization. The 3D space is uniformly meshed according to the calculated adaptive voxel size to construct a regular 3D voxel mesh matrix. The removed valid point cloud data is mapped to the corresponding voxel mesh, and all point cloud data within each mesh are statistically analyzed. Multiple point cloud data within the same voxel are mean-merged, calculating the mean coordinates and mean reflection intensity of the point clouds within the mesh, and replacing the original multi-point redundant data with the merged single-point data. All voxel meshes are traversed to complete the downsampling and merging of all point clouds, resulting in regular, low-redundancy, and high-precision preprocessed point cloud data. This process effectively removes redundant data from the point cloud space, significantly reducing the volume of point cloud data while preserving the 3D spatial characteristics of the environment, improving the computational efficiency of subsequent 3D mapping and collision detection, while ensuring spatial geometric accuracy and adapting to low-latency processing requirements.

[0068] Step S240, and generate image metadata corresponding to the preprocessed image data and point cloud metadata corresponding to the preprocessed point cloud data respectively. The image metadata and point cloud metadata both include sensor identifier, frame number, data length, data type and acquisition timestamp.

[0069] Specifically, image metadata describes structured information about the attributes of preprocessed image data, recording the source, timing, and specifications of the image data. Point cloud metadata describes structured information about the attributes of preprocessed point cloud data, recording the source, timing, and specifications of the point cloud data. Data length corresponds to the byte size of the preprocessed image / point cloud data, used for accurate data reading. Data type is used to distinguish the data classification of image data and point cloud data, facilitating identification and processing. The byte length of preprocessed image data and preprocessed point cloud data is statistically analyzed using FPGA. Then, type determination is performed through sensor channels and identifiers. Data transmitted via the link to the image processing logic partition is classified as image type, while data transmitted via the link to the point cloud preprocessing logic partition is classified as point cloud type, thus determining the corresponding data type. The sensor identifier, frame number, and acquisition timestamp of the corresponding data are bound and integrated to form standardized image metadata and point cloud metadata. The metadata is time-bound to the corresponding preprocessed data to ensure one-to-one correspondence and synchronous matching. Attribute annotation of preprocessed data using standardized metadata provides standardized support for subsequent structured packaging, precise reading and writing of shared memory, and parsing processing, avoiding data parsing errors.

[0070] In step S250, according to the same preset acquisition time window, the preprocessed image data, preprocessed point cloud data, image metadata and point cloud metadata are packaged into structured data blocks, and a data descriptor corresponding to the structured data blocks is generated to form the target processing data.

[0071] Specifically, the acquisition time window is a preset fixed acquisition period used to define the range of multi-sensor data acquired and processed synchronously in the same batch, ensuring the temporal correlation of the data. The structured data block is a time-matched, attribute-complete image + point cloud fusion data unit encapsulated in a unified format. The data descriptor is an index information recording the overall data volume, data type, time window number, and storage offset address of the structured data block, used by the backend module for quick data location and retrieval. By completing data filtering and structured packaging, data descriptors are generated synchronously, integrating them into standardized target processing data. Multi-source heterogeneous image and point cloud data are integrated into unified structured data blocks, achieving unified temporal sequence, format, and specifications of multi-sensor data, and adapting to PCIe 5.0 high-speed transmission and shared memory zero-copy access mechanism.

[0072] In one embodiment, preprocessed image data, preprocessed point cloud data, image metadata, and point cloud metadata are packaged into structured data blocks, including but not limited to the following steps: Step S251: Calculate the total data volume by counting the amount of image data and point cloud data within the same acquisition time window. Calculate the preprocessed data volume based on the counted amount of preprocessed image data and preprocessed point cloud data. Calculate the ratio of the preprocessed data volume to the total data volume by using the preprocessed data volume and the total data volume.

[0073] Specifically, the structured data block size represents the total byte size of all valid image data and point cloud data within the same acquisition time window. A preset data volume threshold is a maximum data volume threshold set based on PCIe 5.0 transmission bandwidth and the single-time capacity of shared memory, used to prevent data overload and congestion. For image data, the image data is scanned byte-by-byte, and the number of bytes is used as the data volume. For point cloud data, the point cloud data is multiplied by its fixed byte width to obtain the data volume. Following this method, the data volumes of image data and point cloud data within the current acquisition time window are calculated and added together to obtain the total data volume. The total byte size of all preprocessed image data and the total byte size of preprocessed point cloud data within the current acquisition time window are also calculated and added together to obtain the preprocessed data volume. The ratio of the preprocessed data volume to the total data volume is calculated to obtain the structured data block size ratio. This ratio reflects the data volume and helps predict memory and transmission pressure.

[0074] Step S252: When the data volume ratio exceeds the preset data volume threshold, retain the image blocks containing the region of interest, the near-range point cloud, and the high reflectivity point cloud, and discard the image blocks that do not contain the region of interest and the far-range low reflectivity point cloud.

[0075] Specifically, high-reflectivity point clouds are point cloud data with reflectivity exceeding a preset threshold, often corresponding to key perception targets such as road markings and hard surfaces of obstacles. Long-distance low-reflectivity point clouds are redundant point cloud data that are far away, have low reflectivity, and extremely low perception value. The preset data volume threshold indicates the boundary of the transmitted data proportion, which can be 50%. When the data volume ratio exceeds the preset threshold, it indicates that the transmitted data is too large and requires further filtering. Image patches containing regions of interest, near-range point clouds, and high-reflectivity point clouds are retained, while image patches not containing regions of interest and long-distance low-reflectivity point clouds are discarded, thereby simplifying the transmitted data, ensuring accurate perception, and reducing latency and bandwidth consumption.

[0076] It should be noted that when the data volume ratio does not exceed the preset data volume threshold, the corresponding data can be directly packaged into structured data to obtain the target processing data.

[0077] Step S253: Package the image blocks of the region of interest and the corresponding image metadata, as well as the near-field point cloud, the high-reflectivity point cloud and the corresponding point cloud metadata, into a structured data block.

[0078] Specifically, structured data packaging is the process of encapsulating and integrating the filtered core valid data and corresponding metadata according to a preset fixed format to form standardized data blocks that can be directly read, written, and transmitted. Valid image blocks and valid point cloud data (near-range point clouds and high-reflectivity point clouds), along with their corresponding image metadata and point cloud metadata, are collected and integrated in a format where metadata comes first and valid data follows. Data block numbers and time window identifiers are added to generate standardized structured data blocks, and descriptors recording the attributes of these data blocks are generated simultaneously, forming the target processing data. This standardized integration and encapsulation of multi-source data ensures a unified output format for the target processing data, laying the foundation for subsequent low-latency data sharing and computation.

[0079] Step S300: Write the target processing data into a shared memory buffer. The shared memory buffer is obtained by mapping the FPGA's acquisition buffer, the AI ​​processing module's calculation buffer, and the central processing unit's memory space to the same virtual address space.

[0080] In one embodiment, the shared memory buffer is a globally unified memory space constructed using PCIe 5.0 memory mapping technology, integrating FPGA acquisition cache, AI computing cache, and CPU memory to achieve interoperability and sharing of memory space among multiple modules. The virtual address space is a uniformly allocated global virtual memory address range, to which the physical memory of each hardware module is mapped, achieving address unification and data interoperability. Through the collaborative work of the FPGA's PCIe 5.0 controller and the CPU's memory management, the address mapping of the FPGA acquisition buffer, AI processing module computing buffer, and CPU memory space is completed, unifying the mapping of these three types of physical memory to the same global virtual address space, thus constructing a globally shared memory buffer. The FPGA directly writes the packaged target processing data to the corresponding virtual address location in the shared memory buffer via the PCIe 5.0 high-speed bus. The AI ​​processing module and CPU can directly and in parallel read the target processing data in the shared memory through the corresponding virtual address, without the need for data copying and forwarding operations. By using PCIe 5.0 shared memory mapping technology, the latency of multiple copies and forwards in traditional data transmission is eliminated, enabling data to be written once and read by multiple modules with zero copies, compressing the end-to-end data processing latency to within milliseconds; at the same time, the multi-module parallel reading mode greatly improves the bus bandwidth utilization, solves the bandwidth bottleneck of multi-sensor parallel operation, and maximizes the hardware advantages of PCIe 5.0's high bandwidth and high speed.

[0081] In step S400, the AI ​​processing module and the central processing unit simultaneously read the target processing data, the AI ​​processing module recognizes the pre-processed image data of the target processing data to obtain the recognition result, and the recognition result is transmitted to the central processing unit.

[0082] In one embodiment, after the FPGA writes the complete target processing data into the global shared memory buffer and marks the data as ready, the AI ​​processing module and the central processing unit (CPU) read the same frame of target processing data in parallel based on the PCIe 5.0 zero-copy access mechanism. The AI ​​processing module independently calls its built-in inference model to perform recognition and inference on the preprocessed image data within the target processing data, outputs the image recognition result, and transmits the image recognition result to the CPU in real time with low latency via the PCIe 5.0 high-speed link, completing the cross-hardware module delivery of two-dimensional semantic perception information and providing pre-input for subsequent multi-source data fusion decision-making. The AI ​​processing module is a hardware acceleration unit equipped with dedicated AI inference computing power, supporting hardware-accelerated inference of deep learning models. It is specifically responsible for two-dimensional image semantic parsing and does not participate in three-dimensional point cloud computation or system decision control. The CPU is the main control and decision-making unit, responsible for timing analysis, multi-source data fusion, risk assessment, control command generation, and overall task scheduling. The image recognition result is structured semantic data output by the AI ​​processing module, which includes target category, two-dimensional bounding box, confidence score, associated frame number, and hardware acquisition timestamp. It is used to provide semantic labels for the three-dimensional point cloud space and realize image-point cloud semantic fusion.

[0083] After the target processing data is written, independent data ready interrupt signals are sent to the AI ​​processing module and the central processing unit (CPU) via the PCIe 5.0 bus, and the two computing modules synchronously trigger the reading action. The AI ​​processing module and CPU parse the virtual memory offset address, total data length, and data type identifier of the current frame data based on the data descriptor in the shared memory. They then directly read the complete target processing data through a unified virtual address space, without any CPU core copying, data forwarding, or secondary protocol parsing. Based on the data type identifier, the AI ​​processing module automatically filters preprocessed point cloud data and redundant metadata, loading only the preprocessed image data and its corresponding image metadata, reducing unnecessary computing power consumption and focusing on the image inference task. A preset lightweight, high-precision target detection model is loaded, and focused inference calculations are performed on image blocks of interest in the preprocessed image. Lightweight verification inference is performed on highly compressed static background regions, and structured recognition results, including target category, 2D pixel coordinate bounding box, recognition confidence, frame number, and timestamp, are output frame by frame. The AI ​​processing module rebinds the recognition results with the original image hardware acquisition timestamps and frame numbers, ensuring a one-to-one correspondence between the recognition results and the original acquired data. The recognition results are pushed to the central processing unit (CPU) in real time via a high-speed PCIe 5.0 point-to-point channel. The CPU receives the data and performs time-series caching and archiving, awaiting fusion with preprocessed point cloud data from the same frame. A zero-copy parallel reading architecture using PCIe 5.0 transmits the recognition results to the CPU, providing standardized and traceable two-dimensional semantic input for subsequent high-precision spatiotemporal alignment fusion.

[0084] The preset lightweight high-precision object detection model is an improved lightweight YOLOv8n object detection model, adapted to FPGA+AI low-computing-power, low-latency inference scenarios. The specific model structure is as follows: the backbone network uses MobileNetV3-Large lightweight feature extraction, replacing the original YOLOv8n ordinary convolutions, and uses depthwise separable convolutions throughout to reduce computational overhead, combined with ECA (Efficient Channel Accelerator). The lightweight channel attention module enhances foreground target feature extraction and suppresses complex background noise without increasing computational load. The feature fusion network replaces the native C2f module with a lightweight C2f-GLSA module, integrating a global-local spatial aggregation mechanism to adapt to multi-scale feature fusion of small targets (pedestrians, obstacles) at long distances and large targets at close range in unmanned scenes. The detection head adopts a lightweight decoupled detection head, which lightweightly splits the classification branch and regression branch to reduce redundant parameters. The loss function replaces the conventional CIoU loss with SIoU loss, which accelerates model convergence speed, improves the localization accuracy of small targets, and adapts to target detection in high-speed moving scenes. The model quantization and compression are processed by INT8 fixed-point quantization, inter-layer pruning, and redundant parameter removal, resulting in a model volume compression of more than 75%. It is adapted to the hardware inference architecture of the AI ​​processing module without significant loss of accuracy and can stably achieve real-time inference of more than 30FPS. It focuses on inference calculation for image blocks of interest in the preprocessed image and performs lightweight verification inference on highly compressed static background areas. It outputs the recognition results frame by frame, including target category, two-dimensional pixel coordinate bounding box, recognition confidence, frame number, and timestamp.

[0085] In step S500, the central processing unit performs comprehensive recognition processing on the preprocessed point cloud data of the recognition results and target processing data to obtain the discrimination results, and generates control commands based on the discrimination results.

[0086] In one embodiment, the comprehensive identification and processing refers to the central processing unit's fusion of two-dimensional image semantic information and three-dimensional point cloud geometric information, compensating for asymmetric delays in multiple hardware links, correcting attitude deviations, and completing a multi-source heterogeneous data fusion process for spatial semantic alignment and dynamic risk assessment. The discrimination result is a quantitative judgment conclusion on the existence state of obstacles in the current environment, their relative motion trends, and collision risk levels, including four categories: safe passage, risk warning, impending collision, and emergency avoidance. The control command is a directly executable hardware control signal generated based on the risk discrimination result, including instruction types such as deceleration control, emergency braking, steering avoidance, and audible and visual warnings. The central processing unit uses a globally unified physical hardware timestamp as the timing reference, sequentially executing asymmetric time difference calculation, dynamic aggregation window comparison, spatiotemporal attitude alignment fusion, and continuous frame collision assessment. Under abnormal operating conditions, it executes bypass backup avoidance logic, and finally outputs a unique discrimination result and generates corresponding control commands to adjust the driving state of the unmanned equipment. Dynamic adaptation is performed to address the asymmetric engineering characteristics of inconsistent processing times between the image inference link and the point cloud acquisition link. This ensures both high accuracy of image-point cloud fusion under normal operating conditions and reliable risk avoidance under abnormal timing conditions, significantly improving the environmental adaptability and operational robustness of the unmanned perception system and achieving a high-precision, high-safety, and low-latency intelligent decision-making closed loop.

[0087] In one embodiment, a central processing unit is used to perform comprehensive recognition processing on the preprocessed point cloud data of the recognition results and target processing data to obtain a discrimination result, including but not limited to the following steps: Step S510: Based on the physical hardware timestamp, the data in the shared memory buffer is parsed to obtain the asymmetric time difference between the link of the recognition result and the link of the preprocessed point cloud data.

[0088] Specifically, the physical hardware timestamp, a high-precision microsecond-level time marker uniformly tagged by the FPGA physical layer clock, serves as the sole timing reference for all sensor data, preprocessed data, and inference results. The image recognition result link refers to the complete data processing and transmission link from camera acquisition, FPGA image preprocessing, AI inference, and result transmission to the CPU. The preprocessed point cloud data link refers to the complete data processing link from LiDAR acquisition, FPGA point cloud preprocessing, and writing to shared memory. The asymmetric time difference, measured in microseconds, is the frame-level timing offset difference caused by the inherent processing latency difference between the image link (which includes AI inference time) and the point cloud link (which only includes hardware preprocessing time).

[0089] The central processing unit (CPU) parses the hardware acquisition timestamp T1 bound to the current frame's image recognition result, and simultaneously parses the hardware acquisition timestamp T0 corresponding to the preprocessed point cloud data in the same frame. It reads the system-calibrated inherent inference delay ΔT_AI of the image link and the fixed hardware preprocessing delay ΔT_LiDAR of the point cloud link. The asymmetric time difference ΔT between the two links in the current frame is calculated using the formula ΔT=(T1+ΔT_AI)−(T0+ΔT_LiDAR). The calculated asymmetric time difference is then filtered and stabilized to eliminate single-frame abrupt errors, outputting a stable temporal offset value. This quantifies the inherent temporal asymmetry bias of the image and point cloud links, eliminating multi-source data fusion errors from a temporal perspective, and providing precise quantitative parameters for subsequent pose compensation and accurate alignment.

[0090] Step S520: Compare the asymmetric time difference with the preset dynamic aggregation window in real time.

[0091] Specifically, the dynamic aggregation window is a preset time offset safety threshold range, a variable time window adapted to the dynamic driving state of unmanned equipment, used to determine whether the dual-link data of the current frame meets the conditions for spatiotemporal fusion. Real-time comparison is a frame-by-frame, microsecond-level numerical range judgment operation, used to distinguish between normal timing conditions and timing abnormal conditions. Dynamic parameter configuration is read to obtain the dynamic aggregation window range corresponding to the current vehicle speed and attitude change rate. Under normal conditions, the window range is set to [-8ms, 8ms], and adaptively widened to [-12ms, 12ms] under high-speed motion conditions. The real-time asymmetric time difference ΔT is compared with the upper and lower limits of the dynamic aggregation window. If ΔT is within the window range, the timing is judged to be normal, and the process proceeds to step S530; if ΔT exceeds the window range, the timing is judged to be abnormal, and the process jumps to step S550. By setting the dynamic aggregation window, it is first determined whether fusion is possible, so as to use accurate data and give a more accurate judgment result.

[0092] Step S530: When the asymmetric time difference is within the dynamic aggregation window, a three-dimensional spatial grid map is constructed using preprocessed point cloud data. Alignment compensation is performed based on the historical pose corresponding to the asymmetric time difference, and the recognition result corresponding to the alignment compensation pose is projected onto the three-dimensional spatial grid map for alignment, thus obtaining the aligned grid map.

[0093] Specifically, the 3D spatial grid map is a structured 3D environment model built with voxels as the smallest unit. It is generated by meshing preprocessed point cloud data and is used to accurately describe the spatial location, depth, and size information of obstacles. Historical attitude refers to the inertial attitude parameters of the unmanned equipment at historical moments corresponding to asymmetric time differences, such as heading angle, pitch angle, roll angle, and displacement offset. Alignment compensation is a correction process that uses historical attitude parameters to reverse-correct the current spatial coordinates to address equipment attitude deviations caused by temporal offsets. Semantic projection alignment is a fusion process that maps and matches the target semantic labels recognized from the 2D image to their corresponding spatial locations on the 3D grid.

[0094] When the asymmetric time difference is within the dynamic aggregation window, data alignment processing is possible. In the central processing unit, based on the preprocessed point cloud data, a three-dimensional spatial mesh is created according to the standard voxel size of 0.1m×0.1m×0.1m. The point cloud depth, coordinates, and reflection intensity features within each voxel are statistically analyzed to generate a structured three-dimensional spatial grid map. Based on the offset duration of the asymmetric time difference in the current frame, the corresponding historical equipment attitude data stored in the inertial navigation unit is retrieved in reverse, including three-axis attitude angles, displacement offsets, and driving speed parameters. An attitude compensation matrix is ​​constructed using the historical attitude parameters to perform reverse correction on the spatial coordinates of the current three-dimensional grid map, offsetting the spatial position deviation caused by equipment movement within the time-series offset period, and achieving attitude spatiotemporal alignment of different link data. Based on the camera-radar joint calibration parameters and dynamic projection relationship, the target bounding box, semantic category, and confidence information in the image recognition results are projected and mapped to the corresponding voxel positions in the compensated three-dimensional grid map. Two-dimensional semantic labels and three-dimensional spatial features are bound to the corresponding voxels to generate an aligned grid map that simultaneously possesses geometric spatial information and semantic classification information. By using temporal deviation attitude compensation technology, high-precision fusion of two-dimensional semantics and three-dimensional space is achieved. The constructed semantic grid map has both target category information and spatial location information. Compared with single image or single point cloud data, the environmental perception dimension is richer and the positioning accuracy is higher, providing high-precision fused data support for subsequent collision risk assessment.

[0095] Step S540: Analyze the aligned raster map. When consecutive frames are in the same voxel and the displacement of the three-dimensional depth set features exceeds the collision warning threshold, obtain the collision discrimination result.

[0096] Specifically, consecutive frames are fused raster maps of multiple consecutive frames in a time series, used to determine the dynamic movement trend of targets and avoid misjudgments due to noise in a single frame. Voxel 3D depth ensemble features refer to the mean depth, variance depth, and spatial distribution characteristics of all point clouds within a single voxel, used to characterize the spatial position and shape of obstacles. Displacement is the difference in the change of obstacle depth parameters within the same voxel in adjacent frames, used to characterize the approach speed and displacement trend of obstacles relative to the equipment. The collision warning threshold is a preset depth displacement critical value, used to quantitatively determine whether an obstacle poses a collision risk; the preset threshold is 0.2m / frame.

[0097] The central processing unit (CPU) caches a grid map aligned with three previous frames and performs spatial location correlation matching on all valid target voxels in the current frame and historical frames to identify the set of voxels in consecutive frames corresponding to the same obstacle. It calculates the mean change in 3D depth for the same target voxel frame by frame and counts the cumulative change in depth displacement over three consecutive frames. When the depth displacement of the same target voxel in three consecutive frames is greater than 0.2 m / frame, and the displacement trend is a continuous approach towards the equipment, the obstacle is determined to be a dynamically approaching risk target. After confirming the risk, the CPU outputs the final judgment result "[Dynamic obstacle exists ahead, collision risk exists]" and triggers the corresponding deceleration and braking control command generation logic. A multi-frame continuous feature verification mechanism is adopted to avoid misjudgments and false triggers caused by single-frame point cloud noise and image misidentification, significantly improving the accuracy of collision risk assessment. By quantifying dynamic trends through voxel-level depth feature changes, static obstacles and dynamically approaching obstacles can be accurately identified, achieving refined risk classification and ensuring the safety of unmanned equipment operation.

[0098] In one embodiment, after comparing the asymmetric time difference with a preset dynamic aggregation window in real time, the data processing method based on PCIe 5.0 and shared memory mapping further includes, but is not limited to, the following steps: Step S550: When the asymmetric time difference exceeds the dynamic aggregation window, the central processing unit is set to a suspended waiting judgment state, the recognition result is discarded, and the geometric boundary limit of the preprocessed point cloud data is used to generate the risk avoidance judgment result.

[0099] Specifically, when the asymmetric time difference exceeds the dynamic aggregation window, it indicates a severe temporal misalignment between the image and point cloud data, resulting in an abnormal state where effective spatiotemporal fusion cannot be completed. The "suspend and wait for judgment" state pauses the regular fusion decision logic, retaining only the safety-assurance decision logic to avoid erroneous decisions caused by incorrect fusion. Geometric boundary limits are the limiting spatial parameters obtained from preprocessed point cloud data parsing, such as the minimum safe distance to obstacles, the maximum coverage boundary, and the location of the nearest obstacle point. The risk avoidance judgment result is a conservative safety judgment result generated based on pure point cloud geometric features, used for fallback protection in abnormal operating conditions.

[0100] When the asymmetric time difference exceeds the dynamic aggregation window range for three consecutive frames, the central processing unit locks the timing anomaly state, enters a suspended waiting judgment mode, and suspends image semantic fusion and regular risk judgment logic. It proactively discards the current frame and all image recognition results with timing errors in the cache queue to avoid misaligned semantic data interfering with decision-making. It analyzes the preprocessed point cloud data and extracts extreme geometric parameters such as the nearest distance, left and right boundaries, height range, and obstacle density of obstacles ahead. Based on the obstacle geometric boundary extreme parameters, it determines that there is a risk of a near-distance obstacle ahead and directly generates an emergency avoidance judgment result. Based on the avoidance judgment result, it prioritizes outputting conservative safety control commands such as deceleration, emergency braking, and prohibition of further movement, waiting for the timing to return to normal before reverting to the regular high-precision fusion decision-making mode. A hardware-level safety fallback mechanism is designed for extreme abnormal conditions such as multi-link timing errors and fusion failures. It relies on highly stable laser point cloud geometric data to make conservative decisions, improving safety and fault tolerance under extreme conditions to ensure safety.

[0101] like Figure 3 As shown in the figure, this application provides a data processing system 100 based on PCIe 5.0 and shared memory mapping. This PCIe 5.0 and shared memory mapping data processing system 100 includes an FPGA integrating multiple PCIe 5.0 interfaces, an AI processing module, and a central processing unit. The system 100 acquires data to be processed from various sensors acquired in parallel by the FPGA through a data acquisition module 110. The data to be processed includes image data and point cloud data. A data preprocessing module 120 performs image preprocessing on the image data to obtain preprocessed image data, and performs data preprocessing on the point cloud data to obtain preprocessed point cloud data. The preprocessed image data and preprocessed point cloud data are then combined. The data is processed into target data. The target processing data is written into a shared memory buffer using a storage mapping module 130. The shared memory buffer is obtained by mapping the acquisition buffer of the FPGA, the calculation buffer of the AI ​​processing module, and the memory space of the central processing unit to the same virtual address space. The target processing data is read simultaneously by the AI ​​processing module and the central processing unit using a read recognition module 140. The AI ​​processing module recognizes the preprocessed image data of the target processing data to obtain the recognition result, and transmits the recognition result to the central processing unit. The control generation module 150 uses the central processing unit to perform comprehensive recognition processing on the recognition result and the preprocessed point cloud data of the target processing data to obtain the discrimination result, and generates control commands based on the discrimination result.

[0102] It should be noted that the data acquisition module 110 is connected to the data preprocessing module 120, the data preprocessing module 120 is connected to the storage mapping module 130, the storage mapping module 130 is connected to the read recognition module 140, and the read recognition module 140 is connected to the control generation module 150.

[0103] It should also be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.

[0104] This application also discloses an electronic device. (See reference...) Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. The electronic device 500 may include: at least one processor 501, at least one network interface 504, a user interface 503, a memory 505, and at least one communication bus 502.

[0105] The communication bus 502 is used to enable communication between these components.

[0106] The user interface 503 may include a display screen and a camera. Optionally, the user interface 503 may also include a standard wired interface and a wireless interface.

[0107] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0108] The processor 501 may include one or more processing cores. The processor 501 connects to various parts of the server using various interfaces and lines, and performs various server functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory 505, and by calling data stored in memory 505. Optionally, the processor 501 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array. The processor 501 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and Modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 501.

[0109] The memory 505 may include random access memory (RAM) or read-only memory. Optionally, the memory 505 may include a non-transitory computer-readable storage medium. The memory 505 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 505 may also be at least one storage device located remotely from the aforementioned processor 501. (Refer to...) Figure 4 The memory 505, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program based on a data processing method using PCIe 5.0 and shared memory mapping.

[0110] exist Figure 4In the illustrated electronic device 500, the user interface 503 is mainly used to provide an input interface for the user and to acquire user input data; while the processor 501 can be used to call an application program stored in the memory 505 that performs a data processing method based on PCIe 5.0 and shared memory mapping. When executed by one or more processors 501, the electronic device 500 performs one or more methods as described in the above embodiments. It should be noted that, for the foregoing method embodiments, for the sake of simplicity, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0111] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0112] In the various embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between apparatuses or units may be electrical or other forms.

[0113] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0114] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0115] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, 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. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, portable hard drives, magnetic disks, or optical disks.

[0116] The above are merely exemplary embodiments of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Other embodiments of this disclosure will readily conceive of those skilled in the art upon consideration of the specification and the disclosure of practical truths.

[0117] This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described in this disclosure. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.

Claims

1. A data processing method based on PCIe 5.0 and shared memory mapping, characterized in that, A method for a data processing system based on PCIe 5.0 and shared memory mapping, the data processing system including an FPGA integrating multiple PCIe 5.0 interfaces, an AI processing module, and a central processing unit, comprising: Acquire the data to be processed from each sensor acquired in parallel using the FPGA, the data to be processed including image data and point cloud data; The image data is preprocessed to obtain preprocessed image data, the point cloud data is preprocessed to obtain preprocessed point cloud data, and the preprocessed image data and the preprocessed point cloud data are combined to form target processing data. The target processing data is written into a shared memory buffer, wherein the shared memory buffer is obtained by mapping the acquisition buffer of the FPGA, the calculation buffer of the AI ​​processing module, and the memory space of the central processing unit to the same virtual address space; The AI ​​processing module and the central processing unit simultaneously read the target processing data, the AI ​​processing module recognizes the preprocessed image data of the target processing data to obtain a recognition result, and the recognition result is transmitted to the central processing unit. The central processing unit performs comprehensive recognition processing on the recognition result and the preprocessed point cloud data of the target processing data to obtain a discrimination result, and generates control commands based on the discrimination result.

2. The method according to claim 1, characterized in that, The step of performing image preprocessing on the image data to obtain preprocessed image data, and performing data preprocessing on the point cloud data to obtain preprocessed point cloud data, includes: Obtain the sensor identifier, the sequence number of the acquired frame, and the acquisition timestamp of each of the aforementioned sensors; Based on the sensor identifier, the frame number, and the acquisition timestamp, the image data is distributed to the image preprocessing logic partition within the FPGA, and the point cloud data is distributed to the point cloud preprocessing logic partition within the FPGA. Based on the same acquisition timestamp, the image preprocessing process and the point cloud preprocessing process are executed in parallel in different logical partitions to obtain the preprocessed image data and the preprocessed point cloud data. Image metadata corresponding to the preprocessed image data and point cloud metadata corresponding to the preprocessed point cloud data are generated respectively. The image metadata and the point cloud metadata both include the sensor identifier, the frame number, the data length, the data type and the acquisition timestamp. According to the same preset acquisition time window, the preprocessed image data, the preprocessed point cloud data, the image metadata, and the point cloud metadata are packaged into structured data blocks, and data descriptors corresponding to the structured data blocks are generated to form target processing data.

3. The method according to claim 2, characterized in that, The image preprocessing process includes: Within the FPGA, a dynamic projection mapping table from three-dimensional space to two-dimensional pixels is constructed based on the preset sensor calibration extrinsic parameters, the real-time driving vector, and the camera field of view parameters. The region of interest is extracted from the image data according to the dynamic projection mapping table, and a region mask is generated. The region mask is used to dynamically crop the non-region of interest, and the region of interest is marked to obtain the cropped image data. The cropped image data is divided into multiple image blocks, and pixel filtering is performed on the multiple image blocks to obtain filtered image blocks; The filtered image blocks are compared with adjacent pixels. The image blocks that are located in the non-interest region and whose change relative to the previous frame is continuously lower than the background jitter threshold are used as static background image blocks. Based on the region of interest (ROI) identifiers of the image blocks in adjacent frames, high compression rate encoding is applied to static background image blocks, and lossless or low-loss compression encoding is applied to image blocks containing ROIs to obtain the preprocessed image data.

4. The method according to claim 2, characterized in that, The point cloud preprocessing process includes: Within the FPGA, invalid points are removed from the point cloud data based on a preset distance threshold, a preset reflection intensity threshold, and / or the effective field of view of the sensor, to obtain the removed point cloud data. Based on the depth of the point cloud data and the back pressure state of the shared memory buffer, an adaptive voxel partitioning size is calculated; The removed point cloud data is divided into grids according to the voxel division size. The removed point cloud data falling into the same voxel space are downsampled and merged to obtain the preprocessed point cloud data.

5. The method according to any one of claims 3 or 4, characterized in that, The step of packaging the preprocessed image data, the preprocessed point cloud data, the image metadata, and the point cloud metadata into a structured data block includes: The total data volume is obtained by statistically analyzing the data volume of the image data and the data volume of the point cloud data within the same acquisition time window. Based on the statistically analyzed data volume of the preprocessed image data and the data volume of the preprocessed point cloud data, the preprocessed data volume is obtained. Based on the preprocessed data volume and the total data volume, the ratio of the data volume of the structured data block is obtained. When the data volume ratio exceeds the preset data volume threshold, the image blocks containing the region of interest, the near-range point cloud, and the high reflectivity point cloud are retained, while the image blocks of non-regions of interest and the far-range low reflectivity point cloud are discarded. The image blocks of the region of interest and the corresponding image metadata, as well as the near-field point cloud, the high-reflectivity point cloud and the corresponding point cloud metadata, are packaged into the structured data block.

6. The method according to claim 1, characterized in that, The process of using the central processing unit to comprehensively identify and process the preprocessed point cloud data of the identification result and the target processing data to obtain a discrimination result includes: Based on the physical hardware timestamp, the data in the shared memory buffer is parsed to obtain the asymmetric time difference between the link of the recognition result and the link of the preprocessed point cloud data. The asymmetric time difference is compared with a preset dynamic aggregation window in real time. When the asymmetric time difference is within the dynamic aggregation window, a three-dimensional spatial grid map is constructed using the preprocessed point cloud data. Alignment compensation is performed based on the historical pose corresponding to the asymmetric time difference, and the alignment compensation pose corresponding to the recognition result is projected onto the three-dimensional spatial grid map for alignment, resulting in an aligned grid map. The aligned raster map is analyzed, and when consecutive frames are in the same voxel and the displacement of the three-dimensional depth set features exceeds the collision warning threshold, a collision determination result is obtained.

7. The method according to claim 6, characterized in that, After comparing the asymmetric time difference with a preset dynamic aggregation window in real time, the method further includes: When the asymmetric time difference exceeds the dynamic aggregation window, the central processing unit is set to a suspended waiting state, the recognition result is discarded, and the geometric boundary limit of the preprocessed point cloud data is used to generate a risk avoidance judgment result.

8. A data processing system based on PCIe 5.0 and shared memory mapping, characterized in that, The data processing system includes an FPGA integrating multiple PCIe 5.0 interfaces, an AI processing module, and a central processing unit. The system also includes: The data acquisition module is used to acquire the data to be processed from each sensor acquired in parallel using the FPGA. The data to be processed includes image data and point cloud data. The data preprocessing module is used to perform image preprocessing on the image data to obtain preprocessed image data, perform data preprocessing on the point cloud data to obtain preprocessed point cloud data, and combine the preprocessed image data and the preprocessed point cloud data to form target processing data. The storage mapping module is used to write the target processing data into a shared memory buffer, wherein the shared memory buffer is obtained by mapping the acquisition buffer of the FPGA, the calculation buffer of the AI ​​processing module, and the memory space of the central processing unit to the same virtual address space; The reading and recognition module is used to simultaneously read the target processing data using the AI ​​processing module and the central processing unit, use the AI ​​processing module to recognize the preprocessed image data of the target processing data, obtain the recognition result, and transmit the recognition result to the central processing unit. The control generation module is used to perform comprehensive recognition processing on the preprocessed point cloud data of the recognition result and the target processing data using the central processing unit to obtain a discrimination result, and generate control commands based on the discrimination result.

9. An electronic device, characterized in that, The device includes a processor, a memory, a user interface, a communication bus, and a network interface. The processor, the memory, the user interface, and the network interface are respectively connected to the communication bus. The memory is used to store instructions. The user interface and the network interface are used to communicate with other devices. The processor is used to execute the instructions stored in the memory to cause the electronic device to perform the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed, perform the method as described in any one of claims 1-7.