Show the crate…

1 stable release

1.0.0 Jan 2, 2022

#7 in #entertainment

47 downloads per month
Used in toonify-cli

Apache-2.0

13KB
219 lines

Toonify

Turn a photo of any face into a cartoon instantly with artificial intelligence. Toonify uses a convolutional neural network to quickly transform the photo into a cartoon. While generative adversarial networks (GANs) were used in the creation of Toonify, they are not used in the final model.

Example

use toonify::Toonify;

fn main() {
    let toon = Toonify::new("https://pics.wikifeet.com/Carmen-Electra-Feet-4911381.jpg",
    "API-key");
    println!("{}", toon.image().unwrap())
    
    // Output: https://api.deepai.org/job-view-file/72616dc9-97c6-4181-8069-f2de3331d35f/outputs/output.jpg
}

lib.rs:

Toonify API client

Turn a photo of any face into a cartoon instantly with artificial intelligence. Toonify uses a convolutional neural network to quickly transform the photo into a cartoon. While generative adversarial networks (GANs) were used in the creation of Toonify, they are not used in the final model.

Dependencies

~4–17MB
~245K SLoC