ndlocr-lite 1.4.0.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cli.py +15 -0
- config/NDLmoji.yaml +4 -0
- config/__init__.py +0 -0
- config/ndl.yaml +21 -0
- deim.py +169 -0
- model/__init__.py +0 -0
- model_download.py +87 -0
- ndl_parser.py +1083 -0
- ndlocr_lite-1.4.0.dev0.dist-info/METADATA +182 -0
- ndlocr_lite-1.4.0.dev0.dist-info/RECORD +43 -0
- ndlocr_lite-1.4.0.dev0.dist-info/WHEEL +5 -0
- ndlocr_lite-1.4.0.dev0.dist-info/entry_points.txt +2 -0
- ndlocr_lite-1.4.0.dev0.dist-info/licenses/LICENCE +395 -0
- ndlocr_lite-1.4.0.dev0.dist-info/licenses/LICENCE_DEPENDENCEIES +1891 -0
- ndlocr_lite-1.4.0.dev0.dist-info/top_level.txt +16 -0
- ndlocr_lite_gui/__init__.py +12 -0
- ndlocr_lite_gui/assets/icon.png +0 -0
- ndlocr_lite_gui/gui_config.py +21 -0
- ndlocr_lite_gui/main.py +2105 -0
- ocr.py +1425 -0
- optional_features/__init__.py +52 -0
- parseq.py +74 -0
- pdf_output_utils.py +71 -0
- reading_order/__init__.py +0 -0
- reading_order/order/__init__.py +0 -0
- reading_order/order/parse_xml.py +143 -0
- reading_order/order/reorder.py +211 -0
- reading_order/order/smooth_order.py +110 -0
- reading_order/order/warichu_block.py +178 -0
- reading_order/order/wrap_dataset.py +13 -0
- reading_order/utils/__init__.py +0 -0
- reading_order/utils/file.py +21 -0
- reading_order/utils/logger.py +29 -0
- reading_order/utils/time.py +63 -0
- reading_order/utils/xml.py +97 -0
- reading_order/xy_cut/__init__.py +0 -0
- reading_order/xy_cut/block_xy_cut.py +366 -0
- reading_order/xy_cut/eval.py +55 -0
- tcy_wrapper.py +202 -0
- tools/ndlkoten2tei.py +115 -0
- uicomponent/localelabel.py +118 -0
- uicomponent/textdaisy.py +1093 -0
- version.py +3 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Launch the packaged GUI without changing the desktop build entry point."""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def run(argv=None):
|
|
5
|
+
from functools import partial
|
|
6
|
+
from . import main as app
|
|
7
|
+
|
|
8
|
+
args = app.parse_gui_args(argv, download_models=True)
|
|
9
|
+
app.ft.run(
|
|
10
|
+
partial(app.main, args=args, download_models=True),
|
|
11
|
+
assets_dir=str(app.ASSETS_DIR),
|
|
12
|
+
)
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
GUI_DEFAULT_CONFIG = {
|
|
2
|
+
'langcode': 'ja',
|
|
3
|
+
'json': True,
|
|
4
|
+
'xml': True,
|
|
5
|
+
'tei': True,
|
|
6
|
+
'txt': True,
|
|
7
|
+
'markdown': False,
|
|
8
|
+
'pdf': False,
|
|
9
|
+
'pdf_viztxt': False,
|
|
10
|
+
'pdf_merge': True,
|
|
11
|
+
'pdf_page_output': True,
|
|
12
|
+
'pdf_resolution': 300,
|
|
13
|
+
'text_daisy': False,
|
|
14
|
+
'result_markdown_display': False,
|
|
15
|
+
'selected_output_path': None,
|
|
16
|
+
'visualize': True,
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def build_default_config():
|
|
21
|
+
return dict(GUI_DEFAULT_CONFIG)
|