cv-benchkit 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,37 @@
1
+ name: Bug Report
2
+ description: File a bug report to help us improve cv-benchkit
3
+ labels: ["bug"]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ Thanks for taking the time to report a bug! Please fill out the sections below.
9
+ - type: textarea
10
+ id: description
11
+ attributes:
12
+ label: Bug Description
13
+ description: A clear and concise description of what the bug is.
14
+ validations:
15
+ required: true
16
+ - type: textarea
17
+ id: reproduction
18
+ attributes:
19
+ label: Minimal Reproduction Code
20
+ description: Provide a minimal, self-contained Python script or snippet that reproduces the issue.
21
+ render: python
22
+ validations:
23
+ required: true
24
+ - type: textarea
25
+ id: traceback
26
+ attributes:
27
+ label: Error Traceback / Output
28
+ description: Paste the full traceback or output if an exception was raised.
29
+ render: text
30
+ - type: input
31
+ id: environment
32
+ attributes:
33
+ label: Environment Info
34
+ description: Python version, OS, cv-benchkit version, numpy version.
35
+ placeholder: "e.g., Python 3.12, Windows 11, cv-benchkit 0.1.0, numpy 2.1"
36
+ validations:
37
+ required: true
@@ -0,0 +1,28 @@
1
+ name: Feature Request
2
+ description: Suggest an idea or new capability for cv-benchkit
3
+ labels: ["enhancement"]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ Have a feature suggestion or format integration in mind? We'd love to hear it!
9
+ - type: textarea
10
+ id: problem
11
+ attributes:
12
+ label: Is your feature request related to a problem?
13
+ description: A clear description of what the problem is.
14
+ validations:
15
+ required: true
16
+ - type: textarea
17
+ id: solution
18
+ attributes:
19
+ label: Proposed Solution / API
20
+ description: Describe how you would like the API or CLI to behave.
21
+ placeholder: "e.g., cv_benchkit.converters.coco_to_yolo_obb(coco, output_dir)"
22
+ validations:
23
+ required: true
24
+ - type: textarea
25
+ id: alternatives
26
+ attributes:
27
+ label: Alternatives Considered
28
+ description: Any alternative solutions or features you considered.
@@ -0,0 +1,23 @@
1
+ ## Description
2
+
3
+ Provide a summary of the change, why it was made, and link relevant issues.
4
+
5
+ Fixes #(issue number)
6
+
7
+ ## Type of Change
8
+
9
+ - [ ] Bug fix (non-breaking change which fixes an issue)
10
+ - [ ] New feature (non-breaking change which adds functionality)
11
+ - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12
+ - [ ] Documentation update
13
+ - [ ] Test suite enhancement
14
+
15
+ ## Quality Checklist
16
+
17
+ - [ ] I have read the [CONTRIBUTING.md](CONTRIBUTING.md) guide.
18
+ - [ ] My code follows the repository's code style and conventions.
19
+ - [ ] All functions and classes are fully typed and pass `uv run mypy src/`.
20
+ - [ ] Code formatting and linting pass: `uv run ruff check .` and `uv run ruff format --check .`.
21
+ - [ ] I have added unit tests covering my changes.
22
+ - [ ] All tests pass locally with `uv run pytest`.
23
+ - [ ] I have updated the documentation / docstrings accordingly.
@@ -0,0 +1,25 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ groups:
8
+ python-dependencies:
9
+ patterns:
10
+ - "*"
11
+ update-types:
12
+ - "minor"
13
+ - "patch"
14
+
15
+ - package-ecosystem: "github-actions"
16
+ directory: "/"
17
+ schedule:
18
+ interval: "weekly"
19
+ groups:
20
+ github-actions:
21
+ patterns:
22
+ - "*"
23
+ update-types:
24
+ - "minor"
25
+ - "patch"
@@ -0,0 +1,44 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ lint-and-test:
14
+ runs-on: ubuntu-latest
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
19
+
20
+ steps:
21
+ - name: Checkout repository
22
+ uses: actions/checkout@v7
23
+
24
+ - name: Set up Python ${{ matrix.python-version }}
25
+ uses: actions/setup-python@v7
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+
29
+ - name: Install uv
30
+ run: pip install uv
31
+
32
+ - name: Install dependencies
33
+ run: uv sync --extra dev
34
+
35
+ - name: Run Ruff linter and formatter check
36
+ run: |
37
+ uv run ruff check .
38
+ uv run ruff format --check .
39
+
40
+ - name: Run mypy type check
41
+ run: uv run mypy src/
42
+
43
+ - name: Run pytest with coverage
44
+ run: uv run pytest
@@ -0,0 +1,36 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*.*.*"
7
+
8
+ permissions:
9
+ contents: write
10
+ id-token: write
11
+
12
+ jobs:
13
+ build-and-publish:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v7
18
+
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v7
21
+ with:
22
+ python-version: "3.11"
23
+
24
+ - name: Install uv and build
25
+ run: |
26
+ pip install uv build
27
+ python -m build
28
+
29
+ - name: Create GitHub Release
30
+ uses: softprops/action-gh-release@v3
31
+ with:
32
+ generate_release_notes: true
33
+ files: dist/*
34
+
35
+ - name: Publish package distributions to PyPI
36
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,51 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+
23
+ # Virtual environments
24
+ .venv/
25
+ env/
26
+ venv/
27
+ ENV/
28
+
29
+ # Testing & Coverage
30
+ .tox/
31
+ .nox/
32
+ .coverage
33
+ .coverage.*
34
+ .cache
35
+ nosetests.xml
36
+ coverage.xml
37
+ *.cover
38
+ *.py,cover
39
+ .hypothesis/
40
+ .pytest_cache/
41
+ cover/
42
+
43
+ # Type checking & Linters
44
+ .mypy_cache/
45
+ .ruff_cache/
46
+
47
+ # IDEs
48
+ .vscode/
49
+ .idea/
50
+ *.swp
51
+ *.swo
@@ -0,0 +1,8 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.17.5
4
+ hooks:
5
+ - id: ruff-format
6
+ - id: ruff-check
7
+ args: [--fix]
8
+ - id: ruff-format
@@ -0,0 +1,80 @@
1
+ # Contributing to cv-benchkit
2
+
3
+ Thank you for your interest in contributing to **cv-benchkit**! We welcome community contributions of all kinds: bug fixes, new bounding-box converters, metrics, documentation improvements, and additional unit tests.
4
+
5
+ ---
6
+
7
+ ## Code of Conduct
8
+
9
+ We are committed to providing a friendly, safe, and welcoming environment for all contributors. Please be kind, respectful, and constructive in all discussions, pull requests, and issue threads.
10
+
11
+ ---
12
+
13
+ ## Development Setup
14
+
15
+ We use [`uv`](https://github.com/astral-sh/uv) for fast and reproducible environment and dependency management.
16
+
17
+ 1. **Fork and clone the repository**:
18
+ ```bash
19
+ git clone https://github.com/<your-username>/cv-benchkit.git
20
+ cd cv-benchkit
21
+ git remote add upstream https://github.com/udayraj1238/cv-benchkit.git
22
+ ```
23
+
24
+ 2. **Install dependencies and pre-commit hooks**:
25
+ ```bash
26
+ uv sync --extra dev
27
+ uv run pre-commit install
28
+ ```
29
+
30
+ 3. **Create a topic branch**:
31
+ ```bash
32
+ git checkout -b feat/add-yolo-obb-support
33
+ # or
34
+ git checkout -b fix/empty-batch-giou
35
+ ```
36
+
37
+ ---
38
+
39
+ ## Coding Standards
40
+
41
+ All code submitted to `cv-benchkit` must meet these standards:
42
+
43
+ - **Type Annotations**: All public and internal functions must be 100% typed and pass `uv run mypy src/` in strict mode.
44
+ - **Linting & Formatting**: We enforce [`ruff`](https://github.com/astral-sh/ruff) for linting and formatting. Run:
45
+ ```bash
46
+ uv run ruff check .
47
+ uv run ruff format --check .
48
+ ```
49
+ - **Testing**: Every new feature, converter, or bug fix must come with unit tests in `tests/`. We maintain >=95% test coverage.
50
+ ```bash
51
+ uv run pytest
52
+ ```
53
+ - **Commit Messages**: We follow Conventional Commits:
54
+ - `feat: add rotated bounding box (OBB) converter`
55
+ - `fix: handle zero-width box in GIoU computation`
56
+ - `docs: update quick start instructions in README`
57
+ - `test: add edge cases for empty annotation sets`
58
+
59
+ ---
60
+
61
+ ## Submitting a Pull Request
62
+
63
+ 1. Ensure all local quality gates pass:
64
+ ```bash
65
+ uv run ruff check .
66
+ uv run ruff format --check .
67
+ uv run mypy src/
68
+ uv run pytest
69
+ ```
70
+ 2. Push your branch to your fork:
71
+ ```bash
72
+ git push origin <your-branch-name>
73
+ ```
74
+ 3. Open a Pull Request against `main`. Follow our PR template and reference any relevant issues (e.g., `Fixes #12`).
75
+
76
+ ---
77
+
78
+ ## Need an Idea?
79
+
80
+ Check out our [Good First Issues Catalog](docs/GOOD_FIRST_ISSUES_CATALOG.md) which contains 40 curated, bite-sized tasks ready to claim and build!
@@ -0,0 +1,178 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 Uday Raj
@@ -0,0 +1,124 @@
1
+ Metadata-Version: 2.5
2
+ Name: cv-benchkit
3
+ Version: 0.1.0
4
+ Summary: Computer-vision benchmark toolkit: bbox format converters, dataset translators, and evaluation metrics.
5
+ Project-URL: Homepage, https://github.com/udayraj1238/cv-benchkit
6
+ Project-URL: Repository, https://github.com/udayraj1238/cv-benchkit
7
+ Project-URL: Issues, https://github.com/udayraj1238/cv-benchkit/issues
8
+ Author-email: Uday Raj <rajuday6002@gmail.com>
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: bbox,coco,computer-vision,iou,metrics,voc,yolo
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Classifier: Topic :: Scientific/Engineering :: Image Recognition
23
+ Classifier: Typing :: Typed
24
+ Requires-Python: >=3.10
25
+ Requires-Dist: numpy>=1.24
26
+ Requires-Dist: pydantic>=2.0
27
+ Provides-Extra: dev
28
+ Requires-Dist: mypy>=1.10; extra == 'dev'
29
+ Requires-Dist: pre-commit>=3.0; extra == 'dev'
30
+ Requires-Dist: pytest-cov>=4.0; extra == 'dev'
31
+ Requires-Dist: pytest>=7.0; extra == 'dev'
32
+ Requires-Dist: ruff>=0.4; extra == 'dev'
33
+ Description-Content-Type: text/markdown
34
+
35
+ # cv-benchkit
36
+
37
+ [![CI](https://github.com/udayraj1238/cv-benchkit/actions/workflows/ci.yml/badge.svg)](https://github.com/udayraj1238/cv-benchkit/actions)
38
+ [![PyPI](https://img.shields.io/pypi/v/cv-benchkit.svg)](https://pypi.org/project/cv-benchkit/)
39
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
40
+ [![Python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue)](https://www.python.org/)
41
+
42
+ Unified computer vision annotation converter and model benchmarking toolkit for PyTorch and NumPy.
43
+
44
+ ---
45
+
46
+ ## Features
47
+
48
+ - **Format Converters**: Seamless, vectorized conversions between `xyxy`, `xywh` (COCO), `cxcywh`, and normalized (YOLO) bounding-box representations.
49
+ - **Dataset Translators**: Two-way translations between **COCO JSON**, **YOLO txt**, and **Pascal VOC XML**.
50
+ - **Vectorized Evaluation Metrics**: Fast NumPy implementations of pairwise **IoU**, **GIoU**, and multiclass **confusion matrix** calculations with background handling.
51
+ - **CLI Utility**: Command-line interface for fast dataset conversion and validation.
52
+ - **Strictly Typed & Tested**: 100% typed with PEP 561 marker, passing `mypy --strict`, with 95%+ unit test coverage.
53
+
54
+ ---
55
+
56
+ ## Installation
57
+
58
+ Using `uv` (recommended):
59
+ ```bash
60
+ uv add cv-benchkit
61
+ ```
62
+
63
+ Or using `pip`:
64
+ ```bash
65
+ pip install cv-benchkit
66
+ ```
67
+
68
+ ---
69
+
70
+ ## Quick Start
71
+
72
+ ### Python API
73
+
74
+ ```python
75
+ import numpy as np
76
+ from cv_benchkit import compute_iou, xyxy_to_normalized, validate_coco_file
77
+
78
+ # Compute IoU
79
+ boxes_a = np.array([[0, 0, 100, 100], [50, 50, 150, 150]])
80
+ boxes_b = np.array([[20, 20, 120, 120]])
81
+ iou_matrix = compute_iou(boxes_a, boxes_b)
82
+ print(iou_matrix)
83
+
84
+ # Validate and convert COCO annotations
85
+ dataset = validate_coco_file("path/to/annotations.json")
86
+ ```
87
+
88
+ ### CLI
89
+
90
+ ```bash
91
+ # Validate COCO dataset
92
+ cv-benchkit validate annotations.json
93
+
94
+ # Convert COCO to YOLO format
95
+ cv-benchkit convert --from coco --to yolo --input annotations.json --output ./yolo_labels
96
+
97
+ # Convert YOLO to COCO format
98
+ cv-benchkit convert --from yolo --to coco --input ./yolo_labels --output ./coco_out --image-width 640 --image-height 480 --categories person car bicycle
99
+ ```
100
+
101
+ ---
102
+
103
+ ## Development
104
+
105
+ ```bash
106
+ git clone https://github.com/udayraj1238/cv-benchkit.git
107
+ cd cv-benchkit
108
+ uv sync --extra dev
109
+ uv run pytest
110
+ uv run ruff check .
111
+ uv run mypy src/
112
+ ```
113
+
114
+ ---
115
+
116
+ ## Contributing
117
+
118
+ We welcome community contributions! Please read our [CONTRIBUTING.md](CONTRIBUTING.md) and check out our [Good First Issues Catalog](docs/GOOD_FIRST_ISSUES_CATALOG.md).
119
+
120
+ ---
121
+
122
+ ## License
123
+
124
+ Apache-2.0. See [LICENSE](LICENSE) for details.