Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Commit

Permalink
draw date on a black background, fixes #128
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Feb 1, 2018
1 parent 5314cdf commit 75217e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/kerberos/machinery/io/IoDisk.cpp
Expand Up @@ -147,7 +147,7 @@ namespace kerberos

tstruct = *localtime(&now);
strftime(buf, sizeof(buf), timeformat, &tstruct);

cv::rectangle(image.getImage(), cv::Point(7,16), cv::Point(200,37), CV_RGB(0,0,0), CV_FILLED);
cv::putText(image.getImage(), buf, cv::Point(10,30), cv::FONT_HERSHEY_SIMPLEX, 0.5, getTimestampColor());
}
}
Expand Down
1 change: 1 addition & 0 deletions src/kerberos/machinery/io/IoVideo.cpp
Expand Up @@ -674,6 +674,7 @@ namespace kerberos
tstruct = *localtime(&now);
strftime(buf, sizeof(buf), timeformat, &tstruct);

cv::rectangle(image.getImage(), cv::Point(7,16), cv::Point(200,37), CV_RGB(0,0,0), CV_FILLED);
cv::putText(image.getImage(), buf, cv::Point(10,30), cv::FONT_HERSHEY_SIMPLEX, 0.5, getTimestampColor());
}
}
Expand Down

0 comments on commit 75217e4

Please sign in to comment.