Alternatives to jit.change

toddak's icon

Hey all,

Just quick question about jit.change. I'm using it as a part of a basic patch to detect movement via a webcam, and it seems to be working rather well (although, its takes a bit to get a good threshold!).

I was just wondering if anyone had any suggestions for alternative, perhaps third party objects, that can be used for a similar process, and/or analyse colour data.

(and not including cyclops. Merely because I need this to run on runtime, and I assume its not supported!).

Many thanks, Todd AK

Wetterberg's icon

Are you keying out your background? I'd start there.

But first, take a look here:
http://jmpelletier.com/cvjit/

there are a number of potential candidates there: cv.jit.mean, cv.jit.ravg are the most simple, I reckon, and then you can move up to doing blob tracking, and then detecting changes in those - that will eliminate light changes in the room, that sort of thing. cv.jit.blobs.centroids    I believe is the best bet, though I haven't worked with it yet.