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/ > msgid/tesseract-ocr/4fedfab4-9edd-4eb0-b3ce-ab3ef8ec4f83% > 40googlegroups.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/msgid/tesseract-ocr/CAG2NduVeeMaFBXmiKxDxHZk-b--W3ZaswUD-ZunOY-k-Zijp_Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

