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

Release depthai-nodes v0.0.2 #98

Closed
wants to merge 110 commits into from
Closed
Show file tree
Hide file tree
Changes from 107 commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
4039a91
Added labeler to CI (#43)
klemen1999 Sep 2, 2024
5f755d3
Updated requirements.txt (#44)
klemen1999 Sep 2, 2024
1168441
Added coverage badge to README (#45)
klemen1999 Sep 2, 2024
29a4c33
Added package version (#46)
klemen1999 Sep 2, 2024
c8b1bfb
Update ci.yaml
kozlov721 Sep 2, 2024
afbb73b
[Automated] Updated coverage badge
actions-user Sep 2, 2024
c44fc71
Merge pull request #47 from luxonis/kozlov721-patch-1
kozlov721 Sep 2, 2024
a3f03fd
Update README.md
klemen1999 Sep 3, 2024
ae8f1fb
YOLOv8 kpts and seg example. (#48)
kkeroo Sep 3, 2024
d33cad2
Extend MPPalmDetection parser. (#49)
kkeroo Sep 3, 2024
f6c0b46
feat: add support for metric depth
jkbmrz Sep 3, 2024
0a3c2a3
fix: broken depth tests
jkbmrz Sep 3, 2024
6f96c4b
fix: pre-commit
jkbmrz Sep 3, 2024
180740e
fix: change default depth limit to float
jkbmrz Sep 3, 2024
fbed8e9
feat: add test for metric depth map
jkbmrz Sep 3, 2024
5c0d70d
Developer guide docs added. (#51)
kkeroo Sep 4, 2024
53e0ef1
Merge pull request #50 from luxonis/feat/add_metric_depth_support
jkbmrz Sep 4, 2024
3a551ea
Support for metrics depth type. (#52)
kkeroo Sep 4, 2024
db9c519
Hotfix: remove no-commit from pre-commit (#54)
klemen1999 Sep 4, 2024
6448b1c
Added automatic PyPI publishing (#55)
klemen1999 Sep 4, 2024
c2a42f8
feat: add parser for DM-Count crowd density estimation model
jkbmrz Sep 4, 2024
5ff8582
fix: pre-commit
jkbmrz Sep 4, 2024
6692b53
fix: add missing imports
jkbmrz Sep 4, 2024
fb0ec0d
feat: add property methods to Map2D message
jkbmrz Sep 5, 2024
6191b41
fix: density map dimensions
jkbmrz Sep 5, 2024
9d0d34c
fix: pre-commit
jkbmrz Sep 5, 2024
256d128
Merge pull request #56 from luxonis/feat/mdcount_parser
jkbmrz Sep 6, 2024
4262379
feat: unify map parsers
jkbmrz Sep 6, 2024
ec4c413
feat: unify map message creators
jkbmrz Sep 6, 2024
a5fe692
refactor: simplify map message file name
jkbmrz Sep 6, 2024
b772caf
feat: add map tests
jkbmrz Sep 6, 2024
91afa7a
fix: pre-commit
jkbmrz Sep 6, 2024
8419b33
fix: map tests
jkbmrz Sep 6, 2024
d6a7565
fix: map scaling test
jkbmrz Sep 6, 2024
33591db
fix: pre-commit
jkbmrz Sep 6, 2024
59d3220
[Automated] Updated coverage badge
actions-user Sep 6, 2024
82a44c6
feat: remove thermal image parser and creator
jkbmrz Sep 9, 2024
0104416
feat: remove thermal image tests
jkbmrz Sep 9, 2024
6d7c1e5
fix: remove imports of the deleted objects
jkbmrz Sep 9, 2024
ea6dae4
[Automated] Updated coverage badge
actions-user Sep 9, 2024
9aa4881
fix: create_map_message output type hint
jkbmrz Sep 9, 2024
6da850e
fix: pre-commit
jkbmrz Sep 9, 2024
f216c3f
Merge pull request #57 from luxonis/feat/unify_mapping_models_support
jkbmrz Sep 9, 2024
780444a
Adds FastSAM to example. (#58)
kkeroo Sep 9, 2024
d81e669
Extend Segmentation Parser. (#59)
kkeroo Sep 9, 2024
792ba1b
Added PaddlePaddle Text detection model parser.
aljazkonec1 Sep 9, 2024
855ae07
Added Parser to __init__
aljazkonec1 Sep 9, 2024
c31cbbe
Fixes Shape Error bug
aljazkonec1 Sep 9, 2024
6619b8b
Merge branch 'dev' into paddle-text-detection-parser
aljazkonec1 Sep 9, 2024
3cfe605
pre-commit error
aljazkonec1 Sep 9, 2024
4e23045
[fix] precommit
aljazkonec1 Sep 9, 2024
03905fd
[Automated] Updated coverage badge
actions-user Sep 9, 2024
cb60290
Revision.
aljazkonec1 Sep 10, 2024
7e4fe2f
Remove syntax error
aljazkonec1 Sep 10, 2024
4d73879
Update depthai_nodes/ml/parsers/utils/ppocr.py
klemen1999 Sep 10, 2024
7e8fb22
Renamed some functions.
aljazkonec1 Sep 10, 2024
bf40f37
Merge branch 'paddle-text-detection-parser' of https://github.com/lux…
aljazkonec1 Sep 10, 2024
d419cd0
Removed wrong __init__ imports
aljazkonec1 Sep 10, 2024
d4cea65
PaddleOCR model returns a sequence of classification probabilities fo…
aljazkonec1 Sep 10, 2024
5fbfdd8
[Automated] Updated coverage badge
actions-user Sep 10, 2024
6f78316
Lane detection parser. (#61)
kkeroo Sep 10, 2024
50a237b
Merge branch 'dev' into paddle-text-detection-parser
aljazkonec1 Sep 10, 2024
bd219af
[Automated] Updated coverage badge
actions-user Sep 10, 2024
9cb663a
Merge pull request #60 from luxonis/paddle-text-detection-parser
aljazkonec1 Sep 10, 2024
5583782
Merge branch 'dev' into paddle-ocr-parser
aljazkonec1 Sep 10, 2024
7529fec
PaddleOCR Parser and Classification Sequence message
aljazkonec1 Sep 11, 2024
57b03e3
Added unit tests and modified some assertions
aljazkonec1 Sep 11, 2024
1134c6e
pre-commit fixs
aljazkonec1 Sep 11, 2024
245145a
Doc string fix
aljazkonec1 Sep 11, 2024
f432f02
[Automated] Updated coverage badge
actions-user Sep 11, 2024
8903d81
small fix
aljazkonec1 Sep 11, 2024
d5be207
Merge branch 'paddle-ocr-parser' of https://github.com/luxonis/deptha…
aljazkonec1 Sep 11, 2024
8899a79
Merge pull request #64 from luxonis/paddle-ocr-parser
aljazkonec1 Sep 11, 2024
f80b0ac
[BUG] small bug fix where x_min was not <= x_max
aljazkonec1 Sep 11, 2024
1bbe0c2
Merge pull request #66 from luxonis/corner2xyxy-bug
aljazkonec1 Sep 11, 2024
4c77524
Added VehicleAttribte Parser and tests.
aljazkonec1 Sep 12, 2024
4a5914d
Added docstrings.
aljazkonec1 Sep 12, 2024
fbfcfc8
[Automated] Updated coverage badge
actions-user Sep 13, 2024
ca37f9a
Changed to MultiClassification parser
aljazkonec1 Sep 13, 2024
eee0b3d
[Automated] Updated coverage badge
actions-user Sep 13, 2024
83080fe
Updated docstrings and names
aljazkonec1 Sep 16, 2024
f701cf7
fixed unit-test name
aljazkonec1 Sep 16, 2024
b1d42d5
Updated variable names.
aljazkonec1 Sep 16, 2024
ceac1c8
Merge pull request #67 from luxonis/vehicle-attributes-parser
aljazkonec1 Sep 16, 2024
9757985
Refactor code.
aljazkonec1 Sep 16, 2024
c98abfd
remove AgeGender Message.
aljazkonec1 Sep 17, 2024
13d7d4a
Refactor examples.
aljazkonec1 Sep 17, 2024
a6d34c1
Merge pull request #68 from luxonis/update-parser-locations
aljazkonec1 Sep 17, 2024
b5bd9fe
refactor: separate visualizers and their utils
jkbmrz Sep 17, 2024
9b7426b
refactor: remove mapping.py
jkbmrz Sep 17, 2024
a507e1b
feat: add support for models with 2D map output
jkbmrz Sep 17, 2024
6631d54
fix: add FPS limit to avoid OAK-D Lite errors
jkbmrz Sep 17, 2024
786ebaa
docs: update README.md
jkbmrz Sep 17, 2024
06f5874
fix: pre-commit
jkbmrz Sep 17, 2024
f61e1db
Merge pull request #70 from luxonis/feat/add_map_examples2
jkbmrz Sep 17, 2024
8e6b4ed
[HOT-FIX] Update ppdet to return polygons.
aljazkonec1 Sep 17, 2024
3546c60
[Automated] Updated coverage badge
actions-user Sep 17, 2024
4daa810
Update depthai_nodes/ml/parsers/ppdet.py
aljazkonec1 Sep 17, 2024
a79b8ad
dele one line
aljazkonec1 Sep 17, 2024
7345faa
Merge pull request #71 from luxonis/corner-support-for-ppdet
aljazkonec1 Sep 17, 2024
59a0190
Better error in MPPalmDetectionParser. (#72)
kkeroo Sep 19, 2024
6769aef
Fix RVC4 order (#76)
HonzaCuhel Sep 24, 2024
de544a4
XFeat parser for Mono and Stereo. (#82)
kkeroo Sep 30, 2024
2a312f8
Tiling and TilesPatcher (#89)
spbui00 Oct 2, 2024
9212a21
reformatted docstring in epytext (#92)
spbui00 Oct 2, 2024
3f3e360
Minor release preparation. (#93)
kkeroo Oct 4, 2024
6a44d79
Version bump. (#97)
kkeroo Oct 4, 2024
e4befc4
Remove duplicated.
kkeroo Oct 4, 2024
10fa1f2
Release: Fix merge conflicts (#99)
kkeroo Oct 4, 2024
d163fc4
Merge branch 'dev' of github.com:luxonis/depthai-nodes into dev
kkeroo Oct 4, 2024
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @tersekmatija @jkbmrz @kkeroo @klemen1999
33 changes: 33 additions & 0 deletions .github/labeler.yaml
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'
20 changes: 17 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ on:
paths:
- 'depthai_nodes/**'
- 'tests/**'
- .github/workflows/ci.yaml
- 'examples/**'
- 'docs/**'
- .github/workflows/ci.yaml

permissions:
pull-requests: write
Expand All @@ -21,6 +22,19 @@ jobs:
- name: Auto-assign
uses: toshimaru/auto-author-assign@v2.1.1

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:
Expand Down Expand Up @@ -109,8 +123,8 @@ jobs:
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
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"
}

Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/python-publish.yaml
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 }}
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ repos:
additional_dependencies: [tomli]
args: [--in-place, --black, --style=epytext]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: no-commit-to-branch
args: ['--branch', 'main', '--branch', 'dev']

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.10
hooks:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ It outlines our workflow and standards for contributing to this project.

## Developing parser

Parser should be developed so that it is consistent with other parsers. Check out other parsers to see the required structure. Additionally, pay attention to the naming of the parser's attributes. Check out [NN Archive Parameters](docs/nn_archive_parameters.md).
Parser should be developed so that it is consistent with other parsers. Check out other parsers to see the required structure. Additionally, pay attention to the naming of the parser's attributes. Check out [Developer guide](docs/developer_guide.md).

## Pre-commit Hooks

Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 git@github.com: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)
2 changes: 2 additions & 0 deletions depthai_nodes/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from .ml.parsers import *

__version__ = "0.0.2"
4 changes: 4 additions & 0 deletions depthai_nodes/ml/helpers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .tiles_patcher import TilesPatcher
from .tiling import Tiling

__all__ = ["Tiling", "TilesPatcher"]
Loading