Developer's Documentation for free mobile OCR SDK

Documentation Menu

onSaveImageBufferNV21 method of the DebugLog interface

Logs the image in NV21 format. This method is to be implemented on the client side.

String onSaveImageBufferNV21( int width, int height, int orientation, 
                              Rect areaOfInterest, byte[] buffer, int dataSize )

Parameters

width

The image width.

height

The image height.

orientation

The image orientation in degrees, a multiple of 90.

areaOfInterest

The rectangular area of interest on the image.

buffer

The buffer with image data in NV21 format. Only dataSize bytes in the buffer contain valid image data.

dataSize

The number of bytes in the buffer containing valid image data.

Return values

A string identifier of the image to which detailed debug information may be attached. If null is returned, the onAttachDebugInfo method will not be called and no detailed information will be reported.