How to crop an image from AVCapture to a rect seen on the display

后端 未结 4 1337
梦谈多话
梦谈多话 2021-01-30 08:59

This is driving me crazy because I can\'t get it to work. I have the following scenario:

I\'m using an AVCaptureSession and an AVCaptureVideoPreviewLa

4条回答
  •  不要未来只要你来
    2021-01-30 09:22

    AVMakeRectWithAspectRatioInsideRect this api is from AVFoundation, it will return the crop region for the image given the crop size.

提交回复
热议问题