What is claimed is:1. An electronic device comprising:a camera, wherein the camera includes a lens assembly including one or more lenses, an image sensor including at least one pixel,wherein the at least one pixel includes a first sub-pixel, a second sub-pixel, a third sub-pixel, and a fourth sub-pixel, andwherein the first sub-pixel is covered by a first micro lens, the second sub-pixel is covered by a second micro lens, and the third sub-pixel and the fourth sub-pixel are covered by a third micro lens;a display; anda processor configured to:obtain a light reflected from an external object and permeating through the one or more lenses by using the at least one pixel,obtain data from the third sub-pixel and the fourth sub-pixel based on light permeating through the third micro lens and generate depth data associated with the external object,obtain data from the first sub-pixel, the second sub-pixel, the third sub-pixel, and the fourth sub-pixel and generate pixel data,generate an image based on the pixel data,control the display to output the image, andmove the one or more lenses based on the depth data.2. The electronic device of claim 1, wherein the third sub-pixel and the fourth sub-pixel are adjacent to each other in a transverse direction of the at least one pixel.3. The electronic device of claim 1, wherein the third sub-pixel and the fourth sub-pixel are adjacent to each other in a longitudinal direction of the at least one pixel.4. The electronic device of claim 1, wherein the third sub-pixel and the fourth sub-pixel are adjacent each other in a diagonal direction in the at least one pixel.5. The electronic device of claim 1,wherein the at least one pixel includes a plurality of pixels, andwherein the third sub-pixel and the fourth sub-pixel included in each of the plurality of pixels are adjacent to each other in a transverse direction of each of the pixels, a longitudinal direction of each of the pixels, or a diagonal direction of each of the pixels.6. The electronic device of claim 1, wherein the processor is further configured to:control the image sensor to obtain first data from the first sub-pixel and second data from the second sub-pixel,control the image sensor to restore third data of the third sub-pixel and fourth data of the fourth sub-pixel based on the first data and the second data, andcontrol the image sensor to generate pixel data of the at least one pixel based on the first data, the second data, the third data, and the fourth data.7. The electronic device of claim 1, wherein the processor is further configured to:bin data from the first sub-pixel, the second sub-pixel, the third sub-pixel, and the fourth sub-pixel, and generate pixel data of the at least one pixel.8. An image sensor comprising:at least one pixel including a first sub-pixel, a second sub-pixel, a third sub-pixel, and a fourth sub-pixel, wherein the first sub-pixel is covered by a first micro lens, the second sub-pixel is covered by a second micro lens, and the third sub-pixel and the fourth sub-pixel are covered by a third micro lens; anda control circuit configured to:obtain a light reflected from an external object,obtain data from the third sub-pixel and the fourth sub-pixel based on light permeating through the third micro lens and generate depth data associated with the external object,obtain data from the first sub-pixel, the second sub-pixel, the third sub-pixel, and the fourth sub-pixel and generate pixel data; andtransmit the pixel data and the depth data to an external processor.9. The image sensor of claim 8, wherein a color filter of the third micro lens is configured to transmit a light having a wavelength corresponding to a green light.10. The image sensor of claim 8, wherein the third sub-pixel and the fourth sub-pixel are adjacent to each other in a transverse direction in the at least one pixel.11. The image sensor of claim 8, wherein the third sub-pixel and the fourth sub-pixel are adjacent to each other in a longitudinal direction in the at least one pixel.12. The image sensor of claim 8, wherein the third sub-pixel and the fourth sub-pixel are adjacent to each other in a diagonal direction in the at least one pixel.13. The image sensor of claim 8,wherein the at least one pixel includes a plurality of pixels, andwherein the third sub-pixel and the fourth sub-pixel included in each of the plurality of pixels are adjacent to each other in a transverse direction of each of the pixels, a longitudinal direction of each of the pixels, or a diagonal direction of each of the pixels.14. The image sensor of claim 8, wherein the control circuit is further configured to:control the image sensor to obtain first data from the first sub-pixel and second data from the second sub-pixel,restore third data of the third sub-pixel and fourth data of the fourth sub-pixel based at least on the first data and the second data, andgenerate pixel data of the at least one pixel based on the first data, the second data, the third data, and the fourth data.15. The image sensor of claim 8, wherein the control circuit is configured to:binning the data from the first sub-pixel, the second sub-pixel, the third sub-pixel, and the fourth sub-pixel and generate pixel data on the at least one pixel.16. An image sensor comprising:a plurality of pixels arranged based on a specified channel pattern, wherein each of the plurality of pixels includes a first sub-pixel, a second sub-pixel, a third sub-pixel, and a fourth sub-pixel covered by a color filter; anda control circuit configured to control the plurality of pixels,wherein a portion of pixels from the plurality of pixels each includes a first micro lens covering the first sub-pixel, a second micro lens covering the second sub-pixel, and a third micro lens covering the third sub-pixel and the fourth sub-pixel, andwherein the control circuit is further configured to:control the plurality of pixels to obtain a light reflected by an external object,obtain data from the third sub-pixel and the fourth sub-pixel included in each of the portion of pixels and generate depth data,obtain data from the first to fourth sub-pixels included in each of the plurality of pixels and generate pixel data for each of the pixels, andtransmit the pixel data and the depth data to an external processor.17. The image sensor of claim 16, wherein the color filter is formed to transmit a light having a wavelength corresponding to a green light.18. The image sensor of claim 16, wherein the third sub-pixel and the fourth sub-pixel are adjacent to each other in at least one of a transverse direction of each of the at least some pixels, a longitudinal direction of each of the at least some pixels, or a diagonal direction of each of the at least some pixels.19. The image sensor of claim 16, wherein the control circuit is further configured to:obtain data from the first sub-pixel and the second sub-pixel and restore data of the third sub-pixel and data of the fourth sub-pixel, andgenerate pixel data for each of the portion of pixels based on the restored data and the data obtained from the first sub-pixel and the second sub-pixel.20. The image sensor of claim 16, wherein the control circuit is further configured to:bin the data obtained from the first sub-pixel, the second sub-pixel, the third sub-pixel, and the fourth sub-pixel and generate pixel data for each of the portion of pixels.21. The image sensor of claim 16, wherein the third micro lens controls an angle of incident light to focus received light to the third sub-pixel and the fourth sub-pixel.22. The image sensor of claim 16, wherein the control circuit is further configured to determine a distance between data from the third sub-pixel and the fourth sub-pixel, and generate phase difference data based on the distance.23. The image sensor of claim 16, wherein the control circuit is further configured to:select the portion of pixels from the plurality of pixels based on proximity to the external object, andcontrol one or more lenses based on phase difference data from the portion of pixels.