Fix ANSOCR TensorRT Release
This commit is contained in:
@@ -304,10 +304,10 @@ int TestOCRv5mage() {
|
||||
std::cout << "Current working directory: " << currentPath << std::endl;
|
||||
std::string licenseKey = "";
|
||||
std::string modelFilePath = "C:\\Projects\\ANSVIS\\Models\\ANS_GenericOCR_v2.0.zip";
|
||||
std::string imagePath = "C:\\Programs\\ModelTraining\\JALPR\\data\\20260329_174127_834.jpg";//"E:\\Programs\\DemoAssets\\Images\\OCR\\ref3_000.bmp";
|
||||
std::string imagePath = "C:\\Programs\\ModelTraining\\JLPD\\data\\0b9b013343f0bd8c7809653dfab16eac_jpeg.rf.1438e1237023ad7a254605942193df99.jpg";//"E:\\Programs\\DemoAssets\\Images\\OCR\\ref3_000.bmp";
|
||||
|
||||
int language = 0; // CUSTOM
|
||||
int engine = 0;// GPU
|
||||
int engine = 1;// GPU
|
||||
|
||||
// For high-resolution images with PP-OCRv5 server models, use higher limitSideLen
|
||||
// (default 960 downscales large images too aggressively, missing small text)
|
||||
|
||||
Reference in New Issue
Block a user