GithubHelp home page GithubHelp logo

pan-keras's Introduction

Keras implementation of the paper "Efficient and Accurate Arbitrary-Shaped Text Detection with Pixel Aggregation Network"

Requirements

  • Keras==2.1.5
  • Tensorflow==1.8.0
  • opencv==3.4.2.16

Data Preparation

train.txt

1.jpg xmin1 ymin1 xmax1 ymin1 xmax1 ymax1 xmin1 ymax1 xmin2 ymin2 xmax2 ymin2 xmax2 ymax2 xmin2 ymax2......
2.jpg xmin1 ymin1 xmax1 ymin1 xmax1 ymax1 xmin1 ymax1 xmin2 ymin2 xmax2 ymin2 xmax2 ymax2 xmin2 ymax2......
...

val.txt

3.jpg xmin1 ymin1 xmax1 ymin1 xmax1 ymax1 xmin1 ymax1 xmin2 ymin2 xmax2 ymin2 xmax2 ymax2 xmin2 ymax2......
4.jpg xmin1 ymin1 xmax1 ymin1 xmax1 ymax1 xmin1 ymax1 xmin2 ymin2 xmax2 ymin2 xmax2 ymax2 xmin2 ymax2......
...

(and you can convert your .xml into .txt by ./utils/process_xml.py)

Train

python train_multithreading.py

Test and Prediction

use H5toPB.py to convert .h5 into .pb, which will make reference more comfortable(mabye not).

1.val_eval.py is used to predict your val dataset and calculate the accuracy and so on.

2.predict_pb.py is used to predict your val dataset and show the results in real time.

if you want to predict a single image, please find the fuction in predict_pb.py

reference

  1. https://github.com/WenmuZhou/PAN.pytorch

pan-keras's People

Contributors

qiushenjie avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pan-keras's Issues

标签问题

标签的是个坐标,是矩形框,还是不规则的四边形

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.