From 5bd2707ffdb068199fd1fdfff784faae56df291c Mon Sep 17 00:00:00 2001 From: lijun Date: Sat, 18 Jan 2025 15:57:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AD=98=E6=B3=84=E6=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98,=E6=B7=B1=E6=8B=B7=E8=B4=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/tool.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/service/tool.go b/service/tool.go index acbb863..287d7e8 100644 --- a/service/tool.go +++ b/service/tool.go @@ -70,10 +70,11 @@ func SetDeviceCurrentFrameV2(frame *gocv.Mat, device_id int) error { //if err != nil { // log.Printf("设备:%d, 错误: 无法关闭帧\n", device_id) //} - err := deepcopier.Copy(*frame).To(&Device1CurrentFrame) - if err != nil { - log.Printf("设备:%d, 错误: 无法设置帧,err: %s \n", device_id, err.Error()) - } + Device1CurrentFrame = *frame + //err := deepcopier.Copy(*frame).To(&Device1CurrentFrame) + //if err != nil { + // log.Printf("设备:%d, 错误: 无法设置帧,err: %s \n", device_id, err.Error()) + //} //查看帧状态 log.Printf("frame:%v,Device1CurrentFrame:%v \n", (*frame).Empty(), Device1CurrentFrame.Empty()) //Device1CurrentFrame = *frame