Camera obscure was the early technique used to capture photos. The process consisted of creating a dark room with a small hole in it. Light would enter through the hole and project an image on the wall upside down.
The first moving images were produced by a device called a "Camera Obscura" in the earlier This was achieved by revolving drums and discs. Though it could produce moving images, the Camera Obscura could not record.