armanid 2.0.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.
- armanid-2.0.0/LICENSE +21 -0
- armanid-2.0.0/PKG-INFO +130 -0
- armanid-2.0.0/README.md +99 -0
- armanid-2.0.0/armanid/__init__.py +21 -0
- armanid-2.0.0/armanid/_engine/__init__.py +48 -0
- armanid-2.0.0/armanid/_engine/assets/bus.jpg +0 -0
- armanid-2.0.0/armanid/_engine/assets/zidane.jpg +0 -0
- armanid-2.0.0/armanid/_engine/cfg/__init__.py +1027 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/Argoverse.yaml +78 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/DOTAv1.5.yaml +37 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/DOTAv1.yaml +36 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/GlobalWheat2020.yaml +68 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/HomeObjects-3K.yaml +32 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/ImageNet.yaml +2025 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/Objects365.yaml +447 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/SKU-110K.yaml +58 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/TT100K.yaml +346 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/VOC.yaml +102 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/VisDrone.yaml +87 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/african-wildlife.yaml +25 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/brain-tumor.yaml +22 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/carparts-seg.yaml +44 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/coco-pose.yaml +64 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/coco.yaml +118 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/coco12-formats.yaml +101 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/coco128-seg.yaml +101 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/coco128.yaml +101 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/coco8-grayscale.yaml +103 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/coco8-multispectral.yaml +104 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/coco8-pose.yaml +47 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/coco8-seg.yaml +101 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/coco8.yaml +101 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/construction-ppe.yaml +32 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/crack-seg.yaml +22 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/dog-pose.yaml +52 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/dota128.yaml +35 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/dota8-multispectral.yaml +38 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/dota8.yaml +35 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/hand-keypoints.yaml +50 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/kitti.yaml +27 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/lvis.yaml +1240 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/medical-pills.yaml +21 -0
- armanid-2.0.0/armanid/_engine/cfg/datasets/open-images-v7.yaml +0 -0
- armanid-2.0.0/armanid/_engine/cfg/default.yaml +133 -0
- armanid-2.0.0/armanid/_engine/py.typed +1 -0
- armanid-2.0.0/armanid/_engine_patcher.py +64 -0
- armanid-2.0.0/armanid/constants.py +81 -0
- armanid-2.0.0/armanid/model.py +276 -0
- armanid-2.0.0/armanid/od_utils.py +200 -0
- armanid-2.0.0/armanid/results.py +75 -0
- armanid-2.0.0/armanid/utils.py +96 -0
- armanid-2.0.0/armanid.egg-info/PKG-INFO +130 -0
- armanid-2.0.0/armanid.egg-info/SOURCES.txt +56 -0
- armanid-2.0.0/armanid.egg-info/dependency_links.txt +1 -0
- armanid-2.0.0/armanid.egg-info/requires.txt +4 -0
- armanid-2.0.0/armanid.egg-info/top_level.txt +1 -0
- armanid-2.0.0/pyproject.toml +47 -0
- armanid-2.0.0/setup.cfg +4 -0
armanid-2.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Arman Guriyan — Epic Rabbit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
armanid-2.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: armanid
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Armanid — Object Detection Library by Epic Rabbit
|
|
5
|
+
Author-email: Arman Guriyan <arman@epicrabbit.io>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://epicrabbit.io
|
|
8
|
+
Project-URL: Repository, https://github.com/epicrabbit/armanid
|
|
9
|
+
Project-URL: Documentation, https://docs.epicrabbit.io
|
|
10
|
+
Keywords: object-detection,computer-vision,armanid,epic-rabbit,deep-learning,yolo,detection
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Image Recognition
|
|
23
|
+
Requires-Python: >=3.8
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: epic-rabbit>=1.0.0
|
|
27
|
+
Requires-Dist: numpy>=1.22.2
|
|
28
|
+
Requires-Dist: pillow>=7.1.2
|
|
29
|
+
Requires-Dist: opencv-python>=4.6.0
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# Armanid
|
|
33
|
+
|
|
34
|
+
**Professional Object Detection Library — by Epic Rabbit**
|
|
35
|
+
|
|
36
|
+
Armanid is a clean, simple, and powerful object detection library built on the Epic Rabbit engine. Detect objects in images, videos, and webcams with just a few lines of code.
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install epic-rabbit
|
|
42
|
+
pip install armanid
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Quick Start
|
|
46
|
+
|
|
47
|
+
```python
|
|
48
|
+
from armanid import Armanid
|
|
49
|
+
|
|
50
|
+
model = Armanid("armanid-nano")
|
|
51
|
+
results = model.detect("image.jpg")
|
|
52
|
+
results[0].show()
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Webcam Detection
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
from armanid import Armanid
|
|
59
|
+
from armanid.utils import run_webcam
|
|
60
|
+
|
|
61
|
+
model = Armanid("armanid-nano")
|
|
62
|
+
run_webcam(model, cam_index=0, conf=0.25)
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## All Features
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
from armanid import Armanid
|
|
69
|
+
|
|
70
|
+
model = Armanid("armanid-nano")
|
|
71
|
+
|
|
72
|
+
results = model.detect("image.jpg", conf=0.25)
|
|
73
|
+
|
|
74
|
+
for box in results[0].boxes:
|
|
75
|
+
print(box.label, box.conf, box.xyxy)
|
|
76
|
+
|
|
77
|
+
results[0].save("output.jpg")
|
|
78
|
+
|
|
79
|
+
for result in model.track("video.mp4", stream=True):
|
|
80
|
+
for box in result.boxes:
|
|
81
|
+
print(box.track_id, box.label)
|
|
82
|
+
|
|
83
|
+
model.train(data="dataset.yaml", epochs=100)
|
|
84
|
+
|
|
85
|
+
model.export(format="onnx")
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Available Models
|
|
89
|
+
|
|
90
|
+
| Model | Description |
|
|
91
|
+
|-------|-------------|
|
|
92
|
+
| `armanid-nano` | Fastest, smallest |
|
|
93
|
+
| `armanid-small` | Fast, good accuracy |
|
|
94
|
+
| `armanid-medium` | Balanced |
|
|
95
|
+
| `armanid-large` | High accuracy |
|
|
96
|
+
| `armanid-xlarge` | Maximum accuracy |
|
|
97
|
+
| `armanid-nano-seg` | Segmentation |
|
|
98
|
+
| `armanid-nano-pose` | Pose estimation |
|
|
99
|
+
|
|
100
|
+
## Detection Result API
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
result = model.detect("image.jpg")[0]
|
|
104
|
+
|
|
105
|
+
result.boxes # List of BoundingBox objects
|
|
106
|
+
result.labels # ["person", "car", ...]
|
|
107
|
+
result.confidences # [0.92, 0.87, ...]
|
|
108
|
+
result.summary() # {"person": 2, "car": 1}
|
|
109
|
+
result.show() # Display image
|
|
110
|
+
result.save("out.jpg")
|
|
111
|
+
result.plot() # Returns annotated numpy array
|
|
112
|
+
|
|
113
|
+
box = result.boxes[0]
|
|
114
|
+
box.label # "person"
|
|
115
|
+
box.conf # 0.92
|
|
116
|
+
box.xyxy # (x1, y1, x2, y2)
|
|
117
|
+
box.xywh # (cx, cy, w, h)
|
|
118
|
+
box.width
|
|
119
|
+
box.height
|
|
120
|
+
box.area
|
|
121
|
+
box.track_id # When tracking
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Creator
|
|
125
|
+
|
|
126
|
+
**Arman Guriyan** — Epic Rabbit
|
|
127
|
+
|
|
128
|
+
## License
|
|
129
|
+
|
|
130
|
+
MIT License
|
armanid-2.0.0/README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Armanid
|
|
2
|
+
|
|
3
|
+
**Professional Object Detection Library — by Epic Rabbit**
|
|
4
|
+
|
|
5
|
+
Armanid is a clean, simple, and powerful object detection library built on the Epic Rabbit engine. Detect objects in images, videos, and webcams with just a few lines of code.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install epic-rabbit
|
|
11
|
+
pip install armanid
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Quick Start
|
|
15
|
+
|
|
16
|
+
```python
|
|
17
|
+
from armanid import Armanid
|
|
18
|
+
|
|
19
|
+
model = Armanid("armanid-nano")
|
|
20
|
+
results = model.detect("image.jpg")
|
|
21
|
+
results[0].show()
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Webcam Detection
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
from armanid import Armanid
|
|
28
|
+
from armanid.utils import run_webcam
|
|
29
|
+
|
|
30
|
+
model = Armanid("armanid-nano")
|
|
31
|
+
run_webcam(model, cam_index=0, conf=0.25)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## All Features
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from armanid import Armanid
|
|
38
|
+
|
|
39
|
+
model = Armanid("armanid-nano")
|
|
40
|
+
|
|
41
|
+
results = model.detect("image.jpg", conf=0.25)
|
|
42
|
+
|
|
43
|
+
for box in results[0].boxes:
|
|
44
|
+
print(box.label, box.conf, box.xyxy)
|
|
45
|
+
|
|
46
|
+
results[0].save("output.jpg")
|
|
47
|
+
|
|
48
|
+
for result in model.track("video.mp4", stream=True):
|
|
49
|
+
for box in result.boxes:
|
|
50
|
+
print(box.track_id, box.label)
|
|
51
|
+
|
|
52
|
+
model.train(data="dataset.yaml", epochs=100)
|
|
53
|
+
|
|
54
|
+
model.export(format="onnx")
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Available Models
|
|
58
|
+
|
|
59
|
+
| Model | Description |
|
|
60
|
+
|-------|-------------|
|
|
61
|
+
| `armanid-nano` | Fastest, smallest |
|
|
62
|
+
| `armanid-small` | Fast, good accuracy |
|
|
63
|
+
| `armanid-medium` | Balanced |
|
|
64
|
+
| `armanid-large` | High accuracy |
|
|
65
|
+
| `armanid-xlarge` | Maximum accuracy |
|
|
66
|
+
| `armanid-nano-seg` | Segmentation |
|
|
67
|
+
| `armanid-nano-pose` | Pose estimation |
|
|
68
|
+
|
|
69
|
+
## Detection Result API
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
result = model.detect("image.jpg")[0]
|
|
73
|
+
|
|
74
|
+
result.boxes # List of BoundingBox objects
|
|
75
|
+
result.labels # ["person", "car", ...]
|
|
76
|
+
result.confidences # [0.92, 0.87, ...]
|
|
77
|
+
result.summary() # {"person": 2, "car": 1}
|
|
78
|
+
result.show() # Display image
|
|
79
|
+
result.save("out.jpg")
|
|
80
|
+
result.plot() # Returns annotated numpy array
|
|
81
|
+
|
|
82
|
+
box = result.boxes[0]
|
|
83
|
+
box.label # "person"
|
|
84
|
+
box.conf # 0.92
|
|
85
|
+
box.xyxy # (x1, y1, x2, y2)
|
|
86
|
+
box.xywh # (cx, cy, w, h)
|
|
87
|
+
box.width
|
|
88
|
+
box.height
|
|
89
|
+
box.area
|
|
90
|
+
box.track_id # When tracking
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Creator
|
|
94
|
+
|
|
95
|
+
**Arman Guriyan** — Epic Rabbit
|
|
96
|
+
|
|
97
|
+
## License
|
|
98
|
+
|
|
99
|
+
MIT License
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Armanid — Object Detection Library
|
|
3
|
+
Creator : Arman Guriyan
|
|
4
|
+
Company : Epic Rabbit
|
|
5
|
+
Version : 2.0.0
|
|
6
|
+
"""
|
|
7
|
+
__version__ = "2.0.0"
|
|
8
|
+
__author__ = "Arman Guriyan"
|
|
9
|
+
__company__ = "Epic Rabbit"
|
|
10
|
+
__email__ = "arman@epicrabbit.io"
|
|
11
|
+
__license__ = "MIT"
|
|
12
|
+
|
|
13
|
+
from armanid.model import Armanid
|
|
14
|
+
from armanid.results import DetectionResult, BoundingBox
|
|
15
|
+
from armanid.utils import draw_detections, save_detections, run_webcam
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"Armanid","DetectionResult","BoundingBox",
|
|
19
|
+
"draw_detections","save_detections","run_webcam",
|
|
20
|
+
"__version__","__author__","__company__",
|
|
21
|
+
]
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
|
2
|
+
|
|
3
|
+
__version__ = "8.4.31"
|
|
4
|
+
|
|
5
|
+
import importlib
|
|
6
|
+
import os
|
|
7
|
+
from typing import TYPE_CHECKING
|
|
8
|
+
|
|
9
|
+
# Set ENV variables (place before imports)
|
|
10
|
+
if not os.environ.get("OMP_NUM_THREADS"):
|
|
11
|
+
os.environ["OMP_NUM_THREADS"] = "1" # default for reduced CPU utilization during training
|
|
12
|
+
|
|
13
|
+
from armanid._engine.utils import ASSETS, SETTINGS
|
|
14
|
+
from armanid._engine.utils.checks import check_yolo as checks
|
|
15
|
+
from armanid._engine.utils.downloads import download
|
|
16
|
+
|
|
17
|
+
settings = SETTINGS
|
|
18
|
+
|
|
19
|
+
MODELS = ("YOLO", "YOLOWorld", "YOLOE", "NAS", "SAM", "FastSAM", "RTDETR")
|
|
20
|
+
|
|
21
|
+
__all__ = (
|
|
22
|
+
"__version__",
|
|
23
|
+
"ASSETS",
|
|
24
|
+
*MODELS,
|
|
25
|
+
"checks",
|
|
26
|
+
"download",
|
|
27
|
+
"settings",
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
if TYPE_CHECKING:
|
|
31
|
+
# Enable hints for type checkers
|
|
32
|
+
from ultralytics.models import YOLO, YOLOWorld, YOLOE, NAS, SAM, FastSAM, RTDETR # noqa
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def __getattr__(name: str):
|
|
36
|
+
"""Lazy-import model classes on first access."""
|
|
37
|
+
if name in MODELS:
|
|
38
|
+
return getattr(importlib.import_module("armanid._engine.models"), name)
|
|
39
|
+
raise AttributeError(f"module {__name__} has no attribute {name}")
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def __dir__():
|
|
43
|
+
"""Extend dir() to include lazily available model names for IDE autocompletion."""
|
|
44
|
+
return sorted(set(globals()) | set(MODELS))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
if __name__ == "__main__":
|
|
48
|
+
print(__version__)
|
|
Binary file
|
|
Binary file
|