Barcode scanner optimization
Disclosed are barcode scanners and methods for scanning a barcode. The barcode scanners and methods for scanning a barcode may include receiving a raw image from a scanner. Channel information may be extracted from each pixel of the raw image. A composite image may be created using the channel information from each pixel of the raw image. Finally, product information may be extracted from the composite image.
1. A method for scanning a color barcode, the method comprising:
illuminating the color barcode with white light;
capturing a raw image of the color barcode with a color scanner;
extracting, by a computing device, channel information from each pixel of the raw image;
creating, by the computing device, a composite image using the channel information from each pixel of the raw image; and
extracting product information from the composite image.
2. The method of claim 1 , wherein extracting channel information includes extracting spectral data from each pixel of the raw image.
3. The method of claim 1 , wherein capturing the raw image includes capturing four channels per pixel of the raw image.
4. The method of claim 3 , wherein creating the composite image includes:
grouping corresponding channel information from each pixel to create four groupings of channel information, one grouping per channel per pixel; and
repositioning each of the four groupings of channel information so that each of the four groupings forms a respective quadrant of the composite image.
5. The method of claim 1 , wherein extracting the channel information includes extracting a color value for each channel of each pixel.
6. The method of claim 1 , wherein creating the composite image includes remapping a color value for each channel of each pixel to one of four quadrants of the composite image.
7. The method of claim 1 , wherein the raw image is a non-mosaic image.
8. The method of claim 1 , wherein the product information include price lookup (PLU) information.
9. The method of claim 1 , further comprising:
creating a de-mosaic image using the raw image; and
extracting the product information from the de-mosaic.
10. A system for scanning a color barcode, the system comprising:
a processor in electrical communication with the color scanner and a white light source; and
a memory that stores instructions that, when executed by the processor, cause the processor to perform actions comprising:
activating the white light source to illuminate the color barcode with white light,
capturing a raw image of the color barcode using a color scanner,
extracting channel information from each pixel of the raw image,
creating a composite image using the channel information from each pixel of the raw image, and
extracting product information from the composite image.
11. The system of claim 10 , wherein extracting channel information includes extracting spectral data from each pixel of the raw image.
12. The system of claim 10 , wherein capturing the raw image includes capturing four channels per pixel of the raw image.
13. The system of claim 12 , wherein creating the composite image includes:
grouping corresponding channel information from each pixel to create four groupings of channel information, one grouping per channel per pixel; and
repositioning each of the four groupings of channel information so that each of the four groupings forms a respective quadrant of the composite image.
14. The system of claim 10 , wherein extracting the channel information includes extracting a color value for each channel of each pixel.
15. The system of claim 10 , wherein creating the composite image includes remapping a color value for each channel of each pixel to one of four quadrants of the composite image.
16. The system of claim 10 , further comprising:
creating a de-mosaic image using the raw image; and
extracting the product information from the de-mosaic.
17. A self-service terminal comprising:
a color scanner;
a white light source;
a processor in electrical communication with the color scanner and the white light source; and
a memory that stores instructions that, when executed by the processor, cause the processor to perform actions comprising:
activating the white light source to illuminate the color barcode with white light,
capturing a raw image of the color barcode using the color scanner,
extracting channel information from each pixel of the raw image,
creating a composite image using the channel information from each pixel of the raw image, and
extracting product information from the composite image.
18. The self-service terminal of claim 17 ,
wherein receiving the raw image includes receiving an image with four channels per pixel,
wherein creating the composite image includes:
grouping corresponding channel information from each pixel to create four groupings of channel information, one grouping per channel per pixel; and
repositioning each of the four groupings of channel information so that each of the four groupings forms a respective quadrant of the composite image.
19. The self-service terminal of claim 17 , wherein extracting the channel information includes extracting a color value for each channel of each pixel.
20. The self-service terminal of claim 17 , wherein creating the composite image includes remapping a color value for each channel of each pixel to one of four quadrants of the composite image.