diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 4d0dfcd3..b6e21b00 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1220,11 +1220,11 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat) pt.x = it->x + it->w - textSize.width; } -#ifdef _DEBUG +#ifdef OUTPUT_CAMERA_DBG_INFO 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); - ALOGI(buf); + XYLOG(XYLOG_SEVERITY_DEBUG, buf); #endif ft2->putText(mat, item.name + std::to_string((int)(it->prob * 100.0)) + "%", pt, fontSize, textColor, thickness, cv::LINE_AA, false, true); }