@ -2195,7 +2195,7 @@ int ImgCheckAnalysisy::AI_Detect_BQ()
{
{
return 0 ;
return 0 ;
}
}
if ( ! m_p ImageAllResult- > cameraBaseResult - > pBQ_Result - > bBQ_AI_Det )
if ( ! m_p Funtion- > function . f_Det_BQ . bBQ_AI_Det )
{
{
return 0 ;
return 0 ;
}
}
@ -2293,7 +2293,7 @@ int ImgCheckAnalysisy::AI_Detect_BQ()
m_pdetlog - > AddCheckstr ( PrintLevel_2 , strBaseLog , " BQ small roi num = %d " , totalTasks ) ;
m_pdetlog - > AddCheckstr ( PrintLevel_2 , strBaseLog , " BQ small roi num = %d " , totalTasks ) ;
// 调试存图:原图 + BQ小ROI框
// 调试存图:原图 + BQ小ROI框
if ( m_p ImageAllResult- > cameraBaseResult - > pBQ_Result - > bsaveAll )
if ( m_p Funtion- > function . f_Det_BQ . bsaveAll )
{
{
cv : : Mat debugImg ;
cv : : Mat debugImg ;
if ( AI_detImage . channels ( ) = = 1 )
if ( AI_detImage . channels ( ) = = 1 )
@ -2328,7 +2328,7 @@ int ImgCheckAnalysisy::AI_Detect_BQ()
task - > engine = pAI_Model ;
task - > engine = pAI_Model ;
// 调试存图:保存每个小块
// 调试存图:保存每个小块
if ( m_p ImageAllResult- > cameraBaseResult - > pBQ_Result - > bsaveAll )
if ( m_p Funtion- > function . f_Det_BQ . bsaveAll )
{
{
cv : : imwrite ( BQ_save_path + m_strCurDetCamChannel + " _ " + std : : to_string ( submitted ) + " _BQ_crop_in.png " , task - > input ) ;
cv : : imwrite ( BQ_save_path + m_strCurDetCamChannel + " _ " + std : : to_string ( submitted ) + " _BQ_crop_in.png " , task - > input ) ;
}
}
@ -2345,7 +2345,7 @@ int ImgCheckAnalysisy::AI_Detect_BQ()
if ( ! outimg . empty ( ) )
if ( ! outimg . empty ( ) )
{
{
// 调试存图: 保存模型原始输出mask
// 调试存图: 保存模型原始输出mask
if ( m_p ImageAllResult- > cameraBaseResult - > pBQ_Result - > bsaveAll )
if ( m_p Funtion- > function . f_Det_BQ . bsaveAll )
{
{
cv : : imwrite ( BQ_save_path + m_strCurDetCamChannel + " _ " + std : : to_string ( result - > id ) + " _BQ_crop_out.png " , outimg ) ;
cv : : imwrite ( BQ_save_path + m_strCurDetCamChannel + " _ " + std : : to_string ( result - > id ) + " _BQ_crop_out.png " , outimg ) ;
}
}
@ -2364,7 +2364,7 @@ int ImgCheckAnalysisy::AI_Detect_BQ()
AIresult . copyTo ( AIresultMask ( srcsize_roi ) , AIresult ) ;
AIresult . copyTo ( AIresultMask ( srcsize_roi ) , AIresult ) ;
// 调试存图: 保存resize后的mask
// 调试存图: 保存resize后的mask
if ( m_p ImageAllResult- > cameraBaseResult - > pBQ_Result - > bsaveAll & & bResizeToSrc )
if ( m_p Funtion- > function . f_Det_BQ . bsaveAll & & bResizeToSrc )
{
{
cv : : imwrite ( BQ_save_path + m_strCurDetCamChannel + " _BQ_mask_resized_ " + std : : to_string ( result - > id ) + " .png " , AIresult ) ;
cv : : imwrite ( BQ_save_path + m_strCurDetCamChannel + " _BQ_mask_resized_ " + std : : to_string ( result - > id ) + " .png " , AIresult ) ;
}
}
@ -2389,7 +2389,7 @@ int ImgCheckAnalysisy::AI_Detect_BQ()
m_pdetlog - > AddCheckstr ( PrintLevel_1 , strBaseLog , " ============= End; AI Run Time: sum %ld pre %ld Run %ld mean One Small Img %f " , te - ts , t2 - ts , te - t2 , mean_AI ) ;
m_pdetlog - > AddCheckstr ( PrintLevel_1 , strBaseLog , " ============= End; AI Run Time: sum %ld pre %ld Run %ld mean One Small Img %f " , te - ts , t2 - ts , te - t2 , mean_AI ) ;
// 调试存图
// 调试存图
if ( m_p ImageAllResult- > cameraBaseResult - > pBQ_Result - > bsaveAll )
if ( m_p Funtion- > function . f_Det_BQ . bsaveAll )
{
{
cv : : imwrite ( BQ_save_path + m_strCurDetCamChannel + " _AI_BQ_mask.png " , pDetAIResult - > AI_MaskImg ) ;
cv : : imwrite ( BQ_save_path + m_strCurDetCamChannel + " _AI_BQ_mask.png " , pDetAIResult - > AI_MaskImg ) ;
}
}
@ -2406,7 +2406,7 @@ int ImgCheckAnalysisy::GetBlob_BQ()
{
{
return 0 ;
return 0 ;
}
}
if ( ! m_p ImageAllResult- > cameraBaseResult - > pBQ_Result - > bBQ_AI_Det )
if ( ! m_p Funtion- > function . f_Det_BQ . bBQ_AI_Det )
{
{
return 0 ;
return 0 ;
}
}