Log in or register to post comments

Extracting camera frame

April 4, 2012 - 12:32am #1

Hello,
in the ImageTargetsRender.Java in renderFrame function i want to call a CR Code library to check the frame for code detection.

Basicly what i want is that the app will check for each frame if there is a trackable found and if not i want to send the frame to another library to check if there is a QR Code detection,

How can it be done ? Where can i get the camera frame in code?

Thanks

Re: Extracting camera frame

April 9, 2012 - 7:55am #4

See this thread for some sample code:

http://ar.qualcomm.at/node/2001930

- Kim

Re: Extracting camera frame

April 8, 2012 - 1:40am #3

Thanks for the answer,
Can you please show me how can i pass the data back to Java?
I would like to use the image bytes in java
Thanks

Re: Extracting camera frame

April 4, 2012 - 3:34pm #2

Take a look at the Frame and Image classes. Start with the State object returned by the QCAR::Renderer::getInstance().begin() method. From there you can access the Frame object, and from the Frame object you can loop through the available Image objects and choose the one with the correct format. You can register for different pixel formats with the QCAR::setFrameFormat() method.

- Kim

Log in or register to post comments