My iOS app is supposed to perform the following two tasks at the same time:
- scan for QR tags using the ZBar SDK,
- scan for augmented reality markers using the QCAR SDK.
Or in other words: I’m looking for QR tags surrounded by AR marker.
Both tasks should run in “real time”. My first naive approach showed that combining both SDKs in one app will cause the SDK which was initialized first to stop working when the second SDK is initialized.
Does anybody have suggestions? Thanks.
I managed to get that done. In case someone likes to know:
QCAR only works with full camera access. Therefore, it has to be initialized and started as shown in its documentation. Luckily, it provides access to the processed camera image as raw RGB data. I used this code to convert the raw data into an UIImage:
Now, you can use ZBar’s ZBarImageScanner class like this: