How to spy on someone through their phone camera?

Spying apps, after being installed on the target device, literally hack its camera and claim to deliver every shot and even recorded video. Others promise to send only screenshots of taken pictures. Apps work in the background and are undetectable. The target camera must be connected to a consistent internet connection. The most popular ones are IP WEbcam, TheTruthSpy, GuestSpy.