All Projects → adl1995 → generalised-hough-transform

adl1995 / generalised-hough-transform

Licence: other
Applies Generalised Hough Transform to object detection in images.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to generalised-hough-transform

Self-Driving-Car
Lane Detection for Self Driving Car
Stars: ✭ 14 (-39.13%)
Mutual labels:  hough-transform
HoughRectangle
Rectangle detection using the Hough transform
Stars: ✭ 76 (+230.43%)
Mutual labels:  hough-transform
deep-hough-transform
Jittor and Pytorch code for paper "Deep Hough Transform for Semantic Line Detection" (ECCV 2020, PAMI 2021)
Stars: ✭ 239 (+939.13%)
Mutual labels:  hough-transform
MobyCAIRO
Computer-assisted image straightening and cropping
Stars: ✭ 16 (-30.43%)
Mutual labels:  hough-transform

An implementation of Generalised Hough transform

Description

GHT was developed to detect analytically defined shapes (e.g., line, circle, ellipse etc.). In these cases, we have knowledge of the shape and aim to find out its location and orientation in the image. The Generalized Hough Transform or GHT, introduced by Dana H. Ballard in 1981, is the modification of the Hough Transform using the principle of template matching. This modification enables the Hough Transform to be used for not only the detection of an object described with an analytic function. Instead, it can also be used to detect an arbitrary object described with its model.

Motivation

Dana H. Ballard's paper on Generalizing the Hough Transform to Detect Arbitrary Shapes intrigued me as to how a simple change to the Hough Transform could allow us to detect irregular shapes.

Steps

The steps involved in applying a GHT are as follows (in order):

  • build reference table using the given reference image
  • match table with original image
  • find maximum points in the returned accumulator array

Result

accumulator result

final result

Requirements

  • Python 2.7 (or higher)
  • Libraries:
  • Matplotlib
  • Skimage
  • Numpy

How to run

Clone the respository:

git clone https://github.com/adl1995/generalised_hough_transform.git

Execute the demo script:

python generalized_hough_demo.py
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].