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

This commit is contained in:
lijun 2025-01-18 19:36:35 +08:00
parent 09e3dce33a
commit 940a92dea5
1 changed files with 3 additions and 0 deletions

View File

@ -189,6 +189,9 @@ func getVideoFrame(device proto.DeviceInfo) {
if device.NextStop {
break
}
if frame.Empty() {
frame = gocv.NewMat()
}
frame = gocv.NewMat()
ok := webcam.Read(&frame)
if !ok {