Method and system for detecting a bar code

A method of detecting a bar code, comprising the steps of: at least two times of scanning of the bar code at different times, to obtain at least two instances of an optical signal; Digitizing the at least two instances of the optical signal into at least two results; and Generating an output signal using the at least two results.