From 26283c6a3bcf4fa7c22e7458add78faacf9b55ab Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Tue, 4 May 2021 18:12:21 +0200 Subject: [PATCH 1/2] :package: v0.0.2 --- CHANGELOG.md | 8 ++++++++ qurator/eynollah/ocrd-tool.json | 2 +- setup.py | 5 ++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb1e5ac..a474c45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,17 @@ Versioned according to [Semantic Versioning](http://semver.org/). ## Unreleased +## [0.0.2] - 2021-05-04 + +Fixed: + + * prevent negative coordinates for textlines in marginals + * fix a bug in the contour logic, #8 + ## [0.0.1] - 2021-04-22 Initial release +[0.0.1]: ../../compare/v0.0.2...v0.0.1 [0.0.1]: ../../compare/HEAD...v0.0.1 diff --git a/qurator/eynollah/ocrd-tool.json b/qurator/eynollah/ocrd-tool.json index 01d48fa..2723b81 100644 --- a/qurator/eynollah/ocrd-tool.json +++ b/qurator/eynollah/ocrd-tool.json @@ -1,5 +1,5 @@ { - "version": "0.0.1", + "version": "0.0.2", "git_url": "https://github.com/qurator-spk/eynollah", "tools": { "ocrd-eynollah-segment": { diff --git a/setup.py b/setup.py index a54bb58..9abf158 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,13 @@ from setuptools import setup, find_packages +from json import load install_requires = open('requirements.txt').read().split('\n') +with open('ocrd-tool.json', 'r', encoding='utf-8') as f: + version = load(f)['version'] setup( name='eynollah', - version='0.0.1', + version=version, long_description=open('README.md').read(), long_description_content_type='text/markdown', author='Vahid Rezanezhad', From c88865e98343799d3766f9b09a72ad73ee8c396d Mon Sep 17 00:00:00 2001 From: vahidrezanezhad Date: Tue, 4 May 2021 13:05:46 -0400 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a474c45..41fe8e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Fixed: * prevent negative coordinates for textlines in marginals * fix a bug in the contour logic, #8 + * the binarization model is added into the models and now binarization of input can be done at the first stage of eynollah's pipline. This option can be turned on by -ib (-input_binary) argument. This is suggested for very dark or bright documents ## [0.0.1] - 2021-04-22