Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
SzabolcsGergely committed Apr 4, 2023
2 parents b6b20c9 + 96590c6 commit 1419470
Show file tree
Hide file tree
Showing 9 changed files with 536 additions and 201 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
run: |
python -m pip install --upgrade pip
sudo apt install libusb-1.0-0-dev
python -m pip install clang==14.0 --force-reinstall
python -m pip install -r docs/requirements_mkdoc.txt
- name: Configure project
run: cmake -S . -B build -DDEPTHAI_PYTHON_FORCE_DOCSTRINGS=ON -DDEPTHAI_PYTHON_DOCSTRINGS_OUTPUT="$PWD/docstrings/depthai_python_docstring.hpp"
Expand Down
2 changes: 1 addition & 1 deletion depthai-core
1 change: 1 addition & 0 deletions src/CalibrationHandlerBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ void CalibrationHandlerBindings::bind(pybind11::module& m, void* pCallstack){

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

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

Expand Down
133 changes: 0 additions & 133 deletions src/device_bindings.cpp

This file was deleted.

9 changes: 0 additions & 9 deletions src/device_bindings.hpp

This file was deleted.

25 changes: 25 additions & 0 deletions utilities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,28 @@ pyinstaller --onefile -w --icon=assets/icon.ico --add-data="assets/icon.ico;asse
```

Optionally, append `--runtime-tmpdir [path or .]` to modify where the temporary directory should be created when launched.


## Cam Test
Run:
```sh
python3 cam_test.py
```
To start cam test with GUI.
Run cam_test.py with args to start cam test without GUI:

### Bundled executable
Requirements:
```
# Linux/macOS
python3 -m pip install pyinstaller
# Windows
python -m pip install pyinstaller
```

To build a bundled executable issue the following command:
```sh
pyinstaller -w cam_test.py --hidden-import PyQt5.sip
```

The executable will be located in `dist/cam_test` folder.
Loading

0 comments on commit 1419470

Please sign in to comment.