Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 313
Moe Avatar asked Oct 18 '17 21:10

Moe


1 Answers

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()
like image 82
Alan Avatar answered Sep 26 '22 15:09

Alan