- Edited
Hi
We would like to add auto_ir code into the below example. Could you guide us how to merge to function together??
<auto ir>
https://docs.luxonis.com/projects/sdk/en/latest/features/auto_ir/
Best regards,
Ryan.
Hi
We would like to add auto_ir code into the below example. Could you guide us how to merge to function together??
<auto ir>
https://docs.luxonis.com/projects/sdk/en/latest/features/auto_ir/
Best regards,
Ryan.
Hi RyanLee
The SDK uses API's device.setIrLaserDotProjectorBrightness()
and device.setIrFloodLightBrightness()
to control the IR.
Thanks,
Jaka
we are using depthai-sdk version is 1.13.1 but OakCamera is not imported. So what is latest depthai-sdk version? how to check and upgrade depthai-sdk version??
from depthai_sdk import OakCamera
Best regards,
Ryan.
Hi RyanLee
You can't really implement auto ir SDK functionality for API since it doesn't function the same way. You can however use the same algorithm (https://github.com/luxonis/depthai/blob/65fc1c6ad7495929c0f58897067af2d88f62f0f8/depthai_sdk/src/depthai_sdk/oak_outputs/xout/xout_disparity.py) and adapt it to your code. For example, run the algorithm every iteration inside the main loop. This code is the logic behind setting the ir brightness values. The values then get passed to device.setIrLaserDotProjectorBrightness()
and device.setIrFloodLightBrightness()
.
Thanks,
Jaka