In a camera, a convex lens is used. Convex lenses focus light rays to a point, enabling the camera to capture clear and sharp images. By converging light, they ensure that the image formed on the film or sensor is well-defined and accurate, which is essential for high-quality photography.