Abstract:
A system and a method for visually summarizing a document comprising a display, a processor coupled to the display, and a memory coupled to the processor. Stored in the memory is a routine, which when executed by the processor, causes the processor to generate display data. The routine causes the processor to generate data through extracting at least one visual feature from a document having a plurality of pages, ranking the pages in a document, selecting a page for representing a document according to the visual feature, and displaying the selected page as display data.

Description:
FIELD OF THE INVENTION  
       [0001]     The invention relates generally to displaying information on a graphic user interface (“GUI”) and more specifically to displaying information in such a way as to quickly and easily communicate information to a user.  
       DESCRIPTION OF RELATED ART  
       [0002]     Computers and other electronic devices with GUI&#39;s are used to communicate information. A part of this communication process involves displaying information on a GUI in an efficient manner. In many retrieval and browsing user interfaces, documents are represented by scaled-down images. For example, if the document contains multiple pages, each page may be represented by a separate icon. If each page of a document is represented by an icon, many icons are needed to display a large document. This approach is generally too cumbersome to use. In an alternative approach, a single icon may be used to represent the entire document. Generally, the first page of the document is arbitrarily chosen to represent the document regardless of whether the visual appearance of the first page provides a visual cue for association with that particular document. It is therefore desirable to have a system to represent documents or other items such that information about a document or item is easily relayed to and understandable by a user.  
       SUMMARY OF THE INVENTION  
       [0003]     A computer system is disclosed that comprises a display, a processor coupled to the display, and a memory coupled to the processor. Stored in the memory is a routine, which when executed by the processor, causes the processor to generate display data. The routine includes extracting at least one visual feature from a document having a plurality of pages, ranking the pages in the document according to the at least one visual feature, selecting a page for representing a document according to a rank, and displaying the selected page as the display data. Additional features, embodiments, and benefits will be evident in view of the figures and detailed description presented herein.  
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0004]     The features, aspects, and advantages of the invention will become more thoroughly apparent from the following detailed description, appended claims, and accompanying drawings in which:  
         [0005]      FIG. 1A  illustrates thumbnails of all the pages in a document.  
         [0006]      FIG. 1B  illustrates the first three pages.  
         [0007]      FIG. 2A  illustrates a first row of icons corresponding to the three most visually significant pages of a document;  
         [0008]      FIG. 2B  illustrates pages that contain distinctly different visual differences;  
         [0009]      FIG. 3  illustrates a more compact representation of all the pages in a document; and  
         [0010]      FIG. 4  illustrates one embodiment of a computer system.  
     
    
     DETAILED DESCRIPTION OF THE INVENTION  
       [0011]     A method and apparatus for generating and displaying a visual summarization of a document is described. In one embodiment, a technique described herein extracts visual features from the document and ranks multiple pages of a document based upon at least one or more visual features of the page. The pages may be presented on a graphical user interface (GUI) to a user with features being displayed that are ranked higher.  
         [0012]     Some portions of the detailed descriptions which follow are presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.  
         [0013]     It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussion, it is appreciated that throughout the description, discussions utilizing terms such as “processing” or “computing” or “calculating” or “determining” or “displaying” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system&#39;s registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.  
         [0014]     The present invention also relates to apparatus for performing the operations herein. This apparatus may be specially constructed for the required purposes, or it may comprise a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer readable storage medium, such as, but is not limited to, any type of disk including floppy disks, optical disks, CDROMs, and magnetic-optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a computer system bus.  
         [0015]     The algorithms and displays presented herein are not inherently related to any particular computer or other apparatus. Various general purpose systems may be used with programs in accordance with the teachings herein, or it may prove convenient to construct more specialized apparatus to perform the required method steps. The required structure for a variety of these systems will appear from the description below. In addition, the present invention is not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the invention as described herein.  
         [0016]     A machine-readable medium includes any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer). For example, a machine-readable medium includes read only memory (“ROM”); random access memory (“RAM”); magnetic disk storage media; optical storage media; flash memory devices; electrical, optical, acoustical or other form of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.); etc.  
         [0000]     Overview  
         [0017]     Techniques described herein provide a scheme to rank page icons (e.g., thumbnails) according to their visual saliency. The rankings may be used to select certain pages, preferably those with more salient features, for display. This solution may result in increasing the ease of document recall as opposed to display only the first set of pages of a document with reduced sized images to provide a visual clue as to the contents of a document. Additionally, techniques described herein also provide for various effective representations of document content in applications with limited display size.  
         [0018]      FIG. 1A  illustrates thumbnails of all the pages in a document.  FIG. 1B  illustrates the first three pages, arbitrarily chosen, does not help recall the document. By showing pages with the most salient features, as shown in  FIG. 2A , or pages with distinctly different visual appearances, as shown in  FIG. 2B , a user is provided, generally, with more information to recall a particular document. Utilizing visual saliency and distinctive features, a more compact representation of all pages in a document may be obtained as illustrated in  FIG. 3 .  
         [0019]     The representations in  FIGS. 2A, 2B , and  3 , and other suitable representations, are possible using a combination of components such as, for example, features that describe visual characteristics of a document image, feature extraction and representation scheme, and a measure of visual saliency. Each of these features are described below.  
         [0020]     A set of features capable of describing the visual characteristics of a document image include textural and layout feature information. Textural features may include one or more of position, size, ink density, line spacing, color and contrast. Layout features may include one or more of configuration of blocks (e.g., column, header, etc.) or types of blocks (e.g., picture, line art, text, etc.). Features that are known to play a significant role in human perception and memory, such as, for example, surrounding space, letter height, bold, bullets, indentation, all capitalization, italics, underlining and other suitable features.  
         [0021]     The features extraction/representation scheme component involves the use of document analysis systems that are capable of segmenting blocks, detecting font sizes within blocks, and extracting other relevant information, such as, for example, the textural and layout features described above. Although visual information is naturally conveyed by a description language, in one embodiment a vector representation is used instead to facilitate applications of various techniques developed for information retrieval.  
         [0022]     The measure of visual saliency may be based upon a variety of factors such as, for example, psychological experiments that provide some guidelines for designing this component. For instance, it has been determined that pictures tend to draw more attention than text blocks and character size is more significant than character style. The presence of attractive features contributes to the total visual saliency of the page. Optionally, this visual saliency component can also be normalized using schemes similar to term weighting for text retrieval to account for features common to all documents in a database.  
         [0023]     Utilizing these components, visual features are first extracted for all pages in a database using methods known in the art. Pages in a document are then ranked according to their visual significance and uniqueness. The user or system designer may determine which visual features are significant or unique. Since the number of different visual features may be quite large, the visual features chosen by a user or a system designer may also be quite large. The ranking serves as the basis for the selection of representing icons in  FIG. 2A .  
         [0024]     In addition to ranking pages, visual features may also be used to provide a distance measure between documents. If the visual features are represented in vector form, as is typically done in image-based retrieval techniques, conventional information retrieval techniques as developed for a vector space model may be applied to produce effective iconic document representations. For example, clustering of the pages may reveal distinct page types as shown in  FIG. 2B . While clustering of images is commonly performed as a navigation aid to find similar documents, clustering is used within a document having multiple pages. This is analogous to finding “keyframes” in a video.  
         [0025]     Treating pages in a document as frames in a sequence may also lead to compact representations. “Scene changes” can be detected by comparing the visual distance between two consecutive pages to a threshold, by looking for transitions to different page types subsequent to custering as described above, or by other variations such as, for example, combining visual saliency scores. When the distance between consecutive pages is very small, only one of the two needs to be selected. Sequence of visually similar or uninteresting pages may be stacked to reduce space required as illustrated in  FIG. 3 . It will be appreciated that these components may be utilized independently or in combination with one another to create other novel usages.  
         [0000]     An Exemplary Algorithm  
         [0026]     The visual summarization system described herein uses a source document as input. In the first phase of the process, a number of, for example, color bitmaps are generated. Each bitmap represents a separate page of the source document. Visual features are then extracted from these bitmaps using document analysis techniques. Two functions Saliency and VisualDist defined over these features enable the effects shown in  FIGS. 2A, 2B ,  3 .  
         [0027]     The techniques described herein may operate on a variety of document types by using the feature extraction process that is assumed to utilize common commercial optical character recognition (OCR) systems and operates on the most common denominator for document representation: image bitmaps. The bitmap generation process is described for several common document formats, such as, for example, paper documents, postscript, portable document format (PDF), hypertext markup language (HTML) and Word documents. Although it is also possible to develop feature extraction modules designed specifically for each document type, using a common representation simplifies the algorithm description. Generalization to other document media may also be similarly derived.  
         [0000]     Bitmap Generation  
         [0028]     Generating a bitmap can be used for any type of computer-generated source document. However, on occasion it may be more efficient or convenient to use a specific method based on a particular type of source document. The following description provides a general method and several type-specific methods.  
         [0029]     On an operating system (“OS”) such as Microsoft Windows, a printer driver is a software application that translates rendering commands from some controlling application into a printable representation of a document. A user typically has installed one printer driver for each different type of printer in which access is granted.  
         [0030]     Given a source document S generated by application A, the general methodology operates as follows. The user runs application A, loads document S, and selects the “print” function. The user then selects a printer driver that, instead of sending its output to a printer, creates a number of color bitmap images. The document is paginated just as if it was to be printed. The user optionally has control of font sizes and target paper size, depending on the application A.  
         [0031]     Techniques for creating such a printer driver are known in the art since it does not differ significantly from any other printer driver. It is assumed that a bitmap corresponds to a page intended for a printer according to a default dots-per-inch factor. Therefore, an 8.5×11″ page corresponds to, for example, a 612×792 bitmap with a 72 dpi factor.  
         [0032]     In an alternative embodiment, the user selects an existing printer driver that generates Postscript™ output (such drivers are commonly available as part of an OS or through suppliers such as Adobe Inc), and selects the “Print to File” option. In this way, a postscript file can be generated from an arbitrary source document. This postscript file, in turn, can be transformed into a number of bitmap images.  
         [0033]     Tools for using HTML to create bitmap images are known in the art. Such tools are available from Sun such as Hotjava™, Microsoft such as Internet Explorer ActiveX™ control and AOL such as Netscape Mozilla™ project. Such a tool can further use Dynamic HTML, XML, Style Sheets and further markup languages.  
         [0034]     In using HTML, there are two choices that determine the size of the final output: target page width and font size. One page width to select is the screen resolution width of an average user, for instance 800 pixels. An alternative is to assume the width of a standard letter-size page, 8.5 inches. Similarly, font size can be chosen to match the default setting on a standard Web browser, e.g., 12 point Times Roman font for variable-width characters.  
         [0035]     Tools for rendering PDF files are known in the art. Since PDF includes information about page size, orientation, and font size, no further information is required.  
         [0036]     Tools for rendering Postcript™ files are known in the art. Since Postcript™ includes information about page size, orientation, and font size, no further information is required.  
         [0037]     In addition to the methods above that relate to computer-generated documents, any paper document can also be used as input. A scanning device which is known in the art can turn the paper document directly into a color bitmap per page.  
         [0000]     Feature Extraction  
         [0038]     After image bitmaps are obtained for individual document pages, conventional document analysis techniques may be applied to extract visual features. Commercial OCR systems such as Xerox ScanWorX commonly provide basic layout information and character interpretations. A single document page is often decomposed into blocks of text, pictures, or figures. For text blocks, word bounding boxes and font size are estimated. Since most commercial systems operate on binary or gray scale images, color images can be converted to a monochrome version first for block analysis. Color constituents can be subsequently extracted by superimposing the color image with segmented block information.  
         [0039]     The end result of document analysis is a set of feature descriptions for each document page. More specifically, for each page, a list of segmented blocks is obtained. Each segmented block is categorized as text, a picture, or line art. The location and color composition of each block are also known. In order to proceed to use the algorithm described above, a suitable representation should be chosen. Therefore, it is assumed that a simple statistical representation is used, although other representations, even symbolic, are also possible.  
         [0040]     A document image is divided into m×n grids. For each uniquely numbered square in the grid, g i ,1≦i≦m·n, five features are recorded. The first three features, t i , p i , and f i , indicate portions of the grid area which overlap with a text, picture or line art block, respectively. For example, if entire area under the grid belongs to a text block, t i =1, p i =f i =0. If the left one third area overlaps a text block, the right one third overlaps a picture, and the middle one third contains white background, then t i =p i =0.33 and f i =0. The next two features, b i  and c i , contain the color information of grid content. Colors may be represented by their brightness, hue, and saturation attributes. The brightness attribute represents the observed luminance and is monochromatic. The hue attribute indicates the degree of “redness” or “greenness”. The saturation attribute reflects the pureness of the hue. Although human perception is more sensitive to certain color tone than others, it is assumed that visual significance is independent of the hue in the simplified representation and only the “average brightness” and “average color pureness” is recorded. Feature b i  measures the average “blackness” inside a grid. More precisely, it is the average brightness value for pixels in the grid in reverse and normalized such that if all pixels inside a grid are pure black, b i =1. This feature is equivalent to the “ink density” feature frequently used in conventional document analysis of bitonal images. Feature c i  is the average saturation value for pixels in the grid, also normalized between 0 and 1. Therefore, a grayscale image has only a brightness value but no saturation attribute. In contrast, a grid containing color pixels will have a non-zero c i  value.  
         [0041]     Consequently, the visual information in a given page is represented by a vector           with dimension 5*m*n, which can be considered as a concatenation of 5 vectors          ,         ,         ,         ,          each of m*n dimensions. A document consisting of k pages will be represented by k vectors            1  . . .            k . Elements in these vectors all have values between 0 and 1. However, they do not have to sum to 1.  
         [0000]     Visual Saliency Evaluation  
         [0042]     The simplest form of visual saliency is evaluated on a per-page basis independent of other pages in the same document or database. This is achieved by assigning a weight to each visual features. For example, since colors are more noticeable than grays, and pictures are more visually significant than line arts and text, a reasonable weighting for the 5 features is w t =0.1, w f =0.4. w p =1, w b =0.8, w c =2. The saliency score for a page is then computed as  
         Saliency   ⁢       (   v   )     &gt;       =         w   t     ·       ∑   i     ⁢           ⁢     t   i         +       w   f     ·       ∑   i     ⁢     f   i         +       w   p     ·       ∑   i     ⁢     p   i         +       w   b     ·       ∑   i     ⁢     b   i         +       w   c     ·       ∑   i     ⁢     c   i               
 
         [0043]     Although, in this example, the weights are applied uniformly across the page, the weights may be made to reflect the positional variance in human perception. For instance, different weights may be assigned to w c (i) depending on the location of (i) to emphasize the significance of colors when occurring in the middle of a page versus on the top or bottom of a page. Therefore, a more general equation for saliency is  
         Saliency   ⁢       (   v   )     &gt;       =         ∑   i     ⁢         w   t     ⁡     (   i   )       ·           ⁢     t   i         +       ∑   i     ⁢         w   f     ⁡     (   i   )       ·     f   i         +         ∑         w   p     ⁡     (   i   )       ·       i     ⁢     p   i       +       ∑   i     ⁢         w   b     ⁡     (   i   )       ·     b   i         +       ∑   i     ⁢         w   c     ⁡     (   i   )       ·     c   i               
 
         [0044]     Using the function Saliency, pages in a document can thus be ranked according to visual distinctiveness, and selected to represent the document, as shown in  FIG. 2A .  
         [0000]     Relative Saliency  
         [0045]     Since one purpose of using visually salient icons is to aid the retrieval of documents, in one embodiment, the icon selection criterion considers common characteristics of other documents in the collection of documents. For example, the significance of a page containing a red picture in one comer is diminished if all pages in the database have the same characteristic. This situation is quite possible in special collections where all documents contain the same logo or other types of marking. This problem is known in information retrieval and is typically dealt with by incorporating a database norm into the equation. By using a centroid subtraction method, similar types of correction mechanisms may be applied to the techniques described herein.  
         [0046]     Given a collection of documents, the centroid is the average visual feature vector of all pages. To discount properties common to all documents in the database, the centroid is subtracted from individual feature vectors before saliency calculation. In other words, 
 
RelSaliency(         )=Saliency(|         −         |) 
 
 where {right arrow over (u)} is the centroid vector. Thus, in one embodiment, saliency is evaluated based on features that are “out-of-normal” in the database. Using the example presented above, if all pages in the database contain a red picture at grid position i, then the average value of c i  will be fairly high. Therefore, a page that does not have a red picture in the comer should be more noticeable. In this case, if c i =0 in this page, which a high value will result after subtracting the average c i  in the centroid. In this example, since we are ignoring hue, a page that has a picture in that position, regardless of color, will have a high c i  value. In contrast, a page that does not have any color in that position will stand out. 
 
 Visual Distance 
 
         [0047]     To measure the visual difference between two pages, the Saliency function may be applied to the absolute values of the differences between corresponding features. 
 
VisualDist(           1 ,           2 )=Saliency(|           1           −           2 |) 
 
         [0048]     VisualDist takes a grid by grid accounting of the discrepancies in texture and color between at least two pages and then assesses the visual saliency of the total difference. The portion |           1 −           2 | generates a vector whose elements are all between 0 and 1. While the L 2  norm is most frequently used (or rnisused) to measure the distance between two vectors regardless whether a uniform numeric scale applies to all components, this measure appears to be more suitable to describing what a visual difference is and how visually significant that difference may be.  
         [0049]     One application of the visual distance is to produce a condensed representation of a multi-page document, as shown in  FIG. 3 . The visual difference between every two consecutive pages determines the amount of overlapping that exists; therefore, only significantly different-looking pages are shown in full. Since VisualDist is a distance metric, it can be used to cluster all pages in a document, or pages in a collection of documents. Pages are first grouped by their visual similarities. Thereafter, an exemplar page for each cluster is selected by picking the page whose feature vector is closest to the duster center. This produces the exemplar pages of a document as seen in  FIG. 2B .  
         [0000]     Icon Display  
         [0050]     It will be appreciated that although  FIGS. 2A, 2B ,  3  illustrate example of displays of icons created using the techniques of the invention, other arrangements are possible. The scheme may adapt to the amount of space available by picking out a smaller or a larger number of page icons. The amount of space can be specified by an external constraint (e.g., physical display size), by a system designer, or by a user (e.g., if the icon is displayed within a resizable box), the amount of space can also be a variable. For example, the number of page icons that are shown may depend on the number of clusters found within the document, the length of the document, the number of pages whose visual saliency is above some predetermined threshold, or the connection bandwidth.  
         [0051]     The scheme of icons may adapt to the shape of the space available.  FIG. 3  shows a linear display. The same information may be shown as a sequence of lines of page icons, for a square or rectangular shape, or as stacks of distinct-looking pages. Alternatively, the icons may be arranged around a circle or oval. In general, an ordered set of icons may follow any arbitrary path.  
         [0052]     The generated icons are suitable for use in a graphical user interface, where they can be generated on-the-fly, for printed use, where they are generated ahead of time, or for use on the Web or in multimedia presentation formats.  
         [0053]      FIG. 4  illustrates one embodiment of a computer system  10  which implements the principles of the present invention. Computer system  10  comprises a processor  17 , a memory  18 , and interconnect  15  such as a bus or a point-to-point link. Processor  17  is coupled to memory  18  by interconnect  15 . In addition, a number of user input/output devices, such as a keyboard  20  and display  25 , are coupled to a chip set (not shown) which is then connected to processor  17 . The chipset (not shown) is typically connected to processor  17  using an interconnect that is separate from interconnect  15 .  
         [0054]     Processor  17  represents a central processing unit of any type of architecture (e.g., the Intel architecture, Hewlett Packard architecture, Sun Microsystems architecture, IBM architecture, etc.), or hybrid architecture. In addition, processor  17  could be implemented on one or more chips. Memory  18  represents one or more mechanisms for storing data such as the number of times the code is checked and the results of checking the code. Memory  18  may include read only memory (“ROM”), random access memory (“RAM”), magnetic disk storage mediums, optical storage mediums, flash memory devices, and/or other machine-readable mediums. In one embodiment, interconnect  15  represents one or more buses (e.g., accelerated graphics port bus, peripheral component interconnect bus, industry standard architecture bus, X-Bus, video electronics standards association related to buses, etc.) and bridges (also termed bus controllers).  
         [0055]     While this embodiment is described in relation to a single processor computer system, the invention could be implemented in a multi-processor computer system or environment. In addition to other devices, one or more of network  30  may be present. Network  30  represents one or more network connections for transmitting data over a machine readable media. The invention could also be implemented on multiple computers connected via such a network.  
         [0056]      FIG. 4  also illustrates that memory  18  has stored therein data  35  and program instructions (e.g. software, computer program, etc.)  36 . Data  35  represents data stored in one or more of the formats described herein. Program instructions  36  represent the necessary code for performing any and/or all of the techniques described with reference to  FIGS. 2A, 2B  and  3  do. Program instructions may be stored in a computer readable storage medium, such as any type of disk including floppy disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs, RAMs, erasable programmable read only memories (“EPROM”s), electrically erasable programmable memories (“EEPROM”s), magnetic or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a computer system bus. It will be recognized by one of ordinary skill in the art that memory  18  preferably contains additional software (not shown), which is not necessary to understanding the invention.  
         [0057]      FIG. 4  additionally illustrates that processor  17  includes decoder  40 . Decoder  40  is used for decoding instructions received by processor  17  into control signals and/or microcode entry points. In response to these control signals and/or microcode entry points, decoder  40  performs the appropriate operations.  
         [0058]     In the preceding detailed description, the invention is described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the claims. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.