File size: 1,322 Bytes
54c5290
 
 
 
 
fd90988
54c5290
4d74125
7b0a0eb
c0eea04
54c5290
 
 
 
 
 
fd90988
54c5290
 
4d74125
54c5290
7b0a0eb
 
c0eea04
54c5290
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{   "main_process": {
        "ImageToBGR": {
            "input_format": "BGR"
        },
        "SegmPrediction": {
            "model_path": "segm/segm_model.ckpt",
            "config_path": "segm/segm_config.json",
            "num_threads": 8,
            "device": "cuda",
            "runtime": "Pytorch"
        },
        "RestoreImageAngle": {
            "restoring_class_names": ["shrinked_text"]
        },
        "ClassContourPosptrocess": {},
        "OCRPrediction": {
            "model_path": "ocr/ocr_model.ckpt",
            "config_path": "ocr/ocr_config.json",
            "lm_path": "",
            "num_threads": 8,
            "classes_to_ocr": ["shrinked_text"],
            "device": "cuda",
            "batch_size": 64,
            "runtime": "Pytorch"
        },
        "LineFinder": {
            "line_classes": ["shrinked_text"],
            "text_classes": ["shrinked_text"],
            "pages_clust_dist": 0.35
        },
        "PrepareJSON": {}
    },
    "classes": {
        "shrinked_text": {
            "contour_posptrocess": {
                "UpscaleContour": {"upscale_contour": 1.45},
                "BboxFromContour": {},
                "CropByBbox": {},
                "MakeMaskedCrop": {},
                "RotateVerticalCrops": {}
            }
        }
    }
}