From d518ec81bbdb5f9f66584609bf5ae4c18347cd59 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期一, 30 六月 2025 22:21:39 +0800
Subject: [PATCH] gx本地人脸识别匹配百度sdk
---
src/views/home/index.vue | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 1d6f471..4360935 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -1205,7 +1205,7 @@
canvas.height = video.videoHeight
// 参数:图片,裁剪开始x坐标,裁剪开始y坐标,裁剪宽度,裁剪高度,目标x坐标,目标y坐标,目标宽度,目标高度
// context.drawImage(image, 100, 100, 200, 200, 0, 0, 200, 200);
- canvas.getContext('2d')?.drawImage(video, startPoint.x-10,startPoint.y-10,width+20,height+20,0,0,width+10,height+10)
+ canvas.getContext('2d')?.drawImage(video, startPoint.x-20,startPoint.y-20,width+60,height+60,20,20,width+60,height+60)
const imgSrc = canvas?.toDataURL('image/png');
return imgSrc
--
Gitblit v1.8.0