From b4f5d44ac8ab5b45a85cd623bd0557f3f8d17378 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Thu, 1 Aug 2019 15:13:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20ocrd-bugs:=20bug-ocropy-segment-?= =?UTF-8?q?littering.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ocrd-bugs/bug-ocropy-segment-littering.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ocrd-bugs/bug-ocropy-segment-littering.sh diff --git a/ocrd-bugs/bug-ocropy-segment-littering.sh b/ocrd-bugs/bug-ocropy-segment-littering.sh new file mode 100644 index 0000000..50ec27b --- /dev/null +++ b/ocrd-bugs/bug-ocropy-segment-littering.sh @@ -0,0 +1,15 @@ +#!/bin/bash -x +cd `mktemp -d` + +virtualenv -p /usr/bin/python3 venv +. venv/bin/activate +pip install ocrd-ocropy + +wget https://ocr-d-repo.scc.kit.edu/api/v1/dataresources/1b0fb8b5-3397-4c99-9ec3-24d5954ac0fb/data/bernd_lebensbeschreibung_1738.ocrd.zip +dtrx bernd_lebensbeschreibung_1738.ocrd.zip + +cd bernd_lebensbeschreibung_1738.ocrd/data +ocrd-ocropy-segment -m mets.xml -I OCR-D-IMG -O OCR-D-SEG-LINES + +pip list | grep ocrd +ls -l