video2x/waifu2x.py
2018-02-24 16:13:27 -05:00

25 lines
505 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Name: FFMPEG Class
Author: K4YT3X
Date Created: Feb 24, 2018
Last Modified: Feb 24, 2018
Description: This class controls waifu2x
engine
Version 1.0
"""
import os
class WAIFU2X:
def __init__(self, waifu2x_path):
self.waifu2x_path = waifu2x_path
def upscale(self, folderin, folderout, width, height):
os.system("{} -p cpu -I png -i {} -e png -o {} -w {} -h {}".format(self.waifu2x_path, folderin, folderout, width, height))