@opencraw/captcha-tesseract 0.0.5 → 0.0.7

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 (2) hide show
  1. package/README.md +9 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,10 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/russoedu/open.craw/main/docs/assets/opencraw-logo.svg" alt="OpenCraw" width="360">
3
+ </p>
4
+
1
5
  # @opencraw/captcha-tesseract
2
6
 
3
- A captcha reader for [OpenCraw](../../README.md): it reads the code in an image captcha with Tesseract and fills
7
+ A captcha reader for [OpenCraw](https://github.com/russoedu/open.craw/blob/main/README.md): it reads the code in an image captcha with Tesseract and fills
4
8
  the form's answer field. The engine then posts the form, checks the page and retries.
5
9
 
6
10
  It is meant for simple image captchas: a short code drawn in a clean font, like the public Vahan registrations
@@ -11,7 +15,8 @@ widget solver instead.
11
15
  npm install @opencraw/captcha-tesseract
12
16
  ```
13
17
 
14
- Tesseract runs in WebAssembly, and the English model ships in the package, so nothing is downloaded at run time.
18
+ Tesseract runs in WebAssembly, and the English model comes with it (the `@tesseract.js-data/eng` dependency), so
19
+ nothing is downloaded at run time.
15
20
 
16
21
  ## Use
17
22
 
@@ -124,7 +129,7 @@ load lost), or **refused** (refreshed for free, never submitted):
124
129
  | The site's charset, no cross-check | 78 | 6 | 16 |
125
130
  | `A-Za-z0-9`, no cross-check | 71 | 12 | 17 |
126
131
 
127
- - **Name the charset the site really uses.** In 600 labelled characters, 16 never appear: `0 I O` and the
132
+ - **Name the charset the site really uses.** In 588 labelled characters, 17 never appear: `0 I O` and the
128
133
  lowercase letters that look like capitals or like other glyphs (`c i j k l m o p s v w x y z`). Allowing
129
134
  them doubles the wrong reads: `1` read as `l`, `J` as `j`.
130
135
  - **Keep the cross-check.** It turns 5 of the 6 remaining wrong reads into refreshes. The one left is an image
@@ -140,5 +145,5 @@ load lost), or **refused** (refreshed for free, never submitted):
140
145
  of both cases. Over 80 codes, with the cross-check, 75% are right, 16% refused, 9% wrong. The misses are the
141
146
  letters mixed case makes ambiguous (`j`/`J`, `s`/`S`, `y`/`Y`): both reads agree on the wrong case.
142
147
 
143
- Solving a site's captcha can break its terms of service. Read OpenCraw's [captcha guide](../../docs/recipes/captcha.md)
148
+ Solving a site's captcha can break its terms of service. Read OpenCraw's [captcha guide](https://github.com/russoedu/open.craw/blob/main/docs/recipes/captcha.md)
144
149
  first.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencraw/captcha-tesseract",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "module": "./dist/index.esm.js",