Slide 33
Slide 33 text
© ZOZO Technologies, Inc.
33
ボタンタップの処理 - AVCaptureSession
LiDARによるAF機能の実装
var handler: ((UIImage) -> Void)?
...
func runAvCapture(_ handler: @escaping (UIImage) -> Void) {
arSession.pause() // ARSessionを停止
self.handler = handler // handlerを設定
self.setMode(focusMode: .locked, exposureMode: .locked)
captureSession.startRunning()
if (isfPOIExist) {
// fPOI設定
self.setMode(focusMode: .autoFocus,
exposureMode: .autoExpose,
point: CGPoint(x: x, y: y))
}
...
}