WWDC 2007 2008 2009 2010 2011 2012 2013 2014 2015
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import AVFoundation | |
class ViewController: UIViewController { | |
override func viewDidAppear(_ animated: Bool) { | |
super.viewDidAppear(animated) | |
switch AVCaptureDevice.authorizationStatus(for: .video) { | |
case .notDetermined: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
import RealityKit | |
import Foundation | |
// Define input folder of the photographs | |
var inputFolderUrl = URL(fileURLWithPath: "/Users/esikmalazman/Desktop/MyFirst3DModels/LemonMeringuePie") | |
// Specify the output location & name for generated file | |
let modelName = URL(fileURLWithPath: "/Users/esikmalazman/Desktop/MyFirst3DModels/LemonPie.usdz") | |
// Create a request to produce 3D objects from photographs () | |
var request = PhotogrammetrySession.Request.modelFile(url: inputFolderUrl, detail: .full, geometry: nil) |
import Cocoa
import CreateML
// Get file path
let filePath = URL(fileURLWithPath:"/Users/user201215/Desktop/Sentiment-Analysis/twitter-sanders-apple3.csv")
// Convert csv to MLDataTable
let data = try MLDataTable(contentsOf: filePath)