/Cartoonifier

Python program to convert any image or photograph into painting or cartoon

Primary LanguagePythonMIT LicenseMIT

CARTOONIFIER

DESCRIPTION

This program is used to convert any type of image into a cartoon or painting. This program is created for fun and to learn the use of different python modules.

HOW TO USE

  1. Download the requirements for the program, from the text file file named, requirements.txt. The given requirements can be downloaded by the following code.

    pipreqs --encoding utf-8 <PATH OF THE FILE>
    

    If the code doesn't run on your system, then first install the pipreqs package with the help of the code below. After successfully installing the package run the previous code.

    pip install pipreqs
    
  2. On line 25 of the attached python file, add the path of any image, between the quotes. And then on line 34, give a name to your created image file

  3. The user can change few properties, like width of the lines, blur value and total colors. Which will create a different image everytime the values are changed.