项目作者: darkskygit

项目描述 :
A waifu2x-ncnn-vulkan Rust binding.
高级语言: C++
项目地址: git://github.com/darkskygit/waifu2x.rs.git
创建时间: 2019-08-05T03:26:01Z
项目社区:https://github.com/darkskygit/waifu2x.rs

开源协议:GNU Affero General Public License v3.0

下载


waifu2x.rs

A waifu2x-ncnn-vulkan Rust binding.

This library needs to be compiled with the rust nightly.

Usage

  1. use image::open;
  2. use quicli::prelude::*;
  3. use waifu2x::Waifu2x;
  4. fn main() -> CliResult {
  5. let processer = Waifu2x::new(0, 0, 2, 128, true)?;
  6. let image = open("image.png")?;
  7. processer.proc_image(image, false).save("output.png")?;
  8. }