A ROS package for saving images to create a dataset for deep learning purposes. As a feature of this package, photos are saved every 5 seconds, allowing adjustments such as angles to be made during that time.
- ROS OS
# move catkin_ws/src
$ cd ~/catkin_ws/src
# git clone this package
$ git clone https://github.com/Jiahao9/image_saver.git
# build this package
$ cd ~/catkin_ws && catkin_make
Camera shutter click sound
# install pip
$ sudo apt-get install python3-pip
# install pygame
$ pip3 install pygame
# First, launch your camera driver
# Then, run the node
$ roscore
$ rosrun image_saver image_saver_node.py
- Please change the topic of the image you want to capture to /rgb/image_raw in the image_saver_node.py file.