I am currently trying to find a way to isolate a colour in a live video stream. For example, if I chose red, any object in the video that does not contain red (above a certain threshold) would be black. Does such an object exist in GEM? Thanks for your help.
Is [pix_threshold] what you want?
On Sat, May 22, 2010 at 10:48 AM, Ryan Trigg ryan.trigg@gmail.com wrote:
I am currently trying to find a way to isolate a colour in a live video stream. For example, if I chose red, any object in the video that does not contain red (above a certain threshold) would be black. Does such an object exist in GEM? Thanks for your help. _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Ryan Trigg wrote:
I am currently trying to find a way to isolate a colour in a live video stream. For example, if I chose red, any object in the video that does not contain red (above a certain threshold) would be black. Does such an object exist in GEM? Thanks for your help.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-YOU
you can try pix_opencv_colorfilt or pdp_opencv_colorfilt
and they are not in pd-extended, you got to install them from here : http://www.hangar.org/wikis/lab/doku.php?id=start:puredata_opencv
mainly, well supported on ubuntutu ( like desmond tutu )
salaaam, sevy
On Sat, 22 May 2010, Ryan Trigg wrote:
I am currently trying to find a way to isolate a colour in a live video stream. For example, if I chose red, any object in the video that does not contain red (above a certain threshold) would be black. Does such an object exist in GEM? Thanks for your help.
[pix_colormatrix] is very good for that stuff. Optionally you can combine it with [pix_threshold] or others.
[pix_colormatrix] allows you, for example, to do things like new_red = old_red - old_green - old_blue, in order to identify redness in a way that excludes yellow, purple and white. You'd make a column with constants 1, -1, -1.
For singling out other colors you would use those numbers in a different order, or the numbers 1, 1, -2 in any order (for secondary colors), or any other combination (for finding other colors).
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
I made this object a while ago to track red and blue, but it can be extended to track other pure colors:
http://www.jaimeoliver.pe/archives/645
best,
J
On Sun, May 23, 2010 at 1:00 PM, Mathieu Bouchard matju@artengine.cawrote:
On Sat, 22 May 2010, Ryan Trigg wrote:
I am currently trying to find a way to isolate a colour in a live video
stream. For example, if I chose red, any object in the video that does not contain red (above a certain threshold) would be black. Does such an object exist in GEM? Thanks for your help.
[pix_colormatrix] is very good for that stuff. Optionally you can combine it with [pix_threshold] or others.
[pix_colormatrix] allows you, for example, to do things like new_red = old_red - old_green - old_blue, in order to identify redness in a way that excludes yellow, purple and white. You'd make a column with constants 1, -1, -1.
For singling out other colors you would use those numbers in a different order, or the numbers 1, 1, -2 in any order (for secondary colors), or any other combination (for finding other colors).
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801 _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list