Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAK-D Pro support, update to depthai 2.15.0.0 #556

Merged
merged 29 commits into from
Feb 25, 2022
Merged

OAK-D Pro support, update to depthai 2.15.0.0 #556

merged 29 commits into from
Feb 25, 2022

Conversation

alex-luxonis
Copy link
Collaborator

@alex-luxonis alex-luxonis commented Nov 29, 2021

EDIT:
Changes:

  --irDotBrightness IRDOTBRIGHTNESS
                        For OAK-D Pro: specify IR dot projector brightness, range: 0..1200 [mA], default 0 (turned off)
  --irFloodBrightness IRFLOODBRIGHTNESS
                        For OAK-D Pro: specify IR flood illumination brightness, range: 0..1500 [mA], default 0 (turned off)
  • StereoDepth Left-Right check enabled by default,
    the command line option -lrc was replaced by -dlrc/--disableStereoLrCheck

Can also be tested with the CV GUI:
python3 depthai_demo.py -gt cv -s color left right depth
Extra controls will appear in the depth window:
image

Note: the color camera (OV9782) on OAK-D-Pro-W-DEV is not supported yet.

alex-luxonis and others added 5 commits October 1, 2021 21:11
  Control:      key[dec/inc]  min..max
  exposure time:     I   O      1..33000 [us]
  sensitivity iso:   K   L    100..1600

Note: need to have an OpenCV display window in focus when pressing the keys
alex-luxonis and others added 5 commits December 1, 2021 01:42
To use color, the mono resolution should also be bumped as:
  python3 depthai_demo.py -monor 800 -s color left right depth

To use a lower mono resolution, disable color:
  python3 depthai_demo.py -cam right -s left right depth

TODO: currently the IR COntrol GUI only supports the IR dot-projector attached in the right connector, and need to use the "LED1 / Flood IR" in the GUI to control it. The GUI will be updated next to use the newly introduced API that can control all projectors/illuminators:
 device.setIrLaserDotProjectorBrightness(100)  # mA
 device.setIrFloodLightBrightness(250)  # mA
Copy link
Contributor

@Luxonis-David Luxonis-David left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small change in revision

resources/boards/OAK-D-PRO-W.json Outdated Show resolved Hide resolved
resources/boards/OAK-D-PRO.json Outdated Show resolved Hide resolved
@alex-luxonis
Copy link
Collaborator Author

Support for OAK-D Pro is available in mainline with the 2.15.0.0 release (not formally released yet, but can be installed now).
The demo was updated to use the new IR driver control API (only the CV GUI part for now).

Can be tested with:
python3 depthai_demo.py -gt cv -s color left right depth
python3 depthai_demo.py -gt cv -s color left right depth -lrc
Extra controls will appear in the depth window:
image

Note: the color camera (OV9782) on OAK-D-Pro-W-DEV is not supported yet, and a separate branch will still be needed (to be updated).

Copy link
Member

@Erol444 Erol444 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it out with OAK-D-Pro and it works as expected 👍

Copy link
Contributor

@VanDavv VanDavv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added --irDotBrightness and --irFloodBrightness parameters and I think it's ready to be merged now @alex-luxonis

@alex-luxonis alex-luxonis marked this pull request as ready for review February 25, 2022 20:01
@alex-luxonis
Copy link
Collaborator Author

Updated the PR description.

@alex-luxonis alex-luxonis dismissed Luxonis-David’s stale review February 25, 2022 20:06

Requested changes have been addressed.

@alex-luxonis alex-luxonis changed the title OAK-D Pro support OAK-D Pro support, update to depthai 2.15.0.0 Feb 25, 2022
@alex-luxonis alex-luxonis merged commit 4fb6936 into main Feb 25, 2022
@alex-luxonis alex-luxonis deleted the oak-d-pro branch February 25, 2022 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants