Nicomsoft OCR: Developer's Guide


Nicomsoft OCR Objects

NSOCR uses the following objects:

CFG object. The "Config" object stores and manages the OCR settings. For more information about these settings, see the NSOCR Configuration section. In most cases, you need to create only one CFG object, and all other created objects will use it to access the OCR settings. Creating several CFG objects is only necessary if you use different settings for several OCR objects.

OCR object. The "OCR" object handles the OCR process. It manages all resources that are necessary for OCR. In most cases, you need to create only one OCR object, which will process images one by one. Creating several OCR objects is only necessary if your application is multi-threaded and you want to process several images at once.

IMG object. The "Image" object handles an image for OCR. The image can be loaded from a file on the disk, from a file in the memory, or from a memory bitmap. The image can consist of one or more pages. Many image file formats are supported, including BMP, JPEG, PNG, TIFF, and GIF. The PDF format is supported via the GhostScript library; for more details, see the PDF support section.

BLK object. The "Block" object handles an image zone for OCR. This object is used to specify the size, position, and type of the zone, get the recognized text, etc.

SVR object. The "Saver" object saves OCR results to a file or to the memory. Several formats are supported: ANSI TXT, Unicode TXT, RTF, PDF, and XML. There are additional saving options: page size selection, image-over-text for PDF, DPI selection for images, formatting options, and more.

SCAN object. The "Scan" object scans images from TWAIN or WIA compatible devices. A scanned image can be placed into the IMG object, or saved to a file or to the memory. The image can contain one or more pages. You can select a scanning device. You can also set DPI, color depth, and other scanning settings.

Note:
           You can create only one SCAN object in your application.


Also Read