Skip to content

A fast, helpful, and open-source document parser

docs(wasm): correct the OCR default and setup instructions

Choudhry Abdullahb1c4b2e54692
diff --git a/packages/wasm/README.md b/packages/wasm/README.md
index 5762454..e62eaf7 100644
--- a/packages/wasm/README.md
+++ b/packages/wasm/README.md
@@ -61,7 +61,7 @@ All optional, camelCase:
| Option | Type | Default | Description |
|---|---|---|---|
| `ocrLanguage` | `string` | `"eng"` | Language code passed to the OCR engine |
-| `ocrEnabled` | `boolean` | `true` | Run OCR on text-sparse pages |
+| `ocrEnabled` | `boolean` | `false` | Run OCR on text-sparse pages |
| `maxPages` | `number` | `1000` | Stop after this many pages |
| `targetPages` | `string` | — | e.g. `"1-5,10,15-20"` |
| `extractScreenshots` | `boolean` | `false` | Return parsed pages as PNG bytes on `result.screenshots` |
@@ -79,7 +79,9 @@ All optional, camelCase:
## OCR in the browser
-The native HTTP-OCR and Tesseract backends are not available in the browser. To use OCR, pass an object with a `recognize` method:
+The native HTTP-OCR and Tesseract backends are not available in the browser.
+To use OCR, set `ocrEnabled: true` and supply an `ocrEngine` object with a
+`recognize` method. Supplying `ocrEngine` alone does not enable OCR.
```ts
const parser = new LiteParse({