tesseract.js
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -143,3 +143,3 @@ # API | ||
Worker.FS() is a generic FS function to do anything you want, you can check [HERE](ihttps://emscripten.org/docs/api_reference/Filesystem-API.html) for all functions. | ||
Worker.FS() is a generic FS function to do anything you want, you can check [HERE](https://emscripten.org/docs/api_reference/Filesystem-API.html) for all functions. | ||
@@ -210,4 +210,5 @@ **Arguments:** | ||
**Useful Paramters:** | ||
**Useful Parameters:** | ||
| name | type | default value | description | | ||
@@ -217,3 +218,3 @@ | --------------------------- | ------ | ----------------- | ------------------------------------------------------------------------------------------------------------------------------- | | ||
| tessedit\_pageseg\_mode | enum | PSM.SINGLE\_BLOCK | Check [HERE](https://github.com/tesseract-ocr/tesseract/blob/4.0.0/src/ccstruct/publictypes.h#L163) for definition of each mode | | ||
| tessedit\_char\_whitelist | string | '' | setting white list characters makes the result only contains these characters, useful the content in image is limited | | ||
| tessedit\_char\_whitelist | string | '' | setting white list characters makes the result only contains these characters, useful if content in image is limited | | ||
| preserve\_interword\_spaces | string | '0' | '0' or '1', keeps the space between words | | ||
@@ -220,0 +221,0 @@ | user\_defined\_dpi | string | '' | Define custom dpi, use to fix **Warning: Invalid resolution 0 dpi. Using 70 instead.** | |
{ | ||
"name": "tesseract.js", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Pure Javascript Multilingual OCR", | ||
@@ -73,3 +73,3 @@ "main": "src/index.js", | ||
"resolve-url": "^0.2.1", | ||
"tesseract.js-core": "^4.0.2", | ||
"tesseract.js-core": "^4.0.3", | ||
"wasm-feature-detect": "^1.2.11", | ||
@@ -76,0 +76,0 @@ "zlibjs": "^0.3.1" |
<p align="center"> | ||
<a href="https://tesseract.projectnaptha.com/"><img width="256px" height="256px" alt="Tesseract.js" src="./docs/images/tesseract.png"></a> | ||
<a href="https://tesseract.projectnaptha.com/"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="./docs/images/tesseract_dark.png"> | ||
<img width="256px" height="256px" alt="Tesseract.js" src="./docs/images/tesseract.png"> | ||
</picture> | ||
</a> | ||
</p> | ||
@@ -12,3 +17,2 @@ | ||
[![Code Style](https://badgen.net/badge/code%20style/airbnb/ff5a5f?icon=airbnb)](https://github.com/airbnb/javascript) | ||
[![Downloads Total](https://img.shields.io/npm/dt/tesseract.js.svg)](https://www.npmjs.com/package/tesseract.js) | ||
[![Downloads Month](https://img.shields.io/npm/dm/tesseract.js.svg)](https://www.npmjs.com/package/tesseract.js) | ||
@@ -29,3 +33,3 @@ | ||
Tesseract.js wraps an [emscripten](https://github.com/kripken/emscripten) [port](https://github.com/naptha/tesseract.js-core) of the [Tesseract](https://github.com/tesseract-ocr/tesseract) [OCR](https://en.wikipedia.org/wiki/Optical_character_recognition) Engine. | ||
Tesseract.js wraps a [webassembly port](https://github.com/naptha/tesseract.js-core) of the [Tesseract](https://github.com/tesseract-ocr/tesseract) OCR Engine. | ||
It works in the browser using [webpack](https://webpack.js.org/) or plain script tags with a [CDN](#CDN) and on the server with [Node.js](https://nodejs.org/en/). | ||
@@ -103,3 +107,3 @@ After you [install it](#installation), using it is as simple as: | ||
<!-- v4 --> | ||
<script src='https://unpkg.com/tesseract.js@4.0.1/dist/tesseract.min.js'></script> | ||
<script src='https://unpkg.com/tesseract.js@4.0.2/dist/tesseract.min.js'></script> | ||
``` | ||
@@ -146,2 +150,6 @@ After including the script the `Tesseract` variable will be globally available. | ||
React Native is **not** supported as it does not support Webassembly. | ||
Disclaimer: These examples are now several years old and use old versions of both Tesseract.js and the relevant frameworks. Users are encouraged to use the latest version of Tesseract.js rather than the versions used in these examples. For users that update these examples (or make new ones), please consider contributing through a PR. | ||
## Contributing | ||
@@ -148,0 +156,0 @@ |
@@ -10,3 +10,4 @@ declare namespace Tesseract { | ||
addWorker(worker: Worker): string | ||
addJob(action: string, ...args: any[]): Promise<ConfigResult | RecognizeResult | DetectResult> | ||
addJob(action: 'recognize', ...args: Parameters<Worker['recognize']>): Promise<RecognizeResult> | ||
addJob(action: 'detect', ...args: Parameters<Worker['detect']>): Promise<DetectResult> | ||
terminate(): Promise<any> | ||
@@ -13,0 +14,0 @@ getQueueLen(): number |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
36817306
92
3331
212
6
Updatedtesseract.js-core@^4.0.3