|
|
|
|
@ -223,7 +223,7 @@ int ALLImgCheckAnalysisy::InitAIFactory()
|
|
|
|
|
|
|
|
|
|
GPU_Config gpu;
|
|
|
|
|
gpu.gpu_0 = true;
|
|
|
|
|
gpu.gpu_1 = true;
|
|
|
|
|
gpu.gpu_1 = false;
|
|
|
|
|
|
|
|
|
|
AI_Factory->InitALLAIModle(gpu);
|
|
|
|
|
return 0;
|
|
|
|
|
@ -466,7 +466,8 @@ int ALLImgCheckAnalysisy::InitData()
|
|
|
|
|
|
|
|
|
|
int ALLImgCheckAnalysisy::Det_Product(std::shared_ptr<Product> &product)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
string cur_time_s = CheckUtil::getCurTimeHMS();
|
|
|
|
|
printf("[%s]>>>>>>>>>>>>>>>Det_Product****************det Start************\n", cur_time_s.c_str());
|
|
|
|
|
// 处理每个相机
|
|
|
|
|
while (true)
|
|
|
|
|
{
|
|
|
|
|
@ -495,8 +496,8 @@ int ALLImgCheckAnalysisy::Det_Product(std::shared_ptr<Product> &product)
|
|
|
|
|
// AnalysiyAll(0);
|
|
|
|
|
SetProductResult(product);
|
|
|
|
|
product->SetCheckEnd();
|
|
|
|
|
string cur_time = CheckUtil::getCurTimeHMS();
|
|
|
|
|
printf("[%s]>>>>>>>>>>>>>>>Det_Product****************det End************\n", cur_time.c_str());
|
|
|
|
|
string cur_time_e = CheckUtil::getCurTimeHMS();
|
|
|
|
|
printf("[%s]>>>>>>>>>>>>>>>Det_Product****************det End************\n", cur_time_e.c_str());
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|