Raspberry Pi LESSON 51: Understanding and Working in the HSV Color Space
ฝัง
- เผยแพร่เมื่อ 12 ธ.ค. 2024
- Announcing the Most Awesome Raspberry Pi Lessons of All Times! This time we RUMBLE!
In this class series, we will be using the most excellent Sunfounder Ultimate Raspberry Pi kit, available here: (Affiliate Link)
amzn.to/3tSk9Mo
or for our UK friends, amzn.to/3I5d401
In this lesson I will show you how to track an object in openCV based on color. In order to do this, we must learn to understand and work in the HSV color space. I will show with simple step-by-step instructions
If you want to grab those cool little straight jumper wires I am using to keep my breadboard builds neat and clean you can snag a box of them here:
amzn.to/36NyfHq
If you guys are interested in the oscilloscope I am using, you can pick one up here (affiliate link):
amzn.to/3v13Mhl
You guys get your hardware ordered so you can follow along at home!
You will also need a Raspberry Pi. I suggest the Raspberry Pi 4. If you do not already have one, this is the most suitable gear I could find:
amzn.to/3pBMfKm
The Raspberry Pi's are sort of pricy right now, so you can look on ebay or elsewhere to see if there are any deals. You will need a SD card. If you do not already have one, this is a good one:
amzn.to/3KcXTn2
I like using a wireless keyboard and mouse to have fewer wires. You can certainly use your USB keyboard and mouse, but if you want a nice wireless one, this one works on the pi. We demonstrate this by using a button switch to control a LED.
amzn.to/36Rv9Sk
You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
/ paulmcwhorter
[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. ]
#roi
#opencv
#raspberrypi
Blessing Paul, another great lesson, it's getting complicated but The good news is you're the pilot...
Hey Paul,
Great video as usual. Your step by step approach makes the complex understandable. One addition would be helpful to me , ie. a reference for the commands you use. I use your videos as jumping off point but spend countless hours finding commands outside your scope. This is a recurring problem when using new libraries.
OpenCV keeps getting better every year. There are so many fantastic examples such as color fruit detection or if an apple is ready for harvesting. My notebook is getting filled up with so much cool knowledge. 😎 Thank you so much Paul.
Thanks Paul. More clicking on my previous projects. You Rock!
Very good lesson about HSV and RGB! CV2 is powerful, just takes using it to make it stick.
Thanks Paul! Please keep it up.
Thank you Paul. Definitely going in an interesting direction now. Looking forward to building this into a serious artificial intelligence machine.
Paul where can I find an image to print like on 4:27 this video? have been duckduckgo searching.
hello Paul I used to what your vids and now I am watching them again
Hi Paul, after watching one of your Raspberry Pico videos where you emphasize the importance of math I thought that a good video series topic would be on math. What are your thoughts on that?
A good idea, but not really sure how to do it.
As someone who’s hired engineers before. Would you ever hire an employee for an engineer position who has no college degree but has technical proficiency?
Yes, if you can bring something in and show me what you can do, you will be considered for a job. Like do a cool project to show your skills.
Here is my video for the last lesson (50): th-cam.com/video/D3FtTm4k3O4/w-d-xo.html
Sadly after Arduino and your great lesson tutorials I never got anywhere with the Raspberry pi, it put me off when there was a tonne of code which I didn’t understand just to make an LED flash, all gone now, long live Arduino
Not a tonne... just have to bring in a couple libraries (modules) to handle things that Arduino has built in.
It can be done in 7 lines of code with the rpi.GPIO module
import rpi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(5,GPIO.OUT)
while True:
GPIO.output(5, not GPIO.input(5)) #toggle pin
time.sleep(1)
or 5 lines with the gpiozero module
from gpiozero import LED
from signal import pause
red = LED(17)
red.blink()
pause()
@@keithlohmeyer @PaulR387 or in 2 lines using gpiozero 😁
from gpiozero import LED
LED(20).blink()