Top Internet of Things Daily & Weekly

Cloud Based People Counter

Download this code to create a cloud based people counter using MATLAB and @thingspeak!  #IoT

  • This project uses a USB webcam and MATLAB to develop a people tracking algorithm that uses the ThingSpeak IOT platform.
  • The people counter uses functions from the Computer Vision System Toolbox to detect and track the human faces.
  • The unique face ID is determined by reading the data in the ThingSpeak channel.
  • The latest channel entry contains the ID of the last face that was detected so essentially ThingSpeak serves as the secretary for the people counter.
  • Whenever a new face is detected, the algorithm writes new data to the ThingSpeak channel which updates the face ID number.

This project uses a USB webcam, MATLAB and ThingSpeak to create a cloud based people counter. Find this and other hardware projects on Hackster.io.

@MATLAB: Download this code to create a cloud based people counter using MATLAB and @thingspeak! #IoT

Have you ever wanted to keep track of how many people pass by a location? Have you ever wanted to see what computer vision can do or maybe wanted to get involved with IOT? Well, this may be the project for you!

This project uses a USB webcam and MATLAB to develop a people tracking algorithm that uses the ThingSpeak IOT platform.

The people counter algorithm is relatively simple. When a person’s face is in front of the webcam, the program does several things:

Additionally, for every 5th face detected per session, we take a picture of the user and display it on the screen with a congratulatory message for five seconds.

Note: You must be connected to the internet in order for the people counter to transmit/receive data from ThingSpeak.

The unique face ID is determined by reading the data in the ThingSpeak channel. The latest channel entry contains the ID of the last face that was detected so essentially ThingSpeak serves as the secretary for the people counter. To make sure we don’t use invalid data, the program checks to make sure the entry was logged in the current day. If it is not from the current day, the unique face ID will start at 1. Whenever a new face is detected, the algorithm writes new data to the ThingSpeak channel which updates the face ID number.

Cloud Based People Counter