电阻颜色 [英] Resistor colors

查看:96
本文介绍了电阻颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目是关于如何在MATLAB中检测颜色的.
首先,我必须通过网络摄像头或照相机拍摄电阻器的照片.
其次,我必须检测电阻的颜色(RGB图像)并计算其值.因为电阻器中有10种颜色,所以我不知道如何检测每种颜色.
请帮我.谢谢

My project is about how to detect color in MATLAB.
First, I have to take a photo of a resistor by webcam or camera.
Second, I have to detect the color of the resistor (RGB image) and calculate the value of it. Because there are 10 colors in a resistor, I don''t know how to detect each of them.
Please help me. Thanks

推荐答案

将RGB的10种颜色转换为
. 这里有一个常见颜色列表链接 [
Convert the 10 colors in RGB.
Here there is a list of common colors link[^].
A color can then be represended in a 3D domain where the 3 axes are R-G-B.
Plot in that domain also the point relatad to the unknown pixel...then you can recognise the right color computing the distance between this point to the other given 10.


这篇关于电阻颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆