Raspberry Pi is essentially a computer on its own - things like a mouse and keyboard can be plugged in via USB ports. What makes it special though, is that sensors can also be attached. In this case, it is a camera. The Pi can take in video directly from the camera, and that data can be modified and utilized using Python on the Pi's software.