Claims (19)
1. Способ приведения в соответствие заполненной формы документа и ее шаблона при наличии искажений, включающий форму шаблона в электронном виде, описывающую пространственные соотношения и параметрические свойства объектов формы без искажений, форму изображения в электронном виде, полученную путем оптического ввода с бумажного носителя, указанную форму шаблона, содержащая по крайней мере информацию о пространственных характеристиках реперов, информацию о пространственно-параметрических характеристиках полей ввода данных, другую дополнительную информацию, указанную форму изображения в виде растрового изображения, содержащая по крайней мере изображение реперов, изображения полей ввода, изображения введенной в поля ввода информации, искажения, вносимые аппаратными средствами при переводе формы из электронного в бумажный вид или наоборот, отличающийся выполнением следующей последовательности действий: назначение формы изображения или формы шаблона в качестве изменяемой формы, которая будет подвергаться коррекции, с одновременным назначением другой формы как неизменяемой, которая не будет подвергаться коррекции, выделение на неизменяемой форме одной или более не перекрывающихся областей, расположенных в пределах проявления искажения, причем размер области выбирают более предполагаемых пределов проявления искажения, обозначение на изменяемой форме областей, соответствующих областям, выделенным на неизменяемой форме, подразделение всех объектов, которые могут присутствовать на форме, на несколько типов, отличающихся уровнем надежности идентификации на изображении, назначение изображению каждого объекта, присутствующему на форме изображения, уровня надежности идентификации в зависимости от его типа, для каждой выбранной области, а также для объектов каждого типа, начиная с самого высокого уровня надежности идентификации, последовательно снижая уровень до самого нижнего, выполнение следующих действий: установление соответствия между тождественными объектами формы изображения и формы шаблона, вычисление коэффициентов коррекции искажений пространственных параметров для каждого объекта выбранного уровня, (присутствующего) встречающегося на изменяемой форме, коррекция пространственных параметров объектов изменяемой формы с учетом вычисленных коэффициентов, затрагивающая только объекты выбранного уровня надежности идентификации и ниже, переход к дальнейшей обработке изображения формы.1. A method of matching the completed document form and its template in the presence of distortion, including the electronic form of the template describing the spatial relationships and parametric properties of the form objects without distortion, the electronic image form obtained by optical input from paper, the specified form template containing at least information on the spatial characteristics of the benchmarks, information on the spatial-parametric characteristics of the data entry fields, other additional additional information, the specified image form in the form of a raster image, containing at least an image of reference points, images of input fields, images entered into information input fields, distortions introduced by hardware when converting a form from electronic to paper or vice versa, characterized by the following sequence of actions : the designation of the image form or the form of the template as a variable form, which will be subject to correction, while the other form is assigned as variable, which will not be subject to correction, the selection on an unchanged form of one or more non-overlapping areas located within the manifestation of distortion, the size of the region choosing more than the expected limits of the manifestation of distortion, the designation on the variable form of the areas corresponding to the areas highlighted on the unchanged form, unit of all objects that may be present on the form into several types that differ in the level of reliability of identification in the image, the purpose of the image is of an object present on the image form, the level of identification reliability depending on its type, for each selected area, as well as for objects of each type, starting from the highest level of identification reliability, successively lowering the level to the lowest level, performing the following steps: establishing compliance between identical objects of the image form and the form of the template, the calculation of the distortion correction coefficients of spatial parameters for each object of the selected level, (present ) occurring on a variable form, the correction of the spatial parameters of objects of a variable form, taking into account the calculated coefficients, affecting only objects of a selected level of identification reliability and below, the transition to further processing of the image of the form.
2. Способ приведения в соответствие заполненной формы документа и ее шаблона при наличии искажений, включающий форму шаблона в электронном виде, описывающую пространственные соотношения и параметрические свойства объектов формы без искажений, форму изображения в электронном виде, полученную путем оптического ввода с бумажного носителя, указанную форму шаблона, содержащая по крайней мере информацию о пространственных характеристиках реперов, информацию о пространственно-параметрических характеристиках полей ввода данных, другую дополнительную информацию, указанную форму изображения в виде растрового изображения, содержащая по крайней мере изображение реперов, изображения полей ввода, изображения введенной в поля ввода информации, искажения, вносимые аппаратными средствами при переводе формы из электронного в бумажный вид или наоборот, отличающийся выполнением следующей последовательности операций: назначение формы изображения или формы шаблона в качестве изменяемой формы, которая будет подвергаться коррекции, с одновременным назначением другой формы как неизменяемой, которая не будет подвергаться коррекции, выделение на неизменяемой форме одной или более не перекрывающихся областей, расположенных в пределах проявления искажения, причем размер зоны выбирают более предполагаемых пределов проявления искажения, обозначение на изменяемой форме областей, соответствующих областям, выделенным на неизменяемой форме, подразделение всех объектов, которые могут присутствовать на форме, на несколько типов, отличающихся уровнем надежности идентификации на изображении, назначение изображению каждого объекта, присутствующему на форме изображения, уровня надежности идентификации в зависимости от его типа, последовательно для каждой выбранной области, а также для объектов каждого типа выполнение следующих действий: установление соответствия между тождественными объектами формы изображения и формы шаблона, вычисление частных коэффициентов коррекции искажений пространственных параметров для каждого объекта, встречающегося на изменяемой форме, вычисление единого обобщенного коэффициента коррекции искажений пространственных параметров для всех объектов изменяемой формы, исходя из частных коэффициентов коррекции, вычисляемых для отдельных объектов, с учетом их уровней надежности идентификации, коррекция пространственных параметров объектов изменяемой формы с учетом указанного единого обобщенного коэффициента, переход к дальнейшей обработке изображения формы.2. A method of matching the completed document form and its template in the presence of distortion, including the electronic form of the template describing the spatial relationships and parametric properties of the form objects without distortion, the electronic image form obtained by optical input from paper, the specified form template containing at least information on the spatial characteristics of the benchmarks, information on the spatial-parametric characteristics of the data entry fields, other additional additional information, the specified image form in the form of a raster image, containing at least an image of benchmarks, images of input fields, images entered into information input fields, distortions introduced by hardware when converting a form from electronic to paper or vice versa, characterized by the following sequence of operations : the designation of the image form or the form of the template as a variable form, which will be subject to correction, while the other form is assigned as variable, which will not be subject to correction, the allocation on an unchanged form of one or more non-overlapping areas located within the manifestation of distortion, moreover, the size of the zone is chosen more than the expected limits of the manifestation of distortion, the designation on the variable form of the areas corresponding to the areas highlighted on the unchanged form, division of all objects that may be present on the form, into several types that differ in the level of reliability of identification in the image, the purpose of each image about the object present on the image form, the level of identification reliability depending on its type, sequentially for each selected area, as well as for objects of each type, performing the following actions: establishing correspondence between identical objects of the image form and the template form, calculating partial spatial distortion correction coefficients parameters for each object encountered in a variable form, the calculation of a single generalized distortion correction coefficient of spatial pairs m for all objects of variable shape, based on the partial correction coefficients calculated for the individual objects, in accordance with their identification reliability levels of spatial correction parameters of objects of variable shape with the said single generalized ratio, the shift to the further processing of the form image.
3. Способ по п.1 или 2, отличающийся тем, что за изменяемую принимают форму шаблона, а за неизменяемую принимают форму изображения.3. The method according to claim 1 or 2, characterized in that for the variable take the form of a template, and for the immutable take the form of an image.
4. Способ по п.1 или 2, отличающийся тем, что за изменяемую принимают форму изображения, а за неизменяемую принимают форму шаблона.4. The method according to claim 1 or 2, characterized in that for the variable take the form of the image, and for the unchangeable take the form of a template.
5. Способ по п.1 или 2, отличающийся тем, что на каждом этапе вычисляют оценку качества сопоставления объектов.5. The method according to claim 1 or 2, characterized in that at each stage calculate the assessment of the quality of matching objects.
6. Способ по п.1 или 2, отличающийся тем, что дополнительно проводят оценку правильности ориентации изображения.6. The method according to claim 1 or 2, characterized in that it further assesses the correct orientation of the image.
7. Способ по п.6, отличающийся тем, что дополнительно при необходимости устанавливают правильную ориентацию изображения.7. The method according to claim 6, characterized in that in addition, if necessary, establish the correct orientation of the image.
8. Способ по п.1 или 2, отличающийся тем, что производится подтверждение соответствия формы изображения сравниваемой форме шаблона.8. The method according to claim 1 or 2, characterized in that it confirms the conformity of the image form with the compared form of the template.
9. Способ по п.8, отличающийся тем, что за один сеанс работы может проверяться на соответствие несколько шаблонов.9. The method according to claim 8, characterized in that for one session, several patterns can be checked for compliance.
10. Способ по п.1 или 2, отличающийся тем, что применяется для компенсации искажений по одной оси.10. The method according to claim 1 or 2, characterized in that it is used to compensate for distortion along one axis.
11. Способ по п.1 или 2, отличающийся тем, что применяется для компенсации искажений по двум осям.11. The method according to claim 1 or 2, characterized in that it is used to compensate for distortion along two axes.
12. Способ по п.1 или 2, отличающийся тем, что применяется для компенсации нелинейных искажений.12. The method according to claim 1 or 2, characterized in that it is used to compensate for non-linear distortions.
13. Способ по п.1 или 2, отличающийся тем, что применяется для компенсации линейных искажений.13. The method according to claim 1 or 2, characterized in that it is used to compensate for linear distortion.
14. Способ по п.1 или 2, отличающийся тем, что применяется для компенсации сдвига изображения.14. The method according to claim 1 or 2, characterized in that it is used to compensate for image shift.
15. Способ по п.1 или 2, отличающийся тем, что применяется для компенсации перекоса изображения.15. The method according to claim 1 or 2, characterized in that it is used to compensate for skew image.
16. Способ по п.1 или 2, отличающийся тем, что применяется для компенсации масштаба изображения.16. The method according to claim 1 or 2, characterized in that it is used to compensate for image scale.
17. Способ по п.1 или 2, отличающийся тем, что дальнейшая обработка включает в том числе распознавание символов в полях формы.17. The method according to claim 1 or 2, characterized in that the further processing includes recognition of characters in the fields of the form.
18. Способ по п.1 или 2, отличающийся тем, что применяется для компенсации углов наклона изображения.18. The method according to claim 1 or 2, characterized in that it is used to compensate for the angle of the image.
19. Способ по п.18, отличающийся тем, что малые углы наклона изображения корректируют как сдвиг.19. The method according to p. 18, characterized in that the small angles of the image are adjusted as a shift.