Dealine: 27.09.2021
Please put your name here:
Name: Clichici Calin
- Fork the current repository
- Study the new framework-code of
- main.cpp
- Check that the code is running correctly: it should show the video stream from the web-camera of your laptop.
- Calculate average fps and print it to console every 2 seconds. Compare Debug and Release versions.
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.
- Read the OpenCV documentation about Viola-Jones face detector: Cascade Classifier
- Implement face detection for the video stream from the web-camera using the
cv::CascadeClassifier
class. - Measure the FPS one more time. How FPS changed after incorporating the face detection into the framework?
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.
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"