Piotr Skalski
145313ab8f
Merge pull request #606 from xenteros/feature/Make_sv.MaskAnnotator_as_fast_as_annotators_in_popular_detection_frameworks_#472
...
Feature/make sv.mask annotator as fast as annotators in popular detection frameworks #472
2023-11-17 17:20:22 +01:00
xenteros
1267cf7fb0
Reformatted Code with pre-commit
2023-11-16 22:34:52 +01:00
xenteros
c2101db5d2
Optimize sv.MaskAnnotator by reducing number of calls to cv2.addWeighted
...
* Combined all colored masks before applying them to the scene
* Made sure that returned ndarray is np.uint8 for video writer simplicity
2023-11-16 22:27:32 +01:00
Piotr Skalski
fe4657f0d0
Merge pull request #605 from roboflow/feature/add_center_of_mass_text_positioning
...
Add centroid calculation for binary masks
2023-11-16 16:26:57 +01:00
SkalskiP
6c756c411b
Add calculate_masks_centroids function import in __init__.py
2023-11-16 16:25:48 +01:00
SkalskiP
0725d5a1a9
Cast get_anchors_coordinates return to integer.
2023-11-16 15:50:37 +01:00
SkalskiP
fa3b43f20a
Merge remote-tracking branch 'origin/feature/add_center_of_mass_text_positioning' into feature/add_center_of_mass_text_positioning
2023-11-16 15:37:17 +01:00
SkalskiP
5e091396f2
Refactor center_coordinates conversion to tuple
2023-11-16 15:36:36 +01:00
pre-commit-ci[bot]
66448ea862
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-11-16 14:33:57 +00:00
SkalskiP
b33d68da00
Merge remote-tracking branch 'origin/feature/add_center_of_mass_text_positioning' into feature/add_center_of_mass_text_positioning
...
# Conflicts:
# supervision/annotators/core.py
2023-11-16 15:31:56 +01:00
SkalskiP
6956dad17d
Swap enumeration arguments in loop
2023-11-16 15:30:03 +01:00
pre-commit-ci[bot]
b92ffeff82
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-11-16 14:24:19 +00:00
SkalskiP
7750856c18
Fix method names and improve code formatting
...
Renamed methods to improve clarity. `get_anchor_coordinates` changed to `get_anchors_coordinates` and `calculate_centroids` changed to `calculate_masks_centroids`. Indentation for method arguments was adjusted in `core.py` and other files for better readability. Functionality remains the same, these changes are meant to improve code maintainability and readability.
2023-11-16 15:23:55 +01:00
pre-commit-ci[bot]
72ab46687f
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-11-16 12:59:16 +00:00
SkalskiP
50e561a4fb
Add centroid calculation for binary masks
...
Added `calculate_centroids` function to compute center of mass for binary mask representations. Method added to `utils.py` and method import added to `core.py`. `Position` enumeration updated with `CENTER_OF_MASS` constant. Test function is added with test cases covering different mask scenarios. Update allows for masks to carry center of mass information too, useful in object detection.
2023-11-16 13:52:32 +01:00
Piotr Skalski
bb7695a774
Merge pull request #603 from roboflow/gh-pages-permission-fix
...
fix: 🐞 gh-pages permission fix for deployment
2023-11-15 20:50:58 +01:00
Onuralp SEZER
95006dca14
fix: 🐞 gh-pages permission fix for deployment
2023-11-15 22:11:32 +03:00
Onuralp SEZER
b3dec1a734
Merge branch 'develop' into min-ver-settings
2023-11-15 21:39:37 +03:00
Piotr Skalski
5456c666c7
Merge pull request #602 from roboflow/feature/adding-polygon-annotator
...
Add PolygonAnnotator and update documentation
2023-11-15 17:54:11 +01:00
SkalskiP
2ed4e16ab5
Added a visual and code example for PolygonAnnotator in supervision/annotators/core.py and docs/annotators.md.
2023-11-15 17:49:17 +01:00
SkalskiP
c1beb0f5fd
Add PolygonAnnotator to supervision annotators
2023-11-15 17:30:06 +01:00
pre-commit-ci[bot]
777e8d3e5b
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-11-15 16:11:11 +00:00
SkalskiP
e40532cf3e
Add PolygonAnnotator and update documentation
...
Implemented the PolygonAnnotator class in the core.py file under the supervision/annotators directory to support drawing polygons over detected objects. This was done by dividing the masks into multiple polygons and drawing them on the image.
2023-11-15 17:09:27 +01:00
Onuralp SEZER
550e86bc6d
Merge pull request #598 from roboflow/dependabot/pip/mkdocstrings-0.24.0
...
⬆️ Bump mkdocstrings from 0.23.0 to 0.24.0
2023-11-15 17:07:13 +03:00
Onuralp SEZER
6af17b235f
Merge pull request #589 from roboflow/dependabot/pip/mypy-1.7.0
...
⬆️ Bump mypy from 1.6.1 to 1.7.0
2023-11-15 17:06:48 +03:00
Onuralp SEZER
de867bb166
Merge pull request #593 from roboflow/dependabot/github_actions/actions/github-script-7
...
⬆️ Bump actions/github-script from 6 to 7
2023-11-15 17:06:25 +03:00
Onuralp SEZER
ca84d3129c
Merge pull request #592 from roboflow/pre-commit-ci-update-config
...
chore(pre_commit): ⬆ pre_commit autoupdate
2023-11-15 17:06:03 +03:00
Onuralp SEZER
9c9bc77e12
Merge pull request #600 from roboflow/fix/incorrectly-autoformatted-case-test
...
Updated tests to reflect changes in file content handling
2023-11-15 17:05:11 +03:00
Onuralp SEZER
b9573605c7
fix(test): 🧪 pre-commit's whitespace exclude and test case fix for whiespace
...
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com >
2023-11-15 17:01:57 +03:00
pre-commit-ci[bot]
8025b468a2
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-11-15 13:42:25 +00:00
SkalskiP
d3fb4ad932
Ignoring W291 for test_file.py
2023-11-15 14:41:38 +01:00
pre-commit-ci[bot]
fcfb57612f
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-11-15 13:37:51 +00:00
SkalskiP
c28aa5aebd
Updated tests to reflect changes in file content handling
2023-11-15 14:37:02 +01:00
Piotr Skalski
109d048a38
Merge pull request #584 from SummitStudiosDev/develop
...
Ignore Empty Newlines in Yolo Label File
2023-11-15 14:32:34 +01:00
dependabot[bot]
6ad1f701dd
⬆️ Bump mkdocstrings from 0.23.0 to 0.24.0
...
Bumps [mkdocstrings](https://github.com/mkdocstrings/mkdocstrings ) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/mkdocstrings/mkdocstrings/releases )
- [Changelog](https://github.com/mkdocstrings/mkdocstrings/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mkdocstrings/mkdocstrings/compare/0.23.0...0.24.0 )
---
updated-dependencies:
- dependency-name: mkdocstrings
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-15 00:32:33 +00:00
dependabot[bot]
7f081f4314
⬆️ Bump actions/github-script from 6 to 7
...
Bumps [actions/github-script](https://github.com/actions/github-script ) from 6 to 7.
- [Release notes](https://github.com/actions/github-script/releases )
- [Commits](https://github.com/actions/github-script/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: actions/github-script
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-14 00:36:36 +00:00
pre-commit-ci[bot]
dd39360221
chore(pre_commit): ⬆ pre_commit autoupdate
...
updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0 )
- [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.4...v0.1.5 )
2023-11-13 17:46:54 +00:00
dependabot[bot]
7de7281e0e
⬆️ Bump mypy from 1.6.1 to 1.7.0
...
Bumps [mypy](https://github.com/python/mypy ) from 1.6.1 to 1.7.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.6.1...v1.7.0 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-13 00:53:30 +00:00
Onuralp SEZER
e8f0ceab71
fix: 🐞 test fix
...
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com >
2023-11-10 22:07:47 +03:00
Onuralp SEZER
94a95110ce
fix: 🐞 pre-commit fix and ignore removed (not needed)
...
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com >
2023-11-10 21:47:40 +03:00
pre-commit-ci[bot]
08a48a4f5d
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-11-10 18:26:26 +00:00
SkalskiP
95f4b5c0b8
Add linting rule exceptions for test_file.py
...
Added linting rule exceptions for 'test/utils/test_file.py' in 'pyproject.toml'. Specifically, the 'W291' error which checks for trailing whitespace is ignored for this test file. This is necessary to test whether 'read_txt_file' function in 'test_utils.py' correctly ignores trailing whitespaces in varies test scenarios.
2023-11-10 10:25:59 -08:00
pre-commit-ci[bot]
6211139201
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-11-10 18:15:39 +00:00
SkalskiP
e416ef4c0e
Refactor import paths and improve text file reading
...
Refactored import paths for test utility methods across multiple test files to align with a recent package restructure. Enriched 'read_txt_file' functionality in 'file.py' allowing to optionally skip empty lines, enhancing flexibility for various use-cases. Added tests for the new 'read_txt_file' behavior in a new 'test_file.py'. Renamed 'utils.py' in test package to 'test_utils.py' for better differentiation from the util package in the source code.
2023-11-10 10:15:08 -08:00
pre-commit-ci[bot]
1dce43747f
fix(pre_commit): 🎨 auto format pre-commit hooks
2023-11-10 04:41:51 +00:00
Cody Chen
f9ead5543b
Ignore empty newlines in yolo label file
2023-11-09 20:24:11 -08:00
Onuralp SEZER
5d19e246a4
Merge pull request #583 from roboflow/dependabot/pip/ruff-0.1.5
...
⬆️ Bump ruff from 0.1.4 to 0.1.5
2023-11-09 11:33:03 +03:00
Onuralp SEZER
052a9d33bb
Merge pull request #582 from roboflow/dependabot/pip/black-23.11.0
...
⬆️ Bump black from 23.10.1 to 23.11.0
2023-11-09 11:32:45 +03:00
dependabot[bot]
ed41153c19
⬆️ Bump ruff from 0.1.4 to 0.1.5
...
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/v0.1.4...v0.1.5 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-09 00:48:59 +00:00
dependabot[bot]
b89487d8e8
⬆️ Bump black from 23.10.1 to 23.11.0
...
Bumps [black](https://github.com/psf/black ) from 23.10.1 to 23.11.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/23.10.1...23.11.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-09 00:46:29 +00:00