Dim caption As String = "Example: ResetSelectedDictionaries"
Using gdpictureOCR As GdPictureOCR = New GdPictureOCR()
'Specify your resource folder for OCR dictionaries.
gdpictureOCR.ResourcesFolder = "\GdPicture.Net 14\redist\OCR"
'Reset previously added languages, if any.
gdpictureOCR.ResetSelectedDictionaries()
'Add only the french language.
If gdpictureOCR.AddLanguage(OCRLanguage.French) = GdPictureStatus.OK Then
'You can do your another stuff with gdpictureOCR here.
Else
MessageBox.Show("The AddLanguage() method has failed with the status: " + gdpictureOCR.GetStat().ToString(), caption)
End If
End Using
string caption = "Example: ResetSelectedDictionaries";
using (GdPictureOCR gdpictureOCR = new GdPictureOCR())
{
//Specify your resource folder for OCR dictionaries.
gdpictureOCR.ResourcesFolder = "\\GdPicture.Net 14\\redist\\OCR";
//Reset previously added languages, if any.
gdpictureOCR.ResetSelectedDictionaries();
//Add only the french language.
if (gdpictureOCR.AddLanguage(OCRLanguage.French) == GdPictureStatus.OK)
{
//You can do your another stuff with gdpictureOCR here.
}
else
{
MessageBox.Show("The AddLanguage() method has failed with the status: " + gdpictureOCR.GetStat().ToString(), caption);
}
}