This commit is contained in:
xinyang
2019-07-24 11:32:45 +08:00
parent 11f7c8b469
commit 085b3e0b3d

View File

@@ -131,7 +131,7 @@ bool ArmorFinder::findLightBlobs(const cv::Mat &src, LightBlobs &light_blobs) {
if(src_bin_light.empty()) return false;
imagePreProcess(src_bin_light); // 开闭运算
cv::threshold(color_channel, src_bin_dim, 160, 255, CV_THRESH_BINARY); // 二值化对应通道
cv::threshold(color_channel, src_bin_dim, 140, 255, CV_THRESH_BINARY); // 二值化对应通道
if(src_bin_dim.empty()) return false;
imagePreProcess(src_bin_dim); // 开闭运算