MATLAB code for counting number of children and adult in a video

4 views (last 30 days)
This is my dsp mini project. I tried my level best but couldn't. Plz help me and provide me code which will run on matlab

Answers (1)

colordepth
colordepth on 14 Jan 2025
Edited: colordepth on 14 Jan 2025
Assuming there is no perspective distortion, a reliable method to differentiate between children and adults in an image is by using head-to-body proportions, a technique often learned in human sketching. If you perform a web image search for "children vs adult proportions," you will see that, relative to body size, a child's head is significantly larger than an adult's.
With this understanding, you can implement this logic in MATLAB. The following resources may provide guidance on calculating head and body lengths in an image-
  1. Head detection and bounding box: https://www.mathworks.com/matlabcentral/fileexchange/70426-persons-counting-by-head-detection-in-real-time.
  2. Human pose detection, for extracting skeleton keypoints data: https://www.mathworks.com/help/releases/R2021b/deeplearning/ug/estimate-body-pose-using-deep-learning.html.

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!