Nowadays smartphones comes with an enhanced set of camera with good specifications. A camera is defined as an optical instrument to capture static images or to record moving images. Which are also stored in a physical medium like in a digital system or on photographic film.
Smartphone photography is about capturing photons (light) and converting them into electrons (image). Also, The ability of the supporting software and hardware are important to producing high quality images.
The resolution of the image captured by a smartphone is measured in megapixels. A high megapixel those not necessarily mean a better picture. The need to have more megapixels has slowed as manufacturers now focus on the quality of those megapixels captured.
Higher megapixel images allow cropping of the original image without losing too much quality. Higher megapixel images also encourage a higher quality image when printed. Quality megapixels can be achieved by having larger pixels within the CMOS Sensor to capture more light. Contrasting with a high-resolution CMOS sensor that has smaller pixels and therefore captures less light.