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
ModelZoo
ppocrv5_migraphx
Commits
f5bb5eb5
Commit
f5bb5eb5
authored
Jul 08, 2025
by
liuhy
Browse files
1、添加注释
parent
d20ac126
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Src/ocr_engine.cpp
Src/ocr_engine.cpp
+3
-2
No files found.
Src/ocr_engine.cpp
View file @
f5bb5eb5
...
@@ -44,13 +44,14 @@ bool XsortFp32(std::vector<float> a, std::vector<float> b) {
...
@@ -44,13 +44,14 @@ bool XsortFp32(std::vector<float> a, std::vector<float> b) {
if
(
a
[
0
]
!=
b
[
0
])
if
(
a
[
0
]
!=
b
[
0
])
return
a
[
0
]
<
b
[
0
];
return
a
[
0
]
<
b
[
0
];
return
false
;
return
false
;
}
}
bool
XsortInt
(
std
::
vector
<
int
>
a
,
std
::
vector
<
int
>
b
)
{
bool
XsortInt
(
std
::
vector
<
int
>
a
,
std
::
vector
<
int
>
b
)
{
if
(
a
[
0
]
!=
b
[
0
])
if
(
a
[
0
]
!=
b
[
0
])
return
a
[
0
]
<
b
[
0
];
return
a
[
0
]
<
b
[
0
];
return
false
;
return
false
;
}
}
namespace
ppocr
{
namespace
ppocr
{
OcrDet
::
OcrDet
(
const
std
::
string
det_model_path
,
OcrDet
::
OcrDet
(
const
std
::
string
det_model_path
,
std
::
string
precision_mode
,
std
::
string
precision_mode
,
...
...
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