Laex / Delphi-OpenCV

Project Delphi-OpenCV. Translation of OpenCV library header files in Delphi
507 stars 226 forks source link

Whether the opencv‘s mat class is supported in the current version?what in unit file defined ? #102

Closed shichuanq closed 3 years ago

shichuanq commented 6 years ago

Whether the opencv‘s mat class is supported in the current version?what in unit file defined ?

thanks

zzsczz commented 6 years ago

opencv‘s mat class is in cpp domain.

delphi use c style interface

blaisexen commented 6 years ago

@shichuanq For face recognizer from opencv_classes2413.dll the system used Mat, I assumed.

ICLASS_API void __stdcall FaceRecognizerTrain(FaceRecognizer* e, int n, IplImage* scr, int lab) { vector< Mat > images; vector< int > labels; for (int i = 0; i < n; i++) { images.push_back(Mat(scr[i])); labels.push_back(lab[i]); } e->train(images, labels); };