当前位置:网站首页>元器件正反(极性)检测案例
元器件正反(极性)检测案例
2022-08-07 00:23:00 【thequitesunshine007】
/*
-VS2015
-OpenCV4.5.1
-Windows 10 64位
*/


1.判断准则
元器件的中间有一条近似于盘子状的分割线,如果盘子开口是倒扣向下的,则为PASS,
如果盘子开口是向上的,则为FAIL.
2.算法步骤
1)为节省运算时间,将原图的宽高均缩小一半。
2)提取器件的轮廓。采用HSV过滤(在PhotoShop上先确定好H/S/V的上下界)、形态处理、轮廓查找+尺寸筛选
3)求上述所得轮廓的最大内接圆。含圆心坐标与半径.
4) 以圆心坐标为参照点,按照先验经验扣取出ROI。
5)对ROI进行模糊滤波,与ROI原图进行作差处理。
6)对作差所得图像进行二值化。
7)对二值化图像进行霍夫直线查找或者直接找亮
边栏推荐
- Understanding of union union (continued from the previous article data type float)
- Detailed explanation of C51 basic functions, interrupt functions and library functions
- 多项式——多项式除法
- A Preliminary Study of Web Development: The Box Model of Web Page Layout
- Distillation Learning Framework Cheat Sheet (1)
- 【随机数排序】
- azkaban
- yum源修改
- Public Relations and Interpersonal Skills
- leetcode 20. 有效的括号
猜你喜欢
随机推荐
用同花顺开户安全么
Deploy an LVS-DR cluster
安静的思考
Is it reliable to buy stocks with great wisdom?is it safe?
[Redis] Redis Learning - Three Special Data Types
MySql操作之DDL
【Day_13 0509】Parameter analysis
To what extent can the domestic Api industry be introverted?
vi学习(3)【分屏命令】待完善
js中的原型与原型链
yum源修改
2022.8.4 Mock Competition
博士也会毕业吗?
TypeError: list indices must be integers or slices, not float
【7】C语言进阶--程序的编译(预处理操作)+链接
炒股用通达信交易靠谱吗?安全吗?
数据库查询
读书有利于生活
Web开发初探:网页布局盒子模型
多项式——多项式函数









