kinemotion 0.26.1__py3-none-any.whl → 0.27.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.
Potentially problematic release.
This version of kinemotion might be problematic. Click here for more details.
- kinemotion/api.py +2 -2
- kinemotion/core/video_io.py +6 -0
- {kinemotion-0.26.1.dist-info → kinemotion-0.27.0.dist-info}/METADATA +1 -1
- {kinemotion-0.26.1.dist-info → kinemotion-0.27.0.dist-info}/RECORD +7 -7
- {kinemotion-0.26.1.dist-info → kinemotion-0.27.0.dist-info}/WHEEL +0 -0
- {kinemotion-0.26.1.dist-info → kinemotion-0.27.0.dist-info}/entry_points.txt +0 -0
- {kinemotion-0.26.1.dist-info → kinemotion-0.27.0.dist-info}/licenses/LICENSE +0 -0
kinemotion/api.py
CHANGED
|
@@ -532,7 +532,7 @@ def process_dropjump_video(
|
|
|
532
532
|
height=video.height,
|
|
533
533
|
duration_s=video.frame_count / video.fps,
|
|
534
534
|
frame_count=video.frame_count,
|
|
535
|
-
codec=
|
|
535
|
+
codec=video.codec,
|
|
536
536
|
)
|
|
537
537
|
|
|
538
538
|
processing_info = ProcessingInfo(
|
|
@@ -973,7 +973,7 @@ def process_cmj_video(
|
|
|
973
973
|
height=video.height,
|
|
974
974
|
duration_s=video.frame_count / video.fps,
|
|
975
975
|
frame_count=video.frame_count,
|
|
976
|
-
codec=
|
|
976
|
+
codec=video.codec,
|
|
977
977
|
)
|
|
978
978
|
|
|
979
979
|
processing_info = ProcessingInfo(
|
kinemotion/core/video_io.py
CHANGED
|
@@ -50,6 +50,9 @@ class VideoProcessor:
|
|
|
50
50
|
# OpenCV ignores rotation metadata, so we need to extract and apply it manually
|
|
51
51
|
self.rotation = 0 # Will be set by _extract_video_metadata()
|
|
52
52
|
|
|
53
|
+
# Extract codec information from video metadata
|
|
54
|
+
self.codec: str | None = None # Will be set by _extract_video_metadata()
|
|
55
|
+
|
|
53
56
|
# Calculate display dimensions considering SAR (Sample Aspect Ratio)
|
|
54
57
|
# Mobile videos often have non-square pixels encoded in SAR metadata
|
|
55
58
|
# OpenCV doesn't directly expose SAR, but we need to handle display correctly
|
|
@@ -141,6 +144,9 @@ class VideoProcessor:
|
|
|
141
144
|
|
|
142
145
|
stream = data["streams"][0]
|
|
143
146
|
|
|
147
|
+
# Extract codec name (e.g., "h264", "hevc", "vp9")
|
|
148
|
+
self.codec = stream.get("codec_name")
|
|
149
|
+
|
|
144
150
|
# Extract and parse SAR (Sample Aspect Ratio)
|
|
145
151
|
sar_str = stream.get("sample_aspect_ratio", "1:1")
|
|
146
152
|
self._parse_sample_aspect_ratio(sar_str)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kinemotion
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.27.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
kinemotion/__init__.py,sha256=vAEIg-oDX1ZkQMnWgXd__tekaA5KUcEvdJSAGWS8VUY,722
|
|
2
|
-
kinemotion/api.py,sha256=
|
|
2
|
+
kinemotion/api.py,sha256=tbkjXsfe0N0Bmik6XRIOYM7Nom4QqeQJSpDx7IoiuSA,38177
|
|
3
3
|
kinemotion/cli.py,sha256=cqYV_7URH0JUDy1VQ_EDLv63FmNO4Ns20m6s1XAjiP4,464
|
|
4
4
|
kinemotion/cmj/__init__.py,sha256=Ynv0-Oco4I3Y1Ubj25m3h9h2XFqeNwpAewXmAYOmwfU,127
|
|
5
5
|
kinemotion/cmj/analysis.py,sha256=4HYGn4VDIB6oExAees-VcPfpNgWOltpgwjyNTU7YAb4,18263
|
|
@@ -16,15 +16,15 @@ kinemotion/core/metadata.py,sha256=PyGHL6sx7Hj21lyorg2VsWP9BGTj_y_-wWU6eKCEfJo,6
|
|
|
16
16
|
kinemotion/core/pose.py,sha256=ztemdZ_ysVVK3gbXabm8qS_dr1VfJX9KZjmcO-Z-iNE,8532
|
|
17
17
|
kinemotion/core/quality.py,sha256=OC9nuf5IrQ9xURf3eA50VoNWOqkGwbjJpS90q2FDQzA,13082
|
|
18
18
|
kinemotion/core/smoothing.py,sha256=x4o3BnG6k8OaV3emgpoJDF84CE9k5RYR7BeSYH_-8Es,14092
|
|
19
|
-
kinemotion/core/video_io.py,sha256=
|
|
19
|
+
kinemotion/core/video_io.py,sha256=SQBJSgAV8uOkAh96gNZRjd6XJG1G9dZzDc8kAZ_twy0,7538
|
|
20
20
|
kinemotion/dropjump/__init__.py,sha256=yc1XiZ9vfo5h_n7PKVSiX2TTgaIfGL7Y7SkQtiDZj_E,838
|
|
21
21
|
kinemotion/dropjump/analysis.py,sha256=BQ5NqSPNJjFQOb-W4bXSLvjCgWd-nvqx5NElyeqZJC4,29067
|
|
22
22
|
kinemotion/dropjump/cli.py,sha256=ZyroaYPwz8TgfL39Wcaj6m68Awl6lYXC75ttaflU-c0,16236
|
|
23
23
|
kinemotion/dropjump/debug_overlay.py,sha256=LkPw6ucb7beoYWS4L-Lvjs1KLCm5wAWDAfiznUeV2IQ,5668
|
|
24
24
|
kinemotion/dropjump/kinematics.py,sha256=Ig9TqXr-OEUm19gqIvUjQkqrCuw1csYt1f4ZfwG8oGc,17464
|
|
25
25
|
kinemotion/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
-
kinemotion-0.
|
|
27
|
-
kinemotion-0.
|
|
28
|
-
kinemotion-0.
|
|
29
|
-
kinemotion-0.
|
|
30
|
-
kinemotion-0.
|
|
26
|
+
kinemotion-0.27.0.dist-info/METADATA,sha256=YhRgdOUcZ_mIgOgj0wJBdTW_msbUPlyZaCx7ND0dVTI,23244
|
|
27
|
+
kinemotion-0.27.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
28
|
+
kinemotion-0.27.0.dist-info/entry_points.txt,sha256=zaqnAnjLvcdrk1Qvj5nvXZCZ2gp0prS7it1zTJygcIY,50
|
|
29
|
+
kinemotion-0.27.0.dist-info/licenses/LICENSE,sha256=KZajvqsHw0NoOHOi2q0FZ4NBe9HdV6oey-IPYAtHXfg,1088
|
|
30
|
+
kinemotion-0.27.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|