SlideShare a Scribd company logo
UTS PENGOLAHAN
CITRA DIGITAL
I Gusti Ngura Bagus Putra Asmara (1929101048)
Algoritma
Mulai
Input:
- citra dataset permen
- range warna tiap permen
Konversi citra ke color spaceHSV
Masking citra HSV dengan rangewarna
Menerapkan metode Closing dan Opening
pada citra hasil masking
Edge detection hasil metode opening dan
closing dengan Canny
Menghitung kontur citra hasil edge
detection
Output :
jum_permen = jum_kontur
Selesai
A
A
Input Citra Dataset
dan Range Warna
Tiap Permen
Input Citra Dataset
dan Range Warna
Tiap Permen
Input Citra Dataset
dan Range Warna
Tiap Permen
Konversi Citra ke
dalam Color Space
HSV
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
Fungsi konversi warna OpenCV
Citra yang akan dikonversi
Metode konversi
Masking Citra HSV
dengan Range Warna
Tiap Permen
Fungsi masking OpenCV
Citra yang akan dimasking
Masking Citra HSV
dengan Range Warna
Tiap Permen
Menerapkan Metode
Closing dan Opening
pada Citra Hasil
Masking
Menerapkan Metode
Closing dan Opening
pada Citra Hasil
Masking
Mendeteksi Tepi (Edge
Detection) Hasil
Metode Opening dan
Closing dengan Metode
Canny
Menghitung Kontur
Citra Hasil Edge
Detection
Hasil dan Pembahasan
Hasil dan Pembahasan
Hasil dan Pembahasan
Data Warna Jumlah Jumlah Selisih
1 Biru 16 16 0
2 Biru 10 11 1
3 Biru 18 14 4
4 Biru 6 4 2
5 Biru 10 11 1
6 Biru 24 8 16
7 Biru 19 21 2
Data Warna Jumlah Jumlah Selisih
1 Hijau 19 12 7
2 Hijau 8 10 2
3 Hijau 21 11 10
4 Hijau 8 4 4
5 Hijau 15 17 2
6 Hijau 28 11 17
7 Hijau 30 24 6
Data Warna Jumlah Jumlah Selisih
1 Merah 14 9 5
2 Merah 9 5 4
3 Merah 14 2 12
4 Merah 4 4 0
5 Merah 16 9 7
6 Merah 13 9 4
7 Merah 19 19 0
Data Warna Jumlah Jumlah Selisih
1 Kuning 7 19 12
2 Kuning 5 5 0
3 Kuning 12 6 6
4 Kuning 6 4 2
5 Kuning 20 33 13
6 Kuning 25 15 10
7 Kuning 19 15 4
Data Warna Jumlah Jumlah Selisih
1 Oranye 7 22 15
2 Oranye 10 13 3
3 Oranye 14 10 4
4 Oranye 5 4 1
5 Oranye 7 25 18
6 Oranye 15 8 7
7 Oranye 24 22 2
Data Warna Jumlah Jumlah Selisih
1 Coklat 15 21 6
2 Coklat 4 21 17
3 Coklat 3 2 1
4 Coklat 5 5 0
5 Coklat 18 24 6
6 Coklat 10 9 1
7 Coklat 11 19 8
Hasil dan Pembahasan
1. Range warna yang digunakan untuk setiap warna permen masih belum cukup baik
untuk warna merah, oranye dan coklat. Hal ini disebabkan oleh intensitas warna yang
berbeda untuk masing-masing dataset.
2. Proses closing dan opening yang belum optimal. Iterasi yang digunakan untuk
melakukan closing dan opening ditetapkan sama untuk seluruh warna pada ketujuh
dataset.

More Related Content

Recently uploaded

Daftar Lembaga Penyedia Jasa Linkungan.pdf
Daftar Lembaga Penyedia Jasa Linkungan.pdfDaftar Lembaga Penyedia Jasa Linkungan.pdf
Daftar Lembaga Penyedia Jasa Linkungan.pdf
Tsabitpattipeilohy
 
Metode Clayperon (Persamaan Tiga Momen) untuk balok menerus.pptx
Metode Clayperon (Persamaan Tiga Momen) untuk balok menerus.pptxMetode Clayperon (Persamaan Tiga Momen) untuk balok menerus.pptx
Metode Clayperon (Persamaan Tiga Momen) untuk balok menerus.pptx
ssuser2537c0
 
RANGKAIAN LISTRIK MATERI 7 ANALISIS MESH.pptx
RANGKAIAN LISTRIK MATERI 7 ANALISIS MESH.pptxRANGKAIAN LISTRIK MATERI 7 ANALISIS MESH.pptx
RANGKAIAN LISTRIK MATERI 7 ANALISIS MESH.pptx
muhammadiswahyudi12
 
NADIA FEBIANTI TUGAS PPT(GAMMA APP).pptx
NADIA FEBIANTI TUGAS PPT(GAMMA APP).pptxNADIA FEBIANTI TUGAS PPT(GAMMA APP).pptx
NADIA FEBIANTI TUGAS PPT(GAMMA APP).pptx
nadiafebianti2
 
SURVEY REKAYASA SURVEY REKAYASA SURVEY REKAYASA
SURVEY REKAYASA SURVEY REKAYASA SURVEY REKAYASASURVEY REKAYASA SURVEY REKAYASA SURVEY REKAYASA
SURVEY REKAYASA SURVEY REKAYASA SURVEY REKAYASA
AnandhaAdkhaM1
 
TUGAS pelaksana pekerjaan jalan jenjang empat 4 .pptx -.pdf
TUGAS pelaksana pekerjaan jalan jenjang empat 4 .pptx -.pdfTUGAS pelaksana pekerjaan jalan jenjang empat 4 .pptx -.pdf
TUGAS pelaksana pekerjaan jalan jenjang empat 4 .pptx -.pdf
jayakartalumajang1
 
436102098-0-K3-Elevator-Dan-Eskalator.ppt
436102098-0-K3-Elevator-Dan-Eskalator.ppt436102098-0-K3-Elevator-Dan-Eskalator.ppt
436102098-0-K3-Elevator-Dan-Eskalator.ppt
rhamset
 
Power Point TEMA 7 SUB TEMA 3 Pembelajaran 2
Power Point TEMA 7 SUB TEMA 3 Pembelajaran 2Power Point TEMA 7 SUB TEMA 3 Pembelajaran 2
Power Point TEMA 7 SUB TEMA 3 Pembelajaran 2
HADIANNAS
 
1. Paparan Penjelasan Permen PUPR 08 Tahun 2023.pdf
1. Paparan Penjelasan Permen PUPR 08 Tahun 2023.pdf1. Paparan Penjelasan Permen PUPR 08 Tahun 2023.pdf
1. Paparan Penjelasan Permen PUPR 08 Tahun 2023.pdf
AdityaWahyuDewangga1
 
TUGAS UJI KOMPETENSI-INDAH ROSANTI-AHLI UTAMA MANAJEMEN KONSTRUKSI.pptx
TUGAS UJI KOMPETENSI-INDAH ROSANTI-AHLI UTAMA MANAJEMEN KONSTRUKSI.pptxTUGAS UJI KOMPETENSI-INDAH ROSANTI-AHLI UTAMA MANAJEMEN KONSTRUKSI.pptx
TUGAS UJI KOMPETENSI-INDAH ROSANTI-AHLI UTAMA MANAJEMEN KONSTRUKSI.pptx
indahrosantiTeknikSi
 
COOLING TOWER petrokimia gresik okdong d
COOLING TOWER petrokimia gresik okdong dCOOLING TOWER petrokimia gresik okdong d
COOLING TOWER petrokimia gresik okdong d
delphijean1
 

Recently uploaded (11)

Daftar Lembaga Penyedia Jasa Linkungan.pdf
Daftar Lembaga Penyedia Jasa Linkungan.pdfDaftar Lembaga Penyedia Jasa Linkungan.pdf
Daftar Lembaga Penyedia Jasa Linkungan.pdf
 
Metode Clayperon (Persamaan Tiga Momen) untuk balok menerus.pptx
Metode Clayperon (Persamaan Tiga Momen) untuk balok menerus.pptxMetode Clayperon (Persamaan Tiga Momen) untuk balok menerus.pptx
Metode Clayperon (Persamaan Tiga Momen) untuk balok menerus.pptx
 
RANGKAIAN LISTRIK MATERI 7 ANALISIS MESH.pptx
RANGKAIAN LISTRIK MATERI 7 ANALISIS MESH.pptxRANGKAIAN LISTRIK MATERI 7 ANALISIS MESH.pptx
RANGKAIAN LISTRIK MATERI 7 ANALISIS MESH.pptx
 
NADIA FEBIANTI TUGAS PPT(GAMMA APP).pptx
NADIA FEBIANTI TUGAS PPT(GAMMA APP).pptxNADIA FEBIANTI TUGAS PPT(GAMMA APP).pptx
NADIA FEBIANTI TUGAS PPT(GAMMA APP).pptx
 
SURVEY REKAYASA SURVEY REKAYASA SURVEY REKAYASA
SURVEY REKAYASA SURVEY REKAYASA SURVEY REKAYASASURVEY REKAYASA SURVEY REKAYASA SURVEY REKAYASA
SURVEY REKAYASA SURVEY REKAYASA SURVEY REKAYASA
 
TUGAS pelaksana pekerjaan jalan jenjang empat 4 .pptx -.pdf
TUGAS pelaksana pekerjaan jalan jenjang empat 4 .pptx -.pdfTUGAS pelaksana pekerjaan jalan jenjang empat 4 .pptx -.pdf
TUGAS pelaksana pekerjaan jalan jenjang empat 4 .pptx -.pdf
 
436102098-0-K3-Elevator-Dan-Eskalator.ppt
436102098-0-K3-Elevator-Dan-Eskalator.ppt436102098-0-K3-Elevator-Dan-Eskalator.ppt
436102098-0-K3-Elevator-Dan-Eskalator.ppt
 
Power Point TEMA 7 SUB TEMA 3 Pembelajaran 2
Power Point TEMA 7 SUB TEMA 3 Pembelajaran 2Power Point TEMA 7 SUB TEMA 3 Pembelajaran 2
Power Point TEMA 7 SUB TEMA 3 Pembelajaran 2
 
1. Paparan Penjelasan Permen PUPR 08 Tahun 2023.pdf
1. Paparan Penjelasan Permen PUPR 08 Tahun 2023.pdf1. Paparan Penjelasan Permen PUPR 08 Tahun 2023.pdf
1. Paparan Penjelasan Permen PUPR 08 Tahun 2023.pdf
 
TUGAS UJI KOMPETENSI-INDAH ROSANTI-AHLI UTAMA MANAJEMEN KONSTRUKSI.pptx
TUGAS UJI KOMPETENSI-INDAH ROSANTI-AHLI UTAMA MANAJEMEN KONSTRUKSI.pptxTUGAS UJI KOMPETENSI-INDAH ROSANTI-AHLI UTAMA MANAJEMEN KONSTRUKSI.pptx
TUGAS UJI KOMPETENSI-INDAH ROSANTI-AHLI UTAMA MANAJEMEN KONSTRUKSI.pptx
 
COOLING TOWER petrokimia gresik okdong d
COOLING TOWER petrokimia gresik okdong dCOOLING TOWER petrokimia gresik okdong d
COOLING TOWER petrokimia gresik okdong d
 

Featured

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Pengolahan citra digital

  • 1. UTS PENGOLAHAN CITRA DIGITAL I Gusti Ngura Bagus Putra Asmara (1929101048)
  • 2. Algoritma Mulai Input: - citra dataset permen - range warna tiap permen Konversi citra ke color spaceHSV Masking citra HSV dengan rangewarna Menerapkan metode Closing dan Opening pada citra hasil masking Edge detection hasil metode opening dan closing dengan Canny Menghitung kontur citra hasil edge detection Output : jum_permen = jum_kontur Selesai A A
  • 3. Input Citra Dataset dan Range Warna Tiap Permen
  • 4. Input Citra Dataset dan Range Warna Tiap Permen
  • 5. Input Citra Dataset dan Range Warna Tiap Permen
  • 6. Konversi Citra ke dalam Color Space HSV hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) Fungsi konversi warna OpenCV Citra yang akan dikonversi Metode konversi
  • 7. Masking Citra HSV dengan Range Warna Tiap Permen Fungsi masking OpenCV Citra yang akan dimasking
  • 8. Masking Citra HSV dengan Range Warna Tiap Permen
  • 9. Menerapkan Metode Closing dan Opening pada Citra Hasil Masking
  • 10. Menerapkan Metode Closing dan Opening pada Citra Hasil Masking
  • 11. Mendeteksi Tepi (Edge Detection) Hasil Metode Opening dan Closing dengan Metode Canny
  • 15. Hasil dan Pembahasan Data Warna Jumlah Jumlah Selisih 1 Biru 16 16 0 2 Biru 10 11 1 3 Biru 18 14 4 4 Biru 6 4 2 5 Biru 10 11 1 6 Biru 24 8 16 7 Biru 19 21 2 Data Warna Jumlah Jumlah Selisih 1 Hijau 19 12 7 2 Hijau 8 10 2 3 Hijau 21 11 10 4 Hijau 8 4 4 5 Hijau 15 17 2 6 Hijau 28 11 17 7 Hijau 30 24 6 Data Warna Jumlah Jumlah Selisih 1 Merah 14 9 5 2 Merah 9 5 4 3 Merah 14 2 12 4 Merah 4 4 0 5 Merah 16 9 7 6 Merah 13 9 4 7 Merah 19 19 0 Data Warna Jumlah Jumlah Selisih 1 Kuning 7 19 12 2 Kuning 5 5 0 3 Kuning 12 6 6 4 Kuning 6 4 2 5 Kuning 20 33 13 6 Kuning 25 15 10 7 Kuning 19 15 4 Data Warna Jumlah Jumlah Selisih 1 Oranye 7 22 15 2 Oranye 10 13 3 3 Oranye 14 10 4 4 Oranye 5 4 1 5 Oranye 7 25 18 6 Oranye 15 8 7 7 Oranye 24 22 2 Data Warna Jumlah Jumlah Selisih 1 Coklat 15 21 6 2 Coklat 4 21 17 3 Coklat 3 2 1 4 Coklat 5 5 0 5 Coklat 18 24 6 6 Coklat 10 9 1 7 Coklat 11 19 8
  • 16. Hasil dan Pembahasan 1. Range warna yang digunakan untuk setiap warna permen masih belum cukup baik untuk warna merah, oranye dan coklat. Hal ini disebabkan oleh intensitas warna yang berbeda untuk masing-masing dataset. 2. Proses closing dan opening yang belum optimal. Iterasi yang digunakan untuk melakukan closing dan opening ditetapkan sama untuk seluruh warna pada ketujuh dataset.