Skip to content

Commit

Permalink
rename const var
Browse files Browse the repository at this point in the history
  • Loading branch information
WenmuZhou committed May 11, 2021
1 parent 152efac commit 91af576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/lite/ocr_db_crnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ RunDetModel(std::shared_ptr<PaddlePredictor> predictor, cv::Mat img,
reinterpret_cast<float *>(pred));

const double threshold = double(Config["det_db_thresh"]) * 255;
const double maxvalue = 255;
const double max_value = 255;
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) {
cv::Mat dilation_map;
cv::Mat dila_ele =
Expand Down

0 comments on commit 91af576

Please sign in to comment.