Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjlee111/image_compressed
Auto Image Compressor. sensor_msgs/Image to sensor_msgs/CompressedImage ROS 1&2 compatible
https://github.com/mjlee111/image_compressed
image-compression ros1 ros2 sensor-msgs
Last synced: 10 days ago
JSON representation
Auto Image Compressor. sensor_msgs/Image to sensor_msgs/CompressedImage ROS 1&2 compatible
- Host: GitHub
- URL: https://github.com/mjlee111/image_compressed
- Owner: mjlee111
- License: mit
- Created: 2024-08-02T03:50:20.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-08-13T02:33:05.000Z (3 months ago)
- Last Synced: 2024-08-13T03:56:23.894Z (3 months ago)
- Topics: image-compression, ros1, ros2, sensor-msgs
- Language: C++
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Image Compressed ROS Package
## ROS2 Support Available
branch - ros2## Overview
The `image_compressed` package is a ROS node designed to subscribe to image topics, compress the images using JPEG encoding, and publish the compressed images to new topics. This package is useful for reducing the bandwidth usage when transmitting images over a ROS network.## Features
- Subscribes to all available `sensor_msgs/Image` topics.
- Compresses images using JPEG encoding with configurable quality.
- Publishes the compressed images to new topics with a `/compressed` suffix.
- Automatically updates the list of image topics and handles new or lost topics dynamically.## Dependencies
- ROS (Robot Operating System)
- OpenCV
- cv_bridge## Installation
1. Make sure you have ROS installed on your system.
2. Install the required dependencies:
```bash
sudo apt-get install ros--cv-bridge ros--image-transport
sudo apt-get install libopencv-dev
```
3. Clone the `image_compressed` package into your catkin workspace:
```bash
cd ~/catkin_ws/src
git clone
cd ~/catkin_ws
catkin_make
```## Usage
To run the `image_compressed` node, use the following command:
```bash
rosrun image_compressed image_compressed_node
```## Configuration
The JPEG quality for image compression can be configured through a ROS parameter. The default quality is set to 95.