Closed freen closed 5 years ago
Okay, I can replicate that issue with updated numpy, scipy.
The error message indicates that the line 165 of gpageseg.py
is a problem: https://github.com/tmbdev/ocropy/blob/d3e5cc60b64d070b60d606a16baeda6b436cc23b/ocropus-gpageseg#L165
Because the matrix contains True
, False
and not any number. One possible solution is to change that line into:
imsave(fname,image.astype('float'))
Can you confirm that this works?
I am not sure whether float
or maybe int
would be better here....
@zuphilip Confirmed that we tested the patch in PR #301 and it fixed our issue
Expected Behavior
That
ocropus-gpageseg
splits this document image into rows.Current Behavior
Instead,
ocropus-gpageseg
is crashing with a numpy deprecationTypeError
.The Error in question is raised in numpy here, as of numpy version v1.14.2, committed in November 2016: https://github.com/numpy/numpy/commit/c9adc35e68b92b10ab0b20069465fd784388bc14
Possible Solution
Nothing yet.
Steps to Reproduce (for bugs)
Run this command on the attached image (bottom of issue):
Your Environment
Image: 19320671_0.png