debug
This commit is contained in:
parent
eabc23374b
commit
8914bffe85
|
@ -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",
|
||||
|
|
|
@ -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 } }) => {
|
||||
|
|
Loading…
Reference in New Issue