show FPS yolov5 #6713
-
Hello i want to show fps yolov5 object detection on cv2, i have search how to show it, but i still not success to do it. can anyone can direct me where can i put fps computing program so that if i running detect.py fps can appear in cv2? thank you |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
@HuumbleBee just divide 1000 ms by any of these speeds to get FPS: |
Beta Was this translation helpful? Give feedback.
-
have you solved your question? I also want to know how |
Beta Was this translation helpful? Give feedback.
-
my code is : `#!/usr/bin/python3 cap = cv2.VideoCapture(0) while True:
cap.release() ` |
Beta Was this translation helpful? Give feedback.
-
Hi @glenn-jocher, I have calculate the FPS by 1000/speeds , where speed sum of (pre-processing, inference time, post-processing). |
Beta Was this translation helpful? Give feedback.
@HuumbleBee just divide 1000 ms by any of these speeds to get FPS: