Top Internet of Things Daily & Weekly

Cloud Based People Counter

Create a cloud based people counter using MATLAB and the @thingspeak  #IoT platform!

  • Cloud Based People Counter
  • The people counter uses functions from the Computer Vision System Toolbox to detect and track the human faces.
  • The faces are tracked based off key facial structure points and this method helps the algorithm track faces even if the face rotates in the video.
  • Draws a bounding box around the face
  • 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.

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: Create a cloud based people counter using MATLAB and the @thingspeak #IoT platform!

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 people counter uses functions from the Computer Vision System Toolbox to detect and track the human faces. The faces are tracked based off key facial structure points and this method helps the algorithm track faces even if the face rotates in the video. This people counter is able to track multiple faces by using ‘

MultiObjectTrackerKLT.m’

which is based upon the Kanade-Lucas-Tomasi feature tracker.

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.

To download the project files and see a video of the people counter in action go to the following link: https://www.mathworks.com/matlabcentral/fileexchange/58435-creating-a-cloud-based-people-counter-using-matlab

This project uses Simulink to make an Arduino based blower fan that levitates a ping pong ball at a specified height.

Have you ever seen a sprinkler spraying during a rainy day and wondering why the system can’t be designed to be aware of the weather ?

Cloud Based People Counter