flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

firebase_ml_vision dart BarcodeDetector.detectInImage

Open serverplumber opened this issue 6 years ago • 0 comments

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)

serverplumber avatar May 26 '20 20:05 serverplumber