The forerunner to the photographic camera was the camera obscura. In the fifth century B.C., the Chinese philosopher Mo Ti noted that a pinhole can form an inverted and focused image, when light passes through the hole and into a dark area.Mo Ti is the first recorded person to have exploited this phenomenon to trace the inverted image to create a picture.Writing in the fourth century B.C., Aristotle also mentioned this principle.He described observing a partial solar eclipse in 330 B.C. by seeing the image of the Sun projected through the small spaces between the leaves of a tree.In the tenth century, the Arabic scholar Ibn al-Haytham (Alhazen) also wrote about observing a solar eclipse through a pinhole,and he described how a sharper image could be produced by making the opening of the pinhole smaller.English philosopher Roger Bacon wrote about these optical principles in his 1267 treatise Perspectiva. By the fifteenth century, artists and scientists were using this phenomenon to make observations. Originally, an observer had to enter an actual room, in a which a pinhole was made on one wall. On the opposite wall, the observer would view the inverted image of the outside.The name camera obscura, Latin for "dark room", derives from this early implementation of the optical phenomenon.
The actual name of camera obscura was applied by mathematician and astronomer Johannes Kepler in his Ad Vitellionem paralipomena of 1604. He later added a lens and made the apparatus transportable, in the form of a tent.British scientist Robert Boyle and his assistant Robert Hooke developed a portable camera obscura in the 1660s.

Early photographic cameras were usually in the form of a pair of nested boxes, the end of one carrying the lens and the end of the other carrying a removable ground glass focusing screen. By sliding them closer together or farther apart, objects at various distances could be brought to the sharpest focus as desired. After a satisfactory image had been focused on the screen, the lens was covered and the screen was replaced with the light-sensitive material. The lens was then uncovered and the exposure continued for the required time, which for early experimental materials could be several hours or even days. The first permanent photograph of a camera image was made in 1826 by Joseph Nicéphore Niépce using a sliding wooden box camera made by Charles and Vincent Chevalier in Paris.

For many years, exposure times were long enough that the photographer simply removed the lens cap, counted off the number of seconds (or minutes) estimated to be required by the lighting conditions, then replaced the cap. As more sensitive photographic materials became available, cameras began to incorporate mechanical shutter mechanisms that allowed very short and accurately timed exposures to be made.
The electronic video camera tube was invented in the 1920s, starting a line of development that eventually resulted in digital cameras, which largely supplanted film cameras after the turn of the 21st century.
craditwiki