File size: 1,550 Bytes
174ad5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
_base_ = ['textdet.py']

_base_.train_preparer.gatherer.img_dir = 'textdet_imgs/train'
_base_.train_preparer.packer.type = 'TextSpottingPacker'

_base_.test_preparer.packer.type = 'TextSpottingPacker'
_base_.test_preparer.gatherer.img_dir = 'textdet_imgs/test'
_base_.test_preparer.obtainer.files = [
    dict(
        url='https://rrc.cvc.uab.es/downloads/'
        'Challenge2_Test_Task12_Images.zip',
        save_name='ic13_textdet_test_img.zip',
        md5='af2e9f070c4c6a1c7bdb7b36bacf23e3',
        content=['image'],
        mapping=[['ic13_textdet_test_img', 'textdet_imgs/test']]),
    dict(
        url='https://download.openmmlab.com/mmocr/data/1.x/'
        'textspotting/icdar2013/ic13_textspotting_test_gt.zip',
        save_name='ic13_textspotting_test_gt.zip',
        md5='d0d95e800504795d153f4f21d4d8ce07',
        content=['annotation'],
        mapping=[['ic13_textspotting_test_gt', 'annotations/test']]),
    dict(
        url='https://download.openmmlab.com/mmocr/data/1.x/'
        'textspotting/icdar2013/lexicons.zip',
        save_name='icdar2013_lexicons.zip',
        md5='4ba017ab0637dae7a66fa471ac0a3253',
        content=['annotation'],
        mapping=[['icdar2013_lexicons/lexicons', 'lexicons']]),
]
_base_.test_preparer.parser = dict(
    type='ICDARTxtTextDetAnnParser', encoding='utf-8-sig')

delete = [
    'annotations', 'ic13_textdet_train_img', 'ic13_textdet_train_gt',
    'ic13_textdet_test_img', 'ic13_textdet_test_gt', 'icdar2013_lexicons'
]
config_generator = dict(type='TextSpottingConfigGenerator')