See Also Examples Applies To
Tries to determine the orientation of the native GdPicture image by OCR. This function allows to define a level of accuracy.
Syntax
object.OCRTesseractGetOrientationEx (nDictionary, sDictionaryPath, nAccuracyLevel)
The OCRTesseractGetOrientationEx syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nDictionary |
Required. Long. The dictionary to use. Can be: 0: German. Need deu.DangAmbigs, deu.freq-dawg, deu.inttemp, deu.normproto, deu.pffmtable, deu.unicharset, deu.user-words and deu.word-dawg files. 1: Fraktur. Need deu-f.DangAmbigs, deu-f.freq-dawg, deu-f.inttemp, deu-f.normproto, deu-f.pffmtable, deu-f.unicharset, deu-f.user-words and deu-f.word-dawg files. 2: English. Need eng.DangAmbigs, eng.freq-dawg, eng.inttemp, eng.normproto, eng.pffmtable, eng.unicharset, eng.user-words and eng.word-dawg files. 3: French. Need fra.DangAmbigs, fra.freq-dawg, fra.inttemp, fra.normproto, fra.pffmtable, fra.unicharset, fra.user-words and fra.word-dawg files. 4: Italian. Need ita.DangAmbigs, ita.freq-dawg, ita.inttemp, ita.normproto, ita.pffmtable, ita.unicharset, ita.user-words and ita.word-dawg files. 5: Dutch. Need nld.DangAmbigs, nld.freq-dawg, nld.inttemp, nld.normproto, nld.pffmtable, nld.unicharset, nld.user-words and nld.word-dawg files. 6: Portuguese. Need por.DangAmbigs, por.freq-dawg, por.inttemp, por.normproto, por.pffmtable, por.unicharset, por.user-words and por.word-dawg files. 7: Spanish. Need spa.DangAmbigs, spa.freq-dawg, spa.inttemp, spa.normproto, spa.pffmtable, spa.unicharset, spa.user-words and spa.word-dawg files. 8: Vietnamese. Need vie.DangAmbigs, vie.freq-dawg, vie.inttemp, vie.normproto, vie.pffmtable, vie.unicharset, vie.user-words and vie.word-dawg files. 9: Polish. Need pol.DangAmbigs, pol.freq-dawg, pol.inttemp, pol.normproto, pol.pffmtable, pol.unicharset, pol.user-words and pol.word-dawg files. |
| sDictionaryPath | Required. String. The path into which the engine can find the files specified above. |
| nAccuracyLevel | Required. Single. Level of accuracy from 1 (Poor accuracy, hight speed) to 5 (best accuracy, low speed). Default value is 2.5. |
Returns
Long. The rotation of the page. Can be:
0: No rotation has been detected
1: 90° rotation has been detected
2: 180° rotation has been detected
3: 270° rotation has been detected
Remarks
To be used, this engine must be unlocked with the SetLicenseNumberOCRTesseract() function.
Category
OCR Plugins Functions