Enable language correction on apple vision (seems to help with vertical text)
This commit is contained in:
1 parent
be0654df42
commit
aae112529b
1 file changed
+1
@@ -143,6 +143,7 @@ class AppleVision:
|
||||
req = Vision.VNRecognizeTextRequest.alloc().init()
|
||||
|
||||
req.setRecognitionLevel_(0)
|
||||
req.setUsesLanguageCorrection_(True)
|
||||
req.setRecognitionLanguages_(['ja','en'])
|
||||
|
||||
handler = Vision.VNImageRequestHandler.alloc().initWithData_options_(
|
||||
|
||||
Reference in new issue
Block a user