Browse Source

Revert "Update link in examples.md and build scripts"

This reverts commit 313e699765.
pull/288/head
Jerome Wu 6 years ago
parent
commit
698a7d60b2
  1. 14
      docs/examples.md
  2. 24
      package-lock.json
  3. 3
      package.json

14
docs/examples.md

@ -16,7 +16,7 @@ const { TesseractWorker } = Tesseract; @@ -16,7 +16,7 @@ const { TesseractWorker } = Tesseract;
const worker = new TesseractWorker();
worker
.recognize('https://tesseract.projectnaptha.com/img/eng_bw.png')
.recognize('http://jeroen.github.io/images/testocr.png')
.then((result) => {
console.log(result);
});
@ -31,7 +31,7 @@ const { TesseractWorker } = Tesseract; @@ -31,7 +31,7 @@ const { TesseractWorker } = Tesseract;
const worker = new TesseractWorker();
worker
.recognize('https://tesseract.projectnaptha.com/img/eng_bw.png')
.recognize('http://jeroen.github.io/images/testocr.png')
.progress((p) => {
console.log('progress', p);
})
@ -50,7 +50,7 @@ const worker = new TesseractWorker(); @@ -50,7 +50,7 @@ const worker = new TesseractWorker();
worker
.recognize(
'https://tesseract.projectnaptha.com/img/eng_bw.png',
'http://jeroen.github.io/images/testocr.png',
'eng+chi_tra'
)
.progress((p) => {
@ -73,7 +73,7 @@ const worker = new TesseractWorker(); @@ -73,7 +73,7 @@ const worker = new TesseractWorker();
worker
.recognize(
'https://tesseract.projectnaptha.com/img/eng_bw.png',
'http://jeroen.github.io/images/testocr.png',
'eng',
{
'tessedit_ocr_engine_mode': OEM.TESSERACT_ONLY,
@ -100,7 +100,7 @@ const worker = new TesseractWorker(); @@ -100,7 +100,7 @@ const worker = new TesseractWorker();
worker
.recognize(
'https://tesseract.projectnaptha.com/img/eng_bw.png',
'http://jeroen.github.io/images/testocr.png',
'eng',
{
'tessedit_pageseg_mode': PSM.SINGLE_BLOCK,
@ -126,7 +126,7 @@ const worker = new TesseractWorker(); @@ -126,7 +126,7 @@ const worker = new TesseractWorker();
worker
.recognize(
'https://tesseract.projectnaptha.com/img/eng_bw.png',
'http://jeroen.github.io/images/testocr.png',
'eng',
{
'tessedit_create_pdf': '1',
@ -150,7 +150,7 @@ const worker = new TesseractWorker(); @@ -150,7 +150,7 @@ const worker = new TesseractWorker();
worker
.recognize(
'https://tesseract.projectnaptha.com/img/eng_bw.png',
'http://jeroen.github.io/images/testocr.png',
'eng',
{
'tessedit_create_pdf': '1',

24
package-lock.json generated

@ -7833,28 +7833,12 @@ @@ -7833,28 +7833,12 @@
"dev": true
},
"rimraf": {
"version": "2.6.3",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
"integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
"dev": true,
"requires": {
"glob": "^7.1.3"
},
"dependencies": {
"glob": {
"version": "7.1.4",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz",
"integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==",
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz",
"integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==",
"dev": true,
"requires": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
"inherits": "2",
"minimatch": "^3.0.4",
"once": "^1.3.0",
"path-is-absolute": "^1.0.0"
}
}
"glob": "^7.0.5"
}
},
"ripemd160": {

3
package.json

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
"main": "src/index.js",
"scripts": {
"start": "node scripts/server.js",
"build": "rimraf dist && webpack --progress --config scripts/webpack.config.prod.js",
"build": "webpack --progress --config scripts/webpack.config.prod.js",
"prepublishOnly": "npm run build",
"wait": "wait-on http://localhost:3000/package.json",
"test": "npm-run-all -p -r start test:all",
@ -41,7 +41,6 @@ @@ -41,7 +41,6 @@
"mocha-headless-chrome": "^2.0.2",
"npm-run-all": "^4.1.5",
"nyc": "^13.1.0",
"rimraf": "^2.6.3",
"wait-on": "^3.2.0",
"webpack": "^4.26.0",
"webpack-cli": "^3.1.2",

Loading…
Cancel
Save