【文件属性】:
文件名称:mineral_identification
文件大小:4.73MB
文件格式:ZIP
更新时间:2021-04-18 21:04:35
C++
利用opencv识别矿石
图片预处理
粗识别
利用HSV提取
寻找轮廓
选出面积最大的轮廓作为目标
进一步识别
将粗识别结果截取出来
一些图像处理
寻找轮廓
筛选轮廓
排除非*轮廓
排除含有子轮廓的轮廓(排除R logo)
排除长宽比悬殊的轮廓
利用多边形拟合轮廓
若有6个角点(是“L”轮廓)
计算轮廓面积,并将轮廓加入select2
若有4个角点(是“口”轮廓)
将轮廓加入select2
判断面类型
若select2中有两个目标(抓取矿石情形,只能看到两个锚点,另外两个被遮挡),且两个目标面积相近(抓取矿石情形中左右两个锚点对称):返回中心点
若select2中有四个目标(所有锚点都被识别到):返回中心点
否则返回无效值
【文件预览】:
mineral_identification-main
----getbestRGBHSVval()
--------getbestRGBHSVval.vcxproj.user(165B)
--------getbestRGBHSVval.vcxproj.filters(945B)
--------x64()
--------main.cpp(2KB)
--------getbestRGBHSVval.vcxproj(7KB)
----mineral_identification.sln(3KB)
----img()
--------流程图.drawio.png(2KB)
----.vs()
--------mineral_identification()
----x64()
--------Debug()
----README.md(963B)
----get_best_cannyThresh()
--------x64()
--------main.cpp(1KB)
--------get_best_cannyThresh.vcxproj(7KB)
--------get_best_cannyThresh.vcxproj.user(165B)
--------get_best_cannyThresh.vcxproj.filters(945B)
----mineral_identification()
--------try_all_imgs.cpp(627B)
--------mineral_identification.vcxproj(8KB)
--------x64()
--------main.cpp(1KB)
--------mineral_identification.vcxproj.user(165B)
--------mineral_identification.cpp(5KB)
--------mineral_identification.h(356B)
--------mineral_identification.vcxproj.filters(1KB)