License / 许可: Original code authored by bennix: GPL-3.0-only. Upstream and third-party material retain their original terms and notices. See LICENSE and LICENSING.md for the current licensing scope.
This project provides a Python script for enhancing video quality using super-resolution techniques.
本项目提供了一个使用超分辨率技术来提高视频质量的Python脚本。
-
Upscales video resolution by 4x using ESPCN model
-
Supports various video formats
-
Automatic model download
-
使用ESPCN模型将视频分辨率提高4倍
-
支持多种视频格式
-
自动下载模型
- Python 3.6+
- OpenCV
- NumPy
- MoviePy
-
Clone this repository / 克隆此仓库
git clone https://github.com/yourusername/video-enhancement-tool.git cd video-enhancement-tool -
Install dependencies / 安装依赖
pip install opencv-python numpy moviepy
-
Place your input video in the project directory / 将输入视频放在项目目录中 Make sure this filename is iput.mp4/ 确保文件名是input.mp4
-
Run the script / 运行脚本
python videoenhance.py -
The enhanced video will be saved as "enhanced_output.mp4" / 增强后的视频将保存为"enhanced_output.mp4"
The script uses the ESPCN (Efficient Sub-Pixel Convolutional Neural Network) model for super-resolution. It processes the video frame by frame, enhancing each frame's resolution before reconstructing the video.
该脚本使用ESPCN(高效亚像素卷积神经网络)模型进行超分辨率处理。它逐帧处理视频,在重建视频之前提高每一帧的分辨率。
Original code authored by bennix is licensed under GPL-3.0-only
本项目中 bennix 原创代码采用 GPL-3.0-only