1. A method comprising: in an electronic device comprising a processor, the processor: receiving a first image of indicia positioned behind a reflective surface; transforming the first image into a second image by: identifying a portion of the first image affected by glare; and modifying a defocusing effect of the portion of the first image to reduce blur, reflection, or both, by applying an algorithm to the first image that approximates a distance, an angle difference, or both between the indicia and the reflective surface; and iteratively processing the second image until an ending criteria is satisfied.