Image to Cartoon Python OpenCV Machine Learning

Image to Cartoon Python OpenCV Machine Learning Free Source Code . This Project web app project you can directly select image then you can convert any image to cartoon . its very interesting project . This is simple and basic level small project for learning purpose. Also you can modified this system as per your requriments and develop a perfect advance level project.

Image to Cartoon Python OpenCV Machine Learning Free Source Code

Required modules in this Projects

  1. CV2: Imported to use OpenCV for image processing
  2. easygui: Imported to open a file box. It allows us to select any file from our system.
  3. Numpy: Images are stored and processed as numbers. These are taken as arrays. We use NumPy to deal with arrays.
  4. Imageio: Used to read the file which is chosen by file box using a path.
  5. Matplotlib: This library is used for visualization and plotting. Thus, it is imported to form the plot of images.
  6. OS: For OS interaction. Here, to read the path and save images to that path.
  7. Flask: Flask is a micro web framework written in Python.

Steps to develop Image to cartoon 

  1. Importing the required modules
  2. Building a File Box to choose a particular file
  3. How is an image stored?
  4. Transforming an image to grayscale
  5. Smoothening a grayscale image
  6. Retrieving the edges of an image
  7. Preparing a Mask Image
  8. Giving a Cartoon Effect
  9. Plotting all the transitions together
  10. Functionally of save or download  button

Application tested on:

  1. python 3.7
  2. tensorflow 2.1.0
  3. tf_slim 1.1.0
  4. ffmpeg 3.4.8
  5. Cuda version 10.1
  6. OS: Windows 10

Algorithmia For Video Convert 

We used the Serveless AI Layer product of Algorithmia for inference on videos. To learn more on how to deploy your model in Algorithmia, check here - https://algorithmia.com/developers

 

Installation Step : -

  1. python 3.7.0
  2. command 1 - python -m pip install --user -r requirements.txt
  3. command 2 - python app.py

Download Source Code

 

Posted in Machine Learning Projects With Source Code, Python Projects and tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , .