Skip to content

Installation & Usage

Shows an illustrated sun in light mode and a moon with stars in dark mode.
PyPI SemVer2.0

Introduction

Source code: https://github.com/RapidAI/RapidOCRWeb

rapidocr_web is a Web-based OCR application built on the rapidocr library. It lets you quickly start an OCR service locally, supports clipboard, drag-and-drop and image file uploads for recognition, and provides one-click copying of the recognized text.

The whole project uses a front-end/back-end separation design:

  • Front end: HTML + CSS + JavaScript
  • Back end: Flask

The UI comes from Cursor and adapts to both mobile and desktop devices. Compared with the older version (v0.x), the current version (v1.x) is more modern.

Installation

pip install rapidocr_web

Usage

Start the service

rapidocr_web -ip 0.0.0.0 -p 9003

After startup, open http://localhost:9003/ in a browser. It uses http by default, not https.

Where:

  • -ip 0.0.0.0 allows access from other devices on the local network; change it to 127.0.0.1 when using it on the local machine only.
  • -p 9003 specifies the port. If the port is occupied, switch to another port and access the corresponding address.

Note

If accessing from another device, replace localhost with the local-network IP of the device running the service.

Comments