In computer science, a megapixel equals 1 million pixels. Megapixel is used to count the number of pixels containing a digital image and also to measure the resolution of digital cameras.