Prediction involving Darknet can all be done using the command line in the terminal. For more details, refer to https://pjreddie.com/darknet/yolo/.
Up to now, we have made inferences using Darknet on an image. In the following steps, we will learn how to make inferences using Darknet on a video file:
- Go to the darknet directory (already installed in the previous steps) by typing cd darknet in the terminal.
- Make sure OpenCV is installed. Even though you have OpenCV installed, it may still create an error flag. Use the sudo apt-get install libopencv-dev command to install OpenCV in the darknet directory.
- In the darknet directory, there is a file called Makefile. Open that file, set OpenCV = 1, and save.
- Download the weights from the terminal by going to https://pjreddie.com/media/files/yolov3.weights.
- At this point, you have to recompile since...