https://github.com/darkskygit/waifu2x.rs
A waifu2x-ncnn-vulkan Rust binding.
https://github.com/darkskygit/waifu2x.rs
bindings rust waifu2x
Last synced: about 1 year ago
JSON representation
A waifu2x-ncnn-vulkan Rust binding.
- Host: GitHub
- URL: https://github.com/darkskygit/waifu2x.rs
- Owner: darkskygit
- License: agpl-3.0
- Created: 2019-08-05T03:26:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-14T14:50:20.000Z (almost 3 years ago)
- Last Synced: 2025-05-17T20:06:44.087Z (about 1 year ago)
- Topics: bindings, rust, waifu2x
- Language: C
- Homepage:
- Size: 149 MB
- Stars: 21
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# waifu2x.rs
A [waifu2x-ncnn-vulkan](https://github.com/nihui/waifu2x-ncnn-vulkan) Rust binding.
This library needs to be compiled with the rust nightly.
# Usage
```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")?;
}
```