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.WBDetector_Train(ptr, cp, cn));
  calloc.free(cp);
  calloc.free(cn);
}