Subscribe to DSC Newsletter

Face detection - Get duration of people glimpse on an advertisement


I used Haar cascade to detect faces on camera.

It gives back coordinates of rectangles where face is detected.

I saved the data along with time stamp in below manner:

2018-07-04 12:36:09.150689,145,278,419,419

2018-07-04 12:36:09.550856,56,232,218,218

2018-07-04 12:36:09.550950,230,255,416,416

2018-07-04 12:36:09.924459,322,243,393,393

2018-07-04 12:36:09.924575,635,449,184,184

2018-07-04 12:36:10.274188,396,228,393,393

2018-07-04 12:36:10.608793,452,214,401,401

Now i want to get some pattern through which i can come to know how many people watched the advertisement for what duration.

Please suggest how can i get some pattern of these trailing faces coordinates.

Views: 146

Reply to This

Replies to This Discussion

Hi Neeraj,

Looks like a great start!

You can use a motion tracking solution such as this one: with a few customizations to output how many people and for how long where watching the advertisement.

We have trained some teams of data scientists for this exact use case at

Reply to Discussion


Follow Us


  • Add Videos
  • View All


© 2018   Data Science Central™   Powered by

Badges  |  Report an Issue  |  Privacy Policy  |  Terms of Service