diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 37e31810..0510217a 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -215,7 +215,7 @@ CPhoneDevice::CPhoneDevice(JavaVM* vm, jobject service, const std::string& appPa #ifdef USING_NRSEC TurnOnCameraPower(env); - CGpioControl::setSpiPower(true); + GpioControl::setSpiPower(true); #endif } @@ -937,6 +937,7 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector< params.zoom = mPhotoInfo.zoom; params.zoomRatio = mPhotoInfo.zoomRatio; + // GpioControl::EnableGpio(CMD_SET_CAM_3V3_EN_STATE, true); bool res = false; @@ -1211,8 +1212,7 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat) it->label, item.name.c_str(), it->x, it->y, it->w, it->h, pt.x, pt.y, textSize.width, textSize.height); ALOGI(buf); #endif - - ft2->putText(mat, item.name, 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); } ++it; }