Skip to content

HsvFilter and HsvDetector

A new plugin containing two new elements: rshsvfilter for color correction and rshsvdetector for object detection.

They both work based on the HSV colorspace (Hue, Saturation, Value): https://en.wikipedia.org/wiki/HSL_and_HSV

  • rshsvfilter changes the value of each HSV channel based on user-defined properties: it takes RGB frames as input, converts them to HSV, applies the transformations on a per-pixel basis and converts the result back to RGB for the output

  • rshsvdetector marks pixels as positive if they fall within a certain range of values (also based on user-defined properties) regarding hue, saturation and value; it outputs a GRAY8 frame for each input RGB frame.

Demo Above is an example of what this all looks like: top right is the detector configured to pick the portable speaker based on its color, bottom left is the output of the filter element with a changing hue value (updated each frame for the sake of the demonstration).

Edited by Julien 'Blaxar' Bardagi

Merge request reports