An electronic device comprising: a first camera disposed on one surface of the electronic device; a second camera disposed on the one surface, wherein the first camera and the second camera have different optical characteristics; a depth sensor disposed on the one surface; and a processor configured to: acquire one or more first images of an external object by using the first camera, determine whether a first predetermined condition associated with at least one of color information and texture pattern information of the external object identified from the acquired one or more first images is satisfied, when the first predetermined condition is satisfied, acquire one or more second images of the external object by using the first camera, acquire one or more third images of the external object corresponding to the one or more second images by using the second camera, and measure a first depth of the external object based on a comparison between the one or more second images and the one or more third images, determine whether a second predetermined condition associated with at least one of color information and texture pattern information of the external object identified from the acquired one or more first images is satisfied; and when the second predetermined condition is satisfied, measure a second depth of the external object by using the depth sensor, and generate depth information corresponding to the external object by using at least one of the measured first depth and the measured second depth. a first camera disposed on one surface of the electronic device; a second camera disposed on the one surface, wherein the first camera and the second camera have different optical characteristics; a depth sensor disposed on the one surface; and a processor configured to: acquire one or more first images of an external object by using the first camera, determine whether a first predetermined condition associated with at least one of color information and texture pattern information of the external object identified from the acquired one or more first images is satisfied, when the first predetermined condition is satisfied, acquire one or more second images of the external object by using the first camera, acquire one or more third images of the external object corresponding to the one or more second images by using the second camera, and measure a first depth of the external object based on a comparison between the one or more second images and the one or more third images, determine whether a second predetermined condition associated with at least one of color information and texture pattern information of the external object identified from the acquired one or more first images is satisfied; and when the second predetermined condition is satisfied, measure a second depth of the external object by using the depth sensor, and generate depth information corresponding to the external object by using at least one of the measured first depth and the measured second depth. acquire one or more first images of an external object by using the first camera, determine whether a first predetermined condition associated with at least one of color information and texture pattern information of the external object identified from the acquired one or more first images is satisfied, when the first predetermined condition is satisfied, acquire one or more second images of the external object by using the first camera, acquire one or more third images of the external object corresponding to the one or more second images by using the second camera, and measure a first depth of the external object based on a comparison between the one or more second images and the one or more third images, determine whether a second predetermined condition associated with at least one of color information and texture pattern information of the external object identified from the acquired one or more first images is satisfied; and when the second predetermined condition is satisfied, measure a second depth of the external object by using the depth sensor, and generate depth information corresponding to the external object by using at least one of the measured first depth and the measured second depth.