 | EngineCreate Method |
Create a new OCR engine
The
name argument selects the OCR engine.
Two engine names are supported:
- "service": HTTP-based text OCR engine.
The endpoint URL is supplied after an "@" suffix,
e.g. "service@http://localhost:7982/".
Multiple endpoints may be given as a semicolon-separated list
for failover, e.g. "service@http://host1:7982/;http://host2:7982/".
When no URL is given, "http://localhost:7982/" is used by default.
- "barcodes": Barcode and QR code recognition engine.
Takes no additional parameters. Available only on Windows x86 and x64.
Namespace: PdfTools.OcrAssembly: PdfTools (in PdfTools.dll) Version: 1.19.0+2160c7724ea9111cae8ed0e8ced3b10611191789
Syntaxpublic static Engine Create(
string name
)
Parameters
- name String
-
The engine name and optional creation parameters.
Return Value
Engine
The newly created engine instance.
Exceptions| Exception | Condition |
|---|
| GenericException | The engine could not be created, e.g. because the engine is not available. |
| ArgumentException | The name argument is invalid. |
| ArgumentNullException | if name is . |
See Also