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; detecting the at least one text region in the first image; identifying at least one candidate specular reflection region in the first image; and in response to detecting the at least one text region and identifying the at least one candidate specular reflection region: activating the flash; and capturing a second image including the at least one text region while the flash is active.