mirror of
https://github.com/open-mmlab/mmocr.git
synced 2025-06-03 21:54:47 +08:00
* Add TPS * Update tps_preprocessor.py * Add licence, change variable name and format * renamed some parameters and add tests of ocr preprocessor * renamed params * Update tps_preprocessor.py * add config file and readme for TPS
Thin-Plate-Spline (TPS) transformation
Introduction
[ALGORITHM]
@article{shi2016robust,
title={Robust Scene Text Recognition with Automatic Rectification},
author={Shi, Baoguang and Wang, Xinggang and Lyu, Pengyuan and Yao,
Cong and Bai, Xiang},
year={2016}
}
About using TPS in other models
- Simply change
cfg.model.preprocessor
fromNone
to
dict(
type='TPSPreprocessor',
num_fiducial=20,
img_size=(32, 100),
rectified_img_size=(32, 100),
num_img_channel=1
)