Bit smaller

This commit is contained in:
Dragon Fire
2024-03-23 21:14:35 -04:00
parent e664c7a8b5
commit 1b56cf4ff2
+2 -2
View File
@@ -43,8 +43,8 @@ module.exports = class AnimeEyesCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.drawImage(base, 0, 0);
for (const face of faces) {
const eyeWidth = face.box.width / 3;
const eyeHeight = face.box.height / 3;
const eyeWidth = face.box.width / 4;
const eyeHeight = face.box.height / 4;
const leftEyeData = face.keypoints.find(landmark => landmark.name === 'leftEye');
const rightEyeData = face.keypoints.find(landmark => landmark.name === 'rightEye');
const leftEyeX = leftEyeData.x - (eyeWidth / 2);