GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureOCR Class / Context Property
Example





In This Topic
Context Property (GdPictureOCR)
In This Topic
Specifies the OCR context to be used during subsequent OCR processes. You have to inform the engine of the layout type of the data you want to process.
Syntax
'Declaration
 
Public Property Context As OCRContext
public OCRContext Context {get; set;}
public read-write property Context: OCRContext; 
public function get,set Context : OCRContext
public: __property OCRContext get_Context();
public: __property void set_Context( 
   OCRContext value
);
public:
property OCRContext Context {
   OCRContext get();
   void set (    OCRContext value);
}

Property Value

The default value is OCRContext.OCRContextDocument.
Example
How to set the required OCR context.
Using gdpictureOCR As GdPictureOCR = New GdPictureOCR()
 
    gdpictureOCR.Context = OCRContext.OCRContextSingleBlock
 
    'You can do your another stuff with gdpictureOCR here.
End Using
using (GdPictureOCR gdpictureOCR = new GdPictureOCR())
{
    gdpictureOCR.Context = OCRContext.OCRContextSingleBlock;
 
    //You can do your another stuff with gdpictureOCR here.
}
See Also