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