Browse Source

Update documents

develop
Jerome Wu 6 years ago
parent
commit
31cf08e2e2
  1. 2
      README.md
  2. 2
      docs/local-installation.md

2
README.md

@ -39,7 +39,7 @@ Tesseract.js works with a `<script>` tag via local copy or CDN, with webpack via @@ -39,7 +39,7 @@ Tesseract.js works with a `<script>` tag via local copy or CDN, with webpack via
You can simply include Tesseract.js with a CDN like this:
```html
<script src='https://cdnjs.cloudflare.com/ajax/libs/tesseract.js/v2.0.0-alpha.1/tesseract.min.js'></script>
<script src='https://cdn.jsdelivr.net/gh/naptha/tesseract.js@v2.0.0-alpha.1/dist/tesseract.min.js'></script>
```
After including your scripts, the `Tesseract` variable will be defined globally!

2
docs/local-installation.md

@ -8,7 +8,7 @@ In Node.js environment, the only path you may want to customize is languages/lan @@ -8,7 +8,7 @@ In Node.js environment, the only path you may want to customize is languages/lan
```javascript
const worker = Tesseract.TesseractWorker({
workerPath: 'https://cdn.jsdelivr.net/gh/naptha/tesseract.js@v2.0.0/dist/worker.min.js',
workerPath: 'https://cdn.jsdelivr.net/gh/naptha/tesseract.js@v2.0.0-alpha.1/dist/worker.min.js',
langPath: 'https://tessdata.projectnaptha.com/4.0.0',
corePath: 'https://cdn.jsdelivr.net/gh/naptha/tesseract.js-core@v2.0.0-beta.5/tesseract-core.js',
});

Loading…
Cancel
Save