From 2dfbc84f4f9c4b0602076d80acedf36259485942 Mon Sep 17 00:00:00 2001 From: Radionic Date: Tue, 21 Nov 2023 16:33:48 +0800 Subject: [PATCH] tweak --- js/LayerEditor.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/LayerEditor.js b/js/LayerEditor.js index b8c59cd..2e638a8 100644 --- a/js/LayerEditor.js +++ b/js/LayerEditor.js @@ -71,7 +71,7 @@ const layerMapping = { negativeOffsetX: 0, negativeOffsetY: 0, positiveScale: -0.2, - negativeScale: 1.0, + negativeScale: 0.5, indices: FaceLandmarker.FACE_LANDMARKS_LEFT_IRIS, }, R_iris: { @@ -81,7 +81,7 @@ const layerMapping = { negativeOffsetX: 0, negativeOffsetY: 0, positiveScale: -0.2, - negativeScale: 1.0, + negativeScale: 0.5, indices: FaceLandmarker.FACE_LANDMARKS_RIGHT_IRIS, }, face: { @@ -230,10 +230,10 @@ export async function autoSegment() { ]; // Find bounding box of positive points const box = { - x1: Math.min(...negativePoints.map((x) => x.x)) - 10, - y1: Math.min(...negativePoints.map((x) => x.y)) - 10, - x2: Math.max(...negativePoints.map((x) => x.x)) + 10, - y2: Math.max(...negativePoints.map((x) => x.y)) + 10, + x1: Math.min(...negativePoints.map((x) => x.x)), + y1: Math.min(...negativePoints.map((x) => x.y)), + x2: Math.max(...negativePoints.map((x) => x.x)), + y2: Math.max(...negativePoints.map((x) => x.y)), }; boxesMulti.val[key] = box; }