Don't show cmaera rate when the rate is 0
git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@44 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
parent
52e4d4fc57
commit
d3d90bc6a9
@ -521,8 +521,15 @@ void MainWindow::update(const cv::Mat & image)
|
||||
}
|
||||
// Refresh the label only after each 1000 ms
|
||||
if(refreshStartTime_.elapsed() > 1000)
|
||||
{
|
||||
if(Settings::getCamera_imageRate().toInt()>0)
|
||||
{
|
||||
ui_->label_timeRefreshRate->setText(QString("(%1 Hz - %2 Hz)").arg(QString::number(Settings::getCamera_imageRate().toInt())).arg(QString::number(lowestRefreshRate_)));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui_->label_timeRefreshRate->setText(QString("(%2 Hz)").arg(QString::number(lowestRefreshRate_)));
|
||||
}
|
||||
lowestRefreshRate_ = 99;
|
||||
refreshStartTime_.start();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user