[Feature] Add SVTP to dataset preparer ()

* add svtp

* fix comments
pull/1533/head
Xinyu Wang 2022-11-15 19:42:43 +08:00 committed by GitHub
parent 34e97abcb0
commit d514784878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,26 @@
Name: 'Street View Text Perspective (SVT-P)'
Paper:
Title: Recognizing Text with Perspective Distortion in Natural Scenes
URL: https://openaccess.thecvf.com/content_iccv_2013/papers/Phan_Recognizing_Text_with_2013_ICCV_paper.pdf
Venue: ICCV
Year: '2013'
BibTeX: '@inproceedings{phan2013recognizing,
title={Recognizing text with perspective distortion in natural scenes},
author={Phan, Trung Quy and Shivakumara, Palaiahnakote and Tian, Shangxuan and Tan, Chew Lim},
booktitle={Proceedings of the IEEE International Conference on Computer Vision},
pages={569--576},
year={2013}}'
Data:
Website: http://www.comp.nus.edu.sg/~phanquyt/
Language:
- English
Scene:
- Natural Scene
Granularity:
- Word
Tasks:
- textrecog
License:
Type: N/A
Link: N/A
Format: .txt

View File

@ -0,0 +1,7 @@
**Text Recognition**
```txt
13_15_0_par.jpg WYNDHAM
13_15_1_par.jpg HOTEL
12_16_0_par.jpg UNITED
```

View File

@ -0,0 +1,27 @@
data_root = 'data/svtp'
cache_path = 'data/cache'
data_obtainer = dict(
type='NaiveDataObtainer',
cache_path=cache_path,
data_root=data_root,
files=[
dict(
url='https://download.openmmlab.com/mmocr/data/svtp.zip',
save_name='svtp.zip',
md5='4232b46c81ba99eea6d057dcb06b8f75',
split=['test'],
content=['image', 'annotation'],
mapping=[['svtp/par1', 'textrecog_imgs/test'],
['svtp/gt.txt', 'annotations/test.txt']]),
])
data_converter = dict(
type='TextRecogDataConverter',
splits=['test'],
data_root=data_root,
gatherer=dict(type='mono_gather', mapping="f'{split}.txt'"),
parser=dict(
type='ICDARTxtTextRecogAnnParser', separator=' ', format='img text'),
dumper=dict(type='JsonDumper'),
delete=['svtp', 'annotations'])