1. A camera module comprising: light sources to output light toward a subject; films through which the light outputted by the light sources passes; and an image sensor to acquire an image of the subject, wherein the light sources comprises a first light source and a second light source, wherein the films comprises a first film provided in a path of first light outputted from the first light source and having a first pattern, and a second film provided in a path of second light outputted from the second light source and having a second pattern, wherein the acquired image comprises a pattern image having a first pattern image projected by the first light passing through the first pattern, and a second pattern image projected by the second light passing through the second pattern, wherein the image sensor extracts the pattern image from the acquired image of the subject, and wherein the camera module is configured to estimate a distance from the subject to the camera using the pattern image, wherein the camera module, when estimating the distance is configured to: measure a distance between the first pattern image and the second pattern image on the captured image; and estimate the distance from the subject based on comparing the distance between the first pattern image and second pattern image on the extracted pattern image with a distance between the first film and the second film.