Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
483 views
in Technique[技术] by (71.8m points)

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

question from:https://stackoverflow.com/questions/66056262/reading-multiple-qr-codes-in-ios-avfoundation

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...