summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_PT/camera.cpp
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2012-09-29 08:28:56 +0000
committerWim Vriend <facetracknoir@gmail.com>2012-09-29 08:28:56 +0000
commit71736d2d3bf639096c3c1b51565fd4c45239e44a (patch)
tree46f9c9089d424c9b6c2238754b1fa912626737b3 /FTNoIR_Tracker_PT/camera.cpp
parentc1c630b418256bdb385d0eaf938d4002dbd568b5 (diff)
Unversioning local .vcproj and .sln
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@183 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_PT/camera.cpp')
-rw-r--r--FTNoIR_Tracker_PT/camera.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/FTNoIR_Tracker_PT/camera.cpp b/FTNoIR_Tracker_PT/camera.cpp
index a0bae694..c1d0149c 100644
--- a/FTNoIR_Tracker_PT/camera.cpp
+++ b/FTNoIR_Tracker_PT/camera.cpp
@@ -54,7 +54,7 @@ cv::Mat Camera::get_frame(float dt)
if (!frame.empty())
{
dt_mean = dt_smoothing_const * dt_mean + (1.0 - dt_smoothing_const) * dt_valid;
- cam_info.fps = 1.0 / dt_mean;
+ cam_info.fps = 1.0 / (dt_mean + 1e-6);
dt_valid = 0;
}