fromFileAsync static method

Future<HOGDescriptor> fromFileAsync(
  1. String filename
)

Implementation

static Future<HOGDescriptor> fromFileAsync(String filename) async {
  final cp = filename.toNativeUtf8().cast<ffi.Char>();
  final rval = await cvRunAsync<HOGDescriptor>(
      (callback) => cobjdetect.HOGDescriptor_NewFromFile_Async(cp, callback), (c, p) {
    return c.complete(HOGDescriptor.fromPointer(p.cast<cobjdetect.HOGDescriptor>()));
  });
  calloc.free(cp);
  return rval;
}