<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>198174</bug_id>
          
          <creation_ts>2019-05-23 00:29:43 -0700</creation_ts>
          <short_desc>Feature Request: Implement the Shape Detection API `BarcodeDetector` and `FaceDetector`</short_desc>
          <delta_ts>2023-10-27 06:41:50 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>Safari 12</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>255803</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Thomas Steiner">tomac</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>boghyon+webkit</cc>
    
    <cc>bugs.webkit.org-20191023</cc>
    
    <cc>claude.pache</cc>
    
    <cc>dvpdiner2</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>halifirien</cc>
    
    <cc>jer.noble</cc>
    
    <cc>lwarlow</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1538599</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Steiner">tomac</who>
    <bug_when>2019-05-23 00:29:43 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1538853</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-05-23 17:12:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/51089129&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1794392</commentid>
    <comment_count>2</comment_count>
    <who name="Boghyon Hoffmann">boghyon+webkit</who>
    <bug_when>2021-09-17 04:46:15 -0700</bug_when>
    <thetext>I work with SAP customers. Especially the barcode detection is highly requested by small-mid-size businesses who can&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1863994</commentid>
    <comment_count>3</comment_count>
    <who name="">depetoh107</who>
    <bug_when>2022-04-24 14:49:18 -0700</bug_when>
    <thetext>What&apos;s the progress on this? Really important use cases all round here, and Chrome is now shipping this on Android as of version 100.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1864036</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Steiner">tomac</who>
    <bug_when>2022-04-25 00:15:32 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970509</commentid>
    <comment_count>5</comment_count>
    <who name="">halifirien</who>
    <bug_when>2023-08-10 09:54:17 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987979</commentid>
    <comment_count>6</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-10-27 06:41:50 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 255803 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>