TIEVisionTrainCascadeMsgCallBack
Declaration
TIEVisionTrainCascadeMsgCallBack = function(msg: PAnsiChar): int32_t; stdcall;
Description
Callback used in
trainCascade to monitor training. This callback can be used also to stop a training, among stages.
When return value is 0, then stop training. When return value is 1, then continue training.
Parameter | Description |
msg | Details of the training status |
| Demos\IEVision\TrainCascadeClassifier\TrainCascadeClassifier.dpr |
function TrainingMsgCallBack(msg: PAnsiChar): int32_t; stdcall;
begin
MainForm.MemoLog.Lines.Add(string(msg));
Application.ProcessMessages();
if MainForm.ButtonTrain.Enabled then
result := 0 // 0 = stop training (ASAP)
else
result := 1; // 1 = continue training
end;
See Also
◼trainCascade