Я пытаюсь распознать файл в Tesseract JS
Вот мой код:
Tesseract.recognize(
'shot_7.png',
'eng+gle+fra',
{ logger: m => console.log(m) }
).then(({ data: { text } }) => {
console.log(text);
})
Я получаю
Fetch API cannot load file:///home/skuzzymiglet/tesseract-test/shot_7.png. URL scheme "file" is not supported.
Как я могу это исправить?