Click or drag to resize

OcrApiSetImage(OcrPix) Method

Provide an image for Tesseract to recognize.

Namespace: Patagames.Ocr
Assembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntax
public void SetImage(
	OcrPix pix
)

Parameters

pix  OcrPix
Source leptonica image
Remarks

Format of image is as GetTextFromImage(OcrPix).

Does not copy the image buffer, or take ownership

The source image may be destroyed after Recognize is called, either explicitly or implicitly via one of the Get* Text functions. SetImage clears all recognition results, and sets the rectangle to the full image, so it may be followed immediately by a GetUtf8Text, and it will automatically perform recognition.

See Also