I;m not sure but I'd expect autofocus doesn't work well with computer vision. Most of the lenses and sensors I've worked with in raspi land have various image aberations (spherical, color). They are very different from the computer vision cameras I have.