Working principle of laser barcode scanner