Hi RyanLee ,
I just tried it with OAK-D, but sensor is the same so I assume it should be the same FPS. Used latest depthai/deptahi-sdk versions. Output:
Latency: 163.34 ms, FPS 28.2
Latency: 171.81 ms, FPS 28.2
Latency: 174.00 ms, FPS 28.2
Code:
import depthai as dai
from depthai_sdk import FPSHandler
pipeline = dai.Pipeline()
pipeline.setXLinkChunkSize(0)
# Define source and output
camRgb = pipeline.create(dai.node.ColorCamera)
camRgb.setFps(28.5)
camRgb.setResolution(dai.ColorCameraProperties.SensorResolution.THE_4_K)
xout = pipeline.create(dai.node.XLinkOut)
xout.setStreamName("out")
camRgb.isp.link(xout.input)
# Connect to device and start pipeline
with dai.Device(pipeline) as device:
print(device.getUsbSpeed())
q = device.getOutputQueue(name="out")
fps = FPSHandler()
while True:
imgFrame = q.get()
latencyMs = (dai.Clock.now() - imgFrame.getTimestamp()).total_seconds() * 1000
fps.nextIter()
print('Latency: {:.2f} ms, FPS {:.1f}'.format(latencyMs, fps.fps()))