-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
坐标识别错误 #154
Comments
mac使用 |
左上角?是左下角吧 我以左下角为基点又试了一遍: 第一个坐标是对应的,但第二个坐标是第三个的坐标,第三个和第四个我甚至都不知道是怎么来的.... |
应该是依赖问题,Pillow截取指令的代码写错了,我之前也遇到了,看这个python-pillow/Pillow@9fb0087 ,修改或者更新一下依赖就正常了。 |
坐标也不需要乘2,在我13寸的MacBook Pro上直接用Command+Shift+4自带的截取工具就可以截取坐标,没必要再安装第三方截图工具。 |
是这样的……测试了很多方法,最后都获取不到正确的截图,试了试更新pillow好了。 |
系统:intel Mac & 未越狱 iPhone
依照 readme 设置了 ocr_range,分别是 [x1,y1,x2,y2],但是一直提示
rect (1293.0, 1243.0, -50.0, -33.0) does not intersect any displays 发生了一点小问题:("cannot identify image file '/var/folders/.../tmpjmdofo2j.png'",)
查看了目录发现这些文件都是0kb,如下图:
可是我设置的 ocr_range 并不是负数啊....我还尝试了其他坐标,发现他总会读取错误
我尝试设置的[1234,2234,3234,4234],但是报错会提示
rect (1234.0, 3234.0, 2000.0, 2000.0) does not intersect any displays
都不知道怎么设置坐标了😭
The text was updated successfully, but these errors were encountered: