From 77e34e6e2b30e88b5e2fb2c891114f2ef0b40567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=9D=D0=B0=D0=B4=D0=B5?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Thu, 18 Dec 2025 10:19:47 +0300 Subject: [PATCH] feat(avatar): center and enlarge face in overlay guide MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improved human silhouette overlay to better center the face and make it larger for optimal FaceID recognition. Changes: Face positioning: - Moved face center from cy=120 to cy=150 (centered vertically) - Face now occupies middle of frame instead of upper third - Eyes align with horizontal center line at y=150 - Better balance between head and body in frame Face size increase: - Increased head ellipse from rx=75,ry=95 to rx=90,ry=115 - ~20% larger face area for better recognition - More prominent facial features in final crop - Improved face-to-frame ratio (70-80% coverage) Body proportions updated: - Neck: y=250 to y=285 (moved down) - Shoulders: y=230 to y=285 (centered below face) - Torso extends to bottom of frame - More natural body proportions Guide lines adjusted: - Eye-level line: y=120 → y=150 (center of frame) - Shoulder line: y=230 → y=285 (below center) - Vertical center line unchanged (x=150) UI text updates: - Instructions emphasize face centering - 'Расположите глаза на центральной линии' - 'Голова занимает верхнюю половину фото' - Changed bottom label from 'Пояс' to 'Низ кадра' Benefits: ✓ Face more prominent in photo (better for FaceID) ✓ Centered composition (professional appearance) ✓ Balanced head-to-body ratio ✓ Easier for users to align correctly ✓ Improved recognition accuracy --- .../js/components/avatarCropperHandler.js | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/backend/static/js/components/avatarCropperHandler.js b/backend/static/js/components/avatarCropperHandler.js index 41bce431..92546c63 100644 --- a/backend/static/js/components/avatarCropperHandler.js +++ b/backend/static/js/components/avatarCropperHandler.js @@ -50,13 +50,13 @@ const DEFAULT_CONFIG = {
Требования для системы распознавания лиц:
`, @@ -117,37 +117,37 @@ export class AvatarCropper {