Coder Social home page Coder Social logo

ldrnet's Introduction

Introduction

LDRNet is lightweight deep neural network for localizing document in a image/photo with extremely low latency. Given any image as input, LDRNet predicts the coordinates of the document's quadrilateral corners in real-time. network JI on icdar2015 smartphonelantency

Requirements

  • tensorflow==2.3.1
  • tensorflow-addons==0.11.2
  • opencv-python==4.4.0.46
  • numpy==1.18.5

Predict

A simple example for predicting the quadrilateral corners of the image in imgs folder:

python3 predict.py

Train

CUDA_VSIBLE_DEVICES=0 python3 train.py --config_file ./config.yaml
  • fill the label_path and img_folder_path in config.yaml
  • label consists of 18 elements: file name, eights floats for four coordinates, eights float for weights(set to 0.0625), class index(start from 0)

Deployment

  • To TensorRT
  • To TNN

Citations

If you publish work related to LDRNet or Real-time Document Localization, please refer to the following paper and cite accordingly:

@inproceedings{wu2023ldrnet,
  title={LDRNet: Enabling Real-time Document Localization on Mobile Devices},
  author={Wu, Han and Qian, Holland and Wu, Huaming and van Moorsel, Aad},
  booktitle={Machine Learning and Principles and Practice of Knowledge Discovery in Databases: International Workshops of ECML PKDD 2022, Grenoble, France, September 19--23, 2022, Proceedings, Part I},
  pages={618--629},
  year={2023},
  organization={Springer}
}

ldrnet's People

Contributors

niuwagege avatar woohan avatar

Stargazers

 avatar 彭齐荣 avatar  avatar Edmond avatar Mostafa Ramadan avatar Tuyen Van avatar dp avatar Gabriel Oliveira-Barra avatar Vin Howe avatar  avatar Nguyen Pham avatar  avatar ThangMX avatar CAranda avatar  avatar  avatar

Watchers

 avatar  avatar

ldrnet's Issues

calculate the accuracy of model

Thank for your research. I implement your opensource , i want to calculate the accuracy of model and evaluate the accuracy of your DL model . Can you give me the method or code ?. Moreover i want to convert it to TensorRT. Thank you so much !

License?

Hi!
Could you please specify license that covers this model usage?

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.