Platforms to show: All Mac Windows Linux Cross-Platform

Back to TesseractMBS class.

Previous items

TesseractMBS.SetRectangle(left as Integer, top as Integer, width as Integer, height as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 12.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Restrict recognition to a sub-rectangle of the image.

Call after SetImage. Each SetRectangle clears the recogntion results so multiple rectangles can be recognized with the same image.

TesseractMBS.SetResolution(Resolution as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 15.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Set the resolution of the source image in pixels per inch so font size information can be calculated in results.

Call this after SetImage.

TesseractMBS.SetVariable(name as string, value as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 12.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Set the value of an internal "parameter."

Supply the name of the parameter and the value as a string, just as you would in a config file.
Returns false if the name lookup failed.
E.g. SetVariable("tessedit_char_blacklist", "xyz"); to ignore x, y and z.
Or SetVariable("classify_bln_numeric_mode", "1"); to set numeric-only mode.
SetVariable may be used before Init, but settings will revert to defaults on End().

Note: Must be called after Init(). Only works for non-init variables (init variables should be passed to Init()).

Previous items

The items on this page are in the following plugins: MBS OCR Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...