Method of improving contrast for text extraction and recognition applications
First Claim
1. A method of using color images to enhance grayscale images used in text extraction, the method comprising:
- receiving a color image of a scene of real world captured by a camera of a mobile device;
receiving a first grayscale image generated from the color image;
checking whether a plurality of groups of pixels meet a predetermined test for low contrast;
wherein the predetermined test is performed on color pixels in the color image or on grayscale pixels in the first grayscale image or on any characteristics thereof in combination;
in response to the predetermined test being met by a first group, the first group being comprised in the plurality of groups of pixels, using at least one component in a tuple of a first color pixel in the color image to determine for a first grayscale pixel in the first group, a first new intensity which is to replace a first existing intensity of the first grayscale pixel in the first grayscale image;
in response to the predetermined test being not met by a second group, the second group being comprised in the plurality of groups of pixels, retaining unchanged a second existing intensity of a second grayscale pixel in the first grayscale image; and
storing in a memory, a second grayscale image formed as a composite, by combination of at least the first new intensity for the first grayscale pixel and the second existing intensity of the second grayscale pixel.
1 Assignment
0 Petitions
Accused Products
Abstract
An electronic device and method receive (for example, from a memory), a grayscale image of a scene of real world captured by a camera of a mobile device. The electronic device and method also receive a color image from which the grayscale image is generated, wherein each color pixel is stored as a tuple of multiple components. The electronic device and method determine a new intensity for at least one grayscale pixel in the grayscale image, based on at least one component of a tuple of a color pixel located in correspondence to the at least one grayscale pixel. The determination may be done conditionally, by checking whether a local variance of intensities is below a predetermined threshold in a subset of grayscale pixels located adjacent to the at least one grayscale pixel, and selecting the component to provide most local variance of intensities.
13 Citations
24 Claims
-
1. A method of using color images to enhance grayscale images used in text extraction, the method comprising:
-
receiving a color image of a scene of real world captured by a camera of a mobile device; receiving a first grayscale image generated from the color image; checking whether a plurality of groups of pixels meet a predetermined test for low contrast; wherein the predetermined test is performed on color pixels in the color image or on grayscale pixels in the first grayscale image or on any characteristics thereof in combination; in response to the predetermined test being met by a first group, the first group being comprised in the plurality of groups of pixels, using at least one component in a tuple of a first color pixel in the color image to determine for a first grayscale pixel in the first group, a first new intensity which is to replace a first existing intensity of the first grayscale pixel in the first grayscale image; in response to the predetermined test being not met by a second group, the second group being comprised in the plurality of groups of pixels, retaining unchanged a second existing intensity of a second grayscale pixel in the first grayscale image; and storing in a memory, a second grayscale image formed as a composite, by combination of at least the first new intensity for the first grayscale pixel and the second existing intensity of the second grayscale pixel. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory computer-readable storage media comprising a plurality of instructions to use color images to enhance grayscale images used in text extraction, which, when executed by a processor perform steps in a method comprising:
-
receiving a color image of a scene of real world captured by a camera of a mobile device; receiving a first grayscale image generated from the color image; checking whether a plurality of groups of pixels meet a predetermined test for low contrast; wherein the predetermined test is performed on color pixels in the color image or on grayscale pixels in the first grayscale image or on any characteristics thereof in combination; responsive to the predetermined test being met by a first group, the first group being comprised in the plurality of groups of pixels, using at least one component in a tuple of a first color pixel in the color image to determine for a first grayscale pixel in the first group, a first new intensity which is to replace a first existing intensity of the first grayscale pixel in the first grayscale image; responsive to the predetermined test being not met by a second group, the second group being comprised in the plurality of groups of pixels, retaining unchanged a second existing intensity of a second grayscale pixel in the first grayscale image; and storing in a memory, a second grayscale image formed as a composite, by combination of at least the first new intensity for the first grayscale pixel and the second existing intensity of the second grayscale pixel. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17)
-
-
18. A mobile device comprising:
-
a camera; a memory operatively connected to the camera to receive at least an image therefrom; a processor operatively connected to the memory to execute a plurality of instructions stored in the memory, configured to; supply a color image of a scene of real world captured by the camera and a first grayscale image generated from the color image; check whether a plurality of groups of pixels meet a predetermined test for low contrast; wherein the predetermined test is performed on color pixels in the color image or on grayscale pixels in the first grayscale image or on any characteristics thereof in combination; responsive to the predetermined test being met by a first group, the first group being comprised in the plurality of groups of pixels, use at least one component in a tuple of a first color pixel in the color image to determine for a first grayscale pixel in the first group, a first new intensity which is to replace a first existing intensity of the first grayscale pixel in the first grayscale image; responsive to the predetermined test being not met by a second group, the second group being comprised in the plurality of groups of pixels, retaining unchanged a second existing intensity of a second grayscale pixel in the first grayscale image; and store in the memory, formed as a composite, by combination of at least the first new intensity for the first grayscale pixel and the second existing intensity of the second grayscale pixel. - View Dependent Claims (19, 20, 21)
-
-
22. An apparatus for identifying regions of text, the apparatus comprising:
-
a processor; a memory coupled to the processor, the memory storing a color image of a scene of real world captured by a camera of a mobile device, and a first grayscale image generated from the color image; means for checking whether a plurality of groups of pixels meet a predetermined test for low contrast; wherein the predetermined test is performed on color pixels in the color image or on grayscale pixels in the first grayscale image or on any characteristics thereof in combination; means, responsive to the predetermined test being met by a first group, the first group being comprised in the plurality of groups of pixels, for using at least one component in a tuple of a first color pixel in the color image to determine for a first grayscale pixel in the first group, a first new intensity which is to replace a first existing intensity of the first grayscale pixel in the first grayscale image; means, responsive to the predetermined test being not met by a second group, the second group being comprised in the plurality of groups of pixels, for retaining unchanged a second existing intensity of a second grayscale pixel in the first grayscale image; means for storing in the memory, a second grayscale image formed as a composite, by combination of at least the first new intensity for the first grayscale pixel and a second existing intensity of a second grayscale pixel. - View Dependent Claims (23, 24)
-
Specification