@ -123,7 +123,7 @@ int AI_Edge_Algin::Detect(const cv::Mat &img, DetConfig *pDetConfig, std::shared
return 7;
}
if (max_contour_index >= 0)
if (max_contour_index >= 0&& contours.size() > 0)
{
result_roi = boundingRect(contours[max_contour_index]);
@ -170,7 +170,7 @@ int ImgCheckAnalysisy::GetStatus()
std::string ImgCheckAnalysisy::GetVersion()
return std::string("BOE_1.2.7_" + std::string(__DATE__) + "_" + std::string(__TIME__));
return std::string("BOE_1.2.8_" + std::string(__DATE__) + "_" + std::string(__TIME__));
std::string ImgCheckAnalysisy::GetErrorInfo()