Optical obsticle avoidance and route planning for mowers

Has anyone successfully implement a decent working optical avoidance system for their zero turn mower conversions? My mowers work great but it’s completely on me to make sure they avoid anything which might appear in the yard.
I’d like to implement this and take it to the “next level” wherein the mower can be placed in a yard and build the route on it’s own.