luxonis / depthai

DepthAI Python API utilities, examples, and tutorials.
https://docs.luxonis.com
MIT License
938 stars 232 forks source link

[QUESTION] {setIrFloodLightBrightness} #769

Open stephanschulz opened 2 years ago

stephanschulz commented 2 years ago

do you have example code showing how to setIrFloodLightBrightness and 'setIrLaserDotProjectorBrightness' for the OAK-D Pro POE?

I am specifically working from this blaze pose repo https://github.com/geaxgx/depthai_blazepose/blob/main/BlazeposeDepthaiEdge.py#L104

I tried adding self.device.setIrFloodLightBrightness(1000); The code compiles and runs but the scene still seems to not get flooded with IR.

Thanks.

Erol444 commented 2 years ago

Hi @stephanschulz , Could you share the screenshot? Also, note that the color camera has IR filter, only stereo cameras have IR notch filter on them (so they "see" IR light from illumination LED). Thanks, Erik

stephanschulz commented 2 years ago

Here is the main file where i am trying to turn the LED and/or laser on https://gist.github.com/stephanschulz/d710a77681e4c15c34ad8484821c1354#file-blazeposedepthaiedge_osc-py-L226

Here a screen shot of the terminal print outs: Screen Shot 2022-08-13 at 9 39 25 AM

stephanschulz commented 2 years ago

Here a screen shot showing the blaze pose python script sending OSC messages to my custom c++ app Screen Shot 2022-08-13 at 9 43 02 AM

Erol444 commented 2 years ago

Could you share a mono camera image? As mentioned, color camera doesn't perceive IR light from illumination LED.

stephanschulz commented 2 years ago

Sorry about that. I now understand. It took me a minute to learn how to display the mono cameras. Here I am showing the right camera and it looks like laser and IR Led are working. Screen Shot 2022-08-13 at 10 54 01 AM

I followed some of the code here: https://docs.luxonis.com/projects/api/en/latest/samples/VideoEncoder/rgb_mono_encoding/

Thanks again.