CvVideoCamera (Bug #3443)
Description
CvVideoCamera does not seem to preserve the aspect ratio of video frames. The current behavior is to scale-to-fit the video frames into the target view. The expected behavior is that of AVLayerVideoGravityResizeAspectFill (https://developer.apple.com/library/iOS/documentation/AVFoundation/Reference/AVFoundation_Constants/Reference/reference.html).
I have attached a minimal sample project which can be used to illustrate the difference between using CvVideoCamera and using AVCaptureSession directly (you will have to comment out the startCamera call and uncomment the AVCaptureSession code).
Associated revisions
Merge pull request #3443 from HelenWong:bug3363Fix
History
Updated by Alexander Shishkov about 11 years ago
- Category set to ios
- Assignee set to Alexander Shishkov
Updated by Andrew Senin about 11 years ago
- Affected version changed from 2.4.7 (latest release) to 2.4.8 (latest release)
- Status changed from New to Open
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4660