Comments (5)
The types image morphology functions accept in NumPy depend on the platform and version of Python. You could try using a different Python implementation (e.g., Anaconda). Alternatively, you need to track down what is going on with the types and submit a patch (please make sure to do so in a way that doesn't break it on other platforms).
from dup-ocropy.
I'm also on OSX El Capitan and I'm getting a pretty similar error:
ocropus-gpageseg -n --maxcolseps 0 book/0001.bin.png
INFO:
INFO: ########## /usr/local/bin/ocropus-gpageseg -n --maxcolseps 0 book/0001.
INFO:
INFO: book/0001.bin.png
INFO: scale 18.3303027798
INFO: computing segmentation
INFO: computing column separators
INFO: computing lines
INFO: propagating labels
Traceback (most recent call last):
File "/usr/local/bin/ocropus-gpageseg", line 423, in safe_process1
process1(job)
File "/usr/local/bin/ocropus-gpageseg", line 379, in process1
segmentation = compute_segmentation(binary,scale)
File "/usr/local/bin/ocropus-gpageseg", line 320, in compute_segmentation
llabels = morph.propagate_labels(boxmap,seeds,conflict=0)
File "/Library/Python/2.7/site-packages/ocrolib/toplevel.py", line 209, in argument_checks
raise e
CheckError:
CheckError for argument labels of function <function propagate_labels at 0x1079f79b0>
<ndarray-7ff34a9ad4c0 (561, 716) uint64 [0,12]> of type <type 'numpy.ndarray'>: expected a segmentation image
Is that the same issue ? Thanks for your help!
Antonia
from dup-ocropy.
It looks for me that the problem here is also a test for integer values, which does not yet know uint64
. I try to add fix similar to 9be1ae0 but i cannot test on OS X El Captain.
from dup-ocropy.
@lihan @tonothan Please test whether the PR #285 fixes the issue here for you.
from dup-ocropy.
Should be fixed now.
from dup-ocropy.
Related Issues (20)
- Model for french medieval manuscript HOT 9
- Manually correcting segmentation HOT 2
- --probabilities option of ocropus-rpred causes IndexError HOT 1
- I can't run the test HOT 4
- i HOT 2
- Is there a graphical depiction of the model being used/trained here? HOT 4
- I get bad scaling issues HOT 2
- Error running : ocropus-nlbin ersch.png -o book HOT 2
- Having ERROR: book/0001.bin.png SKIPPED image too tall for a text line (1080, 1920) (use -n to disable this check) HOT 1
- How does it apply to java HOT 4
- Trying to test out ocropus from sources
- 404 Not Found for en-default.pyrnn.gz HOT 1
- AssertionError: you must install and use OCRopus with Python version 2.7 or later, but not Python 3.x HOT 7
- EOF error with cpickle.Unpickler in common.py HOT 2
- Not found, while second step with wget, ERROR 404: Not Found. HOT 1
- run-test, error, with Python 3.7.4 HOT 1
- can't set up conda environment correctly for ocropus HOT 1
- ocropy-gtedit changes certain punctuation and diacritic characters HOT 1
- I want to get 1,000 synthetically generated data? Where do i set the number of data's to be generated? Thanks
- On-premise to cloud migration issue
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 dup-ocropy.