更新了灯条识别方法,提升了准确率。

This commit is contained in:
xinyang
2019-06-27 13:13:25 +08:00
parent 9a1e5d8882
commit 64bd93ec56
6 changed files with 81 additions and 45 deletions

View File

@@ -71,7 +71,8 @@ void showContours(std::string windows_name, const cv::Mat &src, const std::vecto
rectangle(image2show, light_blob.rect.boundingRect(), Scalar(0,0,255), 3);
if(light_blob.BlobColor == BLOB_BLUE)
rectangle(image2show, light_blob.rect.boundingRect(), Scalar(255,0,0), 3);
else
rectangle(image2show, light_blob.rect.boundingRect(), Scalar(0,255,0), 3);
}
imshow(windows_name, image2show);
}