Fix ALPR order issue
This commit is contained in:
@@ -417,7 +417,7 @@ int ANSLPR_OD_VideoTest() {
|
||||
std::string licenseKey = "";
|
||||
std::string modelZipFile ="C:\\ProgramData\\ANSCENTER\\ANSVIS Server\\ANSALPR\\ANS_ALPR_v1.2.zip";// "C:\\Projects\\ANSVIS\\Models\\ANS_ALPR_v1.2.zip";// "C:\\ProgramData\\ANSCENTER\\ANSVIS Server\\ANSALPR\\ServerOptimised\\ANS_ALPR_v1.1_NVIDIAGeForceRTX4070LaptopGPU.zip";
|
||||
|
||||
std::string videoFilePath = "C:\\ProgramData\\ANSCENTER\\Shared\\day.mp4";//"E:\\Programs\\DemoAssets\\Videos\\ALRP\\PMH\\Day\\day.mp4";//
|
||||
std::string videoFilePath = "E:\\Programs\\DemoAssets\\Videos\\ALRP\\PMH\\Day\\day.mp4";// "C:\\ProgramData\\ANSCENTER\\Shared\\day.mp4";//
|
||||
std::string lpnResult;
|
||||
int engineType = 1;
|
||||
double detectionThreshold = 0.5;
|
||||
@@ -701,8 +701,10 @@ int ANSLPR_OD_INDOInferences_FileTest() {
|
||||
boost::property_tree::ptree pt;
|
||||
ANSCENTER::ANSALPR* infHandle;
|
||||
std::string licenseKey = "";
|
||||
std::string modelZipFile = "E:\\Programs\\DemoAssets\\ModelsForANSVIS\\ANS_ALPR_IND_v1.1.zip";
|
||||
std::string imageFilePath = "E:\\Programs\\TrainingWorkingStation\\IndoALPR\\Indonesian License Plate Dataset\\data\\train075.jpg";//20250912_213850.717.jpg; 20250912_213850.511.jpg;//20250912_213850.411.jpg;//20250912_213850.261.jpg(65H115912:0.73) cororect (20250912_213850.071.jpg: 65H115833)
|
||||
std::string modelZipFile = "C:\\ProgramData\\ANSCENTER\\ANSVIS Server\\ANSALPR\\ServerOptimised\\ANS_ALPR_v1.4_NVIDIAGeForceRTX4070LaptopGPU.zip";//"E:\\Programs\\DemoAssets\\ModelsForANSVIS\\ANS_ALPR_IND_v1.1.zip";
|
||||
std::string imageFilePath = "E:\\Programs\\DemoAssets\\Images\\ALPRTest\\alpr_loi\\702.jpg";//"E:\\Programs\\TrainingWorkingStation\\IndoALPR\\Indonesian License Plate Dataset\\data\\train075.jpg";//20250912_213850.717.jpg; 20250912_213850.511.jpg;//20250912_213850.411.jpg;//20250912_213850.261.jpg(65H115912:0.73) cororect (20250912_213850.071.jpg: 65H115833)
|
||||
|
||||
//"E:\\Programs\\DemoAssets\\Images\\ALPRTest\\WrongOrder\\4389.jpg";///
|
||||
std::string lpnResult;
|
||||
int engineType = 1;
|
||||
double detectionThreshold = 0.3;
|
||||
@@ -5199,14 +5201,14 @@ int main()
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
SetConsoleCP(CP_UTF8);
|
||||
#endif
|
||||
// ANSLPR_OD_INDOInferences_FileTest();
|
||||
//ANSLPR_OD_INDOInferences_FileTest();
|
||||
//ANSLPR_OD_Inferences_FileTest();
|
||||
// Disabled — has a hardcoded NVIDIA RTX 4070 TensorRT-optimised zip path
|
||||
// (ServerOptimised\ANS_ALPR_v1.2_NVIDIAGeForceRTX4070LaptopGPU.zip) that
|
||||
// doesn't exist on AMD/Intel machines. Re-enable after fixing the path
|
||||
// at line 573 if you need the OD folder test.
|
||||
//ANSLPR_OD_FolderInferences_Test();
|
||||
//ANSLPR_OD_VideoTest();
|
||||
ANSLPR_OD_VideoTest();
|
||||
//ANSLPR_BigSize_VideoTest();
|
||||
//ANSLPR_CPU_VideoTest();
|
||||
//for (int i = 0; i < 100; i++) {
|
||||
@@ -5220,7 +5222,7 @@ int main()
|
||||
//ANSLPR_OD_CPU_VideoTest();
|
||||
//ALPR_OCR_Test();
|
||||
//ALPR_OCR_VideoTest();
|
||||
ALPR_OCR_FolderInferences_Test();
|
||||
//ALPR_OCR_FolderInferences_Test();
|
||||
//ALPR_Helmet_Parallel_VideoTest(); // ANSVIS sim: ALPR + Helmet on same FilePlayer
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user