Faster face detection | OpenCV, and Matplotlib | video processing
PyShine presents Matplotlib integration with Open CV to output the frame rate
Lets write the face detection code
This code has two parts:
1) Face.py which uses Opencv and Haar classifier
2) Plot.py
which uses Matplotlib
Face.py will open Webcam and detect face in video stream,
also it will generate a csv file which will have the current frame rate
Plot.py will read the csv file and update the plot of frame rate
The Face.py will run the Plot.py in a thread. The complete source code is available in the link below:
https://pyshine.com/How-to-plot-real-time-frame-rate-in-opencv-and-matplotlib/
https://drive.google.com/file/d/1yHu9lMS2sajj1uEmjg5-tTTDF4tt6upI/view
Comments
Post a Comment