I'm working on my first Processing project and I'mdoingvideotrackingandI needto dothatwhenperson locatedina specific areato activatean actionsuch as playingavideoor sound. mycodeisthis:
import processing.video.*;
// Variable para capturar video
Capture video;
// frame Previo
PImage prevFrame;
PImage shipSprite;//variable de la nave
PImage bg;
// variable que define cual debe ser la diferencia de pixel para considerarlo movimiento de pixels