deepdoctection 0.43.3__tar.gz → 0.43.4__tar.gz
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.
Potentially problematic release.
This version of deepdoctection might be problematic. Click here for more details.
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/PKG-INFO +1 -1
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/__init__.py +1 -1
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/analyzer/config.py +1 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datapoint/view.py +31 -5
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/doctrocr.py +1 -4
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/anngen.py +1 -1
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/order.py +7 -8
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/develop.py +0 -1
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection.egg-info/PKG-INFO +1 -1
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/LICENSE +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/README.md +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/analyzer/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/analyzer/dd.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/analyzer/factory.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/configs/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/configs/conf_dd_one.yaml +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/configs/conf_tesseract.yaml +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/configs/profiles.jsonl +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/dataflow/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/dataflow/base.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/dataflow/common.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/dataflow/custom.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/dataflow/custom_serialize.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/dataflow/parallel_map.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/dataflow/serialize.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/dataflow/stats.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datapoint/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datapoint/annotation.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datapoint/box.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datapoint/convert.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datapoint/image.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/adapter.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/base.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/dataflow_builder.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/info.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/doclaynet.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/fintabnet.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/funsd.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/iiitar13k.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/layouttest.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/publaynet.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/pubtables1m.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/pubtabnet.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/rvlcdip.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/xfund.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/xsl/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/xsl/pascal_voc.xsl +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/registry.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/save.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/eval/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/eval/accmetric.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/eval/base.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/eval/cocometric.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/eval/eval.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/eval/registry.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/eval/tedsmetric.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/eval/tp_eval_callback.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/base.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/d2detect.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/deskew.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/fastlang.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/hfdetr.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/hflayoutlm.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/hflm.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/model.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/pdftext.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/pt/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/pt/nms.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/pt/ptutils.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tessocr.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/texocr.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tfutils.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpcompat.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/common.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/config/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/config/config.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/modeling/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/modeling/backbone.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/modeling/generalized_rcnn.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/modeling/model_box.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/modeling/model_cascade.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/modeling/model_fpn.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/modeling/model_frcnn.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/modeling/model_mrcnn.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/modeling/model_rpn.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/predict.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/preproc.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/utils/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/utils/box_ops.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/utils/np_box_ops.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tpdetect.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/cats.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/cocostruct.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/d2struct.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/hfstruct.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/laylmstruct.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/maputils.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/match.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/misc.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/pascalstruct.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/prodigystruct.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/pubstruct.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/tpstruct.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/mapper/xfundstruct.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/base.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/common.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/concurrency.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/doctectionpipe.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/language.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/layout.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/lm.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/refine.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/registry.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/segment.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/sub_layout.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/text.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/pipe/transform.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/py.typed +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/train/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/train/d2_frcnn_train.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/train/hf_detr_train.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/train/hf_layoutlm_train.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/train/tp_frcnn_train.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/__init__.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/concurrency.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/context.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/env_info.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/error.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/file_utils.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/fs.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/identifier.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/logger.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/metacfg.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/mocks.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/pdf_utils.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/settings.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/tqdm.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/transform.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/types.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/utils.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/utils/viz.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection.egg-info/SOURCES.txt +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection.egg-info/dependency_links.txt +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection.egg-info/requires.txt +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection.egg-info/top_level.txt +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/setup.cfg +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/setup.py +0 -0
- {deepdoctection-0.43.3 → deepdoctection-0.43.4}/tests/test_utils.py +0 -0
|
@@ -903,6 +903,7 @@ cfg.LAYOUT_LINK.CHILD_CATEGORIES = [LayoutType.CAPTION]
|
|
|
903
903
|
# This prevents accidental modification at runtime.
|
|
904
904
|
cfg.freeze()
|
|
905
905
|
|
|
906
|
+
|
|
906
907
|
def update_cfg_from_defaults() -> None:
|
|
907
908
|
"""
|
|
908
909
|
Update the configuration with current values from IMAGE_DEFAULTS.
|
|
@@ -72,6 +72,18 @@ class ImageAnnotationBaseView(ImageAnnotation):
|
|
|
72
72
|
|
|
73
73
|
base_page: Page
|
|
74
74
|
|
|
75
|
+
@property
|
|
76
|
+
def b64_image(self) -> Optional[str]:
|
|
77
|
+
"""
|
|
78
|
+
Returns:
|
|
79
|
+
The base64 encoded image of the page if available, otherwise None.
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
if self.image is not None:
|
|
83
|
+
if self.image.image is not None:
|
|
84
|
+
return viz_handler.convert_np_to_b64(self.image.image)
|
|
85
|
+
return None
|
|
86
|
+
|
|
75
87
|
@property
|
|
76
88
|
def bbox(self) -> list[float]:
|
|
77
89
|
"""
|
|
@@ -157,7 +169,7 @@ class ImageAnnotationBaseView(ImageAnnotation):
|
|
|
157
169
|
"""
|
|
158
170
|
|
|
159
171
|
# sub categories and summary sub categories are valid attribute names
|
|
160
|
-
attr_names = {"bbox", "np_image"}.union({cat.value for cat in self.sub_categories})
|
|
172
|
+
attr_names = {"bbox", "np_image", "b64_image"}.union({cat.value for cat in self.sub_categories})
|
|
161
173
|
if self.image:
|
|
162
174
|
attr_names = attr_names.union({cat.value for cat in self.image.summary.sub_categories.keys()})
|
|
163
175
|
return {attr_name.value if isinstance(attr_name, ObjectTypes) else attr_name for attr_name in attr_names}
|
|
@@ -774,6 +786,7 @@ class Page(Image):
|
|
|
774
786
|
"residual_layouts",
|
|
775
787
|
"document_summary",
|
|
776
788
|
"document_mapping",
|
|
789
|
+
"b64_image",
|
|
777
790
|
}
|
|
778
791
|
include_residual_text_container: bool = True
|
|
779
792
|
|
|
@@ -902,6 +915,17 @@ class Page(Image):
|
|
|
902
915
|
"""
|
|
903
916
|
return self.get_annotation(category_names=self.residual_text_block_categories)
|
|
904
917
|
|
|
918
|
+
@property
|
|
919
|
+
def b64_image(self) -> Optional[str]:
|
|
920
|
+
"""
|
|
921
|
+
Returns:
|
|
922
|
+
The base64 encoded image of the page if available, otherwise None.
|
|
923
|
+
"""
|
|
924
|
+
|
|
925
|
+
if self.image_orig.image is not None:
|
|
926
|
+
return viz_handler.convert_np_to_b64(self.image_orig.image)
|
|
927
|
+
return None
|
|
928
|
+
|
|
905
929
|
@classmethod
|
|
906
930
|
def from_image(
|
|
907
931
|
cls,
|
|
@@ -1410,10 +1434,12 @@ class Page(Image):
|
|
|
1410
1434
|
for block in block_with_order:
|
|
1411
1435
|
all_words.extend(block.get_ordered_words()) # type: ignore
|
|
1412
1436
|
return [
|
|
1413
|
-
{
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1437
|
+
{
|
|
1438
|
+
"word": word.characters,
|
|
1439
|
+
"entity": word.token_tag.value,
|
|
1440
|
+
"annotation_id": word.annotation_id,
|
|
1441
|
+
"successor_annotation_id": word.successor[0].annotation_id if word.successor else None,
|
|
1442
|
+
}
|
|
1417
1443
|
for word in all_words
|
|
1418
1444
|
if word.token_tag not in (TokenClasses.OTHER, None)
|
|
1419
1445
|
]
|
|
@@ -269,10 +269,7 @@ class DoctrTextlineDetector(DoctrTextlineDetectorMixin):
|
|
|
269
269
|
if self.lib == "PT":
|
|
270
270
|
self.device = get_torch_device(device)
|
|
271
271
|
|
|
272
|
-
self.doctr_predictor = self.get_wrapped_model(self.architecture,
|
|
273
|
-
self.path_weights,
|
|
274
|
-
self.device,
|
|
275
|
-
self.lib)
|
|
272
|
+
self.doctr_predictor = self.get_wrapped_model(self.architecture, self.path_weights, self.device, self.lib)
|
|
276
273
|
|
|
277
274
|
def predict(self, np_img: PixelValues) -> list[DetectionResult]:
|
|
278
275
|
"""
|
|
@@ -801,14 +801,13 @@ class TextOrderService(TextLineServiceMixin):
|
|
|
801
801
|
if self.include_residual_text_container:
|
|
802
802
|
add_category.append(LayoutType.LINE)
|
|
803
803
|
|
|
804
|
-
if set(self.floating_text_block_categories) <= set(
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
804
|
+
if set(self.floating_text_block_categories) <= set(self.text_block_categories + tuple(add_category)):
|
|
805
|
+
logger.warning(
|
|
806
|
+
"In most cases floating_text_block_categories must be a subset of text_block_categories. "
|
|
807
|
+
"Adding categories to floating_text_block_categories, that do not belong to "
|
|
808
|
+
"text_block_categories makes only sense for categories set have CHILD relationships with"
|
|
809
|
+
" annotations that belong to text_block_categories."
|
|
810
|
+
)
|
|
812
811
|
|
|
813
812
|
def get_meta_annotation(self) -> MetaAnnotation:
|
|
814
813
|
add_category = [self.text_container]
|
|
@@ -71,7 +71,6 @@ def log_deprecated(name: str, text: str, eos: str = "", max_num_warnings: Option
|
|
|
71
71
|
logger.info(LoggingRecord(f"[Deprecated] {info_msg}"))
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
|
|
75
74
|
def deprecated(
|
|
76
75
|
text: str = "", eos: str = "", max_num_warnings: Optional[int] = None
|
|
77
76
|
) -> Callable[[Callable[..., T]], Callable[..., T]]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/__init__.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/doclaynet.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/fintabnet.py
RENAMED
|
File without changes
|
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/iiitar13k.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/layouttest.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/publaynet.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/pubtables1m.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/pubtabnet.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/rvlcdip.py
RENAMED
|
File without changes
|
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/xsl/__init__.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/datasets/instances/xsl/pascal_voc.xsl
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/config/__init__.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/config/config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/utils/__init__.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/utils/box_ops.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection/extern/tp/tpfrcnn/utils/np_box_ops.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepdoctection-0.43.3 → deepdoctection-0.43.4}/deepdoctection.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|