当前位置:网站首页>opencv 红色区域在哪里?
opencv 红色区域在哪里?
2022-06-25 03:44:00 【程序媛珂珂】
本文介绍了如何使用 OpenCV 找到红色区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着我来一起学习吧!
如何使用 OpenCV 找到红色区域?
我正在尝试制作一个检测红色的程序.但是有时它比平时更暗,所以我不能只使用一个值.检测不同深浅红色的合适范围是多少?我目前使用的范围是 128, 0, 0 - 255, 60, 60 但有时它甚至没有检测到我放在它前面的红色物体。

解决方案
RGB 不是用于特定颜色检测的好颜色空间.HSV 将是一个不错的选择.
对于 RED,您可以选择 HSV 范围 (0,50,20) ~ (5,255,255) 和 (175,50,20)~(180,255,255) 使用以下颜色图.当然,RED range 不是那么精确,但还可以.
代码取自我的另一个答案:
相关答案:
<块引用>
- 选择使用 `cv::inRange` (OpenCV) 进行颜色检测的正确 HSV 上下边界
- 如何定义阈值以仅检测图像中的绿色对象:Opencv
- 如何在 Python-OpenCV 中使用 `cv2.inRange` 检测两种不同的颜色?
- 检测像素是否为红色
免费分享一些我整理的人工智能学习资料给大家,包括一些AI常用框架实战视频、图像识别、OpenCV、NLQ、机器学习、pytorch、计算机视觉、深度学习与神经网络等视频、课件源码、国内外知名精华资源、AI热门论文、行业报告等。
为了更好的系统学习AI,推荐大家收藏一份。
下面是部分截图,文末附免费下载方式。
一、人工智能课程及项目

二、国内外知名精华资源

三、人工智能论文合集

四、人工智能行业报告

学好人工智能,要多看书,多动手,多实践,要想提高自己的水平,一定要学会沉下心来慢慢的系统学习,最终才能有所收获。
点击下方名片,扫码免费下载文中资料。
边栏推荐
- Self cultivation and learning encouragement
- 马斯克:推特要学习微信,让10亿人「活在上面」成为超级APP
- Tencent Open Source Project "Yinglong" est devenu un projet Apache de haut niveau: l'ancien Service à long terme Wechat payment, peut maintenir un million de milliards de niveaux de traitement de flux
- Skywalking implements cross thread trace delivery
- Is it safe to open an account online? How to open an account?
- Now, the ear is going into the metauniverse
- Sleep more, you can lose weight. According to the latest research from the University of Chicago, sleeping more than 1 hour a day is equivalent to eating less than one fried chicken leg
- 威马招股书拆解:电动竞争已结束,智能排位赛刚开始
- 9 necessary soft skills for program ape career development
- 太极图形60行代码实现经典论文,0.7秒搞定泊松盘采样,比Numpy实现快100倍
猜你喜欢

Do you really need automated testing?

Xidian AI ranked higher than Qingbei in terms of AI majors, and Nantah ranked the first in China in 2022 in terms of soft science majors

2点睡10点起不算熬夜?除非你每天都能执行

Russian Airi Research Institute, etc. | SEMA: prediction of antigen B cell conformation characterization using deep transfer learning

马斯克被诉传销索赔2580亿美元,台积电公布2nm制程,中科院发现月壤中含有羟基形式的水,今日更多大新闻在此...

Musk was sued for $258billion in MLM claims. TSMC announced the 2nm process. The Chinese Academy of Sciences found that the lunar soil contained water in the form of hydroxyl. Today, more big news is

How far is the memory computing integrated chip from popularization? Listen to what practitioners say | collision school x post friction intelligence

俄罗斯AIRI研究院等 | SEMA:利用深度迁移学习进行抗原B细胞构象表征预测

A new generation of cascadable Ethernet Remote i/o data acquisition module

9 necessary soft skills for program ape career development
随机推荐
Preparedstatement principle of preventing SQL injection
Two common OEE monitoring methods for equipment utilization
中国天眼发现地外文明可疑信号,马斯克称星舰7月开始轨道试飞,网信办:APP不得强制要求用户同意处理个人信息,今日更多大新闻在此...
Tencent Open Source Project "Yinglong" est devenu un projet Apache de haut niveau: l'ancien Service à long terme Wechat payment, peut maintenir un million de milliards de niveaux de traitement de flux
太极图形60行代码实现经典论文,0.7秒搞定泊松盘采样,比Numpy实现快100倍
Svn deployment
老叶的祝福
On the self-cultivation of an excellent red team member
Wuenda, the new course of machine learning is coming again! Free auditing, Xiaobai friendly
Dr. Sun Jian was commemorated at the CVPR conference. The best student thesis was awarded to Tongji Ali. Lifeifei won the huangxutao Memorial Award
Comprehensive operation of financial risk management X of Dongcai
ASP.NET会议室预约小程序源码 预约小程序源码
论一个优秀红队人员的自我修养
BGP biplane architecture
Mstp+vrrp+ospf implements a three-tier architecture
Does it count as staying up late to sleep at 2:00 and get up at 10:00? Unless you can do it every day
Maybe it's the wrong reason
Randla net: efficient semantic segmentation of large scale point clouds
OpenSUSE environment PHP connection Oracle
The problem that only the home page can be accessed under openSUSE Apache laravel