1. A method, performed by an electronic device, of automatically activating a flash for an image sensor of the electronic device, the method comprising: receiving a first image including at least one text region; determining feature data characterizing the at least one text region in the first image; identifying at least one candidate specular reflection region in the first image; activating the flash based on the feature data and the at least one candidate specular reflection region; and capturing a second image including the at least one text region upon activating the flash.