getLayerNamesAsync method

Future<List<String>> getLayerNamesAsync()

Implementation

Future<List<String>> getLayerNamesAsync() async {
  final cNames = calloc<cvg.VecVecChar>();
  return cvRunAsync0(
    (callback) => cdnn.cv_dnn_Net_getLayerNames(ref, cNames, callback),
    (c) {
      final vec = VecVecChar.fromPointer(cNames);
      return c.complete(vec.asStringList());
    },
  );
}