Amazing-Python-Scripts

Форк
0

ReadMe.md

Circle detection

This python script will allow us to identify circles in an image using Hough circle transform

Setup Instructions

Install python3

sudo apt-get install python3

Install pip (package installer for python)

sudo apt-get install python3-pip

Install Numpy library with pip

pip3 install numpy

Install OpenCV library with pip

pip3 install opencv-python

Install tkinter library

sudo apt-get install python3-tk

Details/Output

User is prompted to select an image and this script detects circles in it using the hough circle transform.

Note Each image needs its own set of parameters in cv2.HoughCircles() function. What worked for one might not work for another image.
minDist(minimum distance between two centers), param1(parameter 1), param2(parameter 2) are to be adjusted until we get desired output.

The output image is written/stored in the current folder.

Author

Github: invigorzz313

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.