使用分离方式,修改视频流返回方式
This commit is contained in:
parent
940a92dea5
commit
5150e1134e
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue