15. A system for preprocessing an image for optical character recognition (OCR), wherein the image comprises a plurality of columns, each column of the plurality of columns comprising at least one of Arabic text and non-text items, the system comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to: determine a plurality of components associated with at least one of the Arabic text and the non-text items of the plurality of columns, wherein a component comprises a series of connected pixels; calculate a line height and a column spacing associated with the plurality of components; associate at least one component of the plurality of components with a column of the plurality of columns based on the line height and the column spacing; calculate a first set of characteristic parameters for each column of the plurality of columns; merge the plurality of components of each column of the plurality of columns based on the first set of characteristic parameters to form at least one of at least one Arabic sub-word and at least one Arabic word, wherein the first set of characteristic parameters is at least one of a line height associated with each column, a word spacing associated with each column, a line spacing associated with each column, a number of pixels corresponding to each component, a width of each component, a height of each component, coordinates of each component, density of each component, and aspect ratio of each component and wherein for calculating the line spacing associated with each column, the processor is configured to: create a histogram of a plurality of horizontal projections of the plurality of components associated with each column, wherein a horizontal projection of the plurality of horizontal projections indicates a number of pixels associated with the plurality of components corresponding to each sweep of the raster scan; calculate an average distance between two consecutive horizontal projections; and compute the line spacing based on the average distance.
15. A system for preprocessing an image for optical character recognition (OCR), wherein the image comprises a plurality of columns, each column of the plurality of columns comprising at least one of Arabic text and non-text items, the system comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to: determine a plurality of components associated with at least one of the Arabic text and the non-text items of the plurality of columns, wherein a component comprises a series of connected pixels; calculate a line height and a column spacing associated with the plurality of components; associate at least one component of the plurality of components with a column of the plurality of columns based on the line height and the column spacing; calculate a first set of characteristic parameters for each column of the plurality of columns; merge the plurality of components of each column of the plurality of columns based on the first set of characteristic parameters to form at least one of at least one Arabic sub-word and at least one Arabic word, wherein the first set of characteristic parameters is at least one of a line height associated with each column, a word spacing associated with each column, a line spacing associated with each column, a number of pixels corresponding to each component, a width of each component, a height of each component, coordinates of each component, density of each component, and aspect ratio of each component and wherein for calculating the line spacing associated with each column, the processor is configured to: create a histogram of a plurality of horizontal projections of the plurality of components associated with each column, wherein a horizontal projection of the plurality of horizontal projections indicates a number of pixels associated with the plurality of components corresponding to each sweep of the raster scan; calculate an average distance between two consecutive horizontal projections; and compute the line spacing based on the average distance. 16. The system of claim 15 , wherein the processor is further configured to perform at least one of: converting at least one of a grayscale image and a color image into a binary Image; filtering salt and pepper noise; and correcting skew using a modified Hough transform.