feat: optimize circle detect

This commit is contained in:
xxss0903 2024-10-25 17:43:29 +08:00
parent e575ecdd74
commit ebfc4a6b9d

View File

@ -169,7 +169,7 @@ function detectCircles(dst) {
circles, circles,
cv.HOUGH_GRADIENT, cv.HOUGH_GRADIENT,
1, // 两个圆心之间的最小距离 1, // 两个圆心之间的最小距离
dst.rows / 8, // 检测圆心之间的最小距离 dst.rows / 6, // 检测圆心之间的最小距离
200, // 修改检测圆形的阈值为200 200, // 修改检测圆形的阈值为200
50, // 检测圆形的阈值 50, // 检测圆形的阈值
minRadius, // 检测圆形的最小半径 minRadius, // 检测圆形的最小半径