1. An automatic method for tracking and decoding a barcode using a barcode reader on a mobile device, the method comprising: initializing the barcode reader; capturing, using the mobile device, the barcode in an image frame; intercepting the captured image frame in a preview mode of the mobile device; determining a probable orientation of the barcode; correcting a rotation of the barcode; searching for the boundaries of the barcode; confirming the presence of the barcode; decoding the barcode; and displaying, on a screen of the mobile device, the result of the decoding, wherein the decoding the barcode comprises slicing the barcode horizontally and processing each of the slices individually, and wherein, if a slice being processed is successfully decoded, the decoding is completed and the barcode is translated.