arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

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.

hashtag
Prerequisite

  • A robot with a camera

  • VNC

hashtag
Basic Steps

  1. Connect your robot. You can find the guide

  2. Once your robot is connected, open vnc and run cvexample.py file in the terminal.

  1. In a seperate terminal, run rqt.

  1. In rqt window, click Plugning -> Dynamic Reconfigure

  2. Click cvexample and the hsv slides should pop up.

  3. 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.

herearrow-up-right
RQT
RQT
rosrun prrexamples cvexample.py
rqt
rqt_image_view