Now including ROS, tensorflow/models for Object Detection API and MobileNet for Detection
- Install Docker on your Raspberry Pi.
curl -sSL get.docker.com | sh
sudo usermod -aG docker pi
- log out, then log back in again for the change to take effect
sudo systemctl start docker
- Clone this repository into a directory of your choice
git clone https://github.com/esahin90/rpi-docker-ros-tensorflow.git
- Build the image
cd rpi-docker-tensorflow/build-tensor-pi/
docker build -t='yourName/rpi-docker-tensorflow' .
docker run -p 8080:8080 --device /dev/yourCamera yourName/ros-tensor
This run instruction expects a directory called myNotebooks within your home directory.
If you save an IPython notebook to the myNotebooks
sub-directory
while running your container, it will get saved to the myNotebooks
directory on your Pi.
Notebooks saved to that directory will be persistent - in other words, they will still be there when the container is stopped and restarted.
docker run -it -p 8888:8888 -v ~/myNotebooks:/notebooks/myNotebooks yourName/ros-tensorflow /run_jupyter.sh
Open a browser on http://raspberrypi:PORT
where raspberrypi is the
hostname of the Pi on which the docker image is running, or on
http://localhost:PORT
on the Pi itself.
8080 - Web-Video-Server
8888 - Jupyter Notebook
docker ps
docker stop containerID
or
CTRL-C for Jupyter Notebook
- Docker: http://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/
- Base image: from fjctp/armf-ros-kinetic-base
- Pi tensorflow whl file from Sam Abrahm's Github project
- Notebooks and notebook config from The Tensorflow Docker Build on Github
- Fork: from romilly/rpi-docker-tensorflow
- SSD MobileNet v1 coco
- ROS Package: cv_camera, cv_bridge, web_video_server