Convert ARFrame's captured image to UIImage orientation issue
问题 I want to detect ball and have AR model interact with it. I used opencv for ball detection and send center of ball which I can use in hitTest to get coordinates in sceneView . I have been converting CVPixelBuffer to UIImage using following function: static func convertToUIImage(buffer: CVPixelBuffer) -> UIImage?{ let ciImage = CIImage(cvPixelBuffer: buffer) let temporaryContext = CIContext(options: nil) if let temporaryImage = temporaryContext.createCGImage(ciImage, from: CGRect(x: 0, y: 0,