RyanLee Hi We would like to add auto_ir code into the below example. Could you guide us how to merge to function together?? https://github.com/luxonis/depthai-python/blob/main/examples/SpatialDetection/spatial_calculator_multi_roi.py <auto ir> https://docs.luxonis.com/projects/sdk/en/latest/features/auto_ir/ Best regards, Ryan.
jakaskerl Hi RyanLee The SDK uses API's device.setIrLaserDotProjectorBrightness() and device.setIrFloodLightBrightness() to control the IR. https://docs.luxonis.com/projects/api/en/latest/references/python/?highlight=setIrFloodLightBrightness#depthai.DeviceBase.setIrFloodLightBrightness Thanks, Jaka
RyanLee jakaskerl Hi, Thank you for your quick response and information. i have one more question about it. we are finding the solution for auto IR control now. Could you support us to do that? i saw some video for it from linkedin. Best regards, Ryan.
RyanLee 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.
jakaskerl Hi RyanLee pip show depthai_sdk to show the version. pip install depthai_sdk -U to upgrade to the latest version. Perhaps you are using different environments? Could you paste the error log? Thanks, Jaka
RyanLee Hi jakaskerl Again, we would like to add autoir function into here . can we add it?? please guide us how to add auto_ir function into your python examples. Best regards, Ryan.
jakaskerl 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