ImageEn, unit ievision

TIEVisionFaceRecognizer.detect

TIEVisionFaceRecognizer.detect


Declaration

function detect(image: TIEVisionImage; out confidence: double): PWideChar; safecall;


Description

Detect a label and associated confidence (e.g. distance) for a given input image.
Applications can call this method after train or load.

Parameter Description
image Input test image
confidence Associated confidence for the predicted label. This value is the distance between the input image and the existing database. Distance = 0 means an exact match. Large values mean there is almost no match between both




Example

// look up a face in the database
recName := m_faceRecognizer.detect( faceBitmap.GetIEVisionImage(), confidence );
ShowMessage( Format( 'This face is "%s" (Confidence: %s)', [ recName, FloatToStr(confidence) ]));