-
Notifications
You must be signed in to change notification settings - Fork 202
Closed
Description
The docs for setIrFloodLightBrightness and setIrLaserDotProjectorBrightness indicate a return value of True or False for both of these methods, to indicate success or failure. However they always return None in my case.
The actual features themselves do seem to function just fine when feeding them appropriate values. And I'm seeing the same behavior from two identical devices.
- depthai-python 2.17.3.1
- OAK-D-POE-PRO
Example code:
import time
import depthai as dai
def main():
pipeline = dai.Pipeline()
with dai.Device(pipeline) as device:
for value in (500., 0., 99999., -100.):
print('flood', value, device.setIrFloodLightBrightness(value))
time.sleep(0.25)
print('projector', value, device.setIrLaserDotProjectorBrightness(value))
time.sleep(0.25)
if __name__ == '__main__':
main()Gives the output:
flood 500.0 None
projector 500.0 None
flood 0.0 None
projector 0.0 None
flood 99999.0 None
[18443010C152671200] [192.168.2.10] [440.766] [system] [warning] Capping IR flood illuminator brightness to 1500 mA
projector 99999.0 None
[18443010C152671200] [192.168.2.10] [441.018] [system] [warning] Capping IR dot projector brightness to 1200 mA
flood -100.0 None
projector -100.0 None
Obviously not a critical issue but would be nice to have some actual confirmation from the camera.
Cheers
Metadata
Metadata
Assignees
Labels
No labels