I used the code and got the following results (4k, mjpeg, 30fps), which seems much slower than the official result (avg 77ms) reported from Erik (thanks for his support in the email).
Latency: 389.93 ms, Average latency: 379.09 ms, Std: 89.25
Latency: 408.26 ms, Average latency: 379.20 ms, Std: 89.11
Latency: 410.29 ms, Average latency: 379.31 ms, Std: 88.97
Latency: 394.89 ms, Average latency: 379.36 ms, Std: 88.82
1. Is there any suggested process to systematically troubleshoot the latency issue and improve the results? Our customer cares about the latency a lot.
2. After stopping (by pressing Ctrl+C) the above script and trying to run again, it could not find the device (with the error)? I tried at least 3 times but no luck, but we really need to provide something stable for our customer AI solution that would be deployed in their production pipeline.
with dai.Device(pipeline) as device:
RuntimeError: No available devices
Some supplementary info
➜ python oak_bandwidth_test.py
Downlink 670.2 mbps
Uplink 231.0 mbps➜ python oak_latency_test.py
Sending buffer 0
Got buffer 0, latency 52.73ms
Sending buffer 1
Got buffer 1, latency 3.31ms
Sending buffer 2
...
Average latency 2.87 msPoE Switch spec: PS3108C
Cable (PC to switch) spec: DHC-CAT6-FTP-3M
PoE cable (Oak-D to switch) spec: ZBLZGP M12 8 Pin X Code Male to RJ45 Cat6a Ethernet Cable for Cognex Industrial Camera
Thanks,
Martin