pi-ocr 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions/tesseract.ts +1 -1
- package/package.json +1 -1
package/extensions/tesseract.ts
CHANGED
|
@@ -68,7 +68,7 @@ async function convertPdfPage(pdfPath: string, pageIndex: number, outPath: strin
|
|
|
68
68
|
async function tesseractImage(imagePath: string, _task: Task): Promise<string> {
|
|
69
69
|
const { stdout, stderr, code } = await execCapture("tesseract", [
|
|
70
70
|
imagePath, "stdout",
|
|
71
|
-
"-l", "eng", // English
|
|
71
|
+
"-l", "eng+chi_sim", // English + Chinese simplified
|
|
72
72
|
"--psm", "3", // Auto page segmentation
|
|
73
73
|
]);
|
|
74
74
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-ocr",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Pi extension: Zero-setup multi-backend OCR — MinerU (free cloud), Ollama (local GPU, LaTeX formulas), Pix2Text (local Python). Extract text, formulas, and tables from images and PDFs. Default: zero config, works out of the box.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|