[英]Does CIDetector For other Barcode Types
I am looking at CIDetectorTypeQRCode. 我在看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.
我可以通过AVMetadataObjectType读取其他条形码类型,但是我想对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. 在我的AVCaptureMetadataOutputObjectsDelegate实现完全锁定和读取代码之前尝试一种放大效果。
CIDetector has only following types to detect, So we can't use it to detect another type of barcodes. CIDetector只有以下类型可供检测,因此我们无法使用它来检测其他类型的条形码。
CIDetectorTypeFace
CIDetectorTypeRectange
CIDetectorTypeQRCode
CIDetectorTypeText
But since iOS 11 has introduced a new set of Vision API's. 但是自从iOS 11推出了一套新的Vision API之后。 Now it is possible to read barcodes from an image.
现在可以从图像中读取条形码。
if you are targeting >iOS 11, you can use VNDetectBarcodesRequest
to read barcode results. 如果您的目标是> iOS 11,则可以使用
VNDetectBarcodesRequest
来读取条形码结果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.