1. A method of processing an image obtained by a camera, the method comprising: obtaining the image using an image sensor; identifying an image signal in a direction perpendicular to a line scan direction of the image sensor, with respect to at least one region of the image; determining an average of the image signal as a reference signal; detecting a signal indicating a flicker based on a ratio of the image signal to the reference signal; and generating an image in which a flicker is corrected, based on the signal indicating a flicker and the image.