After deciding to replace [suckah] with another method of color tracking, it's onto making #abstractions to track more than one color! Dr. Hamel and I met up to work out which elements are shared and which elements are unique and therefore inside and outside the abstraction respectively. Below is our resulting #Tracker!
Basically this abstraction takes in:
video/camera feed
colour min RGB values
colour max RGB values
fast blur integers 1, 2, or 3 (this hasn't been moved outside yet but has some neat #future applications to sharpen and blur the edges of our tracked colour)
... and pushes out:
the resulting black and white video (white pixels visually representing the tracked color)
the centre location point (x, y) of our tracked color
and the average RGB values of our tracked color (prepended with frgb)
We added some changes including:
using [sel -1] objects to remove -1 x and y jit.findbounds values from the resulting location output when the tracked colour is NOT present
I added some expressions that took an average rgb colour value from the tracked min and max colour RGB values to produce a foreground coloured dot/oval for our jit.lcd window (more on that later!)
Now to make a patch that uses several instances of this...
Comments