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, }); } }