@scribe.js/tesseract.js
Advanced tools
Comparing version 5.0.4 to 5.0.5
{ | ||
"name": "@scribe.js/tesseract.js", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"description": "Fork of tesseract.js used for scribe.js. Pure Javascript Multilingual OCR", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
const { simd } = require('wasm-feature-detect'); | ||
const coreVersion = require('../../../package.json').dependencies['tesseract.js-core']; | ||
const coreVersion = require('../../../package.json').dependencies['@scribe.js/tesseract.js-core']; | ||
@@ -12,3 +12,3 @@ module.exports = async (lstmOnly, corePath, res) => { | ||
// Otherwise, default to CDN | ||
const corePathImport = corePath || `https://cdn.jsdelivr.net/npm/tesseract.js-core@v${coreVersion.substring(1)}`; | ||
const corePathImport = corePath || `https://cdn.jsdelivr.net/npm/@scribe.js/tesseract.js-core@v${coreVersion.substring(1)}`; | ||
@@ -15,0 +15,0 @@ // If a user specifies a specific JavaScript file, load that file. |
@@ -17,10 +17,10 @@ const { simd } = require('wasm-feature-detect'); | ||
if ([OEM.DEFAULT, OEM.LSTM_ONLY].includes(oem)) { | ||
TesseractCore = require('tesseract.js-core/tesseract-core-simd-lstm'); | ||
TesseractCore = require('@scribe.js/tesseract.js-core/tesseract-core-simd-lstm'); | ||
} else { | ||
TesseractCore = require('tesseract.js-core/tesseract-core-simd'); | ||
TesseractCore = require('@scribe.js/tesseract.js-core/tesseract-core-simd'); | ||
} | ||
} else if ([OEM.DEFAULT, OEM.LSTM_ONLY].includes(oem)) { | ||
TesseractCore = require('tesseract.js-core/tesseract-core-lstm'); | ||
TesseractCore = require('@scribe.js/tesseract.js-core/tesseract-core-lstm'); | ||
} else { | ||
TesseractCore = require('tesseract.js-core/tesseract-core'); | ||
TesseractCore = require('@scribe.js/tesseract.js-core/tesseract-core'); | ||
} | ||
@@ -27,0 +27,0 @@ res.progress({ status: statusText, progress: 1 }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1492616