lucasba / pytess Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/pytess
Automatically exported from code.google.com/p/pytess
After running
sudo python setup.py install (first fixing the includes),
I attempted to run
tess-lines alice.png
on the example file, but it died immediately claiming to be unable to import
_tess
After poking around a bit, I discovered that
/usr/local/lib/python2.7/dist-packages/_tess.so was missing world read &
execute permissions.
Adding them with sudo chmod +rx _tess.so fixed things up so the import worked.
Original issue reported on code.google.com by tfmorris
on 20 Nov 2012 at 4:44
setup.py specifies /usr/local/include and /usr/include/tesseract for includes,
but with the latest tesseract built from SVN on my system by following the
instructions in the tesseract wiki, the apitypes.h file actually ends up in
/usr/local/include/tesseract, not /usr/include/tesseract.
Patching setup.py allowed the build to complete
diff -r b4c26aa2af8c setup.py
--- a/setup.py Tue Nov 20 15:00:56 2012 +0100
+++ b/setup.py Tue Nov 20 10:24:28 2012 -0500
@@ -9,7 +9,7 @@
opts = [x for x in opt.split() if "-W" not in x]
os.environ["OPT"] = " ".join(opts)
-include_dirs = ['/usr/local/include',"/usr/include/tesseract"]
+include_dirs = ['/usr/local/include',"/usr/local/include/tesseract"]
swig_opts = ["-c++"] + ["-I" + d for d in include_dirs]
swiglib = os.popen("swig -swiglib").read()[:-1]
Original issue reported on code.google.com by tfmorris
on 20 Nov 2012 at 3:25
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.