Have you updated the following in the example to the path in your setup ...
PATH_TO_LIBTESS = '/path/to/development/libtesseract.so' ShreeDevi ____________________________________________________________ भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com On Mon, May 8, 2017 at 8:39 AM, Mike Zang <[email protected]> wrote: > I do replace gcc just before compilation of tesseract. I wonder if need to > recompile python or the lib cffi (the example used to call c api in > python). Would python or cffi cause that error? > I'm not that familiar with C/C++ and also thanks for the reply. > > 在 2017年5月7日星期日 UTC+8下午10:13:28,zdenop写道: >> >> His error has nothing to do with API example. >> He has problem related to linking (replaced gcc after compilation?) >> >> Zdenko >> >> On Sun, May 7, 2017 at 2:14 PM, ShreeDevi Kumar <[email protected]> >> wrote: >> >>> Most probably the API example has not been updated for tesseract 4. >>> >>> There have been many changes - >>> Please see https://abi-laboratory.pro/tracker/timeline/tesseract/ >>> >>> ShreeDevi >>> ____________________________________________________________ >>> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com >>> >>> On Sun, May 7, 2017 at 5:36 PM, Mike Zang <[email protected]> wrote: >>> >>>> I update gcc to 4.8.5 to support c++ 11 before compile and install >>>> tesseract. I tried api example with 4.0 failed in this page - >>>> https://github.com/tesseract-ocr/tesseract/wiki/APIExample#c >>>> -api-in-python. >>>> OS is Centos 6, I compile and install tessearct exactly the way as the >>>> wiki page writes, and I tried reinstall cffi lib of python which didn't >>>> work. Do I need to recompile&install my python with new gcc4.8 or something >>>> alse? >>>> >>>> Somebody help! >>>> >>>> >>>> >>>> 在 2017年5月6日星期六 UTC+8下午11:40:56,Mike Zang写道: >>>>> >>>>> Got "undefined symbol omp_get_thread_num" while try API example >>>>> "extracting orientation from Tesseract 4.0" with python and >>>>> tesseract-master. >>>>> >>>>> Help! >>>>> >>>>> Ok using tesseract command line. >>>>> Does that mean there is some problem with my python (both 2.6 and 3.4 >>>>> not work) or some other environment issues? >>>>> >>>>> -- >>>> 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/ms >>>> gid/tesseract-ocr/4fedfab4-9edd-4eb0-b3ce-ab3ef8ec4f83%40goo >>>> glegroups.com >>>> <https://groups.google.com/d/msgid/tesseract-ocr/4fedfab4-9edd-4eb0-b3ce-ab3ef8ec4f83%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/ms >>> gid/tesseract-ocr/CAG2NduVeeMaFBXmiKxDxHZk-b--W3ZaswUD- >>> ZunOY-k-Zijp_Q%40mail.gmail.com >>> <https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduVeeMaFBXmiKxDxHZk-b--W3ZaswUD-ZunOY-k-Zijp_Q%40mail.gmail.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/937ec061-d690-41bb-9022-2b9fd9d9ad21% > 40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/937ec061-d690-41bb-9022-2b9fd9d9ad21%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/CAG2NduXmoQ--TMXkeZtVtS4aSAqQzLzt1EzVS6dxomhJi3nsyg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

