|
|
|
@ -1569,7 +1569,7 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat)
|
|
|
|
|
int fs = fontSize * 2 / 3;
|
|
|
|
|
textSize = ft2->getTextSize(str, fs, -1, &baseline);
|
|
|
|
|
cv::Point lt(0, mat.rows - fs - 20 * ratio);
|
|
|
|
|
cv::Point lt2(0, lt.y - 4);
|
|
|
|
|
cv::Point lt2(0, lt.y - 2 * ratio);
|
|
|
|
|
cv::Point rb(0 + textSize.width, lt2.y + textSize.height + 8 * ratio);
|
|
|
|
|
cv::rectangle(mat, lt2, rb,cv::Scalar(255, 255, 255), -1);
|
|
|
|
|
ft2->putText(mat, str, lt, fs, scalarRed, -1, cv::LINE_AA, false);
|
|
|
|
|