This commit is contained in:
ThatOneCalculator 2022-08-08 18:24:03 -07:00
parent eabc23374b
commit 8914bffe85
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "12.118.1-calc.rc.4.10",
"version": "12.118.1-calc.rc.4.11",
"codename": "aqua",
"repository": {
"type": "git",

View File

@ -154,8 +154,10 @@ export default defineComponent({
});
};
const img = document.getElementById('imgtocaption') as HTMLImageElement;
const b64 = getBase64FromUrl(img.src);
console.log(b64);
Tesseract.recognize(
getBase64FromUrl(img.src),
b64,
'eng',
{ logger: m => console.log(m) },
).then(({ data: { text } }) => {