MBS Xojo Developer Conference and Training
Join us from 11th to 14th September 2013 in Koblenz.
Join us from 11th to 14th September 2013 in Koblenz.
Platforms to show: All Mac Windows Linux Cross-Platform
TesseractMBS class
class, OCR,
MBS Real Studio OCR Plugin
(tesseract3),
class TesseractMBS,
Plugin version: 12.3, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.
Function: The plugin class to provide OCR by using the tesseract open source library.
Notes: See example projects on how to use it.
Plugin version: 12.3, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.
Function: The plugin class to provide OCR by using the tesseract open source library.
Notes: See example projects on how to use it.
- property Handle as Integer
- property PageSegMode as integer
- method Clear
- method ClearAdaptiveClassifier
- method Constructor
- method Constructor(folder as folderitem, lang as string)
- method Constructor(path as string, lang as string)
- method GetBoolVariable(name as string, byref value as boolean) as boolean
- method GetBoxText(page as integer) as string
- method GetDoubleVariable(name as string, byref value as double) as boolean
- method GetHOCRText(page as integer) as string
- method GetIntVariable(name as string, byref value as integer) as boolean
- method GetLastInitLanguage as string
- method GetStringVariable(name as string) as string
- method GetText as string
- method GetVariableAsString(name as string) as string
- method Init(folder as folderitem, lang as string)
- method Init(path as string, lang as string)
- method InitForAnalysePage
- method MeanTextConf as integer
- method NumDawgs as integer
- method PrintVariablesToStdErr
- method PrintVariablesToStdOut
- method Recognize as integer
- method ResultIterator as TesseractResultIteratorMBS
- method SetImage(buffer as memoryblock, width as integer, height as integer, BytesPerPixel as integer, BytesPerLine as Integer) as boolean
- method SetImage(Pic as Picture) as boolean
- method SetInputName(name as string)
- method SetOutputName(name as string)
- method SetRectangle(left as integer, top as integer, width as integer, height as integer)
- method SetVariable(name as string, value as string) as boolean
- shared method Version as string
Page Segmentation Constants
| Constant | Value | Description |
|---|---|---|
| kPageSegModeAuto | 3 |
Fully automatic page segmentation, but no OSD. |
| kPageSegModeAutoOnly | 2 |
Automatic page segmentation, but no OSD, or OCR. |
| kPageSegModeAutoOSD | 1 |
Automatic page segmentation with orientation and script detection. (OSD) |
| kPageSegModeCircleWord | 9 |
Treat the image as a single word in a circle. |
| kPageSegModeOSDOnly | 0 |
Orientation and script detection only. |
| kPageSegModeSingleBlock | 6 |
Assume a single uniform block of text. (Default.) |
| kPageSegModeSingleBlockVerticalText | 5 |
Assume a single uniform block of vertically aligned text. |
| kPageSegModeSingleChar | 10 |
Treat the image as a single character. |
| kPageSegModeSingleColumn | 4 |
Assume a single column of text of variable sizes. |
| kPageSegModeSingleLine | 7 |
Treat the image as a single text line. |
| kPageSegModeSingleWord | 8 |
Treat the image as a single word. |
This class has no sub classes.
Some properties using for this class:
Some examples which use this class:
The items on this page are in the following plugins: MBS Real Studio OCR Plugin.
Links
MBS Xojo PDF Plugins