mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-08-14 13:27:52 +00:00
Bug fix when no faces are detected.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user