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
91af5763
Commit
91af5763
authored
May 11, 2021
by
WenmuZhou
Browse files
rename const var
parent
152eface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
deploy/lite/ocr_db_crnn.cc
deploy/lite/ocr_db_crnn.cc
+2
-2
No files found.
deploy/lite/ocr_db_crnn.cc
View file @
91af5763
...
@@ -273,9 +273,9 @@ RunDetModel(std::shared_ptr<PaddlePredictor> predictor, cv::Mat img,
...
@@ -273,9 +273,9 @@ RunDetModel(std::shared_ptr<PaddlePredictor> predictor, cv::Mat img,
reinterpret_cast
<
float
*>
(
pred
));
reinterpret_cast
<
float
*>
(
pred
));
const
double
threshold
=
double
(
Config
[
"det_db_thresh"
])
*
255
;
const
double
threshold
=
double
(
Config
[
"det_db_thresh"
])
*
255
;
const
double
maxvalue
=
255
;
const
double
max
_
value
=
255
;
cv
::
Mat
bit_map
;
cv
::
Mat
bit_map
;
cv
::
threshold
(
cbuf_map
,
bit_map
,
threshold
,
maxvalue
,
cv
::
THRESH_BINARY
);
cv
::
threshold
(
cbuf_map
,
bit_map
,
threshold
,
max
_
value
,
cv
::
THRESH_BINARY
);
if
(
det_db_use_dilate
==
1
)
{
if
(
det_db_use_dilate
==
1
)
{
cv
::
Mat
dilation_map
;
cv
::
Mat
dilation_map
;
cv
::
Mat
dila_ele
=
cv
::
Mat
dila_ele
=
...
...
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