abewley / sort

Simple, online, and realtime tracking of multiple objects in a video sequence.
GNU General Public License v3.0
3.82k stars 1.07k forks source link

its not an issue but a question on fps? #105

Open adarsh0906 opened 4 years ago

adarsh0906 commented 4 years ago

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

InputBlackBoxOutput commented 3 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