Giter Site home page Giter Site logo

Comments (9)

mittagessen avatar mittagessen commented on August 30, 2024 1

I know some people used WSL successfully in the past but we officially don't support Windows and I don't have access to any machine with which I could verify if kraken works or doesn't work with Windows/WSL.

You could increase the verbosity with -v to get a bit more output and see where exactly in the process it hangs but the segmenter is a complex beast and blind remote-debugging is unlikely to lead to much.

from kraken.

clovis avatar clovis commented on August 30, 2024 1

Solved by upgrading to the newest release. I am running Ubuntu 22.03, so this was not a WIndows issue on my end.

from kraken.

mittagessen avatar mittagessen commented on August 30, 2024 1

Interesting. There's was a regression in 5.0 with segmentation but that caused crashes not hangs. Anyway, good to see it has been resolved.

from kraken.

clovis avatar clovis commented on August 30, 2024

I also get the same issue when importing kraken in a Python script. It just hangs. I tried from iPython, and importing kraken also hangs.

from kraken.

fattynoparents avatar fattynoparents commented on August 30, 2024

I also get the same issue when importing kraken in a Python script. It just hangs. I tried from iPython, and importing kraken also hangs.

Did you find a solution?

from kraken.

fattynoparents avatar fattynoparents commented on August 30, 2024

Thanks everyone, upgrading to the latest version has solved my issue as well, so it wasn't a problem of WSL.

from kraken.

fattynoparents avatar fattynoparents commented on August 30, 2024

Interesting. There's was a regression in 5.0 with segmentation but that caused crashes not hangs. Anyway, good to see it has been resolved.

Yes seems in WSL it didn't give any visible crash.

One more question, unrelated, when running only segmentation in kraken is the only output a JSON file? Or is there a possibility to get a PageXML file? Or convert the resulting JSON to PageXML? Thanks!

from kraken.

mittagessen avatar mittagessen commented on August 30, 2024

from kraken.

fattynoparents avatar fattynoparents commented on August 30, 2024

You can run any serializer on segmentation output only as well: $ kraken -a -i ... segment -bl $ kraken -x -i ... segment -bl produces ALTO/PageXML respectively.

Thanks for your reply! However, both these commands give me the following error:

Segmenting      [04/25/24 11:06:55] 
ERROR    Failed processing /home/user/images/2024.03.07/1.jpg: 
'BaselineLine' object   kraken.py:429  has no attribute 'cuts'

from kraken.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.