enot-vp 0.1.4__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.
@@ -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 | None = None):
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 | np.ndarray):
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.4
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>
@@ -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,,
@@ -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.4.dist-info/METADATA,sha256=tU14o1czvkUSlMWRCgvslShHEYbjzVy9B90zRosgoXM,1261
4
- enot_vp-0.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- enot_vp-0.1.4.dist-info/licenses/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
6
- enot_vp-0.1.4.dist-info/RECORD,,