Comments (6)
I thought this was fixed in this commit.
from banti_telugu_ocr.
May be the above commit fixes the same problem but elsewhere.
Also, Shouldn't the requirements file say >= in stead of == ?
from banti_telugu_ocr.
It is better not to have >=
. If upstream packages introduces any changes, people using banti face problems and start complaining here.
Maintainers should first verify with new versions and have to update requirements file accordingly.
from banti_telugu_ocr.
Makes sense. That is what is happening here. Upstream Pillow is not supporting zero as width and height.
>>> from PIL import Image as im
>>> import numpy as np
>>> im.fromarray(np.empty((0, 0), dtype=np.uint8))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/dist-packages/PIL/Image.py", line 2187, in fromarray
return frombuffer(mode, size, obj, "raw", rawmode, 0, 1)
File "/usr/local/lib/python3.4/dist-packages/PIL/Image.py", line 2114, in frombuffer
_check_size(size)
File "/usr/local/lib/python3.4/dist-packages/PIL/Image.py", line 2001, in _check_size
raise ValueError("Width and Height must be > 0")
ValueError: Width and Height must be > 0
Do we file a bug there or update our code to not depend on 0x0 images?
from banti_telugu_ocr.
I filed a bug there.
from banti_telugu_ocr.
It is better to fix it in upstream. Thanks.
from banti_telugu_ocr.
Related Issues (12)
- banti vs chamanti HOT 4
- how to use your serial project to realize a ocr for chinese HOT 5
- When try to run get an error HOT 8
- RecursionError occurs while processing HOT 5
- Facing issues
- తప్పు
- క్ర క్రై క్రే
- Ngram needs to look for all the 457 codes.
- Training data and the CNN training file. HOT 5
- pls provide banti_segmenter binary for mac osx HOT 2
- Segmentation fault with banti segmenter HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from banti_telugu_ocr.