# Go to the docker/build/desktop directory
cd opendatacam/docker/build/desktop
# Download the weights you want to include ( currently yolov4 )
wget https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v3_optimal/yolov4.weights
# Build
sudo docker build -t opendatacam .
# If you are building a second time, use this to pull the latest opendatacam code
# TODO change this by adding the tag of the version in the Dockerfile
# Technique to rebuild the docker file from here : https://stackoverflow.com/a/49831094/1228937
# Build using date > marker && docker build .
date > marker && sudo docker build -t opendatacam .
# Test the image with docker-compose
cd opendatacam/docker/run/desktop
# copy config.json and edit with the parameters you need
cp ../../../config.json .
# change
# PATH_TO_YOLO_DARKNET=/var/local/darknet
# VIDEO_INPUTS_PARAMS=file
# NEURAL_NETWORK=yolov4
#tag the local image
sudo docker tag 7ef920844953 opendatacam/opendatacam:v3.0.1-desktop
# start containers
sudo docker-compose up