Johann Zahn invented the first ever camera in 1816.
This was the first ever camera made ever.
The first "cameras" were used not to create images but to study optics. The Arab scholar Ibn Al-Haytham (945–1040), also known as Alhazen, is generally credited as being the first person to study how we see. He invented the camera obscura, the precursor to the pinhole camera, to demonstrate how light can be used to project an image onto a flat surface. Earlier references to the camera obscura have been found in Chinese texts dating to about 400 B.C. and in the writings of Aristotle around 330 B.C.
There have been many cameras through the year here are some examples... the pinhole camera was one of the first cameras to be invented.
As you can see cameras have changed from pinhole cameras to more portable cameras like Nikon Cameras.