Platforms to show: All Mac Windows Linux Cross-Platform

TessResultRendererMBS class   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
class OCR MBS OCR Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Interface for rendering tesseract results into a document, such as text, HOCR or pdf.
Example
var ocr as new TessEngineMBS

// initialize with right paths
If Not ocr.Initialize(tessdataPath, Languages) Then
MsgBox "failed to initialize"
Quit
End If

// pass image file
ocr.SetImageFile(imagefile)

// now write PDF file
Var p As FolderItem = SpecialFolder.Desktop.Child("test") // no extension!
Var r As TessResultRendererMBS = TessResultRendererMBS.CreatePDFRenderer(p.NativePath)

If r.BeginDocument("Hello") Then

Call ocr.ProcessPages(ImageFile.NativePath, "", 0, r)

call r.EndDocument
End If

This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

This class has no sub classes.

Blog Entries

Release notes

Some methods using this class:

  • TessEngineMBS.ProcessPages(ImageFilePath as String, RetryConfig as String = "", TimeOutMilliSec as Integer = 0, Renderer as TessResultRendererMBS) as Boolean

Some related classes:


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


TessResultIteratorMBS   -   TextArea


The biggest plugin in space...