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
wangsen
paddle_dbnet
Commits
8d47ab6e
Commit
8d47ab6e
authored
Nov 03, 2021
by
MissPenguin
Browse files
add batch infer for cpp rec
parent
86e49817
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
3 deletions
+0
-3
deploy/cpp_infer/include/ocr_rec.h
deploy/cpp_infer/include/ocr_rec.h
+0
-1
deploy/cpp_infer/include/utility.h
deploy/cpp_infer/include/utility.h
+0
-1
deploy/cpp_infer/src/utility.cpp
deploy/cpp_infer/src/utility.cpp
+0
-1
No files found.
deploy/cpp_infer/include/ocr_rec.h
View file @
8d47ab6e
...
...
@@ -66,7 +66,6 @@ public:
// Load Paddle inference model
void
LoadModel
(
const
std
::
string
&
model_dir
);
// void Run(cv::Mat &img, std::vector<double> *times);
void
Run
(
std
::
vector
<
cv
::
Mat
>
img_list
,
std
::
vector
<
double
>
*
times
);
private:
...
...
deploy/cpp_infer/include/utility.h
View file @
8d47ab6e
...
...
@@ -51,7 +51,6 @@ public:
static
cv
::
Mat
GetRotateCropImage
(
const
cv
::
Mat
&
srcimage
,
std
::
vector
<
std
::
vector
<
int
>>
box
);
// 实现argsort功能
static
std
::
vector
<
int
>
argsort
(
const
std
::
vector
<
float
>&
array
);
};
...
...
deploy/cpp_infer/src/utility.cpp
View file @
8d47ab6e
...
...
@@ -147,7 +147,6 @@ cv::Mat Utility::GetRotateCropImage(const cv::Mat &srcimage,
}
}
// 实现argsort功能
std
::
vector
<
int
>
Utility
::
argsort
(
const
std
::
vector
<
float
>&
array
)
{
const
int
array_len
(
array
.
size
());
...
...
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