Circle detection in images using Python.
pip install circle_finder # doesn't work yet
or using github
git clone https://github.com/ComputerVisionLaboratory/circle_finder
cd circle_finder
pip install -e .
https://computervisionlaboratory.github.io/circle_finder/
import cv2 as cv
from circle_finder.core import EllipitcalSeparabilityFilter
img = cv.imread('/path/to/image.jpg')
esf = EllipitcalSeparabilityFilter()
circles = esf.find_circles(img, num_circles=1)
print(circles)
> >>[[50, 50]]
See more in online documentation.
For deep learning based approach
- 2021/09/10 - Addded EllipticalSeparabilityFilter
- 2021/09/20 - Added torch convolutions for faster filtering