Method and system for processing an image extracted from a document
First Claim
1. A method for processing an image extracted from a document, the method comprising:
- detecting, by an image processing system, one or more edges of the image;
determining, by the image processing system, a missing edge in the image by comparing color gradients of the one or more edges;
computing a color gradient along each side of the image; and
comparing the color gradient of each side with remaining sides to detect the missing edge;
reconstructing, by the image processing system, the missing edge by cloning image pixels based on data pixels of an edge, opposite to the missing edge, amongst the one or more edges to obtain a reconstructed image, wherein the reconstructed image includes a reconstructed edge;
identifying, by the image processing system, outer corner points in the reconstructed image based on quadratic corner points, wherein the quadratic corner points are determined based on the one or more edges and the reconstructed edge; and
performing, by the image processing system, an image perspective correction on the reconstructed image, based on the outer corner points, to obtain a processed image.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure relates to a method and system for processing an image extracted from a document. The image processing system detects one or more edges of the image and determines a missing edge in the image by comparing color gradients of the edges. The missing edges are recreated by cloning image pixels based on data pixels of an edge, opposite to the missing edge, amongst the one or more edges to obtain a reconstructed image. Outer corner points in the reconstructed image are identified based on quadratic corner points, wherein the quadratic corner points are determined based on the one or more edges and the reconstructed edge. Further, the image processing system performs an image perspective correction on the reconstructed image, based on the outer corner points, to obtain a processed image.
13 Citations
13 Claims
-
1. A method for processing an image extracted from a document, the method comprising:
-
detecting, by an image processing system, one or more edges of the image; determining, by the image processing system, a missing edge in the image by comparing color gradients of the one or more edges; computing a color gradient along each side of the image; and
comparing the color gradient of each side with remaining sides to detect the missing edge;reconstructing, by the image processing system, the missing edge by cloning image pixels based on data pixels of an edge, opposite to the missing edge, amongst the one or more edges to obtain a reconstructed image, wherein the reconstructed image includes a reconstructed edge; identifying, by the image processing system, outer corner points in the reconstructed image based on quadratic corner points, wherein the quadratic corner points are determined based on the one or more edges and the reconstructed edge; and performing, by the image processing system, an image perspective correction on the reconstructed image, based on the outer corner points, to obtain a processed image. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An image processing system for processing an image extracted from a document, the image processing system comprising:
-
a processor; and a memory communicatively coupled to the processor, wherein the memory stores processor-executable instructions, which, on execution, causes the processor to perform operations comprising; detecting one or more edges of the image; determining a missing edge in the image by comparing color gradients of the one or more edges; computing a color gradient along each side of the image; and
comparing the color gradient of each side with remaining sides to detect the missing edge;reconstructing the missing edge by cloning image pixels based on data pixels of an edge, opposite to the missing edge, amongst the one or more edges to obtain a reconstructed image, wherein the reconstructed image includes a reconstructed edge; identify outer corner points in the reconstructed image based on quadratic corner points, wherein the quadratic corner points are determined based on the one or more edges and the reconstructed edge; and performing an image perspective correction on the reconstructed image, based on the outer corner points, to obtain a processed image. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer readable medium including instructions stored thereon that when processed by at least one processor cause an image processing system to perform operations comprising:
-
detecting one or more edge of an image extracted from a document; determining a missing edge in the image by comparing color gradients of the one or more edges; computing a color gradient along each side of the image; and
comparing the color gradient of each side with remaining sides to detect the missing edge;reconstructing the missing edge by cloning image pixels based on data pixels of an edge, opposite to the missing edge, amongst the one or more edges to obtain a reconstructed image, wherein the reconstructed image includes a reconstructed edge; identify outer corner points in the reconstructed image based on quadratic corner points, wherein the quadratic corner points are determined based on the one or more edges and the reconstructed edge; and performing an image perspective correction on the reconstructed image, based on the outer corner points, to obtain a processed image.
-
Specification