-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added labeler to CI (#43) * Updated requirements.txt (#44) * Added coverage badge to README (#45) * Added package version (#46) * Update ci.yaml * [Automated] Updated coverage badge * Update README.md * YOLOv8 kpts and seg example. (#48) * Extend MPPalmDetection parser. (#49) * Add support for different input sizes. * Support extended palm detection in examples. * Pre-commit fix. * Add normalization. * feat: add support for metric depth * fix: broken depth tests * fix: pre-commit * fix: change default depth limit to float * feat: add test for metric depth map * Developer guide docs added. (#51) * Support for metrics depth type. (#52) * Hotfix: remove no-commit from pre-commit (#54) * Added automatic PyPI publishing (#55) --------- Co-authored-by: Martin Kozlovský <[email protected]> Co-authored-by: GitHub Actions <[email protected]> Co-authored-by: Jaša Kerec <[email protected]> Co-authored-by: jkbmrz <[email protected]> Co-authored-by: jkbmrz <[email protected]>
- Loading branch information
1 parent
cd38f0d
commit 8fc6ba2
Showing
20 changed files
with
432 additions
and
60 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @tersekmatija @jkbmrz @kkeroo @klemen1999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
DevOps: | ||
- changed-files: | ||
- any-glob-to-any-file: ".github/*" | ||
documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: "docs/*" | ||
examples: | ||
- changed-files: | ||
- any-glob-to-any-file: "examples/*" | ||
messages: | ||
- changed-files: | ||
- any-glob-to-any-file: "depthai_nodes/ml/messages/*" | ||
parsers: | ||
- changed-files: | ||
- any-glob-to-any-file: "depthai_nodes/ml/parsers/*" | ||
tests: | ||
- changed-files: | ||
- any-glob-to-any-file: "tests/*" | ||
enhancement: | ||
- head-branch: | ||
- 'feature/*' | ||
- 'feat/*' | ||
- 'enhancement/*' | ||
fix: | ||
- head-branch: | ||
- 'fix/*' | ||
- 'bug/*' | ||
- 'hotfix/*' | ||
- 'issue/*' | ||
- 'bugfix/*' | ||
- 'patch/*' | ||
release: | ||
- base-branch: 'main' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,9 @@ on: | |
paths: | ||
- 'depthai_nodes/**' | ||
- 'tests/**' | ||
- .github/workflows/ci.yaml | ||
- 'examples/**' | ||
- 'docs/**' | ||
- .github/workflows/ci.yaml | ||
|
||
permissions: | ||
pull-requests: write | ||
|
@@ -21,6 +22,19 @@ jobs: | |
- name: Auto-assign | ||
uses: toshimaru/[email protected] | ||
|
||
labeler: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Labeler | ||
uses: actions/labeler@v5 | ||
with: | ||
configuration-path: .github/labeler.yaml | ||
|
||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -109,8 +123,8 @@ jobs: | |
run: | | ||
git config --global user.name 'GitHub Actions' | ||
git config --global user.email '[email protected]' | ||
git diff --quiet media/coverage_badge.svg || { | ||
git add media/coverage_badge.svg | ||
git add media/coverage_badge.svg | ||
git diff --quiet --cached media/coverage_badge.svg || { | ||
git commit -m "[Automated] Updated coverage badge" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.8' | ||
cache: pip | ||
|
||
- name: Install dependencies | ||
run: pip install build pydoctor | ||
|
||
- name: Generate docs | ||
run: | | ||
curl -L "https://raw.githubusercontent.com/luxonis/python-api-analyzer-to-json/main/gen-docs.py" -o "gen-docs.py" | ||
python gen-docs.py depthai_nodes | ||
- name: Build package | ||
run: python -m build | ||
|
||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
|
||
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) | ||
|
||
![CI](https://github.com/luxonis/depthai-nodes/actions/workflows/ci.yaml/badge.svg) | ||
![Coverage](https://github.com/luxonis/depthai-nodes/blob/dev/media/coverage_badge.svg) | ||
|
||
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) | ||
[![Docformatter](https://img.shields.io/badge/%20formatter-docformatter-fedcba.svg)](https://github.com/PyCQA/docformatter) | ||
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) | ||
|
@@ -33,18 +36,22 @@ To install the package, run: | |
pip install depthai-nodes | ||
``` | ||
|
||
Before the official release on PyPI you can install the package from the GitHub repository: | ||
### Manual installation | ||
|
||
If you want to manually install the package from GitHub repositoory you can run: | ||
|
||
```bash | ||
git clone [email protected]:luxonis/depthai-nodes.git | ||
``` | ||
|
||
and then install the requirements: | ||
and then inside the directory run: | ||
|
||
```bash | ||
pip install -r requirements.txt | ||
pip install . | ||
``` | ||
|
||
Note: You'll still need to manually install `depthai v3`. | ||
|
||
## Contributing | ||
|
||
If you want to contribute to this project, read the instructions in [CONTRIBUTING.md](./CONTRIBUTING.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from .ml.parsers import * | ||
|
||
__version__ = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.