AI is not magic, and still constrained by math. If you need 3 variables and only have 2, AI isn't going to do it.
Unless we're talking about different things - it already exists. There's two parts to it - estimating a depth map ("monocular depth estimation") and inpainting the occluded parts.