13. A computer program product comprising non-transitory computer readable medium retaining instructions, which instructions, when executed by a processor, are configured to cause the processor to perform the steps of: capturing a color image rendered on a display screen; and transforming the color image to binary color image, preserving textual graphic components and filtering out non-textual graphical components, said transforming comprises: representing a set having a component from continuous regions in the color image; and extracting the component as text component, wherein the component is recognized based on switches between runs where a single color part of the run comprises a lower number of pixels than all other single color parts of the run.
13. A computer program product comprising non-transitory computer readable medium retaining instructions, which instructions, when executed by a processor, are configured to cause the processor to perform the steps of: capturing a color image rendered on a display screen; and transforming the color image to binary color image, preserving textual graphic components and filtering out non-textual graphical components, said transforming comprises: representing a set having a component from continuous regions in the color image; and extracting the component as text component, wherein the component is recognized based on switches between runs where a single color part of the run comprises a lower number of pixels than all other single color parts of the run. 16. The computer program product of claim 13 , wherein said transforming comprises collecting horizontal sets of pixels in the continuous regions that contain two shades.