Giter Site home page Giter Site logo

document-scanner's Introduction

Document Scanner

这是一个基于Paddle的扫描全能王,它的检测步骤主要分为两步:

  1. 进行图像分割,提取出文本所在的位置
  2. 根据分割结果提取四个角点并进行后处理

环境

安装环境

pip install -r requirements.txt

下载model

从release中下载模型,并放到项目根目录下,从下面的链接下载:

https://github.com/AndSonder/Document-Scanner/releases/tag/model

运行

运行demo.py, 修改图片路径后运行

# demo.py
from predict import *

result = predict_one_image('images/IMG_0817.JPG')
cv2.imwrite('./output.jpg', result)
result = cv2.cvtColor(result, cv2.COLOR_BGR2RGB)
show(result)

效果图

document-scanner's People

Contributors

andsonder avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

yulinfox

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.