Bug fix when no faces are detected.

This commit is contained in:
Tadas Baltrusaitis 2018-03-30 10:21:22 +01:00
parent 6e15e81777
commit 068ecb07d7
1 changed files with 2 additions and 2 deletions

View File

@ -421,11 +421,11 @@ void Visualizer::SetFps(double fps)
char Visualizer::ShowObservation()
{
if (vis_align)
if (vis_align && !aligned_face_image.empty())
{
cv::imshow("sim_warp", aligned_face_image);
}
if (vis_hog)
if (vis_hog && !hog_image.empty())
{
cv::imshow("hog", hog_image);
}