According to various embodiments of the disclosure, an electronic device may include an image sensor and a processor. The processor may be configured to detect a movement of an object, using an image generated by the image sensor, to identify a size value of the object, to correct a size value of the object based on a location of the object within the image, and to perform an operation corresponding to a movement of the object, based on the corrected size value.