Absolute beginner requesting help for getting started with Tesseract in C++ application.

185 views
Skip to first unread message

Dhairya Shah

unread,
Apr 25, 2017, 2:41:18 AM4/25/17
to tesseract-ocr
Dear All,
I am absolute complete beginner with tesseract or use of external application for that case. I want to write a cpp application that uses tesseract api( baseapi.h and allheader.h) However I could not find any tutorial on the internet which tells me how to add these libraries to my ide(code blocks)

I am using windows 64bit.

The question I want to ask is:
     1) inorder to include baseapi.h , is installing tesseract using windows installer enough or do I have to do something else.( I figure I have to download tesseract-ocr from git)?
     2) I have sucessfully downloaded and installed leptonica, please guide me how to link the libraries in codeblocks.( i have tried messing around with settings->linker settings , but hace no success).

I just want to write a small application which uses tesseract api. Please give me any input regarding how to do this, Using codeblocks or c++ is not necessary. any ide or any language would do. If you tell me how to compile my cpp applicaation using cmd also that would be more than helpful.

Once again I am complete beginner,kindly help me out and im sorry if i sound stupid.
thanks.

ShreeDevi Kumar

unread,
Apr 25, 2017, 2:58:33 AM4/25/17
to tesser...@googlegroups.com

--
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 tesseract-ocr+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
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/4b605e03-16e4-4db5-8775-cbed6738594e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dhairya Shah

unread,
Apr 25, 2017, 12:04:17 PM4/25/17
to tesseract-ocr
Hello Shree,

Thank you for your reply I have already tried these links but they are not working out for me.
This is where I'm getting stuck:
    
See it says to install git and cmake, which i did and when i run both git -version and cmake from cmd I get the versions
   

 However then it says to install cppan. For windows, it just required to extract cppan.exe and set environment variable. Which I did.
Unfortunately after that when I run cppan from cmd it shows error saying cppan.exe has stopped working
    
Thank you for providing me with the links and I would be grateful if you help me sort this issue out also.

Regards,
Dhairya



On Tuesday, 25 April 2017 12:28:33 UTC+5:30, shree wrote:
On 25-Apr-2017 12:11 PM, "Dhairya Shah" <dhairy...@gmail.com> wrote:
Dear All,
I am absolute complete beginner with tesseract or use of external application for that case. I want to write a cpp application that uses tesseract api( baseapi.h and allheader.h) However I could not find any tutorial on the internet which tells me how to add these libraries to my ide(code blocks)

I am using windows 64bit.

The question I want to ask is:
     1) inorder to include baseapi.h , is installing tesseract using windows installer enough or do I have to do something else.( I figure I have to download tesseract-ocr from git)?
     2) I have sucessfully downloaded and installed leptonica, please guide me how to link the libraries in codeblocks.( i have tried messing around with settings->linker settings , but hace no success).

I just want to write a small application which uses tesseract api. Please give me any input regarding how to do this, Using codeblocks or c++ is not necessary. any ide or any language would do. If you tell me how to compile my cpp applicaation using cmd also that would be more than helpful.

Once again I am complete beginner,kindly help me out and im sorry if i sound stupid.
thanks.

--
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 tesseract-oc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages