kinemotion 0.64.0__py3-none-any.whl → 0.65.0__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.
- kinemotion/core/video_io.py +11 -0
- {kinemotion-0.64.0.dist-info → kinemotion-0.65.0.dist-info}/METADATA +1 -1
- {kinemotion-0.64.0.dist-info → kinemotion-0.65.0.dist-info}/RECORD +6 -6
- {kinemotion-0.64.0.dist-info → kinemotion-0.65.0.dist-info}/WHEEL +0 -0
- {kinemotion-0.64.0.dist-info → kinemotion-0.65.0.dist-info}/entry_points.txt +0 -0
- {kinemotion-0.64.0.dist-info → kinemotion-0.65.0.dist-info}/licenses/LICENSE +0 -0
kinemotion/core/video_io.py
CHANGED
|
@@ -203,6 +203,17 @@ class VideoProcessor:
|
|
|
203
203
|
"""Release video capture."""
|
|
204
204
|
self.cap.release()
|
|
205
205
|
|
|
206
|
+
def __iter__(self) -> "VideoProcessor":
|
|
207
|
+
"""Make the processor iterable."""
|
|
208
|
+
return self
|
|
209
|
+
|
|
210
|
+
def __next__(self) -> np.ndarray:
|
|
211
|
+
"""Get the next frame during iteration."""
|
|
212
|
+
frame = self.read_frame()
|
|
213
|
+
if frame is None:
|
|
214
|
+
raise StopIteration
|
|
215
|
+
return frame
|
|
216
|
+
|
|
206
217
|
def __enter__(self) -> "VideoProcessor":
|
|
207
218
|
return self
|
|
208
219
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kinemotion
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.65.0
|
|
4
4
|
Summary: Video-based kinematic analysis for athletic performance
|
|
5
5
|
Project-URL: Homepage, https://github.com/feniix/kinemotion
|
|
6
6
|
Project-URL: Repository, https://github.com/feniix/kinemotion
|
|
@@ -26,7 +26,7 @@ kinemotion/core/smoothing.py,sha256=ELMHL7pzSqYffjnLDBUMBJIgt1AwOssDInE8IiXBbig,
|
|
|
26
26
|
kinemotion/core/timing.py,sha256=d1rjZc07Nbi5Jrio9AC-zeS0dNAlbPyNIydLz7X75Pk,7804
|
|
27
27
|
kinemotion/core/types.py,sha256=A_HclzKpf3By5DiJ0wY9B-dQJrIVAAhUfGab7qTSIL8,1279
|
|
28
28
|
kinemotion/core/validation.py,sha256=0xVv-ftWveV60fJ97kmZMuy2Qqqb5aZLR50dDIrjnhg,6773
|
|
29
|
-
kinemotion/core/video_io.py,sha256=
|
|
29
|
+
kinemotion/core/video_io.py,sha256=ufbwfYkxuerat4ab6Hn1tkI5T9TAOvHwREIazJ0Q2tE,8174
|
|
30
30
|
kinemotion/dropjump/__init__.py,sha256=tC3H3BrCg8Oj-db-Vrtx4PH_llR1Ppkd5jwaOjhQcLg,862
|
|
31
31
|
kinemotion/dropjump/analysis.py,sha256=YomuoJF_peyrBSpeT89Q5_sBgY0kEDyq7TFrtEnRLjs,28049
|
|
32
32
|
kinemotion/dropjump/api.py,sha256=uidio49CXisyWKd287CnCrM51GusG9DWAIUKGH85fpM,20584
|
|
@@ -36,8 +36,8 @@ kinemotion/dropjump/kinematics.py,sha256=dx4PuXKfKMKcsc_HX6sXj8rHXf9ksiZIOAIkJ4v
|
|
|
36
36
|
kinemotion/dropjump/metrics_validator.py,sha256=lSfo4Lm5FHccl8ijUP6SA-kcSh50LS9hF8UIyWxcnW8,9243
|
|
37
37
|
kinemotion/dropjump/validation_bounds.py,sha256=x4yjcFxyvdMp5e7MkcoUosGLeGsxBh1Lft6h__AQ2G8,5124
|
|
38
38
|
kinemotion/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
|
-
kinemotion-0.
|
|
40
|
-
kinemotion-0.
|
|
41
|
-
kinemotion-0.
|
|
42
|
-
kinemotion-0.
|
|
43
|
-
kinemotion-0.
|
|
39
|
+
kinemotion-0.65.0.dist-info/METADATA,sha256=nueJEdfl6jQRaClefXb9-6J-pTFJN0E_XJ33Bf2mja0,26061
|
|
40
|
+
kinemotion-0.65.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
41
|
+
kinemotion-0.65.0.dist-info/entry_points.txt,sha256=zaqnAnjLvcdrk1Qvj5nvXZCZ2gp0prS7it1zTJygcIY,50
|
|
42
|
+
kinemotion-0.65.0.dist-info/licenses/LICENSE,sha256=KZajvqsHw0NoOHOi2q0FZ4NBe9HdV6oey-IPYAtHXfg,1088
|
|
43
|
+
kinemotion-0.65.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|