Hello, I am using the TOF node on an OAK TOF device with depthai==3.0.0rc4
, and I can't get more than 14 FPS on it. There also seems to be extreme motion blur whenever I stream the depth.
#!/usr/bin/env python3
import time
import depthai as dai
with dai.Pipeline() as pipeline:
tof = pipeline.create(dai.node.ToF).build(fps=40)
tof_out = tof.depth.createOutputQueue()
pipeline.start()
frame_count = 0
fps_frames = 0
t_win = time.perf_counter()
while pipeline.isRunning():
inDepth = tof_out.get()
frame_count += 1
fps_frames += 1
# Print FPS once per second
now = time.perf_counter()
if now - t_win >= 1.0:
fps = fps_frames / (now - t_win)
print(f"FPS: {fps:.2f}")
fps_frames = 0
t_win = now