Methods and apparatus for locating an object in an image
First Claim
1. A non-transitory computer readable storage medium encoded with a program for execution on a processor, the program when executed on the processor performing a method for locating a barcode in an image, the barcode having at least one characteristic, the method comprising acts of:
- a. Defining a plurality of regions in the image;
b. Associating a vote accumulator with each of the regions;
c. Finding pixel runs in the image, wherein a pixel run includes a group of adjacent pixels having a like binary value that are arranged linearly in a first direction in the image, the pixel run bounded linearly in the first direction by at least one pixel having a binary value that differs from the like binary value;
d. Identifying, in one of the plurality of regions, two consecutive pixel runs comprising a first pixel run of pixels in the first direction and having a first binary value and a second pixel run of pixels in the first direction and having the first binary value, the two consecutive pixel runs separated in the first direction by a third pixel run of pixels in the first direction and having a second binary value, wherein the first pixel run, the second pixel run and the third pixel run are in a line, wherein each of the first pixel run, the second pixel run and the third pixel run has a run length that is consistent with the at least one characteristic;
e. Adjusting the vote accumulator associated with the region where the two consecutive pixel runs are identified; and
f. Identifying from among the plurality of regions, a region where the barcode is located based on the vote accumulators.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for locating an object in an image is provided for an object that exhibits, in at least one direction, foreground pixel runs and background pixel runs consistent with at least characteristic of the object. In one embodiment, the method includes the acts of defining a plurality of regions in the image, associating a metric with each of the regions, finding pixel runs in the image, and identifying at least one pixel run in one of the plurality of regions where the at least one pixel run is consistent with the at least one characteristic of the object. According to one embodiment, the method includes the acts of adjusting the metric associated with the region where the at least one pixel run is identified and identifying, from among the plurality of regions, a region where the object is located based on a metric determined for a plurality of regions. In various embodiments, the object includes a repetitive pattern such as those found in barcodes and character strings.
58 Citations
19 Claims
-
1. A non-transitory computer readable storage medium encoded with a program for execution on a processor, the program when executed on the processor performing a method for locating a barcode in an image, the barcode having at least one characteristic, the method comprising acts of:
-
a. Defining a plurality of regions in the image; b. Associating a vote accumulator with each of the regions; c. Finding pixel runs in the image, wherein a pixel run includes a group of adjacent pixels having a like binary value that are arranged linearly in a first direction in the image, the pixel run bounded linearly in the first direction by at least one pixel having a binary value that differs from the like binary value; d. Identifying, in one of the plurality of regions, two consecutive pixel runs comprising a first pixel run of pixels in the first direction and having a first binary value and a second pixel run of pixels in the first direction and having the first binary value, the two consecutive pixel runs separated in the first direction by a third pixel run of pixels in the first direction and having a second binary value, wherein the first pixel run, the second pixel run and the third pixel run are in a line, wherein each of the first pixel run, the second pixel run and the third pixel run has a run length that is consistent with the at least one characteristic; e. Adjusting the vote accumulator associated with the region where the two consecutive pixel runs are identified; and f. Identifying from among the plurality of regions, a region where the barcode is located based on the vote accumulators. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 19)
-
-
9. A non-transitory computer readable storage medium encoded with a program for execution on a processor, the program when executed on the processor performing a method for locating a character string in an image, the character string appearing in the image in a human-readable form, the character string having at least one characteristic, the method comprising:
-
a) Defining a plurality of regions in the image; b) Associating a vote accumulator with each of the regions; c) Finding pixel runs in the image, wherein a pixel run includes a group of adjacent pixels having a like binary value arranged linearly in a first direction in the image, the pixel run bounded linearly in the first direction by at least one pixel having a binary value that differs from the like binary value; d) Identifying, in one of the plurality of regions, two consecutive pixel runs comprising a first pixel run of pixels in the first direction and having a first binary value and a second pixel run of pixels in the first direction and having the first binary value, the two consecutive pixel runs separated in the first direction by a third pixel run of pixels in the first direction and having a second binary value, wherein the first pixel run, the second pixel run and the third pixel run are in a line, wherein each of the first pixel run, the second pixel run and the third pixel run has a run length that is consistent with the at least one characteristic of the character string; e) Adjusting the vote accumulator associated with the region where the two consecutive pixel runs are identified; and f) Identifying from among the plurality of regions, a region where the character string is located based on the vote accumulators, wherein the character string includes at least one character of an alphabet. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16, 18)
-
-
17. A non-transitory computer readable storage medium encoded with a program for execution on a processor, the program when executed on the processor performing a method for locating an object in an image, the object exhibiting in at least one direction foreground pixel runs and background pixel runs consistent with at least one characteristic of the object, the method comprising acts of:
-
a. Defining a plurality of regions in the image; b. Associating a metric with each of the regions; c. Finding pixel runs in the image, wherein a pixel run includes a group of adjacent pixels having a like binary value arranged in a first direction in the image, the pixel run bounded in the first direction by at least one pixel having a binary value that differs from the like binary value; d. Identifying, in one of the plurality of regions, two consecutive pixel runs comprising a first pixel run of pixels in the first direction and having a first binary value and a second pixel run of pixels in the first direction and having the first binary value, the two consecutive pixel runs separated in the first direction by a third pixel run of pixels in the first direction and having a second binary value, wherein the first pixel run, the second pixel run and the third pixel run are in a line, wherein each of the first pixel run, the second pixel run and the third pixel run has a run length that is consistent with the at least one characteristic of the object; e. Adjusting the metric associated with the region where the two consecutive pixel runs are identified; and f. Identifying, from among the plurality of regions, a region where the object is located based on the metrics.
-
Specification