This example shows how to ImgFrame’s
.getTimestamp() function in combination with
dai.Clock.now() to measure
the latency since image was captured (more accurately since it was processed by ISP and timestamp was attached to it) until
the frame was received on the host computer.
If you would like to learn more about low-latency, see documentation page here.
UsbSpeed.SUPER Latency: 33.49 ms, Average latency: 33.49 ms, Std: 0.00 Latency: 34.92 ms, Average latency: 34.21 ms, Std: 0.71 Latency: 33.23 ms, Average latency: 33.88 ms, Std: 0.74 Latency: 33.70 ms, Average latency: 33.84 ms, Std: 0.65 Latency: 33.94 ms, Average latency: 33.86 ms, Std: 0.58 Latency: 34.18 ms, Average latency: 33.91 ms, Std: 0.54
Please run the install script to download all required dependencies. Please note that this script must be ran from git context, so you have to download the depthai-python repository first and then run the script
git clone https://github.com/luxonis/depthai-python.git cd depthai-python/examples python3 install_requirements.py
For additional information, please follow installation guide