Is there anything in the flirpy code that would limit the frame rate to 30hz when using a raspberry pi with a FLIR Boson? I use the following script to assess frame rate, and it hovers right around 30 hz on a raspberry pi, but hits 60hz with the same camera on my laptop.
import cv2
import numpy as np
import time
loop_start_time = None
with Boson() as camera:
while True:
img = camera.grab().astype(np.float32)
if loop_start_time is None:
loop_start_time = time.time()
else:
current_time = time.time()
rate = 1/(current_time-loop_start_time)
loop_start_time = current_time
print(rate)
As far as I can tell, none of the pi's cores are maxed out, and 30hz seems like a suspiciously round number. I took a quick look at the Boson code and didn't see anything obvious.
Is there anything in the flirpy code that would limit the frame rate to 30hz when using a raspberry pi with a FLIR Boson? I use the following script to assess frame rate, and it hovers right around 30 hz on a raspberry pi, but hits 60hz with the same camera on my laptop.
As far as I can tell, none of the pi's cores are maxed out, and 30hz seems like a suspiciously round number. I took a quick look at the Boson code and didn't see anything obvious.