Swift : No Matter what I do CIDetector is always nil

前端 未结 4 1678
清歌不尽
清歌不尽 2021-01-03 16:52

i don\'t understand why this code doesn\'t work, the detector is always nil with the CIDetectorTypeQRCode constant, everything work with CIDetectorTypeFace. I Supect a bug f

4条回答
  •  生来不讨喜
    2021-01-03 17:30

    1. Make sure your ImgChoosed.image is not nil.
    2. Change another input image for testing.
    3. Try for feature in features as! [CIQRCodeFeature].

提交回复
热议问题