OpenCV Programming the Raspberry Pi:Tutorial-18 Identify Pixels with Given Color with Python

preview_player
Показать описание
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 the commercial products. Being a BSD-licensed product, OpenCV makes it easy for businesses to utilize and modify the code.
The library has more than 2500 optimized algorithms, which includes a comprehensive set of both classic and state-of-the-art computer vision and machine learning algorithms. These algorithms can be used to detect and recognize faces, identify objects, classify human actions in videos, track camera movements, track moving objects, extract 3D models of objects, produce 3D point clouds from stereo cameras, stitch images together to produce a high resolution image of an entire scene, find similar images from an image database, remove red eyes from images taken using flash, follow eye movements, recognize scenery and establish markers to overlay it with augmented reality, etc. OpenCV has more than 47 thousand people in their user community and an estimated number of downloads exceeding 7 million. The library is used extensively in companies, research groups and by governmental bodies.
The Raspberry Pi is a credit-card-sized single-board computer developed in the UK by the Raspberry Pi Foundation with the intention of promoting the teaching of basic computer science in schools.
The Raspberry Pi has a Broadcom BCM2835 system on a chip (SoC), which includes an ARM1176JZF-S 700 MHz processor, VideoCore IV GPU, and was originally shipped with 256 megabytes of RAM, later upgraded to 512 MB. It does not include a built-in hard disk or solid-state drive, but uses an SD card for booting and persistent storage.
The Foundation provides Debian and Arch Linux ARM distributions for download. Tools are available for Python as the main programming language, with support for BBC BASIC (via the RISC OS image or the Brandy Basic clone for Linux), C, Java and Perl.

Source Code:

Рекомендации по теме
Комментарии
Автор

This is very nice and informative. Thank you very much for taking your time to make such a nice tutorial. One thing that has crossed my mind is how can we get the X and Y co-ordinates of such "masks"? Any help would be appreciated.
Thanks and regards.

Dip_Physics
Автор

Is this includes recognizing the color of a leaf?

jojid.econar
Автор

Hello Sir, I'm currently working on my project design which is a virtual keyboard using a Raspberry Pi B+. I don't have a Pi cam module but I have a Logitech webcam. Do you have a similar project to mine which I can study and improve my approach for my project? Btw your videos are so useful. Thank you.

rizmichaelagravante
Автор

Hello Mr. Francesco
What is the code for the red color ?
Thank you !

laurachirila
Автор

can i use the pi camera with python and opencv?

saddamfadhli
Автор

tnks u for the video sir, can i ask u plz ?!

ninanina