Implement OCR

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2024-08-09 23:14:30 -05:00
parent f58c7e3668
commit c6c9337e8b

View File

@ -217,13 +217,13 @@ function getMatchingPhrase(inputString, targetCharacter) {
checkString = ret.data.text;
await worker.terminate();
})();
if (checkLoop(message, checkString)) {
return;
}
console.log("Checking OCR contents...");
if (checkLoop(message, checkString)) {
return;
}
checkString = checkString.replace(/[^a-zA-Z0-9]/g, '');
checkLoop(message, checkString);
}
}
});
}
/*