Skip to content

emiltan97/ellipse-detection

Repository files navigation

Ellipse Detection using RANSAC

Overview

A program that detects elliptical shape in an image. The system pipeline :

  • Downscaling an image for shorter processing time
  • Convert the input image into an edge map using Canny edge detection
  • Two pass connected components labelling to remove small blobs and noises
  • Run ellipse fitting with RANSAC on the image

Running the program

To process a single image

python detector.py --<filename> --display

To process a folder of images

python detector.py --<dirname> -- display 

Input format

  • Single JPG image.
  • A folder of JPG images.

Sample

Input : Output :

Requirement

  • Python 3.8
  • OpenCV
  • matplotlib

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages