Forums > MaxMSP

Bang Message when a certain colour appears.

March 14, 2011 | 10:03 am

Hey folks, bit of a newbie to max, I am trying to create a system that sends out a bang (to possibly trigger a sample) when a certain preset colour range comes in to the video.

For example, if green appears in the video, a bang message is sent out of an object.

I’ve been messing around with the jit.findbounds object but have yet to find a capability of sending out bangs.

Any help would be much appreciated, this is driving me insane!

Dave


March 14, 2011 | 11:37 am

maybe you can analyze the video using [jit.3m] and use a threshold value to bang

best

pieter


March 14, 2011 | 10:19 pm

Hey pieter, thanks for the advice! do you have any suggestions for setting a threshold value in Max?

we are currently using the jit.3m object in the project, so this could work out perfectly for us!

thanks again

Dave


March 14, 2011 | 11:36 pm

Easiest way is take the output of either jit.findbounds or jit.chormakey in mode 1(??? which ever outputs area to be chromaed in B&W), run that through cv.jit.sum (check out the cv.jit objects). Set threshold using a past object. Tah dah.


March 21, 2011 | 10:33 am

Hey guys, thanks so much for the help! we are still having problems where the jit.3m object we are using to split ARGB values is not outputting enough colour information (all values go to 255 when there is a screen with a lot of white :( )

the past object for threshold is perfect though! and has given us another option so long as we can get around the colour issue!

Thanks again

Dave


Viewing 5 posts - 1 through 5 (of 5 total)