EP0740263A2

Method of training character templates for use in a recognition system

Abstract

A technique for automatically training a set of character templates using unsegmented training samples uses as input a two-dimensional (2D) image of characters, called glyphs, as the source of training samples, a transcription associated with the 2D image as a source of labels for the glyph samples, and an explicit, formal 2D image source model that models as a grammar the structural and functional features of a set of 2D images that may be used as the source of training data. The input transcription may be a literal transcription associated with the 2D input image, or it may be nonliteral, for example containing logical structure tags for document formatting, such as found in markup languages. The technique uses spatial positioning information about the 2D image modeled by the 2D image source model and uses labels in the transcription to determine labeled glyph positions in the 2D image that identify locations of glyph samples. The character templates are produced using the input 2D image and the labeled glyph positions without assigning pixels to glyph samples prior to training. In one implementation, the 2D image source model is a regular grammar having the form of a finite state transition network, and the transcription is also represented as a finite state network. The two networks are merged to produce a transcription-image network, which is used to decode the input 2D image to produce labeled glyph positions that identify training data samples in the 2D image. In one implementation of the template construction process, a pixel scoring technique is used to produce character templates contemporaneously from blocks of training data samples aligned at glyph positions.

EP0740263A2, drawing sheet 1
Sheet 1 of 37

Term

Term ended

Projected expiry passed 25 April 2016, 10.4 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

10 claims: 3 independent, 7 dependent

  1. 1
    A method of operating a machine to train a set of character templates for use in a recognition system; the machine including a processor and a memory device for storing data; the data stored in the memory device including instruction data the processor executes to operate the machine; the processor being connected to the memory device for accessing the data stored therein; the method comprising:operating the processor to determine a glyph sample pixel position of each glyph sample occurring in an image definition data structure defining a two-dimensional image including a plurality of glyph samples, hereafter referred to as a 2D image source of glyph samples;the 2D image source of glyph samples having a vertical dimension size larger than a single line of glyphs;each glyph sample included in the 2D image source of glyph samples being an image instance of a respective one of a plurality of characters in a character set, hereafter referred to as a glyph sample character set;each one of the set of character templates being trained representing a respective one of the plurality of characters in the glyph sample character set and being identified by a character label data item indicating the respective character in the glyph sample character set;the processor, in determining the glyph sample pixel position of each glyph sample, using a two-dimensional image source model data structure, hereafter referred to as a 2D image source model, stored in the memory device of the machine;the 2D image source model modeling as a grammar a spatial image structure of a set of two-dimensional (2D) images;the 2D image source of glyph samples being one of the set of 2D images modeled by the 2D image source model;the 2D image source model including spatial positioning data modeling spatial positioning of the plurality of glyphs occurring in the 2D image source of glyph samples;the processor using the spatial positioning data to determine the glyph sample pixel position of each glyph sample;operating the processor to produce a glyph label data item, hereafter referred to as a respectively paired glyph label, paired with the glyph sample pixel position of each glyph sample occurring in the 2D image source of glyph samples;the respectively paired glyph label indicating a respective one of the characters in the glyph sample character set;the processor, in producing the respectively paired glyph label, using mapping data included in the 2D image source model mapping a respective one of the glyphs occurring in the 2D image source of glyph samples to a glyph label indicating the character in the glyph sample character set;the processor, further in producing the respectively paired glyph label, using a transcription data structure, hereafter referred to as a transcription, associated with the 2D image source of glyph samples and including an ordered arrangement of transcription label data items, hereafter referred to as transcription labels;the processor using the transcription and the mapping data to pair a glyph label with the glyph sample pixel position of each glyph sample;andoperating the processor to produce the set of character templates indicating respective ones of the characters in the glyph sample character set using the glyph sample pixel positions of the glyph samples occurring in the 2D image source of glyph samples identified by the respectively paired glyph labels;each respectively paired glyph label identifying a glyph sample pixel position as a training data sample for a respective one of the character templates.
  2. 4
    A method of operating a machine to train a set of character templates for use in a recognition system; the machine including a processor and a memory device for storing data; the data stored in the memory device including instruction data the processor executes to operate the machine; the processor being connected to the memory device for accessing the data stored therein; the method comprising:operating the processor to receive and store, in the memory device of the machine, an image definition data structure defining a two-dimensional image source including a plurality of glyphs, hereafter referred to as a 2D image source of glyph samples;the 2D image source of glyph samples having a vertical dimension size larger than a single line;each glyph included in the 2D image source of glyph samples being an image instance of a respective one of a plurality of characters in a character set, referred to as a glyph sample character set;the set of character templates being trained representing respective ones of the plurality of characters in the glyph sample character set;operating the processor to receive and store, in the memory device of the machine, a finite state network data structure, hereafter referred to as a transcription network indicating a transcription associated with the 2D image source of glyph samples;the transcription including an ordered arrangement of transcription label data items, hereafter referred to as transcription labels;the transcription network indicating the ordered arrangement of the transcription labels in the transcription as at least one transcription path through the transcription network;operating the processor to store a stochastic finite state network data structure, hereafter referred to as a two-dimensional (2D) image source network, in the memory device of the machine;the 2D image source network modeling as a grammar a spatial image structure of a set of 2D images, each including a plurality of glyphs;a first one of the set of 2D images being modeled as at least one path through the 2D image source network that indicates an ideal image consistent with the spatial image structure of the first image;the at least one path indicating path data items associated therewith and accessible by the processor;the path data items indicating image origin positions and glyph labels paired therewith of respective ones of the plurality of glyphs included in the first image;the 2D image source of glyph samples being one of the images included in the set of 2D images modeled by the 2D image source network;operating the processor to merge the 2D image source network with the transcription network to produce a transcription-image network data structure, referred to as a transcription-image network;the transcription-image network being a modified form of the 2D image source network wherein, when the transcription is associated with the first image, the transcription-image network models the first image as at least one complete transcription-image path through the transcription-image network that indicates an ideal image consistent with the spatial image structure of the first image;the at least one complete transcription-image path indicating the path data items, and further indicating a sequence of message strings consistent with the ordered arrangement of the transcription labels indicated by the at least one transcription path through the transcription network;operating the processor to perform a decoding operation on the 2D image source of glyph samples using the transcription-image network to produce at least one complete transcription-image path indicating an ideal image consistent with the spatial image structure of the 2D image source of glyph samples;operating the processor to obtain, using the path data items associated with the at least one complete transcription-image path, a 2D image position in the 2D image source of glyph samples indicating an image origin position and a glyph label paired therewith for each glyph sample in the 2D image source of glyph samples;each image origin position and the glyph label paired therewith being referred to collectively as a labeled glyph position of a glyph sample;andoperating the processor to produce the set of character templates using the 2D image source of glyph samples and the labeled glyph positions of the glyph samples occurring therein;the glyph samples to be used for training the character templates being identified by the glyph labels respectively paired with each image origin position.
  3. 8
    A machine for use in training a set of character templates for use in a recognition operation; the machine comprising:a first signal source for providing image definition data defining a first image;image input circuitry connected for receiving the image definition data defining the first image from the first signal source;a second signal source for providing non-image data;input circuitry connected for receiving the non-image data from the second signal source;a processor connected for receiving the image definition data defining the first image from the image input circuitry and for receiving the non-image data from the input circuitry;andmemory for storing data;the data stored in the memory including instruction data indicating instructions the processor can execute;the processor being further connected for accessing the data stored in the memory;wherein the processor, in executing the instructions stored in the memory,receives from the image input circuitry an image definition data structure defining a two-dimensional (2D) image source including a plurality of glyphs, hereafter referred to as a 2D image source of glyph samples;the 2D image source of glyph samples having a vertical dimension size larger than a single line of glyphs;each glyph included in the 2D image source of glyph samples being an image instance of a respective one of a plurality of characters in a character set, referred to as a glyph sample character set;the set of character templates being trained representing respective ones of the plurality of characters in the glyph sample character set;receives from the input circuitry a transcription data structure associated with the 2D image source of glyph samples, hereafter referred to as a transcription, including an ordered arrangement of transcription label data items, hereafter referred to as transcription labels;andreceives from the input circuitry a two-dimensional image source model data structure, hereafter referred to as a 2D image source model, modeling as a grammar a spatial image structure of a set of 2D images;the 2D image source model including spatial positioning data indicating spatial positioning information about a plurality of glyphs occurring in a first image included in the set of 2D images;the 2D image source model indicating mapping data mapping a respective one of the glyphs occurring in the first image to a glyph label indicating a character in the glyph sample character set;the 2D image source of glyph samples being included in the set of 2D images modeled by the 2D image source model;wherein the processor, further in executing the instructions stored in the memory,determines a glyph sample pixel position of each of a plurality of glyph samples occurring in the 2D image source of glyph samples using the spatial positioning information included in the 2D image source model about the plurality of glyphs;produces a glyph label data item, referred to as a respectively paired glyph label, paired with each respective one of the glyph sample pixel positions;the respectively paired glyph label, indicating a respective one of the characters in the glyph sample character set;the processor producing the respectively paired glyph label using the mapping data indicated by the 2D image source model and using the ordered arrangement of transcription labels included in the transcription;andproduces the set of character templates using the 2D image source of glyph samples and using the glyph sample pixel positions and the respectively paired glyph labels;each character template being identified by a character label;each respectively paired glyph label identifying a glyph sample pixel position as a training data sample for a respective one of the character templates when the respectively paired glyph label matches the character label of the respective character template.