CvVideoCamera (Bug #3443)


Added by Robert Nitsch about 11 years ago. Updated over 9 years ago.


Status:Open Start date:2013-12-18
Priority:Normal Due date:
Assignee:Alexander Shishkov % Done:

0%

Category:ios
Target version:-
Affected version:2.4.8 (latest release) Operating System:iOS
Difficulty: HW Platform:ARM
Pull request:

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).


OpenCV_Camera_Test_2.zip (49.9 kB) Robert Nitsch, 2013-12-18 06:49 pm


Associated revisions

Revision be5c9103
Added by Vadim Pisarevsky over 10 years ago

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

Also available in: Atom PDF