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
PaddleOCR_migraphx
Commits
92cd66fa
Commit
92cd66fa
authored
Aug 26, 2024
by
liucong
Browse files
修改代码
parent
218c2664
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
Src/PaddleOCR/OcrDB.cpp
Src/PaddleOCR/OcrDB.cpp
+1
-0
Src/PaddleOCR/VLPR.cpp
Src/PaddleOCR/VLPR.cpp
+1
-0
No files found.
Src/PaddleOCR/OcrDB.cpp
View file @
92cd66fa
...
...
@@ -195,6 +195,7 @@ ErrorCode DB::Infer(const cv::Mat& img, std::vector<cv::Mat>& imgList)
cropImg
=
Utility
::
GetRotateCropImage
(
img
,
ocrResults
[
j
].
box
);
imgList
.
push_back
(
cropImg
);
}
return
SUCCESS
;
}
void
DBPostProcessor
::
GetContourArea
(
const
std
::
vector
<
std
::
vector
<
float
>>&
box
,
...
...
Src/PaddleOCR/VLPR.cpp
View file @
92cd66fa
...
...
@@ -29,6 +29,7 @@ ErrorCode VLPR::Initialize(InitializationParameterOfDB initParamOfDB,
exit
(
-
1
);
}
LOG_INFO
(
stdout
,
"succeed to initialize svtr
\n
"
);
return
SUCCESS
;
}
ErrorCode
...
...
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