# @paddle-js-models/ocrdet

> [中文版](./README_cn.md)

Latest version **4.1.1** (published 2022-10-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install @paddle-js-models/ocrdet
pnpm add @paddle-js-models/ocrdet
yarn add @paddle-js-models/ocrdet
bun add @paddle-js-models/ocrdet
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.1 |
| Published | 2022-10-24 |
| First published | 2022-09-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 2.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | qianhechen |

## Links

- npm: https://www.npmjs.com/package/@paddle-js-models/ocrdet
- npm.io page: https://npm.io/package/@paddle-js-models/ocrdet

## Dependencies (6)

- [d3-polygon](https://npm.io/package/d3-polygon.md) ^3.0.1
- [js-clipper](https://npm.io/package/js-clipper.md) ^1.0.1
- [number-precision](https://npm.io/package/number-precision.md) ^1.5.2
- [@paddlejs/paddlejs-core](https://npm.io/package/@paddlejs/paddlejs-core.md) ^2.2.0
- [@paddlejs-mediapipe/opencv](https://npm.io/package/@paddlejs-mediapipe/opencv.md) ^0.0.4
- [@paddlejs/paddlejs-backend-webgl](https://npm.io/package/@paddlejs/paddlejs-backend-webgl.md) ^1.2.9

## Recent versions

- 4.1.1 (latest) — 2022-10-24
- 4.0.1 — 2022-10-22
- 4.0.0 — 2022-10-22
- 3.1.1 — 2022-09-21
- 3.1.0 — 2022-09-21
- 3.0.0 — 2022-09-20

## README

[中文版](./README_cn.md)

# ocr_detection

ocr_detection model is used to detect the text area in the image.

<img src="https://img.shields.io/npm/v/@paddle-js-models/ocrdet?color=success" alt="version"> <img src="https://img.shields.io/bundlephobia/min/@paddle-js-models/ocrdet" alt="size"> <img src="https://img.shields.io/npm/dm/@paddle-js-models/ocrdet?color=orange" alt="downloads"> <img src="https://img.shields.io/npm/dt/@paddle-js-models/ocrdet" alt="downloads">


The ocr_detection model is compressed from [PP-OCRv3](https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/doc/doc_en/PP-OCRv3_introduction_en.md) which released by [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR), which greatly improves the running speed on js at a small loss of accuracy.


# Usage

```js
import * as ocr from '@paddle-js-models/ocrdet';
// Load ocr_detect model
await ocr.load();
// Get text area points
const res = await ocr.detect(img);
```

# Online experience

https://paddlejs.baidu.com/ocrdet

# Performance
<img alt="image" src="https://user-images.githubusercontent.com/43414102/156394295-5650b6c5-65c4-42a7-bccc-3ed459577b9d.png">

---
_Source: https://npm.io/package/@paddle-js-models/ocrdet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
