@procedures/ocr 0.68.8 → 0.68.9
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/CHANGELOG.md +10 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @procedures/ocr
|
|
2
2
|
|
|
3
|
+
## 0.68.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c163988: `ocr.page` and `ocr.image` take the optional input `upright`. With `upright: true`, tesseract finds the orientation of the page first (`--psm 0`). A page on its side is then read in the mode `--psm 1`, and each box is turned into the frame of the upright page. The result has `orientation`: the turn in the clock direction and the confidence of the engine.
|
|
8
|
+
|
|
9
|
+
The parsers have the new functions `turnText`, `turnBox` and `parseTesseractOsd`. An `OcrEngine` can have an `orientation` step. Without `upright`, the result does not change.
|
|
10
|
+
- @procedures/client@0.68.9
|
|
11
|
+
- @procedures/shell@0.68.9
|
|
12
|
+
|
|
3
13
|
## 0.68.8
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@procedures/ocr",
|
|
4
|
-
"version": "0.68.
|
|
4
|
+
"version": "0.68.9",
|
|
5
5
|
"description": "The text of a PDF page or an image, with the text, the confidence and the box of each line and word: the text layer of the page first (pdftotext), then OCR with a local engine (tesseract).",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ocr",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@mark1russell7/layout-contract": "^0.11.1",
|
|
84
|
-
"@procedures/client": "0.68.
|
|
85
|
-
"@procedures/shell": "0.68.
|
|
84
|
+
"@procedures/client": "0.68.9",
|
|
85
|
+
"@procedures/shell": "0.68.9",
|
|
86
86
|
"zod": "^4.6.5"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|