Skip to main content

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 = 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.1.tar.gz (13.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

videorotation-0.2.1-py3-none-any.whl (13.1 MB view details)

Uploaded Python 3

File details

Details for the file videorotation-0.2.1.tar.gz.

File metadata

  • Download URL: videorotation-0.2.1.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

Hashes for videorotation-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4dc24c5409f395e56ff2e9fb1e5536f671456e248699ee450d9b4b5ed2e817f1
MD5 4db1a8899791545e142e285d67ee1ca2
BLAKE2b-256 6da2d2fd5454eb446dbb8f0535ec87a5f6c4b75bca7d342da999567994cd94d5

See more details on using hashes here.

File details

Details for the file videorotation-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: videorotation-0.2.1-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

Hashes for videorotation-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4989c771714678467718ccd59348beb4b081c279dddf587df17dff888e5524e
MD5 76fe6c391cbf4dd9d93242a256dad12d
BLAKE2b-256 f55b094bdb88c5af2b8b3bede936f0bfdcc13989954f5496d7c7b30a573242b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page