当前位置:网站首页>圆环工件毛刺(凸起)缺口(凹陷)检测案例
圆环工件毛刺(凸起)缺口(凹陷)检测案例
2022-07-27 09:37:00 【thequitesunshine007】
1 原图及检测要求


要检测黑色圆环上内、外圈上的凸起与凹陷。
2. 算法思路
二固定阈值二值化并取反-----------查找轮廓---------面积限制及圆度筛选出一大一小2个类环形轮廓(分别记为A、B)-------得到两个环形轮廓之间二值化掩码pureSrcBin-----
遍历A 、B. 求最小外接圆记为minEnclosingCircleMask---------------且按2种方式求A、B的最大内接圆(maxIncircleMask_1 /maxIncircleMask_2 详见代码)------- 最终的最大内接圆maxIncircleMask = maxIncircleMask_1 +m
边栏推荐
- July training (day 23) - dictionary tree
- It's great to write code for 32 inch curved screen display! Send another one!
- 内存墙简介
- At the end of the year, I'll teach you how to get high performance!
- 系统架构之系统参数常量表:
- 聊聊索引失效的10种场景,太坑了
- flash闪存使用和STM32CUBEMX安装教程【第三天】
- July training (day 04) - greed
- 关于getter/setter方法问题
- ArcGIS Pro publishing service
猜你喜欢

快应用JS自定义月相变化效果

如何在树莓派上安装cpolar内网穿透

ESP8266-Arduino编程实例-PWM

XML overview

Esp8266 Arduino programming example ADC

吃透Chisel语言.25.Chisel进阶之输入信号处理(一)——异步输入与去抖动

wordpress禁止指定用户名登录或注册插件【v1.0】

It's great to write code for 32 inch curved screen display! Send another one!

Community attribute of BGP
![[wechat applet] lunar calendar and Gregorian calendar are mutually converted](/img/6e/ad01756f8da54901a64c5323e4b747.png)
[wechat applet] lunar calendar and Gregorian calendar are mutually converted
随机推荐
七月集训(第14天) —— 栈
抢了个票,还以为发现了12306的系统BUG
习题 --- 快排、归并、浮点数二分
July training (day 24) - segment tree
工程材料期末考试试卷
Google Earth Engine APP——利用S2影像进行最大值影像合成分析
swagger-editor
Annotation and reflection
7/26 思维+dp+后缀数组的学习
QT | about the problem that QT creator cannot open the project and compile it
命令提示符启动不了mysql,提示发生系统错误 5。拒绝访问。解决办法
Understand chisel language. 24. Chisel sequential circuit (IV) -- detailed explanation of chisel memory
七月集训(第08天) —— 前缀和
XML概述
Towards the peak of life
Talk about 10 scenarios of index failure. It's too stupid
内存墙简介
Lua function nested call
工程测量模拟A卷
Read the paper learning to measure changes: full revolutionary Siamese metric networks for scene change detect