Updated references to examples

master
Balearica 8 months ago
parent bc427454f8
commit 00d17398c5
  1. 2
      .gitpod.yml
  2. 4
      README.md
  3. 4
      examples/browser/basic-efficient.html

@ -1,7 +1,7 @@
image:
file: .gitpod.Dockerfile
tasks:
- command: gp await-port 3000 && sleep 3 && gp preview $(gp url 3000)/examples/browser/demo.html
- command: gp await-port 3000 && sleep 3 && gp preview $(gp url 3000)/examples/browser/basic-efficient.html
- init: npm install
command: npm start
ports:

@ -152,14 +152,14 @@ npm install
npm start
```
The development server will be available at http://localhost:3000/examples/browser/demo.html in your favorite browser.
The development server will be available at http://localhost:3000/examples/browser/basic-efficient.html in your favorite browser.
It will automatically rebuild `tesseract.min.js` and `worker.min.js` when you change files in the **src** folder.
### Online Setup with a single Click
You can use Gitpod(A free online VS Code like IDE) for contributing. With a single click it will launch a ready to code workspace with the build & start scripts already in process and within a few seconds it will spin up the dev server so that you can start contributing straight away without wasting any time.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/naptha/tesseract.js/blob/master/examples/browser/demo.html)
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/naptha/tesseract.js/blob/master/examples/browser/basic-efficient.html)
### Building Static Files
To build the compiled static files just execute the following:

@ -7,9 +7,7 @@
<input type="file" id="uploader" multiple>
<script type="module">
// This is a basic example more efficient than "basic.html".
// In this example we create a worker once, and this worker is re-used
// every time the user uploads a new file.
// A worker is created once and used every time a user uploads a new file.
const worker = await Tesseract.createWorker("eng", 1, {
corePath: '../../node_modules/tesseract.js-core',
workerPath: "/dist/worker.min.js",

Loading…
Cancel
Save