Thank you! Well it works now, but if run a test I get a error (LNK 2019)
for every tesseract command I wrote. The sample code I use is:
#include <tesseract/baseapi.h>
#include <leptonica/allheaders.h>
int main()
{
char *outText;
tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI();
// Initialize tesseract-ocr with English, without specifying tessdata
path
if (api->Init(NULL, "eng")) {
fprintf(stderr, "Could not initialize tesseract.\n");
exit(1);
}
// Open input image with leptonica library
Pix *image = pixRead("Text2(ENG).JPG");
api->SetImage(image);
// Get OCR result
outText = api->GetUTF8Text();
printf("OCR output:\n%s", outText);
// Destroy used object and release memory
api->End();
delete[] outText;
pixDestroy(&image);
return 0;
}
Is something with that wrong?
I am really sorry for the questions!!
Am Donnerstag, 25. Februar 2016 16:52:05 UTC+1 schrieb shree:
>
> See https://github.com/charlesw/tesseract
>
> He has used visual studio 2015
>
> - sent from my phone. excuse the brevity.
> On 25-Feb-2016 9:05 pm, <[email protected] <javascript:>> wrote:
>
>> Hello everyone,
>>
>> I was trying to install and compiling Tesseract first in Visual Studio
>> 2013 Express for Windows and then because I was not successful with it I
>> tried to install it in Xcode for Os X. I googled so many different websites
>> for finding any help but none of them was very helpful because they are all
>> from 2 years ago.
>>
>> For Windows I downloaded Tesseract here (
>> https://github.com/tesseract-ocr/tesseract) and also the Package for the
>> german language. Now I do not know how to set up the PATH and including the
>> files in Visual Studio.
>>
>> For Os X I installed Tesseract with MacPort but I get an error because it
>> does not find the header for Tesseract. But I do not know what I have been
>> doing wrong.
>>
>> Please help me , I am getting desperate. I am trying to install it for
>> several days!
>>
>> Thanks a lot!
>>
>> --
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/tesseract-ocr.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tesseract-ocr/fd88ee1c-d9fe-4c4b-a65e-f4a137f770b8%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/tesseract-ocr/fd88ee1c-d9fe-4c4b-a65e-f4a137f770b8%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
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].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/6b8d7ae8-5b57-42e0-8d4c-fc2530fdcea6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.