Ensure code is properly formatted
Closed this issue · 3 comments
tpb1908 commented
Add a span for code, and show it like a table
import time
import cv2
cap = cv2.VideoCapture()
print(cap.open(0))
while True:
start = time.time()
ret, frame = cap.read()
cv2.imshow("Image", frame)
k = cv2.waitKey(33)
if k != -1:
break
print("FPS = " + str((1.0/(time.time()-start))))
cv2.destroyAllWindows()
cap.release()
tpb1908 commented
tpb1908 commented
tpb1908 commented