grab+retrieve to use cam on pi
This commit is contained in:
1 parent
f208cda1ed
commit
b9965ee956
1 file changed
+2
-1
@@ -43,7 +43,8 @@ Mat Input::readWebcam()
|
|||||||
return Mat();
|
return Mat();
|
||||||
}
|
}
|
||||||
|
|
||||||
cap.read(image);
|
cap.grab();
|
||||||
|
cap.retrieve(image);
|
||||||
|
|
||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user