I'm using VNRecognizeTextRequest
with:
request.recognitionLevel = .accurate
request.usesLanguageCorrection = false
request.recognitionLanguages = ["en-US", "de-DE"]
Basically code is taken from https://developer.apple.com/documentation/vision/reading_phone_numbers_in_real_time
But when performs it by VNImageRequestHandler
. I'm getting the following warning:
Could not determine an appropriate width index for aspect ratio 0.0062
Could not determine an appropriate width index for aspect ratio 0.0078
Could not determine an appropriate width index for aspect ratio 0.0089
...
I tried to use fast
for recognitionLevel
and it helped but results are not that good as in accurate
level.
Can you suggest how to fix the problem accurate
?