Hi,
I want to transfer Theta V camera frames to computer, so I connected them via USB and tried to show frames using python.
I used live-streaming mode on Theta V to transfer frames.
Here is my code:
import cv2
def imgShow():
cap = cv2.VideoCapture(0)
tm = cv2.TickMeter()
tm.start()
count = 0
max_count = 10
fps = 0
while 1:
ret, frame = cap.read()
if count == max_count:
tm.stop()
fps = max_count / tm.getTimeSec()
tm.reset()
tm.start()
count = 0
cv2.putText(frame, 'FPS: {:.2f}'.format(fps),
(10, 30), cv2.FONT_HERSHEY_SIMPLEX, 1.0, (0, 255, 0), thickness=2)
cv2.imshow("teste", frame)
count += 1
if cv2.waitKey(1) & 0xFF == ord('q'):
break
def main():
imgShow()
if __name__ == "__main__":
main()
Camera frames were displayed correctly on the computer, but the frame rate was only about 10 fps.
I know Theta V is an older camera, but is it not possible to get 30 fps frames? Or are there any solutions?
Any help would be greatly appreciated.