Net.fromTFLite constructor

Net.fromTFLite(
  1. String path
)

Reads a network model stored in TFLite framework's format.

https://docs.opencv.org/4.x/d6/d0f/group__dnn.html#gae563b9ed2bc79838499a22727ad6c604

Implementation

factory Net.fromTFLite(String path) {
  final p = calloc<cvg.Net>();
  final cpath = path.toNativeUtf8().cast<ffi.Char>();
  cvRun(() => cdnn.cv_dnn_Net_readNetFromTFLite(cpath, p, ffi.nullptr));
  calloc.free(cpath);
  final net = Net._(p);
  return net;
}