A miniaturized camera has been developed by integrating a planar metasurface lens doublet with a CMOS image sensor. The metasurface lens doublet corrects the monochromatic aberration and thus delivers nearly diffraction-limited image quality over a wide field of view.