emilianavt / OpenSeeFace

Robust realtime face and facial landmark tracking on CPU with Unity integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extracting face with quaternion points

mohammadSHP opened this issue · comments

Hi.
I'm trying to crop faces from original frame with quaternion points.
but there is a problem. The cropped image does not include the face and is only slightly smaller.
I think these points are not correct for cropping.
Do I using right point for cropping?
Do you have any idea for cropping frame and extract (save) face?

I suggest you iterate over the landmark points to create a bounding box from them instead. Quaternions specify the rotation of the face inside the real world, not the position in the frame.

thank you. Which variable should I use to create bbox?

Iterate over the list of landmarks and collect minimums/maximums.