By ozieg
on Thu, 10/03/2013 - 11:18
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
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