1 | initial version |
if ((time.time() - start_time) < 5.1):
cv2.putText(frame, "test!",(50, 50),cv2.FONT_HERSHEY_COMPLEX_SMALL,.7,(0,0,255))
#Shows the change after the certain amount of time
elif ((time.time() - start_time) < 10.1):
cv2.putText(frame, "test2!",(50, 50),cv2.FONT_HERSHEY_COMPLEX_SMALL,.7,(0,0,255))
#After all displays are done, resets the start time back to current time
if ((time.time() - start_time) >= 10.1):
start_time = time.time()