SlideShare a Scribd company logo
1 of 23
特徴抽出ー線
Line Detection
発表者:NANDEDKAR PARTH SHIRISH
1
今日の流れーTopics
1.Goal of Line Detection, difference with Edge Detection
2.Successive Approximation Method
3.Hough Transform Method
4.RANSAC(Random Sample Consensus) Method
5.Vanishing Point Detection using Hough Transform
6.Applications-Rectangle Detection
2
1. Goal of Line Detection
In image processing, line detection is an algorithm that takes
a collection of n edge points and finds all the lines on which
these edge points lie.
The most popular line detectors are the Hough
transform and convolution-based techniques.
Convolution-based Line Detection:
Same process as for Edge Detection.
3
1. Difference with Edge Detection
An edge is a transition from one phase/object/thing to
another. On one side you have one color, on the other side you
have another color.
A line is a 1D structure. It has the same phase/object/thing
on either side. On one side you have background, on the other
side you have background also.
→Better techniques can better differentiate between these.
4
2.Successive Approximation Method
5
• Transforming from a curve-contour to a simpler
representation (to Piecewise-linear polyline or B-spline curve)
• Algorithm: Mark the first and last point. Find the farthest inlier
from this line and join First and this point. Now remove the
farthest inlier to this line.
• If contour is a line (with noise) we can simplify it to that line.
3.Hough Transform Basics
6
Consider a line-to-point transform, that transforms
the data from x,y space to m,h space, where each
line is transformed to a point.
Problem: neither m or h are bounded, so that Line k
to x axis ⇒ h not defined Line k to y axis ⇒ m → ∞
3.Polar Hough Transform
7
Now the problem is solved,
as both variables are bounded!
→ Polar Hough Transform:
Where f(x,y) is the image, and (r-xcosθ-ysinθ) represents
any arbitrary line in polar form.
→ Unit Sphere & Cubemap Hough Mappings possible(pg. 253)
3.Polar Hough Transform – Theoretical Example
8Output in the case of perfectly continuous lines.
3.Hough Transform for Line Detection
9
→ Goal: To identify straight lines
• Process: For each pixel at (x,y) the Polar Hough transform
algorithm determines if there is enough evidence of a straight
line at that pixel, using votes from sample points.
→ Strengths:
• Gives equations of lines (but not “end-points” of segments).
• Works well with simple images that contain good straight lines.
(Good for Robot Vision)
• Deal with broken lines very well.
• Reasonably efficient if there are “few” edge points.
3.Polar Hough Transform – Broken Line/Sampling Example
10
3.Polar Hough Transform – Discrete case
11
Same as before, but discrete. Number in Accumulator cell
proportional to number of points on the line.
3.Hough Transform for Line Detection
12
→ Problems:
• Very slow of there are many edge points.
• Hough Space is non-linear, different edge sensitivities in
different directions.
• Poor for short lines.
→ Recent Extensions of Hough Method:
• Circle and Ellipse detection by Double Hough Method.
• Image transform plus Hough for general 2D shape detection.
• Vanishing Points Detection(section 4.3.3, part 5 of presentation)
4.RANSAC(Random Sample Consensus) Method
– (For Feature Detection)
13
• Determines the best transformation that includes the most
number of match features (inliers) from the previous step.
• RANSAC loop for planar pattern detection:
1. Select four feature pairs (at random) in the two angles.
2. Compute homography H (see next slide).
3. Compute inliers where SSD(pi’, Hpi) < a certain value,ε.
4. Keep largest set of inliers.
5. Re-compute least-squares estimate on all of the inliers.
4.RANSAC Method – What are Homographies?
14
• Example of Homography
• Projective–mapping between any two
projection planes with the same center of
projection called Homography
4.RANSAC Method – (For Line Detection)
15
→ Simple example: Let us fit a line
• Use biggest set of inliers
• Do least-square fit => SD is low, Very likely it is a line
4.RANSAC Method – Video: Fitting a Line
16
→ Strengths:
• Robust estimation
• Relatively high accuracy
→ Problems:
• Randomness.
• Number of Iterations
required for p% success
5.Vanishing Points Detection – using Hough Transform
17
→ Goal: To collect lost 3D information from perspective in a 2D
image detecting Vanishing points of Parallel lines.
5.Vanishing Points Detection – using Hough Transform
18
→ Textbook method using Cross Product:
Step 1) Calculate Vanishing Point Hypothesis (weight)
= Cross product of any two line vectors=
 Near-Collinear segments downweighted
Step 2) Populate Hough space(accumulator) with weights
and find peaks for Vanishing point votes from the lines.
Step 3) Calculate Least Squares Estimate for all Vanishing
points with respect to lines that voted for it.
5.Vanishing Points Detection – using Hough Transform
19
where = Green Triangle area
Rule: The lower the sum of all areas subtended to segment
endpoints, the more appropriate the vanishing point.
6.Applications
20
Rectangle Detection:
Step 1) First, detect all vanishing points
Step 2) Detect the Edge points/Lines that are aligned along
vanishing lines.
We then efficiently recover the inter-sections of pairs of lines
corresponding to different vanishing points. (論文[8]の方法)
6.Applications
21
Rectangle Detection:
Using only Hough Detection
is an 8 dimensional vector-
space problem (論文[8])
Major Quadrilaterals in
image can be detected
using only Vanishing Point
and Line Detection(論文[8]).
References
[1] Polar Hough:
https://www.wikiwand.com/en/Hough_transform
[2] Hough Accumulator:
https://chmodux.wordpress.com/2012/04/16/target-
acquisition/
[3] Ransac:
https://www.slideshare.net/allynjoycalcaben/computer-vision-
feature-matching-with-ransac-algorithm
[4] Homographies:
https://docs.opencv.org/master/d9/dab/tutorial_homography.
html
22
References
[5] Ransac animation:
https://kapernikov.com/cable-detection-in-lidar-data/
[6] Miscellaneous:
Computer Vision: Algorithms and Applications by Richard
Szeliski
[7] Vanishing Points Examples:
http://teresabernardart.com/the-rules-of-
perspective/#:~:text=There%20are%20three%20basic%20types
,illusion%20of%20depth%20and%20space.
[8] Rectangle Detection Algorithm:
https://www.researchgate.net/publication/228697341_Perspec
tive_rectangle_detection 23

More Related Content

What's hot

Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domainAshish Kumar
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and SegmentationA B Shinde
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingAmna
 
Image segmentation
Image segmentationImage segmentation
Image segmentationkhyati gupta
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGmuthu181188
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentationramya marichamy
 
5 spatial filtering p1
5 spatial filtering p15 spatial filtering p1
5 spatial filtering p1Gichelle Amon
 
1.arithmetic & logical operations
1.arithmetic & logical operations1.arithmetic & logical operations
1.arithmetic & logical operationsmukesh bhardwaj
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filteringGautam Saxena
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processingVARUN KUMAR
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Kalyan Acharjya
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationMostafa G. M. Mostafa
 
Chapter 2 Image Processing: Pixel Relation
Chapter 2 Image Processing: Pixel RelationChapter 2 Image Processing: Pixel Relation
Chapter 2 Image Processing: Pixel RelationVarun Ojha
 

What's hot (20)

EDGE DETECTION
EDGE DETECTIONEDGE DETECTION
EDGE DETECTION
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image Processing
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Canny Edge Detection
Canny Edge DetectionCanny Edge Detection
Canny Edge Detection
 
Edge detection
Edge detectionEdge detection
Edge detection
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Image Stitching for Panorama View
Image Stitching for Panorama ViewImage Stitching for Panorama View
Image Stitching for Panorama View
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
5 spatial filtering p1
5 spatial filtering p15 spatial filtering p1
5 spatial filtering p1
 
1.arithmetic & logical operations
1.arithmetic & logical operations1.arithmetic & logical operations
1.arithmetic & logical operations
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Chapter 2 Image Processing: Pixel Relation
Chapter 2 Image Processing: Pixel RelationChapter 2 Image Processing: Pixel Relation
Chapter 2 Image Processing: Pixel Relation
 
Background subtraction
Background subtractionBackground subtraction
Background subtraction
 

Similar to Line Detection in Computer Vision

Line Detection in Computer Vision - Recent Developments and Applications
Line Detection in Computer Vision - Recent Developments and ApplicationsLine Detection in Computer Vision - Recent Developments and Applications
Line Detection in Computer Vision - Recent Developments and ApplicationsParth Nandedkar
 
Computer Vision - RANSAC
Computer Vision - RANSACComputer Vision - RANSAC
Computer Vision - RANSACWael Badawy
 
Practical Digital Image Processing 3
 Practical Digital Image Processing 3 Practical Digital Image Processing 3
Practical Digital Image Processing 3Aly Abdelkareem
 
Lane detection by use of canny edge
Lane detection by use of canny edgeLane detection by use of canny edge
Lane detection by use of canny edgebanz23
 
Internet hyperbolic mapping paper by Krioukov
Internet hyperbolic mapping paper by KrioukovInternet hyperbolic mapping paper by Krioukov
Internet hyperbolic mapping paper by KrioukovMeenakshi Tripathi
 
Machine learning for high-speed corner detection
Machine learning for high-speed corner detectionMachine learning for high-speed corner detection
Machine learning for high-speed corner detectionbutest
 
CS401_M2_L6_Solid Area Scan Conversion.pptx
CS401_M2_L6_Solid Area Scan Conversion.pptxCS401_M2_L6_Solid Area Scan Conversion.pptx
CS401_M2_L6_Solid Area Scan Conversion.pptxlara333479
 
A Method to Determine End-Points ofStraight Lines Detected Using the Hough Tr...
A Method to Determine End-Points ofStraight Lines Detected Using the Hough Tr...A Method to Determine End-Points ofStraight Lines Detected Using the Hough Tr...
A Method to Determine End-Points ofStraight Lines Detected Using the Hough Tr...IJERA Editor
 
Path Finding Solutions For Grid Based Graph
Path Finding Solutions For Grid Based GraphPath Finding Solutions For Grid Based Graph
Path Finding Solutions For Grid Based Graphacijjournal
 
06 image features
06 image features06 image features
06 image featuresankit_ppt
 
Robot Motion Planning Introduction to Mobile Robotics.pdf
Robot Motion Planning Introduction to Mobile Robotics.pdfRobot Motion Planning Introduction to Mobile Robotics.pdf
Robot Motion Planning Introduction to Mobile Robotics.pdfVien43
 
Modèle de coordination du groupe de robots mobiles
Modèle de coordination du groupe de robots mobilesModèle de coordination du groupe de robots mobiles
Modèle de coordination du groupe de robots mobilesAkrem Hadji
 
Computer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC AlgorithmComputer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC Algorithmallyn joy calcaben
 
Slide share version historical background of diffractometer
Slide share version historical background of diffractometerSlide share version historical background of diffractometer
Slide share version historical background of diffractometerUniversity of Karachi
 

Similar to Line Detection in Computer Vision (20)

Line Detection in Computer Vision - Recent Developments and Applications
Line Detection in Computer Vision - Recent Developments and ApplicationsLine Detection in Computer Vision - Recent Developments and Applications
Line Detection in Computer Vision - Recent Developments and Applications
 
Computer Vision - RANSAC
Computer Vision - RANSACComputer Vision - RANSAC
Computer Vision - RANSAC
 
Practical Digital Image Processing 3
 Practical Digital Image Processing 3 Practical Digital Image Processing 3
Practical Digital Image Processing 3
 
Lane detection by use of canny edge
Lane detection by use of canny edgeLane detection by use of canny edge
Lane detection by use of canny edge
 
color doppler
color dopplercolor doppler
color doppler
 
Ray Tracing
Ray TracingRay Tracing
Ray Tracing
 
Internet hyperbolic mapping paper by Krioukov
Internet hyperbolic mapping paper by KrioukovInternet hyperbolic mapping paper by Krioukov
Internet hyperbolic mapping paper by Krioukov
 
Rapidly-Exploring Random Tree
Rapidly-Exploring Random TreeRapidly-Exploring Random Tree
Rapidly-Exploring Random Tree
 
1516 contouring
1516 contouring1516 contouring
1516 contouring
 
Machine learning for high-speed corner detection
Machine learning for high-speed corner detectionMachine learning for high-speed corner detection
Machine learning for high-speed corner detection
 
CS401_M2_L6_Solid Area Scan Conversion.pptx
CS401_M2_L6_Solid Area Scan Conversion.pptxCS401_M2_L6_Solid Area Scan Conversion.pptx
CS401_M2_L6_Solid Area Scan Conversion.pptx
 
A Method to Determine End-Points ofStraight Lines Detected Using the Hough Tr...
A Method to Determine End-Points ofStraight Lines Detected Using the Hough Tr...A Method to Determine End-Points ofStraight Lines Detected Using the Hough Tr...
A Method to Determine End-Points ofStraight Lines Detected Using the Hough Tr...
 
Path Finding Solutions For Grid Based Graph
Path Finding Solutions For Grid Based GraphPath Finding Solutions For Grid Based Graph
Path Finding Solutions For Grid Based Graph
 
cv1.ppt
cv1.pptcv1.ppt
cv1.ppt
 
06 image features
06 image features06 image features
06 image features
 
lec09_ransac.pptx
lec09_ransac.pptxlec09_ransac.pptx
lec09_ransac.pptx
 
Robot Motion Planning Introduction to Mobile Robotics.pdf
Robot Motion Planning Introduction to Mobile Robotics.pdfRobot Motion Planning Introduction to Mobile Robotics.pdf
Robot Motion Planning Introduction to Mobile Robotics.pdf
 
Modèle de coordination du groupe de robots mobiles
Modèle de coordination du groupe de robots mobilesModèle de coordination du groupe de robots mobiles
Modèle de coordination du groupe de robots mobiles
 
Computer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC AlgorithmComputer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC Algorithm
 
Slide share version historical background of diffractometer
Slide share version historical background of diffractometerSlide share version historical background of diffractometer
Slide share version historical background of diffractometer
 

More from Parth Nandedkar

Large scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithmLarge scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithmParth Nandedkar
 
Large scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithmLarge scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithmParth Nandedkar
 
Discount tracker - Fujitsu Hackathon
Discount tracker - Fujitsu HackathonDiscount tracker - Fujitsu Hackathon
Discount tracker - Fujitsu HackathonParth Nandedkar
 
Motion and Position Map in Cell Tracking for Bioimaging
Motion and Position Map in Cell Tracking for BioimagingMotion and Position Map in Cell Tracking for Bioimaging
Motion and Position Map in Cell Tracking for BioimagingParth Nandedkar
 
Speech at english_seminar
Speech at english_seminarSpeech at english_seminar
Speech at english_seminarParth Nandedkar
 
Permutations and Combinations IIT JEE+Olympiad Lecture 1
Permutations and Combinations IIT JEE+Olympiad Lecture 1 Permutations and Combinations IIT JEE+Olympiad Lecture 1
Permutations and Combinations IIT JEE+Olympiad Lecture 1 Parth Nandedkar
 
Permutations and Combinations IIT JEE+Olympiad Lecture 4
Permutations and Combinations IIT JEE+Olympiad Lecture 4Permutations and Combinations IIT JEE+Olympiad Lecture 4
Permutations and Combinations IIT JEE+Olympiad Lecture 4Parth Nandedkar
 
Permutations and Combinations IIT JEE+Olympiad Lecture 3
Permutations and Combinations IIT JEE+Olympiad Lecture 3 Permutations and Combinations IIT JEE+Olympiad Lecture 3
Permutations and Combinations IIT JEE+Olympiad Lecture 3 Parth Nandedkar
 
LSTM and GRU RNNs in Sentiment Analysis (Japanese)
LSTM and GRU RNNs in Sentiment Analysis (Japanese)LSTM and GRU RNNs in Sentiment Analysis (Japanese)
LSTM and GRU RNNs in Sentiment Analysis (Japanese)Parth Nandedkar
 
Deep Learning Demonstration using Tensorflow (7th lecture)
Deep Learning Demonstration using Tensorflow (7th lecture)Deep Learning Demonstration using Tensorflow (7th lecture)
Deep Learning Demonstration using Tensorflow (7th lecture)Parth Nandedkar
 
Basics of Deep Learning (2nd lecture)
Basics of Deep Learning (2nd lecture)Basics of Deep Learning (2nd lecture)
Basics of Deep Learning (2nd lecture)Parth Nandedkar
 

More from Parth Nandedkar (11)

Large scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithmLarge scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithm
 
Large scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithmLarge scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithm
 
Discount tracker - Fujitsu Hackathon
Discount tracker - Fujitsu HackathonDiscount tracker - Fujitsu Hackathon
Discount tracker - Fujitsu Hackathon
 
Motion and Position Map in Cell Tracking for Bioimaging
Motion and Position Map in Cell Tracking for BioimagingMotion and Position Map in Cell Tracking for Bioimaging
Motion and Position Map in Cell Tracking for Bioimaging
 
Speech at english_seminar
Speech at english_seminarSpeech at english_seminar
Speech at english_seminar
 
Permutations and Combinations IIT JEE+Olympiad Lecture 1
Permutations and Combinations IIT JEE+Olympiad Lecture 1 Permutations and Combinations IIT JEE+Olympiad Lecture 1
Permutations and Combinations IIT JEE+Olympiad Lecture 1
 
Permutations and Combinations IIT JEE+Olympiad Lecture 4
Permutations and Combinations IIT JEE+Olympiad Lecture 4Permutations and Combinations IIT JEE+Olympiad Lecture 4
Permutations and Combinations IIT JEE+Olympiad Lecture 4
 
Permutations and Combinations IIT JEE+Olympiad Lecture 3
Permutations and Combinations IIT JEE+Olympiad Lecture 3 Permutations and Combinations IIT JEE+Olympiad Lecture 3
Permutations and Combinations IIT JEE+Olympiad Lecture 3
 
LSTM and GRU RNNs in Sentiment Analysis (Japanese)
LSTM and GRU RNNs in Sentiment Analysis (Japanese)LSTM and GRU RNNs in Sentiment Analysis (Japanese)
LSTM and GRU RNNs in Sentiment Analysis (Japanese)
 
Deep Learning Demonstration using Tensorflow (7th lecture)
Deep Learning Demonstration using Tensorflow (7th lecture)Deep Learning Demonstration using Tensorflow (7th lecture)
Deep Learning Demonstration using Tensorflow (7th lecture)
 
Basics of Deep Learning (2nd lecture)
Basics of Deep Learning (2nd lecture)Basics of Deep Learning (2nd lecture)
Basics of Deep Learning (2nd lecture)
 

Recently uploaded

9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 

Recently uploaded (20)

Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 

Line Detection in Computer Vision

  • 2. 今日の流れーTopics 1.Goal of Line Detection, difference with Edge Detection 2.Successive Approximation Method 3.Hough Transform Method 4.RANSAC(Random Sample Consensus) Method 5.Vanishing Point Detection using Hough Transform 6.Applications-Rectangle Detection 2
  • 3. 1. Goal of Line Detection In image processing, line detection is an algorithm that takes a collection of n edge points and finds all the lines on which these edge points lie. The most popular line detectors are the Hough transform and convolution-based techniques. Convolution-based Line Detection: Same process as for Edge Detection. 3
  • 4. 1. Difference with Edge Detection An edge is a transition from one phase/object/thing to another. On one side you have one color, on the other side you have another color. A line is a 1D structure. It has the same phase/object/thing on either side. On one side you have background, on the other side you have background also. →Better techniques can better differentiate between these. 4
  • 5. 2.Successive Approximation Method 5 • Transforming from a curve-contour to a simpler representation (to Piecewise-linear polyline or B-spline curve) • Algorithm: Mark the first and last point. Find the farthest inlier from this line and join First and this point. Now remove the farthest inlier to this line. • If contour is a line (with noise) we can simplify it to that line.
  • 6. 3.Hough Transform Basics 6 Consider a line-to-point transform, that transforms the data from x,y space to m,h space, where each line is transformed to a point. Problem: neither m or h are bounded, so that Line k to x axis ⇒ h not defined Line k to y axis ⇒ m → ∞
  • 7. 3.Polar Hough Transform 7 Now the problem is solved, as both variables are bounded! → Polar Hough Transform: Where f(x,y) is the image, and (r-xcosθ-ysinθ) represents any arbitrary line in polar form. → Unit Sphere & Cubemap Hough Mappings possible(pg. 253)
  • 8. 3.Polar Hough Transform – Theoretical Example 8Output in the case of perfectly continuous lines.
  • 9. 3.Hough Transform for Line Detection 9 → Goal: To identify straight lines • Process: For each pixel at (x,y) the Polar Hough transform algorithm determines if there is enough evidence of a straight line at that pixel, using votes from sample points. → Strengths: • Gives equations of lines (but not “end-points” of segments). • Works well with simple images that contain good straight lines. (Good for Robot Vision) • Deal with broken lines very well. • Reasonably efficient if there are “few” edge points.
  • 10. 3.Polar Hough Transform – Broken Line/Sampling Example 10
  • 11. 3.Polar Hough Transform – Discrete case 11 Same as before, but discrete. Number in Accumulator cell proportional to number of points on the line.
  • 12. 3.Hough Transform for Line Detection 12 → Problems: • Very slow of there are many edge points. • Hough Space is non-linear, different edge sensitivities in different directions. • Poor for short lines. → Recent Extensions of Hough Method: • Circle and Ellipse detection by Double Hough Method. • Image transform plus Hough for general 2D shape detection. • Vanishing Points Detection(section 4.3.3, part 5 of presentation)
  • 13. 4.RANSAC(Random Sample Consensus) Method – (For Feature Detection) 13 • Determines the best transformation that includes the most number of match features (inliers) from the previous step. • RANSAC loop for planar pattern detection: 1. Select four feature pairs (at random) in the two angles. 2. Compute homography H (see next slide). 3. Compute inliers where SSD(pi’, Hpi) < a certain value,ε. 4. Keep largest set of inliers. 5. Re-compute least-squares estimate on all of the inliers.
  • 14. 4.RANSAC Method – What are Homographies? 14 • Example of Homography • Projective–mapping between any two projection planes with the same center of projection called Homography
  • 15. 4.RANSAC Method – (For Line Detection) 15 → Simple example: Let us fit a line • Use biggest set of inliers • Do least-square fit => SD is low, Very likely it is a line
  • 16. 4.RANSAC Method – Video: Fitting a Line 16 → Strengths: • Robust estimation • Relatively high accuracy → Problems: • Randomness. • Number of Iterations required for p% success
  • 17. 5.Vanishing Points Detection – using Hough Transform 17 → Goal: To collect lost 3D information from perspective in a 2D image detecting Vanishing points of Parallel lines.
  • 18. 5.Vanishing Points Detection – using Hough Transform 18 → Textbook method using Cross Product: Step 1) Calculate Vanishing Point Hypothesis (weight) = Cross product of any two line vectors=  Near-Collinear segments downweighted Step 2) Populate Hough space(accumulator) with weights and find peaks for Vanishing point votes from the lines. Step 3) Calculate Least Squares Estimate for all Vanishing points with respect to lines that voted for it.
  • 19. 5.Vanishing Points Detection – using Hough Transform 19 where = Green Triangle area Rule: The lower the sum of all areas subtended to segment endpoints, the more appropriate the vanishing point.
  • 20. 6.Applications 20 Rectangle Detection: Step 1) First, detect all vanishing points Step 2) Detect the Edge points/Lines that are aligned along vanishing lines. We then efficiently recover the inter-sections of pairs of lines corresponding to different vanishing points. (論文[8]の方法)
  • 21. 6.Applications 21 Rectangle Detection: Using only Hough Detection is an 8 dimensional vector- space problem (論文[8]) Major Quadrilaterals in image can be detected using only Vanishing Point and Line Detection(論文[8]).
  • 22. References [1] Polar Hough: https://www.wikiwand.com/en/Hough_transform [2] Hough Accumulator: https://chmodux.wordpress.com/2012/04/16/target- acquisition/ [3] Ransac: https://www.slideshare.net/allynjoycalcaben/computer-vision- feature-matching-with-ransac-algorithm [4] Homographies: https://docs.opencv.org/master/d9/dab/tutorial_homography. html 22
  • 23. References [5] Ransac animation: https://kapernikov.com/cable-detection-in-lidar-data/ [6] Miscellaneous: Computer Vision: Algorithms and Applications by Richard Szeliski [7] Vanishing Points Examples: http://teresabernardart.com/the-rules-of- perspective/#:~:text=There%20are%20three%20basic%20types ,illusion%20of%20depth%20and%20space. [8] Rectangle Detection Algorithm: https://www.researchgate.net/publication/228697341_Perspec tive_rectangle_detection 23