File size: 1,289 Bytes
9c0ac7a
 
 
 
 
db56445
c93dff3
ce41b2a
 
 
9c0ac7a
 
 
 
 
 
db56445
22c0406
db56445
ce41b2a
 
 
 
 
9c0ac7a
 
 
ce41b2a
9c0ac7a
 
 
 
ce41b2a
9c0ac7a
 
 
 
 
 
 
 
 
 
 
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": ["text_line"]
        },
        "ClassContourPosptrocess": {},
        "OCRPrediction": {
            "model_path": "ocr/ocr_model.ckpt",
            "config_path": "ocr/ocr_config.json",
            "lm_path": "ocr/kenlm_corpus.arpa",
            "num_threads": 8,
            "classes_to_ocr": ["shrinked_text"],
            "device": "cuda",
            "batch_size": 128,
            "runtime": "Pytorch"
        },
        "LineFinder": {
            "line_classes": ["text_line"],
            "text_classes": ["shrinked_text"]
        },
        "PrepareJSON": {}
    },
    "classes": {
        "shrinked_text": {
            "contour_posptrocess": {
                "BboxFromContour": {},
                "UpscaleBbox": {"upscale_bbox": [1.4, 2.3]},
                "CropByBbox": {}
            }
        },
        "text_line": {
            "contour_posptrocess": {}
        }
    }
}