Skip to content
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

用iphone测试识别出来的图片是垂直镜像的 #1

Open
bigsong611 opened this issue Apr 19, 2018 · 6 comments
Open

用iphone测试识别出来的图片是垂直镜像的 #1

bigsong611 opened this issue Apr 19, 2018 · 6 comments

Comments

@bigsong611
Copy link

No description provided.

@bigsong611
Copy link
Author

@zh8637688
Copy link
Owner

验证了一下,确实如此,ios 真机上图像是颠倒的。小程序中 canvas 在真机上效果表现不一致的地方之前也遇见过,arc 画弧形时也是颠倒的。

@zh8637688
Copy link
Owner

但是这个问题不影响图像的识别

@zh8637688 zh8637688 reopened this Apr 20, 2018
@lysyunsong
Copy link

lysyunsong commented May 2, 2018

还是有影响的,获取不到正确的i文字和数字信息了,我曾打算翻转后绘制画布解决,结果微信ios真机,不支持canvas内容scale设置为负数,心塞塞。不知道怎么做了

@baolele
Copy link

baolele commented May 3, 2018

@lysyunsong 你好,我也遇到和你一样的问题,在ios上识别文字不正确,你这个问题解决了吗?

@zh8637688
Copy link
Owner

@lysyunsong 真机确实不支持,否则可以翻转canvas后rotate绘制。
另外尝试直接翻转canvasGetImageData返回的原始数据,reverse数组后,图像确实不再颠倒,但是图像颜色出问题了,rgba变成了abgr。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants