Closed fattynoparents closed 2 months ago
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.
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?
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.
Solved by upgrading to the newest release. I am running Ubuntu 22.03, so this was not a WIndows issue on my end.
Thanks everyone, upgrading to the latest version has solved my issue as well, so it wasn't a problem of WSL.
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.
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!
On 24/04/24 06:33AM, fattynoparents wrote:
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!
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.
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'
I have installed kraken to my wsl using the
$ pip install kraken
command. I am mostly interested in the segmentation process, mainly if kraken can produce mask files with baselines in them. I tried investigating how segmentation works, in the tutorial I found this info:but when I try to run this command on one of my pictures nothing happens at all. I get no error and no output, it just hangs there until I abort the command. What am I doing wrong? Thanks a lot in advance!