Skip to main content

TFDBNet

A TensorFlow 2 reimplementation of Real-time Scene Text Detection with Differentiable Binarization available as a Python package and using TedEval as evaluation metrics.

Data Preparation

Store images in imgs folder and groundtruths in gts folder. Then, prepare text files for training and validate data in the following format with '\t' as a separator:

  • Example for ICDAR 2015 train.txt:
./datasets/train/train_imgs/img_1.jpg	./datasets/train/train_gts/gt_img_1.txt
./datasets/train/train_imgs/img_2.jpg	./datasets/train/train_gts/gt_img_2.txt
  • Example for ICDAR 2015 validate.txt:
./datasets/validate/validate_imgs/img_1.jpg	./datasets/validate/validate_gts/gt_img_1.txt
./datasets/validate/validate_imgs/img_2.jpg	./datasets/validate/validate_gts/gt_img_2.txt

You can customize the script in dir2paths.sh to generate the above train.txt and validate.txt for your own dataset. And the groundtruths can be .txt files, with the following format:

x1, y1, x2, y2, x3, y3, x4, y4, annotation

Below is the content of ./datasets/train/train_gts/gt_img_1.txt:

377,117,463,117,465,130,378,130,Genaxis Theatre
493,115,519,115,519,131,493,131,[06]
374,155,409,155,409,170,374,170,###
492,151,551,151,551,170,492,170,62-03
376,198,422,198,422,212,376,212,Carpark
494,190,539,189,539,205,494,206,###
374,1,494,0,492,85,372,86,###

Quick Start

pip install tfdbnet

After above installation, see the demo on ICDAR 2015 dataset to know how to use

Reference

Metadata

Release files for tfdbnet 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tfdbnet 0.0.3
File Size Uploaded
tfdbnet-0.0.3.tar.gz 15.0 kB Details

Release files / tfdbnet-0.0.3.tar.gz

Download URL tfdbnet-0.0.3.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cdc041310ed22703fed8c58c242ad32188bde7588486e913fcea91c5e737de31
BLAKE2b-256 checksum
How to use checksums
425e9985ac69107652048d3e48584b9e8c7765974da9acd8a773591eedf0504b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page