From 5150e1134e336c6bd2b52a7a71c86b57618c1f34 Mon Sep 17 00:00:00 2001 From: lijun Date: Sat, 18 Jan 2025 19:39:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=88=86=E7=A6=BB=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E4=BF=AE=E6=94=B9=E8=A7=86=E9=A2=91=E6=B5=81?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/tool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/tool.go b/service/tool.go index c64b932..650af22 100644 --- a/service/tool.go +++ b/service/tool.go @@ -211,7 +211,7 @@ func getVideoFrame(device proto.DeviceInfo) { break } currentTime := time.Now().Format("2006-01-02 15:04:05") - gocv.PutText(&frame, currentTime, image.Point{10, 20}, font, fontScale, fontColor, lineType) + gocv.PutText(&frame, currentTime, image.Point{X: 10, Y: 20}, font, fontScale, fontColor, lineType) //需要将帧付给全局变量 err3 := SetDeviceCurrentFrame(&frame, device.ID) if err3 != nil {