Focus camera on body part

I wanted a light, I wanted to make the camera follow/focus on some region. For example right eye. What would be the logic to do this? I’m at the end of the project, that’s all I need.
Capturar

1 Like

This one is a little difficult, but you can try using world2screen in the library.

There’s also a simpler solution by using the 2D face position. GitHub - positlabs/spark-face-tracking-2d

Hey, so while I was working on my effect - “Connecting to Meta” https://www.facebook.com/groups/SparkARcommunity/permalink/1304493746629331/

I took help from this project. I modified it for right eye. you can do the same for any part.

I hope this helps

Oh yeah! I remember now, we had a thread about that project a while ago.

It’s been a while, but I think there was a problem with distance (not working if the user is far away). Here’s another project that might help.

1 Like