Method and apparatus for preserving background continuity in images
First Claim
1. A method for preserving background continuity in an image comprising vector pixels, said method comprising:
- acquiring said image into a working memory so that said vector pixels can be randomly accessed for manipulation, wherein said image comprises a number of graphic objects, at least one of said graphic objects includes texts;
converting said vector pixels, accordingly and respectively, to scalar pixels;
binarizing scalar pixels to produce a binarized image;
producing an object image from said acquired image with respect to said binarized image, said object image comprising a foreground and a background, wherein said foreground corresponds to object spaces occupied by said graphic objects in said image;
generating a patched image from said object image by filling in said object spaces with colors of said background;
receiving rendered objects generated respectively from said graphic objects in said acquired image with respect to said object image, wherein one of said rendered objects is from an optical character recognition (OCR) engine and in accordance with said at least one of said graphic objects including texts; and
superimposing said rendered objects onto the patched image near respective positions of each of said graphic objects to produce a composed output image.
6 Assignments
0 Petitions
Accused Products
Abstract
The disclosed system has particular applications to image archives and reediting. Given an image of an article having graphic objects including texts and pictures, the disclosed system first distinguishes graphic objects from the background by segmenting the image so as to produce an object image comprising a foreground, wherein the foreground corresponds to the graphic objects in the image. With respect to the foreground, the disclosed system “repaints” those spaces previously occupied by the graphic objects, referred to as object spaces, with the background color in the image as such the background continuity is preserved when the graphic objects are rendered and subsequently superimposed onto the repainted background. To account for various backgrounds, the disclosed system uses a point-wise patching approach followed by a one-dimensional patching approach if the object spaces contain two different colors. In addition, a two-dimensional patching approach is implemented to account for printing effects such as half-toning and mosaic patterns.
100 Citations
10 Claims
-
1. A method for preserving background continuity in an image comprising vector pixels, said method comprising:
-
acquiring said image into a working memory so that said vector pixels can be randomly accessed for manipulation, wherein said image comprises a number of graphic objects, at least one of said graphic objects includes texts;
converting said vector pixels, accordingly and respectively, to scalar pixels;
binarizing scalar pixels to produce a binarized image;
producing an object image from said acquired image with respect to said binarized image, said object image comprising a foreground and a background, wherein said foreground corresponds to object spaces occupied by said graphic objects in said image;
generating a patched image from said object image by filling in said object spaces with colors of said background;
receiving rendered objects generated respectively from said graphic objects in said acquired image with respect to said object image, wherein one of said rendered objects is from an optical character recognition (OCR) engine and in accordance with said at least one of said graphic objects including texts; and
superimposing said rendered objects onto the patched image near respective positions of each of said graphic objects to produce a composed output image. - View Dependent Claims (2, 3, 4, 5)
searching for a reference color in an area, cross-referenced by said background in said object image, in said image; and
patching said object spaces in said image with said reference color.
-
-
4. The method as recited in claim 3, wherein said generating said patched image from said object image further comprises researching for a new reference color if a color difference between said patched object spaces and said area is greater than a threshold.
-
5. The method as recited in claim 4, wherein said generating said patched image from said object image further comprises patching said object spaces in said image with said new reference color.
-
6. An apparatus for preserving background continuity in an image comprising vector pixels, said apparatus comprising:
-
means for acquiring said image into a working memory so that said vector pixels can be randomly accessed for manipulation, wherein said image comprises a number of graphic objects, at least one of said graphic objects includes texts;
means for converting said vector pixels, accordingly and respectively, to scalar pixels;
means for binarizing scalar pixels to produce a binarized image;
means for producing an object image from said acquired image with respect to said binarized image, said object image comprising a foreground and a background, wherein said foreground corresponds to object spaces occupied by said graphic objects in said image and said background correspond to areas unoccupied by said graphic objects;
means for generating a patched image from said object image by filling in said object spaces with colors of said background;
means for receiving rendered objects generated respectively from said graphic objects in said acquired image with respect to said object image, wherein one of said rendered objects is from an optical character recognition (OCR) engine and in accordance with said at least one of said graphic objects including texts; and
means for superimposing said rendered objects onto the patched image near respective positions of each of said graphic objects to produce a composed output image. - View Dependent Claims (7, 8, 9, 10)
means for searching for a reference color in an area, cross-referenced by said background in said object image, in said image; and
means for patching said object spaces in said image with said reference color.
-
-
9. The apparatus as recited in claim 8, wherein said means for generating said patched image from said object image further comprises means for researching for a new reference color if a color difference between said patched object spaces and said area is greater than a threshold.
-
10. The apparatus as recited in claim 9, wherein said means for generating said patched image from said object image further comprises patching said object spaces in said image with said new reference color.
Specification