A barcode detection device is disclosed which captures an image; examines the
image
in a plurality of grids; obtains a profile of the image along the sides of the
grids; determines the number of transitions in the profile of each side; compares
the number of transitions in each adjacent pair of sides with the number of transitions
in the opposing adjacent pair of sides, respectively, and identifies a potential
barcode data bearing grid when the count of transitions on one pair of adjacent
sides matches the count of transitions on the opposing pair of adjacent sides.