More Related Content
Similar to [TECHCON 2019: MOBILE - iOS]4-1.ARKit, CoreML, Turi Create 삼형제
Similar to [TECHCON 2019: MOBILE - iOS]4-1.ARKit, CoreML, Turi Create 삼형제(20)
More from NAVER Engineering
More from NAVER Engineering(20)
[TECHCON 2019: MOBILE - iOS]4-1.ARKit, CoreML, Turi Create 삼형제
- 10. Overheating
private var captureDevice: AVCaptureDevice?
captureDevice?.addObserver(self, forKeyPath: "systemPressureState",
options: NSKeyValueObservingOptions.new, context: nil)
var frameRate: Int32
try captureDevice?.lockForConfiguration()
captureDevice?.activeVideoMinFrameDuration = CMTime(value: 1, timescale: frameRate)
captureDevice?.activeVideoMaxFrameDuration = CMTime(value: 1, timescale: frameRate)
captureDevice?.unlockForConfiguration()
Tip
- 15. SCNNode
private func makeOutlineNode(from bill: Bill) -> SCNNode {
let geometry = SCNPlane(size: bill.outlineSize)
geometry.firstMaterial?.diffuse.contents = bill.outlineImage
let node = SCNNode(geometry: geometry)
node.name = PortraitNode.PortraitOutlineNodeName
node.eulerAngles.x = -.pi / 2
return node
}