Net.fromOnnx constructor
Net.fromOnnx(
- String path
Reads a network model ONNX.
https://docs.opencv.org/4.x/d6/d0f/group__dnn.html#gafd98356f905742ff082e3e4e193633a3
Implementation
factory Net.fromOnnx(String path) {
return using<Net>((arena) {
final p = calloc<cdnn.Net>();
final cpath = path.toNativeUtf8(allocator: arena).cast<ffi.Char>();
cvRun(() => cdnn.Net_ReadNetFromONNX(cpath, p));
final net = Net._(p);
return net;
});
}