Code samples for TIEVisionFaceDetector (Automatically generated by the Every Method demo).
// Automated test of Face Detection (YuNet)
// TIEVisionFaceDetector.detect - Faces: 1. Scores: 0.92 (roll 4 deg)
detector := IEVisionLib.createFaceDetector();
detector.setScoreThreshold( 0.8 );
faces := detector.detect( ImageEnView1.IEBitmap.GetIEVisionImage(), IEVisionRect( 0, 0, 0, 0 )); // Found count: 1
for i := 0 to faces.size() - 1 do
begin
r := TIEVisionDetectedFace( faces.getObj( i )).getRect();
ImageEnView1.IEBitmap.IECanvas.Rectangle( r.x, r.y, r.x + r.width, r.y + r.height );
end;
