This commit is contained in:
zyronon
2023-08-10 11:51:29 +08:00
parent faee31696b
commit 298d948666
10 changed files with 631 additions and 79 deletions

View File

@@ -47,6 +47,14 @@ onMounted(() => {
store.init()
window.addEventListener('keydown', onKeyDown)
window.addEventListener('keyup', onKeyUp)
Tesseract.recognize(
'https://tesseract.projectnaptha.com/img/eng_bw.png',
'eng',
{ logger: m => console.log(m) }
).then(({ data: { text } }) => {
console.log(text);
})
})
onUnmounted(() => {