Giter Club home page Giter Club logo

Comments (19)

github-actions avatar github-actions commented on June 5, 2024

[Auto response] Looks like this is your first issue. I will look into it as soon as possible.

from img2latex-mathpix.

blaisewang avatar blaisewang commented on June 5, 2024

Content not found 的报错是 mathpix 返回的,截取的图片确认不是空白的吗?或者分辨率太低?

from img2latex-mathpix.

isping avatar isping commented on June 5, 2024

图片确认不是空白的,以前一直是这样用都是可以的,我用mathpix官方的软件,同样的截图没有问题,可以识别。

from img2latex-mathpix.

blaisewang avatar blaisewang commented on June 5, 2024

电脑中装有 Python 3 吗?麻烦先截图,然后运行以下代码,然后测试截图是否可以使用 app 进行 OCR。如果不行,麻烦上传以下 Python 代码运行之后生成的 debug.data 文件。代码运行需要安装 Pillow ,python3 -m pip install Pillow

from PIL import ImageGrab

im = ImageGrab.grabclipboard()
with open("debug.data", "wb") as f:
    f.write(im.tobytes())

from img2latex-mathpix.

isping avatar isping commented on June 5, 2024

debug.zip

python3
下面是使用官方app可以返回正常的公式
无标题

from img2latex-mathpix.

blaisewang avatar blaisewang commented on June 5, 2024

麻烦这次运行以下代码,并同样把 debug.data 上传上来。

from PIL import ImageGrab

im = ImageGrab.grabclipboard()
with open("debug.data", "wb") as f:
    f.write(im.tobytes())
print(im.size, im.mode)

from img2latex-mathpix.

isping avatar isping commented on June 5, 2024

debug.zip
运行代码返回信息:
175974
(422, 139) RGB

from img2latex-mathpix.

blaisewang avatar blaisewang commented on June 5, 2024

试下这个版本,还会不会出现同样的问题 https://github.com/blaisewang/img2latex-mathpix/releases/download/v0.7.8-alpha/Image2LaTeX-0.7.8-windows.zip

from img2latex-mathpix.

isping avatar isping commented on June 5, 2024

还是同样的错误
还有一个问题,就是我将图像复制到粘贴板的时候,Image2Latex软件Clipboard Image显示也是空白的,使用空格键提交不起作用,都要用submit提交。前段时间是好用,最近就不行了,不知道啥引起的。

from img2latex-mathpix.

isping avatar isping commented on June 5, 2024

试了另外一些文档,有的是成功的。 可能原因是,有的文档截图后clipboard image区域里并没有显示,发送了空的数据到服务器?不过同样的文档,用mathipx就没问题,因为mathipx是有自己的截图工具。

from img2latex-mathpix.

Broduker avatar Broduker commented on June 5, 2024

我最近也遇到了相同的问题 之前用还正常

from img2latex-mathpix.

IsumiAlice avatar IsumiAlice commented on June 5, 2024

今天剛開始使用,也遇到了類似的問題,個人發現和截圖程式有關,我用 Snipaste2.3.0 會出錯,但 Tim 自帶的截圖 ok

from img2latex-mathpix.

blaisewang avatar blaisewang commented on June 5, 2024

我尝试了数周,还是没办法复现这个问题,但是上面给出的 debug data 确实报相同的错误,目前没有进展

from img2latex-mathpix.

chenkaiwenguo avatar chenkaiwenguo commented on June 5, 2024

from img2latex-mathpix.

wtbsw avatar wtbsw commented on June 5, 2024

我也遇到了同样的问题,使用snipaste的截图无法识别,但是qq截图可以,我最后使用Lightshot,它的截图也能识别,感觉是snipaste 的问题。

from img2latex-mathpix.

LCHSuper avatar LCHSuper commented on June 5, 2024

感觉应该是snipaste的问题,换个截图软件就任何问题都没有了,希望开发者可以做一下与snipaste截图的适配,感谢感谢!

from img2latex-mathpix.

zhongfly avatar zhongfly commented on June 5, 2024

在Snipaste的issue中,Snipaste的开发者分析认为是img2latex-mathpix 使用 JavaFX 读取剪贴板图像导致的问题。
参考 https://stackoverflow.com/questions/48932575/getting-image-from-clipboard-awt-vs-fx
@blaisewang 希望开发者能进一步解决该问题

from img2latex-mathpix.

blaisewang avatar blaisewang commented on June 5, 2024

在Snipaste的issue中,Snipaste的开发者分析认为是img2latex-mathpix 使用 JavaFX 读取剪贴板图像导致的问题。
参考 https://stackoverflow.com/questions/48932575/getting-image-from-clipboard-awt-vs-fx
@blaisewang 希望开发者能进一步解决该问题

确实 JavaFX 有很多问题,而且也不是一个主流的图形库,至少从目前看来并不能满足这个 App 非常简单的需求。我已经考虑在用其他语言重写这个 App 了,来实现一些呼声较高但是由于 Java 语言本身限制做不到的 feature,比如 #94 ,可惜目前工作比较忙,还没时间

from img2latex-mathpix.

github-actions avatar github-actions commented on June 5, 2024

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 10 days

from img2latex-mathpix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.