A mobile terminal comprising: a camera; a light emitting unit comprising a plurality of light emitting devices, wherein the light emitting devices are grouped into a plurality of groups comprising at least a first group of light emitting devices and a second group of light emitting devices, and wherein each of the light emitting devices is configured to emit light toward a space (S1, S2), wherein the first group of light emitting devices emits light toward a space corresponding to a first portion in the image to extract depth information of the first portion of the image, and the second group of light emitting devices emits light toward a space corresponding to a second portion in the image to extract depth information of the second portion of the image, wherein the first portion of the image is different from the second portion of the image; and a controller configured to: obtain an image via the camera, wherein the image is obtained from the space (S1, S2) toward which light is emitted, and control the groups (G1, G2) of the light emitting devices to emit light toward portions (R1, R2) of the space (S1, S2) corresponding to the image to extract depth information of the portions (R1, R2) of the space (S1, S2) relative to the mobile terminal, wherein the extraction of depth information is based on light reflected by the portions (R1, R2) and returned to the mobile terminal; wherein the mobile terminal is characterized in that the light emitting devices included in the first group among the plurality of groups are arranged to form a first pattern and the light emitting devices included in the second group among the plurality of groups are arranged to form a second pattern, wherein the first pattern is different from the second pattern, and wherein the light emitting devices are formed to emit light toward the space (S1, S2) corresponding to the portion (R1, R2) in which the predetermined patterns (Pa2, Pa3) are formed, and wherein the light which is emitted from the light emitting devices grouped in the predetermined patterns (Pa2, Pa3) is projected into the spaces (S1, S2) corresponding to the portions (R1, R2), in which the predetermined patterns (Pa2, Pa3) are formed. a camera; a light emitting unit comprising a plurality of light emitting devices, wherein the light emitting devices are grouped into a plurality of groups comprising at least a first group of light emitting devices and a second group of light emitting devices, and wherein each of the light emitting devices is configured to emit light toward a space (S1, S2), wherein the first group of light emitting devices emits light toward a space corresponding to a first portion in the image to extract depth information of the first portion of the image, and the second group of light emitting devices emits light toward a space corresponding to a second portion in the image to extract depth information of the second portion of the image, wherein the first portion of the image is different from the second portion of the image; and a controller configured to: obtain an image via the camera, wherein the image is obtained from the space (S1, S2) toward which light is emitted, and control the groups (G1, G2) of the light emitting devices to emit light toward portions (R1, R2) of the space (S1, S2) corresponding to the image to extract depth information of the portions (R1, R2) of the space (S1, S2) relative to the mobile terminal, wherein the extraction of depth information is based on light reflected by the portions (R1, R2) and returned to the mobile terminal; wherein the mobile terminal is characterized in that the light emitting devices included in the first group among the plurality of groups are arranged to form a first pattern and the light emitting devices included in the second group among the plurality of groups are arranged to form a second pattern, wherein the first pattern is different from the second pattern, and wherein the light emitting devices are formed to emit light toward the space (S1, S2) corresponding to the portion (R1, R2) in which the predetermined patterns (Pa2, Pa3) are formed, and wherein the light which is emitted from the light emitting devices grouped in the predetermined patterns (Pa2, Pa3) is projected into the spaces (S1, S2) corresponding to the portions (R1, R2), in which the predetermined patterns (Pa2, Pa3) are formed. obtain an image via the camera, wherein the image is obtained from the space (S1, S2) toward which light is emitted, and control the groups (G1, G2) of the light emitting devices to emit light toward portions (R1, R2) of the space (S1, S2) corresponding to the image to extract depth information of the portions (R1, R2) of the space (S1, S2) relative to the mobile terminal, wherein the extraction of depth information is based on light reflected by the portions (R1, R2) and returned to the mobile terminal; wherein the mobile terminal is characterized in that the light emitting devices included in the first group among the plurality of groups are arranged to form a first pattern and the light emitting devices included in the second group among the plurality of groups are arranged to form a second pattern, wherein the first pattern is different from the second pattern, and wherein the light emitting devices are formed to emit light toward the space (S1, S2) corresponding to the portion (R1, R2) in which the predetermined patterns (Pa2, Pa3) are formed, and wherein the light which is emitted from the light emitting devices grouped in the predetermined patterns (Pa2, Pa3) is projected into the spaces (S1, S2) corresponding to the portions (R1, R2), in which the predetermined patterns (Pa2, Pa3) are formed.