mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Bit smaller
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user