An open API service indexing awesome lists of open source software.

https://github.com/adilius/hough-transform-simple

Simple implementation of Hough transform
https://github.com/adilius/hough-transform-simple

hough-transform python

Last synced: 2 months ago
JSON representation

Simple implementation of Hough transform

Awesome Lists containing this project

README

        

![Python version](https://img.shields.io/badge/python-v3.10-blue)

# Simple Hough transform
Simple implementation of [Hough transform](https://en.wikipedia.org/wiki/Hough_transform) in Python 3.10 using Numpy

## Quick start
1. Clone repository:
```bash
git clone https://github.com/Adilius/hough-transform-simple.git
```

2. Change directory to repository:
```bash
cd .\hough-transform-simple\
```

3. Install required packages:
```bash
pip3 install -r .\requirements.txt
```

4. Run script!
```bash
python .\hough_transform.py
```

## Output

With input_text.txt set to these coordinates
```
2,2
3,1.5
6,0
```
![figure_1](https://github.com/Adilius/hough-transform-simple/blob/master/figure_1.png?raw=true)

With input_text.txt set to these coordinates
```
2,2
5,3
6,0
```
![figure_2](https://github.com/Adilius/hough-transform-simple/blob/master/figure_2.png?raw=true)