?, örneğin, şu anda benim kamera önizleme tabakası I karedir kamera odaklanmasını ve pozlamayı o çerçeveye bağlı olarak belirtilmesini ister. Mümkünse Swift 2'de buna ihtiyacım var, eğer cevabınızı yazmazsanız, bunu kendim çevirebilirim.Otomatik Odaklama ve AVFoundation Otomatik Poz Özel Kamera Katmanı doğru <strong>Otomatik Odaklama ve <strong>AVFoundation</strong> Özel katman kamera için Pozlama</strong> oluşturmak için en iyi yolu nedir
Geçerli Otomatik Odaklanma ve Pozlama: Ancak, gördüğünüz gibi bu, odaklama sırasında tüm görünümü değerlendirecektir.
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
//Get Touch Point
let Point = touches.first!.locationInView(self.capture)
//Assign Auto Focus and Auto Exposour
if let device = currentCameraInput {
do {
try! device.lockForConfiguration()
if device.focusPointOfInterestSupported{
//Add Focus on Point
device.focusPointOfInterest = Point
device.focusMode = AVCaptureFocusMode.AutoFocus
}
if device.exposurePointOfInterestSupported{
//Add Exposure on Point
device.exposurePointOfInterest = Point
device.exposureMode = AVCaptureExposureMode.AutoExpose
}
device.unlockForConfiguration()
}
}
}
Kamera Katman: 1'de şey: 1 oranında bile kamera odak için dokunmatik olay olarak düşünülebilir olmaz bağlı bu dış odak ve pozlama noktası ve bir şey olarak kabul edilmelidir.
AVCaptureVideoPreviewLayer kullanıyor musunuz? Eğer öyleyse: 'public func captureDevicePointOfInterestForPoint (pointInLayer: CGPoint) -> CGPoint' – jlw
@ jlw Evet' AVCaptureVideoPreviewLayer' kullanıyorum ama bu işlevi görmüyorum. :/ – Xrait
https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVCaptureVideoPreviewLayer_Class/#//apple_ref/occ/instm/AVCaptureVideoPreviewLayer/captureDevicePointOfInterestForPoint: – jlw