PixieToon

PixieToon is an Android application that transforms your photos into cartoon-like images using a machine learning model. This project serves as a demonstration of how to integrate a TensorFlow Lite model into an Android app.

Features

How It Works

Below are screenshots demonstrating the main steps of using PixieToon:

Start App and Select an Image

Start App Select Image

Example1

First image example Cartoonize first image

Example2

Second image Cartoonize second image

Switch Between Original and Cartoonized

Cartoonize second image Switch between original and cartoonized

Save the Image

Save first image

Machine Learning Model

The cartoonization effect is achieved using a pre-trained TensorFlow Lite model (cartoon_model.tflite). This model is an implementation of the White-Box cartoonization method described in the following paper:

Learning to Cartoonize Using White-box Cartoon Representations Xinrui Wang, Jinze Yu CVPR 2020

The model is included in the app/src/main/assets directory.

Project Structure

This project follows the standard structure for an Android application built with Gradle. Here’s a brief overview of some important files and directories:

Building from Source

To build the project from the source code, follow these steps:

  1. Clone the repository:
    git clone https://gitlab.com/rokorolev/pixietoon.git
    
  2. Open the project in Android Studio.
  3. Let Android Studio sync the project with Gradle.
  4. Build and run the application on an Android device or emulator.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

PixieToon | Developer’s page | Other applications | PixieToon Repository