
If you need to install dlib, you can use this guide.įinally, you can install/upgrade your imutils via the following command: $ pip install -upgrade imutils If you don’t have OpenCV installed, you’ll want to head to my OpenCV install page and follow the relevant tutorial for your particular operating system. I’m going to assume you already have NumPy, OpenCV, and dlib installed on your system.



Required Python libraries for people counting In the first part of today’s blog post, we’ll be discussing the required Python packages you’ll need to build our people counter.įrom there I’ll provide a brief discussion on the difference between object detection and object tracking, along with how we can leverage both to create a more accurate people counter.Īfterwards, we’ll review the directory structure for the project and then implement the entire person counting project.įinally, we’ll examine the results of applying people counting with OpenCV to actual videos.
