当前位置:网站首页>Where is the red area of OpenCV?
Where is the red area of OpenCV?
2022-06-25 04:07:00 【Program type】
This article explains how to use it OpenCV Find the red area ? Treatment method , It has certain reference value for everyone to solve problems , Friends in need, let's learn with me !
How to use OpenCV Find the red area ?
I am trying to make a program to detect red . But sometimes it's darker than usual , So I can't just use one value . What is the appropriate range for detecting different shades of red ? My current scope of use is 128, 0, 0 - 255, 60, 60 But sometimes it doesn't even detect the red object I put in front of it .

Solution
RGB Not a good color space for specific color detection .HSV It will be a good choice .
about RED, You can choose HSV Range (0,50,20) ~ (5,255,255) and (175,50,20)~(180,255,255) Use the following color map . Of course ,RED range Not so precise , But it can still. .
The code takes another answer from itself :
Relevant answers :
< Block references >
- Choose to use `cv::inRange` (OpenCV) Correct color detection HSV Up and down the border
- How to define a threshold to detect only green objects in an image :Opencv
- How to be in Python-OpenCV Use in `cv2.inRange` Detect two different colors ?
- Detect whether the pixel is red
Share some of my artificial intelligence learning materials for free , Including some AI Common framework actual combat video 、 Image recognition 、OpenCV、NLQ、 machine learning 、pytorch、 Computer vision 、 Videos such as deep learning and neural network 、 Courseware source code 、 Famous essence resources at home and abroad 、AI Hot papers 、 Industry reports, etc .
For better systematic learning AI, I recommend that you collect one .
Here are some screenshots , Free download method is attached at the end of the article .
One 、 Artificial intelligence courses and projects

Two 、 Famous essence resources at home and abroad

3、 ... and 、 Collection of papers on artificial intelligence

Four 、 AI Industry Report

Learn Artificial Intelligence well , Read more , Do more , practice , If you want to improve your level , We must learn to settle down and learn slowly and systematically , Only in the end can we gain something .
Click on the business card below , Scan the code and download the information for free .
边栏推荐
- web3.eth. Getpendingtransactions() returns null?
- 1.初识半音阶口琴
- Qt编译数据库插件通用步骤说明
- 【Rust投稿】从零实现消息中间件(6)-CLIENT
- Understand (DI) dependency injection in PHP
- How to use crawlers to capture bullet screen and comment data of station B?
- 程序猿职业发展9项必备软技能
- Cesium 拖拽3D模型
- Jilin University 22 spring March "career design" assignment assessment-00072
- Configuration source code
猜你喜欢

BSC parsing input data of transaction

Hot and cold, sweet and sour, want to achieve success? Dengkang oral, the parent company of lengsuanling, intends to be listed on the main board of Shenzhen Stock Exchange

冷热酸甜、想成就成?冷酸灵母公司登康口腔欲在深交所主板上市

Time management understood after working at home | community essay solicitation

MySQL插入过程报错1062,但是我没有该字段。
![[team learning] SQL programming language notes - task04](/img/3e/c75f5b4610c6b6700567fe75cd2339.png)
[team learning] SQL programming language notes - task04

Interview with Mo Tianlun | ivorysql wangzhibin - ivorysql, an Oracle compatible open source database based on PostgreSQL

"Grammar sugar" -- my new programming knowledge

Perfect shuffle problem

智慧风电:数字孪生 3D 风机智能设备运维
随机推荐
Hot and cold, sweet and sour, want to achieve success? Dengkang oral, the parent company of lengsuanling, intends to be listed on the main board of Shenzhen Stock Exchange
Smart wind power: operation and maintenance of digital twin 3D wind turbine intelligent equipment
numpy np tips: numpy数组的squeeze等处理
Redis related-02
The problem that only the home page can be accessed under openSUSE Apache laravel
Standing wave ratio calculation method
MySQL modifies and deletes tables in batches according to the table prefix
Russian Airi Research Institute, etc. | SEMA: prediction of antigen B cell conformation characterization using deep transfer learning
(ultra detailed onenet TCP protocol access) arduino+esp8266-01s accesses the Internet of things platform, uploads real-time collected data /tcp transparent transmission (and how to obtain and write Lu
La gamme NFT Color, qui représente la diversité, est en ligne sur la plate - forme du marché Sandbox
zabbix的安装避坑指南
Cesium drag 3D model
虽然传统意义上的互联网早已不复存在,但这并不代表互联网早已消失不再
[rust submission] review impl trail and dyn trail in rust
Work assessment of Biopharmaceutics of Jilin University in March of the 22nd spring -00005
WMS仓储管理系统的使用价值,你知道多少
Comprehensive operation of financial risk management X of Dongcai
Mobile mall project operation
Windows 2003 64 bit system PHP running error: 1% is not a valid Win32 Application
Hello CTP (IV) - CTP transaction API