This repository contains a ROS package that captures images from the laptop camera using OpenCV and publishes them on a ROS topic.
- Ubuntu 18.04 or later
- ROS Melodic or later
- OpenCV
- cv_bridge
- sensor_msgs
- Clone the repository:
-
git clone https://github.com/abelxmendoza/ComputerVision-ROS-LaptopCamera.git
- Build the package:
-
cd ComputerVision-ROS-LaptopCamera/catkin_ws catkin_make
- Run the camera_publisher_node.py file to start capturing images from the laptop camera and publishing them on the "camera_image" topic:
-
rosrun camera_publisher camera_publisher_node.py
- View the published images using an image viewer such as rviz or image_view: span
-
rosrun image_view image_view image:=/camera_image
This project is licensed under the MIT License - see the LICENSE file for details.
This project was inspired by the ROS OpenCV Camera package.