Setting up the coding environment
In this section, we will list down the libraries and equipment you need in order to run the upcoming code. You need to have a webcam that can at least stream the video with good clarity. We will be using OpenCV, TensorFlow, YOLO, Darkflow, and Darknet libraries. I'm not going to explain how to install TensorFlow, because it is an easy process and you can find the documentation for the installation by clicking on https://www.tensorflow.org/install/install_linux.
In this section, we will be looking at how to set up OpenCV first and, in the upcoming sections, we will see how to set up YOLO, Darkflow, and DarkNet.
Setting up and installing OpenCV
OpenCV stands for Open Source Computer Vision. It is designed for computational efficiency, with a strong focus on real-time applications. In this section, you will learn how to set up OpenCV. I'm using Ubuntu 16.04 and I have a GPU, so I have already installed CUDA and CUDNN. If you haven't installed CUDA and CUDNN,...