The camera obscura is an optical device that projects an image of its surroundings on a screen. It is used in drawing and for entertainment, and was one of the inventions that led to photography. The device consists of a box or room with a hole in one side. Light from an external scene passes through the hole and strikes a surface inside where it is reproduced, upside-down, but with colour and perspective preserved. The image can be projected onto paper, and can then be traced to produce a highly accurate representation.
Using mirrors, as in the 18th century overhead version, it is possible to project a right-side-up image. Another more portable type is a box with an angled mirror projecting onto tracing paper placed on the glass top, the image being upright as viewed from the back.
As a pinhole is made smaller, the image gets sharper, but the projected image becomes dimmer. With too small a pinhole the sharpness again becomes worse due to diffraction. Some practical camera obscuras use a lens rather than a pinhole because it allows a larger aperture, giving a usable brightness while maintaining focus.
Early models were large; comprising either a whole darkened room or a tent (as employed by Johannes Kepler). By the 18th century, following developments by Robert Boyle and Robert Hooke, more easily portable models became available. These were extensively used by amateur artists while on their travels, but they were also employed by professionals, including Paul Sandby, Canaletto and Joshua Reynolds, whose camera (disguised as a book) is now in the Science Museum (London). Such cameras were later adapted by Joseph Nicephore Niepce, Louis Daguerre and William Fox Talbot for creating the first photographs.