Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

video gravity to AVLayerVideoGravityResizeAspectFill? #11

Open
adrian-iova opened this issue Sep 29, 2017 · 1 comment
Open

video gravity to AVLayerVideoGravityResizeAspectFill? #11

adrian-iova opened this issue Sep 29, 2017 · 1 comment

Comments

@adrian-iova
Copy link

if i change video Gravity to AVLayerVideoGravityResizeAspectFill on multiple faces example, the points will show at the wrong position. I don't seem to find out the right numbers to make it work like it works on AVLayerVideoGravityResizeAspect. Any help?

@gatamar
Copy link

gatamar commented May 8, 2019

Please see: https://stackoverflow.com/questions/35261603/simulate-avlayervideogravityresizeaspectfill-crop-and-center-video-to-mimic-pre
The assumption is that image is scaled and cropped. When you know how it works (e.g. how much cropped by x, y), it's easier to fix face rectangles.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants