|
|
|
@ -287,24 +287,26 @@ std::string Extract_ALL::Extract_Channel_Name(std::string strPath, int userflag)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int Extract_ALL::Read_Image_List(std::string strPath, std::string strproduct)
|
|
|
|
int Extract_ALL::Read_Image_List(std::string strPath, std::string strproduct)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string strSearchImgPath = strPath + "/*.jpg";
|
|
|
|
std::vector<std::string> imgExts = {"*.jpg", "*.png", "*.bmp", "*.tif"};
|
|
|
|
Read_Camera_Product_Image(strSearchImgPath, 0, strproduct);
|
|
|
|
for (const auto &ext : imgExts)
|
|
|
|
|
|
|
|
{
|
|
|
|
strSearchImgPath = strPath + "/*.ytimage";
|
|
|
|
std::string strSearchImgPath = strPath + "/" + ext;
|
|
|
|
Read_Camera_Product_Image(strSearchImgPath, 0, strproduct);
|
|
|
|
Read_Camera_Product_Image(strSearchImgPath, 0, strproduct);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int Extract_ALL::Read_Image_List(std::string strPath_left, std::string strPath_right, std::string strproduct)
|
|
|
|
int Extract_ALL::Read_Image_List(std::string strPath_left, std::string strPath_right, std::string strproduct)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string strSearchImgPath = strPath_left + "/*.jpg";
|
|
|
|
std::vector<std::string> imgExts = {"*.jpg", "*.png", "*.bmp", "*.tif"};
|
|
|
|
Read_Camera_Product_Image(strSearchImgPath, 0, strproduct);
|
|
|
|
for (const auto &ext : imgExts)
|
|
|
|
strSearchImgPath = strPath_right + "/*.jpg";
|
|
|
|
{
|
|
|
|
Read_Camera_Product_Image(strSearchImgPath, 0, strproduct);
|
|
|
|
std::string strSearchImgPath = strPath_left + "/" + ext;
|
|
|
|
|
|
|
|
Read_Camera_Product_Image(strSearchImgPath, 0, strproduct);
|
|
|
|
// strSearchImgPath = strPath + "/*.jpg";
|
|
|
|
strSearchImgPath = strPath_right + "/" + ext;
|
|
|
|
// Read_Camera_Product_Image(strSearchImgPath, 1);
|
|
|
|
Read_Camera_Product_Image(strSearchImgPath, 0, strproduct);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|