【增加模型快捷加载方法】

This commit is contained in:
2025-03-07 10:19:26 +08:00
parent dc94573862
commit 8af5846490
9 changed files with 187 additions and 22 deletions

View File

@ -41,7 +41,6 @@ export class FaceBox {
const { imw, imh } = this.#option;
let size = Math.max(this.width, this.height) / 2;
const cx = this.centerX, cy = this.centerY;
console.log(this)
if (cx - size < 0) size = cx;
if (cx + size > imw) size = imw - cx;