pysseract.ResultIterator.Next

ResultIterator.Next(self: _pysseract.ResultIterator, pageIterLv: _pysseract.PageIteratorLevel) → bool

Moves to the start of the next object at the given level in the page hierarchy in the appropriate reading order and returns false if the end of the page was reached. Note that using the SYMBOL level 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 para, 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.