The pinhole camera is the simplest kind of camera. It does not have a lens.
It just makes use of a tiny opening (a pinhole-sized opening) to focus all light rays within the smallest possible area to obtain an image, as clearly as possible.
The image formed using a pinhole camera is always inverted.
A pinhole camera works on the principle of rectilinear propagation of light.