Perspective recovery of text using transformed ellipses

Overview
You might also like...
Code related to "Have Your Text and Use It Too! End-to-End Neural Data-to-Text Generation with Semantic Fidelity" paper

DataTuner You have just found the DataTuner. This repository provides tools for fine-tuning language models for a task. See LICENSE.txt for license de

Handwritten Text Recognition (HTR) system implemented with TensorFlow (TF) and trained on the IAM off-line HTR dataset. This Neural Network (NN) model recognizes the text contained in the images of segmented words.

Handwritten-Text-Recognition Handwritten Text Recognition (HTR) system implemented with TensorFlow (TF) and trained on the IAM off-line HTR dataset. T

Code for generating synthetic text images as described in
Code for generating synthetic text images as described in "Synthetic Data for Text Localisation in Natural Images", Ankush Gupta, Andrea Vedaldi, Andrew Zisserman, CVPR 2016.

SynthText Code for generating synthetic text images as described in "Synthetic Data for Text Localisation in Natural Images", Ankush Gupta, Andrea Ved

This can be use to convert text in a file to handwritten text.

TextToHandwriting This can be used to convert text to handwriting. Clone this project or download the code. Run TextToImage.py give the filename of th

Text page dewarping using a "cubic sheet" model

page_dewarp Page dewarping and thresholding using a "cubic sheet" model - see full writeup at https://mzucker.github.io/2016/08/15/page-dewarping.html

Handwritten Text Recognition (HTR) using TensorFlow 2.x
Handwritten Text Recognition (HTR) using TensorFlow 2.x

Handwritten Text Recognition (HTR) system implemented using TensorFlow 2.x and trained on the Bentham/IAM/Rimes/Saint Gall/Washington offline HTR data

Text language identification using Wikipedia data

Text language identification using Wikipedia data The aim of this project is to provide high-quality language detection over all the web's languages.

Text Detection from images using OpenCV

EAST Detector for Text Detection OpenCV’s EAST(Efficient and Accurate Scene Text Detection ) text detector is a deep learning model, based on a novel

Comments
  • cv2.findContours fix

    cv2.findContours fix

    in the 135 line changed this

    _, contours, hierarchy = cv2.findContours(work, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_NONE)

    to this

    contours, hierarchy = cv2.findContours(work, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_NONE)

    it's because in a previous version of opencv that function used to return 3 values, now it returns just 2 values

    opened by sumanmichael 0
  • Value Error: not enough values to unpack

    Value Error: not enough values to unpack

    Python 3 / OSX

    $ python3 unproject_text/unproject_text.py samples/hd/IMG_1234.jpg Traceback (most recent call last): File "unproject_text/unproject_text.py", line 503, in main() File "unproject_text/unproject_text.py", line 490, in main contours, hierarchy = get_contours(img) File "unproject_text/unproject_text.py", line 135, in get_contours cv2.CHAIN_APPROX_NONE) ValueError: not enough values to unpack (expected 3, got 2)

    opened by maxhallhatesm3 1
  • "ValueError: Not a bracketing interval." on some images

    Tried to run the program on some images, for some it worked, but on many I get this error:

    python3 unproject_text.py lp8.png

    abs_area_cutoff = 18.7572 got 6 contours with 1 small. got bounding rect -281 163 583 58 got bounding rect -305 186 586 12 got bounding rect 263 197 3 1 Traceback (most recent call last): File "unproject_text.py", line 503, in main() File "unproject_text.py", line 495, in main SRH = skew_detect(img, contours, RH) File "unproject_text.py", line 468, in skew_detect res = scipy.optimize.minimize_scalar(f, (-2.0, 0.0, 2.0)) File "/usr/local/lib/python3.6/site-packages/scipy/optimize/_minimize.py", line 653, in minimize_scalar return _minimize_scalar_brent(fun, bracket, args, **options) File "/usr/local/lib/python3.6/site-packages/scipy/optimize/optimize.py", line 2108, in _minimize_scalar_brent brent.optimize() File "/usr/local/lib/python3.6/site-packages/scipy/optimize/optimize.py", line 1892, in optimize xa, xb, xc, fa, fb, fc, funcalls = self.get_bracket_info() File "/usr/local/lib/python3.6/site-packages/scipy/optimize/optimize.py", line 1880, in get_bracket_info raise ValueError("Not a bracketing interval.") ValueError: Not a bracketing interval.

    The image I tried was: https://liorazi.github.io/lp8.png

    opened by liorazi 5
  • Error with the usage command

    Error with the usage command

    m-c02sh1f0g8wl:unproject_text-master arg000m$ python unproject_text.py deskew0.jpg Traceback (most recent call last): File "unproject_text.py", line 503, in main() File "unproject_text.py", line 490, in main contours, hierarchy = get_contours(img) File "unproject_text.py", line 135, in get_contours cv2.CHAIN_APPROX_NONE) ValueError: need more than 2 values to unpack

    could you help me with this ?

    opened by anuragreddygv323 3
Deskew is a command line tool for deskewing scanned text documents. It uses Hough transform to detect "text lines" in the image. As an output, you get an image rotated so that the lines are horizontal.

Deskew by Marek Mauder https://galfar.vevb.net/deskew https://github.com/galfar/deskew v1.30 2019-06-07 Overview Deskew is a command line tool for des

Marek Mauder 127 Dec 3, 2022
An Implementation of the alogrithm in paper IncepText: A New Inception-Text Module with Deformable PSROI Pooling for Multi-Oriented Scene Text Detection

InceptText-Tensorflow An Implementation of the alogrithm in paper IncepText: A New Inception-Text Module with Deformable PSROI Pooling for Multi-Orien

GeorgeJoe 115 Dec 12, 2022
Code for the paper STN-OCR: A single Neural Network for Text Detection and Text Recognition

STN-OCR: A single Neural Network for Text Detection and Text Recognition This repository contains the code for the paper: STN-OCR: A single Neural Net

Christian Bartz 496 Jan 5, 2023
text detection mainly based on ctpn model in tensorflow, id card detect, connectionist text proposal network

text-detection-ctpn Scene text detection based on ctpn (connectionist text proposal network). It is implemented in tensorflow. The origin paper can be

Shaohui Ruan 3.3k Dec 30, 2022
keras复现场景文本检测网络CPTN: 《Detecting Text in Natural Image with Connectionist Text Proposal Network》;欢迎试用,关注,并反馈问题...

keras-ctpn [TOC] 说明 预测 训练 例子 4.1 ICDAR2015 4.1.1 带侧边细化 4.1.2 不带带侧边细化 4.1.3 做数据增广-水平翻转 4.2 ICDAR2017 4.3 其它数据集 toDoList 总结 说明 本工程是keras实现的CPTN: Detecti

mick.yi 107 Jan 9, 2023
Detecting Text in Natural Image with Connectionist Text Proposal Network (ECCV'16)

Detecting Text in Natural Image with Connectionist Text Proposal Network The codes are used for implementing CTPN for scene text detection, described

Tian Zhi 1.3k Dec 22, 2022
huoyijie 1.2k Dec 29, 2022
OCR system for Arabic language that converts images of typed text to machine-encoded text.

Arabic OCR OCR system for Arabic language that converts images of typed text to machine-encoded text. The system currently supports only letters (29 l

Hussein Youssef 144 Jan 5, 2023
OCR, Scene-Text-Understanding, Text Recognition

Scene-Text-Understanding Survey [2015-PAMI] Text Detection and Recognition in Imagery: A Survey paper [2014-Front.Comput.Sci] Scene Text Detection and

Alan Tang 354 Dec 12, 2022
Total Text Dataset. It consists of 1555 images with more than 3 different text orientations: Horizontal, Multi-Oriented, and Curved, one of a kind.

Total-Text-Dataset (Official site) Updated on April 29, 2020 (Detection leaderboard is updated - highlighted E2E methods. Thank you shine-lcy.) Update

Chee Seng Chan 671 Dec 27, 2022