The following post will show how we can use the Raspberry Pi as an object counter by using the Infrared (IR) sensor. It provides real-time counting of objects that were detected by the IR sensor.
The app is built using Flask and Flask-SocketIO for real-time bidirectional communication.
For demo of the project:
For complete write-up: