Persons Counting by Head Detection in Real Time

Persons Counting by Head Detection in Real Time
704 Downloads
Aktualisiert 28. Feb 2019

Persons counting in real-time is achieved by mainly two steps, head detection and tracking the detected heads for exact count. Head detection is achieved by building a head detector. Our head detector contains combination of two classifiers. The two classifiers are trained using two different features, Haar and histogram of oriented gradients features (HOG) separately. Both the classifiers are trained by adaboost learning algorithm. Haar-like features are fast to compute but have low detection accuracy and HOG features have high detection accuracy but slow computation speed. Hence, using these two features, the detector can have high accuracy and fast speed. Fast speed gives the advantage of detecting heads in real-time. The head regions detected by head detector are then tracked using Kanade-Lucas-Tomasi tracker. The detected heads are identified by serial numbers. So, as more headsare detected the serial number increments accordingly. Hence, the last or highest number will be the total number of heads that are detected which indeed is the count of people. Developed two GUIs. One for Head detection from an image which can be either uploaded or by capturing from system's default camera and the other to count persons by detecting head of persons in real-time video that is being captured from system's default camera. Also used PTZ camera to get images and live feed. HeadDetect.fig HeadCount.fig Haar.xml and Head6.xml are the two classifiers obtained after training a huge head dataset. One is derived from Haar classification and the other from HOG classification. Used Matlab's Computer Vision Toolbox and Image Processing Toolbox.

Zitieren als

Pramod Devireddy (2024). Persons Counting by Head Detection in Real Time (https://github.com/Pramod-Devireddy/head_detection), GitHub. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2016a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versionen, die den GitHub-Standardzweig verwenden, können nicht heruntergeladen werden

Version Veröffentlicht Versionshinweise
1.1

Updated Thumbnail

1.0.0

Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.
Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.