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

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

@@ -52,7 +52,7 @@ public:
double length;
uint8_t BlobColor;
explicit LightBlob(cv::RotatedRect &r) : rect(r) {
LightBlob(cv::RotatedRect &r) : rect(r) {
length = max(rect.size.height, rect.size.width);
};
bool operator<(LightBlob &l2) { return this->rect.center.x < l2.rect.center.x; }