rsmohamad / mjpeg_cam

An alternative to usb_cam package for grabbing mjpeg frames from a webcam
7 stars 7 forks source link

mjpeg_cam

Overview

This package captures MJPEG video stream from usb cameras. Unlike the usb_cam package, this driver copies the JPEG data to the CompressedImage message directly. There is no extra overhead from decoding and re-encoding the image. So, only compressed images are published. This driver is suitable for applications where the images are captured by a low power device (e.g. the Raspberry Pi) and sent to a remote node for further processing.

Installation

Building from Source

Dependencies

To build from source, clone the latest version from this repository into your catkin workspace and compile the package using catkin_make.

Usage

Run the main node with

roslaunch mjpeg_cam mjpeg_cam_run.launch

Nodes

mjpeg_cam

Captures video stream from a usb camera and publishes the images.

Published Topics

Parameters

The exposure, brightness, and autoexposure settings are dynamically reconfigurable. Simply run rosrun rqt_reconfigure rqt_reconfigure and select the node name (default: "mjpeg_cam") to access these settings.