Code Monkey home page Code Monkey logo

berryhn / text_segment_deeplearning_based Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tengshaofeng/text_segment_deeplearning_based

1.0 2.0 0.0 32.98 MB

purpose This code is written by Koichiro Tamura in order to understand Residual Attention Network for Image Classification. explanation I made document which explains Residual Attention Network for Image Classification(in Japanese). The document would be on SlideShare and the website of Deep Learning JP how to use Requirements Anaconda3.x tensorflow 1.x keras 2.x train $ python residual-attention-network/train.py test Sorry, I have not written scripts for test.

Python 100.00%

text_segment_deeplearning_based's Introduction

text_segment_deeplearning_based

purpose

This code is written by tengshaofeng in order to segment character in a text line image.

reference paper

Chinese/English mixed Character Segmentation as Semantic Segmentation. Huabin Zheng

Requirements

Anaconda2.x tensorflow 0.x

prepare dataset

you can generate the dataset from several types of fonts by run: python dataset_gen.py the gen_imgs folder store the images, and corpus.txt store the characters. also you can manually label the 1024*48 text line image. dataset.txt save the label like: ['0.png', 0, 36, 45, 82, 87, 126, 129, 167, 172, 209, 215, 252, 253, 290, 305, 341, 354, 392, 393, 433, 435, 473] ['1.png', 11, 47, 56, 94, 99, 135, 141, 177, 179, 218, 232, 268, 273, 311, 326, 365, 368, 408, 421, 461, 461, 5] 0 , 36, 45 and so on is the split points(cols) in the image.

train

python CharacterSegmentTrain.py

experiment result

result1 result

text_segment_deeplearning_based's People

Contributors

tengshaofeng avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.