You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to customize method drawDetections. In face-api.js find function drawDetections and add options={withScore:true} as third argument. Than inside this function change row var label = score ? "" + round(score) : undefined; to var label = options.withScore && score ? "" + round(score) : undefined;
After these changes call faceapi.draw.drawDetections with third argument {withScore: false}
Hello and thanks for the great work,
I have this in my code:
faceapi.draw.drawDetections(canvasDraw, resizedDetections);
It works but I would like to remove the score on the top of the rectangle, I cannot find where to pass the options.
May be it is something like this ?
faceapi.draw.drawDetections(canvasDraw, resizedDetections, {withScore: false});
Have a good day,
The text was updated successfully, but these errors were encountered: