Commit 6b68bb05 authored by benjaminwan's avatar benjaminwan
Browse files

windows benchmark 命令行编码改为utf8

parent aaec69a4
......@@ -3,6 +3,9 @@
#include "version.h"
#include "OcrLite.h"
#include "OcrUtils.h"
#ifdef _WIN32
#include <windows.h>
#endif
void printHelp(FILE *out, char *argv0) {
fprintf(out, " ------- Usage -------\n");
......@@ -23,15 +26,18 @@ int main(int argc, char **argv) {
printHelp(stderr, argv[0]);
return -1;
}
#ifdef _WIN32
SetConsoleOutputCP(CP_UTF8);
#endif
std::string modelsDir, modelDetPath, modelClsPath, modelRecPath, keysPath;
std::string imgPath, imgDir, imgName;
int numThread = 4;
int loopCount = 1;
int padding = 0;
int padding = 50;
int maxSideLen = 1024;
float boxScoreThresh = 0.5f;
float boxThresh = 0.3f;
float unClipRatio = 2.0f;
float unClipRatio = 1.5f;
bool doAngle = true;
int flagDoAngle = 1;
bool mostAngle = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment