ImageEn, unit IEVision

TIEVisionFaceDetector.loadModel

TIEVisionFaceDetector.loadModel

Declaration

procedure loadModel(stream: IStream); safecall;
procedure loadModel(filename: PWideChar); safecall;

Description

Replaces the built-in model with another YuNet ONNX model, such as a newer release from OpenCV Zoo.
This is not needed for normal use.
If the model cannot be loaded, an exception is raised and the current model is kept.

Example

detector.loadModel( 'C:\Models\face_detection_yunet_2023mar.onnx' );