I'm using OpenCV 2.4.5 with iOS 6.1 SDK. And I'm using CvVideoCamera. when I rotate iphone, UIImageView which shows CvVideoCamera layer automatically fits landscape view. But CvVideoCamera layer doesn't follow.
But when device orientation is face up , it fits landscape view correctly.
I think I have to add some changes to layoutPreviewLayer
.
Does anyone know how to fix this problem ?