Forums > Jitter

jit.op @op absdiff, need some help

May 30, 2012 | 1:07 am

Hello, in my current patch, when moving(the pwindow to the right) is showing a trace after the persons movement because of the absdiff basically. But this trace is transparent and is really just showing the background.

So I was wondering if there is a way to make the absdiff not transparent, or if there is a better object I could use for this, in order to create this trace that would show the color of the moving object or person instead of the background behind.

here is my code

– Pasted Max Patch, click to expand. –

May 30, 2012 | 3:31 am

ok, I figured that my code actually works with a black background. But the next setp would be to make it so the last thing that’s being drawn on the screen, will be drawn on top of everything else, not blend into the rest.
Anyone who has done something like this? or would this be really advanced? thanks

– Pasted Max Patch, click to expand. –

May 30, 2012 | 4:46 am

I suggest you change your approach and look at tracking, maybe using cv.jit.blobs.centroids for analysis, then use jit.lcd for drawing …


May 30, 2012 | 5:21 am

alright, thank you very much :) I’ll look into that


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