ovkit 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.
Files changed (43) hide show
  1. ovkit-0.1.0/.gitignore +219 -0
  2. ovkit-0.1.0/LICENSE +202 -0
  3. ovkit-0.1.0/PKG-INFO +243 -0
  4. ovkit-0.1.0/README.md +198 -0
  5. ovkit-0.1.0/examples/README.md +100 -0
  6. ovkit-0.1.0/pyproject.toml +69 -0
  7. ovkit-0.1.0/src/ovkit/__init__.py +53 -0
  8. ovkit-0.1.0/src/ovkit/__main__.py +166 -0
  9. ovkit-0.1.0/src/ovkit/core/__init__.py +8 -0
  10. ovkit-0.1.0/src/ovkit/core/backend.py +166 -0
  11. ovkit-0.1.0/src/ovkit/core/constants.py +158 -0
  12. ovkit-0.1.0/src/ovkit/core/convert.py +64 -0
  13. ovkit-0.1.0/src/ovkit/core/download.py +261 -0
  14. ovkit-0.1.0/src/ovkit/core/errors.py +43 -0
  15. ovkit-0.1.0/src/ovkit/core/model.py +358 -0
  16. ovkit-0.1.0/src/ovkit/core/registry.py +153 -0
  17. ovkit-0.1.0/src/ovkit/core/results.py +322 -0
  18. ovkit-0.1.0/src/ovkit/core/tasks.py +105 -0
  19. ovkit-0.1.0/src/ovkit/face/__init__.py +19 -0
  20. ovkit-0.1.0/src/ovkit/face/analyzer.py +26 -0
  21. ovkit-0.1.0/src/ovkit/genai/__init__.py +25 -0
  22. ovkit-0.1.0/src/ovkit/genai/pipelines.py +143 -0
  23. ovkit-0.1.0/src/ovkit/image/__init__.py +7 -0
  24. ovkit-0.1.0/src/ovkit/image/ops.py +99 -0
  25. ovkit-0.1.0/src/ovkit/manifests/aliases.yaml +54 -0
  26. ovkit-0.1.0/src/ovkit/manifests/genai.yaml +38 -0
  27. ovkit-0.1.0/src/ovkit/manifests/models.yaml +47 -0
  28. ovkit-0.1.0/src/ovkit/manifests/omz.yaml +442 -0
  29. ovkit-0.1.0/src/ovkit/py.typed +0 -0
  30. ovkit-0.1.0/src/ovkit/recognize/__init__.py +60 -0
  31. ovkit-0.1.0/src/ovkit/recognize/base.py +103 -0
  32. ovkit-0.1.0/src/ovkit/recognize/classify.py +107 -0
  33. ovkit-0.1.0/src/ovkit/recognize/detect.py +328 -0
  34. ovkit-0.1.0/src/ovkit/recognize/face.py +129 -0
  35. ovkit-0.1.0/src/ovkit/recognize/generic.py +87 -0
  36. ovkit-0.1.0/src/ovkit/recognize/ocr.py +65 -0
  37. ovkit-0.1.0/src/ovkit/recognize/pose.py +85 -0
  38. ovkit-0.1.0/src/ovkit/recognize/segment.py +125 -0
  39. ovkit-0.1.0/src/ovkit/solutions/__init__.py +9 -0
  40. ovkit-0.1.0/src/ovkit/solutions/anomaly.py +19 -0
  41. ovkit-0.1.0/src/ovkit/solutions/ocr.py +24 -0
  42. ovkit-0.1.0/src/ovkit/solutions/reid.py +26 -0
  43. ovkit-0.1.0/src/ovkit/solutions/tracking.py +23 -0
ovkit-0.1.0/.gitignore ADDED
@@ -0,0 +1,219 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+ docs/**/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ # Pipfile.lock
97
+
98
+ # UV
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ # poetry.lock
110
+ # poetry.toml
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116
+ # pdm.lock
117
+ # pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # pixi
122
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123
+ # pixi.lock
124
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125
+ # in the .venv directory. It is recommended not to include this directory in version control.
126
+ .pixi
127
+
128
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
129
+ __pypackages__/
130
+
131
+ # Celery stuff
132
+ celerybeat-schedule
133
+ celerybeat.pid
134
+
135
+ # Redis
136
+ *.rdb
137
+ *.aof
138
+ *.pid
139
+
140
+ # RabbitMQ
141
+ mnesia/
142
+ rabbitmq/
143
+ rabbitmq-data/
144
+
145
+ # ActiveMQ
146
+ activemq-data/
147
+
148
+ # SageMath parsed files
149
+ *.sage.py
150
+
151
+ # Environments
152
+ .env
153
+ .envrc
154
+ .venv
155
+ env/
156
+ venv/
157
+ ENV/
158
+ env.bak/
159
+ venv.bak/
160
+
161
+ # Spyder project settings
162
+ .spyderproject
163
+ .spyproject
164
+
165
+ # Rope project settings
166
+ .ropeproject
167
+
168
+ # mkdocs documentation
169
+ /site
170
+
171
+ # mypy
172
+ .mypy_cache/
173
+ .dmypy.json
174
+ dmypy.json
175
+
176
+ # Pyre type checker
177
+ .pyre/
178
+
179
+ # pytype static type analyzer
180
+ .pytype/
181
+
182
+ # Cython debug symbols
183
+ cython_debug/
184
+
185
+ # PyCharm
186
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
187
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
188
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
189
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
190
+ # .idea/
191
+
192
+ # Abstra
193
+ # Abstra is an AI-powered process automation framework.
194
+ # Ignore directories containing user credentials, local state, and settings.
195
+ # Learn more at https://abstra.io/docs
196
+ .abstra/
197
+
198
+ # Visual Studio Code
199
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
200
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
201
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
202
+ # you could uncomment the following to ignore the entire vscode folder
203
+ # .vscode/
204
+ # Temporary file for partial code execution
205
+ tempCodeRunnerFile.py
206
+
207
+ # Ruff stuff:
208
+ .ruff_cache/
209
+
210
+ # PyPI configuration file
211
+ .pypirc
212
+
213
+ # Marimo
214
+ marimo/_static/
215
+ marimo/_lsp/
216
+ __marimo__/
217
+
218
+ # Streamlit
219
+ .streamlit/secrets.toml
ovkit-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 ovkit contributors
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
ovkit-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,243 @@
1
+ Metadata-Version: 2.5
2
+ Name: ovkit
3
+ Version: 0.1.0
4
+ Summary: A simple Python inference API for OpenVINO: one import, one Model class, clean Results — with AUTO/NPU, async, and INT8.
5
+ Project-URL: Homepage, https://github.com/leeyunjai82/ovkit
6
+ Project-URL: Documentation, https://leeyunjai82.github.io/ovkit/
7
+ Project-URL: Repository, https://github.com/leeyunjai82/ovkit
8
+ Project-URL: Issues, https://github.com/leeyunjai82/ovkit/issues
9
+ Project-URL: Models, https://huggingface.co/leeyunjai/ovkit-models
10
+ Author: ovkit contributors
11
+ License: Apache-2.0
12
+ License-File: LICENSE
13
+ Keywords: computer-vision,detection,inference,npu,openvino,quantization
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
+ Requires-Python: >=3.10
22
+ Requires-Dist: huggingface-hub>=0.20
23
+ Requires-Dist: numpy>=1.21
24
+ Requires-Dist: opencv-python-headless>=4.5
25
+ Requires-Dist: openvino>=2024.0
26
+ Requires-Dist: pillow>=9.0
27
+ Requires-Dist: pyyaml>=6.0
28
+ Provides-Extra: all
29
+ Requires-Dist: anomalib; extra == 'all'
30
+ Requires-Dist: nncf; extra == 'all'
31
+ Requires-Dist: openvino-genai; extra == 'all'
32
+ Requires-Dist: optimum-intel; extra == 'all'
33
+ Provides-Extra: anomaly
34
+ Requires-Dist: anomalib; extra == 'anomaly'
35
+ Provides-Extra: dev
36
+ Requires-Dist: black; extra == 'dev'
37
+ Requires-Dist: pytest>=7; extra == 'dev'
38
+ Requires-Dist: ruff; extra == 'dev'
39
+ Provides-Extra: genai
40
+ Requires-Dist: openvino-genai; extra == 'genai'
41
+ Requires-Dist: optimum-intel; extra == 'genai'
42
+ Provides-Extra: quant
43
+ Requires-Dist: nncf; extra == 'quant'
44
+ Description-Content-Type: text/markdown
45
+
46
+ <div align="center">
47
+
48
+ <img src="docs/_static/logo.svg" width="110" alt="ovkit logo"/>
49
+
50
+ # ovkit
51
+
52
+ **OpenVINO inference in 3 lines.** One `Model` class, clean `Results`, 30+
53
+ ready models — with `AUTO`/`NPU`/`GPU` devices, async throughput, and INT8.
54
+
55
+ [![CI](https://github.com/leeyunjai82/ovkit/actions/workflows/ci.yml/badge.svg)](https://github.com/leeyunjai82/ovkit/actions/workflows/ci.yml)
56
+ [![Docs](https://img.shields.io/badge/docs-github.io-0a7d8c)](https://leeyunjai82.github.io/ovkit/)
57
+ [![Python](https://img.shields.io/badge/python-3.10%2B-blue)](pyproject.toml)
58
+ [![License](https://img.shields.io/badge/license-Apache--2.0-green)](LICENSE)
59
+ [![Models](https://img.shields.io/badge/🤗%20models-ovkit--models-yellow)](https://huggingface.co/leeyunjai/ovkit-models)
60
+ <!-- After the first PyPI release, add:
61
+ [![PyPI](https://img.shields.io/pypi/v/ovkit)](https://pypi.org/project/ovkit/) -->
62
+
63
+ [Docs](https://leeyunjai82.github.io/ovkit/) ·
64
+ [한국어 문서](https://leeyunjai82.github.io/ovkit/ko/) ·
65
+ [Model catalog](https://leeyunjai82.github.io/ovkit/models.html) ·
66
+ [Examples](examples/)
67
+
68
+ </div>
69
+
70
+ ```python
71
+ from ovkit import Model
72
+
73
+ r = Model("detect")("image.jpg")[0] # download -> convert -> cache -> run
74
+ r.save("out.jpg") # boxes drawn; r.boxes.xyxy / .conf / .cls
75
+ ```
76
+
77
+ <!-- Demo GIF: record `python examples/webcam_demo.py` (or the web app) and
78
+ place it at docs/_static/demo.gif, then uncomment:
79
+ <div align="center"><img src="docs/_static/demo.gif" width="640" alt="ovkit demo"/></div> -->
80
+
81
+ Or without writing Python at all:
82
+
83
+ ```bash
84
+ ovkit run detect image.jpg # prints results, saves image_out.jpg
85
+ ```
86
+
87
+ ## Install
88
+
89
+ ```bash
90
+ git clone https://github.com/leeyunjai82/ovkit.git && cd ovkit
91
+ python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
92
+ pip install -e .
93
+ ```
94
+
95
+ <!-- After the first PyPI release this becomes just: pip install ovkit -->
96
+ Extras: `".[quant]"` (INT8/NNCF) · `".[genai]"` (LLM/STT) · `".[all]"`.
97
+ Python 3.10+.
98
+
99
+ ## Supported tasks
100
+
101
+ Every task below runs end-to-end through the same 3 lines — swap the alias:
102
+
103
+ | Task | Alias | Output | Example |
104
+ | ---- | ----- | ------ | ------- |
105
+ | Object detection | `detect`, `face_detection`, `person_detection`, `vehicle_detection`, `text_detection`, `license_plate` | `r.boxes` | [detect.py](examples/detect.py) |
106
+ | Classification | `classify`, `person_attributes`, `vehicle_attributes` | `r.probs` / text | [classify.py](examples/classify.py) |
107
+ | Segmentation | `segment`, `instance_segmentation` | `r.masks` | [segment.py](examples/segment.py) |
108
+ | Pose / landmarks | `pose`, `face_landmarks` | `r.keypoints` | [pose.py](examples/pose.py) |
109
+ | Face analysis | `age_gender`, `emotion`, `head_pose`, `face_reid` | `r.text` (e.g. `"age 31 · male 98%"`) | [face_analysis.py](examples/face_analysis.py) |
110
+ | OCR | `text_recognition` | `r.text` | [ocr.py](examples/ocr.py) |
111
+ | Super-resolution | `super_resolution` | upscaled image via `r.plot()` | [super_resolution.py](examples/super_resolution.py) |
112
+ | LLM / STT (GenAI) | `llm`, `stt` | generated text | [llm.py](examples/llm.py) / [stt.py](examples/stt.py) |
113
+ | NLP / audio / time series | `qa`, `translation`, `noise_suppression`, `time_series` | tensors via `model.infer()` | [denoise_audio.py](examples/denoise_audio.py) |
114
+
115
+ The registry exposes **one well-tested model per capability (35 total)**; the
116
+ [HF mirror](https://huggingface.co/leeyunjai/ovkit-models) hosts the full
117
+ Apache-2.0 OMZ set (other tiers, `int8`, `sparse` variants) — surfacing a
118
+ variant is a one-line edit ([catalog](https://leeyunjai82.github.io/ovkit/models.html)).
119
+ `ovkit list` shows everything with descriptions.
120
+
121
+ ## Devices
122
+
123
+ | Device | How | Notes |
124
+ | ------ | --- | ----- |
125
+ | **AUTO** (default) | `Model("detect")` | OpenVINO picks the best device |
126
+ | **CPU** | `Model("detect", device="CPU")` | works everywhere |
127
+ | **GPU** | `device="GPU"` | Intel iGPU / Arc |
128
+ | **NPU** | `device="NPU"` | Intel® Core™ Ultra AI accelerator |
129
+
130
+ Single images run synchronously; `stream=True` uses an `AsyncInferQueue` for
131
+ video/webcam throughput. INT8: `model.quantize(calib_images)` (NNCF).
132
+
133
+ ### Benchmarks
134
+
135
+ ```bash
136
+ python scripts/benchmark.py # prints a paste-ready CPU/GPU/NPU table
137
+ ```
138
+
139
+ <!-- BENCHMARKS: run scripts/benchmark.py on your Intel hardware and paste the
140
+ generated Markdown table here (model x device, median ms + FPS). -->
141
+
142
+ ## Usage
143
+
144
+ <details open>
145
+ <summary><b>Python</b></summary>
146
+
147
+ ```python
148
+ from ovkit import Model
149
+
150
+ model = Model("face_detection") # alias, name, .xml, or .onnx
151
+ results = model("photo.jpg", conf=0.25) # image / ndarray / folder / video
152
+ for r in model.predict(0, stream=True): # webcam (lazy generator)
153
+ annotated = r.plot()
154
+
155
+ print(Model("age_gender")("face.jpg")[0].text) # "age 31 · male 98%"
156
+ ```
157
+
158
+ Inputs are **auto-detected**: image path / `ndarray` / folder / video / camera
159
+ index → vision pipeline; `.npy` / `.wav` → raw inference. Grayscale models and
160
+ all-image multi-input models (super-resolution) are handled automatically. Full
161
+ control for any model: `model.infer({name: tensor})` with `model.inputs`.
162
+
163
+ | `Results` | holds |
164
+ | --------- | ----- |
165
+ | `r.boxes` | `xyxy`, `xywh`, `conf`, `cls` |
166
+ | `r.masks` / `r.keypoints` / `r.probs` | masks · `[x,y,conf]` · `top1`/`top5` |
167
+ | `r.text` | decoded text (OCR, face attributes) |
168
+ | `r.tensors` | raw `{name: ndarray}` |
169
+ | `r.plot()` / `r.save(path)` | annotated image (or the model's output image) |
170
+
171
+ </details>
172
+
173
+ <details>
174
+ <summary><b>CLI</b></summary>
175
+
176
+ ```bash
177
+ ovkit run detect image.jpg --save out.jpg # one-shot inference
178
+ ovkit run age_gender face.jpg --device NPU
179
+ ovkit list # aliases + models with descriptions
180
+ ovkit info face_detection # source / task / license
181
+ ovkit download detect # warm the cache
182
+ ovkit devices # available OpenVINO devices
183
+ ```
184
+
185
+ </details>
186
+
187
+ <details>
188
+ <summary><b>GenAI (LLM / speech-to-text)</b></summary>
189
+
190
+ ```python
191
+ from ovkit.genai import pipeline
192
+
193
+ llm = pipeline("llm") # tinyllama_chat from the mirror
194
+ print(llm.generate("Explain OpenVINO in one sentence.", max_new_tokens=64))
195
+
196
+ stt = pipeline("stt") # whisper_base
197
+ print(stt.generate(audio_16k_mono_float32))
198
+ ```
199
+
200
+ Needs `pip install -e ".[genai]"`.
201
+
202
+ </details>
203
+
204
+ <details>
205
+ <summary><b>Web demo (image / webcam / audio / text)</b></summary>
206
+
207
+ ```bash
208
+ pip install -r examples/requirements.txt
209
+ python examples/web_app.py # http://127.0.0.1:8000
210
+ ```
211
+
212
+ Pick any model — the right input (upload / webcam / audio / text) appears
213
+ automatically and results render with overlays.
214
+
215
+ </details>
216
+
217
+ ## Adding a model
218
+
219
+ Models are data, not code — one manifest entry
220
+ (`src/ovkit/manifests/`):
221
+
222
+ ```yaml
223
+ my_model:
224
+ src: hf
225
+ repo: leeyunjai/ovkit-models
226
+ filename: detect/my_model/model.xml
227
+ task: detect
228
+ description: Shown by `ovkit list`.
229
+ license: apache-2.0 # must be permissive — enforced at load time
230
+ ```
231
+
232
+ Resolution: alias → local path → cache (`~/.cache/ovkit`) → download → convert
233
+ → cache, with atomic writes, `sha256` checks, upstream `fallback`, and
234
+ `OVKIT_OFFLINE=1`. Maintainer tooling (mirror build / verify / self-check /
235
+ benchmark) lives in [`scripts/`](scripts/) — see the
236
+ [guide](https://leeyunjai82.github.io/ovkit/guide.html).
237
+
238
+ ## License
239
+
240
+ ovkit is [Apache-2.0](LICENSE) and **license-clean by design**: only permissive
241
+ (Apache/MIT/BSD) models and libraries — no AGPL model stacks, no non-commercial
242
+ weights; every manifest entry must declare a permissive license (enforced at
243
+ load time).