Skip to content

Commit

Permalink
Bug fix when no faces are detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadasBaltrusaitis committed Mar 30, 2018
1 parent 6e15e81 commit 068ecb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/local/Utilities/src/Visualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 068ecb0

Please sign in to comment.