Tim M 57b5cefde5 Updated all `.md` files to contain newest image 2 anni fa
..
CMakeLists.txt d8d3e795e1 Remove OpenCV_DIR 6 anni fa
README.md 57b5cefde5 Updated all `.md` files to contain newest image 2 anni fa
brown-eyes.jpg 1a899e5337 Hough simplified 6 anni fa
hough_circles.cpp f3905ee9d5 Revise Hough Transform Codes 6 anni fa
hough_circles.py f3905ee9d5 Revise Hough Transform Codes 6 anni fa
hough_lines.cpp 569b296e11 Delete unnecessary line 4 anni fa
hough_lines.py f3905ee9d5 Revise Hough Transform Codes 6 anni fa
lanes.jpg 1a899e5337 Hough simplified 6 anni fa

README.md

Hough Transform with OpenCV in C++ and Python

This repository contains the code for Hough Transform with OpenCV (C++/Python) blog post.

download

Hough Line Transform

Usage

Python

  • python3 hough_lines.py lanes.jpg

C++

  • g++ hough_lines.cpp `pkg-config opencv --cflags --libs` -o hough_lines
  • ./hough_lines lanes.jpg

CMake

  • mkdir build
  • cd build
  • cmake ..
  • cmake --build . --config Release
  • cd ..
  • ./build/hough_lines lanes.jpg

Hough Circle Transform

Usage

Python

  • python3 hough_circles.py brown-eyes.jpg

C++

  • g++ hough_circles.cpp `pkg-config opencv --cflags --libs` -o hough_circles
  • ./hough_circles brown-eyes.jpg

CMake

  • mkdir build
  • cd build
  • cmake ..
  • cmake --build . --config Release
  • cd ..
  • ./build/hough_circles brown-eyes.jpg

AI Courses by OpenCV

Want to become an expert in AI? AI Courses by OpenCV is a great place to start.