Skip to content

Commit

Permalink
check for 'DOTjpg' and 'DOTpng'
Browse files Browse the repository at this point in the history
  • Loading branch information
voletiv committed Nov 9, 2017
1 parent 24bee91 commit d51a431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/estimate_head_pose_from_image_or_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int main(int argc, char **argv)
auto t_start = getTickCount();

// Single image file
if (fileName.find("jpg") != std::string::npos or fileName.find("png") != std::string::npos) {
if (fileName.find(".jpg") != std::string::npos or fileName.find(".png") != std::string::npos) {
cout << ".jpg or .png file" << endl;
estimate_head_pose_on_frameFileName(fileName, estimator, prev_poses, false);
}
Expand Down

0 comments on commit d51a431

Please sign in to comment.