SlideShare a Scribd company logo
1 of 26
CARTOONIFYING
AN IMAGE
MEET OUR TEAM
2
SAMIKSHA P BHARGAVA
20191ISE0147
SANSKRUTHI S GOWDA
20191ISE0149
CONTENT
Introduction​
Literature Survey
​Problem Statement
Objective
Algorithms Used
​Working of the project
Applications
References​
INTRODUCTION
Social media is extensively used these days. And standing out in this online
crowd has always been a to-do on every user’s list on these social media
platforms. Be it images, blog posts, artwork, tweets, memes, opinions and
what not being used to seek attention of followers or friends to create
influence or to connect with them on such social platforms. We aim to
provide one such creative solution to their needs, which is applying
cartoon like effects to their images. Users can later share these images on
any social media platforms, messengers, keep it for themselves, share it with
loved ones or do whatever they like with it. Nowadays almost everyone is
registered in social networks. We keep online status updated every day, share
photos and comments, follow our friends’ news. To have a nice profile is a
matter of prestige. You can use a photo of your own in a profile image, create
an amusing avatar or turn your photo into a cartoon.
4
LITERATURE SURVEY
Cartoonizing an image with transform an image into its cartoon form . Today
we find many numbers of application on internet to convert images to cartoon
effect. Cartoon style have unique style identification with high level
signification, abstraction and carton image tends to clear edges, smooth color
and relatively simple textures which exhibits signification for texture
description based on loss function used in existing method . There are
multiple properties in image processing. Each picture of the element together
viewed as 2-D matrix . In this field of research processing an image consisting
of an identifying an object in image, identifying an image, number of objects,
changing the images to blur edges and such effects are highly appreciated .
5
PROBLEM STATEMENT
 To convert a real-life image into cartoon effect.
 The cartoon is the most popular, famous and entertaining art.
 Image to Image conversion is a task to establish a visual mapping
between output and Input images .
6
OBJECTIVE
 We aim to transform images into its cartoon.
 Yes, we will CARTOONIFY the images.
 Thus, we will build a python application that will transform an image into its
cartoon using OpenCV.
7
ALGORITHMS USED
 Convolutional Neural Network
It is a network architecture for deep learning that learns directly from
data. They are particularly useful for finding patterns in images to recognize
objects, classes and categories.
8
APPLICATIONS
 Face recognition
 Image transformation
 Object Detection
9
WORKING OF THE PROJECT
10
Step 1: Importing the Required modules.
i. cv2
ii. easygui
iii. numpy
iv. imageio
v. Matplotlib
vi. Os
WORKING OF THE PROJECT
11
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
WORKING OF THE PROJECT
12
Step 2: Building a File Box to choose a particular file.
def upload():
ImagePath=easygui.fileopenbox()
cartoonify(ImagePath)
Step 3: How is an image stored?
originalmage = cv2.imread(ImagePath)
originalmage = cv2.cvtColor(originalmage, cv2.COLOR_BGR2RGB)
if originalmage is None:
print("Can not find any image. Choose appropriate file")
sys.exit()
ReSized1 = cv2.resize(originalmage, (960, 540))
WORKING OF THE PROJECT
13
Step 2: Building a File Box to choose a particular file.
def upload():
ImagePath=easygui.fileopenbox()
cartoonify(ImagePath)
Step 3: How is an image stored?
originalmage = cv2.imread(ImagePath)
originalmage = cv2.cvtColor(originalmage, cv2.COLOR_BGR2RGB)
if originalmage is None:
print("Can not find any image. Choose appropriate file")
sys.exit()
ReSized1 = cv2.resize(originalmage, (960, 540))
WORKING OF THE PROJECT
Step 4: Transforming an image to grayscale
CODE:
grayScaleImage = cv2.cvtColor(originalmage,
cv2.COLOR_BGR2GRAY)
ReSized2 = cv2.resize(grayScaleImage, (960, 540))
14
WORKING OF THE PROJECT
Step 5: Smoothening a grayscale image
CODE:
smoothGrayScale = cv2.medianBlur(grayScaleImage, 5)
ReSized3 = cv2.resize(smoothGrayScale, (960, 540))
15
WORKING OF THE PROJECT
Step 6: Retrieving the edges of an image
CODE:
getEdge = cv2.adaptiveThreshold(smoothGrayScale, 255,
cv2.ADAPTIVE_THRESH_MEAN_C,
cv2.THRESH_BINARY, 9, 9)
ReSized4 = cv2.resize(getEdge, (960, 540))
16
WORKING OF THE PROJECT
Step 7: Preparing a Mask Image
CODE:
colorImage = cv2.bilateralFilter(originalmage, 9, 300, 300)
ReSized5 = cv2.resize(colorImage, (960, 540))
17
WORKING OF THE PROJECT
Step 8: Giving a Cartoon Effect
CODE:
cartoonImage = cv2.bitwise_and(colorImage, colorImage,
mask=getEdge)
ReSized6 = cv2.resize(cartoonImage, (960, 540))
18
WORKING OF THE PROJECT
Step 9: Plotting all the transitions together
19
WORKING OF THE PROJECT
20
Step 10: Functionally of save button
CODE:
def save(ReSized6, ImagePath):
newName="cartoonified_Image"
path1 = os.path.dirname(ImagePath)
extension=os.path.splitext(ImagePath)[1]
path = os.path.join(path1, newName+extension)
cv2.imwrite(path, cv2.cvtColor(ReSized6, cv2.COLOR_RGB2BGR))
I = "Image saved by name " + newName +" at "+ path
tk.messagebox.showinfo(title=None, message=I)
WORKING OF THE PROJECT
21
Step 11: Making the main window
CODE:
top=tk.Tk()
top.geometry('400x400')
top.title('Cartoonify Your Image !')
top.configure(background='white')
label=Label(top,background='#CDCDCD', font=('calibri',20,'bold'))
WORKING OF THE PROJECT
22
Step 12: Making the Cartoonify button in the main
window
CODE:
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)
Step 13: Making a Save button in the main window
CODE:
save1=Button(top,text="Save cartoon image",command=lambda:
save(ImagePath, ReSized6),padx=30,pady=5)
save1.configure(background='#364156',
foreground='white',font=('calibri',10,'bold'))
WORKING OF THE PROJECT
23
Step 14: Main function to build the tkinter window
CODE:
top.mainloop()
CONCLUSION
Thus we have shown that how image can be converted to cartoon. We also stated the
examples on how image is converted to cartoon. The systematic working of image to
cartoon conversion and respective algorithm and formulae is shown with neat diagram.
We have also discussed need and scope of cartoonifying the content image.
24
REFERENCES
International journal of advance research,
ideas and innovation in technology.
Technical Paper Presentation on Application of
Cartoon like Effects to Actual Images.
Data flair Website.
25
THANK YOU

More Related Content

Similar to CARTOONIFYING AN IMAGE.final.pptx

Swift Paris - Dealing The Cards
Swift Paris - Dealing The CardsSwift Paris - Dealing The Cards
Swift Paris - Dealing The CardsZenly
 
Application of Cartoon Like Effects to Actual Images
Application of Cartoon Like Effects to Actual ImagesApplication of Cartoon Like Effects to Actual Images
Application of Cartoon Like Effects to Actual Imagesijtsrd
 
IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...
IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...
IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...IRJET Journal
 
Work In Progress
Work In ProgressWork In Progress
Work In Progresssamluk
 
Augmented reality session 3
Augmented reality session 3Augmented reality session 3
Augmented reality session 3NirsandhG
 
16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docx16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docxssuser90e017
 
Android based application for graph analysis final report
Android based application for graph analysis final reportAndroid based application for graph analysis final report
Android based application for graph analysis final reportPallab Sarkar
 
Basics of image processing using MATLAB
Basics of image processing using MATLABBasics of image processing using MATLAB
Basics of image processing using MATLABMohsin Siddique
 
Implementation of Picwords to Warping Pictures and Keywords through Calligram
Implementation of Picwords to Warping Pictures and Keywords through CalligramImplementation of Picwords to Warping Pictures and Keywords through Calligram
Implementation of Picwords to Warping Pictures and Keywords through CalligramIRJET Journal
 
L3 gd ha7_e6_motion_graphic_271113
L3 gd ha7_e6_motion_graphic_271113L3 gd ha7_e6_motion_graphic_271113
L3 gd ha7_e6_motion_graphic_271113benloynd
 
2007 Barcelona Drupalcon Image handling
2007 Barcelona Drupalcon Image handling2007 Barcelona Drupalcon Image handling
2007 Barcelona Drupalcon Image handlingJames Walker
 
Intro to computer vision in .net
Intro to computer vision in .netIntro to computer vision in .net
Intro to computer vision in .netStephen Lorello
 
Image processing for robotics
Image processing for roboticsImage processing for robotics
Image processing for roboticsSALAAMCHAUS
 
IRJET- Low Light Image Enhancement using Convolutional Neural Network
IRJET-  	  Low Light Image Enhancement using Convolutional Neural NetworkIRJET-  	  Low Light Image Enhancement using Convolutional Neural Network
IRJET- Low Light Image Enhancement using Convolutional Neural NetworkIRJET Journal
 
Neural network image recognition
Neural network image recognitionNeural network image recognition
Neural network image recognitionOleksii Sekundant
 
Object detection presentation
Object detection presentationObject detection presentation
Object detection presentationAshwinBicholiya
 

Similar to CARTOONIFYING AN IMAGE.final.pptx (20)

Swift Paris - Dealing The Cards
Swift Paris - Dealing The CardsSwift Paris - Dealing The Cards
Swift Paris - Dealing The Cards
 
Application of Cartoon Like Effects to Actual Images
Application of Cartoon Like Effects to Actual ImagesApplication of Cartoon Like Effects to Actual Images
Application of Cartoon Like Effects to Actual Images
 
IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...
IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...
IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...
 
Question 4
Question 4Question 4
Question 4
 
Work In Progress
Work In ProgressWork In Progress
Work In Progress
 
Augmented reality session 3
Augmented reality session 3Augmented reality session 3
Augmented reality session 3
 
16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docx16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docx
 
Android based application for graph analysis final report
Android based application for graph analysis final reportAndroid based application for graph analysis final report
Android based application for graph analysis final report
 
Basics of image processing using MATLAB
Basics of image processing using MATLABBasics of image processing using MATLAB
Basics of image processing using MATLAB
 
Implementation of Picwords to Warping Pictures and Keywords through Calligram
Implementation of Picwords to Warping Pictures and Keywords through CalligramImplementation of Picwords to Warping Pictures and Keywords through Calligram
Implementation of Picwords to Warping Pictures and Keywords through Calligram
 
L3 gd ha7_e6_motion_graphic_271113
L3 gd ha7_e6_motion_graphic_271113L3 gd ha7_e6_motion_graphic_271113
L3 gd ha7_e6_motion_graphic_271113
 
2007 Barcelona Drupalcon Image handling
2007 Barcelona Drupalcon Image handling2007 Barcelona Drupalcon Image handling
2007 Barcelona Drupalcon Image handling
 
Intro to computer vision in .net
Intro to computer vision in .netIntro to computer vision in .net
Intro to computer vision in .net
 
Image processing for robotics
Image processing for roboticsImage processing for robotics
Image processing for robotics
 
3.2 ws WMS.pdf
3.2 ws WMS.pdf3.2 ws WMS.pdf
3.2 ws WMS.pdf
 
IRJET- Low Light Image Enhancement using Convolutional Neural Network
IRJET-  	  Low Light Image Enhancement using Convolutional Neural NetworkIRJET-  	  Low Light Image Enhancement using Convolutional Neural Network
IRJET- Low Light Image Enhancement using Convolutional Neural Network
 
Python Project.pptx
Python Project.pptxPython Project.pptx
Python Project.pptx
 
Design Day Workshop
Design Day WorkshopDesign Day Workshop
Design Day Workshop
 
Neural network image recognition
Neural network image recognitionNeural network image recognition
Neural network image recognition
 
Object detection presentation
Object detection presentationObject detection presentation
Object detection presentation
 

Recently uploaded

Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai DouxDubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Douxkojalkojal131
 
WAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsWAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsCharles Obaleagbon
 
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service 🧵
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service  🧵CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service  🧵
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service 🧵anilsa9823
 
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 nightCheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 nightDelhi Call girls
 
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130Suhani Kapoor
 
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call GirlsCBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girlsmodelanjalisharma4
 
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...Call Girls in Nagpur High Profile
 
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...BarusRa
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricksabhishekparmar618
 
Kindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpKindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpmainac1
 
VIP Russian Call Girls in Gorakhpur Deepika 8250192130 Independent Escort Ser...
VIP Russian Call Girls in Gorakhpur Deepika 8250192130 Independent Escort Ser...VIP Russian Call Girls in Gorakhpur Deepika 8250192130 Independent Escort Ser...
VIP Russian Call Girls in Gorakhpur Deepika 8250192130 Independent Escort Ser...Suhani Kapoor
 
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 night
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 nightCheap Rate Call girls Malviya Nagar 9205541914 shot 1500 night
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 nightDelhi Call girls
 
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfChapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfParomita Roy
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...babafaisel
 
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...ranjana rawat
 
SD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxSD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxjanettecruzeiro1
 
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...Call girls in Ahmedabad High profile
 
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceanilsa9823
 

Recently uploaded (20)

Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai DouxDubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
 
WAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsWAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past Questions
 
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service 🧵
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service  🧵CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service  🧵
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service 🧵
 
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 nightCheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
 
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
 
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call GirlsCBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
 
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
 
B. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdfB. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdf
 
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricks
 
escort service sasti (*~Call Girls in Prasad Nagar Metro❤️9953056974
escort service sasti (*~Call Girls in Prasad Nagar Metro❤️9953056974escort service sasti (*~Call Girls in Prasad Nagar Metro❤️9953056974
escort service sasti (*~Call Girls in Prasad Nagar Metro❤️9953056974
 
Kindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpKindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUp
 
VIP Russian Call Girls in Gorakhpur Deepika 8250192130 Independent Escort Ser...
VIP Russian Call Girls in Gorakhpur Deepika 8250192130 Independent Escort Ser...VIP Russian Call Girls in Gorakhpur Deepika 8250192130 Independent Escort Ser...
VIP Russian Call Girls in Gorakhpur Deepika 8250192130 Independent Escort Ser...
 
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 night
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 nightCheap Rate Call girls Malviya Nagar 9205541914 shot 1500 night
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 night
 
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfChapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
 
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
 
SD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxSD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptx
 
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...
 
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
 

CARTOONIFYING AN IMAGE.final.pptx

  • 2. MEET OUR TEAM 2 SAMIKSHA P BHARGAVA 20191ISE0147 SANSKRUTHI S GOWDA 20191ISE0149
  • 3. CONTENT Introduction​ Literature Survey ​Problem Statement Objective Algorithms Used ​Working of the project Applications References​
  • 4. INTRODUCTION Social media is extensively used these days. And standing out in this online crowd has always been a to-do on every user’s list on these social media platforms. Be it images, blog posts, artwork, tweets, memes, opinions and what not being used to seek attention of followers or friends to create influence or to connect with them on such social platforms. We aim to provide one such creative solution to their needs, which is applying cartoon like effects to their images. Users can later share these images on any social media platforms, messengers, keep it for themselves, share it with loved ones or do whatever they like with it. Nowadays almost everyone is registered in social networks. We keep online status updated every day, share photos and comments, follow our friends’ news. To have a nice profile is a matter of prestige. You can use a photo of your own in a profile image, create an amusing avatar or turn your photo into a cartoon. 4
  • 5. LITERATURE SURVEY Cartoonizing an image with transform an image into its cartoon form . Today we find many numbers of application on internet to convert images to cartoon effect. Cartoon style have unique style identification with high level signification, abstraction and carton image tends to clear edges, smooth color and relatively simple textures which exhibits signification for texture description based on loss function used in existing method . There are multiple properties in image processing. Each picture of the element together viewed as 2-D matrix . In this field of research processing an image consisting of an identifying an object in image, identifying an image, number of objects, changing the images to blur edges and such effects are highly appreciated . 5
  • 6. PROBLEM STATEMENT  To convert a real-life image into cartoon effect.  The cartoon is the most popular, famous and entertaining art.  Image to Image conversion is a task to establish a visual mapping between output and Input images . 6
  • 7. OBJECTIVE  We aim to transform images into its cartoon.  Yes, we will CARTOONIFY the images.  Thus, we will build a python application that will transform an image into its cartoon using OpenCV. 7
  • 8. ALGORITHMS USED  Convolutional Neural Network It is a network architecture for deep learning that learns directly from data. They are particularly useful for finding patterns in images to recognize objects, classes and categories. 8
  • 9. APPLICATIONS  Face recognition  Image transformation  Object Detection 9
  • 10. WORKING OF THE PROJECT 10 Step 1: Importing the Required modules. i. cv2 ii. easygui iii. numpy iv. imageio v. Matplotlib vi. Os
  • 11. WORKING OF THE PROJECT 11 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
  • 12. WORKING OF THE PROJECT 12 Step 2: Building a File Box to choose a particular file. def upload(): ImagePath=easygui.fileopenbox() cartoonify(ImagePath) Step 3: How is an image stored? originalmage = cv2.imread(ImagePath) originalmage = cv2.cvtColor(originalmage, cv2.COLOR_BGR2RGB) if originalmage is None: print("Can not find any image. Choose appropriate file") sys.exit() ReSized1 = cv2.resize(originalmage, (960, 540))
  • 13. WORKING OF THE PROJECT 13 Step 2: Building a File Box to choose a particular file. def upload(): ImagePath=easygui.fileopenbox() cartoonify(ImagePath) Step 3: How is an image stored? originalmage = cv2.imread(ImagePath) originalmage = cv2.cvtColor(originalmage, cv2.COLOR_BGR2RGB) if originalmage is None: print("Can not find any image. Choose appropriate file") sys.exit() ReSized1 = cv2.resize(originalmage, (960, 540))
  • 14. WORKING OF THE PROJECT Step 4: Transforming an image to grayscale CODE: grayScaleImage = cv2.cvtColor(originalmage, cv2.COLOR_BGR2GRAY) ReSized2 = cv2.resize(grayScaleImage, (960, 540)) 14
  • 15. WORKING OF THE PROJECT Step 5: Smoothening a grayscale image CODE: smoothGrayScale = cv2.medianBlur(grayScaleImage, 5) ReSized3 = cv2.resize(smoothGrayScale, (960, 540)) 15
  • 16. WORKING OF THE PROJECT Step 6: Retrieving the edges of an image CODE: getEdge = cv2.adaptiveThreshold(smoothGrayScale, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 9, 9) ReSized4 = cv2.resize(getEdge, (960, 540)) 16
  • 17. WORKING OF THE PROJECT Step 7: Preparing a Mask Image CODE: colorImage = cv2.bilateralFilter(originalmage, 9, 300, 300) ReSized5 = cv2.resize(colorImage, (960, 540)) 17
  • 18. WORKING OF THE PROJECT Step 8: Giving a Cartoon Effect CODE: cartoonImage = cv2.bitwise_and(colorImage, colorImage, mask=getEdge) ReSized6 = cv2.resize(cartoonImage, (960, 540)) 18
  • 19. WORKING OF THE PROJECT Step 9: Plotting all the transitions together 19
  • 20. WORKING OF THE PROJECT 20 Step 10: Functionally of save button CODE: def save(ReSized6, ImagePath): newName="cartoonified_Image" path1 = os.path.dirname(ImagePath) extension=os.path.splitext(ImagePath)[1] path = os.path.join(path1, newName+extension) cv2.imwrite(path, cv2.cvtColor(ReSized6, cv2.COLOR_RGB2BGR)) I = "Image saved by name " + newName +" at "+ path tk.messagebox.showinfo(title=None, message=I)
  • 21. WORKING OF THE PROJECT 21 Step 11: Making the main window CODE: top=tk.Tk() top.geometry('400x400') top.title('Cartoonify Your Image !') top.configure(background='white') label=Label(top,background='#CDCDCD', font=('calibri',20,'bold'))
  • 22. WORKING OF THE PROJECT 22 Step 12: Making the Cartoonify button in the main window CODE: 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) Step 13: Making a Save button in the main window CODE: save1=Button(top,text="Save cartoon image",command=lambda: save(ImagePath, ReSized6),padx=30,pady=5) save1.configure(background='#364156', foreground='white',font=('calibri',10,'bold'))
  • 23. WORKING OF THE PROJECT 23 Step 14: Main function to build the tkinter window CODE: top.mainloop()
  • 24. CONCLUSION Thus we have shown that how image can be converted to cartoon. We also stated the examples on how image is converted to cartoon. The systematic working of image to cartoon conversion and respective algorithm and formulae is shown with neat diagram. We have also discussed need and scope of cartoonifying the content image. 24
  • 25. REFERENCES International journal of advance research, ideas and innovation in technology. Technical Paper Presentation on Application of Cartoon like Effects to Actual Images. Data flair Website. 25