5.2.7 Tools
Image Publishing Tool
Introduction
The Image Publishing Tool supports reading local image or video files in batches and publishing them in ROS message, thereby improving algorithm debugging and deployment efficiency.
For image publishing, it supports reading JPEG/JPG/PNG/NV12 format images and publishing compressed images or converting compressed images to NV12 format for publishing.
For video publishing, it supports H264/H265/MP4 formats. After reading the video file, it extracts the relevant video stream for publishing.
Code repository: (https://github.com/D-Robotics/hobot_image_publisher.git)
Supported Platforms
| Platform | System |
|---|---|
| RDK X3, RDK X3 Module | Ubuntu 20.04 (Foxy), Ubuntu 22.04 (Humble) |
| RDK X5, RDK S100 | Ubuntu 22.04 (Humble) |
Preparations
RDK
-
The RDK has been burned with the Ubuntu 20.04/22.04 system image provided by D-Robotics.
-
The RDK has successfully installed tros.b.
-
The RDK can be accessed via network from a PC.
Usage of a image
Read a local NV12 image in a loop and publish it. Use the image codec module to compress the image and encode it into JPEG format, and display the image on the PC's web interface.