Finding HSV values for any color
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.
Prerequisite
A robot with a camera
VNC
Basic Steps
Connect your robot. You can find the guide here
Once your robot is connected, open vnc and run cvexample.py file in the terminal.
rosrun prrexamples cvexample.py
In a seperate terminal, run rqt.
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.
rqt_image_view

Last updated
Was this helpful?