|
|
@ -1191,7 +1191,7 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#ifdef OUTPUT_CAMERA_DBG_INFO
|
|
|
|
|
|
|
|
|
|
|
|
cv::Scalar scalarRed(0, 0, 255); // red
|
|
|
|
cv::Scalar scalarRed(0, 0, 255); // red
|
|
|
|
|
|
|
|
|
|
|
@ -1216,7 +1216,7 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat)
|
|
|
|
textSize = ft2->getTextSize(str, fs, -1, &baseline);
|
|
|
|
textSize = ft2->getTextSize(str, fs, -1, &baseline);
|
|
|
|
ft2->putText(mat, str, cv::Point(0, mat.rows - fs - 20 * ratio),
|
|
|
|
ft2->putText(mat, str, cv::Point(0, mat.rows - fs - 20 * ratio),
|
|
|
|
fs, scalarRed, -1, cv::LINE_AA, false);
|
|
|
|
fs, scalarRed, -1, cv::LINE_AA, false);
|
|
|
|
#endif
|
|
|
|
#endif // OUTPUT_CAMERA_DBG_INFO
|
|
|
|
|
|
|
|
|
|
|
|
for (vector<OSD_INFO>::const_iterator it = mOsds.cbegin(); it != mOsds.cend(); ++it)
|
|
|
|
for (vector<OSD_INFO>::const_iterator it = mOsds.cbegin(); it != mOsds.cend(); ++it)
|
|
|
|
{
|
|
|
|
{
|
|
|
|