Log in or register to post comments

capture camera image into texture

October 3, 2013 - 4:18am #1

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

 

capture camera image into texture

October 3, 2013 - 5:08am #2

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

Log in or register to post comments