Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello โ I'm @olemoritz on Twitter.
Text detection with Vison coreML
-
@pavlinb for me, with 'full_screen'
-
Did you try on more natural images?
-
@pavlinb no, sincerely, I don't know anything about mlmodel. When I had read your topic, I only remembered an omz script and I have tried to add objectivec code for your request about VNDetectTextRectanglesRequest. That's all folks ๐
-
Here why it doesnโt work for me:
-
-
@pavlinb As I don't have this iPhone, could you print wim,him,ws,hs so I could simulate, thanks
-
@pavlinb could you also post the analyzed image in Imgur?
-
@cvp wim = 141, him = 64 , ws = 375, hs = 667
-
@pavlinb did you not turn your iPhone during test?
I simulate your dimensions and I get this.
I agree that blue rectangles are not very good but that's so, I think with this code
-
@cvp I'll play with dimensions.
-
@cvp In landscape view image looks better, but in portrait view is sketched and goes outside of the screen.
-
@pavlinb It is strange because I simulated your iPhone in portrait mode
-
I think I did an error, try < instead of >, and sorry ๐
if (ws/hs) < (wim/him):
-
-
it seems that VNRecognizeTextRequest exist in iOS 13.0+ Beta, regarding link.
If I upgrade to iOS 13 Beta should I be able to call it from Pythonista?
-
@pavlinb No idea, sorry. I think that yes, you could.
-
@pavlinb ask somebody who has installed iOS 13 beta, to test
from objc_util import * VNRecognizeTextRequest = ObjCClass('VNRecognizeTextRequest').alloc()
If it runs without error, that should be ok for next development
If you get
ValueError: no Objective-C class named 'b'VNRecognizeTextRequest'' found
It is not good...
-
@cvp Compiled w/o error in iOS13_7 beta.
Let see if it works good.
-
@pavlinb ๐ค
-
@cvp Works good and no need models.