Traitement en cours

Veuillez attendre...

Paramétrages

Paramétrages

Aller à Demande

1. WO2020112124 - REMPLACEMENT DE PIXELS DE CODE GRAPHIQUE LISIBLE PAR MACHINE COMPRENANT UNE COULEUR PRÉDÉFINIE

Note: Texte fondé sur des processus automatiques de reconnaissance optique de caractères. Seule la version PDF a une valeur juridique

[ EN ]

CLAIMS

1. A method comprising:

receiving, at a processor, a digital version of an image combined with a machine readable graphic code;

for a predefined color, determining, by a processor, a distance in color space between the predefined color and each pixel of the combined image and graphic code; and

selectively replacing, by a processor, at least one pixel of the combined image and graphic code, wherein the selection is based on the magnitude of the determined distance in color space, such that a first pixel with a smaller determined distance is replaced with a pixel having the predefined color and a second pixel having a larger determined distance is not replaced.

2. A method according to claim 1 , further comprising determining, by a processor, a minimum coverage parameter defining a minimum percentage of the pixels of the combined image and graphic code to be replaced with the predefined color.

3. A method according to claim 2 further comprising determining, by a processor, a maximum coverage parameter defining a maximum percentage of the pixels of the combined image and graphic code to be replaced with the predefined color.

4. A method according to claim 3, wherein the maximum coverage parameter is less than 50%.

5. A method according to claim 1 comprising transforming, by a processor, the received digital version of the combined image and graphic code, into L*a*b* color space, and wherein the predefined color is defined within L*a*b* color space.

6. A method according to claim 1 comprising dividing, by a processor, the combined image and graphic code into a set of dark pixels and a set of light pixels.

7. A method according to claim 6, wherein selectively replacing at least one pixel of the combined image and graphic code comprises selectively replacing a plurality of pixels in either the set of dark pixels or the set of light pixels, but not in both sets.

8. A method according to claim 7, further comprising calculating, by a processor, an average luminance value for the set of light pixels and calculating an average luminance value for the set of dark pixels, and replacing pixels from either the dark or light set of pixels based on which set has an average luminance value which is closest to the luminance value of the predefined color.

9. A method according to claim 8 wherein the average luminance value of a set of pixels of the combined image and graphic code and of the predefined color are determined in HSL color space.

10. A tangible machine-readable medium, comprising a set of instructions which when executed by a processor cause the processor to:

on receipt of an image combined with a machine readable graphic code and color values of a predefined color defined in a color space;

calculate, for each pixel of the combined image and graphic code, a color difference in the color space between the color of the pixel and the predefined color; determine a coverage parameter defining a percentage of the combined image and graphic code to be replaced with the predefined color; and

selectively replace color values of pixels of the combined image and graphic code with color values of the predefined color, based on a magnitude of the color difference, in order from pixels having a smaller color difference to pixels having a larger color difference, until the determined coverage parameter is met.

1 1. A machine-readable medium according to claim 10, wherein the combined image and graphic code comprises a set of dark pixels and a set of light pixels, and wherein the machine-readable medium further comprises instructions to select either the dark set of pixels or the light set of pixels and wherein selectively replacing color values comprises selectively replacing one or more pixels of the selected set.

12. A machine-readable medium according to claim 1 1 , further comprising instructions to determine what percentage of the pixels of the combined image and graphic code are dark pixels and what percentage are light pixels; and wherein determining the coverage parameter comprises defining a percentage which is lower than or equal to the percentage of pixels of the combined image and graphic code in the selected set.

13. A machine-readable medium according to claim 1 1 wherein the instructions to select either the dark set of pixels or the light set of pixels comprise instructions to select the set of pixels with an average lightness value closest to a lightness value of the predefined color.

14. An apparatus comprising:

an image processing module to:

receive an image combined with a machine readable graphic code;

for a color having predefined color values, calculate a distance in color space between the predefined color values of the color and the color values of each pixel of the combined image and graphic code;

replace a subset of the of pixels of the combined image and graphic code, such that pixels which are closer to the color having predefined color values in color space are selected for replacement over pixels which are further away from the color having predefined color values in color space; and

a printer to print the combined image and graphic code.

15. An apparatus according to claim 14, further comprising creating a first image comprising the subset of pixels having the predefined color and creating a second image comprising the pixels of the combined image and graphic code which have not been replaced with the color having predefined color values; and printing the two images such that they are co-located on a substrate.