Tested on Ubuntu 16.04 LTS
Author: @alkari
The fastest way to run is using Docker. Once installed, camdetect.sh script is provided to quickly run a container and launch the application. Video capture will be stored in your /tmp folder.
git clone https://github.com/tensorflow-northwest/camdetect.git
cd camdetect
chmod +x camdetect.sh
./camdetect.sh
############################################################
xhost +
docker run -it --rm --privileged --env DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro alkari/camdetect python3 camdetect/camdetect.py
docker run -it --rm --privileged --env DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro -p 8888:8888 alkari/camdetect /bin/bash
docker run -it --rm -p 127.0.0.1:8888:8888 alkari/camdetect sh -c "jupyter notebook --ip=* --allow-root --no-browser"
############################################################
Note: Could take up to an hour to complete.
git clone https://github.com/tensorflow-northwest/camdetect.git
cd camdetect
chmod +x install_detect.sh
sudo bash install_detect.sh