1. A method comprising: setting a capture configuration for an image sensor to capture an image, wherein the capture configuration of the image sensor optimizes a captured image for digital pulse recognition demodulation; adjusting parameters of a demodulation function, wherein the demodulation function calculates a frequency content of the image based on a detected stripe width; capturing an image using the image sensor according to the capture configuration; and processing the captured image using the adjusted demodulation function to obtain information from light based communication.