Net.fromTensorflowBytes constructor
Reads a network model stored in TensorFlow framework's format.
https://docs.opencv.org/4.x/d6/d0f/group__dnn.html#gac9b3890caab2f84790a17b306f36bd57
Implementation
factory Net.fromTensorflowBytes(Uint8List bufferModel, {Uint8List? bufferConfig}) {
bufferConfig ??= Uint8List(0);
final bufM = VecUChar.fromList(bufferModel);
final bufC = VecUChar.fromList(bufferConfig);
final p = calloc<cvg.Net>();
cvRun(() => cdnn.cv_dnn_Net_readNetFromTensorflowBytes(bufM.ref, bufC.ref, p, ffi.nullptr));
final net = Net._(p);
return net;
}