The ReCTS images and annotations dataset Official Website | Download Link
Note: Please register an account to download this dataset.
After downloading the images and annotations, unzip the file, after which the directory structure should be like as follows (ignoring the archive files):
ReCTS
|--- img
| |--- <image_name>.jpg
| |--- <image_name>.jpg
| |--- ...
|--- gt
| |--- <image_name>.json
| |--- <image_name>.json
| |--- ...
|--- gt_unicode
| |--- <image_name>.json
| |--- <image_name>.json
| |--- ...
To prepare the data for text detection, you can run the following commands:
python tools/dataset_converters/convert.py \
--dataset_name rects --task det \
--image_dir path/to/ReCTS/img/ \
--label_dir path/to/ReCTS/gt_unicode.json \
--output_path path/to/ReCTS/det_gt.txt
The generated standard annotation file det_gt.txt
will now be placed under the folder ReCTS/
.