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, 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)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

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

Hashes for videorotation-0.2.2.tar.gz
Algorithm Hash digest
SHA256 8fe297ce60be1dde89daca6ce7df95acc903417350be03ee6964dcdd46a14d24
MD5 aa1222b426d06efe2ac5bebf89174567
BLAKE2b-256 2a4c9f6d53ae409ea88cacd5dc423e478b702cc35af4cc372ac6540c4c3e5925

See more details on using hashes here.

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

Hashes for videorotation-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 737d26a56846888fce7bcc4c534ada106c4abdd62a5291a490fa22e0f3b4af3a
MD5 9eaf7fc1c14f28713b51acc428b347e0
BLAKE2b-256 a00acabdb5f7587c49227bf5cf686315cbefd27d01aa7ce1cc91b9559c2da008

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