Lumina
Lumina copied to clipboard
QRCode box overlay
Is it possible to implement an overlay to show where the qrcode is in the camera feed? just like this https://www.appcoda.com/barcode-reader-swift/
Was wondering how can I get the videoPreviewLayer of the camera so I can use transformedMetadataObject
Hi @aabanaag - thanks for your comment!
So, funny enough, this existed in a previous pre-release build of Lumina. You can see the source code here.
I think I abandoned this because I got a bit obsessed with implementing the other newer stuff and re-organizing the architecture, and this didn't fit in immediately, especially differentiating between face detection and QR code detection. Also, I didn't see an immediate need for drawing a rect around it as detecting it was more necessary.
However, if there's a need for it, then I can definitely look at putting it back in 👍 let me know your thoughts.
well, initially I thought it would be needed as you can basically track the metadata within the camera feed but I think the best way to do it is add toggle for it because just like the native camera of the iPhone it doesn't track the qrcode. :)