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

Use depthai-boards submodule #946

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
186abae
Added WIP Image Align for visualization
saching13 Aug 9, 2022
5113b6b
Working calibration with SYnc
saching13 Aug 10, 2022
fcc4f4c
added board config files
saching13 Aug 10, 2022
e52e734
Updated the ar0234 res
saching13 Aug 15, 2022
562d331
Updated mono in json
saching13 Aug 15, 2022
d9105b1
Added Output Scale factor and removed the orientation check
saching13 Aug 15, 2022
48cdb67
Fixed the osf
saching13 Aug 15, 2022
f177b01
Fixed capture issue with different names
saching13 Aug 15, 2022
507ede9
updated links translation
saching13 Aug 16, 2022
46f8b1f
WIP structure and vertical Stereo calibration
saching13 Aug 17, 2022
03766f3
Fixed flashing issues
saching13 Aug 19, 2022
84dd899
updatec req condfitions
saching13 Aug 22, 2022
16f6e28
added exception msg
saching13 Aug 22, 2022
7b81117
removed try catch and writing board names
saching13 Aug 22, 2022
1b356df
adding rect data
saching13 Aug 22, 2022
64d5828
Updated rectification flash
saching13 Aug 22, 2022
c9bc18e
Removed comments
saching13 Aug 24, 2022
38e6102
Added rotation to polygons
saching13 Sep 8, 2022
861f9e3
Polygon flex (#789)
saching13 Sep 12, 2022
00acebb
Modified the board file
saching13 Sep 14, 2022
63b5adb
added debugs
saching13 Sep 15, 2022
7372329
tweaked intrinsics in use
saching13 Sep 17, 2022
085b4a6
iterative method added but commented
saching13 Sep 17, 2022
6d3964a
cleanedup image sizes and better ep errors
saching13 Sep 30, 2022
e959a06
adapt calib script to main depthai
daxoft Oct 8, 2022
1067cb2
Fixed config error
saching13 Oct 13, 2022
7091b7d
changed to features in calibration
saching13 Nov 5, 2022
aebdb17
adjust horizontal values
saching13 Nov 5, 2022
eb13e6f
Tuning calibration testing epipolar error
saching13 Nov 5, 2022
f98e1a2
oak-d-sr calibration
daxoft Nov 11, 2022
b13295f
Merge remote-tracking branch 'origin/main' into modular-calibration
saching13 Nov 17, 2022
ac471ad
Added error for file
saching13 Nov 17, 2022
222135f
Merge branch 'modular-calibration' into daxoft/calib_impl
daxoft Nov 18, 2022
6ebc996
add hasAutoFocus check back
daxoft Nov 18, 2022
890ff34
Merge branch 'daxoft/calib_impl' into modular-calibration
njezersek Nov 18, 2022
2aed459
changed to fix Intrinsics
saching13 Nov 22, 2022
e46be35
Merge remote-tracking branch 'origin/modular-calibration' into modula…
saching13 Nov 22, 2022
f91b533
Merge remote-tracking branch 'origin/main' into modular-calibration
saching13 Dec 13, 2022
ed1542b
cleared old file
saching13 Dec 13, 2022
a8024fa
Added OAK-D-LR support
themarpe Dec 23, 2022
fa57c7d
add oak-d-cm4-c11 calibration file
daxoft Jan 17, 2023
795f7e7
Add support for IMX296 camera
themarpe Feb 2, 2023
a383f29
Use depthai-boards submodule
njezersek Feb 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ share/python-wheels/
MANIFEST
*.idea
# DepthAI-Specific
dataset/
dataset*
.fw_cache/
depthai.calib
mesh_left.calib
Expand Down Expand Up @@ -59,6 +59,7 @@ resources/*.json
# Virtual environment
virtualenv/
venv/
.venv

# DepthAI recordings
recordings/
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "resources/depthai-boards"]
path = resources/depthai-boards
url = https://github.com/luxonis/depthai-boards
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Calibration
Before running the calibration script please make sure that you have the `depthai-boards` submodule inside the `resources` folder and installed all Python requirements. You can do this by running the following script:
```bash
python3 install_requirements.py
```

> **Note:** You can install the `depthai-boards` submodule manually by running `git submodule update --init --recursive`


You can start the calibration script by running the following command:
```bash
python3 calibrate.py -brd <device baord file> -s <square size in cm> -db
```

For more info about the calibration please check the [calibration tutorial](https://docs.luxonis.com/en/latest/pages/calibration/).


# DepthAI API Demo Program

[![Discord](https://img.shields.io/discord/790680891252932659?label=Discord)](https://discord.gg/luxonis)
Expand Down
748 changes: 586 additions & 162 deletions calibrate.py

Large diffs are not rendered by default.

1,308 changes: 700 additions & 608 deletions depthai_helpers/calibration_utils.py

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions install_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
script_directory = os.path.dirname(os.path.realpath(__file__))
this_platform = platform.machine()


def update_submodules():
scriptDirectory = os.path.dirname(os.path.realpath(__file__))
subprocess.check_call(['git', 'submodule', 'update', '--init', '--recursive'], cwd=scriptDirectory)

# https://stackoverflow.com/a/58026969/5494277
# Check if in virtual environment
in_venv = getattr(sys, "real_prefix", getattr(sys, "base_prefix", sys.prefix)) != sys.prefix
Expand Down Expand Up @@ -48,3 +53,6 @@
subprocess.check_call(pip_package_install + ["-r", "requirements-optional.txt"], cwd=script_directory, stderr=subprocess.DEVNULL)
except subprocess.CalledProcessError as ex:
print("Optional dependencies were not installed. This is not an error.")


update_submodules()
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ depthai-sdk
--extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/wheels/
pyqt5>5,<5.15.6 ; platform_machine != "armv6l" and platform_machine != "armv7l" and platform_machine != "aarch64" and platform_machine != "arm64"
--extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/
depthai==2.19.0.0
depthai==2.19.1.0.dev+1eb01248fb7e994b51ceec91984bff46e0a5d5f2
Qt.py
13 changes: 0 additions & 13 deletions resources/boards/ACME01.json

This file was deleted.

13 changes: 0 additions & 13 deletions resources/boards/BW1097.json

This file was deleted.

12 changes: 0 additions & 12 deletions resources/boards/BW1098OBC.json

This file was deleted.

12 changes: 0 additions & 12 deletions resources/boards/DM2097.json

This file was deleted.

12 changes: 0 additions & 12 deletions resources/boards/OAK-D-CM4-POE.json

This file was deleted.

13 changes: 0 additions & 13 deletions resources/boards/OAK-D-CM4.json

This file was deleted.

12 changes: 0 additions & 12 deletions resources/boards/OAK-D-IoT-40.json

This file was deleted.

12 changes: 0 additions & 12 deletions resources/boards/OAK-D-LITE.json

This file was deleted.

13 changes: 0 additions & 13 deletions resources/boards/OAK-D-PRO-W.json

This file was deleted.

13 changes: 0 additions & 13 deletions resources/boards/OAK-D-PRO.json

This file was deleted.

13 changes: 0 additions & 13 deletions resources/boards/OAK-D-W.json

This file was deleted.

1 change: 1 addition & 0 deletions resources/depthai-boards
Submodule depthai-boards added at 07872d