debug
This commit is contained in:
parent
eabc23374b
commit
8914bffe85
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "12.118.1-calc.rc.4.10",
|
"version": "12.118.1-calc.rc.4.11",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -154,8 +154,10 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const img = document.getElementById('imgtocaption') as HTMLImageElement;
|
const img = document.getElementById('imgtocaption') as HTMLImageElement;
|
||||||
|
const b64 = getBase64FromUrl(img.src);
|
||||||
|
console.log(b64);
|
||||||
Tesseract.recognize(
|
Tesseract.recognize(
|
||||||
getBase64FromUrl(img.src),
|
b64,
|
||||||
'eng',
|
'eng',
|
||||||
{ logger: m => console.log(m) },
|
{ logger: m => console.log(m) },
|
||||||
).then(({ data: { text } }) => {
|
).then(({ data: { text } }) => {
|
||||||
|
|
Loading…
Reference in New Issue