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