Browse Source

stuff

pull/12/head
Kevin Kwok 8 years ago
parent
commit
699c029e89
  1. 4
      dist/README.md
  2. 1
      examples/file-input/README.md
  3. 5
      examples/file-input/demo.html
  4. 14
      package.json

4
dist/README.md vendored

@ -0,0 +1,4 @@
# Using Tesseract.JS
<script src='https://cdn.rawgit.com/naptha/tesseract.js/a01d2a2/dist/tesseract.js'></script>

1
examples/file-input/README.md

@ -0,0 +1 @@
#

5
examples/file-input/demo.html

@ -1,5 +1,2 @@
<script src="dist/tesseract.js"></script> <script src="dist/tesseract.js"></script>
<input type="file" onchange="Tesseract.recognize(this.files[0]).progress(console.log)"> <input type="file" onchange="Tesseract.recognize(this.files[0]).progress(console.log)">
<input type="file" onchange="Tesseract.recognize(this.files[0], {lang: 'chi_sim'}).progress(console.log)">

14
package.json

@ -1,7 +1,7 @@
{ {
"name": "tesseract.js", "name": "tesseract.js",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "Pure Javascript Multilingual OCR",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" & exit 1", "test": "echo \"Error: no test specified\" & exit 1",
@ -28,5 +28,15 @@
"pako": "^1.0.3", "pako": "^1.0.3",
"png.js": "^0.2.1", "png.js": "^0.2.1",
"tesseract.js-core": "^1.0.2" "tesseract.js-core": "^1.0.2"
} },
"repository": {
"type": "git",
"url": "https://github.com/naptha/tesseract.js.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/naptha/tesseract.js/issues"
},
"homepage": "https://github.com/naptha/tesseract.js"
} }

Loading…
Cancel
Save