A module that allows to estimate whether video is flipped
Project description
VideoRotation estimation using mobilenet v2 classificator
Setup:
python3 -m pip install .
Pre-requirements:
ffmpeg is required
Usage:
import argparse
from videorotation import VideoRotationAnalysis
def main(video_path):
with VideoRotationAnalysis(frames_per_video=12, frames_threshold=8) as analysis: #how many frames to check, and how many frames should be flipped to say that video is flipped
result, score, score_sums = analysis.check_if_upsidedown_for_video(video_path)
print(result)
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Analyze video rotation.')
parser.add_argument('video_path', type=str, help='Path to the video file.')
args = parser.parse_args()
main(args.video_path)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
videorotation-0.2.2.tar.gz
(13.1 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file videorotation-0.2.2.tar.gz.
File metadata
- Download URL: videorotation-0.2.2.tar.gz
- Upload date:
- Size: 13.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fe297ce60be1dde89daca6ce7df95acc903417350be03ee6964dcdd46a14d24
|
|
| MD5 |
aa1222b426d06efe2ac5bebf89174567
|
|
| BLAKE2b-256 |
2a4c9f6d53ae409ea88cacd5dc423e478b702cc35af4cc372ac6540c4c3e5925
|
File details
Details for the file videorotation-0.2.2-py3-none-any.whl.
File metadata
- Download URL: videorotation-0.2.2-py3-none-any.whl
- Upload date:
- Size: 13.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
737d26a56846888fce7bcc4c534ada106c4abdd62a5291a490fa22e0f3b4af3a
|
|
| MD5 |
9eaf7fc1c14f28713b51acc428b347e0
|
|
| BLAKE2b-256 |
a00acabdb5f7587c49227bf5cf686315cbefd27d01aa7ce1cc91b9559c2da008
|