WICG/shape-detection-api

Selecting barcode formats

brason opened this issue · 2 comments

Currently BarcodeDetector searches for every supported barcode format. To improve performance it would be nice if you could select only the formats you need.

Yeah, I think we should provide a way for the platform to enumerate the supported formats (Mac impl detects only a few formats), so the user could select the desired ones. The detected format should also be specified in the response (see #30). I should work on a PR for this.

Addressed by the previous commit.
Chromium bug 747199 tracks its implementation in Chrome.