7. A computer-implemented method for document image segmentation, said method comprising: inputting a document image; pre-processing input image by maintaining the aspect ratio and performing colour quantization to give a quantized image; applying Hue, Saturation and Value colour space transformation on said quantized image; deriving a transformed image containing only saturation component of the quantized image; calculating both horizontal and vertical energies of said transformed image and cumulating both of the calculated energies; providing a first energy image; converting a quantized image into a grayscale image; calculating both horizontal and vertical energies of said gray scale image and cumulating both of the calculated energies; providing a second energy image; computing a maximum of both the energy images; providing a maximum energy image; binarizing said maximum energy image; dilating said binarized image; formulating different clusters based on the density of the dilated areas; creating bounding boxes enclosing each cluster in the clustered image; and forming an image of the document having image segments.
8. The computer-implemented method as claimed in claim 7 , further comprising: providing a database containing images of logos, product-marks and trademarks along with company and product information of a plurality of companies; indexing said images of logos, product-marks and trademarks stored in said database; receiving different image segments of a document; matching said different image segments with said indexed images of logos, product-marks and trademarks stored in said logo database and providing matching image segments; extracting said company and product information from said database corresponding to each of said matching image segments; and appending non matching image segments containing new logos, product-marks or trademarks, together with company or product information, into the database.