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
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.
}
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