Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6891513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:25:11+00:00 2026-05-27T06:25:11+00:00

My iOS app is supposed to perform the following two tasks at the same

  • 0

My iOS app is supposed to perform the following two tasks at the same time:

  1. scan for QR tags using the ZBar SDK,
  2. 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:25:11+00:00Added an answer on May 27, 2026 at 6:25 am

    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:

    QCAR::setFrameFormat(QCAR::GRAYSCALE, true);
    const QCAR::Image *image = state.getFrame().getImage(1); // 0: YUV, 1: Grayscale image
    const char *data = (const char *)image->getPixels();
    int width = image->getWidth(); int height = image->getHeight();
    
    CGColorSpace *colorSpace = CGColorSpaceCreateDeviceGray();
    CGBitmapInfo bitmapInfo = kCGBitmapByteOrderDefault;
    CGDataProvider *provider = CGDataProviderCreateWithData(NULL, data, width*height, NULL);
    CGColorRenderingIntent intent = kCGRenderingIntentDefault;
    CGImageRef imageRef = CGImageCreate(width, height, 8, 8, width * 1, colorSpace, bitmapInfo, provider, NULL, NO, intent);
    myUIImage = [UIImage imageWithCGImage:imageRef];
    

    Now, you can use ZBar’s ZBarImageScanner class like this:

    ZBarImageScanner *imageScanner = [[ZBarImageScanner alloc] init];
    ZBarImage *image = [[ZBarImage alloc] initWithCGImage:myUIImage.CGImage];
    int result = [imageScanner scanImage:image];
    
    if (result > 0) {
     ZBarSymbolSet *symbols = imageScanner.results;
     for(ZBarSymbol *symbol in symbols) {
      NSLog(@"%@", symbol.data);
     }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I detect when an iOS app is launched for the first time?
I have a textfield in my iOS app where the user is supposed to
I am working on a PhoneGap app that is supposed to run on iOS
I am learning iOS and I have written a simple iPhone app using iOS
In my iOS app I wan't to play sounds using OpenAL. I have AudioManager
My app works as supposed on an iPhone running iOS 4.1 but not on
I'm building an app using Phonegap and I'm using Urban Airship for iOS and
I'm developing an iOS app, which is my graduation project.. the app is supposed
I'm writing an iOS app with a table view inside a tab view. In
I'm working on an iOS app where I want to load one view if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.