More bug fixes revealed by demo scripts.

This commit is contained in:
Tadas Baltrusaitis
2017-11-22 17:53:15 +00:00
parent 41af428f5c
commit 89332ea943
8 changed files with 32 additions and 42 deletions

View File

@@ -82,7 +82,8 @@ namespace Utilities
void SetFps(double fps);
void ShowObservation();
// Return key-press that could have resulted in the open windows
char ShowObservation();
cv::Mat GetVisImage();

View File

@@ -265,7 +265,7 @@ void Visualizer::SetFps(double fps)
cv::putText(captured_image, fpsSt, cv::Point(10, 20), CV_FONT_HERSHEY_SIMPLEX, 0.5, CV_RGB(255, 0, 0), 1, CV_AA);
}
void Visualizer::ShowObservation()
char Visualizer::ShowObservation()
{
if (vis_track)
{
@@ -280,7 +280,7 @@ void Visualizer::ShowObservation()
{
cv::imshow("hog", hog_image);
}
cv::waitKey(1);
return cv::waitKey(1);
}
cv::Mat Visualizer::GetVisImage()