Using gdpictureOCR As GdPictureOCR = New GdPictureOCR()
'Set some GdPictureOCR variables.
gdpictureOCR.Context = OCRContext.OCRContextRawLine
gdpictureOCR.CharacterSet = ",./<>?"
gdpictureOCR.Timeout = 1000
'Some some Tesseract variables.
gdpictureOCR.SetVariable("chop_enable", "T")
gdpictureOCR.SetVariable("use_new_state_cost", "F")
gdpictureOCR.SetVariable("enable_new_segsearch", "0")
gdpictureOCR.SetVariable("edges_max_children_per_outline", "40")
'Reset all internal variables to their default values.
gdpictureOCR.ResetParameters()
End Using
using (GdPictureOCR gdpictureOCR = new GdPictureOCR())
{
//Set some GdPictureOCR variables.
gdpictureOCR.Context = OCRContext.OCRContextRawLine;
gdpictureOCR.CharacterSet = ",./<>?";
gdpictureOCR.Timeout = 1000;
//Set some Tesseract variables.
gdpictureOCR.SetVariable("chop_enable", "T");
gdpictureOCR.SetVariable("use_new_state_cost", "F");
gdpictureOCR.SetVariable("enable_new_segsearch", "0");
gdpictureOCR.SetVariable("textord_force_make_prop_words", "F");
gdpictureOCR.SetVariable("edges_max_children_per_outline", "40");
//Reset all internal variables to their default values.
gdpictureOCR.ResetParameters();
}