Not exactly the same, but I made something a while ago that takes a 2D image and tries to infer a depth map to create a 3D effect: https://awesomealbum.com/depth
It's based on [1] and runs entirely in the browser, allthough it takes a moment to create the depth map. It's more of a toy project at this point. But I was surprised when I saw that Google is doing the same thing now in Google Photos [2].
[1] https://github.com/FilippoAleotti/mobilePydnet
[2] https://www.theverge.com/2020/12/15/22176313/google-photos-2...