Circle detection with OpenCV

前端 未结 2 1452
庸人自扰
庸人自扰 2021-01-03 15:57

How can I improve the performance of the following circle-detection code

from matplotlib.pyplot import imshow, scatter, show
import cv2

image = cv2.imread(\         


        
2条回答
  •  感动是毒
    2021-01-03 16:13

    While it is possible to fine-tune Hough Circles for a given image, the optimal parameters from image to image may vary alot. Hence, it takes quite some effort to make the circle detection robust using Hough Circles, though its doable!

    Instead I would suggest to use more modern approaches like:

    • Arc Adjacency Matrix-Based Fast Ellipse Detection (https://ieeexplore.ieee.org/document/8972900). Code available: https://github.com/Li-Zhaoxi/AAMED
    • Circle Detection by Arc-support Line Segments ( https://ieeexplore.ieee.org/document/8296246 ). Code available: https://github.com/AlanLuSun/Circle-detection

提交回复
热议问题