train method

void train(
  1. String posSamples,
  2. String negImgs
)

Implementation

void train(String posSamples, String negImgs) {
  final cp = posSamples.toNativeUtf8().cast<ffi.Char>();
  final cn = negImgs.toNativeUtf8().cast<ffi.Char>();
  cvRun(() => ccontrib.cv_xobjdetect_WBDetector_train(ref, cp, cn));
  calloc.free(cp);
  calloc.free(cn);
}