Moe
Moe

Reputation: 61

Take photo in ARKit Camera like snapchat

Are they any ways in swift to take high quality pictures with the sceneview camera session like snapchat does? Or at least without the scnnode objects in the picture?

Because I don't want to init a second camera frame to take pictures. I want it to be integrated like snapchat camera.

Best regards, moe

Upvotes: 6

Views: 4019

Answers (1)

Alan
Alan

Reputation: 1142

Yep

ARSCNViews have a built in snapshot method that returns a UIImage of the ARScene

So in Objective-C you could do:

UIImage *image = [sceneView snapshot];

and in Swift

var image = sceneView.snapshot()

Upvotes: 8

Related Questions