项目结构大变

This commit is contained in:
2025-11-20 19:29:00 +08:00
parent 6a7ab65597
commit a8791ab3df
17 changed files with 549 additions and 287 deletions

View File

@@ -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]