ppu-indra-ocr 0.1.1 → 0.2.0

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.
Files changed (65) hide show
  1. package/LICENSE-STATUS.md +15 -7
  2. package/README.md +719 -193
  3. package/cli/commands.js +2 -2
  4. package/cli/help.d.ts +1 -1
  5. package/cli/help.js +3 -2
  6. package/cli/options.d.ts +3 -0
  7. package/cli/options.js +1 -1
  8. package/core/indra-ocr.service.d.ts +19 -7
  9. package/core/indra-ocr.service.js +1 -1
  10. package/core/opencv-image-ops.js +1 -1
  11. package/core/platform.d.ts +2 -0
  12. package/exports.d.ts +2 -2
  13. package/exports.js +1 -1
  14. package/indra/assemble.d.ts +38 -13
  15. package/indra/assemble.js +2 -2
  16. package/indra/document.d.ts +4 -3
  17. package/indra/document.js +1 -1
  18. package/indra/image.d.ts +2 -2
  19. package/indra/lines.d.ts +8 -3
  20. package/indra/lines.js +1 -1
  21. package/indra/lm.d.ts +51 -0
  22. package/indra/lm.js +1 -0
  23. package/indra/npz.d.ts +14 -0
  24. package/indra/npz.js +1 -0
  25. package/indra/order-post.d.ts +9 -0
  26. package/indra/order-post.js +1 -1
  27. package/indra/pipeline.d.ts +30 -17
  28. package/indra/pipeline.js +1 -1
  29. package/indra/rec-preproc.d.ts +14 -2
  30. package/indra/rec-preproc.js +1 -1
  31. package/indra/recognize.d.ts +44 -6
  32. package/indra/recognize.js +1 -1
  33. package/indra/recognizers.d.ts +45 -0
  34. package/indra/recognizers.js +1 -0
  35. package/indra/rtl.d.ts +34 -0
  36. package/indra/rtl.js +1 -0
  37. package/indra/text-runs.d.ts +35 -0
  38. package/indra/text-runs.js +2 -0
  39. package/indra/textlayer.d.ts +43 -16
  40. package/indra/textlayer.js +1 -2
  41. package/indra/ts-image-ops.js +1 -1
  42. package/indra/types.d.ts +39 -7
  43. package/indra/unicode-data.d.ts +4 -0
  44. package/indra/unicode-data.js +1 -0
  45. package/indra/unicode.d.ts +24 -0
  46. package/indra/unicode.js +1 -0
  47. package/indra/upright.d.ts +13 -2
  48. package/indra/upright.js +1 -1
  49. package/indra/vocab.d.ts +3 -1
  50. package/indra/vocab.js +1 -1
  51. package/interface.d.ts +13 -2
  52. package/mobile/platform.mobile.d.ts +1 -0
  53. package/mobile/platform.mobile.js +1 -1
  54. package/model-catalogue.d.ts +76 -20
  55. package/model-catalogue.js +1 -1
  56. package/package.json +1 -1
  57. package/pdf/index.js +1 -1
  58. package/pdf/pdfium.d.ts +2 -0
  59. package/pdf/pdfium.js +1 -1
  60. package/processor/indra-ocr.service.d.ts +7 -2
  61. package/processor/indra-ocr.service.js +1 -1
  62. package/processor/platform.node.d.ts +1 -0
  63. package/processor/platform.node.js +1 -1
  64. package/web/platform.web.d.ts +1 -0
  65. package/web/platform.web.js +1 -1
package/LICENSE-STATUS.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **Subject to change.** This page records where this project stands on the
4
4
  > license of the Indra OCR model weights. It changes when Datalab answers us
5
- > or when Datalab changes its license. Last updated: 2026-10-17.
5
+ > or when Datalab changes its license. Last updated: 2026-10-20.
6
6
  >
7
7
  > This page is not legal advice. Read the license yourself before you use the
8
8
  > weights.
@@ -69,7 +69,7 @@ written answer on four points:
69
69
  statement that Datalab does not endorse the project?
70
70
  4. Does Section 8 apply to the OCR text that users get from the model?
71
71
 
72
- As of 2026-10-17, we have no reply. We do not read silence as permission.
72
+ As of 2026-10-20, we have no reply. We do not read silence as permission.
73
73
  Datalab has not approved or endorsed this project.
74
74
 
75
75
  ## What this project does with the weights
@@ -77,13 +77,21 @@ Datalab has not approved or endorsed this project.
77
77
  - **Default download.** The library downloads the weights from Datalab's own
78
78
  repository,
79
79
  [datalab-to/indra-ocr](https://huggingface.co/datalab-to/indra-ocr),
80
- pinned to commit `d7c839c892bfe4b8993373db64c62f154d05d70b` (tag v3.1).
80
+ pinned to one commit per model preset: `a1283c4b42a273c09480ad50e71461daff50fcc7`
81
+ (tag v1.1.0, Indra OCR 1.1, the default) and
82
+ `d7c839c892bfe4b8993373db64c62f154d05d70b` (tag v3.1, Indra OCR 1.0).
83
+ - **Same license in 1.1.** The license file of tag v1.1.0 is byte for byte
84
+ the license file of tag v3.1 (sha256
85
+ `50c88a018a7ee322e89f6b09401b237beb0cd331685879405b3db48993950a5f`). Indra OCR 1.1
86
+ changed the weights, not the terms.
81
87
  - **No weights in the package.** The npm and JSR packages contain the code
82
88
  only.
83
- - **Mirrors.** Two unmodified copies of the pinned weights exist, each with
84
- Datalab's license and attribution: [models/](models/) in this repository,
85
- and the Hugging Face repository
86
- [snowfluke/ppu-indra-ocr-models](https://huggingface.co/snowfluke/ppu-indra-ocr-models).
89
+ - **Mirrors.** Unmodified copies of the pinned weights exist, each with
90
+ Datalab's license and attribution: [models/](models/) (v3.1) and
91
+ [models/v1.1/](models/v1.1/) in this repository, and the Hugging Face
92
+ repository
93
+ [snowfluke/ppu-indra-ocr-models](https://huggingface.co/snowfluke/ppu-indra-ocr-models)
94
+ (v3.1 at its root, v1.1 in `v1.1/`).
87
95
  The library uses the GitHub copy only when you set
88
96
  `PPU_INDRA_OCR_MODEL_MIRROR=1` and Hugging Face fails. It does not use the
89
97
  Hugging Face copy.