 | OcrApiProcessPage Method |
Turn a single image into symbolic text.
Namespace: Patagames.OcrAssembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntaxpublic void ProcessPage(
OcrPix pix,
OcrResultRenderer renderer = null,
string retryConfig = null,
int timeout = 0,
string imageName = null,
int pageIndex = 0
)
Public Sub ProcessPage (
pix As OcrPix,
Optional renderer As OcrResultRenderer = Nothing,
Optional retryConfig As String = Nothing,
Optional timeout As Integer = 0,
Optional imageName As String = Nothing,
Optional pageIndex As Integer = 0
)
public:
void ProcessPage(
OcrPix^ pix,
OcrResultRenderer^ renderer = nullptr,
String^ retryConfig = nullptr,
int timeout = 0,
String^ imageName = nullptr,
int pageIndex = 0
)
member ProcessPage :
pix : OcrPix *
?renderer : OcrResultRenderer *
?retryConfig : string *
?timeout : int *
?imageName : string *
?pageIndex : int
(* Defaults:
let _renderer = defaultArg renderer null
let _retryConfig = defaultArg retryConfig null
let _timeout = defaultArg timeout 0
let _imageName = defaultArg imageName null
let _pageIndex = defaultArg pageIndex 0
*)
-> unit public void ProcessPage(
OcrPix pix,
OcrResultRenderer renderer = null,
String retryConfig = null,
int timeout = 0,
String imageName = null,
int pageIndex = 0
)
function ProcessPage(pix, renderer, retryConfig, timeout, imageName, pageIndex);
Parameters
- pix OcrPix
- The pix is the image processed.
- renderer OcrResultRenderer (Optional)
- renderer is responible for creating the output. For example, use the OcrTextRenderer if you want plaintext output, or the OcrPdfRenderer to produce searchable PDF.
- retryConfig String (Optional)
- retryConfig is useful for debugging. If not NULL, you can fall back to an alternate configuration if a page fails for some reason.
- timeout Int32 (Optional)
- yimeout(milliseconds) terminates processing if any single page takes too long. Set to 0 for unlimited time.
- imageName String (Optional)
- imageName is metadata used by side-effect processes, such as reading a box file or formatting as hOCR.
- pageIndex Int32 (Optional)
- Reserved. Must be 0.
See Also