From b39e38fd10d866a1773d0360f43bd4c9c037c66b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Mar 2024 14:06:20 -0400 Subject: [PATCH] Fix --- commands/analyze/faces.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/analyze/faces.js b/commands/analyze/faces.js index 689daffb..94665cd4 100644 --- a/commands/analyze/faces.js +++ b/commands/analyze/faces.js @@ -35,10 +35,10 @@ module.exports = class FacesCommand extends Command { ctx.drawImage(base, 0, 0); for (const face of faces) { ctx.fillStyle = 'blue'; - ctx.fillRect(face.box.xMin, face.box.yMax, 10, face.box.height); - ctx.fillRect(face.box.xMin, face.box.xMax, face.box.width, 10); - ctx.fillRect(face.box.yMin, face.box.yMax, face.box.width, 10); - ctx.fillRect(face.box.yMin, face.box.xMax, 10, face.box.height); + ctx.fillRect(face.box.xMin, face.box.yMin, 10, face.box.height); + ctx.fillRect(face.box.xMin, face.box.yMin, face.box.width, 10); + ctx.fillRect(face.box.xMin, face.box.yMax, face.box.width, 10); + ctx.fillRect(face.box.xMax, face.box.yMin, 10, face.box.height); } return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'faces.png' }] }); }