fouady / ror-tesseract-heroku Goto Github PK
View Code? Open in Web Editor NEWTesseract OCR server in RoR
License: MIT License
Tesseract OCR server in RoR
License: MIT License
Hey hoping you can help me. Trying to use your code to build an ocr thing for my site. I have this located up on heroku using the multipack and what not. But when I try to POST an image, the executable returns tesseract: error while loading shared libraries: libtiff.so.4: cannot open shared object file: No such file or directory
. Any idea how to fix this? Thanks so much!
I got this error when trying to deals with Tesseract
(1, 'Error opening data file /app/vendor/tesseract-ocr/tessdata/eng.traineddata')
Traceback
Environment:
Request Method: POST
Request URL: https://cyc-new.herokuapp.com/uploads/img_upload/
Django Version: 1.9
Python Version: 2.7.13
Installed Applications:
['rest_framework',
'background_task',
'userApp',
'imageUpload',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
149. response = self.process_exception_by_middleware(e, request)
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
147. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
58. return view_func(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/rest_framework/viewsets.py" in view
87. return self.dispatch(request, *args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/rest_framework/views.py" in dispatch
466. response = self.handle_exception(exc)
File "/app/.heroku/python/lib/python2.7/site-packages/rest_framework/views.py" in dispatch
463. response = handler(request, *args, **kwargs)
File "/app/imageUpload/views.py" in create
49. asd=ocr(serializer)
File "/app/imageUpload/views.py" in ocr
20. return pytesseract.image_to_string(Image.open(InputFile))
File "/app/.heroku/python/lib/python2.7/site-packages/pytesseract/pytesseract.py" in image_to_string
164. raise TesseractError(status, errors)
Exception Type: TesseractError at /uploads/img_upload/
Exception Value: (1, 'Error opening data file /app/vendor/tesseract-ocr/tessdata/eng.traineddata')
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.