As mentioned previously, the final app will be able to detect, track, and count objects in a scene. This will require the following components:
- main.py: This is the main script for detecting, tracking, and counting objects in real time.
- sort.py: This is the module that implements the tracking algorithm.
We will first prepare the main script. During the preparation, you will learn how to use detection networks, as well as how they work and how they are trained. In the same script, we will use the tracker to track and count objects.
After preparing the main script, we will prepare the tracking algorithm and will be able to run the app. Let's now start with the preparation of the main script.