Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
RapidOCR
Commits
d14f23c4
"include/vscode:/vscode.git/clone" did not exist on "7c0c7ff33bdd836261b8b64f975c5dd6482977ac"
Commit
d14f23c4
authored
Oct 17, 2022
by
benjaminwan
Browse files
Windows控制台编码修改为UTF8
parent
9fd14f09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/main.cpp
src/main.cpp
+8
-2
No files found.
src/main.cpp
View file @
d14f23c4
...
@@ -5,6 +5,9 @@
...
@@ -5,6 +5,9 @@
#include "version.h"
#include "version.h"
#include "OcrLite.h"
#include "OcrLite.h"
#include "OcrUtils.h"
#include "OcrUtils.h"
#ifdef _WIN32
#include <windows.h>
#endif
void
printHelp
(
FILE
*
out
,
char
*
argv0
)
{
void
printHelp
(
FILE
*
out
,
char
*
argv0
)
{
fprintf
(
out
,
" ------- Usage -------
\n
"
);
fprintf
(
out
,
" ------- Usage -------
\n
"
);
...
@@ -25,14 +28,17 @@ int main(int argc, char **argv) {
...
@@ -25,14 +28,17 @@ int main(int argc, char **argv) {
printHelp
(
stderr
,
argv
[
0
]);
printHelp
(
stderr
,
argv
[
0
]);
return
-
1
;
return
-
1
;
}
}
#ifdef _WIN32
SetConsoleOutputCP
(
CP_UTF8
);
#endif
std
::
string
modelsDir
,
modelDetPath
,
modelClsPath
,
modelRecPath
,
keysPath
;
std
::
string
modelsDir
,
modelDetPath
,
modelClsPath
,
modelRecPath
,
keysPath
;
std
::
string
imgPath
,
imgDir
,
imgName
;
std
::
string
imgPath
,
imgDir
,
imgName
;
int
numThread
=
4
;
int
numThread
=
4
;
int
padding
=
0
;
int
padding
=
5
0
;
int
maxSideLen
=
1024
;
int
maxSideLen
=
1024
;
float
boxScoreThresh
=
0.5
f
;
float
boxScoreThresh
=
0.5
f
;
float
boxThresh
=
0.3
f
;
float
boxThresh
=
0.3
f
;
float
unClipRatio
=
2.0
f
;
float
unClipRatio
=
1.6
f
;
bool
doAngle
=
true
;
bool
doAngle
=
true
;
int
flagDoAngle
=
1
;
int
flagDoAngle
=
1
;
bool
mostAngle
=
true
;
bool
mostAngle
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment