I am looking at CIDetectorTypeQRCode. How can I detect other types of barcodes? I can read other barcode types via AVMetadataObjectType, however I want to do the same with CIDetector. I am trying to achieve real time highlighting of the barcode.
Trying for a sort of zoom in effect before my AVCaptureMetadataOutputObjectsDelegate achieves a full lock and read of the code.
CIDetector has only following types to detect, So we can't use it to detect another type of barcodes.
CIDetectorTypeFace
CIDetectorTypeRectange
CIDetectorTypeQRCode
CIDetectorTypeText
But since iOS 11 has introduced a new set of Vision API's. Now it is possible to read barcodes from an image.
if you are targeting >iOS 11, you can use VNDetectBarcodesRequest
to read barcode results.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.