enot-vp 0.1.3__py3-none-any.whl → 0.1.5__py3-none-any.whl
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/video_processor.py +3 -2
- {enot_vp-0.1.3.dist-info → enot_vp-0.1.5.dist-info}/METADATA +2 -2
- enot_vp-0.1.5.dist-info/RECORD +6 -0
- enot_vp-0.1.3.dist-info/RECORD +0 -6
- {enot_vp-0.1.3.dist-info → enot_vp-0.1.5.dist-info}/WHEEL +0 -0
- {enot_vp-0.1.3.dist-info → enot_vp-0.1.5.dist-info}/licenses/LICENSE +0 -0
enot_vp/video_processor.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
+
from typing import Optional, Union
|
1
2
|
import av
|
2
3
|
import numpy as np
|
3
4
|
|
4
5
|
|
5
6
|
class VideoProcessor:
|
6
|
-
def __init__(self, input_video: str, output_video: str
|
7
|
+
def __init__(self, input_video: str, output_video: Optional[str] = None):
|
7
8
|
self.input_video = input_video
|
8
9
|
self.output_video = output_video
|
9
10
|
self.input_container = None
|
@@ -62,7 +63,7 @@ class VideoProcessor:
|
|
62
63
|
self._frame_iterator.close()
|
63
64
|
raise
|
64
65
|
|
65
|
-
def put(self, processed_frame: av.VideoFrame
|
66
|
+
def put(self, processed_frame: Union[av.VideoFrame, np.ndarray]):
|
66
67
|
"""Add video frame to output video."""
|
67
68
|
if self.output_container is None:
|
68
69
|
raise RuntimeError("No output video specified in constructor")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: enot-vp
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.5
|
4
4
|
Summary: ENOT video processor package for iterating over video frames easily.
|
5
5
|
Project-URL: Repository, https://github.com/Ruhrozz/enot-vp.git
|
6
6
|
Author-email: Malofeev Ivan <ruhrozz@bk.ru>
|
@@ -10,7 +10,7 @@ Classifier: Operating System :: OS Independent
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
11
11
|
Requires-Python: >=3.9
|
12
12
|
Requires-Dist: av>=14.4.0
|
13
|
-
Requires-Dist: numpy>=
|
13
|
+
Requires-Dist: numpy>=1.21.0
|
14
14
|
Description-Content-Type: text/markdown
|
15
15
|
|
16
16
|
# ENOT Video Processor
|
@@ -0,0 +1,6 @@
|
|
1
|
+
enot_vp/__init__.py,sha256=0jTdY7p0CdAbF2pqIZZpC_3nFvnUgQolDAl_cWfqoc0,69
|
2
|
+
enot_vp/video_processor.py,sha256=k3DgIpCIxo1Pyz6i_q2mGjqjGSKJbp0EwZ2zmO1W8Ic,2538
|
3
|
+
enot_vp-0.1.5.dist-info/METADATA,sha256=Y4zEB3qC7ZEV0WXoLMoXulOWqgf9frxDqPqCiHZp24s,1261
|
4
|
+
enot_vp-0.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
+
enot_vp-0.1.5.dist-info/licenses/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
|
6
|
+
enot_vp-0.1.5.dist-info/RECORD,,
|
enot_vp-0.1.3.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
enot_vp/__init__.py,sha256=0jTdY7p0CdAbF2pqIZZpC_3nFvnUgQolDAl_cWfqoc0,69
|
2
|
-
enot_vp/video_processor.py,sha256=FsHiBCFQoWpT942I9_L0pVZIzM9j45crceSmLrPeaWA,2494
|
3
|
-
enot_vp-0.1.3.dist-info/METADATA,sha256=PTIhFI_cu-wDsUWQ0QDk4yOFVjVziCsYxIb9TDOfljg,1260
|
4
|
-
enot_vp-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
-
enot_vp-0.1.3.dist-info/licenses/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
|
6
|
-
enot_vp-0.1.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|