I'm trying to set up an app that will detect the locations of the face/the facial landmarks in a still image using VNDetectFaceLandmarksRequest. For some reason though, when I draw the detected facial landmarks they show up in the correct location but rotated about 90 degrees. What gives?
I've tried setting the orientation of the VNImageRequestHandler to be .left
instead of .up
on line 66, and that fixes the orientation of the face but gives it a strange offset away from the face. I've tried rotating the calculated landmarkLayer
as things are being calculated but I think I don't understand CAShapeLayer
transform manipulation enough to get it to be positioned how I'd like.