GdPicture.NET.14
GdPicture14 Namespace / GdPictureOCR Class / ResourceFolder Property
Example





In This Topic
ResourceFolder Property (GdPictureOCR)
In This Topic
Specifies the path to the directory containing the engine resources (mostly dictionaries).
Syntax
'Declaration
 
Public Property ResourceFolder As String
public string ResourceFolder {get; set;}
public read-write property ResourceFolder: String; 
public function get,set ResourceFolder : String
public: __property string* get_ResourceFolder();
public: __property void set_ResourceFolder( 
   string* value
);
public:
property String^ ResourceFolder {
   String^ get();
   void set (    String^ value);
}

Property Value

The default value is an empty string.
Remarks
The proper path is usually within your standard installation and it looks like @\GdPicture.Net 14\redist\OCR. Of course you can specify your own path as well.
Example
How to specify the correct path to OCR dictionaries.
Using gdpictureOCR As GdPictureOCR = New GdPictureOCR()
 
    gdpictureOCR.ResourceFolder = "\GdPicture.Net 14\redist\OCR"
 
    'You can do your another stuff with gdpictureOCR here.
End Using
using (GdPictureOCR gdpictureOCR = new GdPictureOCR())
{
    gdpictureOCR.ResourceFolder = "\\GdPicture.Net 14\\redist\\OCR";
 
    //You can do your another stuff with gdpictureOCR here.
}
See Also