"scripts/git@developer.sourcefind.cn:Wenxuan/LightX2V.git" did not exist on "1202fcd05272f2960b32ce84038b24a508b6cbff"
Commit 91af5763 authored by WenmuZhou's avatar WenmuZhou
Browse files

rename const var

parent 152eface
...@@ -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 =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment