Abstract:
In high speed imaging systems wherein document images are lifted and stored, it is desirable to reduce the amount of information to be stored. A video format unit utilizing video information from a data lift enhances the video information and then compresses the enhanced video data by coding the data in a repetitive run length type code. The coded data is then stored in an on-line system to permit the immediate recall of stored images.

Description:
FIELD OF INVENTION 
     This invention relates to image systems and more particularly to a video format unit for use in an image system. 
     BACKGROUND OF THE INVENTION 
     Most prior document processing systems optically read information from documents, which information may be stored if not used immediately for processing. Some systems may lift portions of the document in order to retain certain fields of information on the document, and the document may also be filmed with a microfilm camera at high speed to retain a copy of the entire document. To optically read and digitally store an image of the document generally requires a very large storage capacity and has not been practice for high speed document processors. 
     In facsimile systems, document information is transmitted to produce a copy thereof at a remote location. In this instance, it is not necessary for long time storage of the document as the document is reproduced as the information representative thereof is transmitted. In order to reduce the time to send such documents, various coding methods have been performed on the information. Such codes, sometimes referred to as run length coding, is used to compress the information; however when it is desirable to run documents and capture image at rates up to 2,000 documents per minute, it is necessary to temporarily store the information and rapidly code it prior to storage on disk. Prior systems have not had the capability of processing and storing images at such high speeds. 
     SUMMARY OF INVENTION 
     The present invention is a video format unit which provides means for formatting images captured up to the rate of 2,000 documents per minute into blocks of data. The images are stored in an image buffer and scanned in a horizontal raster fashion. The black and white signals received as the document is scanned are enhanced utilizing correlation techniques. The resulting enhanced video information is stored in an image buffer in which the complete image of black/white video is stored to allow the image to be raster scanned in an horizontal direction for compression and encoded prior to the storage of the image onto various storage means such as disks. The video format unit may be used as a part of a larger image system such as that disclosed and claimed in copending U.S. patent application No. 320,352, filed Nov. 12, 1981. 
    
    
     THE DRAWINGS 
     The invention and the technical advance represented thereby will best be understood from the following detailed description when taken along with the following drawings and the appended claims. 
     FIG. 1 is a timing diagram of the input functions of the video input unit; 
     FIG. 2 is a timing diagram of the overall video system; 
     FIG. 3 illustrates the initialization parameter of the video format unit; 
     FIG. 4 illustrates the video format unit lift control function; 
     FIGS. 5 and 6 illustrates the format of the video; 
     FIGS. 7 and 8 illustrate the image status in the system; 
     FIG. 9 is a simplified block diagram of the video format unit; 
     FIG. 10 illustrates a segment of the video and the area of the image buffer to be compressed; and 
     FIG. 11 is a detailed block diagram of the video format unit of the present invention. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     The Video Format Unit (VFU) provides the means of formatting images captured at up to 2000 documents per minute into blocks of data. The VFU accepts p bit gray data (where p is typically in the range of 2 to 8 bits) representing an image of up to W×L pels. The image is enhanced by a digital filter and thresholded to create a single bit (black/white) image. This image is stored in an image buffer and scanned in a horizontal or vertical raster scan fashion. The horizontal or vertical scans of black/white data are coded using a repetitive run length coding technique. The coded data is packed into sixteen bit words and transmitted over the video bus to the Image Capture Disk Controller (ICDC). 
     The VFU inputs are: gray video input from the image lift electronics, enable document presence window from the transport electronics, reset document identification number counter from the transport electronics, increment document identification number counter from the transport electronics, and control information from the image CPU (ICPU). 
     The VFU accepts two k bit words representing odd and even array cells simultaneously. The array is of length W cells and scanned from the top of the document down. In a particular implementation using a 512 cell array and four bit gray data, the VFU accepts 256 8-bit words. The video is stored via a data clock and a begin scan. A timing diagram of the video format unit is shown in FIG. 1. 
     The video format unit generates a document presence signal from the video only when enabled by the enable document presence window signal. After detection of a document presence leading edge, the VFU processes the video until its internal document presence locater detects the trailing edge of the document, regardless of the enable document presence window signal. This trailing edge detection signal is generated by the document tracking logic in the transport electronics. 
     The enable document presence window signal becomes true approximately 1 MS prior to the documents leading edge arriving at the image lift station. It remains true for at least 2.5 MS after the document leading edge is at the image lift station. 
     These two signals, enable document presence and trailing edge detection, are generated by the document tracking logic in the transport electronics. The VFU uses these signals to maintain a five bit document ID number that is to be verified with the ID number from the ICPU. The document ID number is reset to zero at initialization and incremented preceeding each document. Hence, the first documents ID number is 1 and afterwards the numbers are modulo 32. Timing is illustrated in FIG. 2. 
     The VFU receives the following control blocks: Initialization parameters and document parameters. 
     At initialization the VFU receives multiple sets of parameters from the ICPU. These are stored to allow a code to be transmitted in real time operation to select the parameter set. The control blocks received for a particular implementation of eight parameter sets are as shown in FIG. 3 and FIG. 4. 
     The VFU outputs formatted video and its associated table via the video bus. It also outputs control information, status and exceptions via the control bus. 
     The format of the video is shown in FIG. 5; the table in FIG. 6; the image status in FIG. 7 and the exception report in FIG. 8. 
     FIG. 9 is a functional block diagram for the VFU. The scan buffer (20) receives the video data from the video electronics and outputs the video synchronously in a format compatible with the video enhancer and image buffer. 
     The video enhancer (21) is a digital filter, thresholder and spot filter. It accepts the p bit video from the scan buffer and performs a correlation with a N×M matrix (where N and M are typically odd values between 1 and 31, and may be equal). &#34;N&#34; identifies the number of rows in the correlation matrix. &#34;M&#34; identifies the number of columns. The weights of each cell in the N×M matrix are stored in read only memory and may be altered individually. The resulting video is thresholded either by a fixed level or dynamically as a function of the sum of cells in the NxM matrix. The thresholded video is then passed by a 3×3 array to make the final black/white decision for each cell. This 3×3 spot filter is also stored in the read only memory for ease of alteration and multiple spot filter selections are provided in each VFU. 
     The image buffers (22) store a complete image of black/white video to allow the image to be raster scanned in a horizontal or vertical direction for compression. 
     The coder (24) accepts the video from the image buffer and performs a repetitive run length code on the video. Beginning at a corner reference point, the video is segmented into contiguous blocks of size a×b pels. &#34;Runs&#34; for run length coding are extracted by next selecting a direction of scan, horizontal or vertical, and then counting the number of consecutive blocks in that direction which contain identical pel patterns. A run is terminated either when the pel pattern of the a×b block changes or the edge of the document is encountered. The count of the number of consecutive identical blocks determines the length of the run. This portion of an image is referred to as a &#34;segment.&#34; An illustration of a 1×4 pel segment scanning horizontally is shown in FIG. 10; also in this figure is shown the area of the image buffer to be compressed. The compression area is located between the horizontal limits of X min and X max and between the vertical limits of Y min and Y max. The limits are specified with reference to the bottom right corner of the image buffer with a resolution of 40 mils horizontally and 64 mils vertically. 
     The coded data is stored in the output buffer (25) for subsequent transfer to the image lift subsystem controller via the video bus. The output buffer does not store an entire image of coded data. Therefore, transfer to the ICDC occurs concurrently with coding. 
     The VFU controller (23) tracks images through the VFU monitoring for errors and exception conditions. It builds a table for each image to assist in tracking, sorting and decompressing the images. Also, it inputs format parameters and performs diagnostics. 
     FIG. 11 is a detailed block diagram of the VFU. The following relates these blocks to the basic blocks of FIG. 9. 
     
         ______________________________________Basic Function         Blocks______________________________________Scan Buffer 20         41,42,43Video Enhancer 21      48-57Image Buffer 22        59-68Coder 24               69-71Output Buffer 25       72-74VFU Controller 23      44-47,75______________________________________ 
    
     The line receiver, document presence board (41), senses document presence from the video, maintains the document ID number, measures the document height, and measures the document width. 
     Document presence is sensed using the even channel video only. It is calculated by averaging and thresholding the white level over five scans of video armed by the enable document presence window signal from the transport electronics. 
     A five bit count is maintained by the line receiver/document presence board to be used as the document ID number. This count may be reset and incremented by the transport electronics. The count is compared to the document ID in the queued lift control blocks provided by the ICPU. 
     If a mismatch occurs the VFU Controller reports the error to the ICPU and inhibits the processing of the image. 
     The document height is measured by the line receiver/document presence board. This measurement is made by searching for consecutive cells above and below the image that are darker than a predetermined threshold. Only the even video is used for this measurement; no great degree of accuracy will be maintained. 
     The document width is measured by counting the number of scans that document presence is true. The document height and width are read by the VFU Controller at the trailing edge of document presence. 
     The scan buffer controller (IPSBC) (42) is used with the scan buffer memory (IPSBM) (43) to reformat the video from odd/even format from the video electronics to the multiple segment format required in the video electronics. Due to the speed requirements (2000 document/minute), multiple, separate overlapping video enhancers are required. Each enhancer uses a N×M matrix and therefore must have (N/2) cells of overlap at its vertical boundaries. The scan buffer divides the image into equal vertical segments. Each segment includes (N/2) cells of overlap on both its top and bottom boundaries. 
     The video enhancer is composed of one video memory board (48), N sum of product boards (49-55) (seven shown in this particular implementation), two adder boards (55) and (56), and a threshold board (57). The memory board contains enough memory to enable the enhancer to access M columns of video. It also contains an accumulator to create an area sum for the N×M array. 
     The sum of product boards (VESOP) each take one tap from the memory board and create one column of the N×M array. A read only memory is used to create a product consisting of the multiplication of the cell weight and the gray video value for with each position in the column. Then the N products are summed to create the sum of products for the columns. The sum of products are then added from each of the VESOP boards. The final sum is created on the theshold board. This number represents the filtered video. It is then thresholded either by a fixed value or by a function of the area sum. 
     The thresholded video is then processed by a 3×3 spot filter to create black/white video. Multiple different filter responses are provided by the spot filter. The filter used is selected by the choice of one of the appropriate format parameters. 
     A minimum of two complete image buffers are provided to allow simultaneous scanning (coding) and loading. Four image buffer memory boards (IBMEM) and one image buffer memory controller (IBMCAC) are required per buffer in the implementation shown. The buffers alternate loading images. 
     In the implementation shown the image buffer memory boards (59-66) load the black/white video from the video enhancers serially from the top of the image down. The memory is scanned horizontally or vertically incorporating sufficient pels to represent two segments in parallel (See FIG. 10). Multiple subimages residing within the boundaries of the original image may be extracted independently during the scanning process, and passed to the data encoder module. The encoded and compressed data may be formatted as a single image data block with multiple subimages contained therein, or as multiple image blocks each containing a single subimage. 
     The image buffer memory controller (67) and (68) begins the loading of the image after a document presence occurs and continues until either document presence terminates or the buffer becomes full. After the image is stored in the buffer the buffer controller verifies that limits have been stored for the image and that the VFU controller has cleared the image for compression. The buffer is then scanned horizontally or vertically beginning at X max and Y max and continuing until X min and Y min is reached. 
     A minimum of two coder boards (69) and (70) are required per Video Format Unit. Each board accepts k bits of the 2k bits from the image buffer. Each change of the k bit pattern is used as the basis of a repetitive run length code. The run code represents the number of repetitions of the base pattern code. 
     The pattern code precedes the run code and may be either directly coded or Huffman coded. If it is directly coded, the first bit is the topmost bit of the k bits received from the image buffer. The remaining k-1 bits follow in sequence. If the pattern is Huffman coded, a table, implemented in ROM, is used to map the pattern to a corresponding Huffman code. 
     The run code consists of a repetition code, terminated by a zero, and a bias code. The repetition code sets a base value for the run length and determines the length of the bias code. The number of repetitions is determined by adding the value of the repetition code to the value of the run bias. 
     As previously stated, the repetitive run length code consists of a pattern code followed by a run code. In addition to the run length code, the coders provide control codes indicating Begin Image, Begin Segment, and End Image. 
     The pattern code for directly coded patterns is as previously defined. If Huffman coding is used, the patterns with the higher frequencies of occurrence are assigned the shorter code words. The effectiveness of the Huffman coding is dependent on the frequencies of occurrence of the pattern codes. In the case of uniformly distributed pattern codes, the Huffman code represents a net gain in the coded image size. 
     The output buffer memories (OBMEM) (72) and (73) store two coded segments of data each and the output buffer controller (74) controls the transfer of the coded data onto the video bus. The output buffer controller also controls the transfer of the table from the VFU Controller to the video bus via the internal bus. 
     In operation, the two OBMEM memory buffers accept 2k bits of coded data from the coders until an end of segment signal is sensed from the coders. The output buffers are then switched allowing the second buffers to be loaded and the first buffers packed into sixteen bit words and shipped to the ICDC. The data is therefore shipped out beginning with the top most segment in the format shown in FIG. 5. 
     The foregoing video format unit has been described in specific block format. Various modifications and circuit arrangements may be used without departing from the novel concepts of this invention.