Giter Site home page Giter Site logo

Comments (3)

tarrinw avatar tarrinw commented on July 26, 2024

Actually one can use the kraken shell commands (prefixed with '!') in these environments, but it would still be useful and slightly more efficient when building a wrapper application in Python not to have to call the shell which then runs code in Python anyway...

from kraken.

johnlockejrr avatar johnlockejrr commented on July 26, 2024

I think that's why the doc folder is there... https://github.com/mittagessen/kraken/tree/main/docs
https://github.com/mittagessen/kraken/blob/main/docs/api_docs.rst
https://github.com/mittagessen/kraken/blob/main/docs/api.rst
Quote:

from kraken import pageseg

seg = pageseg.segment(bw_im)
seg

Segmentation(type='bbox',
             imagename='foo.png',
             text_direction='horizontal-lr',
             script_detection=False,
             lines=[BBoxLine(id='0ce11ad6-1f3b-4f7d-a8c8-0178e411df69',
                             bbox=[74, 61, 136, 101],
                             text=None,
                             base_dir=None,
                             type='bbox',
                             imagename=None,
                             tags=None,
                             split=None,
                             regions=None,
                             text_direction='horizontal-lr'),
                    BBoxLine(id='c4a751dc-6731-4eea-a287-d4b57683f5b0', ...),
                    ....],
             regions={},
             line_orders=[])

You don't have to build a wrapper application in Python because kraken is written in Python and can be imported.

from kraken.

mittagessen avatar mittagessen commented on July 26, 2024

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.