🧹 Remove old OCR-D bug reproducers

pull/38/head
Gerber, Mike 4 years ago
parent ad2e87781e
commit 1f12b0b1e8

@ -1,13 +0,0 @@
#!/bin/bash -x
cd `mktemp -d`
wget https://ocr-d-repo.scc.kit.edu/api/v1/dataresources/8d8aa287-94ca-48e3-84a8-1ee602871550/data/lohenstein_agrippina_1665.ocrd.zip
dtrx lohenstein_agrippina_1665.ocrd.zip
cd lohenstein_agrippina_1665.ocrd/data
ocrd_typegroups_classifier_parameters='
{
"network": "/home/mike/devel/OCR-D/monorepo/ocrd_typegroups_classifier/ocrd_typegroups_classifier/models/classifier.tgc",
"stride":143
}'
ocrd-typegroups-classifier -l DEBUG \
-m mets.xml -I OCR-D-IMG -O OCR-D-FONTIDENT \
-p <(echo $ocrd_typegroups_classifier_parameters)

@ -1,10 +0,0 @@
# zips all from https://ocr-d-repo.scc.kit.edu/api/v1/metastore/bagit
for z in benner_herrnhuterey04_1748.ocrd.zip buerger_gedichte_1778.ocrd.zip estor_rechtsgelehrsamkeit02_1758.ocrd.zip lohenstein_agrippina_1665.ocrd.zip silesius_seelenlust01_1657.ocrd.zip; do
echo "== $z"
cd `mktemp -d`
cp /srv/data/OCR-D/$z .
dtrx $z
cd ${z//.zip}/data
ocrd-ocropy-segment -l DEBUG -m mets.xml -I OCR-D-IMG -O OCR-D-SEG-LINE 2>&1 | tail -n 1
done

@ -1,15 +0,0 @@
#!/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

@ -1,7 +0,0 @@
#!/bin/sh
set -x
cd `mktemp -d`
wget -q https://ocr-d-repo.scc.kit.edu/api/v1/dataresources/f15fb8c8-3842-4314-9a44-5e8b472d7bfc/data/buerger_gedichte_1778.ocrd.zip
dtrx buerger_gedichte_1778.ocrd.zip
cd buerger_gedichte_1778.ocrd/data
ocrd workspace validate mets.xml

@ -1,2 +0,0 @@
#!/bin/bash -x
ocrd-tesserocr-segment-line --help

@ -1,6 +0,0 @@
#!/bin/bash -x
cd `mktemp -d`
wget https://ocr-d-repo.scc.kit.edu/api/v1/dataresources/8d8aa287-94ca-48e3-84a8-1ee602871550/data/lohenstein_agrippina_1665.ocrd.zip
dtrx lohenstein_agrippina_1665.ocrd.zip
cd lohenstein_agrippina_1665.ocrd/data
ocrd-tesserocr-segment-line -l DEBUG -m mets.xml -I DOES-NOT-EXIST -O OCR-D-SEG-REGION

@ -1,16 +0,0 @@
#!/bin/sh
# Most/All workspaces in bag files don't validate
# https://github.com/OCR-D/assets/issues/63
set -e
cd `mktemp -d`
virtualenv venv
. venv/bin/activate
pip install --pre ocrd
wget https://ocr-d-repo.scc.kit.edu/api/v1/dataresources/558280e0-c40a-49ae-81ab-679bc29567c3/data/gerstner_mechanik01_1831.zip
dtrx gerstner_mechanik01_1831.zip
cd gerstner_mechanik01_1831/data
ocrd workspace validate mets.xml
Loading…
Cancel
Save