From 91af57634c2020e96bf139b20723c20482ac0bd2 Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Tue, 11 May 2021 10:18:32 +0800 Subject: [PATCH] rename const var --- deploy/lite/ocr_db_crnn.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/lite/ocr_db_crnn.cc b/deploy/lite/ocr_db_crnn.cc index cbf4ece7f6..26891c8566 100644 --- a/deploy/lite/ocr_db_crnn.cc +++ b/deploy/lite/ocr_db_crnn.cc @@ -273,9 +273,9 @@ RunDetModel(std::shared_ptr predictor, cv::Mat img, reinterpret_cast(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 =