Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Commit

Permalink
fix camera fps
Browse files Browse the repository at this point in the history
  • Loading branch information
TLMichael committed Aug 6, 2018
1 parent b1c32a4 commit 052ef2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HardhatSystem/components/CameraGroup/cpp/cvcamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ void CVCamera::update()
// precap.~BetterVideoCapture();
qDebug() << "w: " << w << " h: " << h;
size = QSize(w, h);
fps = precap.getProperty(CV_CAP_PROP_FPS) - 10;
fps = precap.getProperty(CV_CAP_PROP_FPS);
fps = fps==0 ? 30 : fps;
qDebug() << "camera fps: " << fps;
frameNow = 0;
precap.close();
Expand Down

0 comments on commit 052ef2e

Please sign in to comment.