getNumberList method

Future<List<String>> getNumberList(
  1. String path
)

this function extracts all numbers of an image which have 6 or more digits removes time and date

Implementation

Future<List<String>> getNumberList(String path) async {
  final result = await occ.processImageFromPathWithoutView(path);
  if (result.toString().isEmpty) return [];
  Map<String, dynamic> data = jsonDecode(result);
  List<Line>? lines = await initialize(data);
  List<String> finalResult = await findFlightTags(lines);
  return finalResult;
}