Skip to content

hsv_color_params_collector

Moscowsky Anton edited this page Dec 3, 2020 · 2 revisions

Utility for extracting parameters of threshold color attribute.

To launch using a webcam, use the attached launch file. Requires the usb_cam package.

roslaunch extended_object_detection hsv_color_params_collector.launch

When you press ESC, the utility will write an XML description of the configured object to the console and close, including the usb-cam node.

1. Subscribed topics

2. Interface

The interface provides six sliders for setting thresholds in HSV space, one slider for object size (size attribute in the image is used) and an image with the recognition result at the current parameters.

utility interface

3. Guides

3.1. Quick Guide

  1. Place the object of interest in the field of view of the camera.
  2. Move the sliders of the HSV parameters until the outline only covers the object of interest.
  3. Move the size slider to filter out fractal objects.
  4. Press ESC and copy the object parameters from the console. Unfortunately, the OpenCV sliders do not allow you to specify fractional values, so the size values ​​on the slider are multiplied by 100. This means that 200 will mean that only those objects remain with an area larger than 2% of the image area.

3.2. Video guide

  • Language: russian
  • Subtitles: no

hsv utility tutorial

Clone this wiki locally