Skip to content

Human-Computer Interaction, Fall Semester 2021, Practical Assignment 1

Notifications You must be signed in to change notification settings

CalinClichici/visir-tracker-01

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Practical Assignment 1

Dealine: 27.09.2021

Please put your name here:
Name: Clichici Calin

Problem 1.1

Calculate Frames-per-Second (FPS) (Points 30)

  1. Fork the current repository
  2. Study the new framework-code of
    • main.cpp
  3. Check that the code is running correctly: it should show the video stream from the web-camera of your laptop.
  4. Calculate average fps and print it to console every 2 seconds. Compare Debug and Release versions.

Note

MacOS users may need to launch the application with the administrator rights, to grant access to the web-camera.

Solution: The FPS varies from 17 FPS to 25 FPS during runtime, with a total average of 24.54 FPS at the end.

Problem 1.2

Face detection (Points 70)

  1. Read the OpenCV documentation about Viola-Jones face detector: Cascade Classifier
  2. Implement face detection for the video stream from the web-camera using the cv::CascadeClassifier class.
  3. Measure the FPS one more time. How FPS changed after incorporating the face detection into the framework?

Note

Please do not copy-paste the example code from the OpenCV documentation, but try to understand the example code and implement the solution to the problem by yourself.

Solution: The implemented face detection algorithm as explained by the OpenCV documentation resulted in a heavy decline in FPS, now averaging between 1 FPS and 3 FPS during runtime, with a total average of 2.49 FPS at the end. Overall, it is a 90% reduction in performance.

Submission

Please submit the assignment by making a pull request. Important : Please make sure that

  • No extra files are submitted (except those, which were mentioned in the assignment)
  • The changes were made only in those files where you were asked to write your code
  • The Continiouse Integration system (appVeyor) can build the submitted code
  • The rendered images are also submitted in the folder "renders"

About

Human-Computer Interaction, Fall Semester 2021, Practical Assignment 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 71.4%
  • CMake 28.6%