In order to use the evaluate the code in this repo for the alpha release, please follow the following instructions
- Clone the repo:
mkdir ~/Street-Watch
git clone https://github.com/PavementPrometheus/Street-Watch.git ~/Street-Watch
- Follow the below sections for each portion of the release
-
Download docker compose (desktop/toolbox)
-
a. Run the docker container (assuming from linux)
sudo dockerd &
cd ~/Street-Watch/PavementApp
sudo docker-compose up --build
-
b. Run the test docker container
sudo dockerd &
cd ~/Street-Watch/PavementApp
sudo docker-compose -f ~/Street-Watch/PavementApp/docker-compose.yml -f ~/Street-Watch/PavementApp/docker-compose.test.yml up --build
-
b. Test the API
sudo docker exec flask python -m unittest
- Download yolov3.weights from google drive
- Place yolov3.weights into Object_Detection
cd ~/Downloads
mv yolov3.weights ~/Street-Watch/Object_Detection
- Follow Web API instructions above
- While Web API service is running, run video_demo
cd ~/Street-Watch/Object_Detection
python video_demo.py --video SeattleSeventhAndOlive.mp4
- Look in output folder to play video post obfuscation
cd ~/Street-Watch/Object_Detection/output
<video player name> result_SeattleSeventhAndOlive.mp4
- Run HTTP GET request for stored data from Web API
curl -i -H "Accept: application/json" -H "Content-Type: application/json" http://192.168.99.100:5000/pavement
Cannot access localhost:5000
After building the container through the docker-compose up --build
command, if no url is showing to access the Web API (ex: localhost:5000):
- If using the Docker Toolbox, open the Kinematic Docker API
- Find the Access URL on the righthand side (ex: 192.168.99.100:5000)
- Use the Acess URL within your browser to access the Web API