1. A method for compensating for motion between an image sensor and a barcode, the method comprising: determining a velocity between the image sensor and the barcode based on acceleration data of an image of the barcode, the acceleration data provided by a motion sensor; selecting at least one parameter for edge detection processing of the image of the barcode based on the determined velocity to compensate for blurring of the image due to the determined velocity; and detecting edges of features of the barcode in the image of the barcode using the at least one parameter to decode the barcode.