Post

Replies

Boosts

Views

Activity

Reply to Real Time Text detection using iOS18 RecognizeTextRequest from video buffer returns gibberish
Ladies and gentlemen. I found the solution. I thought portrait was orientation.up but this is what the docs had to say. When the user captures a photo while holding the device in portrait orientation, iOS writes an orientation value of CGImagePropertyOrientation.right so with a small change of try await textRequest.perform(on: pixelBuffer, orientation: .right) it resulted in the correct text detection.
Topic: Machine Learning & AI SubTopic: General Tags:
Jul ’25