Is it possible to capture camera images in Mixed Reality? I want my app to read QR codes. In my scene, I need to figure out what GameObject to spawn based on the QR code content and then use Image Tracking to place it next to the QR code. Given the similarity among QR codes, I’m constructing an XRReferenceImageLibrary featuring only the scanned QR code image to prevent the application from misidentifying other QR codes.
If you mean the actual image that the user sees / of the pass through content / camera then the answer is no that’s a platform restrictions. Using image tracking through AR Foundation is the correct way to detect images.
I want to utilize image tracking in my app, but I need to ensure accurate identification of image markers like QR codes.
I have two QR codes, each encoding different text:


Though visually similar, they contain distinct information. Upon scanning the first QR code, I intend to spawn object A, and likewise, object B upon scanning the second one.
Given the similarity between the image markers, I’m concerned about potential misinterpretation by the AR Foundation image tracking algorithm, leading to the spawning of the wrong object. To mitigate this, I plan to first extract the content of the QR code and then use it to set up the XRReferenceImageLibrary for image tracking. This ensures that only the scanned QR code image marker is included in the library.
Is it possible to scan a QR code from a Unity app in Apple Vision Pro?
No not in the idea of “scanning something with the device cameras” to read information from the QR code. Apple supports App clips for some OS level functionality (registering prescription lenses) but I’m not sure if that is available to developer apps as well.
You can do it through a app that accesses the camera on your phone and then syncs it to your visionOS