# -*- coding: utf-8 -*-
"""
Created on Wed Nov 25 00:36:33 2020

@author: KAAVYA DUGGAL
"""

# -*- coding: utf-8 -*-
"""
Created on Tue Nov 24 22:45:34 2020

@author: KAAVYA DUGGAL
"""

import cv2 #for image processing
import easygui #to open the filebox
import numpy as np #to store image
import imageio #to read image stored at particular path

import sys
import matplotlib.pyplot as plt
import os
import tkinter as tk
from tkinter import filedialog
from tkinter import *
from PIL import ImageTk, Image
import mymodule

top=tk.Tk()
top.geometry('400x400')
top.title('Cartoonify Your Image !')
top.configure(background='white')
label=Label(top,background='#CDCDCD', font=('calibri',20,'bold'))

def upload():
    ImagePath=easygui.fileopenbox()
    mymodule.cartoonify(ImagePath)

upload=Button(top,text="Cartoonify an Image",command=upload,padx=10,pady=5)
upload.configure(background='#364156', foreground='white',font=('calibri',10,'bold'))
upload.pack(side=TOP,pady=50)

top.mainloop()






