2022-11-15 19:42:43 +08:00
|
|
|
data_root = 'data/svtp'
|
|
|
|
cache_path = 'data/cache'
|
|
|
|
|
2023-03-03 15:27:19 +08:00
|
|
|
test_preparer = dict(
|
|
|
|
obtainer=dict(
|
|
|
|
type='NaiveDataObtainer',
|
|
|
|
cache_path=cache_path,
|
|
|
|
files=[
|
|
|
|
dict(
|
|
|
|
url='https://download.openmmlab.com/mmocr/data/svtp.zip',
|
|
|
|
save_name='svtp.zip',
|
|
|
|
md5='4232b46c81ba99eea6d057dcb06b8f75',
|
|
|
|
content=['image', 'annotation'],
|
|
|
|
mapping=[['svtp/par1', 'textrecog_imgs/test'],
|
|
|
|
['svtp/gt.txt', 'annotations/test.txt']]),
|
|
|
|
]),
|
|
|
|
gatherer=dict(type='MonoGatherer', ann_name='test.txt'),
|
2022-11-15 19:42:43 +08:00
|
|
|
parser=dict(
|
|
|
|
type='ICDARTxtTextRecogAnnParser', separator=' ', format='img text'),
|
2023-03-03 15:27:19 +08:00
|
|
|
packer=dict(type='TextRecogPacker'),
|
|
|
|
dumper=dict(type='JsonDumper'))
|
|
|
|
delete = ['svtp', 'annotations']
|
|
|
|
config_generator = dict(type='TextRecogConfigGenerator')
|