SlideShare a Scribd company logo
1 of 15
UNIVERSITA DEGLI STUDI DI TRIESTE
FACOLTA DI INGEGNERIA
Dipartimento di Elettrotecnica, Elettronica e Informatica
Estrazione automatica
delle linee da un’immagine digitale
Laureando: Relatore: Correlatore:
Francesca PADOIN Sergio CARRATO Marco FONTANI
Anno Accademico 2020-2021
Obiettivi
 Individuare e rappresentare le linee presenti in un’immagine
 Individuare i tre punti di fuga allo scopo di calcolare la
prospettiva
 Valutare se le tre direzioni principali trovate siano corrette o
meno
Ambiente di lavoro
• Visual Studio 2019
• Linguaggio C++
• Libreria OpenCV
Sviluppo del lavoro
• Prefiltraggio immagine
• Trasformata di Hough per l’individuazione delle linee
• Calcolo punti d’intersezione fra le linee trovate
• Individuazione dei tre cluster tramite algoritmo
Trasformata di Hough
• Mappa ogni punto presente nell’immagine in una retta nello
spazio dei parametri
• Operatore utilizzati: Canny e Sobel
• Confronto fra i due e valutazione su quale operatore utilizzare
Confronto operatori
S
O
B
E
L
C
A
N
N
Y
Confronto operatori dopo aver
applicato la trasformata di Hough
S
O
B
E
L
C
A
N
N
Y
Valutazioni
• L’operatore di Canny individua un maggior numero di linee con
direzione diversa
• Per l’operatore di Sobel bisogna preimpostare una soglia, che
varia da immagine ad immagine. Tale soglia assume solo due
valori
• Con Sobel non è necessario pre-filtrare
Individuazione dei punti di intersezione
• Come si può notare ci sono
dei punti d’intersezione no
utili ai fini della ricerca dei
punti di fuga
Problematiche
• Utilizzare un algoritmo di cluster ad hoc
• Individuare i cluster corretti
• Poche linee nelle tre direzioni ‘volute’
Algoritmi di clustering
• Algoritmo di clustering
partizionale
• Basati sulla distanza fra i
tre centroidi individuati
• Scelta fra k-means e k-
medoids
Scelta del cluster corretto
• Basandosi su una distanza media dal centroide ed avendo il
numero limitato a tre cluster, il k-means individua spesso
correttamente i cluster esterni
• Il cluster interno all’immagine invece spesso è una media dei
punti individuati, che sono parecchi, e quindi non precisa
• Soluzioni:
-porre a quattro il numero di cluster da individuare ed eliminarne
in seguito uno
-eliminare le linee trovate che non concorrono all’individuazione
del punto di fuga
Come si nota il tavolo e la sedia non concorrono ad una corretta individuazione del
punto di fuga anche se la trasformata li individua correttamente come linee. Questo
comporta l’individuazione di punti d’intersezione, segnati in figura, non voluti.
Conclusioni
• Il software individua correttamente le linee ma ne individua
molte dirette verso i due punti di fuga e poche o nulle dirette
verso il terzo punto di fuga
• L’eliminazione delle linee non volute porta ad un miglioramento e
ad una ricalibrazione del calcolo del punto di fuga corretto
• L’eliminazione delle linee corrette ma in eccesso, a fronte di
poche linee trovate verso il terzo punto di fuga, porta ad una
corretta individuazione dei tre cluster
Soluzioni e sviluppi futuri
 Si consiglia di coadiuvare il software con una rete neurale per
trovare un maggior numero di linee con diversa direzione oppure
di inglobare i risultati ottenuti usando l’operatore di Sobel con
quelli ottenuti usando l’operatore di Canny
 Utilizzare un metodo geometrico, se esiste, che riesca ad
individuare a priori i tre corretti punti di fuga, valutando la
pendenza delle singole rette appartenenti ai fasci passanti per il
centroide, escludendo la prospettiva

More Related Content

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 2024Albert 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 InsightsKurio // 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 2024Search 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 summarySpeakerHub
 
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 IntentLily Ray
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceChristy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit 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 managementMindGenius
 
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 WorkGetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slidesAlireza Esmikhani
 
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 PresentationErica 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 wellSaba 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
 

Estrazione automatica delle linee in un'immagine digitale

  • 1. UNIVERSITA DEGLI STUDI DI TRIESTE FACOLTA DI INGEGNERIA Dipartimento di Elettrotecnica, Elettronica e Informatica Estrazione automatica delle linee da un’immagine digitale Laureando: Relatore: Correlatore: Francesca PADOIN Sergio CARRATO Marco FONTANI Anno Accademico 2020-2021
  • 2. Obiettivi  Individuare e rappresentare le linee presenti in un’immagine  Individuare i tre punti di fuga allo scopo di calcolare la prospettiva  Valutare se le tre direzioni principali trovate siano corrette o meno
  • 3. Ambiente di lavoro • Visual Studio 2019 • Linguaggio C++ • Libreria OpenCV
  • 4. Sviluppo del lavoro • Prefiltraggio immagine • Trasformata di Hough per l’individuazione delle linee • Calcolo punti d’intersezione fra le linee trovate • Individuazione dei tre cluster tramite algoritmo
  • 5. Trasformata di Hough • Mappa ogni punto presente nell’immagine in una retta nello spazio dei parametri • Operatore utilizzati: Canny e Sobel • Confronto fra i due e valutazione su quale operatore utilizzare
  • 7. Confronto operatori dopo aver applicato la trasformata di Hough S O B E L C A N N Y
  • 8. Valutazioni • L’operatore di Canny individua un maggior numero di linee con direzione diversa • Per l’operatore di Sobel bisogna preimpostare una soglia, che varia da immagine ad immagine. Tale soglia assume solo due valori • Con Sobel non è necessario pre-filtrare
  • 9. Individuazione dei punti di intersezione • Come si può notare ci sono dei punti d’intersezione no utili ai fini della ricerca dei punti di fuga
  • 10. Problematiche • Utilizzare un algoritmo di cluster ad hoc • Individuare i cluster corretti • Poche linee nelle tre direzioni ‘volute’
  • 11. Algoritmi di clustering • Algoritmo di clustering partizionale • Basati sulla distanza fra i tre centroidi individuati • Scelta fra k-means e k- medoids
  • 12. Scelta del cluster corretto • Basandosi su una distanza media dal centroide ed avendo il numero limitato a tre cluster, il k-means individua spesso correttamente i cluster esterni • Il cluster interno all’immagine invece spesso è una media dei punti individuati, che sono parecchi, e quindi non precisa • Soluzioni: -porre a quattro il numero di cluster da individuare ed eliminarne in seguito uno -eliminare le linee trovate che non concorrono all’individuazione del punto di fuga
  • 13. Come si nota il tavolo e la sedia non concorrono ad una corretta individuazione del punto di fuga anche se la trasformata li individua correttamente come linee. Questo comporta l’individuazione di punti d’intersezione, segnati in figura, non voluti.
  • 14. Conclusioni • Il software individua correttamente le linee ma ne individua molte dirette verso i due punti di fuga e poche o nulle dirette verso il terzo punto di fuga • L’eliminazione delle linee non volute porta ad un miglioramento e ad una ricalibrazione del calcolo del punto di fuga corretto • L’eliminazione delle linee corrette ma in eccesso, a fronte di poche linee trovate verso il terzo punto di fuga, porta ad una corretta individuazione dei tre cluster
  • 15. Soluzioni e sviluppi futuri  Si consiglia di coadiuvare il software con una rete neurale per trovare un maggior numero di linee con diversa direzione oppure di inglobare i risultati ottenuti usando l’operatore di Sobel con quelli ottenuti usando l’operatore di Canny  Utilizzare un metodo geometrico, se esiste, che riesca ad individuare a priori i tre corretti punti di fuga, valutando la pendenza delle singole rette appartenenti ai fasci passanti per il centroide, escludendo la prospettiva