Git Product home page Git Product logo

ocr-demo's Introduction

OCR Demo

Python版本:Python 3.8.6

依赖Python库

pip install easyocr
pip install twisted
pip install logging
pip install django

How to start OCR server

# python.exe ocr_engine.py
# usage: ocr_engine.py -p <port>

# python.exe ocr_engine.py -p 8001
2020-11-04 18:08:23,224 - easyocr.easyocr - WARNING - CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU.
2020-11-04 18:08:26,092 - __main__ - INFO - TCP server started on port(s): 8001 ...

How to start client

# python.exe ocr_client.py
# usage: ocr_client.py -h <host> -p <port> -i <image>
# python.exe ocr_client.py -h localhost -p 8001 -i chinese.jpg
2020-11-04 18:08:30,410 - __main__ - INFO - Start time: 2020-11-04 18:08:30
2020-11-04 18:08:34,069 - __main__ - INFO - Got response: 愚园路西东315309Yuyuan Rd.WE

2020-11-04 18:08:34,069 - __main__ - INFO - End time: 2020-11-04 18:08:34

更详细的安装和使用教程关注作者头条号。

关注作者

头条号:云计算AND容器技术

云计算AND容器技术

ocr-demo's People

Contributors

bq-xiao avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.