🚧 Process lines
parent
2ebf3c0e00
commit
dbe43e2316
@ -0,0 +1,10 @@
|
||||
import click
|
||||
|
||||
from ocrd.decorators import ocrd_cli_options, ocrd_cli_wrap_processor
|
||||
from ocrd_calamari.ocr import CalamariOcr
|
||||
|
||||
|
||||
@click.command()
|
||||
@ocrd_cli_options
|
||||
def ocrd_calamari_ocr(*args, **kwargs):
|
||||
return ocrd_cli_wrap_processor(CalamariOcr, *args, **kwargs)
|
@ -0,0 +1,4 @@
|
||||
import json
|
||||
from pkg_resources import resource_string
|
||||
|
||||
OCRD_TOOL = json.loads(resource_string(__name__, 'ocrd-tool.json').decode('utf8'))
|
@ -0,0 +1,4 @@
|
||||
calamari-ocr
|
||||
tensorflow-gpu
|
||||
click
|
||||
ocrd
|
@ -0,0 +1,30 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Installs one executable:
|
||||
|
||||
- ocrd_calamari_ocr
|
||||
"""
|
||||
import codecs
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name='ocrd_calamari',
|
||||
version='0.0.1',
|
||||
description='Calamari bindings',
|
||||
long_description=codecs.open('README.md', encoding='utf-8').read(),
|
||||
author='Konstantin Baierer, Mike Gerber',
|
||||
author_email='unixprog@gmail.com, mike.gerber@sbb.spk-berlin.de',
|
||||
url='https://github.com/OCR-D/ocrd_calamari', # XXX
|
||||
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-calamari-ocr=ocrd_calamari.cli:ocrd_calamari_ocr',
|
||||
]
|
||||
},
|
||||
)
|
Loading…
Reference in New Issue