public bool IsZoneTypeSupported(OcrZoneType zoneType)
- (BOOL)isZoneTypeSupported:(LTOcrZoneType)zoneType public boolean isZoneTypeSupported(OcrZoneType zoneType) bool IsZoneTypeSupported(OcrZoneType zoneType)
def IsZoneTypeSupported(self,zoneType):
zoneType
The zone type to check.
True if zoneType is supported by this IOcrEngine; otherwise, it is false.
To get all of the zone types supported by the engine, use GetSupportedZoneTypes.
using Leadtools;using Leadtools.Codecs;using Leadtools.Ocr;using Leadtools.Forms.Common;using Leadtools.Document.Writer;using Leadtools.WinForms;public void ZoneManagerExample(){// Create an instance of the engineusing (IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD)){// Start the engine using default parametersocrEngine.Startup(null, null, null, LEAD_VARS.OcrLEADRuntimeDir);// Get the zone managerIOcrZoneManager ocrZoneManager = ocrEngine.ZoneManager;// Show all the zone types supported by this engineConsole.WriteLine("Hit enter to show the supported zone types");//Console.ReadLine();OcrZoneType[] zoneTypes = ocrZoneManager.GetSupportedZoneTypes();Console.WriteLine("Supported zone types:");Console.WriteLine("---------------------");foreach (OcrZoneType zoneType in zoneTypes)Console.WriteLine(" {0}", zoneType);// Shutdown the engine// Note: calling Dispose will also automatically shutdown the engine if it has been startedocrEngine.Shutdown();}}static class LEAD_VARS{public const string OcrLEADRuntimeDir = @"C:\LEADTOOLS23\Bin\Common\OcrLEADRuntime";}
import static org.junit.Assert.assertTrue;import java.io.File;import java.io.IOException;import org.junit.*;import org.junit.runner.JUnitCore;import org.junit.runner.Result;import org.junit.runner.notification.Failure;import leadtools.*;import leadtools.codecs.*;import leadtools.ocr.*;import leadtools.document.writer.*;public void IOcrZoneManagerExample() {final String OCR_LEAD_RUNTIME_DIR = "C:\\LEADTOOLS23\\Bin\\Common\\OcrLEADRuntime";// Create an instance of the engineOcrEngine ocrEngine = OcrEngineManager.createEngine(OcrEngineType.LEAD);// Start the engine using default parametersocrEngine.startup(null, null, null, OCR_LEAD_RUNTIME_DIR);assertTrue(ocrEngine.isStarted());// Get the zone managerOcrZoneManager ocrZoneManager = ocrEngine.getZoneManager();// Show all the zone types supported by this engineSystem.out.println("Hit enter to show the supported zone types");OcrZoneType[] zoneTypes = ocrZoneManager.getSupportedZoneTypes();System.out.println("Supported zone types:");System.out.println("---------------------");for (OcrZoneType zoneType : zoneTypes)System.out.printf(" %s", zoneType);// Shutdown the engine// Note: calling Dispose will also automatically shutdown the engine if it has// been startedocrEngine.dispose();assertTrue("Length of zone type is not expected value", zoneTypes.length == 11);}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
