From b48d2daffb3eb6fd9f1e8f454ddbbf61ccd4f924 Mon Sep 17 00:00:00 2001 From: yizhi <946185759@qq.com> Date: Thu, 13 Mar 2025 18:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=BA=E8=84=B8=E6=A1=86to?= =?UTF-8?q?Square=E5=87=BD=E6=95=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/deploy/facedet/common.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d493e65..f23683e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@yizhi/ai", - "version": "1.0.4", + "version": "1.0.5", "main": "dist/index.js", "types": "typing/index.d.ts", "scripts": { diff --git a/src/deploy/facedet/common.ts b/src/deploy/facedet/common.ts index a27be8e..94a1eb2 100644 --- a/src/deploy/facedet/common.ts +++ b/src/deploy/facedet/common.ts @@ -49,8 +49,8 @@ export class FaceBox { return new FaceBox({ ...this.#option, - x1: this.centerX - size, y1: this.centerY - size, - x2: this.centerX + size, y2: this.centerY + size, + x1: cx - size, y1: cy - size, + x2: cx + size, y2: cy + size, }); } }