| TesseractOcrEngineGetLastJobInternalBitmap Method (Int32) |
Fills a WriteableBitmap with the thresholded image used internally in the previous ocr job.
Namespace: DevScope.Ocr.Tesseract.WindowsPhoneAssembly: DevScope.Ocr.Tesseract.WindowsPhone (in DevScope.Ocr.Tesseract.WindowsPhone.dll) Version: 255.255.255.255
Syntax public void GetLastJobInternalBitmap(
int[] pixelsBuffer
)
Public Sub GetLastJobInternalBitmap (
<OutAttribute> pixelsBuffer As Integer()
)
public:
virtual void GetLastJobInternalBitmap(
[OutAttribute] array<int>^ pixelsBuffer
) sealed
Parameters
- pixelsBuffer
- Type: SystemInt32
Array of the WriteableBitmap pixels buffer in BGRA format.
Examples
This sample shows how to access the internal image used by in the previous ocr job.
private WriteableBitmap GetLastJobBitmapUsedByOcr(TesseractOcrEngine ocrEngine, TesseractOcrJobResponse jobResponse)
{
var wbsize = ocrEngine.GetLastJobInternalBitmapDimensions();
var wb = new WriteableBitmap(wbsize.Width, wbsize.Height);
ocrEngine.GetLastJobInternalBitmap(wb.Pixels);
return wb;
}
See Also