Comments (3)
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.
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.
from kraken.
Related Issues (20)
- Upgrade to shapely 2.0 HOT 5
- GPU parallelisation? HOT 1
- Training on kraken 5.2.2 visual issue HOT 1
- lift pytorch restrictive version constraints HOT 7
- kraken 5.2.4 on eScriptorium recognition artefacts HOT 11
- Recognition aborts at "baselines" which are only a point HOT 6
- Line detection does not work with version 5.0.0 HOT 1
- Quality of kraken confidence measures HOT 1
- problem with old Alto files HOT 4
- Training a models throws "could not create a primitive descriptor for an LSTM forward propagation primitive" HOT 1
- Region without bounds crashes at serialization
- Support for Python 3.12 HOT 3
- 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 24
- Fine-tuned segmentation model fails to determine regions HOT 1
- Segment command with separate baseline and region models? HOT 2
- AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? HOT 1
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.