learningIOSrn
learningIOSrn

Reputation: 11

Reading multiple QR Codes in iOS AVFoundation

I'm trying to create an application that detects all the QR Codes in my current camera frame, but am limited in that AVFoundation seems to only give me 4 QR Codes focused near the middle. Is it possible to detect more QR Codes simultaneously in one frame?

Code: pretty much this

Upvotes: 0

Views: 1416

Answers (1)

Frank Rupprecht
Frank Rupprecht

Reputation: 10383

Welcome!

It seems you can use Vision to detect all QR codes in an image.

From the docs of VNDetectBarcodesRequest:

By default, a barcode request first locates all barcodes in the input image, then analyzes each to decode payload.

(Note that even though it's named "barcodes", the symbologies also support QR.)

This tutorial might be helpful.

Upvotes: 1

Related Questions