Socket
Book a DemoInstallSign in
Socket

paddleocr-browser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paddleocr-browser

PaddleOCR on browser

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
32
-59.49%
Maintainers
1
Weekly downloads
 
Created
Source

paddleocr-browser

PaddleOCR running on browser using eSearch-OCR

Online demo

Installation

<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.min.js"></script>
<script async src="https://docs.opencv.org/4.8.0/opencv.js" type="text/javascript"></script>
<script type="module">
  import * as Paddle from "https://cdn.jsdelivr.net/npm/esearch-ocr@5.1.5/dist/esearch-ocr.js";
  window.Paddle = Paddle;
</script>

Usage

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);

Keywords

paddleocr

FAQs

Package last updated on 03 Dec 2024

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.