JS-OCR-demo
JS-OCR-demo copied to clipboard
It's upside-down in Safari!
I know! Crazy! No idea what's wrong though. Feel free to take a stab at it!
I have fixed the issue.
the problem is now the desktop view gets changed. Need to put a condition to check whether the page is opened on mobile view or on the desktop platform.
code to be added before canvas image inputted to draw section
ctx.setTransform(1,0,0,-1,0,canvas.height);
see the below screenshot for better clarity.
tested on ios 11.0.1 safari iPhone xs max device