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
59ca349f
Commit
59ca349f
authored
Jul 20, 2020
by
littletomatodonkey
Browse files
fix format
parent
d9905dd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
deploy/cpp_infer/CMakeLists.txt
deploy/cpp_infer/CMakeLists.txt
+2
-1
deploy/cpp_infer/src/utility.cpp
deploy/cpp_infer/src/utility.cpp
+0
-7
No files found.
deploy/cpp_infer/CMakeLists.txt
View file @
59ca349f
project
(
ocr_system CXX C
)
project
(
ocr_system CXX C
)
option
(
WITH_MKL
"Compile demo with MKL/OpenBlas support, default use MKL."
O
FF
)
option
(
WITH_MKL
"Compile demo with MKL/OpenBlas support, default use MKL."
O
N
)
option
(
WITH_GPU
"Compile demo with GPU/CPU, default use CPU."
OFF
)
option
(
WITH_GPU
"Compile demo with GPU/CPU, default use CPU."
OFF
)
option
(
WITH_STATIC_LIB
"Compile demo with static/shared library, default use static."
ON
)
option
(
WITH_STATIC_LIB
"Compile demo with static/shared library, default use static."
ON
)
option
(
WITH_TENSORRT
"Compile demo with TensorRT."
OFF
)
SET
(
PADDLE_LIB
""
CACHE PATH
"Location of libraries"
)
SET
(
PADDLE_LIB
""
CACHE PATH
"Location of libraries"
)
SET
(
OPENCV_DIR
""
CACHE PATH
"Location of libraries"
)
SET
(
OPENCV_DIR
""
CACHE PATH
"Location of libraries"
)
...
...
deploy/cpp_infer/src/utility.cpp
View file @
59ca349f
...
@@ -39,13 +39,6 @@ std::vector<std::string> Utility::ReadDict(const std::string &path) {
...
@@ -39,13 +39,6 @@ std::vector<std::string> Utility::ReadDict(const std::string &path) {
void
Utility
::
VisualizeBboxes
(
void
Utility
::
VisualizeBboxes
(
const
cv
::
Mat
&
srcimg
,
const
cv
::
Mat
&
srcimg
,
const
std
::
vector
<
std
::
vector
<
std
::
vector
<
int
>>>
&
boxes
)
{
const
std
::
vector
<
std
::
vector
<
std
::
vector
<
int
>>>
&
boxes
)
{
// cv::Point rook_points[boxes.size()][4];
// for (int n = 0; n < boxes.size(); n++) {
// for (int m = 0; m < boxes[0].size(); m++) {
// rook_points[n][m] = cv::Point(int(boxes[n][m][0]),
// int(boxes[n][m][1]));
// }
// }
cv
::
Mat
img_vis
;
cv
::
Mat
img_vis
;
srcimg
.
copyTo
(
img_vis
);
srcimg
.
copyTo
(
img_vis
);
for
(
int
n
=
0
;
n
<
boxes
.
size
();
n
++
)
{
for
(
int
n
=
0
;
n
<
boxes
.
size
();
n
++
)
{
...
...
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