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 takesRGB
frames as input, converts them to HSV, applies the transformations on a per-pixel basis and converts the result back toRGB
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 aGRAY8
frame for each inputRGB
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).