Hi aakashJ,
could please you post a code example of your solution?
Michael
Post
Replies
Boosts
Views
Activity
If I change the maximumRecognitionCandidates from 1 to a higher number the results are getting better. With maximumRecognitionCandidates 3 or higher the result is in the right order and the value makes no difference until 9. With value 10 the result ist the same like value 1.
This behavior only appears under iOS 15. So this is only a workaround and not a real solution yet, I suppose.
Can you reproduce this unexpected behavior?
let maximumRecognitionCandidates = 9
for observation in observations {
guard let candidate = observation.topCandidates(maximumRecognitionCandidates).first else { continue }
entireRecognizedText += "\(candidate.string)\n"
failure
If I change "recognizeTextRequest.recognitionLevel = .fast" from .accurate to .fast the error disappears. Maybe an error in VisionKit?