Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

detect-resolution

PyPI - Version PyPI - Python Version

Try to detect if a video has been upscaled. This tool uses a custom neural network to detect by how much a video might have been upscaled, then tries to match the result with a list of common video resolutions.

As video frames are often blurry for other reasons, the tool will sample a number of frames and take the 10-th percentile of the upscaling factor to make the result more robust.

Installation

pip install detect-resolution

Then, install pytorch and torchvision as needed for your system. Please see the PyTorch installation guide for more details.

Usage

detect-resolution --help
detect-resolution path/to/some_video.mp4
detect-resolution path/to/some_video.mp4 --n-samples 100
detect-resolution path/to/some_video.mp4 --debug --debug-images

License

detect-resolution is distributed under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages