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; characterized in that the method further comprises: determining, by the image processing system, a missing edge in the image, wherein determining a missing edge in the image comprises computing an average color value over all four edges of the image, and determining the missing edge when the average color value at any one of the edges is not matching the average color value at the other edges of the image; 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 by extrapolating the one or more edges and the reconstructed edge, wherein the outer corner points include the outermost quadratic corner points in a Cartesian reference frame; 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. detecting, by an image processing system, one or more edges of the image; characterized in that the method further comprises: determining, by the image processing system, a missing edge in the image, wherein determining a missing edge in the image comprises computing an average color value over all four edges of the image, and determining the missing edge when the average color value at any one of the edges is not matching the average color value at the other edges of the image; 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 by extrapolating the one or more edges and the reconstructed edge, wherein the outer corner points include the outermost quadratic corner points in a Cartesian reference frame; 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. determining, by the image processing system, a missing edge in the image, wherein determining a missing edge in the image comprises computing an average color value over all four edges of the image, and determining the missing edge when the average color value at any one of the edges is not matching the average color value at the other edges of the image; computing an average color value over all four edges of the image, and determining the missing edge when the average color value at any one of the edges is not matching the average color value at the other edges of the image; 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 by extrapolating the one or more edges and the reconstructed edge, wherein the outer corner points include the outermost quadratic corner points in a Cartesian reference frame; 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.