项目结构大变
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "ArmorDetector.h"
|
||||
#include <iostream>
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
|
||||
@@ -143,8 +144,10 @@ std::vector<LightBar> ArmorDetector::filter_valid_light_bars(const std::vector<s
|
||||
float bar_width = width > height ? height : width;
|
||||
|
||||
float main_angle = rect.angle;
|
||||
if (width <= height) {
|
||||
main_angle += 90.0;
|
||||
if (width > height) {
|
||||
// 保持原始角度不变
|
||||
} else {
|
||||
main_angle += 90;
|
||||
}
|
||||
|
||||
// Normalize angle to [-90, 90]
|
||||
|
||||
Reference in New Issue
Block a user