Class
TesseractRuntime
OfficeIMO.Ocr.Tesseract
Dependency-free discovery for an installed Tesseract command-line runtime.
Inheritance
- object
- TesseractRuntime
Methods
public static TesseractRuntimeInfo Discover(string? executablePath = null) #Finds an installed Tesseract executable or throws with platform-specific installation guidance.
Parameters
- executablePath string? = null
Returns
TesseractRuntimeInfopublic static string GetInstallationCommand() #Returns only the example package-manager command, allowing hosts to localize the surrounding instructions.
Returns
stringpublic static string GetInstallationHint() #Returns a concise installation command for the current operating system.
Returns
stringpublic static bool TryDiscover(string? executablePath, out TesseractRuntimeInfo? runtime) #Attempts to find an installed Tesseract executable without starting a process.
Parameters
- executablePath string?
- runtime OfficeIMO.Ocr.Tesseract.TesseractRuntimeInfo?
Returns
bool