You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > OCR Extension (Tesseract) > OCRTesseractDoOCR Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.OCRTesseractDoOCR Method

Starts a character recognition process on a GdPicture image or on an area of a GdPicture image defined by SetROI() function. 

For each language of recognition, you have to deploy specific files. See the Dictionary parameter.

C#
public String OCRTesseractDoOCR(
    int ImageID, 
    TesseractDictionary Dictionary, 
    String DictionaryPath, 
    String CharWhiteList
);
Visual Basic
Public Function OCRTesseractDoOCR(
    ByVal ImageID As Integer, 
    ByVal Dictionary As TesseractDictionary, 
    ByVal DictionaryPath As String, 
    ByVal CharWhiteList As String
) As String
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
Dictionary 
The dictionary to use. A member of the TesseractDictionary enumeration.  
DictionaryPath 
The path into which the engine can find the dictionary files (see the TesseractDictionary enumeration).  
CharWhiteList 
This parameter can be used to specify your own white list of chars. IE:
  • If you want to recognize only numeric you can use "0123456789".
  • If you want to recognize only uppercase alpha you can use "ABCDEFGHIJKLMNOPQRSTUVWXYZ"...
Use empty string to recognize all characters.  
Returns

The recognized text.

This function requires the optional GdPicture Tesseract Plugin. This Plugin must be unlocked with the SetLicenseNumberOCRTesseract() function.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.