An AI tool could help reduce the need for glasses after cataract surgery.