cv.jit.shift extracting co-ordinates

Feb 7, 2010 at 8:25pm

cv.jit.shift extracting co-ordinates

I am using cv.jit.shift with CAMSHIFT algorithm for mouth recognition. This allows me to draw a rectangle around the mouth to follow it’s movement. I now need to extract the co-ordinates of each of the 4 points of the rectangle. Does anyone know what object I could use for this?

Feb 18, 2010 at 9:59pm

try with jit.unpack & jit.spill… might work
i’m looking for the same answer, i’ll let you know if get a solution for this one.

Feb 18, 2010 at 10:25pm

Btw, this forum is for Jitter C development. Moving to standard Jitter forum.

Feb 19, 2010 at 5:44am

try this! it’s an excellent starting point. this patch as you’ll see is a mix between to patches so it still has a lot of stuff you probably won’t need… i didn’t have the time to merge them properly and leave just the essentials, but i got a tangible output of the x,y coordinates. this will give you number of blob, x, y and area (i’m using cv.jit.blobs.centroids), but it should be quite easy to use with cv.jit.shift and get the values you need.

hope it helps!


to get it running go to:
download the stuff u don’t have and install it

– Pasted Max Patch, click to expand. –

You must be logged in to reply to this topic.