Socket
Socket
Sign inDemoInstall

tesseract.js

Package Overview
Dependencies
139
Maintainers
4
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.1 to 4.0.2

examples/node/eng.traineddata

12

docs/local-installation.md

@@ -13,5 +13,5 @@ ## Local Installation

Tesseract.recognize(image, langs, {
workerPath: 'https://unpkg.com/tesseract.js@v4.0.0/dist/worker.min.js',
workerPath: 'https://unpkg.com/tesseract.js@v4.0.1/dist/worker.min.js',
langPath: 'https://tessdata.projectnaptha.com/4.0.0',
corePath: 'https://unpkg.com/tesseract.js-core@v4.0.0/tesseract-core.wasm.js',
corePath: 'https://unpkg.com/tesseract.js-core@v4.0.1/tesseract-core.wasm.js',
})

@@ -24,5 +24,5 @@ ```

const worker = await createWorker({
workerPath: 'https://unpkg.com/tesseract.js@v4.0.0/dist/worker.min.js',
workerPath: 'https://unpkg.com/tesseract.js@v4.0.1/dist/worker.min.js',
langPath: 'https://tessdata.projectnaptha.com/4.0.0',
corePath: 'https://unpkg.com/tesseract.js-core@v4.0.0/tesseract-core.wasm.js',
corePath: 'https://unpkg.com/tesseract.js-core@v4.0.1/tesseract-core.wasm.js',
});

@@ -38,4 +38,4 @@ ```

### corePath
A string specifying the location of the [tesseract.js-core library](https://github.com/naptha/tesseract.js-core), with default value 'https://unpkg.com/tesseract.js-core@v4.0.0/tesseract-core.wasm.js'.
A string specifying the location of the [tesseract.js-core library](https://github.com/naptha/tesseract.js-core), with default value 'https://unpkg.com/tesseract.js-core@v4.0.1/tesseract-core.wasm.js'.
Another WASM option is 'https://unpkg.com/tesseract.js-core@v4.0.0/tesseract-core.js' which is a script that loads 'https://unpkg.com/tesseract.js-core@v4.0.0/tesseract-core.wasm'. But it fails to fetch at this moment.
Another WASM option is 'https://unpkg.com/tesseract.js-core@v4.0.1/tesseract-core.js' which is a script that loads 'https://unpkg.com/tesseract.js-core@v4.0.1/tesseract-core.wasm'. But it fails to fetch at this moment.
{
"name": "tesseract.js",
"version": "4.0.1",
"version": "4.0.2",
"description": "Pure Javascript Multilingual OCR",

@@ -73,3 +73,3 @@ "main": "src/index.js",

"resolve-url": "^0.2.1",
"tesseract.js-core": "^4.0.1",
"tesseract.js-core": "^4.0.2",
"wasm-feature-detect": "^1.2.11",

@@ -76,0 +76,0 @@ "zlibjs": "^0.3.1"

@@ -101,3 +101,3 @@ <p align="center">

<!-- v4 -->
<script src='https://unpkg.com/tesseract.js@4.0.0/dist/tesseract.min.js'></script>
<script src='https://unpkg.com/tesseract.js@4.0.1/dist/tesseract.min.js'></script>
```

@@ -104,0 +104,0 @@ After including the script the `Tesseract` variable will be globally available.

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc