# 任务 2_Rune **Repository Path**: Ermaotie/task-2--rune ## Basic Information - **Project Name**: 任务 2_Rune - **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 # 任务2_神符 ## 运行方式 1. 编辑好项目目录下的`config.yaml` (已有默认值) 2. 在项目目录下,运行下列命令 ``` mkdir build && cd build cmake .. make ./task2_Rune ``` ## 提取思路 1. 图像处理 - 强化B通道,弱化其他通道 - 阈值二值化 - 形态学处理------使细小的箭头连接,形成便于提取Contours的图像 2. 提取分析Contours - 提取Contours 选用记录轮廓间逻辑关系的方式 - 判断Contour是否为击打目标 - **仅包含1个子轮廓** - 长宽比 防止图像不完整带来的误判 ## 目录结构 ``` . ├── build ├── CMakeLists.txt ├── config.yaml ├── .gitignore ├── include │   └── RuneDetector.h ├── main.cpp ├── README.md ├── RuneDetector.cpp └── 能量机关_1.avi ```