python 颜色识别
In this post, I will show you how to build your own color recognizer using Python. This process is also known as “Color Detection”. We will create a basic application that will help us to detect the colors in an image. The program will also return as the RGB values of the colors, which is really helpful. Many graphic designers and web designers will understand how RGB values can be helpful. Building a color recognizer is a great project to get started with Computer Vision.
在这篇文章中,我将向您展示如何使用Python构建自己的颜色识别器。 此过程也称为“色彩检测”。 我们将创建一个基本应用程序,该应用程序将帮助我们检测图像中的颜色。 该程序还将返回颜色的RGB值,这确实很有帮助。 许多图形设计师和网页设计师将了解RGB值如何对您有所帮助。 构建颜色识别器是开始使用Computer Vision的绝佳项目。
If you haven’t heard of Computer Vision before, this is the best time to learn about it. Most of the machine learning and artificial intelligence fields are strongly connected to Computer Vision. As we are growing and exploring, seeing the outside world has a big impact on our development. This goes the same for the machines, they see the outside world using images, and those images are turned into data values that computers can understand.
如果您以前从未听说过Computer Vision,那么这是了解它的最佳时间。 大多数机器学习和人工智能领域都与计算机视觉紧密相关。 随着我们的发展和探索,看到外部世界对我们的发展具有重大影响。 对于机器来说,情况也是一样,他们使用图像看到外部世界,这些图像被转换为计算机可以理解的数据值。
In previous posts, I showed how to detect faces and also how to recognize faces in an image, these are great projects to practice python in artificial intelligence and computer vision. Let’s do some work!
在之前的文章中,我展示了如何检测人脸以及如何识别图像中的人脸 ,这些都是在人工智能和计算机视觉中实践python的伟大项目。 让我们做些工作!
目录 (Table of Contents)
Getting Started
入门
Libraries
图书馆
Define Image
定义图片
Color Recognition
颜色识别
Application
应用
Results
结果
入门 (Getting Started)
We will use three main modules for this project. They are NumPy, Pandas and OpenCv. OpenCv is a highly optimized library with a focus on real-time applications.
我们将为此项目使用三个主要模块。 它们是NumPy,Pandas和OpenCv。 OpenCv是一个高度优化的库,专注于实时应用程序。
<OpenCV (Open Source Computer Vision Library) is an open-source computer vision and machine learning software library. OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in commercial products.
OpenCV(开源计算机视觉库)是一个开源计算机视觉和机器学习软件库。 OpenCV构建旨在为计算机视觉应用程序提供通用的基础结构,并加速在商业产品中使用机器感知。
Source: https://opencv.org
资料来源: https : //opencv.org