The required components
hardware
Raspberry PI 3 (any version)
Send the camera
Software and online services
tale
Python3.0
Open CV3.0
Install OpenCV in Raspberry PI
The OpenCV library will be used here to detect crowds. To install OpenCV, first, update Raspberry Pi.
Install any other required software packages
Before we program the Raspberry Pi to crowd count, let's install the other required software packages.
Install ImUTIls: Imutils is used to perform some of the necessary image processing functions, such as translation, rotation, resizing, skeletonization, and more easily displaying Matplotlib images using OpenCV. Therefore, use the following command to install imutils:
Installation imutils pip3
Matplotlib: After that, install the Matplotlib library. Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.
Pip3 install matplotlib
ThingSpeak Settings for headcount
ThingSpeak is a very popular Internet of Things platform that allows us to monitor our data from anywhere over the Internet.