mirror of
https://github.com/qurator-spk/sbb_textline_detection.git
synced 2025-06-13 13:50:03 +02:00
🧹 sbb_textline_detector: Use same structure as the other projects
This commit is contained in:
parent
b85a9dc256
commit
599bbf1c86
5 changed files with 8 additions and 5 deletions
|
@ -1,8 +1,9 @@
|
|||
FROM python:3
|
||||
|
||||
ADD main.py /
|
||||
ADD requirements.txt /
|
||||
|
||||
RUN pip install --proxy=http-proxy.sbb.spk-berlin.de:3128 -r requirements.txt
|
||||
|
||||
ENTRYPOINT ["python", "./main.py"]
|
||||
COPY . /usr/src/sbb_textline_detector
|
||||
RUN pip install /usr/src/sbb_textline_detector
|
||||
|
||||
ENTRYPOINT ["sbb_textline_detector"]
|
||||
|
|
1
qurator/__init__.py
Normal file
1
qurator/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
__import__('pkg_resources').declare_namespace(__name__)
|
1
qurator/sbb_textline_detector/__init__.py
Normal file
1
qurator/sbb_textline_detector/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
from .main import *
|
4
setup.py
4
setup.py
|
@ -20,7 +20,7 @@ setup(
|
|||
install_requires=install_requires,
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
"text_line_recognition=main:main",
|
||||
"sbb_textline_detector=qurator.sbb_textline_detector:main",
|
||||
]
|
||||
},
|
||||
python_requires='>=3.6.0',
|
||||
|
@ -31,4 +31,4 @@ setup(
|
|||
'Programming Language :: Python :: 3',
|
||||
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
||||
],
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue