Forums > Jitter

cv.jit.shift extracting co-ordinates

Feb 07 2010 | 8:25 pm

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 | 9:59 pm

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 | 10:25 pm

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

Feb 19 2010 | 5:44 am

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. —
Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter