使用分离方式,修改视频流返回方式
This commit is contained in:
parent
09e3dce33a
commit
940a92dea5
|
|
@ -189,6 +189,9 @@ func getVideoFrame(device proto.DeviceInfo) {
|
||||||
if device.NextStop {
|
if device.NextStop {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
if frame.Empty() {
|
||||||
|
frame = gocv.NewMat()
|
||||||
|
}
|
||||||
frame = gocv.NewMat()
|
frame = gocv.NewMat()
|
||||||
ok := webcam.Read(&frame)
|
ok := webcam.Read(&frame)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue