jit.op @op absdiff, need some help

May 30, 2012 at 1:07am

jit.op @op absdiff, need some help

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. –
#56638
May 30, 2012 at 3:31am

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. –
#203017
May 30, 2012 at 4:46am

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

#203018
May 30, 2012 at 5:21am

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

#203019

You must be logged in to reply to this topic.