how to draw text from motion detection. beginner.

edited February 2014 in How To...

I'm totally new. I've been trying to figure things out on my own. but some help would be nice.

I'm using Shiffman's motion detection example 16-14. pretty much looking for a way to draw text when there is more than X amount of motion.

for now the circle just jumps in diameter according to the motion between frames. I'd like to write code that says:

if avgMotion is more or equal to X

Draw Text...

any help would be greatly appreciated! thanks!

// Draw a circle based on average motion smooth(); noStroke(); fill(0); float r = avgMotion*8; ellipse(width/2,height/2,r,r);

thats the last few lines of the example.

Sign In or Register to comment.