"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

capture camera image into texture

Hi.

 

can someone please point me on the right direction on how to capture image from camera and turn it into texture.

i am currently running under IOS , and capturing image using the function:

 

 

const QCAR::Image* GetCameraImage(QCAR::State& state, QCAR::PIXEL_FORMAT format)

{

    QCAR::Frame frame = state.getFrame();

    

    for (int i = 0; i < frame.getNumImages(); i++)

    {

        const QCAR::Image* image = frame.getImage(i);

        

        if (image->getFormat() == format)

        {

            return image;

        }

    }

    

    return NULL;

}

 

the format i am currently catching YUV.

 

 

thanks

 

ozi

 

how to capture image from camera

Search the forums for screenshot, then find the iOS code that does this

 

...and turn it into texture.

This is more an OpenGL ES question, so search the web for how to do this.

 

N