mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Update js_houghcircles_HoughCirclesP.html
This commit is contained in:
parent
0b3155980a
commit
55a4a713fd
@ -47,7 +47,7 @@ let color = new cv.Scalar(255, 0, 0);
|
|||||||
cv.cvtColor(src, src, cv.COLOR_RGBA2GRAY, 0);
|
cv.cvtColor(src, src, cv.COLOR_RGBA2GRAY, 0);
|
||||||
// You can try more different parameters
|
// You can try more different parameters
|
||||||
cv.HoughCircles(src, circles, cv.HOUGH_GRADIENT,
|
cv.HoughCircles(src, circles, cv.HOUGH_GRADIENT,
|
||||||
1, 45, 75, 40, 0, 0);
|
1, 45, 175, 40, 0, 0);
|
||||||
// draw circles
|
// draw circles
|
||||||
for (let i = 0; i < circles.cols; ++i) {
|
for (let i = 0; i < circles.cols; ++i) {
|
||||||
let x = circles.data32F[i * 3];
|
let x = circles.data32F[i * 3];
|
||||||
|
Loading…
Reference in New Issue
Block a user