Text detection with Vison coreML
I need help to implement text detection with Vision + coreML in Pythonista.
Does someone have an example?
@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):
@cvp Much better.
Only blue boxes are little shifted.
But for now it's not important.
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...