使用分离方式,修改视频流返回方式

This commit is contained in:
lijun 2025-01-18 19:39:40 +08:00
parent 940a92dea5
commit 5150e1134e
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ func getVideoFrame(device proto.DeviceInfo) {
break break
} }
currentTime := time.Now().Format("2006-01-02 15:04:05") 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) err3 := SetDeviceCurrentFrame(&frame, device.ID)
if err3 != nil { if err3 != nil {