Files
fil/docs/snippets/wasm/ocr/ocr_paddleocr.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

538 B

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.