Class OcrInputFilterWizard
OcrInputFilterWizard provides a brute-force filter assessment tool to try filter combinations within IronOCR to get the highest IronTesseract confidence.
Simply call the Run(String, out String, out Double, IronTesseract) method with a image filepath, and optionally a Tesseract.
Out variables include the result of the best combination's read, and the best confidence.
Example use: var results = OcrInputFilterWizard.Run("img.png", out string text, out double confidence);
Inheritance
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public class OcrInputFilterWizard : Object
Methods
Run(String, IronTesseract)
This method applies a brute-force filter assessment tool to try filter combinations within IronOCR to get the highest IronTesseract confidence.
Example use: OcrInputFilterWizard.Run("img.png");
Please note that this is a debug method which is CPU-intensive. When using a large PDF it may be wise to only scan a single page rather than the whole document.
Declaration
public static string Run(string filePath, IronTesseract tesseract = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | Relative or Absolute filepath to image to run wizard on. |
IronTesseract | tesseract | Optional Tesseract to include. Can be used if multiple languages need to be read. |
Returns
Type | Description |
---|---|
System.String | Code to use to reproduce the best confidence result as a multi-line string. |
Run(String, out Double, IronTesseract)
This method applies a brute-force filter assessment tool to try filter combinations within IronOCR to get the highest IronTesseract confidence.
Out variables include the result of the best confidence.
Example use: OcrInputFilterWizard.Run("img.png", out double confidence);
Please note that this is a debug method which is CPU-intensive. When using a large PDF it may be wise to only scan a single page rather than the whole document.
Declaration
public static string Run(string filePath, out double ironOcrConfidence, IronTesseract tesseract = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | Relative or Absolute filepath to image to run wizard on. |
System.Double | ironOcrConfidence | Out-variable of confidence of the best read result from Tesseract itself. |
IronTesseract | tesseract | Optional Tesseract to include. Can be used if multiple languages need to be read. |
Returns
Type | Description |
---|---|
System.String | Code to use to reproduce the best confidence result as a multi-line string. |
Run(String, out String, IronTesseract)
This method applies a brute-force filter assessment tool to try filter combinations within IronOCR to get the highest IronTesseract confidence.
Out variables include the result of the best combination's read text.
Example use: OcrInputFilterWizard.Run("img.png", out string bestReadResult);
Please note that this is a debug method which is CPU-intensive. When using a large PDF it may be wise to only scan a single page rather than the whole document.
Declaration
public static string Run(string filePath, out string bestReadResult, IronTesseract tesseract = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | Relative or Absolute filepath to image to run wizard on. |
System.String | bestReadResult | Out-variable of the best filter combination Tesseract string read result. |
IronTesseract | tesseract | Optional Tesseract to include. Can be used if multiple languages need to be read. |
Returns
Type | Description |
---|---|
System.String | Code to use to reproduce the best confidence result as a multi-line string. |
Run(String, out String, out Double, IronTesseract)
This method applies a brute-force filter assessment tool to try filter combinations within IronOCR to get the highest IronTesseract confidence.
Out variables include the result of the best combination's read text, and the best confidence.
Example use: OcrInputFilterWizard.Run("img.png", out string text, out double confidence);
Please note that this is a debug method which is CPU-intensive. When using a large PDF it may be wise to only scan a single page rather than the whole document.
Declaration
public static string Run(string filePath, out string bestReadResult, out double ironOcrConfidence, IronTesseract tesseract = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | Relative or Absolute filepath to image to run wizard on. |
System.String | bestReadResult | Out-variable of the best filter combination Tesseract string read result. |
System.Double | ironOcrConfidence | Out-variable of confidence of the best read result from Tesseract itself. |
IronTesseract | tesseract | Optional Tesseract to include. Can be used if multiple languages need to be read. |
Returns
Type | Description |
---|---|
System.String | Code to use to reproduce the best confidence result as a multi-line string. |