Итак, я последовал инструкциям Apple для захвата видеосеанса с помощью AVCaptureSession
: http://developer.apple.com/iphone/library/qa/qa2010/qa1702.html. Одна из проблем, с которыми я сталкиваюсь, заключается в том, что даже если ориентация устройства камеры /iPhone вертикальна (и AVCaptureVideoPreviewLayer
показывает вертикальный поток камеры), выходное изображение, похоже, находится в ландшафтном режиме. Я проверил ширину и высоту imageBuffer внутри imageFromSampleBuffer:
образцового кода, и я получил 640px и 480px соответственно. Кто-нибудь знает, почему это так?
Спасибо!