项目作者: OlehOnyshchak

项目描述 :
A pipeline which extract edges from an image with Canny Edge Detector and then identifies lines, which forms those edges
高级语言: Jupyter Notebook
项目地址: git://github.com/OlehOnyshchak/LineDetection.git
创建时间: 2019-06-20T07:42:24Z
项目社区:https://github.com/OlehOnyshchak/LineDetection

开源协议:MIT License

下载


LineDetection

Abstract

A pipeline which extract edges from an image with Canny Edge Detector and then identifies lines, which form those edges. Here we provided our own implementation of OpenCV algorithms Canny and HoughLines, which we compared with original OpenCV realization.

How to use

Just clone/fork the repository and run the main.ipynb file. If you want to use it with your own images, update Image_path with correct image path in section “Global Parameters”. You might need to update other parameters as well.

Algorithm

Basically, we could divide the entiry process into 3 steps:

  • Data Preprocessing: convering image to a greyscale and then binarizing it,
  • Edge Detection: extracting figure’s edges with Canny Edge Detector,
  • Line Detection: discovering line, which identifies the edges, with Hough transform.

You can find a step by step description of Canny Edge Detection here, while for Hough transform you can check a great explanation here

References