You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let me know if this is still outstanding. The exact reason for the error is likely specific to your setup rather than indicative of a broader issue, so will close the issue otherwise.
Describe the bug:
I want to achieve fully offline use of tesseract.js, so I will:
const recognizeText = async (imageUrl: string) => {
const worker = await Tesseract.createWorker("chi_sim", undefined, {
workerPath: "/tessdata/tesseract.js/dist/worker.min.js",
corePath: "/tessdata/tesseract.js-core",
langPath: "/tessdata/tesseract-lang",
logger: m => console.log(m),
})
To Reproduce:
Steps to reproduce the behavior:
tesseract-lang、tesseract.js、tesseract.js-core
Complete code
const inputRefOCR = useRef(null)
const [imageData, setImageData] = useState("")
const [recognizedText, setRecognizedText] = useState("")
Console error display:

Expected behavior:
Implement fully offline use of Tesseract.js
Device Version:
The text was updated successfully, but these errors were encountered: