Skip to content

Commit 1419470

Browse files
Merge remote-tracking branch 'origin/develop' into HEAD
2 parents b6b20c9 + 96590c6 commit 1419470

9 files changed

+536
-201
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
run: |
5050
python -m pip install --upgrade pip
5151
sudo apt install libusb-1.0-0-dev
52+
python -m pip install clang==14.0 --force-reinstall
5253
python -m pip install -r docs/requirements_mkdoc.txt
5354
- name: Configure project
5455
run: cmake -S . -B build -DDEPTHAI_PYTHON_FORCE_DOCSTRINGS=ON -DDEPTHAI_PYTHON_DOCSTRINGS_OUTPUT="$PWD/docstrings/depthai_python_docstring.hpp"

src/CalibrationHandlerBindings.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ void CalibrationHandlerBindings::bind(pybind11::module& m, void* pCallstack){
4242

4343
.def("getFov", &CalibrationHandler::getFov, py::arg("cameraId"), py::arg("useSpec") = true, DOC(dai, CalibrationHandler, getFov))
4444
.def("getLensPosition", &CalibrationHandler::getLensPosition, py::arg("cameraId"), DOC(dai, CalibrationHandler, getLensPosition))
45+
.def("getDistortionModel", &CalibrationHandler::getDistortionModel, py::arg("cameraId"), DOC(dai, CalibrationHandler, getDistortionModel))
4546

4647
.def("getCameraExtrinsics", &CalibrationHandler::getCameraExtrinsics, py::arg("srcCamera"), py::arg("dstCamera"), py::arg("useSpecTranslation") = false, DOC(dai, CalibrationHandler, getCameraExtrinsics))
4748

src/device_bindings.cpp

Lines changed: 0 additions & 133 deletions
This file was deleted.

src/device_bindings.hpp

Lines changed: 0 additions & 9 deletions
This file was deleted.

utilities/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,28 @@ pyinstaller --onefile -w --icon=assets/icon.ico --add-data="assets/icon.ico;asse
2424
```
2525

2626
Optionally, append `--runtime-tmpdir [path or .]` to modify where the temporary directory should be created when launched.
27+
28+
29+
## Cam Test
30+
Run:
31+
```sh
32+
python3 cam_test.py
33+
```
34+
To start cam test with GUI.
35+
Run cam_test.py with args to start cam test without GUI:
36+
37+
### Bundled executable
38+
Requirements:
39+
```
40+
# Linux/macOS
41+
python3 -m pip install pyinstaller
42+
# Windows
43+
python -m pip install pyinstaller
44+
```
45+
46+
To build a bundled executable issue the following command:
47+
```sh
48+
pyinstaller -w cam_test.py --hidden-import PyQt5.sip
49+
```
50+
51+
The executable will be located in `dist/cam_test` folder.

0 commit comments

Comments
 (0)