修复人脸框toSquare函数的问题
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@yizhi/ai",
|
"name": "@yizhi/ai",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "typing/index.d.ts",
|
"types": "typing/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -49,8 +49,8 @@ export class FaceBox {
|
|||||||
|
|
||||||
return new FaceBox({
|
return new FaceBox({
|
||||||
...this.#option,
|
...this.#option,
|
||||||
x1: this.centerX - size, y1: this.centerY - size,
|
x1: cx - size, y1: cy - size,
|
||||||
x2: this.centerX + size, y2: this.centerY + size,
|
x2: cx + size, y2: cy + size,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user