All Projects → looput → PSENet-Tensorflow

looput / PSENet-Tensorflow

Licence: other
TensorFlow implementation of PSENet text detector (Shape Robust Text Detection with Progressive Scale Expansion Networkt)

Programming Languages

python
139335 projects - #7 most used programming language
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to PSENet-Tensorflow

Craft Pytorch
Official implementation of Character Region Awareness for Text Detection (CRAFT)
Stars: ✭ 2,220 (+4252.94%)
Mutual labels:  ocr, text-detection, cvpr2019
East icpr
Forked from argman/EAST for the ICPR MTWI 2018 CHALLENGE
Stars: ✭ 154 (+201.96%)
Mutual labels:  ocr, text-detection
Tedeval
TedEval: A Fair Evaluation Metric for Scene Text Detectors
Stars: ✭ 143 (+180.39%)
Mutual labels:  ocr, text-detection
Text Detection
Text detection with mainly MSER and SWT
Stars: ✭ 167 (+227.45%)
Mutual labels:  ocr, text-detection
Differentiablebinarization
DB (Real-time Scene Text Detection with Differentiable Binarization) implementation in Keras and Tensorflow
Stars: ✭ 106 (+107.84%)
Mutual labels:  ocr, text-detection
Craft Remade
Implementation of CRAFT Text Detection
Stars: ✭ 127 (+149.02%)
Mutual labels:  ocr, text-detection
Adelaidet
AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
Stars: ✭ 2,565 (+4929.41%)
Mutual labels:  ocr, text-detection
Keras Ocr
A packaged and flexible version of the CRAFT text detector and Keras CRNN recognition model.
Stars: ✭ 782 (+1433.33%)
Mutual labels:  ocr, text-detection
Ocr.pytorch
A pure pytorch implemented ocr project including text detection and recognition
Stars: ✭ 196 (+284.31%)
Mutual labels:  ocr, text-detection
East
A tensorflow implementation of EAST text detector
Stars: ✭ 2,804 (+5398.04%)
Mutual labels:  ocr, text-detection
craft-text-detector
Packaged, Pytorch-based, easy to use, cross-platform version of the CRAFT text detector
Stars: ✭ 151 (+196.08%)
Mutual labels:  ocr, text-detection
Keras Ctpn
keras复现场景文本检测网络CPTN: 《Detecting Text in Natural Image with Connectionist Text Proposal Network》;欢迎试用,关注,并反馈问题...
Stars: ✭ 89 (+74.51%)
Mutual labels:  ocr, text-detection
Ctpn
Detecting Text in Natural Image with Connectionist Text Proposal Network (ECCV'16)
Stars: ✭ 1,220 (+2292.16%)
Mutual labels:  ocr, text-detection
Craft keras
Keras implementation of Character Region Awareness for Text Detection (CRAFT)
Stars: ✭ 143 (+180.39%)
Mutual labels:  ocr, text-detection
Image Text Localization Recognition
A general list of resources to image text localization and recognition 场景文本位置感知与识别的论文资源与实现合集 シーンテキストの位置認識と識別のための論文リソースの要約
Stars: ✭ 788 (+1445.1%)
Mutual labels:  ocr, text-detection
doctr
docTR (Document Text Recognition) - a seamless, high-performing & accessible library for OCR-related tasks powered by Deep Learning.
Stars: ✭ 1,409 (+2662.75%)
Mutual labels:  ocr, text-detection
Tensorflow psenet
This is a tensorflow re-implementation of PSENet: Shape Robust Text Detection with Progressive Scale Expansion Network.My blog:
Stars: ✭ 472 (+825.49%)
Mutual labels:  ocr, text-detection
Seglink
An Implementation of the seglink alogrithm in paper Detecting Oriented Text in Natural Images by Linking Segments
Stars: ✭ 479 (+839.22%)
Mutual labels:  ocr, text-detection
Awesome Deep Text Detection Recognition
A curated list of resources for text detection/recognition (optical character recognition ) with deep learning methods.
Stars: ✭ 2,282 (+4374.51%)
Mutual labels:  ocr, text-detection
pytorch.ctpn
pytorch, ctpn ,text detection ,ocr,文本检测
Stars: ✭ 123 (+141.18%)
Mutual labels:  ocr, text-detection

Shape Robust Text Detection with Progressive Scale Expansion Networkt

A reimplement of PSENet with tensorflow. Only trained on IC15,TD500,and CTW1500. The preformence is low compared to paper's result. Maybe because of partial data training (For each dataset I don't use extra data, but the paper use MLT data), or just maybe because of some bug in this code.

  • The pse algrithm is implemented with C++ and warped by cython in floder in ./PSE_C
  • Support simple hype-parameter search for test(such as threshold)
  • Support checkpoint restore.
  • summary logging by tensorboard

Thanks for the author's (@whai362) great work!

Prerequisites

pip install -r requriment.txt

  • tensorflow = 1.8
  • pudb(for debug)
  • pyclipper(to clip polygon)
  • skimage
  • Polygon3
  • Cython

Result(Train only with the corresponding dataset, no extra data)

Dataset precision recall F-measure (%)
ICDAR15 84.5 77.3 80.7
TD500 - - 80.2(?)
CTW1500 - - 76(?)

- this model had been removed in my server, so I forget exact f-measure, just for reference

Training

  1. Converting the dataset to tfrecord for high performence reading. This converter support IC15,TD500,CTW1500. Default for IC15. And you need to change dataset_dir path in dataset_factory.py.
     cd dataset
     python write_tfrecord.py --data-folder 'your path here'
  2. To use ImageNet Pretrained model, download the model to Logs/model from model
  3. Train the model, you need edit configuration.py to adjust the patameter of trianing such as bactch size,learning rate.
    mkdir Logs/train
    python train_PSENet.py --run_name test --restore=True --use_pretrain=True --gpus '0' --ss=10 --se=10 --about=''
    
  4. you can monitor the progress of training by tensorboard
    tensorboard --host localhost --samples_per_plugin images=500 --port 7000 --logdir Logs/train/test
    
    tensorboard tensorboard

Testing

  1. Compile the PSE code
    python setup.py build_ext --inplace
  2. Edit test config in configuration.py such as threshold, image size, test_dir is the path of your test images.(such as /you/path/icdar2015/ch4_test_images)
    python eval_metric.py --ma=True --train_name test --gpus='2' --lg=False
  3. If lg is True, you can view detect result in folder Logs/test/<run_name>/model.ckpt-399999_0/image_log result result
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].