1. An electronic device, comprising: a camera module; a control unit to control the camera module to capture a first image and a second image; and a computing unit to receive the first image and the second image to generate a third image, wherein a resolution of the third image is higher than a resolution of the first image and the second image, wherein the computing unit generates a temporary image according to the first image and the second image, the temporary image comprises known pixels of the first image and the second image and a plurality of unknown pixels, and the computing unit calculates pixel values of the unknown pixels according to the known pixels of the first image and the second image to generate the third image.