-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
61 lines (57 loc) · 2.48 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
# -*- coding: utf-8 -*-
"""
Installs:
- ocrd-segment-repair
- ocrd-segment-project
- ocrd-segment-from-masks
- ocrd-segment-from-coco
- ocrd-segment-extract-pages
- ocrd-segment-extract-regions
- ocrd-segment-extract-lines
- ocrd-segment-extract-words
- ocrd-segment-extract-glyphs
- ocrd-segment-replace-original
- ocrd-segment-replace-page
- ocrd-segment-replace-text
- ocrd-segment-evaluate
- page-segment-evaluate
"""
import codecs
import json
from setuptools import setup, find_packages
with open('./ocrd-tool.json', 'r') as f:
version = json.load(f)['version']
setup(
name='ocrd_segment',
version=version,
description='Page segmentation and segmentation evaluation',
long_description=codecs.open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
author='Konstantin Baierer, Kay-Michael Würzner, Robert Sachunsky',
author_email='unixprog@gmail.com, wuerzner@gmail.com, sachunsky@informatik.uni-leipzig.de',
url='https://github.com/OCR-D/ocrd_segment',
license='Apache License 2.0',
packages=find_packages(exclude=('tests', 'docs')),
install_requires=open('requirements.txt').read().split('\n'),
package_data={
'': ['*.json', '*.yml', '*.yaml'],
},
entry_points={
'console_scripts': [
'ocrd-segment-repair=ocrd_segment.cli:ocrd_segment_repair',
'ocrd-segment-project=ocrd_segment.cli:ocrd_segment_project',
'ocrd-segment-from-masks=ocrd_segment.cli:ocrd_segment_from_masks',
'ocrd-segment-from-coco=ocrd_segment.cli:ocrd_segment_from_coco',
'ocrd-segment-extract-pages=ocrd_segment.cli:ocrd_segment_extract_pages',
'ocrd-segment-extract-regions=ocrd_segment.cli:ocrd_segment_extract_regions',
'ocrd-segment-extract-lines=ocrd_segment.cli:ocrd_segment_extract_lines',
'ocrd-segment-extract-words=ocrd_segment.cli:ocrd_segment_extract_words',
'ocrd-segment-extract-glyphs=ocrd_segment.cli:ocrd_segment_extract_glyphs',
'ocrd-segment-replace-original=ocrd_segment.cli:ocrd_segment_replace_original',
'ocrd-segment-replace-page=ocrd_segment.cli:ocrd_segment_replace_page',
'ocrd-segment-replace-text=ocrd_segment.cli:ocrd_segment_replace_text',
'ocrd-segment-evaluate=ocrd_segment.cli:ocrd_segment_evaluate',
'page-segment-evaluate=ocrd_segment.evaluate:standalone_cli',
]
},
)