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
0527b02a
Commit
0527b02a
authored
Apr 04, 2022
by
WenmuZhou
Browse files
repleace # with //
parent
eb3d3f56
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
deploy/cpp_infer/external-cmake/auto-log.cmake
deploy/cpp_infer/external-cmake/auto-log.cmake
+1
-0
deploy/cpp_infer/src/main.cpp
deploy/cpp_infer/src/main.cpp
+3
-3
No files found.
deploy/cpp_infer/external-cmake/auto-log.cmake
View file @
0527b02a
...
@@ -6,6 +6,7 @@ set(FETCHCONTENT_BASE_DIR "${CMAKE_CURRENT_BINARY_DIR}/third-party")
...
@@ -6,6 +6,7 @@ set(FETCHCONTENT_BASE_DIR "${CMAKE_CURRENT_BINARY_DIR}/third-party")
FetchContent_Declare
(
FetchContent_Declare
(
extern_Autolog
extern_Autolog
PREFIX autolog
PREFIX autolog
# If you don't have access to github, replace it with https://gitee.com/Double_V/AutoLog
GIT_REPOSITORY https://github.com/LDOUBLEV/AutoLog.git
GIT_REPOSITORY https://github.com/LDOUBLEV/AutoLog.git
GIT_TAG main
GIT_TAG main
)
)
...
...
deploy/cpp_infer/src/main.cpp
View file @
0527b02a
...
@@ -107,7 +107,7 @@ int main_det(std::vector<cv::String> cv_all_img_names) {
...
@@ -107,7 +107,7 @@ int main_det(std::vector<cv::String> cv_all_img_names) {
std
::
vector
<
double
>
det_times
;
std
::
vector
<
double
>
det_times
;
det
.
Run
(
srcimg
,
boxes
,
&
det_times
);
det
.
Run
(
srcimg
,
boxes
,
&
det_times
);
//
//
visualization
// visualization
if
(
FLAGS_visualize
)
{
if
(
FLAGS_visualize
)
{
std
::
string
file_name
=
Utility
::
basename
(
cv_all_img_names
[
i
]);
std
::
string
file_name
=
Utility
::
basename
(
cv_all_img_names
[
i
]);
Utility
::
VisualizeBboxes
(
srcimg
,
boxes
,
FLAGS_output
+
"/"
+
file_name
);
Utility
::
VisualizeBboxes
(
srcimg
,
boxes
,
FLAGS_output
+
"/"
+
file_name
);
...
@@ -223,7 +223,7 @@ int main_system(std::vector<cv::String> cv_all_img_names) {
...
@@ -223,7 +223,7 @@ int main_system(std::vector<cv::String> cv_all_img_names) {
<<
cv_all_img_names
[
i
]
<<
endl
;
<<
cv_all_img_names
[
i
]
<<
endl
;
exit
(
1
);
exit
(
1
);
}
}
#
det
//
det
std
::
vector
<
std
::
vector
<
std
::
vector
<
int
>>>
boxes
;
std
::
vector
<
std
::
vector
<
std
::
vector
<
int
>>>
boxes
;
std
::
vector
<
double
>
det_times
;
std
::
vector
<
double
>
det_times
;
std
::
vector
<
double
>
rec_times
;
std
::
vector
<
double
>
rec_times
;
...
@@ -237,7 +237,7 @@ int main_system(std::vector<cv::String> cv_all_img_names) {
...
@@ -237,7 +237,7 @@ int main_system(std::vector<cv::String> cv_all_img_names) {
time_info_det
[
1
]
+=
det_times
[
1
];
time_info_det
[
1
]
+=
det_times
[
1
];
time_info_det
[
2
]
+=
det_times
[
2
];
time_info_det
[
2
]
+=
det_times
[
2
];
#
rec
//
rec
std
::
vector
<
cv
::
Mat
>
img_list
;
std
::
vector
<
cv
::
Mat
>
img_list
;
for
(
int
j
=
0
;
j
<
boxes
.
size
();
j
++
)
{
for
(
int
j
=
0
;
j
<
boxes
.
size
();
j
++
)
{
cv
::
Mat
crop_img
;
cv
::
Mat
crop_img
;
...
...
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