17. The system of claim 15 , wherein for determining the plurality of components the processor is further configured to: perform a raster scan across the image; identify a plurality of pixels associated with at least one of the plurality of components corresponding to at least one sweep of the raster scan; and aggregate the plurality of pixels based on an interconnection between the plurality of pixels to form at least one set of connected pixels.
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; a processor coupled to the memory, the processor 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, a component comprising 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 sub-word and at least one word; merge a first plurality of words, subwords, or a combination thereof to be processed as a first region; merge a second plurality of words, subwords, or a combination thereof to be processed as a second region wherein at least a portion of the second region vertically overlaps at least a portion of the first region; wherein the first set of characteristic parameters comprises 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, a density of each component, or an aspect ratio of each component; and wherein for calculating the line spacing associated with each column, the processor: creates a histogram of a plurality of horizontal projections of the plurality of components associated with each column, a horizontal projection of the plurality of horizontal projections indicating a number of pixels associated with the plurality of components corresponding to each sweep of a raster scan, calculates an average distance between two consecutive horizontal projections, and computes the line spacing based on the average distance.