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, scores = 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.3.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.3.tar.gz.
File metadata
- Download URL: videorotation-0.2.3.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 |
583ecde4ee27b30868250ee0d9ba081b06ecd180004fc61cd2004ce6ed1e8d93
|
|
| MD5 |
e131f7f9270f2ceeb07ba90fc86dac8a
|
|
| BLAKE2b-256 |
e56349c32a0dca93796a31a7f9a187c592af7165394c83d29dfcac6bcf77f043
|
File details
Details for the file videorotation-0.2.3-py3-none-any.whl.
File metadata
- Download URL: videorotation-0.2.3-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 |
bba3ba4ea134e3ef645ab36827ad2c247ebd553e6fbcb20a193b2aef11beb73c
|
|
| MD5 |
dc30e242a22791f84144cc7540bf2a15
|
|
| BLAKE2b-256 |
f56b293d1536b0b7b6f464af16a6db9c2d15175b8bd84876fe0a30ad413310ca
|