|
|
@ -1220,11 +1220,11 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat)
|
|
|
|
pt.x = it->x + it->w - textSize.width;
|
|
|
|
pt.x = it->x + it->w - textSize.width;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#ifdef OUTPUT_CAMERA_DBG_INFO
|
|
|
|
char buf[128];
|
|
|
|
char buf[128];
|
|
|
|
snprintf(buf, sizeof(buf), "Draw Label: %d=%s (%f,%f)-(%f,%f) Text:(%d,%d)-(%d,%d)",
|
|
|
|
snprintf(buf, sizeof(buf), "AI: %d=%s (%f,%f)-(%f,%f) Text:(%d,%d)-(%d,%d)",
|
|
|
|
it->label, item.name.c_str(), it->x, it->y, it->w, it->h, pt.x, pt.y, textSize.width, textSize.height);
|
|
|
|
it->label, item.name.c_str(), it->x, it->y, it->w, it->h, pt.x, pt.y, textSize.width, textSize.height);
|
|
|
|
ALOGI(buf);
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, buf);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
ft2->putText(mat, item.name + std::to_string((int)(it->prob * 100.0)) + "%", pt, fontSize, textColor, thickness, cv::LINE_AA, false, true);
|
|
|
|
ft2->putText(mat, item.name + std::to_string((int)(it->prob * 100.0)) + "%", pt, fontSize, textColor, thickness, cv::LINE_AA, false, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|