Platforms to show: All Mac Windows Linux Cross-Platform

Back to TessPageIteratorMBS class.

TessPageIteratorMBS.Baseline(Level as Integer, byref x1 as Integer, byref y1 as Integer, byref x2 as Integer, byref y2 as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the baseline of the current object at the given level.

The baseline is the line that passes through (x1, y1) and (x2, y2).

Warning: with vertical text, baselines may be vertical!

Returns false if there is no baseline at the current position.

TessPageIteratorMBS.Begin

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Moves the iterator to point to the start of the page to begin an iteration.

TessPageIteratorMBS.BinaryImage(Level as Integer) as PIcture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a binary image of the current object at the given level.

The position and size match the return from BoundingBoxInternal, and so this could be upscaled with respect to the original input image.

TessPageIteratorMBS.BoundingBox(Level as Integer, byref Left as Integer, byref Top as Integer, byref Right as Integer, byref Bottom as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the bounding rectangle of the current object at the given level.

Returns false if there is no such object at the current position.
The returned bounding box is guaranteed to match the size and position of the image returned by GetBinaryImage, but may clip foreground pixels from a grey image. The padding argument to GetImage can be used to expand the image to include more foreground pixels. See BinaryImage below.

TessPageIteratorMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The private constructor.

TessPageIteratorMBS.CopyIterator as TessPageIteratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a copy of the iterator.

TessPageIteratorMBS.IsAtBeginningOf(Level as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns true if the iterator is at the start of an object at the given level.

TessPageIteratorMBS.IsAtFinalElement(Level as Integer, element as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns whether the iterator is positioned at the last element in a given level. (e.g. the last word in a line, the last line in a block)

TessPageIteratorMBS.MoveNext(Level as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OCR MBS OCR Plugin 21.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Moves to the start of the next object at the given level in the page hierarchy, and returns false if the end of the page was reached.

NOTE that symbol will skip non-text blocks, but all other PageIteratorLevel level values will visit each non-text block once. Think of non text blocks as containing a single paragraph, with a single line, with a single imaginary word. Calls to Next with different levels may be freely intermixed. This function iterates words in right-to-left scripts correctly, if the appropriate language has been loaded into Tesseract.

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


The biggest plugin in space...