totalMask = {
const cv = window.cv;
var totalMask = cv.Mat.zeros(src.rows, src.cols, cv.CV_8U);
const pieCentre = 0.2;
var detect = src.clone();
circle.forEach( d => {
cv.circle(detect, {x: d.x, y: d.y}, d.radius, [255, 0, 0, 255], 1, 8, 0);
cv.circle(detect, {x: d.x, y: d.y}, 1, [0, 255, 0, 255], -1, 8, 0);
cv.circle(totalMask, {x: d.x, y: d.y}, d.radius, [255, 255, 255, 255], -1, 8, 0);
cv.circle(totalMask, {x: d.x, y: d.y}, d.radius*pieCentre, [0, 0, 0, 0], -1, 8, 0);
})
cv.imshow('output', detect);
return totalMask;
}