sort icon indicating copy to clipboard operation
sort copied to clipboard

its not an issue but a question on fps?

Open adarsh0906 opened this issue 5 years ago • 1 comments

can i know fps for the entire program to run along with detection?

adarsh0906 avatar May 29 '20 05:05 adarsh0906

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

InputBlackBoxOutput avatar Jun 12 '21 12:06 InputBlackBoxOutput