An open API service indexing awesome lists of open source software.

https://github.com/xulihang/paddleocr-browser

PaddleOCR running on browser
https://github.com/xulihang/paddleocr-browser

javascript js ocr paddleocr

Last synced: 4 months ago
JSON representation

PaddleOCR running on browser

Awesome Lists containing this project

README

          

# paddleocr-browser

PaddleOCR running on browser using [eSearch-OCR](https://github.com/xushengfeng/eSearch-OCR)

[Online demo](https://www.basiccat.org/online-image-translator)

## Installation

```html

import * as Paddle from "https://cdn.jsdelivr.net/npm/esearch-ocr@5.1.5/dist/esearch-ocr.js";
window.Paddle = Paddle;

```

## Usage

```js
const assetsPath = "https://cdn.jsdelivr.net/npm/paddleocr-browser/dist/";
const res = await fetch(assetsPath+"ppocr_keys_v1.txt");
const dic = await res.text();
await Paddle.init({
detPath: assetsPath+"ppocr_det.onnx",
recPath: assetsPath+"ppocr_rec.onnx",
dic: dic,
ort,
node: false,
cv:cv
});
let r = await Paddle.ocr(dataURL);
```