how to captured data to file?

Hello,

 

I using RTR SDK.

but I don't know how to save a captured image when I get the text.

Do I use a buffer to file? below code

If you have a sample, please show me.

@Override
public void onRequestLatestFrame( byte[] buffer )
{
// The service asks to fill the buffer with image data for the latest frame in NV21 format.
// Delegate this task to the camera. When the buffer is filled we will receive
// Camera.PreviewCallback.onPreviewFrame (see below)
camera.addCallbackBuffer( buffer );
data = buffer;
}

Thanks.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.