iOS: Capture image from front facing camera

前端 未结 5 2039
耶瑟儿~
耶瑟儿~ 2020-12-01 00:56

I am making an application where I would like to capture an image from the front facing camera, without presenting a capture screen of any kind. I want to take a picture com

5条回答
  •  天命终不由人
    2020-12-01 01:17

    You probably need to use AVFoundation to capture the video stream/image without displaying it. Unlike UIImagePickerController, it doesn't work 'out-of-the-box'. Look at Apple's AVCam as an example to get you started.

提交回复
热议问题