The idea is simple. It is not unique of course and things like these have been done by many before. The only reason why I wanted to do this was to finish the project end to end. From the mobile app to the server to the python code running on the pi.
The images on the left are the test images taken by the Pi which were triggered by a movement in front of the camera.