调整背景宽度

master
Matthew 11 months ago
parent 94387ff96e
commit 6f45c4e8be

@ -1567,7 +1567,7 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat)
textSize = ft2->getTextSize(str, fs, -1, &baseline);
cv::Point lt(0, mat.rows - fs - 20 * ratio);
cv::Point lt2(0, lt.y - 2 * ratio);
cv::Point rb(0 + textSize.width, lt2.y + textSize.height + 8 * ratio);
cv::Point rb(0 + textSize.width + 2, lt2.y + textSize.height + 8 * ratio);
if (rb.x > (int)width - 1)
{

Loading…
Cancel
Save