Comments (4)
Thanks for the report, the segmentation code is taken directly from ocropus and hasn't been touched in quite a while (so this issue was probably introduced when numpy changed their in-place casting behavior).
Could you attach one of your input files? It's possible there are similar errors caused by in-place assignment in other places and I'd like to fix all I can find before closing this issue.
from kraken.
NP. This should be reproducible with any input, for example this image: https://upload.wikimedia.org/wikipedia/commons/7/75/Dan'l_Druce,_Blacksmith_-_Illustrated_London_News,_November_18,_1876_-_text.png
Funny though, I just tried ocropy and had a similar error. Since I haven't touched it for several months, I guess it has to do with updated Python stuff.
from kraken.
Recent builds are also failing for probably the same reason.
from kraken.
Yeah it is caused by the numpy people changing behavior of type-casting between 1.9.x and 1.10 (it's even in their future changes section of the changelog). Should be fixed in 0.7.2.
from kraken.
Related Issues (20)
- Optimized distribution of packet for inference only HOT 3
- It there a way to simply call kraken recognizer from code? HOT 1
- finetune error on altos containing > or < as txt HOT 7
- serialization problem when using segmodel that has same name for linetypes and regiontypes.
- bad polygons HOT 28
- Fine-tuned segmentation model fails to determine regions HOT 1
- Segment command with separate baseline and region models? HOT 5
- AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? HOT 1
- Failure to read varying text sizes in a Newspaper page HOT 7
- polygonisation for vertical writing systems HOT 8
- pretrain: UnboundLocalError HOT 1
- Segmentation: batch input not working HOT 1
- Kraken install post-July 20 2024 are all broken because of python-bidi
- No such option: --device , -d (how to switch between gpu and cpu computing?) HOT 2
- fix --no-segmentation bug
- access to kraken.re ! HOT 3
- Invalid bounding polygon computed exception during segmentation HOT 7
- Segmentation requires libcurand and libcufft HOT 1
- Exception when forcing binarization in segtrain command HOT 13
- Exception when using the reduceonplateau parameter in segtrain command
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 kraken.