Hi,
I have been enjoying working with the OAK-D Pro for a few weeks now. The examples in the doc are really good and easy to follow!
I am also planning to use the on-device programming (https://docs.luxonis.com/en/latest/pages/tutorials/on-device-programming/) for my project to run custom CV code.
Because my application needs to run in real time, I would like to measure the latency of the stereo depth estimation. As I would not be streaming the images to the host in the application, I would like to measure the latency without streaming the ImgFrame object to the host. I thought of using the script node to stream just the timestamp of the ImgFrame of the disparity output so that I could then take the difference of the timestamps of successive frames, so I tried the below python script:
However, I am getting an error when I run it:
UsbSpeed.SUPER
[19443010F1A6992E00] [20.2.4] [1.521] [Script(3)] [critical] TypeError: setData(): incompatible function arguments. The following argument types are supported:
1. (self: lpb.Buffer, arg0: buffer) -> None
Invoked with: <lpb.Buffer object at 0x82762fa0>, datetime.timedelta(seconds=1, microseconds=216140)
At:
<script>(5): <module>
Please could you let me know how to fix this? Also, please suggest if there is a better way of doing it. I have a feeling I am missing something that is simpler.
Best,
AB