【文件属性】:
文件名称:waifu2x.rs:waifu2x-ncnn-vulkan Rust 绑定
文件大小:24KB
文件格式:ZIP
更新时间:2021-05-29 11:08:55
rust waifu2x bindings C++
waifu2x.rs
Rust 绑定。
这个库需要每晚用 Rust 编译。
用法
use image :: open;
use quicli :: prelude :: * ;
use waifu2x :: Waifu2x;
fn main () -> CliResult {
let processer = Waifu2x :: new ( 0 , 0 , 2 , 128 , true );
let image = open ( "image.png" )?;
processer. proc_image (image, false ). save ( "output.png" )?;
}
【文件预览】:
waifu2x.rs-master
----waifu2x()
--------CMakeLists.txt(4KB)
--------waifu2x_preproc.comp(2KB)
--------LICENSE(1KB)
--------waifu2x.cpp(12KB)
--------waifu2x_postproc.comp(2KB)
--------models()
----.gitignore(24B)
----README.md(413B)
----.gitmodules(117B)
----Cargo.toml(629B)
----LICENSE(34KB)
----build.rs(2KB)
----src()
--------lib.rs(70B)
--------waifu2x.rs(3KB)
----Cargo.lock(4KB)