Skip to main content

A module that allows to estimate whether video is flipped

Project description

VideoRotation estimation using RotNet cnn, ref: https://github.com/d4nst/RotNet

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.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-py3-none-any.whl (13.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: videorotation-0.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.tar.gz
Algorithm Hash digest
SHA256 9aaa3d8dc510dfcb68965b331661374ee6807d2373bd2cbb4e286c78dfdc21c4
MD5 0706b978215b1d7e2ae0dc7a280702c7
BLAKE2b-256 1fc421f6a5c77c4789dc42dea6e30aa9d7f74a849eb18b58d31b8b49e18694ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: videorotation-0.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-py3-none-any.whl
Algorithm Hash digest
SHA256 f8fa83efa6d4e3fbb26c2e18b9a1aa91e21281798952d2617136479532a6fc0b
MD5 7c6ebc9fb3bc5616069e17644d0ef51b
BLAKE2b-256 a2b09171cc42e684ee1736986ec83c4c5a4559ace18d2653e2148050e8e9e3cc

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