A pinhole camera is a simple camera that uses a small hole in a thin barrier to project an image of a scene onto a surface. The image is inverted and reversed, but it is still recognizable.
The inversion of the image is due to the fact that the light rays from the scene pass through the pinhole and then converge on the opposite side of the barrier. This causes the top of the scene to be projected to the bottom of the image, and the left of the scene to be projected to the right of the image.
The reversal of the image is due to the fact that the light rays from the scene pass through the pinhole in a straight line. This causes the left side of the scene to be projected to the left side of the image, and the right side of the scene to be projected to the right side of the image.
The pinhole camera is a simple but effective device that can be used to create images of scenes.