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
ec377325
Commit
ec377325
authored
Dec 18, 2020
by
LDOUBLEV
Browse files
fix db process
parent
a6fd8f80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
deploy/cpp_infer/src/preprocess_op.cpp
deploy/cpp_infer/src/preprocess_op.cpp
+2
-2
No files found.
deploy/cpp_infer/src/preprocess_op.cpp
View file @
ec377325
...
@@ -81,14 +81,14 @@ void ResizeImgType0::Run(const cv::Mat &img, cv::Mat &resize_img,
...
@@ -81,14 +81,14 @@ void ResizeImgType0::Run(const cv::Mat &img, cv::Mat &resize_img,
else
if
(
resize_h
/
32
<
1
+
1e-5
)
else
if
(
resize_h
/
32
<
1
+
1e-5
)
resize_h
=
32
;
resize_h
=
32
;
else
else
resize_h
=
(
resize_h
/
32
-
1
)
*
32
;
resize_h
=
(
resize_h
/
32
)
*
32
;
if
(
resize_w
%
32
==
0
)
if
(
resize_w
%
32
==
0
)
resize_w
=
resize_w
;
resize_w
=
resize_w
;
else
if
(
resize_w
/
32
<
1
+
1e-5
)
else
if
(
resize_w
/
32
<
1
+
1e-5
)
resize_w
=
32
;
resize_w
=
32
;
else
else
resize_w
=
(
resize_w
/
32
-
1
)
*
32
;
resize_w
=
(
resize_w
/
32
)
*
32
;
cv
::
resize
(
img
,
resize_img
,
cv
::
Size
(
resize_w
,
resize_h
));
cv
::
resize
(
img
,
resize_img
,
cv
::
Size
(
resize_w
,
resize_h
));
...
...
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