Metadata-Version: 2.1
Name: videorotation
Version: 0.2
Summary: A module that allows to estimate whether video is flipped
Home-page: https://github.com/pavloshargan/VideoRotationAnalysis
Author: Pavlo Sharhan
Author-email: activetechinnovators@example.com
Description-Content-Type: text/markdown

### VideoRotation estimation using RotNet cnn, ref: https://github.com/d4nst/RotNet <br>


## Setup: <br>

```
python3 -m pip install .
```
## Pre-requirements: <br>
ffmpeg is required <br>


## Usage: <br>
```
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)

```
