|
|
|
|
@ -751,6 +751,11 @@ int ImgCheckAnalysisy::CalBlob_Other()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cv::Mat maskImg = pDetAIResult->AI_MaskImg;
|
|
|
|
|
if (maskImg.empty())
|
|
|
|
|
{
|
|
|
|
|
m_pdetlog->AddCheckstr(PrintLevel_2, DET_LOG_LEVEL_3, "CalBlob_Other", "AI_MaskImg is empty for qx_type=%d, skip blob %d", config_qx_type, i);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 精确计算长度
|
|
|
|
|
float re_len = Cal_QXLen(maskImg(roi), config_qx_type, fs_x, fs_y);
|
|
|
|
|
@ -1087,6 +1092,11 @@ int ImgCheckAnalysisy::CalBLobMean_GrayDis()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cv::Mat maskImg = pDetAIResult->AI_MaskImg;
|
|
|
|
|
if (maskImg.empty())
|
|
|
|
|
{
|
|
|
|
|
m_pdetlog->AddCheckstr(PrintLevel_2, DET_LOG_LEVEL_3, "CalBLobMean_GrayDis", "AI_MaskImg is empty for qx_type=%d, skip blob %d", config_qx_type, i);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CalBlobHJ(m_pImageAllResult->detImg, maskImg, det_roi, roi);
|
|
|
|
|
|
|
|
|
|
@ -2320,7 +2330,7 @@ int ImgCheckAnalysisy::AI_Detect_BQ()
|
|
|
|
|
// 调试存图:保存每个小块
|
|
|
|
|
if (m_pImageAllResult->cameraBaseResult->pBQ_Result->bsaveAll)
|
|
|
|
|
{
|
|
|
|
|
cv::imwrite(BQ_save_path +m_strCurDetCamChannel + "_BQ_crop_" + std::to_string(submitted) + ".png", task->input);
|
|
|
|
|
cv::imwrite(BQ_save_path +m_strCurDetCamChannel + "_" + std::to_string(submitted) + "_BQ_crop_in.png", task->input);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
runner->SubmitTask(task);
|
|
|
|
|
@ -2337,7 +2347,7 @@ int ImgCheckAnalysisy::AI_Detect_BQ()
|
|
|
|
|
// 调试存图:保存模型原始输出mask
|
|
|
|
|
if (m_pImageAllResult->cameraBaseResult->pBQ_Result->bsaveAll)
|
|
|
|
|
{
|
|
|
|
|
cv::imwrite(BQ_save_path + m_strCurDetCamChannel + "_BQ_outmask_" + std::to_string(result->id) + ".png", outimg);
|
|
|
|
|
cv::imwrite(BQ_save_path + m_strCurDetCamChannel+ "_" + std::to_string(result->id) + "_BQ_crop_out.png", outimg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cv::Mat AIresult;
|
|
|
|
|
|