

configure, and Label() are methods from Tkinter used in creating the window. It will contain buttons, labels, and images.gepmetry(). In this step, we will build the main window of our application. The Tk() function was called and assigned to the variable named ‘top’. Step 2: Making the GUI main window # CODE: top = tk.Tk() top.geometry(‘400x400’) top.title(‘Cartoonify Your Image !’) top.configure( background=’blue’) label = Label(top, background=’#CDCDCD’, font=(‘calibri’, 20, ‘bold’))

Function fileopenbox returns the name of a file. easygui: EasyGUI is a module for very simple, very easy GUI programming in python.cv2: This is a module from the OpenCV library, it will be used for the image processing.tkinter: It is a Python binding to the Tk GUI toolkit.Step 1: Importing the required modules # CODE: import tkinter as tk # graphical user interface toolkit from tkinter import * import easygui # to open the filebox import cv2 # for image processing import matplotlib.pyplot as plt import os # to read and save path import sysįrom the above, we imported the following This creates a beautiful cartoon image with edges and lightened colour of the original image. Form a colour image and mask it with edges.Convert the image to a Grayscale image.To convert an image to a cartoon, multiple transformations are done. Source: Process of converting an image to a cartoon
