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 p = calloc<cvg.Net>();
return cvRunAsync0((callback) => cdnn.cv_dnn_Net_readNetFromCaffe(cProto, cCaffe, p, callback), (c) {
calloc.free(cProto);
calloc.free(cCaffe);
final net = Net.fromPointer(p);
return c.complete(net);
});
}