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)
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aaa3d8dc510dfcb68965b331661374ee6807d2373bd2cbb4e286c78dfdc21c4
|
|
| MD5 |
0706b978215b1d7e2ae0dc7a280702c7
|
|
| BLAKE2b-256 |
1fc421f6a5c77c4789dc42dea6e30aa9d7f74a849eb18b58d31b8b49e18694ee
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8fa83efa6d4e3fbb26c2e18b9a1aa91e21281798952d2617136479532a6fc0b
|
|
| MD5 |
7c6ebc9fb3bc5616069e17644d0ef51b
|
|
| BLAKE2b-256 |
a2b09171cc42e684ee1736986ec83c4c5a4559ace18d2653e2148050e8e9e3cc
|