Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/onestraw/ocrservice

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/onestraw/ocrservice

  • v0.0.0-20180615030057-18c56ddba6ed
  • Source
  • Go
  • Socket score

Version published
Created
Source

OCR Service

使用开源项目搭了一个OCR服务的完整技术栈

  • frontend 应用: UI完整拷贝自otiai10/ocrserver
  • 负载均衡器: Nginx
  • backend 业务层: Gin
  • worker 计算层: Tesseract
  • MQ 消息队列: RabbitMQ

Architecture

                      - - - -    - - - -
                      | APP |    | APP |
                      - - - -    - - - -
                         ^          ^
                         |          |
                         |          |
                         v          v
                     - - - - - - - - - -
                     |  Loadbalancer   |
                     - - - - - - - - - -
                       ^      ^       ^
                     /        |         \
                   /          |           \
                 /            |             \
                v             v              v
          - - - - - -     - - - - - -      - - - - - -
          | Backend |     | Backend |      | Backend |
          - - - - - -     - - - - - -      - - - - - -
              ^              |   ^               ^ 
              |              |   |               |
              v              v   |               v
          - - - - - - - - - - - - - - - - - - - - - - - -
          |                 | | | |                     |
          |     RabbitMQ    |q| |q|        RPC          |
          |                 | | | |                     |
          - - - - - - - - - - - - - - - - - - - - - - - -
              ^              |   ^            ^        ^ 
              |              |   |            |         \
              v              v   |            v          \
        - - - - - -      - - - - - -    - - - - - -    - - - - - -
        | Worker  |      | Worker  |    | Worker  |    | Worker  |
        - - - - - -      - - - - - -    - - - - - -    - - - - - -

Play with docker

build image

hub clone onestraw/ocrservice
cd ocrservice
docker build -t onestraw/ocrservice .

Play

docker-compose up -d
# view in browser: 127.0.0.1:10001
cd tests/ && ./runtest.sh
# ...
docker-compose logs
docker-compose down

ocrservice-ui

Todo

  • 支持PDF
  • 添加用户认证
  • 持久化存储
  • 高可用

Reference

  • Tesseract Open Source OCR Engine
  • Simple OCR server
  • RabbitMQ RPC

FAQs

Package last updated on 15 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc