Instead of using the Tesseract Obj-C wrapper I need to use the C++ one,
this is because I am using OpenCV and when I convert the `cvMat` to a
`UIImage` I do not get the original image from the `cvMat` back.
What I plan on doing is converting the `cvMat` to a `PIX` in hopes that it
will better preserve the original image.
Since the Obj-C wrapper `setImage` takes a `UIImage` I need the C++ version
which takes a `PIX`.
Here is how I plan on using the C++ version:
tesseract::TessBaseAPI tess;
cv::Mat sub = image(cv::Rect(50, 200, 300, 100));
tess.SetImage((uchar*)sub.data, sub.size().width, sub.size().height, sub
.channels(), sub.step1());
tess.Recognize(0);
const char* out = tess.GetUTF8Text();
Can someone tell me how I can use the C++ lib in an iOS project? I am
already writing Obj-C++, I just need to add the C++ tesseract.
Thanks.
--
--
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
---
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.