Some years ago I tried the (very) poor man's approach ? doing some chroma experiments using a white background (the wall) and some very rudimentary techniques. I mainly used it to send some recorded prank videos to family and friends but the pixelation was too obvious
.
If I remember correctly, I used the phone's front camera, OpenCV, and
@DonManfred's PanoramaImageView as the moving background, inverting the scrolling logic from the phone sensors, since it was using the front cam instead of the back one.
Even if there was a lot of room for improvement in the implementation, the approach itself (split each frame into a background and foreground via color segmentation and replace the former with a portion of the PanoramaImageView), was very limited. The good part is that it worked in real time with an Android device.
Yes, I know it's not exactly the same, but had a lot of fun with it ?