Platforms to show: All Mac Windows Linux Cross-Platform
TesseractMBS class Deprecated
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | OCR | MBS OCR Plugin | 12.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This item is deprecated and should no longer be used.
You can use TessEngineMBS class instead.
The plugin class to provide OCR by using the tesseract open source library.
See example projects on how to use it.
- 2 properties
- property Handle as Integer
- property PageSegMode as Integer
- 31 methods
- 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 RecognizeMT 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 SetResolution(Resolution as Integer)
- method SetVariable(name as string, value as string) as boolean
- shared method Version as string
- 11 constants
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:
- TesseractResultIteratorMBS.Parent as TesseractMBS
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 22.5pr7
- Introducing Tesseract 4 to Xojo
- Multithreaded plugin functions can increase speed of Xojo application
- Live barcode detection with Xojo for MacOS
- Problems with killing Xojo threads with plugin calls.
- MBS Xojo / Real Studio Plugins, version 15.1pr6
- MBS Xojo / Real Studio Plugins, version 14.2pr5
- MBS Xojo / Real Studio Plugins, version 13.2pr8
- OCR for Real Studio and Filemaker
Release notes
- Version 22.5
- Deprecated TesseractMBS, TesseractChoiceIteratorMBS and TesseractResultIteratorMBS classes.
The items on this page are in the following plugins: MBS OCR Plugin.
TesseractErrorExceptionMBS - TesseractNotInitializedExceptionMBS