Sicos1977 / TesseractOCR

A .net library to work with Google's Tesseract
169 stars 21 forks source link

Page.GetIterator() method missing #14

Closed kostelis closed 2 years ago

kostelis commented 2 years ago

Hi there, I am trying to migrate from https://github.com/charlesw/tesseract to your package. So far everything seems great, the performance is much better, but I find that Page.GetIterator() method is missing. Did you move it under some other method, or is it gone for good?

Sicos1977 commented 2 years ago

I made the iteration C# compatible that is why I removed the Page.GetIterator() method

You now can use a normal foreach to loop through all the page objects. See this examle in the read.me

https://github.com/Sicos1977/TesseractOCR#iterate-through-the-layout-of-a-page

kostelis commented 2 years ago

Oh wow, that is brilliant, thanks!

Sicos1977 commented 2 years ago

Your welcome, I did not like the Page.GetIterator() method because I found it difficult to work with. And using a foreach is much easier to work with.