(request, error) in for observation in request.results as! [VNFaceObservation] { // TODO: VNFaceObservationΛݩʹॲཧΛ͢Δ } if let cgImage = image.cgImage { let handler = VNImageRequestHandler(cgImage: cgImage, options: [:]) try? handler.perform([request]) }
error) in for observation in request.results as! [VNFaceObservation] { print(observation) } if let cgImage = image.cgImage { let handler = VNImageRequestHandler(cgImage: cgImage, options: [:]) try? handler.perform([request]) }