Order of points in VNFaceLandmarkRegion2D

In my app, I am performing a VNDetectFaceLandmarksRequest with a VNSequenceRequestHandler. The video that serves as my input is from my iPhones selfie-camera.

The request returns the VNFaceLandmarkRegion2D from where I get all the landmarks as an array of CGPoints via

VNFaceLandmarkRegion2D.normalizedPoints

I want to compare all the CGPoint-arrays over time, but I am not sure if a point at a certain index is always representing the same landmark.

Can I assume that a specific landmark, e.g. the left-most landmark of the right eye, always has the same index in the CGPoint-array?

Answered by twissmueller in 707991022

According to a very helpful DTS Engineer I was recently in contact with, the order is guaranteed across all observations.

Accepted Answer

According to a very helpful DTS Engineer I was recently in contact with, the order is guaranteed across all observations.

Order of points in VNFaceLandmarkRegion2D
 
 
Q