@cvp and @JonB and @Brun0oO have worked to adapt ARkit to Pythonista. I was wondering how able Pythonista is to handle code adapted from swift iOS tutorials into the ARkit sample code provided by @Brun0oO. I want to see if I am able to put an image on a surface using the AR framework in Pythonista, similar to this in swift:
https://mobile-ar.reality.news/how-to/arkit-101-place-2d-images-like-painting-photo-wall-augmented-reality-0187598/
Forum Archive
ARkit in Pythonista
vignesh
May 27, 2020 - 19:21
mcriley821
May 28, 2020 - 06:02
You’ll have to use the objc_util module and port any swift -> ObjC -> Python objc_util. IMO swift is very similar to ObjC, so it should be fairly trivial to go from swift -> ObjC. ObjC to Python objc_util has a bit of a learning curve, but it’s a doable project. We have some objc_util gurús if you need help!
mcriley821
May 28, 2020 - 06:46
Also, depending on the iOS version you’re running, you could be able to just load the ARKit framework using the load_framework method in the objc_module.
import objc_util
objc_util.load_framework('ARKit')
#do stuff
The work @Brun0oO did, if I’m not mistaken, just makes using ARKit a little easier with Pythonista. It still uses objc_util in the background to do everything, so merging your code with Bruno’s should be a simple process.