File Exchange

image thumbnail

Creating a Cloud Based People Counter Using MATLAB

version (3.28 KB) by Dan Doherty
Learn how to use MATLAB to create a cloud based people counter


Updated 28 Oct 2016

View License

Learn how to use MATLAB to create a cloud based people counter. This demo uses a USB webcam and the Computer Vision System Toolbox to detect faces within a video feed. The ThingSpeak IoT platform is used to track the number of people by transferring data to the cloud.

Comments and Ratings (7)

How do I make the code only detect and count. Without IoT

yi liang

How can I resolve this:
Error using
Time out occured while trying to get a frame from the webcam.

I Already installed Image Acquisition Toolbox Support Package for OS Generic Video Interface and Computer Vision System Toolbox OpenCV Interface and MATLAB Support Package for USB Webcams

Can you please send me the solution to:

PS: I'm using Matlab2016b on MacOS

An error is coming in this program
Undefined function 'dateshift' for input arguments of type 'double'.

Error in PeopleCounterDemo (line 17)
if dateshift(latestDate,'start','day') < datetime('today','TimeZone','local')

Mr Smart

Sir How about tin can object counter with color

nice! A good learning experience!!!


Fixed an error that was happening in some cases.

Adding the YouTube link to the description

Updated license

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: ThingSpeak Support Toolbox