Bug 198174 - Feature Request: Implement the Shape Detection API `BarcodeDetector` and `FaceDetector`
Summary: Feature Request: Implement the Shape Detection API `BarcodeDetector` and `Fac...
Status: RESOLVED DUPLICATE of bug 255803
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Safari 12
Hardware: iPhone / iPad iOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-05-23 00:29 PDT by Thomas Steiner
Modified: 2023-10-27 06:41 PDT (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Steiner 2019-05-23 00:29:43 PDT
The Shape Detection API (https://wicg.github.io/shape-detection-api/) defines detectors for faces (https://wicg.github.io/shape-detection-api/#face-detection-api) and barcodes (https://wicg.github.io/shape-detection-api/#barcode-detection-api), both of which are natively supported by the iOS Camera app. This API exposes these OS-level detectors to web applications through straight-forward interfaces.

There is a well-documented industry case where native barcode detection would help from eBay: https://medium.com/ebaytech/webassembly-at-ebay-a-real-world-use-case-ef888f38b537.
Comment 1 Radar WebKit Bug Importer 2019-05-23 17:12:19 PDT
<rdar://problem/51089129>
Comment 2 Boghyon Hoffmann 2021-09-17 04:46:15 PDT
I work with SAP customers. Especially the barcode detection is highly requested by small-mid-size businesses who can't hire (expensive) iOS developers. B2B customers need to be able to decode QR and barcodes quickly and reliably in various conditions within their mobile web apps.
Comment 3 depetoh107 2022-04-24 14:49:18 PDT
What's the progress on this? Really important use cases all round here, and Chrome is now shipping this on Android as of version 100.
Comment 4 Thomas Steiner 2022-04-25 00:15:32 PDT
For a real world use case of the BarcodeDetector, see https://web.dev/mishipay/. Currently, iOS users are forced on the slow code path that needs to download the barcode reader implementation, whereas Android users can use their OS built-in barcode reader implementation.
Comment 5 halifirien 2023-08-10 09:54:17 PDT
looks like this is available in Safari Technical Preview 176 (perhaps even earlier) behind `Shape Detection API` feature flag.

https://github.com/WebKit/standards-positions/issues/174#issuecomment-1539422664

QR scanning worked in main thread, however BarcodeDetector was available in WebWorker but appears unusable.
Comment 6 Sam Sneddon [:gsnedders] 2023-10-27 06:41:50 PDT

*** This bug has been marked as a duplicate of bug 255803 ***