Bug fix when no faces are detected.
This commit is contained in:
parent
6e15e81777
commit
068ecb07d7
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue