retrieving the dims of a second face with cv.jit.faces

Gewalter Benjamin's icon

Hi. I'm working with cv.jit.faces, and I'm easily able to retrieve the dims of one face using [jit.iter], but I cannot seem to figure out how to retrieve the dims of a second even though a second face is reported by route nfaces. Can anyone help with this?

krodelabestiole's icon

sorry i answer lately

i was wondering the same

i've just done it with [jit.iter] to get a max list from [cv.jit.faces] matrix.
then i use [next] to bang between each list (for each face) : the problem is jit.faces send it all at the same time

then [counter] and a [gate] to split outputs

not sure this is the best way but it works :

Max Patch
Copy patch and select New From Clipboard in Max.

i found absolutely no logic in faces order. tell me if you find.

letsgooutside's icon

Unfortunately, I seem to have lost this patch, but I had one where you could track multiple faces and dispatch the results as TUIO (multitouch) data. Here's a picture of the patch so you can try to recreate it.

86.haar2tuio.png
png