CIDetectorTypeQRCode fails to scan images with transparent background

Originator:xhruso00
Number:rdar://47548370 Date Originated:January 25 2019
Status:Open Resolved:
Product:macOS + SDK Product Version:10.14.2
Classification:Other bug Reproducible:Always
 
Area:
Graphics & Imaging

Summary: Valid QR code image with transparent background can't be detected


Steps to Reproduce: 

1. Open attached image from file or visit (https://en.wikipedia.org/wiki/QR_code#/media/File:QR_code_for_mobile_English_Wikipedia.svg)
2. Convert it to CIImage
3. Create CIDetector
4. Call featuresInImage for image


Expected Results: 
A valid scan result should appear

Actual Results:
No result can be detected 

Version/Build:
from 10.12 to a macOS 10.14.2 (18C54)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!