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 {