Removed "Cannot search, objects must be updated!" warning when no object is yet added when the camera is running
git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@276 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
parent
96462e0ec8
commit
e4ca56879c
@ -1660,8 +1660,11 @@ void MainWindow::update(const cv::Mat & image)
|
||||
}
|
||||
else
|
||||
{
|
||||
this->statusBar()->showMessage(tr("Cannot search, objects must be updated!"));
|
||||
printf("Cannot search, objects must be updated!\n");
|
||||
if(!objectsDescriptors_.empty() && keypoints.size())
|
||||
{
|
||||
this->statusBar()->showMessage(tr("Cannot search, objects must be updated!"));
|
||||
printf("Cannot search, objects must be updated!\n");
|
||||
}
|
||||
if(this->isVisible())
|
||||
{
|
||||
ui_->imageView_source->setData(keypoints, cv::Mat(), image, Settings::currentDetectorType(), Settings::currentDescriptorType());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user