enot-vp 0.1.0__tar.gz → 0.1.4__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.
- enot_vp-0.1.4/PKG-INFO +48 -0
- enot_vp-0.1.4/README.md +33 -0
- {enot_vp-0.1.0 → enot_vp-0.1.4}/pyproject.toml +12 -3
- {enot_vp-0.1.0 → enot_vp-0.1.4}/uv.lock +1 -2
- enot_vp-0.1.0/PKG-INFO +0 -12
- enot_vp-0.1.0/README.md +0 -0
- {enot_vp-0.1.0 → enot_vp-0.1.4}/.gitignore +0 -0
- {enot_vp-0.1.0 → enot_vp-0.1.4}/LICENSE +0 -0
- {enot_vp-0.1.0 → enot_vp-0.1.4}/src/enot_vp/__init__.py +0 -0
- {enot_vp-0.1.0 → enot_vp-0.1.4}/src/enot_vp/video_processor.py +0 -0
enot_vp-0.1.4/PKG-INFO
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: enot-vp
|
3
|
+
Version: 0.1.4
|
4
|
+
Summary: ENOT video processor package for iterating over video frames easily.
|
5
|
+
Project-URL: Repository, https://github.com/Ruhrozz/enot-vp.git
|
6
|
+
Author-email: Malofeev Ivan <ruhrozz@bk.ru>
|
7
|
+
License-Expression: MIT
|
8
|
+
License-File: LICENSE
|
9
|
+
Classifier: Operating System :: OS Independent
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
11
|
+
Requires-Python: >=3.9
|
12
|
+
Requires-Dist: av>=14.4.0
|
13
|
+
Requires-Dist: numpy>=1.21.0
|
14
|
+
Description-Content-Type: text/markdown
|
15
|
+
|
16
|
+
# ENOT Video Processor
|
17
|
+
|
18
|
+
Package for processing video with `pyav` package.
|
19
|
+
Provides methods for reading from video and writing modified video frames.
|
20
|
+
|
21
|
+
# Examples
|
22
|
+
|
23
|
+
Reading
|
24
|
+
|
25
|
+
```
|
26
|
+
from enot_vp import VideoProcessor
|
27
|
+
from ultralytics import YOLO
|
28
|
+
|
29
|
+
model = YOLO(MODEL_PATH)
|
30
|
+
|
31
|
+
with VideoProcessor(input_video=VIDEO_PATH) as vp:
|
32
|
+
for frame in vp:
|
33
|
+
ndarray = model(frame.to_image(), imgsz=1600, verbose=False)[0].plot()[..., ::-1]
|
34
|
+
```
|
35
|
+
|
36
|
+
Modification
|
37
|
+
|
38
|
+
```
|
39
|
+
from enot_vp import VideoProcessor
|
40
|
+
from ultralytics import YOLO
|
41
|
+
|
42
|
+
model = YOLO(MODEL_PATH)
|
43
|
+
|
44
|
+
with VideoProcessor(input_video=VIDEO_PATH, output_video=OUTPUT_VIDEO_PATH) as vp:
|
45
|
+
for frame in vp:
|
46
|
+
ndarray = model(frame.to_image(), imgsz=1600, verbose=False)[0].plot()[..., ::-1]
|
47
|
+
vp.put(ndarray)
|
48
|
+
```
|
enot_vp-0.1.4/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# ENOT Video Processor
|
2
|
+
|
3
|
+
Package for processing video with `pyav` package.
|
4
|
+
Provides methods for reading from video and writing modified video frames.
|
5
|
+
|
6
|
+
# Examples
|
7
|
+
|
8
|
+
Reading
|
9
|
+
|
10
|
+
```
|
11
|
+
from enot_vp import VideoProcessor
|
12
|
+
from ultralytics import YOLO
|
13
|
+
|
14
|
+
model = YOLO(MODEL_PATH)
|
15
|
+
|
16
|
+
with VideoProcessor(input_video=VIDEO_PATH) as vp:
|
17
|
+
for frame in vp:
|
18
|
+
ndarray = model(frame.to_image(), imgsz=1600, verbose=False)[0].plot()[..., ::-1]
|
19
|
+
```
|
20
|
+
|
21
|
+
Modification
|
22
|
+
|
23
|
+
```
|
24
|
+
from enot_vp import VideoProcessor
|
25
|
+
from ultralytics import YOLO
|
26
|
+
|
27
|
+
model = YOLO(MODEL_PATH)
|
28
|
+
|
29
|
+
with VideoProcessor(input_video=VIDEO_PATH, output_video=OUTPUT_VIDEO_PATH) as vp:
|
30
|
+
for frame in vp:
|
31
|
+
ndarray = model(frame.to_image(), imgsz=1600, verbose=False)[0].plot()[..., ::-1]
|
32
|
+
vp.put(ndarray)
|
33
|
+
```
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "enot-vp"
|
3
|
-
|
3
|
+
dynamic = ["version"]
|
4
4
|
description = "ENOT video processor package for iterating over video frames easily."
|
5
5
|
readme = "README.md"
|
6
6
|
authors = [
|
@@ -9,7 +9,7 @@ authors = [
|
|
9
9
|
requires-python = ">=3.9"
|
10
10
|
dependencies = [
|
11
11
|
"av>=14.4.0",
|
12
|
-
"numpy>=
|
12
|
+
"numpy>=1.21.0",
|
13
13
|
]
|
14
14
|
classifiers = [
|
15
15
|
"Programming Language :: Python :: 3",
|
@@ -18,6 +18,15 @@ classifiers = [
|
|
18
18
|
license = "MIT"
|
19
19
|
license-files = ["LICEN[CS]E*"]
|
20
20
|
|
21
|
+
[project.urls]
|
22
|
+
Repository = "https://github.com/Ruhrozz/enot-vp.git"
|
23
|
+
|
21
24
|
[build-system]
|
22
|
-
requires = [
|
25
|
+
requires = [
|
26
|
+
"hatchling",
|
27
|
+
"hatch-vcs",
|
28
|
+
]
|
23
29
|
build-backend = "hatchling.build"
|
30
|
+
|
31
|
+
[tool.hatch]
|
32
|
+
version.source = "vcs"
|
@@ -61,7 +61,6 @@ wheels = [
|
|
61
61
|
|
62
62
|
[[package]]
|
63
63
|
name = "enot-vp"
|
64
|
-
version = "0.1.0"
|
65
64
|
source = { editable = "." }
|
66
65
|
dependencies = [
|
67
66
|
{ name = "av" },
|
@@ -72,7 +71,7 @@ dependencies = [
|
|
72
71
|
[package.metadata]
|
73
72
|
requires-dist = [
|
74
73
|
{ name = "av", specifier = ">=14.4.0" },
|
75
|
-
{ name = "numpy", specifier = ">=
|
74
|
+
{ name = "numpy", specifier = ">=1.21.0" },
|
76
75
|
]
|
77
76
|
|
78
77
|
[[package]]
|
enot_vp-0.1.0/PKG-INFO
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: enot-vp
|
3
|
-
Version: 0.1.0
|
4
|
-
Summary: ENOT video processor package for iterating over video frames easily.
|
5
|
-
Author-email: Malofeev Ivan <ruhrozz@bk.ru>
|
6
|
-
License-Expression: MIT
|
7
|
-
License-File: LICENSE
|
8
|
-
Classifier: Operating System :: OS Independent
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
10
|
-
Requires-Python: >=3.9
|
11
|
-
Requires-Dist: av>=14.4.0
|
12
|
-
Requires-Dist: numpy>=2.0.2
|
enot_vp-0.1.0/README.md
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|