TIEVisionDetectedFace.getLandmark
Declaration
function getLandmark(index: TIEVisionFaceLandmark): TIEVisionPoint2f; safecall;
Description
Returns the position of a facial landmark, in source image coordinates.
"Right" and "left" are the person's own, so in an upright, frontal face
ievFaceRightEye is on the left side of the image.
Example
// Mark the eyes of the first face
face := TIEVisionDetectedFace( faces.getObj( 0 ));
p := face.getLandmark( ievFaceRightEye );
ImageEnView1.IEBitmap.IECanvas.Ellipse( Round( p.x ) - 3, Round( p.y ) - 3, Round( p.x ) + 3, Round( p.y ) + 3 );
p := face.getLandmark( ievFaceLeftEye );
ImageEnView1.IEBitmap.IECanvas.Ellipse( Round( p.x ) - 3, Round( p.y ) - 3, Round( p.x ) + 3, Round( p.y ) + 3 );
ImageEnView1.Update();