diff options
-rw-r--r-- | FTNoIR_Tracker_PT/camera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FTNoIR_Tracker_PT/camera.cpp b/FTNoIR_Tracker_PT/camera.cpp index 0ef617c3..d360a819 100644 --- a/FTNoIR_Tracker_PT/camera.cpp +++ b/FTNoIR_Tracker_PT/camera.cpp @@ -185,7 +185,7 @@ bool CVCamera::_get_frame(Mat* frame) * frames and then some every once in a while
* -sh
*/
- while (!cap->read(img))
+ for (int i = 0; i < 100 && !cap->read(img); i++)
;;
if (img.empty())
|