更新了灯条识别方法,提升了准确率。
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user