Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dvc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/lock
/config.local
/updater
/updater.lock
/state-journal
/state-wal
/state
/cache
4 changes: 4 additions & 0 deletions .dvc/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
['remote "jsde"']
url = ssh://me@janek-schleicher.de:/home/me/data/ocrd_segments
[core]
remote = jsde
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,8 @@ venv.bak/
# vim tmp
*.swp
*.swo

# Input files
/input
/downscale*
/masks*
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,26 @@ This repository aims to provide a number of OCR-D-compliant processors for layou
- data-driven segmentation aka. `ocrd-segment-via-model` (input file groups N=1, based on a statistical model, e.g. Neural Network)
- comparing different layout segmentations aka. `ocrd-segment-evaluate` (input file groups N = 2, compute the distance between two segmentations, e.g. automatic vs. manual)
- repairing of layout segmentations aka. `ocrd-segment-repair` (input file groups N >= 1, based on heuristics implemented using Shapely)


## Installation

### Requirements

$ virtualenv env --python=python3.7 # 3.8 did not work yet for all needed libraries at 2019-08-21
$ source env/bin/activate
(env) pip install -r requirements.txt # TODO(js): Pin requirements

### Jupyter Notebook Kernel preparation (to use the virtualenv)

# XXX(js): Not sure whether we'll need it for a
(env) ipython kernel install --user ocrd-segmentations

#### And who like VIM key bindings

(env) jupyter nbextension install https://raw.githubusercontent.com/lambdalisue/jupyter-vim-binding/master/vim_binding.js --nbextensions=$(jupyter --data-dir)/nbextensions/vim_binding
(env) jupyter nbextension enable vim_binding/vim_binding

#### Run the jupyter notebook

(env) jupyter notebook
1 change: 1 addition & 0 deletions downscale_to_4th/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/models
8 changes: 8 additions & 0 deletions downscale_to_4th/models.dvc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
md5: 028b7fab56f70c52f962fad0d19ed1a2
wdir: .
outs:
- md5: 7dac48b7918bc02e6b49b56daade5fad.dir
path: models
cache: true
metric: false
persist: false
Loading