-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,27 +97,24 @@ Tesseract.js works with a `<script>` tag via local copy or CDN, with webpack via | |
|
||
### CDN | ||
```html | ||
<!-- v2 --> | ||
<script src='https://unpkg.com/[email protected]/dist/tesseract.min.js'></script> | ||
|
||
<!-- v1 --> | ||
<script src='https://unpkg.com/[email protected]/src/index.js'></script> | ||
<!-- v4 --> | ||
<script src='https://unpkg.com/[email protected]/dist/tesseract.min.js'></script> | ||
``` | ||
After including the script the `Tesseract` variable will be globally available. | ||
|
||
|
||
### Node.js | ||
|
||
**Tesseract.js v3 requires Node.js v14 or higher** | ||
**Requires Node.js v14 or higher** | ||
|
||
```shell | ||
# For v3 | ||
# For latest version | ||
npm install tesseract.js | ||
yarn add tesseract.js | ||
|
||
# For v2 | ||
npm install tesseract.js@2 | ||
yarn add tesseract.js@2 | ||
# For old versions | ||
npm install tesseract.js@3.0.3 | ||
yarn add tesseract.js@3.0.3 | ||
``` | ||
|
||
|
||
|