# 任务 1_Armor **Repository Path**: Ermaotie/task1_Armor ## Basic Information - **Project Name**: 任务 1_Armor - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-24 - **Last Updated**: 2021-10-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 任务一_装甲板识别 ## 运行方式 1. 编辑好项目目录下的`config.yaml` (已有默认值) 2. 在项目目录下,运行下列命令 ``` mkdir build && cd build cmake .. make ./task1_Armor ``` ## 提取思路 1. 图像预处理 - 该视频材料均为红色,故提取强化R通道 2. 提取灯条 - 长宽比 - 面积 3. 提取甲板 - 长宽比 ### 提取过程中: - 对提取灯条的`RotatedRect` 规整化,即对 - 取向范围 - 长宽对应关系 统一化标准 - 对统一标准的灯条按照x坐标排序,只对**相邻对灯条对**进行判断是否为甲板 ## 文件架构 ``` . ├── ArmorDetector.cpp ├── build ├── CMakeLists.txt ├── config.yaml ├── .gitignore ├── include │   └── ArmorDetector.h ├── main.cpp ├── README.md ├── 装甲板_1.avi └── 装甲板_2.avi ```