Hello group, i have three main questions regarding to the best way to use Tesseract from a C++ application.
The application i'm making is built around the Qt framework. As some of you may already know, there is a really neat object in Qt: QImage. This object gives the developer a really easy way to manipulate images, without being worried about their format and depth. Various formats are available (TIFF is one of them), and of course, depths (1BPP is supported too, MSB and LSB). And that's my first question. i'm actually testing with the tesseract API provided with the sources (The TessDllAPI object). i'm trying to use the QImage::bits() method to actually provide a pointer to the data internally maintained by QImage, but it just fails (There is no error, but the output is garbage, like if the image is read a wrong way). Do you have any idea how i can use this QImage object a way which Tesseract likes? What is the exact format of the IMAGE class? How are the bits ordered? My second question is more about Tesseract's source code itself. i have noticed that there is a very ugly definition of an API object TessBaseAPI (All functions are static, there are not much documentation about how to really basically use the thing, in what order to call the functions, etc). Also, i notice that TessDllAPI inherits this base API, but never uses any of the static functions defined in the parent's object. What is that all about? Is one of them deprecated or something? Is there anywhere i can find documentation on how to actually use this TessBaseAPI? My third question is about deprecation, maintenance, etc. After looking at all online resources, and after reading much of the source code of Tesseract, i'm kind of confused about what i should do now... If a new release is out, what is most likely to be compatible with what already exists? The TessBaseAPI? The sequential functions? What about version 3, would it be compatible with my code if i use what? Thanks a lot for your time reading me, Pierre. -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en.

