Hi,

On Mon, Jun 30, 2014 at 09:25:23PM -0700, 韩煦深 wrote: 
> I'm a Chinese student and I want to use the tesseract-ocr in our linux system.
> I have Ubuntu OS and I install tesseract in my ubuntu system.
> But I don't know how to use C++ API in linux system because all the examples
> are based on VC++ and VS2010 maybe. In linux I can't use VC++ so If you know
> how to use API based on gcc or g++ in linux system, Thank a lot!

Sure. The examples given in 
https://code.google.com/p/tesseract-ocr/wiki/APIExample should 
certainly work fine for g++ in Linux.

I'm guessing you're asking what build commands you need. It works in 
quite a standard way, so nothing weird. Something like this should 
work fine:

  g++ -o myprogram myprogram.cpp -g -Wall -llept -ltesseract

If tesseract (or leptonica) is installed in a different place to the standard,
you can specify it like this:

  g++ -o myprogram myprogram.cpp -g -Wall -I/home/nick/local/include/tesseract 
-L/home/nick/local/lib -llept -ltesseract

Let us know if you need anything more. I'll probably add these examples to the
wiki soon, thanks for the prompt :)

Nick

-- 
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 http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/20140701151656.GC28769%40manta.lan.
For more options, visit https://groups.google.com/d/optout.

Reply via email to