flutterfire
flutterfire copied to clipboard
firebase_ml_vision dart BarcodeDetector.detectInImage
Is your feature request related to a problem? Please describe.
It looks to me like BarcodeDetector.detectInImage should return a Stream<Barcode> instead of a Future<List<Barcode>>.
It seems easier to manipulate the Barcodes as a Stream so we can validate them while the camera is doing it's thing, which is delivered as a Stream.
Describe the solution you'd like
this signature would be nice:Stream<Barcode> detectInImage(Stream<FirebaseVisionImage> visionImageStream)