Patent attributes
An apparatus including an illuminator to emit light on a media to be printed on is provided. The apparatus also includes an optical sensor disposed proximate to the illuminator to detect an amount of reflected light. In addition, the apparatus includes a processor to control the illuminator and the optical sensor. The processor is to calibrate the illuminator to determine a first brightness level for high sensitivity at the optical sensor. The processor is to calibrate the illuminator to determine a second brightness level iteratively based on a signal to noise ratio. The processor is to compare the second brightness level with the first brightness level to determine whether to proceed with detection of an edge of the media using the second brightness level.