forked from cisocrgroup/ocrd_cis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
74 lines (70 loc) · 2.46 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
"""
Installs:
- ocrd-cis-align
- ocrd-cis-postcorrect
- ocrd-cis-data
- ocrd-cis-ocropy-clip
- ocrd-cis-ocropy-denoise
- ocrd-cis-ocropy-deskew
- ocrd-cis-ocropy-binarize
- ocrd-cis-ocropy-resegment
- ocrd-cis-ocropy-segment
- ocrd-cis-ocropy-dewarp
- ocrd-cis-ocropy-recognize
- ocrd-cis-ocropy-train
"""
import codecs
import json
from setuptools import setup
from setuptools import find_packages
with codecs.open('README.md', encoding='utf-8') as f:
README = f.read()
with open('./ocrd-tool.json', 'r') as f:
version = json.load(f)['version']
setup(
name='ocrd_cis',
version=version,
description='CIS OCR-D command line tools',
long_description=README,
long_description_content_type='text/markdown',
author='Florian Fink, Tobias Englmeier, Christoph Weber',
url='https://github.com/cisocrgroup/ocrd_cis',
license='MIT',
packages=find_packages(),
include_package_data=True,
install_requires=[
'ocrd>=2.13',
'click',
'scipy',
'numpy>=1.17.0',
'pillow>=7.1.2',
'shapely>=1.7.1',
'scikit-image',
'opencv-python-headless',
'python-Levenshtein',
'calamari_ocr == 0.3.5'
],
extras_require={
'debug': ['matplotlib>3.0.0'],
},
package_data={
'': ['*.json', '*.yml', '*.yaml', '*.csv.gz', '*.jar', '*.zip'],
},
entry_points={
'console_scripts': [
'ocrd-cis-align=ocrd_cis.align.cli:ocrd_cis_align',
'ocrd-cis-postcorrect=ocrd_cis.postcorrect.cli:ocrd_cis_postcorrect',
'ocrd-cis-data=ocrd_cis.data.__main__:main',
'ocrd-cis-ocropy-binarize=ocrd_cis.ocropy.cli:ocrd_cis_ocropy_binarize',
'ocrd-cis-ocropy-clip=ocrd_cis.ocropy.cli:ocrd_cis_ocropy_clip',
'ocrd-cis-ocropy-denoise=ocrd_cis.ocropy.cli:ocrd_cis_ocropy_denoise',
'ocrd-cis-ocropy-deskew=ocrd_cis.ocropy.cli:ocrd_cis_ocropy_deskew',
'ocrd-cis-ocropy-dewarp=ocrd_cis.ocropy.cli:ocrd_cis_ocropy_dewarp',
'ocrd-cis-ocropy-recognize=ocrd_cis.ocropy.cli:ocrd_cis_ocropy_recognize',
'ocrd-cis-ocropy-resegment=ocrd_cis.ocropy.cli:ocrd_cis_ocropy_resegment',
'ocrd-cis-ocropy-segment=ocrd_cis.ocropy.cli:ocrd_cis_ocropy_segment',
'ocrd-cis-ocropy-train=ocrd_cis.ocropy.cli:ocrd_cis_ocropy_train',
]
},
)