Open adarsh0906 opened 4 years ago
Calculate the time taken by each frame for a certain number of frames. Then find 1/average_time to determine the FPS at which the video is being processed
import time
then = time.time()
# Frame processing code here
time_taken = time.time() - then
# Find the average over a few frames and than calculate 1/average to get FPS
can i know fps for the entire program to run along with detection?