Finding HSV values for any color
Last updated
Last updated
Copyright (c) Brandeis University
by Sampada Pokharel
This is a quick guide to finding the HSV values for any color that you may need for you project. We found this particularly helpful for following a line.
A robot with a camera
VNC
Connect your robot. You can find the guide here
Once your robot is connected, open vnc and run cvexample.py file in the terminal.
In a seperate terminal, run rqt.
In rqt window, click Plugning -> Dynamic Reconfigure
Click cvexample and the hsv slides should pop up.
Adjust the sliders to find the hsv values for your desired colors.
In a seperate terminal, run rqt_image_view to get a larger frame of the camera image. This is optional.