CvVideoCamera layer doesn't fit device rotation

asked 2013-06-16 01:32:32 -0500

tr0cd gravatar image

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 ?

edit retag flag offensive close merge delete