lhazen (Ibn Al-Haytham) who lived around 1000 AD, invented the first pinhole camera, also called the camera obscura. But it w