This commit is contained in:
WladdG 2017-01-18 03:22:18 +06:00 committed by Abdelrahman Mahmoud
parent 623603e8ec
commit ec8dbadf33

View file

@ -196,7 +196,7 @@ public:
{
if (faces.empty())
{
fStream << timeStamp << "nan,nan,no,unknown,unknown,unknown,unknown,";
fStream << timeStamp << ",nan,nan,no,unknown,unknown,unknown,unknown,";
for (std::string angle : headAngles) fStream << "nan,";
for (std::string emotion : emotions) fStream << "nan,";
for (std::string expression : expressions) fStream << "nan,";
@ -334,6 +334,7 @@ public:
cv::putText(img, fps_str, cv::Point(img.cols - 110, img.rows - left_margin), font, font_size, clr);
cv::imshow("analyze video", img);
std::lock_guard<std::mutex> lg(mMutex);
cv::waitKey(30);
}