|
пре 2 година | |
---|---|---|
.. | ||
CMakeLists.txt | пре 6 година | |
README.md | пре 2 година | |
brown-eyes.jpg | пре 6 година | |
hough_circles.cpp | пре 6 година | |
hough_circles.py | пре 6 година | |
hough_lines.cpp | пре 4 година | |
hough_lines.py | пре 6 година | |
lanes.jpg | пре 6 година |
This repository contains the code for Hough Transform with OpenCV (C++/Python) blog post.
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
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
Want to become an expert in AI? AI Courses by OpenCV is a great place to start.