Files
fil/docs/snippets/wasm/ocr/ocr_paddleocr.md

21 lines
538 B
Markdown
Raw Normal View History

2026-06-01 23:40:55 +02:00
<!-- snippet:syntax-only -->
```typescript title="WASM"
import init, { extractBytes } from "kreuzberg-wasm";
await init();
// PaddleOCR backend is not supported in WASM.
// PaddleOCR requires ONNX Runtime and native C++ dependencies unavailable in browser/WASM.
// Use the Tesseract-WASM backend instead, or implement a backend wrapper service.
const paddleOcrConfig = {
ocr: {
backend: "paddleocr", // Not supported in WASM
language: "en",
},
};
// This example shows the configuration structure for reference only.
```