I used Unity to create the Autofocus function.
Next, I'm thinking of applying this to create an autofocus function suitable for Anime expressions. It's still in the conceptual stage, so I'm not sure if it will work, but I'll do my best.