define16 / TRDG2DTRB

Convert TextRecognitionDataGenerator's result data to deep-text-recognition-benchmark's input data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TextRecognitionDataGenerator to Deep-Text-Recognition-Benchmark

Convert TextRecognitionDataGenerator's result data to Deep-Text-Recognition-Benchmark's input data.

Reference projects

Usage example

(venv) $ python3 convert.py \
	--input_path ./input \
  	--output_path ./output

Data Structures

The structure of data folder as below.

/input
#   [gt]_[idx].[ext]
├── abcd_00001.jpg
├── efgh_00002.jpg
├── ijkl_00003.jpg
└── ...
/output
├── gt.txt
└── /images
    #  	image_[idx].[ext]
    ├── image_00001.png
    ├── image_00002.png
    ├── image_00003.png
    └── ...

Ground truth file structure

  • gt.txt
# {filename}\t{label}\n
  images/image_00001.png	abcd
  images/image_00002.png	efgh
  images/image_00003.png	ijkl
  ...

About

Convert TextRecognitionDataGenerator's result data to deep-text-recognition-benchmark's input data.


Languages

Language:Python 100.0%