Net.fromTensorflow constructor
Reads a network model stored in TensorFlow framework's format.
https://docs.opencv.org/4.x/d6/d0f/group__dnn.html#ga91c313cd8269ddddaf3cb8299df2d4cb
Implementation
factory Net.fromTensorflow(String path, {String config = ""}) {
return using<Net>((arena) {
final p = calloc<cvg.Net>();
final cpath = path.toNativeUtf8(allocator: arena).cast<ffi.Char>();
final cconf = config.toNativeUtf8(allocator: arena).cast<ffi.Char>();
cvRun(() => cffi.Net_ReadNetFromTensorflow(cpath, cconf, p));
final net = Net._(p);
return net;
});
}