fromCaffeAsync static method
Implementation
static Future<Net> fromCaffeAsync(String prototxt, String caffeModel) async {
final cProto = prototxt.toNativeUtf8().cast<ffi.Char>();
final cCaffe = caffeModel.toNativeUtf8().cast<ffi.Char>();
final rval = await cvRunAsync<Net>(
(callback) => cffi.Net_ReadNetFromCaffe_Async(cProto, cCaffe, callback), (c, p) {
return c.complete(Net.fromPointer(p.cast<cvg.Net>()));
});
calloc.free(cProto);
calloc.free(cCaffe);
return rval;
}