Closed nicpro85 closed 8 years ago
Okay you simply need to change the orientation on the AVCaptureConnection object let connection = self.videoOutput.connectionWithMediaType(AVMediaTypeVideo) connection.videoOrientation = .Portrait
where self.videoOutput is an AVCaptureVideoDataOutput
Currently the library work well if the iPhone is held horizontally but fail to parse image if the device is held vertically. I'm trying to find a way to rotate the image without redrawing for performance reasons or flag openalpr with the image orientation. Any one with a solution?