KR20230154600A - Method and device for generating training data of model for table recognition - Google Patents

Method and device for generating training data of model for table recognition Download PDF

Info

Publication number
KR20230154600A
KR20230154600A KR1020220054223A KR20220054223A KR20230154600A KR 20230154600 A KR20230154600 A KR 20230154600A KR 1020220054223 A KR1020220054223 A KR 1020220054223A KR 20220054223 A KR20220054223 A KR 20220054223A KR 20230154600 A KR20230154600 A KR 20230154600A
Authority
KR
South Korea
Prior art keywords
header
area
content
generating
zone
Prior art date
Application number
KR1020220054223A
Other languages
Korean (ko)
Inventor
최윤호
임창남
Original Assignee
주식회사 티맥스에이아이
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 티맥스에이아이 filed Critical 주식회사 티맥스에이아이
Priority to KR1020220054223A priority Critical patent/KR20230154600A/en
Publication of KR20230154600A publication Critical patent/KR20230154600A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/19Recognition using electronic means
    • G06V30/191Design or setup of recognition systems or techniques; Extraction of features in feature space; Clustering techniques; Blind source separation
    • G06V30/19147Obtaining sets of training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/412Layout analysis of documents structured with printed lines or input boxes, e.g. business forms or tables

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Image Analysis (AREA)

Abstract

컴퓨팅 장치에 의해 수행되는 표 인식을 위한 모델의 학습 데이터를 생성하는 방법이 개시된다. 상기 방법은: 복수의 구역을 포함하는 표를 생성하는 단계; 상기 복수의 구역 상에 제 1 헤더 구역 및 제 1 컨텐츠 구역을 설정하는 단계; 상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계; 상기 제 1 컨텐츠 구역 상에 셀들을 병합 또는 분할하거나, 또는 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하는 단계; 및 적어도 상기 제 1 헤더 구역 및 상기 제 1 컨텐츠 구역에 기초하여 표 구조를 결정하는 단계; 를 포함할 수 있다.A method for generating training data for a model for table recognition performed by a computing device is disclosed. The method includes: generating a table containing a plurality of zones; establishing a first header zone and a first content zone on the plurality of zones; generating at least one of a horizontal header, a vertical header, and a merge header in the first header area; merging or splitting cells on the first content area, or establishing a second header area and a second content area; and determining a table structure based at least on the first header section and the first content section; may include.

Description

표 인식을 위한 모델의 학습 데이터를 생성하는 방법 및 장치{METHOD AND DEVICE FOR GENERATING TRAINING DATA OF MODEL FOR TABLE RECOGNITION}Method and device for generating training data of a model for table recognition {METHOD AND DEVICE FOR GENERATING TRAINING DATA OF MODEL FOR TABLE RECOGNITION}

본 발명은 컴퓨터 기술에 관한 것으로, 보다 구체적으로 표 인식을 위한 모델의 학습 데이터를 생성하는 방법 및 장치에 관한 것이다.The present invention relates to computer technology, and more specifically to a method and device for generating training data for a model for table recognition.

표 구조 인식(Table Structure Recognition, TSR)은 jpg, png 등과 같은 이미지 파일에 나타나는 표의 구조를 인식함으로써 기계 판독 가능한 형식(html, 스프레드 시트 등)으로 표의 구조에 관한 데이터를 생성하는 기술이다. 일반적으로 사용되는 표들의 경우, 셀의 실제 크기를 식별할 필요가 있다. 예를 들어, 관공서에서 작성되는 서류 및 각종 계약서 등 사용자가 직접 글씨를 쓰거나 입력해야 하는 표들은 디지털 데이터로 변환하기 위해서 셀들의 실제 크기가 식별되어야 한다. 특히, 이미지 상에 나타난 표의 구조를 정확하게 인식하기 위해서, 각 셀의 정확한 크기가 식별되어야 한다. Table Structure Recognition (TSR) is a technology that generates data about the table structure in a machine-readable format (html, spreadsheet, etc.) by recognizing the table structure that appears in image files such as jpg, png, etc. For commonly used tables, it is necessary to identify the actual size of the cell. For example, the actual size of the cells must be identified in order to convert tables that require the user to write or enter, such as documents and various contracts prepared in government offices, into digital data. In particular, in order to accurately recognize the table structure shown in the image, the exact size of each cell must be identified.

표 인식을 위해 머신러닝 모델을 사용하기 위해서, 다양한 형태의 표에 관한 데이터가 확보되어야 한다. 표의 형태는 여러 셀들이 병합되거나, 많은 빈 셀들이 존재하는 등 복잡한 구조를 가질 수 있다. 또한 기존에 수집할 수 있는 표 데이터는 대부분 개인정보를 담고 있는 등 활용하기 어려운 문제점을 가진다. In order to use a machine learning model for table recognition, data about various types of tables must be secured. The table may have a complex structure, such as multiple cells being merged or many empty cells. In addition, most of the table data that can be collected existing has problems that make it difficult to utilize, such as containing personal information.

따라서, 표 인식을 위한 모델을 학습시키기 위해 다양한 형태의 표 데이터를 합성하는 기술에 대한 수요가 존재한다. Therefore, there is a demand for technology that synthesizes various types of table data to learn a model for table recognition.

본 개시는 전술한 배경기술에 대응하여 안출 된 것으로, 표 인식을 위한 모델의 학습 데이터를 생성하는 방법 및 장치에 관한 것이다.This disclosure was made in response to the above-described background technology and relates to a method and device for generating training data for a model for table recognition.

전술한 바와 같은 과제를 실현하기 위한 컴퓨팅 장치에 의해 수행되는 표 인식을 위한 모델의 학습 데이터를 생성하는 방법이 개시된다. 상기 방법은: 복수의 구역을 포함하는 표를 생성하는 단계; 상기 복수의 구역 상에 제 1 헤더 구역 및 제 1 컨텐츠 구역을 설정하는 단계; 상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계; 상기 제 1 컨텐츠 구역 상에 셀들을 병합 또는 분할하거나, 또는 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하는 단계; 및 적어도 상기 제 1 헤더 구역 및 상기 제 1 컨텐츠 구역에 기초하여 표 구조를 결정하는 단계; 를 포함할 수 있다.A method of generating training data for a model for table recognition performed by a computing device for realizing the above-described tasks is disclosed. The method includes: generating a table containing a plurality of zones; establishing a first header zone and a first content zone on the plurality of zones; generating at least one of a horizontal header, a vertical header, and a merge header in the first header area; merging or splitting cells on the first content area, or establishing a second header area and a second content area; and determining a table structure based at least on the first header section and the first content section; may include.

대안적으로, 상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계는: 상기 제 1 헤더 구역 중에서 가로형 헤더를 생성할 R개의 행 중 첫번째 행 상에, 적어도 하나의 구역을 포함하는 제 1 행 헤더를 생성하는 단계; 및 상기 R개의 행 중 n번째 행 상에, 선행하는 n-1 번째 행의 제 n-1 행 헤더에 포함된 적어도 하나의 구역에 대응하는 구역 각각을 하나 이상의 구역으로 분할함으로써 제 n 행 헤더를 생성하는 단계; 를 포함할 수 있다.Alternatively, generating at least one of a horizontal header, a vertical header, and a merge header on the first header section includes: on the first row of the R rows for generating a horizontal header among the first header section, generating a first row header including at least one section; And on the nth row among the R rows, each zone corresponding to at least one zone included in the n-1th row header of the preceding n-1th row is divided into one or more zones to create an nth row header. generating step; may include.

대안적으로, 상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계는: 상기 C개의 열 중 연속하는 적어도 2 개의 열 상에서 동일한 열 너비의 인접한 구역 중에서 적어도 일부를 병합하는 단계; 를 더 포함할 수 있다.Alternatively, generating at least one of a horizontal header, a vertical header, and a merge header on the first header section may include: generating at least one of adjacent sections of the same column width on at least two consecutive columns of the C columns; merging parts; may further include.

대안적으로, 상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계는: 상기 제 1 헤더 구역 중에서 세로형 헤더를 생성할 C개의 열 중 첫번째 열 상에, 적어도 하나의 행 구역을 포함하는 제 1 열 헤더를 생성하는 단계; 및 상기 C개의 열 중 m번째 열 상에, 선행하는 m-1 번째 열의 제 m-1 열 헤더에 포함된 적어도 하나의 구역에 대응하는 구역 각각을 하나 이상의 구역으로 분할함으로써 제 m 행 헤더를 생성하는 단계;를 포함할 수 있다.Alternatively, the step of generating at least one of a horizontal header, a vertical header, and a merge header on the first header section: on a first column of C columns for which a vertical header is to be created among the first header section; , generating a first column header including at least one row section; And on the m-th column of the C columns, generate the m-th row header by dividing each zone corresponding to at least one zone included in the m-1-th column header of the preceding m-1-th column into one or more zones. It may include;

대안적으로, 상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계는: 상기 C개의 열 중 연속하는 적어도 2 개의 열 상에서 동일한 열 너비의 인접한 구역 중에서 적어도 일부를 병합하는 단계; 를 더 포함할 수 있다.Alternatively, generating at least one of a horizontal header, a vertical header, and a merge header on the first header section may include: generating at least one of adjacent sections of the same column width on at least two consecutive columns of the C columns; merging parts; may further include.

대안적으로, 상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계는: 상기 제 1 헤더 구역 중 1 내지 R행 및 1 내지 C열의 중첩된 구역을 병합함으로써 병합형 헤더 구역을 생성하는 단계;를 포함할 수 있다.Alternatively, generating at least one of a horizontal header, a vertical header, and a merged header on the first header section includes: merging overlapping sections of rows 1 to R and columns 1 to C of the first header section. It may include creating a merge-type header section by doing so.

대안적으로, 상기 제 1 컨텐츠 구역 상에 셀들을 병합 또는 분할하거나, 또는 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하는 단계는: 상기 생성된 가로형 헤더, 세로형 헤더, 또는 병합형 헤더에 대응하도록 상기 제 1 컨텐츠 구역을 분할하는 단계; 를 포함할 수 있다.Alternatively, merging or splitting cells on the first content area, or establishing a second header area and a second content area: corresponding to the generated horizontal header, vertical header, or merged header dividing the first content area so as to; may include.

대안적으로, 상기 제 1 컨텐츠 구역 상에 셀들을 병합 또는 분할하거나, 또는 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하는 단계는: 상기 분할된 제 1 컨텐츠 구역 중 적어도 일부를 병합하는 단계; 상기 분할된 제 1 컨텐츠 구역 중 적어도 일부를 적어도 하나의 구역으로 분할하는 단계; 또는 상기 분할된 제 1 컨텐츠 구역 중 적어도 일부에 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하는 단계; 를 더 포함할 수 있다.Alternatively, merging or splitting cells on the first content area, or establishing a second header area and a second content area, may include: merging at least a portion of the divided first content area; dividing at least a portion of the divided first content zones into at least one zone; or setting a second header area and a second content area in at least some of the divided first content areas; may further include.

대안적으로, 상기 방법은: 상기 결정된 표 구조의 행과 열의 픽셀값을 설정하는 단계; 를 더 포함할 수 있다.Alternatively, the method may include: setting pixel values of rows and columns of the determined table structure; It may further include.

대안적으로, 상기 방법은: 상기 결정된 표 구조에 포함되는 셀 중 적어도 일부 상에 텍스트를 설정하는 단계; 를 더 포함할 수 있다.Alternatively, the method may include: setting text on at least some of the cells included in the determined table structure; may further include.

대안적으로, 상기 방법은: 상기 결정된 표 구조에 포함되는 셀 중 적어도 일부 상에 스타일을 설정하는 단계; 를 더 포함할 수 있다.Alternatively, the method may include: setting a style on at least some of the cells included in the determined table structure; may further include.

대안적으로, 상기 스타일은 경계선 스타일, 텍스트 글꼴, 또는 배경색 중 적어도 하나를 포함할 수 있다.Alternatively, the style may include at least one of a border style, text font, or background color.

전술한 바와 같은 과제를 실현하기 위한 컴퓨터 판독가능 매체에 저장된 컴퓨터 프로그램이 개시된다. 상기 컴퓨터 프로그램은 하나 이상의 프로세서로 하여금 표 인식 모델의 학습 데이터를 생성하는 방법을 수행하게 하기 위한 명령들을 포함하며, 상기 방법은: 복수의 구역을 포함하는 표를 생성하는 단계; 상기 복수의 구역 상에 제 1 헤더 구역 및 제 1 컨텐츠 구역을 설정하는 단계; 상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계; 상기 제 1 컨텐츠 구역 상에 셀들을 병합 또는 분할하거나, 또는 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하는 단계; 및 적어도 상기 제 1 헤더 구역 및 상기 제 1 컨텐츠 구역에 기초하여 표 구조를 결정하는 단계;를 포함할 수 있다.A computer program stored in a computer-readable medium for realizing the above-described object is disclosed. The computer program includes instructions for causing one or more processors to perform a method of generating training data for a table recognition model, the method comprising: generating a table including a plurality of regions; establishing a first header zone and a first content zone on the plurality of zones; generating at least one of a horizontal header, a vertical header, and a merge header in the first header area; merging or splitting cells on the first content area, or establishing a second header area and a second content area; and determining a table structure based on at least the first header section and the first content section.

전술한 바와 같은 과제를 실현하기 위한 표 인식 모델의 학습 데이터를 생성하는 방법을 수행하는 컴퓨팅 장치가 개시된다. 상기 컴퓨팅 장치는: 컴퓨터 실행가능한 컴포넌트들을 포함하는 메모리; 메모리에 저장된 이하의 컴퓨터 실행가능한 컴포넌트들을 실행하는 프로세서; 를 포함하고, 상기 프로세서는, 복수의 구역을 포함하는 표를 생성하고, 상기 복수의 구역 상에 제 1 헤더 구역 및 제 1 컨텐츠 구역을 설정하고, 상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하고, 상기 제 1 컨텐츠 구역 상에 셀들을 병합 또는 분할하거나, 또는 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하고, 그리고 적어도 상기 제 1 헤더 구역 및 상기 제 1 컨텐츠 구역에 기초하여 표 구조를 결정할 수 있다.A computing device that performs a method of generating training data for a table recognition model for realizing the above-described tasks is disclosed. The computing device includes: memory including computer-executable components; a processor executing the following computer-executable components stored in memory; wherein the processor generates a table including a plurality of zones, sets a first header zone and a first content zone on the plurality of zones, and sets a horizontal header and a vertical header on the first header zone. Create at least one of a header, a merged header, merge or split cells on the first content area, or set a second header area and a second content area, and at least the first header area and the second content area. 1 The table structure can be determined based on the content area.

본 개시는 표 인식을 위한 모델의 학습 데이터를 생성하는 방법 및 장치를 제공할 수 있다. The present disclosure can provide a method and device for generating training data for a model for table recognition.

도 1은 본 개시의 몇몇 실시예에 따라 표 인식을 위한 학습 데이터를 생성하는 방법을 제공하기 위한 동작을 수행하는 컴퓨팅 장치의 블록 구성도를 도시한 도면이다.
도 2는 본 개시의 몇몇 실시예에 따른 네트워크 함수를 나타낸 개략도이다.
도 3은 본 개시의 몇몇 실시예에 따른 표 인식을 위한 모델의 학습 데이터를 생성하는 방법의 순서도이다.
도 4는 본 개시의 몇몇 실시예에 따른 표 인식을 위한 모델의 학습 데이터를 생성하는 방법에 의해 생성된 예시적인 표 구조이다.
도 5는 본 개시의 몇몇 실시예에 따른 가로형 헤더를 생성하는 동작을 설명하기 위한 도면이다.
도 6은 본 개시의 몇몇 실시예에 따른 병합형 헤더를 생성하는 동작을 설명하기 위한 도면이다.
도 7은 본 개시의 몇몇 실시예에 따른 컴퓨팅 장치의 블록 구성도이다.
FIG. 1 is a block diagram of a computing device that performs an operation to provide a method of generating training data for table recognition according to some embodiments of the present disclosure.
Figure 2 is a schematic diagram showing network functions according to some embodiments of the present disclosure.
Figure 3 is a flowchart of a method for generating training data for a model for table recognition according to some embodiments of the present disclosure.
4 is an example table structure generated by a method for generating training data for a model for table recognition according to some embodiments of the present disclosure.
Figure 5 is a diagram for explaining an operation of creating a horizontal header according to some embodiments of the present disclosure.
FIG. 6 is a diagram for explaining an operation of generating a merged header according to some embodiments of the present disclosure.
7 is a block diagram of a computing device according to some embodiments of the present disclosure.

다양한 실시예들이 이제 도면을 참조하여 설명된다. 본 명세서에서, 다양한 설명들이 본 개시의 이해를 제공하기 위해서 제시된다. 그러나, 이러한 실시예들은 이러한 구체적인 설명 없이도 실행될 수 있음이 명백하다.Various embodiments are now described with reference to the drawings. In this specification, various descriptions are presented to provide an understanding of the disclosure. However, it is clear that these embodiments may be practiced without these specific descriptions.

본 명세서에서 사용되는 용어 "컴포넌트", "모듈", "시스템" 등은 컴퓨터-관련 엔티티, 하드웨어, 펌웨어, 소프트웨어, 소프트웨어 및 하드웨어의 조합, 또는 소프트웨어의 실행을 지칭한다. 예를 들어, 컴포넌트는 프로세서상에서 실행되는 처리과정(procedure), 프로세서, 객체, 실행 스레드, 프로그램, 및/또는 컴퓨터일 수 있지만, 이들로 제한되는 것은 아니다. 예를 들어, 컴퓨팅 장치에서 실행되는 애플리케이션 및 컴퓨팅 장치 모두 컴포넌트일 수 있다. 하나 이상의 컴포넌트는 프로세서 및/또는 실행 스레드 내에 상주할 수 있다. 일 컴포넌트는 하나의 컴퓨터 내에 로컬화 될 수 있다. 일 컴포넌트는 2개 이상의 컴퓨터들 사이에 분배될 수 있다. 또한, 이러한 컴포넌트들은 그 내부에 저장된 다양한 데이터 구조들을 갖는 다양한 컴퓨터 판독가능한 매체로부터 실행할 수 있다. 컴포넌트들은 예를 들어 하나 이상의 데이터 패킷들을 갖는 신호(예를 들면, 로컬 시스템, 분산 시스템에서 다른 컴포넌트와 상호작용하는 하나의 컴포넌트로부터의 데이터 및/또는 신호를 통해 다른 시스템과 인터넷과 같은 네트워크를 통해 전송되는 데이터)에 따라 로컬 및/또는 원격 처리들을 통해 통신할 수 있다.As used herein, the terms “component,” “module,” “system,” and the like refer to a computer-related entity, hardware, firmware, software, a combination of software and hardware, or an implementation of software. For example, a component may be, but is not limited to, a process running on a processor, a processor, an object, a thread of execution, a program, and/or a computer. For example, both an application running on a computing device and the computing device can be a component. One or more components may reside within a processor and/or thread of execution. A component may be localized within one computer. A component may be distributed between two or more computers. Additionally, these components can execute from various computer-readable media having various data structures stored thereon. Components can transmit signals, for example, with one or more data packets (e.g., data and/or signals from one component interacting with other components in a local system, a distributed system, to other systems and over a network such as the Internet). Depending on the data being transmitted, they may communicate through local and/or remote processes.

더불어, 용어 "또는"은 배타적 "또는"이 아니라 내포적 "또는"을 의미하는 것으로 의도된다. 즉, 달리 특정되지 않거나 문맥상 명확하지 않은 경우에, "X는 A 또는 B를 이용한다"는 자연적인 내포적 치환 중 하나를 의미하는 것으로 의도된다. 즉, X가 A를 이용하거나; X가 B를 이용하거나; 또는 X가 A 및 B 모두를 이용하는 경우, "X는 A 또는 B를 이용한다"가 이들 경우들 어느 것으로도 적용될 수 있다. 또한, 본 명세서에 사용된 "및/또는"이라는 용어는 열거된 관련 아이템들 중 하나 이상의 아이템의 가능한 모든 조합을 지칭하고 포함하는 것으로 이해되어야 한다.Additionally, the term “or” is intended to mean an inclusive “or” and not an exclusive “or.” That is, unless otherwise specified or clear from context, “X utilizes A or B” is intended to mean one of the natural implicit substitutions. That is, either X uses A; X uses B; Or, if X uses both A and B, “X uses A or B” can apply to either of these cases. Additionally, the term “and/or” as used herein should be understood to refer to and include all possible combinations of one or more of the related listed items.

또한, "포함한다" 및/또는 "포함하는"이라는 용어는, 해당 특징 및/또는 구성요소가 존재함을 의미하는 것으로 이해되어야 한다. 다만, "포함한다" 및/또는 "포함하는"이라는 용어는, 하나 이상의 다른 특징, 구성요소 및/또는 이들의 그룹의 존재 또는 추가를 배제하지 않는 것으로 이해되어야 한다. 또한, 달리 특정되지 않거나 단수 형태를 지시하는 것으로 문맥상 명확하지 않은 경우에, 본 명세서와 청구범위에서 단수는 일반적으로 "하나 또는 그 이상"을 의미하는 것으로 해석되어야 한다.Additionally, the terms “comprise” and/or “comprising” should be understood to mean that the corresponding feature and/or element is present. However, the terms “comprise” and/or “comprising” should be understood as not excluding the presence or addition of one or more other features, elements and/or groups thereof. Additionally, unless otherwise specified or the context is clear to indicate a singular form, the singular terms herein and in the claims should generally be construed to mean “one or more.”

그리고, "A 또는 B 중 적어도 하나"이라는 용어는, "A만을 포함하는 경우", "B 만을 포함하는 경우", "A와 B의 구성으로 조합된 경우"를 의미하는 것으로 해석되어야 한다. And, the term “at least one of A or B” should be interpreted to mean “a case containing only A,” “a case containing only B,” and “a case of combining A and B.”

당업자들은 추가적으로 여기서 개시된 실시예들과 관련되어 설명된 다양한 예시적 논리적 블록들, 구성들, 모듈들, 회로들, 수단들, 로직들, 및 알고리즘 단계들이 전자 하드웨어, 컴퓨터 소프트웨어, 또는 양쪽 모두의 조합들로 구현될 수 있음을 인식해야 한다. 하드웨어 및 소프트웨어의 상호교환성을 명백하게 예시하기 위해, 다양한 예시적 컴포넌트들, 블록들, 구성들, 수단들, 로직들, 모듈들, 회로들, 및 단계들은 그들의 기능성 측면에서 일반적으로 위에서 설명되었다. 그러한 기능성이 하드웨어로 또는 소프트웨어로서 구현되는지 여부는 전반적인 시스템에 부과된 특정 어플리케이션(application) 및 설계 제한들에 달려 있다. 숙련된 기술자들은 각각의 특정 어플리케이션들을 위해 다양한 방법들로 설명된 기능성을 구현할 수 있다. 다만, 그러한 구현의 결정들이 본 개시내용의 영역을 벗어나게 하는 것으로 해석되어서는 안 된다.Those skilled in the art will additionally recognize that the various illustrative logical blocks, components, modules, circuits, means, logic, and algorithm steps described in connection with the embodiments disclosed herein may be implemented using electronic hardware, computer software, or a combination of both. It must be recognized that it can be implemented with To clearly illustrate the interchangeability of hardware and software, various illustrative components, blocks, configurations, means, logics, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented in hardware or software will depend on the specific application and design constraints imposed on the overall system. A skilled technician can implement the described functionality in a variety of ways for each specific application. However, such implementation decisions should not be construed as causing a departure from the scope of the present disclosure.

제시된 실시예들에 대한 설명은 본 개시의 기술 분야에서 통상의 지식을 가진 자가 본 발명을 이용하거나 또는 실시할 수 있도록 제공된다. 이러한 실시예들에 대한 다양한 변형들은 본 개시의 기술 분야에서 통상의 지식을 가진 자에게 명백할 것이다. 여기에 정의된 일반적인 원리들은 본 개시의 범위를 벗어남이 없이 다른 실시예들에 적용될 수 있다. 그리하여, 본 발명은 여기에 제시된 실시예 들로 한정되는 것이 아니다. 본 발명은 여기에 제시된 원리들 및 신규한 특징들과 일관되는 최광의의 범위에서 해석되어야 할 것이다. The description of the presented embodiments is provided to enable anyone skilled in the art to use or practice the present invention. Various modifications to these embodiments will be apparent to those skilled in the art. The general principles defined herein may be applied to other embodiments without departing from the scope of the disclosure. Therefore, the present invention is not limited to the embodiments presented herein. The present invention is to be interpreted in the broadest scope consistent with the principles and novel features presented herein.

도 1은 본 개시의 몇몇 실시예에 따른 표 인식을 위한 학습 데이터를 생성하는 방법을 수행하기 위한 컴퓨팅 장치의 블록 구성도이다.1 is a block diagram of a computing device for performing a method of generating training data for table recognition according to some embodiments of the present disclosure.

도 1에서 도시되는 바와 같이, 컴퓨팅 장치(100)는 프로세서(110), 메모리(130), 네트워크부(150)를 포함할 수 있다. 도 1에 도시된 컴퓨팅 장치(100)의 구성은 간략화 하여 나타낸 예시일 뿐이다. 본 개시의 몇몇 실시예에서 컴퓨팅 장치(100)는 컴퓨팅 장치(100)의 컴퓨팅 환경을 수행하기 위한 다른 구성들을 포함할 수 있고, 개시된 구성들 중 일부만이 컴퓨팅 장치(100)를 구성할 수도 있다. As shown in FIG. 1, the computing device 100 may include a processor 110, a memory 130, and a network unit 150. The configuration of the computing device 100 shown in FIG. 1 is only a simplified example. In some embodiments of the present disclosure, computing device 100 may include different components for performing the computing environment of computing device 100, and only some of the disclosed components may configure computing device 100.

프로세서(110)는 하나 이상의 코어로 구성될 수 있으며, 컴퓨팅 장치의 중앙 처리 장치(CPU: central processing unit), 범용 그래픽 처리 장치 (GPGPU: general purpose graphics processing unit), 텐서 처리 장치(TPU: tensor processing unit) 등의 데이터 분석 및 처리, 딥러닝을 위한 프로세서를 포함할 수 있다. 프로세서(110)는 메모리(130)에 저장된 컴퓨터 프로그램을 판독하여 본 개시의 몇몇 실시예에 따른 표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 위한 데이터 변환, 연산, 생성 등을 수행할 수 있다. 예를 들어, 프로세서(110)는 이하에서 설명되는 표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 수행하기 위한 단계들을 수행할 수 있다. 또한, 본 개시의 몇몇 실시예에 따라 프로세서(110)는 표 인식을 위한 학습 데이터를 생성하는 방법에 의해 생성된 학습 데이터를 이용하여 신경망의 학습을 위한 연산을 수행할 수 있다. 프로세서(110)는 딥러닝(DL: deep learning)에서 학습을 위한 입력 데이터의 처리, 입력 데이터에서의 피처 추출, 오차 계산, 역전파(backpropagation)를 이용한 신경망의 가중치 업데이트 등의 신경망의 학습을 위한 계산을 수행할 수 있다. 프로세서(110)의 CPU, GPGPU, 및 TPU 중 적어도 하나가 표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 위한 연산을 처리할 수 있다. 예를 들어, CPU 와 GPGPU가 함께 표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 위한 연산을 처리할 수 있다. 또한, 본 개시의 몇몇 실시예에서 복수의 컴퓨팅 장치의 프로세서를 함께 사용하여 표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 위한 데이터 변환, 연산, 생성, 네트워크 함수의 학습, 네트워크 함수를 이용한 데이터 분류를 처리할 수 있다. 또한, 본 개시의 몇몇 실시예에 따른 컴퓨팅 장치에서 수행되는 컴퓨터 프로그램은 CPU, GPGPU 또는 TPU 실행가능 프로그램일 수 있다.The processor 110 may be composed of one or more cores, and may include a central processing unit (CPU), a general purpose graphics processing unit (GPGPU), and a tensor processing unit (TPU) of a computing device. unit) may include a processor for data analysis and processing, and deep learning. The processor 110 may read the computer program stored in the memory 130 and perform data conversion, calculation, generation, etc. for a method of generating training data for a model for table recognition according to some embodiments of the present disclosure. . For example, the processor 110 may perform steps to perform a method of generating training data for a model for table recognition, which will be described below. Additionally, according to some embodiments of the present disclosure, the processor 110 may perform an operation for learning a neural network using training data generated by a method of generating training data for table recognition. The processor 110 is used for learning neural networks, such as processing input data for learning in deep learning (DL), extracting features from input data, calculating errors, and updating the weights of the neural network using backpropagation. Calculations can be performed. At least one of the CPU, GPGPU, and TPU of the processor 110 may process operations for generating training data for a model for table recognition. For example, the CPU and GPGPU can jointly process calculations for generating training data for a model for table recognition. In addition, in some embodiments of the present disclosure, data conversion, operation, generation, learning of network functions, and data using network functions for a method of generating training data for a model for table recognition by using processors of a plurality of computing devices together Classification can be handled. Additionally, a computer program executed on a computing device according to some embodiments of the present disclosure may be a CPU, GPGPU, or TPU executable program.

본 개시의 몇몇 실시예에 따르면, 메모리(130)는 프로세서(110)가 생성하거나 결정한 임의의 형태의 정보 및 네트워크부(150)가 수신한 임의의 형태의 정보를 저장할 수 있다. 예를 들어, 메모리(130)는 프로세서(110)에 의해 표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 수행하는 과정에서 생성되는 데이터(예를 들어, 표 구조 데이터)들을 저장할 수 있다. 또한 메모리(130)는 프로세서(110)에 의해 표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 수행하는 과정에서 외부에서 수신되는 데이터들을 저장할 수 있다. 다만, 이에 한정되지 않고, 메모리(130)는 본 개시의 몇몇 실시예에 따른 표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 수행하기 위한 다양한 정보를 저장할 수 있다.According to some embodiments of the present disclosure, the memory 130 may store any type of information generated or determined by the processor 110 and any type of information received by the network unit 150. For example, the memory 130 may store data (eg, table structure data) generated in the process of performing a method of generating training data for a model for table recognition by the processor 110. Additionally, the memory 130 may store data received externally during the process of performing a method of generating training data for a model for table recognition by the processor 110. However, the present disclosure is not limited to this, and the memory 130 may store various information for performing a method of generating training data for a model for table recognition according to some embodiments of the present disclosure.

본 개시의 몇몇 실시예에 따르면, 메모리(130)는 플래시 메모리 타입(flash memory type), 하드디스크 타입(hard disk type), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 램(Random Access Memory, RAM), SRAM(Static Random Access Memory), 롬(Read-Only Memory, ROM), EEPROM(Electrically Erasable Programmable Read-Only Memory), PROM(Programmable Read-Only Memory), 자기 메모리, 자기 디스크, 광디스크 중 적어도 하나의 타입의 저장매체를 포함할 수 있다. 컴퓨팅 장치(100)는 인터넷(internet) 상에서 상기 메모리(130)의 저장 기능을 수행하는 웹 스토리지(web storage)와 관련되어 동작할 수도 있다. 전술한 메모리에 대한 기재는 예시일 뿐, 본 개시는 이에 제한되지 않는다.According to some embodiments of the present disclosure, the memory 130 may be a flash memory type, hard disk type, multimedia card micro type, or card type memory (e.g. (e.g. SD or -Only Memory), and may include at least one type of storage medium among magnetic memory, magnetic disk, and optical disk. The computing device 100 may operate in connection with web storage that performs a storage function of the memory 130 on the Internet. The description of the memory described above is merely an example, and the present disclosure is not limited thereto.

본 개시의 몇몇 실시예에 따른 네트워크부(150)는 임의의 형태의 공지된 유무선 통신 시스템을 사용할 수 있다. The network unit 150 according to some embodiments of the present disclosure may use any type of known wired or wireless communication system.

네트워크부(150)는 프로세서(110)에 의해 처리된 정보, 사용자 인터페이스 등을 타 단말과의 통신을 통해 송수신할 수 있다. 예를 들어, 네트워크부(150)는 프로세서(110)에 의해 생성된 사용자 인터페이스를 클라이언트(e.g. 사용자 단말)로 제공할 수 있다. 또한, 네트워크부(150)는 클라이언트로 인가된 사용자의 외부 입력을 수신하여 프로세서(110)로 전달할 수 있다. 이때, 프로세서(110)는 네트워크부(150)로부터 전달받은 사용자의 외부 입력을 기초로 사용자 인터페이스를 통해 제공되는 정보의 출력, 수정, 변경, 추가 등의 동작을 처리할 수 있다.The network unit 150 can transmit and receive information processed by the processor 110, a user interface, etc. through communication with other terminals. For example, the network unit 150 may provide a user interface generated by the processor 110 to a client (e.g. user terminal). Additionally, the network unit 150 may receive external input from a user authorized as a client and transmit it to the processor 110. At this time, the processor 110 may process operations such as output, modification, change, and addition of information provided through the user interface based on the user's external input received from the network unit 150.

구체적으로 예를 들면, 네트워크부(150)는 본 개시의 몇몇 실시예에 따른 표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 수행하기 위한 다양한 정보를 송수신할 수 있다. 예를 들어, 네트워크부(150)는 학습 데이터를 생성하는데 사용되는 표 이미지를 데이터베이스로부터 수신할 수 있다. 또한, 네트워크부(150)는 이하에서 설명되는 표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 수행하는 과정에서 생성되는 몇몇의 데이터를 데이터베이스 상에 저장하기 위해 외부로 전송할 수 있다.For example, the network unit 150 may transmit and receive various information to perform a method of generating training data for a model for table recognition according to some embodiments of the present disclosure. For example, the network unit 150 may receive a table image used to generate training data from a database. Additionally, the network unit 150 may externally transmit some data generated in the process of performing the method of generating learning data for a model for table recognition described below to be stored in a database.

한편, 본 개시의 몇몇 실시예에 따른 컴퓨팅 장치(100)는 클라이언트와 통신을 통해 정보를 송수신하는 컴퓨팅 시스템으로서 서버를 포함할 수 있다. 이때, 클라이언트는 서버에 액세스할 수 있는 임의의 형태의 단말일 수 있다. 예를 들어, 서버인 컴퓨팅 장치(100)는 사용자 단말로부터 쿼리를 수신하여 쿼리에 대응하는 단일 정보 처리 결과를 생성할 수 있다. 이 경우에, 서버인 컴퓨팅 장치(100)는 처리 결과를 포함하는 사용자 인터페이스를 사용자 단말로 제공할 수 있다. 이때, 사용자 단말은 서버인 컴퓨팅 장치(100)로부터 수신한 사용자 인터페이스를 출력하고, 사용자와의 상호 작용을 통해 정보를 입력받거나 처리할 수 있다. Meanwhile, the computing device 100 according to some embodiments of the present disclosure is a computing system that transmits and receives information through communication with a client and may include a server. At this time, the client may be any type of terminal that can access the server. For example, the computing device 100, which is a server, may receive a query from a user terminal and generate a single information processing result corresponding to the query. In this case, the computing device 100, which is a server, may provide a user interface including processing results to the user terminal. At this time, the user terminal can output the user interface received from the computing device 100, which is a server, and receive or process information through interaction with the user.

추가적인 실시예에서, 컴퓨팅 장치(100)는 임의의 서버에서 생성된 데이터 리소스를 전달받아 추가적인 정보 처리를 수행하는 임의의 형태의 단말을 포함할 수도 있다.In an additional embodiment, the computing device 100 may include any type of terminal that receives data resources generated by an arbitrary server and performs additional information processing.

도 2는 본 개시의 몇몇 실시예에 따라 네트워크 함수를 나타낸 개략도이다.2 is a schematic diagram showing a network function according to some embodiments of the present disclosure.

본 명세서에 걸쳐, 연산 모델, 신경망, 네트워크 함수, 뉴럴 네트워크(neural network)는 상호 교환 가능한 의미로 사용될 수 있다. 신경망은 일반적으로 노드라 지칭될 수 있는 상호 연결된 계산 단위들의 집합으로 구성될 수 있다. 이러한 노드들은 뉴런(neuron)들로 지칭될 수도 있다. 신경망은 적어도 하나 이상의 노드들을 포함하여 구성된다. 신경망들을 구성하는 노드(또는 뉴런)들은 하나 이상의 링크에 의해 상호 연결될 수 있다.Throughout this specification, computational model, neural network, network function, and neural network may be used interchangeably. A neural network can generally consist of a set of interconnected computational units, which can be referred to as nodes. These nodes may also be referred to as neurons. A neural network consists of at least one node. Nodes (or neurons) that make up neural networks may be interconnected by one or more links.

신경망 내에서, 링크를 통해 연결된 하나 이상의 노드들은 상대적으로 입력 노드 및 출력 노드의 관계를 형성할 수 있다. 입력 노드 및 출력 노드의 개념은 상대적인 것으로서, 하나의 노드에 대하여 출력 노드 관계에 있는 임의의 노드는 다른 노드와의 관계에서 입력 노드 관계에 있을 수 있으며, 그 역도 성립할 수 있다. 상술한 바와 같이, 입력 노드 대 출력 노드 관계는 링크를 중심으로 생성될 수 있다. 하나의 입력 노드에 하나 이상의 출력 노드가 링크를 통해 연결될 수 있으며, 그 역도 성립할 수 있다. Within a neural network, one or more nodes connected through a link may form a relative input node and output node relationship. The concepts of input node and output node are relative, and any node in an output node relationship with one node may be in an input node relationship with another node, and vice versa. As described above, input node to output node relationships can be created around links. One or more output nodes can be connected to one input node through a link, and vice versa.

하나의 링크를 통해 연결된 입력 노드 및 출력 노드 관계에서, 출력 노드의 데이터는 입력 노드에 입력된 데이터에 기초하여 그 값이 결정될 수 있다. 여기서 입력 노드와 출력 노드를 상호 연결하는 링크는 가중치(weight)를 가질 수 있다. 가중치는 가변적일 수 있으며, 신경망이 원하는 기능을 수행하기 위해, 사용자 또는 알고리즘에 의해 가변 될 수 있다. 예를 들어, 하나의 출력 노드에 하나 이상의 입력 노드가 각각의 링크에 의해 상호 연결된 경우, 출력 노드는 상기 출력 노드와 연결된 입력 노드들에 입력된 값들 및 각각의 입력 노드들에 대응하는 링크에 설정된 가중치에 기초하여 출력 노드 값을 결정할 수 있다.In a relationship between an input node and an output node connected through one link, the value of the data of the output node may be determined based on the data input to the input node. Here, the link connecting the input node and the output node may have a weight. Weights may be variable and may be varied by the user or algorithm in order for the neural network to perform the desired function. For example, when one or more input nodes are connected to one output node by respective links, the output node is set to the values input to the input nodes connected to the output node and the links corresponding to each input node. The output node value can be determined based on the weight.

상술한 바와 같이, 신경망은 하나 이상의 노드들이 하나 이상의 링크를 통해 상호 연결되어 신경망 내에서 입력 노드 및 출력 노드 관계를 형성한다. 신경망 내에서 노드들과 링크들의 개수 및 노드들과 링크들 사이의 연관관계, 링크들 각각에 부여된 가중치의 값에 따라, 신경망의 특성이 결정될 수 있다. 예를 들어, 동일한 개수의 노드 및 링크들이 존재하고, 링크들의 가중치 값이 상이한 두 신경망이 존재하는 경우, 두 개의 신경망들은 서로 상이한 것으로 인식될 수 있다.As described above, in a neural network, one or more nodes are interconnected through one or more links to form an input node and output node relationship within the neural network. The characteristics of the neural network can be determined according to the number of nodes and links within the neural network, the correlation between the nodes and links, and the value of the weight assigned to each link. For example, if the same number of nodes and links exist and two neural networks with different weight values of the links exist, the two neural networks may be recognized as different from each other.

신경망은 하나 이상의 노드들의 집합으로 구성될 수 있다. 신경망을 구성하는 노드들의 부분 집합은 레이어(layer)를 구성할 수 있다. 신경망을 구성하는 노드들 중 일부는, 최초 입력 노드로부터의 거리들에 기초하여, 하나의 레이어(layer)를 구성할 수 있다. 예를 들어, 최초 입력 노드로부터 거리가 n인 노드들의 집합은, n 레이어를 구성할 수 있다. 최초 입력 노드로부터 거리는, 최초 입력 노드로부터 해당 노드까지 도달하기 위해 거쳐야 하는 링크들의 최소 개수에 의해 정의될 수 있다. 그러나, 이러한 레이어의 정의는 설명을 위한 임의적인 것으로서, 신경망 내에서 레이어의 차수는 상술한 것과 상이한 방법으로 정의될 수 있다. 예를 들어, 노드들의 레이어는 최종 출력 노드로부터 거리에 의해 정의될 수도 있다.A neural network may consist of a set of one or more nodes. A subset of nodes that make up a neural network can form a layer. Some of the nodes constituting the neural network may form one layer based on the distances from the first input node. For example, a set of nodes with a distance n from the initial input node may constitute n layers. The distance from the initial input node can be defined by the minimum number of links that must be passed to reach the node from the initial input node. However, this definition of a layer is arbitrary for explanation purposes, and the order of a layer within a neural network may be defined in a different way than described above. For example, a layer of nodes may be defined by distance from the final output node.

최초 입력 노드는 신경망 내의 노드들 중 다른 노드들과의 관계에서 링크를 거치지 않고 데이터가 직접 입력되는 하나 이상의 노드들을 의미할 수 있다. 또는, 신경망 네트워크 내에서, 링크를 기준으로 한 노드 간의 관계에 있어서, 링크로 연결된 다른 입력 노드들을 가지지 않는 노드들을 의미할 수 있다. 이와 유사하게, 최종 출력 노드는 신경망 내의 노드들 중 다른 노드들과의 관계에서, 출력 노드를 가지지 않는 하나 이상의 노드들을 의미할 수 있다. 또한, 히든 노드는 최초 입력 노드 및 최후 출력 노드가 아닌 신경망을 구성하는 노드들을 의미할 수 있다. The initial input node may refer to one or more nodes in the neural network through which data is directly input without going through links in relationships with other nodes. Alternatively, in a neural network network, in the relationship between nodes based on links, it may mean nodes that do not have other input nodes connected by links. Similarly, the final output node may refer to one or more nodes that do not have an output node in their relationship with other nodes among the nodes in the neural network. Additionally, hidden nodes may refer to nodes constituting a neural network other than the first input node and the last output node.

본 개시의 일 실시예에 따른 신경망은 입력 레이어의 노드의 개수가 출력 레이어의 노드의 개수와 동일할 수 있으며, 입력 레이어에서 히든 레이어로 진행됨에 따라 노드의 수가 감소하다가 다시 증가하는 형태의 신경망일 수 있다. 또한, 본 개시의 다른 일 실시예에 따른 신경망은 입력 레이어의 노드의 개수가 출력 레이어의 노드의 개수 보다 적을 수 있으며, 입력 레이어에서 히든 레이어로 진행됨에 따라 노드의 수가 감소하는 형태의 신경망일 수 있다. 또한, 본 개시의 또 다른 일 실시예에 따른 신경망은 입력 레이어의 노드의 개수가 출력 레이어의 노드의 개수보다 많을 수 있으며, 입력 레이어에서 히든 레이어로 진행됨에 따라 노드의 수가 증가하는 형태의 신경망일 수 있다. 본 개시의 또 다른 일 실시예에 따른 신경망은 상술한 신경망들의 조합된 형태의 신경망일 수 있다.The neural network according to an embodiment of the present disclosure is a neural network in which the number of nodes in the input layer may be the same as the number of nodes in the output layer, and the number of nodes decreases and then increases again as it progresses from the input layer to the hidden layer. You can. In addition, the neural network according to another embodiment of the present disclosure may be a neural network in which the number of nodes in the input layer may be less than the number of nodes in the output layer, and the number of nodes decreases as it progresses from the input layer to the hidden layer. there is. In addition, the neural network according to another embodiment of the present disclosure may be a neural network in which the number of nodes in the input layer may be greater than the number of nodes in the output layer, and the number of nodes increases as it progresses from the input layer to the hidden layer. You can. A neural network according to another embodiment of the present disclosure may be a neural network that is a combination of the above-described neural networks.

딥 뉴럴 네트워크(DNN: deep neural network, 심층신경망)는 입력 레이어와 출력 레이어 외에 복수의 히든 레이어를 포함하는 신경망을 의미할 수 있다. 딥 뉴럴 네트워크를 이용하면 데이터의 잠재적인 구조(latent structures)를 파악할 수 있다. 즉, 사진, 글, 비디오, 음성, 음악의 잠재적인 구조(예를 들어, 어떤 물체가 사진에 있는지, 글의 내용과 감정이 무엇인지, 음성의 내용과 감정이 무엇인지 등)를 파악할 수 있다. 딥 뉴럴 네트워크는 컨볼루션 뉴럴 네트워크(CNN: convolutional neural network), 리커런트 뉴럴 네트워크(RNN: recurrent neural network), 오토 인코더(auto encoder), GAN(Generative Adversarial Networks), 제한 볼츠만 머신(RBM: restricted boltzmann machine), 심층 신뢰 네트워크(DBN: deep belief network), Q 네트워크, U 네트워크, 샴 네트워크, 적대적 생성 네트워크(GAN: Generative Adversarial Network), 트랜스포머(transformer) 등을 포함할 수 있다. 전술한 딥 뉴럴 네트워크의 기재는 예시일 뿐이며 본 개시는 이에 제한되지 않는다. A deep neural network (DNN) may refer to a neural network that includes multiple hidden layers in addition to the input layer and output layer. Deep neural networks allow you to identify latent structures in data. In other words, it is possible to identify the potential structure of a photo, text, video, voice, or music (e.g., what object is in the photo, what the content and emotion of the text are, what the content and emotion of the voice are, etc.) . Deep neural networks include convolutional neural networks (CNN), recurrent neural networks (RNN), auto encoders, generative adversarial networks (GAN), and restricted Boltzmann machines (RBM). machine), deep belief network (DBN), Q network, U network, Siamese network, Generative Adversarial Network (GAN), transformer, etc. The description of the deep neural network described above is only an example and the present disclosure is not limited thereto.

뉴럴 네트워크는 교사 학습(supervised learning), 비교사 학습(unsupervised learning), 반교사학습(semi supervised learning), 또는 강화학습(reinforcement learning) 중 적어도 하나의 방식으로 학습될 수 있다. 뉴럴 네트워크의 학습은 뉴럴 네트워크가 특정한 동작을 수행하기 위한 지식을 뉴럴 네트워크에 적용하는 과정일 수 있다. A neural network may be trained in at least one of supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning. Learning of a neural network may be a process of applying knowledge for the neural network to perform a specific operation to the neural network.

뉴럴 네트워크는 출력의 오류를 최소화하는 방향으로 학습될 수 있다. 뉴럴 네트워크의 학습에서 반복적으로 학습 데이터를 뉴럴 네트워크에 입력시키고 학습 데이터에 대한 뉴럴 네트워크의 출력과 타겟의 에러를 계산하고, 에러를 줄이기 위한 방향으로 뉴럴 네트워크의 에러를 뉴럴 네트워크의 출력 레이어에서부터 입력 레이어 방향으로 역전파(backpropagation)하여 뉴럴 네트워크의 각 노드의 가중치를 업데이트 하는 과정이다. 교사 학습의 경우 각각의 학습 데이터에 정답이 라벨링 되어있는 학습 데이터를 사용하며(즉, 라벨링된 학습 데이터), 비교사 학습의 경우는 각각의 학습 데이터에 정답이 라벨링되어 있지 않을 수 있다. 즉, 예를 들어 데이터 분류에 관한 교사 학습의 경우의 학습 데이터는 학습 데이터 각각에 카테고리가 라벨링 된 데이터 일 수 있다. 라벨링된 학습 데이터가 뉴럴 네트워크에 입력되고, 뉴럴 네트워크의 출력(카테고리)과 학습 데이터의 라벨을 비교함으로써 오류(error)가 계산될 수 있다. 다른 예로, 데이터 분류에 관한 비교사 학습의 경우 입력인 학습 데이터가 뉴럴 네트워크 출력과 비교됨으로써 오류가 계산될 수 있다. 계산된 오류는 뉴럴 네트워크에서 역방향(즉, 출력 레이어에서 입력 레이어 방향)으로 역전파 되며, 역전파에 따라 뉴럴 네트워크의 각 레이어의 각 노드들의 연결 가중치가 업데이트 될 수 있다. 업데이트 되는 각 노드의 연결 가중치는 학습률(learning rate)에 따라 변화량이 결정될 수 있다. 입력 데이터에 대한 뉴럴 네트워크의 계산과 에러의 역전파는 학습 사이클(epoch)을 구성할 수 있다. 학습률은 뉴럴 네트워크의 학습 사이클의 반복 횟수에 따라 상이하게 적용될 수 있다. 예를 들어, 뉴럴 네트워크의 학습 초기에는 높은 학습률을 사용하여 뉴럴 네트워크가 빠르게 일정 수준의 성능을 확보하도록 하여 효율성을 높이고, 학습 후기에는 낮은 학습률을 사용하여 정확도를 높일 수 있다.Neural networks can be trained to minimize output errors. In neural network learning, learning data is repeatedly input into the neural network, the output of the neural network and the error of the target for the learning data are calculated, and the error of the neural network is transferred from the output layer of the neural network to the input layer in the direction of reducing the error. This is the process of updating the weight of each node in the neural network through backpropagation. In the case of teacher learning, learning data in which the correct answer is labeled in each learning data is used (i.e., labeled learning data), and in the case of non-teacher learning, the correct answer may not be labeled in each learning data. That is, for example, in the case of teacher learning regarding data classification, the learning data may be data in which each learning data is labeled with a category. Labeled training data is input to the neural network, and the error can be calculated by comparing the output (category) of the neural network with the label of the training data. As another example, in the case of non-teachable learning for data classification, the error can be calculated by comparing the input training data with the neural network output. The calculated error is backpropagated in the reverse direction (i.e., from the output layer to the input layer) in the neural network, and the connection weight of each node in each layer of the neural network can be updated according to backpropagation. The amount of change in the connection weight of each updated node may be determined according to the learning rate. The neural network's calculation of input data and backpropagation of errors can constitute a learning cycle (epoch). The learning rate may be applied differently depending on the number of repetitions of the learning cycle of the neural network. For example, in the early stages of neural network training, a high learning rate can be used to increase efficiency by allowing the neural network to quickly achieve a certain level of performance, and in the later stages of training, a low learning rate can be used to increase accuracy.

뉴럴 네트워크는 학습시키기 위한 학습 데이터의 양을 늘리기 위해, 다양한 데이터 증강 방법이 사용될 수 있다. 예를 들어, 2차원 변환인 회전(Rotation), 크기(Scale), 밀림(Shearing), 반사(Reflection), 이동(Translation)을 통해 데이터 증강이 수행될 수 있다. 또한, 노이즈 삽입, 색상, 밝기 변형 등을 활용하여 데이터 증강이 수행될 수 있다. Neural networks can use various data augmentation methods to increase the amount of training data for training. For example, data augmentation can be performed through two-dimensional transformations such as rotation, scale, shearing, reflection, and translation. Additionally, data augmentation can be performed using noise insertion, color, brightness modification, etc.

뉴럴 네트워크의 학습에서 일반적으로 학습 데이터는 실제 데이터(즉, 학습된 뉴럴 네트워크를 이용하여 처리하고자 하는 데이터)의 부분집합일 수 있으며, 따라서, 학습 데이터에 대한 오류는 감소하나 실제 데이터에 대해서는 오류가 증가하는 학습 사이클이 존재할 수 있다. 과적합(overfitting)은 이와 같이 학습 데이터에 과하게 학습하여 실제 데이터에 대한 오류가 증가하는 현상이다. 과적합은 머신러닝 알고리즘의 오류를 증가시키는 원인으로 작용할 수 있다. 이러한 과적합을 막기 위하여 다양한 최적화 방법이 사용될 수 있다. 과적합을 막기 위해서는 학습 데이터를 증가시키거나, 레귤라이제이션(regularization), 학습의 과정에서 네트워크의 노드 일부를 비활성화하는 드롭아웃(dropout), 배치 정규화 레이어(batch normalization layer)의 활용 등의 방법이 적용될 수 있다.In the learning of neural networks, the training data can generally be a subset of real data (i.e., the data to be processed using the learned neural network), and thus the error for the training data is reduced, but the error for the real data is reduced. There may be an incremental learning cycle. Overfitting is a phenomenon in which errors in actual data increase due to excessive learning on training data. Overfitting can cause errors in machine learning algorithms to increase. To prevent such overfitting, various optimization methods can be used. To prevent overfitting, methods such as increasing the learning data, regularization, dropout to disable some of the network nodes during the learning process, and use of a batch normalization layer can be applied. You can.

도 3은 본 개시의 몇몇 실시예에 따른 표 인식을 위한 학습 데이터를 생성하는 방법의 순서도이다. 도 4는 본 개시의 몇몇 실시예에 따른 표 인식을 위한 학습 데이터를 생성하는 방법에 의해 생성된 예시적인 표 구조이다. 도 5는 본 개시의 몇몇 실시예에 따른 가로형 헤더를 생성하는 동작을 설명하기 위한 도면이다. 도 6은 본 개시의 몇몇 실시예에 따른 병합형 헤더를 생성하는 동작을 설명하기 위한 도면이다. 3 is a flowchart of a method for generating training data for table recognition according to some embodiments of the present disclosure. 4 is an example table structure generated by a method for generating training data for table recognition according to some embodiments of the present disclosure. Figure 5 is a diagram for explaining an operation of creating a horizontal header according to some embodiments of the present disclosure. FIG. 6 is a diagram for explaining an operation of generating a merged header according to some embodiments of the present disclosure.

이하에서 도 3 내지 도 6을 참조하며, 본 개시의 몇몇 실시예에 따른 표 인식을 위한 모델의 학습 데이터를 생성하는 방법 및 장치의 예시적인 실시예가 설명된다.Below, with reference to FIGS. 3 to 6 , exemplary embodiments of a method and apparatus for generating training data for a model for table recognition according to some embodiments of the present disclosure are described.

기존의 표 구조 인식(TSR)에서 사용되는 데이터 셋들은 픽셀 정보를 포함하지 않는 경우가 많다. 따라서, 이러한 데이터 셋에 의해 학습된 표 인식 모델은 각 셀의 정확한 크기를 추정할 수 없었다. 또한, 대부분의 데이터셋들은 논문에서 가져온 데이터였다. 이러한 데이터셋에 포함된 표 구조는 주로 헤더-컨텐츠의 단순한 형태를 가진다. 본 개시는 현실에서 사용되는 표의 형태를 모사하기 위해 임의의 표 구조를 합성하는 방법을 제안한다. 현실에서 사용되는 표는 다음과 같은 특징을 가질 수 있다. 예를 들어, 표 중간에 셀들의 병합이 발생할 수 있다(예를 들어, 도 4의 좌측 하단 참조). 다른 예로, 도 4에서 도시되는 바와 같이, 표의 중간에 헤더 영역이 존재할 수 있다. 다른 예로, 도 4에서 도시되는 바와 같이, 한 표 내에 여러 개의 구역이 존재할 수 있다. 또한, 여러 개의 구역은 서로 상이한 스타일을 가질 수 있다. 본 개시는 이러한 다양한 형태의 표를 인식할 수 있는 모델을 학습시키기 위해 학습 데이터를 생성하는 방법 및 장치를 제공할 수 있다. 구체적으로, 표 인식을 위한 모델을 학습시키는 학습 데이터는 표 이미지, 표 이미지와 관련된 셀을 정의하는 가로선 및 세로선의 픽셀값 정보, 각각의 셀들 간의 병합 정보, 및 각각의 셀 안의 텍스트 정보를 포함할 수 있다. 본 개시의 방법 및 장치는 특히 가로선 및 세로선의 픽셀값 정보, 각 셀 간의 병합 정보를 생성하는데 필요한 표 구조를 합성하는데 유용할 수 있다.Data sets used in existing table structure recognition (TSR) often do not include pixel information. Therefore, the table recognition model learned from this data set was unable to estimate the exact size of each cell. Additionally, most of the datasets were taken from papers. The table structures included in these datasets mainly have a simple header-content form. This disclosure proposes a method for synthesizing arbitrary table structures to simulate the form of tables used in reality. Tables used in reality may have the following characteristics. For example, merging of cells may occur in the middle of a table (e.g., see bottom left of FIG. 4). As another example, as shown in FIG. 4, a header area may exist in the middle of the table. As another example, as shown in FIG. 4, multiple zones may exist within one table. Additionally, multiple zones may have different styles. The present disclosure can provide a method and device for generating learning data to train a model that can recognize these various types of tables. Specifically, the training data for training a model for table recognition may include a table image, pixel value information of horizontal and vertical lines defining cells related to the table image, merge information between each cell, and text information within each cell. You can. The method and device of the present disclosure may be particularly useful for synthesizing the table structure required to generate pixel value information of horizontal and vertical lines and merge information between each cell.

본 개시의 몇몇 실시예에 따라, 표 인식을 위한 모델의 학습 데이터를 생성하는 방법은 복수의 구역을 포함하는 표를 생성하는 단계(s100)를 포함할 수 있다. 예를 들어, 복수의 구역은 N x M 개의 구역을 포함할 수 있다. 여기서 정수 N 및 M은 랜덤하게 결정되거나, 사용자 입력 등에 따라 사전 결정된 수로 결정될 수 있다. According to some embodiments of the present disclosure, a method of generating training data for a model for table recognition may include generating a table including a plurality of zones (s100). For example, the plurality of zones may include N x M zones. Here, the integers N and M may be determined randomly or may be determined as predetermined numbers according to user input, etc.

본 개시의 몇몇 실시예에 따라, 표 인식을 위한 모델의 학습 데이터를 생성하는 방법은 복수의 구역 상에 제 1 헤더 구역 및 제 1 컨텐츠 구역을 설정하는 단계(s200)를 포함할 수 있다. According to some embodiments of the present disclosure, a method of generating training data for a model for table recognition may include setting a first header area and a first content area in a plurality of areas (s200).

표는 헤더 구역 및 컨텐츠 구역을 포함할 수 있다. 예를 들어, 헤더 구역에 가로형 헤더, 세로형 헤더, 및/또는 병합형 헤더가 생성될 수 있다. 몇몇 예에서, 가로형 헤더는 표의 하나 이상의 행을 차지할 수 있다. 그리고 가로형 헤더는 차지하고 있는 행에 대해서는 주어진 모든 구역의 열을 차지할 수 있다. 몇몇 예에서, 세로형 헤더는 표의 하나 이상의 열을 차지할 수 있다. 그리고 세로형 헤더는 차지하고 있는 행에 대해서 주어진 모든 구역의 열을 차지할 수 있다. 병합형 헤더는 가로형 헤더 및 세로형 헤더가 동시에 있는 헤더일 수 있다. A table can contain a header section and a content section. For example, a horizontal header, a vertical header, and/or a merged header can be created in the header section. In some examples, a horizontal header may occupy one or more rows of a table. And a horizontal header can occupy all columns of a given section for the rows it occupies. In some examples, a vertical header may occupy one or more columns of a table. And a vertical header can occupy all columns of a given section for the rows it occupies. A merged header can be a header that contains both a horizontal header and a vertical header.

일반적으로, 가로형 헤더는 표의 상단에 있는 행에 위치할 수 있다. 또한, 세로형 헤더는 표의 좌측단에 위치할 수 있다. 병합형 헤더는 표의 상단 및 좌측단에 'r'형태로 위치할 수 있다. 이러한 헤더의 형태를 고려하면, 몇몇 예에서, 제 1 헤더 구역은 가로형 헤더를 생성하기 위해 표의 상단의 임의의 개수의 행에 설정될 수 있다. 다른 예로, 제 1 헤더 구역은 세로형 헤더를 생성하기 위해 표의 좌측단의 임의의 개수의 열에 설정될 수 있다. 다른 예로, 제 1 헤더 구역은 병합형 헤더를 생성하기 위해 표의 상단의 임의의 개수의 행 및 표의 좌측단의 임의의 개수의 열에 설정될 수 있다. 그리고, 제 1 컨텐츠 구역은 복수의 구역 중에서 제 1 헤더 구역을 제외한 영역에 설정될 수 있다. 다만 이에 한정되지 않고, 제 1 헤더 구역 및 제 1 컨텐츠 구역은 다양한 방식으로 설정될 수 있다. Typically, horizontal headers can be placed in the top row of a table. Additionally, the vertical header can be located at the left end of the table. The merged header can be located in the form of an 'r' at the top and left end of the table. Considering this header format, in some examples, the first header section can be set in any number of rows at the top of the table to create a horizontal header. As another example, the first header section can be set in any number of columns at the left end of the table to create a vertical header. As another example, the first header section can be set in any number of rows at the top of the table and any number of columns at the left end of the table to create a merged header. Also, the first content area may be set in an area excluding the first header area among the plurality of areas. However, it is not limited to this, and the first header area and first content area can be set in various ways.

본 개시의 몇몇 실시예에 따라, 표 인식을 위한 모델의 학습 데이터를 생성하는 방법은 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계(s300)를 포함할 수 있다. According to some embodiments of the present disclosure, a method of generating training data for a model for table recognition includes generating at least one of a horizontal header, a vertical header, and a merge header in a first header area (s300). can do.

제 1 헤더 구역이 설정된 경우, 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나가 생성될 수 있다. 상술한 바와 같이 제 1 헤더 구역의 형태에 따라 적합한 형태의 헤더가 설치될 수 있지만, 이에 한정되지 않는다.When the first header area is set, at least one of a horizontal header, a vertical header, and a merge header may be created in the first header area. As described above, a header of a suitable type may be installed depending on the shape of the first header area, but is not limited to this.

먼저, 도 5를 참조하여, 제 1 헤더 구역 상에 가로형 헤더(100)가 생성되는 예시적인 실시예가 설명된다. 제 1 헤더 구역 중에서 가로형 헤더(100)를 생성할 R개의 행 중 첫번째 행 상에, 적어도 하나의 구역을 포함하는 제 1 행 헤더가 생성될 수 있다. 제 1 행 헤더에 포함되는 구역의 개수(셀의 개수)는 사전 결정되었거나 또는 랜덤하게 결정될 수 있다. 도 5를 참조하면, 도 5에서 3개의 행 중에서 첫번째 행 상에 2개의 구역(구역 '1' 및 구역 '2')을 포함하는 제 1 행 헤더가 생성된 상태가 도시된다. First, with reference to Figure 5, an example embodiment is described in which a horizontal header 100 is created on a first header section. A first row header including at least one area may be generated on the first row among the R rows to generate the horizontal header 100 among the first header areas. The number of zones (number of cells) included in the first row header may be predetermined or determined randomly. Referring to FIG. 5, a state in which a first row header including two zones (zone '1' and zone '2') is created on the first row among the three rows in FIG. 5 is shown.

첫번째 행 상에 제 1 행 헤더가 생성된 이후에, 2번째 행 내지 R번째 행까지 제 2 행 헤더 내지 제 R 행 헤더가 생성될 수 있다. 몇몇 예에서, R 개의 행 중 n번째 행의 경우, 선행하는 n-1 번째 행의 제 n-1 행 헤더에 포함된 적어도 하나의 구역에 대응하는 구역 각각을 하나 이상의 구역으로 분할함으로써 제 n 행 헤더가 생성될 수 있다. 예를 들어, 도 5를 참조하면, 제 2 행 헤더는, 2 번째 행 상에, (i) 선행하는 제 1 행 헤더에 포함된 구역 '1'에 대응하는 구역을 구역 '1-1' 및 구역 '1-2'로 분할 (ii) 선행하는 제 1 헤더에 포함된 구역 '2'에 대응하는 구역을 구역 '2-1' 및 구역 2-2'로 분할함으로써 생성될 수 있다. 유사하게, 제 3 행 헤더는 3 번째 행 상에 (i) 선행하는 제 2 행 헤더에 포함된 구역 '1-1'에 대응하는 구역을 구역 '1-1-1' 및 구역 '1-1-2'로 분할 (ii) 선행하는 제 2 행 헤더에 포함된 구역 '1-2'에 대응하는 구역을 구역 '1-2-1' 및 구역 '1-2-2'로 분할 (iii) 선행하는 제 2 행 헤더에 포함된 구역 '2-1'에 대응하는 구역을 구역 '2-1-1' 및 구역 '2-1-2'로 분할 (iv) 선행하는 제 2 행 헤더에 포함된 구역 '2-2'에 대응하는 구역을 하나의 구역 '2-2'로 분할함으로써 생성될 수 있다. 상술한 예에서 분할되는 구역의 개수는 1개 또는 2개이나, 분할되는 구역의 개수는 다양할 수 있다. After the first row header is generated on the first row, the second row header through the R-th row header may be generated on the second row through the R-th row. In some examples, for the nth row of the R rows, the nth row Headers can be created. For example, referring to Figure 5, the second row header is configured to, on the second row, (i) the zone corresponding to zone '1' included in the preceding first row header into zone '1-1' and Split into zone '1-2' (ii) It can be created by dividing the zone corresponding to zone '2' included in the preceding first header into zone '2-1' and zone 2-2'. Similarly, the third row header divides on the third row (i) the zone corresponding to zone '1-1' contained in the preceding second row header into zone '1-1-1' and zone '1-1'; Split into '-2' (ii) Split the zone corresponding to zone '1-2' contained in the preceding second row header into zone '1-2-1' and zone '1-2-2' (iii) Splitting the zone corresponding to zone '2-1' included in the preceding second row header into zone '2-1-1' and zone '2-1-2' (iv) included in the preceding second row header It can be created by dividing the zone corresponding to the zone '2-2' into one zone '2-2'. In the above example, the number of divided zones is 1 or 2, but the number of divided zones may vary.

가로형 헤더(100)의 구역들이 어떻게 분할되는지 결정된 경우에, 여러 행에 거쳐 사용할 행의 개수가 결정될 수 있다. 예를 들어, 상기 R개의 행 중 연속하는 적어도 2 개의 행 상에서 동일한 행 너비의 인접한 구역 중에서 적어도 일부가 병합될 수 있다. 도 5를 참조하면, 2번째 행의 구역 '2-2' 및 3번째 행의 구역 '2-2'는 동일한 행 너비를 가질 수 있다. 그리고, 2번째 행의 구역 '2-2' 및 3번째 행의 구역 '2-2'는 하나의 헤더가 2개의 행을 차지하도록 서로 병합될 수 있다. 다양한 형태의 표가 생성되도록, 병합될 구역은 랜덤하게 결정될 수 있다. When it is determined how the sections of the horizontal header 100 are divided, the number of rows to be used across multiple rows can be determined. For example, in at least two consecutive rows among the R rows, at least some of adjacent areas with the same row width may be merged. Referring to FIG. 5, zone '2-2' of the second row and zone '2-2' of the third row may have the same row width. And, the zone '2-2' in the second row and the zone '2-2' in the third row can be merged with each other so that one header occupies two rows. The areas to be merged can be randomly determined so that various types of tables can be created.

유사하게, 가로형 헤더(100)와 유사한 방식으로 세로형 헤더(200)가 생성될 수 있다. 예를 들어, 제 1 헤더 구역 중에서 세로형 헤더(200)를 생성할 C개의 열 중 첫번째 열 상에, 적어도 하나의 구역을 포함하는 제 1 열 헤더가 생성될 수 있다. 제 1 열 헤더에 포함되는 구역의 개수(셀의 개수)는 사전 결정되었거나 또는 랜덤하게 결정될 수 있다. 첫번째 열 상에 제 1 열 헤더가 생성된 이후에, 2번째 열 내지 C번째 열까지 제 2 열 헤더 내지 제 C 열 헤더가 생성될 수 있다. 몇몇 예에서, C 개의 열 중 m번째 열의 경우, 선행하는 m-1 번째 열의 제 m-1 행 헤더에 포함된 적어도 하나의 구역에 대응하는 구역 각각을 하나 이상의 구역으로 분할함으로써 제 m 열 헤더가 생성될 수 있다. 여기서 분할되는 구역의 개수는 다양할 수 있다.Similarly, the vertical header 200 may be created in a similar manner to the horizontal header 100. For example, a first column header including at least one section may be created on the first column among the C columns to generate the vertical header 200 among the first header sections. The number of zones (number of cells) included in the first column header may be predetermined or determined randomly. After the first column header is created on the first column, the second column header through the C-th column can be created on the second column through the C-th column. In some examples, for the m-th column of C columns, the m-th column header is created by dividing each zone corresponding to at least one zone contained in the m-1th row header of the preceding m-1th column into one or more zones. can be created. Here, the number of divided areas may vary.

도 6을 참조하여, 제 1 헤더 구역 상에 병합형 헤더(300)가 생성되는 예시적인 실시예가 설명된다. 먼저 가로형 헤더(100)를 생성할 R개의 행 및 세로형 헤더(200)를 생성할 C개의 열이 결정될 수 있다. 도 6을 참조하면, 제 1 헤더 구역은 표 상단의 3개의 행 및 표 좌측단의 2개의 열을 포함할 수 있다. 이 경우에, 병합형 헤더 구역(300)이 제 1 헤더 구역 중 1 내지 R행 및 1 내지 C열의 중첩된 구역을 병합함으로써 생성될 수 있다. 도 6을 참조하면, 1 내지 3행 및 1 내지 2열의 중첩된 구역이 병합됨으로써 병합형 헤더 구역(300)이 생성될 수 있다. 그리고, 병합형 헤더 구역(300)이 아닌 제 1 헤더 구역 상에 가로형 헤더(100) 또는 세로형 헤더(200)가 생성될 수 있다.6, an example embodiment is described in which a merged header 300 is created on a first header section. First, R rows for creating the horizontal header 100 and C columns for creating the vertical header 200 can be determined. Referring to Figure 6, the first header section may include three rows at the top of the table and two columns at the left end of the table. In this case, the merged header section 300 may be created by merging the overlapping sections of rows 1 to R and columns 1 to C of the first header section. Referring to FIG. 6, a merged header section 300 may be created by merging overlapping sections of rows 1 to 3 and columns 1 to 2. Also, the horizontal header 100 or the vertical header 200 may be created in the first header area rather than the merged header area 300.

제 1 헤더 구역 상에 헤더 생성 작업이 완료되는 경우, 제 1 컨텐츠 구역은 생성된 가로형 헤더, 세로형 헤더, 또는 병합형 헤더에 대응하도록 분할될 수 있다. 예를 들어, 제 1 컨텐츠 구역의 행들이 가로형 헤더의 최하단 행의 구역 형태(셀 형태)에 대응하도록 분할될 수 있다. 또한, 제 1 컨텐츠 구역의 열들이 세로형 헤더의 최우측단 열의 구역 형태(셀 형태)에 대응하도록 분할될 수 있다. When the header creation operation is completed on the first header area, the first content area may be divided to correspond to the created horizontal header, vertical header, or merged header. For example, the rows of the first content area may be divided to correspond to the area shape (cell shape) of the bottom row of the horizontal header. Additionally, the columns of the first content zone may be divided to correspond to the zone shape (cell shape) of the rightmost column of the vertical header.

추가적으로, 분할된 제 1 컨텐츠 구역 상에 상술한 단계들이 재귀적으로 수행될 수 있다. 예를 들어, 분할된 제 1 컨텐츠 구역 중 적어도 일부에 제 2 헤더 구역 및 제 2 컨텐츠 구역이 설정될 수 있다. 제 2 헤더 구역 상에 헤더가 생성되는 방식은 상술한 제 1 헤더 구역 상에 헤더가 생성되는 방식과 동일할 수 있다. 추가적으로, 제 2 컨텐츠 구역 중 적어도 일부에 제 3 헤더 구역 및 제 3 컨텐츠 구역이 설정될 수 있다. 다른 예로, 분할된 제 1 컨텐츠 구역 중 적어도 일부가 병합될 수 있다. 또 다른 예로, 분할된 제 1 컨텐츠 구역 중 적어도 일부가 적어도 하나의 구역으로 분할될 수 있다.Additionally, the steps described above may be performed recursively on the divided first content area. For example, a second header area and a second content area may be set in at least part of the divided first content area. The method in which the header is generated on the second header section may be the same as the method in which the header is generated on the first header section described above. Additionally, a third header area and a third content area may be set in at least part of the second content area. As another example, at least some of the divided first content areas may be merged. As another example, at least a portion of the divided first content zone may be divided into at least one zone.

본 개시의 몇몇 실시예에 따라, 표 인식을 위한 모델의 학습 데이터를 생성하는 방법은 적어도 상기 제 1 헤더 구역 및 상기 제 1 컨텐츠 구역에 기초하여 표 구조를 결정하는 단계를 포함할 수 있다. According to some embodiments of the present disclosure, a method of generating training data for a model for table recognition may include determining a table structure based on at least the first header section and the first content section.

상술한 단계들을 재귀적으로 수행함으로써 셀들이 배치되는 다양한 형태의 표 구조가 생성될 수 있다. 몇몇 예에서, 제 1 헤더 구역 및 제 1 컨텐츠 구역 상에 셀의 구조가 결정되는 경우, 제 1 헤더 구역 및 제 1 컨텐츠 구역에 기초하여 하나의 표 구조가 결정될 수 있다. 다른 예에서, 제 2 헤더 구역 및 제 2 컨텐츠 구역 상에 셀의 구조가 결정되는 경우에, 제 1 헤더 구역 및 제 1 컨텐츠 구역과 함께 제 2 헤더 구역 및 제 2 컨텐츠 구역에 기초하여 하나의 표 구조가 추가로 결정될 수 있다.By recursively performing the steps described above, various types of table structures in which cells are arranged can be created. In some examples, when the structure of cells on a first header section and a first content section is determined, a table structure may be determined based on the first header section and the first content section. In another example, when the structure of the cells on the second header section and the second content section is determined, one table based on the second header section and the second content section together with the first header section and the first content section The structure may be further determined.

본 개시의 몇몇 실시예에 따라, 표 인식을 위한 모델의 학습 데이터를 생성하는 방법은 결정된 표 구조의 행과 열의 픽셀값을 설정하는 단계를 포함할 수 있다. 여기서, 학습 데이터에 의해 학습되는 모델이 각 셀의 크기를 정확하게 예측할 수 있도록, 행과 열의 픽셀값은 일반적인 표 형태를 가지는 범위 내에서 다양하게 설정될 수 있다. According to some embodiments of the present disclosure, a method of generating training data for a model for table recognition may include setting pixel values of rows and columns of the determined table structure. Here, so that the model learned from the training data can accurately predict the size of each cell, the pixel values of the rows and columns can be set in various ways within the range of a general table format.

본 개시의 몇몇 실시예에 따라, 표 인식을 위한 모델의 학습 데이터를 생성하는 방법은 결정된 표 구조에 포함되는 셀 중 적어도 일부 상에 텍스트를 설정하는 단계를 더 포함할 수 있다. 여기서 텍스트는 다양한 언어의 문자 또는 숫자를 포함할 수 있다. 또한, 텍스트는 랜덤하게 결정되는 컨텐츠를 포함할 수 있다.According to some embodiments of the present disclosure, a method of generating training data for a model for table recognition may further include setting text on at least some of the cells included in the determined table structure. Here, the text may contain letters or numbers from various languages. Additionally, the text may include randomly determined content.

본 개시의 몇몇 실시예에 따라, 표 인식을 위한 모델의 학습 데이터를 생성하는 방법은 결정된 표 구조에 포함되는 셀 중 적어도 일부 상에 스타일을 설정하는 단계를 포함할 수 있다. 여기서 스타일은 경계선 스타일, 텍스트 글꼴, 또는 배경색 중 적어도 하나를 포함할 수 있다. 스타일 또한 랜덤하게 또는 사전 설정에 따라 다양하게 설정될 수 있다.According to some embodiments of the present disclosure, a method of generating training data for a model for table recognition may include setting a style on at least some of the cells included in the determined table structure. Here, the style may include at least one of a border style, text font, or background color. Styles can also be set randomly or in various ways according to presets.

상술한 단계에 따라 생성된 셀의 병합, 행과 열의 픽셀값, 텍스트, 스타일 등에 관한 정보는 표 구조 데이터로 저장될 수 있다. 표 구조 데이터는 대응하는 표의 이미지와 함께 학습 데이터로 사용될 수 있다. 본 개시의 방법 및 장치에 따라 생성된 표 구조 데이터는 여러 셀들이 병합된 형태, 많은 빈 셀들이 존재하는 형태 등 복잡한 구조를 가질 수 있다. 따라서, 본 개시의 몇몇 실시예에 따른 학습 데이터는 표 인식을 위한 모델의 학습 효율을 높일 수 있다.Information about merging of cells created according to the above-described steps, pixel values of rows and columns, text, style, etc. can be stored as table structure data. Table structure data can be used as learning data along with the corresponding table image. Table structure data generated according to the method and apparatus of the present disclosure may have a complex structure, such as a form in which several cells are merged or a form in which many empty cells exist. Therefore, learning data according to some embodiments of the present disclosure can increase the learning efficiency of a model for table recognition.

전술한 표 인식 모델의 학습 데이터를 생성하는 방법의 단계들은 단지 설명을 위해 제시된 것이며, 일부 단계가 생략되거나 별도의 단계가 추가될 수 있다. 또한, 전술한 단계들은 임의의 순서에 따라 수행될 수 있다. 대안적인 단계들이 이하에서 설명된다.The steps of the method for generating training data for the table recognition model described above are presented only for explanation, and some steps may be omitted or separate steps may be added. Additionally, the steps described above may be performed in any order. Alternative steps are described below.

도 7은 본 개시의 몇몇 실시예에 따른 컴퓨팅 장치의 블록 구성도이다.7 is a block diagram of a computing device according to some embodiments of the present disclosure.

도 7은 본 개시의 몇몇 실시예들이 구현될 수 있는 예시적인 컴퓨팅 환경에 대한 간략하고 일반적인 개략도를 도시한다.7 shows a brief, general schematic diagram of an example computing environment in which some embodiments of the present disclosure may be implemented.

본 개시가 일반적으로 하나 이상의 컴퓨터 상에서 실행될 수 있는 컴퓨터 실행가능 명령어와 관련하여 전술되었지만, 당업자라면 본 개시가 기타 프로그램 모듈들과 결합되어 및/또는 하드웨어와 소프트웨어의 조합으로써 구현될 수 있다는 것을 잘 알 것이다.Although the disclosure has been described generally in the context of computer-executable instructions that can be executed on one or more computers, those skilled in the art will appreciate that the disclosure can be combined with other program modules and/or implemented as a combination of hardware and software. will be.

일반적으로, 프로그램 모듈은 특정의 태스크를 수행하거나 특정의 추상 데이터 유형을 구현하는 루틴, 프로그램, 컴포넌트, 데이터 구조, 기타 등등을 포함한다. 또한, 당업자라면 본 개시의 방법이 단일-프로세서 또는 멀티프로세서 컴퓨터 시스템, 미니컴퓨터, 메인프레임 컴퓨터는 물론 퍼스널 컴퓨터, 핸드 헬드 컴퓨팅 장치, 마이크로프로세서-기반 또는 프로그램가능 가전 제품, 기타 등등(이들 각각은 하나 이상의 연관된 장치와 연결되어 동작할 수 있음)을 비롯한 다른 컴퓨터 시스템 구성으로 실시될 수 있다는 것을 잘 알 것이다.Typically, program modules include routines, programs, components, data structures, etc. that perform specific tasks or implement specific abstract data types. Additionally, those skilled in the art will understand that the methods of the present disclosure are applicable to single-processor or multiprocessor computer systems, minicomputers, mainframe computers, as well as personal computers, hand-held computing devices, microprocessor-based or programmable consumer electronics, and the like (each of which may be It will be appreciated that the system may be implemented with other computer system configurations, including those capable of operating in conjunction with one or more associated devices.

본 개시의 설명된 실시예들은 또한 어떤 태스크들이 통신 네트워크를 통해 연결되어 있는 원격 처리 장치들에 의해 수행되는 분산 컴퓨팅 환경에서 실시될 수 있다. 분산 컴퓨팅 환경에서, 프로그램 모듈은 로컬 및 원격 메모리 저장 장치 둘 다에 위치할 수 있다.The described embodiments of the disclosure can also be practiced in distributed computing environments where certain tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.

컴퓨터는 통상적으로 다양한 컴퓨터 판독가능 매체를 포함한다. 컴퓨터에 의해 액세스 가능한 매체는 그 어떤 것이든지 컴퓨터 판독가능 매체가 될 수 있다. 컴퓨터 판독가능 매체는 휘발성 및 비휘발성 매체, 일시적(transitory) 및 비일시적(non-transitory) 매체, 이동식 및 비-이동식 매체를 포함한다. 제한이 아닌 예로서, 컴퓨터 판독가능 매체는 컴퓨터 판독가능 저장 매체 및 컴퓨터 판독가능 전송 매체를 포함할 수 있다. 컴퓨터 판독가능 저장 매체는 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈 또는 기타 데이터와 같은 정보를 저장하는 임의의 방법 또는 기술로 구현되는 휘발성 및 비휘발성 매체, 일시적 및 비-일시적 매체, 이동식 및 비이동식 매체를 포함한다. 컴퓨터 저장 매체는 RAM, ROM, EEPROM, 플래시 메모리 또는 기타 메모리 기술, CD-ROM, DVD(digital video disk) 또는 기타 광 디스크 저장 장치, 자기 카세트, 자기 테이프, 자기 디스크 저장 장치 또는 기타 자기 저장 장치, 또는 컴퓨터에 의해 액세스될 수 있고 원하는 정보를 저장하는 데 사용될 수 있는 임의의 기타 매체를 포함하지만, 이에 한정되지 않는다.Computers typically include a variety of computer-readable media. Any medium that can be accessed by a computer can be a computer-readable medium. Computer-readable media includes volatile and non-volatile media, transitory and non-transitory media, removable and non-removable media. By way of example, and not limitation, computer-readable media may include computer-readable storage media and computer-readable transmission media. Computer-readable storage media refers to volatile and non-volatile media, transient and non-transitory media, removable and non-removable, implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Includes media. Computer storage media includes RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital video disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices; or any other medium that can be accessed by a computer and used to store desired information.

컴퓨터 판독가능 전송 매체는 통상적으로 기타 전송 메커니즘(transport mechanism)과 같은 피변조 데이터 신호(modulated data signal)에 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈 또는 기타 데이터 등을 구현하고 모든 정보 전달 매체를 포함한다. 피변조 데이터 신호라는 용어는 신호 내에 정보를 인코딩하도록 그 신호의 특성들 중 하나 이상을 설정 또는 변경시킨 신호를 의미한다. 제한이 아닌 예로서, 컴퓨터 판독가능 전송 매체는 유선 네트워크 또는 직접 배선 접속(direct-wired connection)과 같은 유선 매체, 그리고 음향, RF, 적외선, 기타 무선 매체와 같은 무선 매체를 포함한다. 상술된 매체들 중 임의의 것의 조합도 역시 컴퓨터 판독가능 전송 매체의 범위 안에 포함되는 것으로 한다.Computer-readable transmission media typically implements computer-readable instructions, data structures, program modules, or other data in a modulated data signal, such as other transport mechanisms, and includes all information transmission media. do. The term modulated data signal refers to a signal in which one or more of the characteristics of the signal have been set or changed to encode information within the signal. By way of example, and not limitation, computer-readable transmission media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared, and other wireless media. Combinations of any of the above are also intended to be included within the scope of computer-readable transmission media.

컴퓨터(1102)를 포함하는 본 개시의 여러가지 측면들을 구현하는 예시 적인 환경(1100)이 나타내어져 있으며, 컴퓨터(1102)는 처리 장치(1104), 시스템 메모리(1106) 및 시스템 버스(1108)를 포함한다. 시스템 버스(1108)는 시스템 메모리(1106)(이에 한정되지 않음)를 비롯한 시스템 컴포넌트들을 처리 장치(1104)에 연결시킨다. 처리 장치(1104)는 다양한 상용 프로세서들 중 임의의 프로세서일 수 있다. 듀얼 프로세서 및 기타 멀티프로세서 아키텍처도 역시 처리 장치(1104)로서 이용될 수 있다.An example environment 1100 is shown that implements various aspects of the present disclosure, including a computer 1102, which includes a processing unit 1104, a system memory 1106, and a system bus 1108. do. System bus 1108 couples system components, including but not limited to system memory 1106, to processing unit 1104. Processing unit 1104 may be any of a variety of commercially available processors. Dual processors and other multiprocessor architectures may also be used as processing unit 1104.

시스템 버스(1108)는 메모리 버스, 주변장치 버스, 및 다양한 상용 버스 아키텍처 중 임의의 것을 사용하는 로컬 버스에 추가적으로 상호 연결될 수 있는 몇 가지 유형의 버스 구조 중 임의의 것일 수 있다. 시스템 메모리(1106)는 판독 전용 메모리(ROM)(1110) 및 랜덤 액세스 메모리(RAM)(1112)를 포함한다. 기본 입/출력 시스템(BIOS)은 ROM, EPROM, EEPROM 등의 비휘발성 메모리(1110)에 저장되며, 이 BIOS는 시동 중과 같은 때에 컴퓨터(1102) 내의 구성요소들 간에 정보를 전송하는 일을 돕는 기본적인 루틴을 포함한다. RAM(1112)은 또한 데이터를 캐싱하기 위한 정적 RAM 등의 고속 RAM을 포함할 수 있다.System bus 1108 may be any of several types of bus structures that may further be interconnected to a memory bus, peripheral bus, and local bus using any of a variety of commercial bus architectures. System memory 1106 includes read only memory (ROM) 1110 and random access memory (RAM) 1112. The basic input/output system (BIOS) is stored in non-volatile memory 1110, such as ROM, EPROM, and EEPROM, and is a basic input/output system that helps transfer information between components within the computer 1102, such as during startup. Contains routines. RAM 1112 may also include high-speed RAM, such as static RAM, for caching data.

컴퓨터(1102)는 또한 내장형 하드 디스크 드라이브(HDD)(1114)(예를 들어, EIDE, SATA)-이 내장형 하드 디스크 드라이브(1114)는 또한 적당한 섀시(도시 생략) 내에서 외장형 용도로 구성될 수 있음-, 자기 플로피 디스크 드라이브(FDD)(1116)(예를 들어, 이동식 디스켓(1118)으로부터 판독을 하거나 그에 기록을 하기 위한 것임), 및 광 디스크 드라이브(1120)(예를 들어, CD-ROM 디스크(1122)를 판독하거나 DVD 등의 기타 고용량 광 매체로부터 판독을 하거나 그에 기록을 하기 위한 것임)를 포함한다. 하드 디스크 드라이브(1114), 자기 디스크 드라이브(1116) 및 광 디스크 드라이브(1120)는 각각 하드 디스크 드라이브 인터페이스(1124), 자기 디스크 드라이브 인터페이스(1126) 및 광 드라이브 인터페이스(1128)에 의해 시스템 버스(1108)에 연결될 수 있다. 외장형 드라이브 구현을 위한 인터페이스(1124)는 USB(Universal Serial Bus) 및 IEEE 1394 인터페이스 기술 중 적어도 하나 또는 그 둘 다를 포함한다.Computer 1102 may also include an internal hard disk drive (HDD) 1114 (e.g., EIDE, SATA)—the internal hard disk drive 1114 may also be configured for external use within a suitable chassis (not shown). -, a magnetic floppy disk drive (FDD) 1116 (e.g., for reading from or writing to a removable diskette 1118), and an optical disk drive 1120 (e.g., a CD-ROM for reading the disk 1122 or reading from or writing to other high-capacity optical media such as DVDs). Hard disk drive 1114, magnetic disk drive 1116, and optical disk drive 1120 are connected to system bus 1108 by hard disk drive interface 1124, magnetic disk drive interface 1126, and optical drive interface 1128, respectively. ) can be connected to. The interface 1124 for implementing an external drive includes at least one or both of Universal Serial Bus (USB) and IEEE 1394 interface technologies.

이들 드라이브 및 그와 연관된 컴퓨터 판독가능 매체는 데이터, 데이터 구조, 컴퓨터 실행가능 명령어, 기타 등등의 비 휘발성 저장을 제공한다. 컴퓨터(1102)의 경우, 드라이브 및 매체는 임의의 데이터를 적당한 디지털 형식으로 저장하는 것에 대응한다. 상기에서의 컴퓨터 판독가능 매체에 대한 설명이 HDD, 이동식 자기 디스크, 및 CD 또는 DVD 등의 이동식 광 매체를 언급하고 있지만, 당업자라면 집 드라이브(zip drive), 자기 카세트, 플래쉬 메모리 카드, 카트리지, 기타 등등의 컴퓨터에 의해 판독가능한 다른 유형의 매체도 역시 예시 적인 운영 환경에서 사용될 수 있으며 또 임의의 이러한 매체가 본 개시의 방법들을 수행하기 위한 컴퓨터 실행가능 명령어를 포함할 수 있다는 것을 잘 알 것이다.These drives and their associated computer-readable media provide non-volatile storage of data, data structures, computer-executable instructions, and the like. For computer 1102, drive and media correspond to storing any data in a suitable digital format. Although the description of computer-readable media above refers to removable optical media such as HDDs, removable magnetic disks, and CDs or DVDs, those skilled in the art will also recognize removable optical media such as zip drives, magnetic cassettes, flash memory cards, cartridges, etc. It will be appreciated that other types of computer-readable media may also be used in the exemplary operating environment, and that any such media may contain computer-executable instructions for performing the methods of the present disclosure.

운영 체제(1130), 하나 이상의 애플리케이션 프로그램(1132), 기타 프로그램 모듈(1134) 및 프로그램 데이터(1136)를 비롯한 다수의 프로그램 모듈이 드라이브 및 RAM(1112)에 저장될 수 있다. 운영 체제, 애플리케이션, 모듈 및/또는 데이터의 전부 또는 그 일부분이 또한 RAM(1112)에 캐싱될 수 있다. 본 개시가 여러가지 상업적으로 이용가능한 운영 체제 또는 운영 체제들의 조합에서 구현될 수 있다는 것을 잘 알 것이다.A number of program modules may be stored in drives and RAM 1112, including an operating system 1130, one or more application programs 1132, other program modules 1134, and program data 1136. All or portions of the operating system, applications, modules and/or data may also be cached in RAM 1112. It will be appreciated that the present disclosure may be implemented on various commercially available operating systems or combinations of operating systems.

사용자는 하나 이상의 유선/무선 입력 장치, 예를 들어, 키보드(1138) 및 마우스(1140) 등의 포인팅 장치를 통해 컴퓨터(1102)에 명령 및 정보를 입력할 수 있다. 기타 입력 장치(도시 생략)로는 마이크, IR 리모콘, 조이스틱, 게임 패드, 스타일러스 펜, 터치 스크린, 기타 등등이 있을 수 있다. 이들 및 기타 입력 장치가 종종 시스템 버스(1108)에 연결되어 있는 입력 장치 인터페이스(1142)를 통해 처리 장치(1104)에 연결되지만, 병렬 포트, IEEE 1394 직렬 포트, 게임 포트, USB 포트, IR 인터페이스, 기타 등등의 기타 인터페이스에 의해 연결될 수 있다.A user may enter commands and information into computer 1102 through one or more wired/wireless input devices, such as a keyboard 1138 and a pointing device such as mouse 1140. Other input devices (not shown) may include microphones, IR remote controls, joysticks, game pads, stylus pens, touch screens, etc. These and other input devices are connected to the processing unit 1104 through an input device interface 1142, which is often connected to the system bus 1108, but may also include a parallel port, an IEEE 1394 serial port, a game port, a USB port, an IR interface, It can be connected by other interfaces, etc.

모니터(1144) 또는 다른 유형의 디스플레이 장치도 역시 비디오 어댑터(1146) 등의 인터페이스를 통해 시스템 버스(1108)에 연결된다. 모니터(1144)에 부가하여, 컴퓨터는 일반적으로 스피커, 프린터, 기타 등등의 기타 주변 출력 장치(도시 생략)를 포함한다.A monitor 1144 or other type of display device is also connected to system bus 1108 through an interface, such as a video adapter 1146. In addition to monitor 1144, computers typically include other peripheral output devices (not shown) such as speakers, printers, etc.

컴퓨터(1102)는 유선 및/또는 무선 통신을 통한 원격 컴퓨터(들)(1148) 등의 하나 이상의 원격 컴퓨터로의 논리적 연결을 사용하여 네트워크화 된 환경에서 동작할 수 있다. 원격 컴퓨터(들)(1148)는 워크스테이션, 컴퓨팅 디바이스 컴퓨터, 라우터, 퍼스널 컴퓨터, 휴대용 컴퓨터, 마이크로프로세서-기반 오락 기기, 피어 장치 또는 기타 통상의 네트워크 노드일 수 있으며, 일반적으로 컴퓨터(1102)에 대해 기술된 구성요소들 중 다수 또는 그 전부를 포함하지만, 간략함을 위해, 메모리 저장 장치(1150)만이 도시되어 있다. 도시되어 있는 논리적 연결은 근거리 통신망(LAN)(1152) 및/또는 더 큰 네트워크, 예를 들어, 원거리 통신망(WAN)(1154)에의 유선/무선 연결을 포함한다. 이러한 LAN 및 WAN 네트워킹 환경은 사무실 및 회사에서 일반적인 것이며, 인트라넷 등의 전사적 컴퓨터 네트워크(enterprise-wide computer network)를 용이하게 해주며, 이들 모두는 전세계 컴퓨터 네트워크, 예를 들어, 인터넷에 연결될 수 있다.Computer 1102 may operate in a networked environment using logical connections to one or more remote computers, such as remote computer(s) 1148, via wired and/or wireless communications. Remote computer(s) 1148 may be a workstation, computing device computer, router, personal computer, portable computer, microprocessor-based entertainment device, peer device, or other conventional network node, and is generally connected to computer 1102. For simplicity, only memory storage device 1150 is shown, although it includes many or all of the components described. The logical connections depicted include wired/wireless connections to a local area network (LAN) 1152 and/or a larger network, such as a wide area network (WAN) 1154. These LAN and WAN networking environments are common in offices and companies and facilitate enterprise-wide computer networks, such as intranets, all of which can be connected to a worldwide computer network, such as the Internet.

LAN 네트워킹 환경에서 사용될 때, 컴퓨터(1102)는 유선 및/또는 무선 통신 네트워크 인터페이스 또는 어댑터(1156)를 통해 로컬 네트워크(1152)에 연결된다. 어댑터(1156)는 LAN(1152)에의 유선 또는 무선 통신을 용이하게 해줄 수 있으며, 이 LAN(1152)은 또한 무선 어댑터(1156)와 통신하기 위해 그에 설치되어 있는 무선 액세스 포인트를 포함하고 있다. WAN 네트워킹 환경에서 사용될 때, 컴퓨터(1102)는 모뎀(1158)을 포함할 수 있거나, WAN(1154) 상의 통신 컴퓨팅 디바이스에 연결되거나, 또는 인터넷을 통하는 등, WAN(1154)을 통해 통신을 설정하는 기타 수단을 갖는다. 내장형 또는 외장형 및 유선 또는 무선 장치일 수 있는 모뎀(1158)은 직렬 포트 인터페이스(1142)를 통해 시스템 버스(1108)에 연결된다. 네트워크화 된 환경에서, 컴퓨터(1102)에 대해 설명된 프로그램 모듈들 또는 그의 일부분이 원격 메모리/저장 장치(1150)에 저장될 수 있다. 도시된 네트워크 연결이 예시 적인 것이며 컴퓨터들 사이에 통신 링크를 설정하는 기타 수단이 사용될 수 있다는 것을 잘 알 것이다.When used in a LAN networking environment, computer 1102 is connected to local network 1152 through wired and/or wireless communication network interfaces or adapters 1156. Adapter 1156 may facilitate wired or wireless communication to LAN 1152, which also includes a wireless access point installed thereon for communicating with wireless adapter 1156. When used in a WAN networking environment, the computer 1102 may include a modem 1158 or be connected to a communicating computing device on the WAN 1154 or to establish communications over the WAN 1154, such as via the Internet. Have other means. Modem 1158, which may be internal or external and a wired or wireless device, is coupled to system bus 1108 via serial port interface 1142. In a networked environment, program modules described for computer 1102, or portions thereof, may be stored in remote memory/storage device 1150. It will be appreciated that the network connections shown are exemplary and that other means of establishing a communications link between computers may be used.

컴퓨터(1102)는 무선 통신으로 배치되어 동작하는 임의의 무선 장치 또는 개체, 예를 들어, 프린터, 스캐너, 데스크톱 및/또는 휴대용 컴퓨터, PDA(portable data assistant), 통신 위성, 무선 검출가능 태그와 연관된 임의의 장비 또는 장소, 및 전화와 통신을 하는 동작을 한다. 이것은 적어도 Wi-Fi 및 블루투스 무선 기술을 포함한다. 따라서, 통신은 종래의 네트워크에서와 같이 미리 정의된 구조이거나 단순하게 적어도 2개의 장치 사이의 애드혹 통신(ad hoc communication)일 수 있다.Computer 1102 may be associated with any wireless device or object deployed and operating in wireless communications, such as a printer, scanner, desktop and/or portable computer, portable data assistant (PDA), communications satellite, wirelessly detectable tag. Performs actions to communicate with any device or location and telephone. This includes at least Wi-Fi and Bluetooth wireless technologies. Accordingly, communication may be a predefined structure as in a conventional network or may simply be ad hoc communication between at least two devices.

Wi-Fi(Wireless Fidelity)는 유선 없이도 인터넷 등으로의 연결을 가능하게 해준다. Wi-Fi는 이러한 장치, 예를 들어, 컴퓨터가 실내에서 및 실외에서, 즉 기지국의 통화권 내의 아무 곳에서나 데이터를 전송 및 수신할 수 있게 해주는 셀 전화와 같은 무선 기술이다. Wi-Fi 네트워크는 안전하고 신뢰성 있으며 고속인 무선 연결을 제공하기 위해 IEEE 802.11(a,b,g, 기타)이라고 하는 무선 기술을 사용한다. 컴퓨터를 서로에, 인터넷에 및 유선 네트워크(IEEE 802.3 또는 이더넷을 사용함)에 연결시키기 위해 Wi-Fi가 사용될 수 있다. Wi-Fi 네트워크는 비인가 2.4 및 5 GHz 무선 대역에서, 예를 들어, 11Mbps(802.11a) 또는 54 Mbps(802.11b) 데이터 레이트로 동작하거나, 양 대역(듀얼 대역)을 포함하는 제품에서 동작할 수 있다.Wi-Fi (Wireless Fidelity) enables connection to the Internet, etc. without wires. Wi-Fi is a wireless technology, like cell phones, that allows these devices, such as computers, to send and receive data indoors and outdoors, anywhere within the coverage area of a base station. Wi-Fi networks use wireless technology called IEEE 802.11 (a,b,g, etc.) to provide secure, reliable, and high-speed wireless connections. Wi-Fi can be used to connect computers to each other, the Internet, and wired networks (using IEEE 802.3 or Ethernet). Wi-Fi networks can operate in the unlicensed 2.4 and 5 GHz wireless bands, for example, at data rates of 11 Mbps (802.11a) or 54 Mbps (802.11b), or in products that include both bands (dual band). there is.

본 개시의 기술 분야에서 통상의 지식을 가진 자는 정보 및 신호들이 임의의 다양한 상이한 기술들 및 기법들을 이용하여 표현될 수 있다는 것을 이해할 것이다. 예를 들어, 위의 설명에서 참조될 수 있는 데이터, 지시들, 명령들, 정보, 신호들, 비트들, 심볼들 및 칩들은 전압들, 전류들, 전자기파들, 자기장들 또는 입자들, 광학장들 또는 입자들, 또는 이들의 임의의 결합에 의해 표현될 수 있다.Those skilled in the art will understand that information and signals may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, symbols and chips that may be referenced in the above description include voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields. It can be expressed by particles or particles, or any combination thereof.

본 개시의 기술 분야에서 통상의 지식을 가진 자는 여기에 개시된 실시예들과 관련하여 설명된 다양한 예시 적인 논리 블록들, 모듈들, 프로세서들, 수단들, 회로들 및 알고리즘 단계들이 전자 하드웨어, (편의를 위해, 여기에서 "소프트웨어"로 지칭되는) 다양한 형태들의 프로그램 또는 설계 코드 또는 이들 모두의 결합에 의해 구현될 수 있다는 것을 이해할 것이다. 하드웨어 및 소프트웨어의 이러한 상호 호환성을 명확하게 설명하기 위해, 다양한 예시 적인 컴포넌트들, 블록들, 모듈들, 회로들 및 단계들이 이들의 기능과 관련하여 위에서 일반적으로 설명되었다. 이러한 기능이 하드웨어 또는 소프트웨어로서 구현되는지 여부는 특정한 애플리케이션 및 전체 시스템에 대하여 부과되는 설계 제약들에 따라 좌우된다. 본 개시의 기술 분야에서 통상의 지식을 가진 자는 각각의 특정한 애플리케이션에 대하여 다양한 방식들로 설명된 기능을 구현할 수 있으나, 이러한 구현 결정들은 본 개시의 범위를 벗어나는 것으로 해석되어서는 안 될 것이다.Those skilled in the art will understand that the various illustrative logical blocks, modules, processors, means, circuits and algorithm steps described in connection with the embodiments disclosed herein may be used in electronic hardware, (for convenience) It will be understood that the implementation may be implemented by various forms of program or design code (referred to herein as “software”) or a combination of both. To clearly illustrate this interoperability of hardware and software, various illustrative components, blocks, modules, circuits and steps have been described above generally with respect to their functionality. Whether this functionality is implemented as hardware or software depends on the specific application and design constraints imposed on the overall system. A person skilled in the art of this disclosure may implement the described functionality in various ways for each specific application, but such implementation decisions should not be construed as departing from the scope of this disclosure.

여기서 제시된 다양한 실시예들은 방법, 장치, 또는 표준 프로그래밍 및/또는 엔지니어링 기술을 사용한 제조 물품(article)으로 구현될 수 있다. 용어 "제조 물품"은 임의의 컴퓨터-판독가능 장치로부터 액세스 가능한 컴퓨터 프로그램 또는 매체(media)를 포함한다. 예를 들어, 컴퓨터-판독가능 매체는 자기 저장 장치(예를 들면, 하드 디스크, 플로피 디스크, 자기 스트립, 등), 광학 디스크(예를 들면, CD, DVD, 등), 스마트 카드, 및 플래쉬 메모리 장치(예를 들면, EEPROM, 카드, 스틱, 키 드라이브, 등)를 포함하지만, 이들로 제한되는 것은 아니다. 또한, 여기서 제시되는 다양한 저장 매체는 정보를 저장하기 위한 하나 이상의 장치 및/또는 다른 기계-판독가능한 매체를 포함한다. The various embodiments presented herein may be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques. The term “article of manufacture” includes a computer program or media accessible from any computer-readable device. For example, computer-readable media include magnetic storage devices (e.g., hard disks, floppy disks, magnetic strips, etc.), optical disks (e.g., CDs, DVDs, etc.), smart cards, and flash memory. Includes, but is not limited to, devices (e.g., EEPROM, cards, sticks, key drives, etc.). Additionally, various storage media presented herein include one or more devices and/or other machine-readable media for storing information.

제시된 프로세스들에 있는 단계들의 특정한 순서 또는 계층 구조는 예시 적인 접근들의 일례임을 이해하도록 한다. 설계 우선순위들에 기반하여, 본 개시의 범위 내에서 프로세스들에 있는 단계들의 특정한 순서 또는 계층 구조가 재배열될 수 있다는 것을 이해하도록 한다. 첨부된 방법 청구항들은 샘플 순서로 다양한 단계들의 엘리먼트들을 제공하지만 제시된 특정한 순서 또는 계층 구조에 한정되는 것을 의미하지는 않는다.It is to be understood that the specific order or hierarchy of steps in the processes presented is an example of exemplary approaches. It is to be understood that the specific order or hierarchy of steps in processes may be rearranged within the scope of the present disclosure, based on design priorities. The appended method claims present elements of the various steps in a sample order but are not meant to be limited to the particular order or hierarchy presented.

제시된 실시예들에 대한 설명은 임의의 본 개시의 기술 분야에서 통상의 지식을 가진 자가 본 개시를 이용하거나 또는 실시할 수 있도록 제공된다. 이러한 실시예들에 대한 다양한 변형들은 본 개시의 기술 분야에서 통상의 지식을 가진 자에게 명백할 것이다. 여기에 정의된 일반적인 원리들은 본 개시의 범위를 벗어남이 없이 다른 실시예들에 적용될 수 있다. 그리하여, 본 개시는 여기에 제시된 실시예들로 한정되는 것이 아니라, 여기에 제시된 원리들 및 신규한 특징들과 일관되는 최광의의 범위에서 해석되어야 할 것이다.The description of the presented embodiments is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art. The general principles defined herein may be applied to other embodiments without departing from the scope of the disclosure. Thus, the present disclosure is not limited to the embodiments presented herein but is to be interpreted in the broadest scope consistent with the principles and novel features presented herein.

Claims (14)

컴퓨팅 장치에 의해 수행되는 표 인식을 위한 모델의 학습 데이터를 생성하는 방법에 있어서,
복수의 구역을 포함하는 표를 생성하는 단계;
상기 복수의 구역 상에 제 1 헤더 구역 및 제 1 컨텐츠 구역을 설정하는 단계;
상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계;
상기 제 1 컨텐츠 구역 상에 셀들을 병합 또는 분할하거나, 또는 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하는 단계; 및
적어도 상기 제 1 헤더 구역 및 상기 제 1 컨텐츠 구역에 기초하여 표 구조를 결정하는 단계;
를 포함하는,
방법.
In a method of generating training data for a model for table recognition performed by a computing device,
generating a table including a plurality of zones;
establishing a first header zone and a first content zone on the plurality of zones;
generating at least one of a horizontal header, a vertical header, and a merge header in the first header area;
merging or splitting cells on the first content area, or establishing a second header area and a second content area; and
determining a table structure based at least on the first header section and the first content section;
Including,
method.
제 1 항에 있어서,
상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계는:
상기 제 1 헤더 구역 중에서 가로형 헤더를 생성할 R개의 행 중 첫번째 행 상에, 적어도 하나의 열 구역을 포함하는 제 1 행 헤더를 생성하는 단계; 및
상기 R개의 행 중 n번째 행 상에, 선행하는 n-1 번째 행의 제 n-1 행 헤더에 포함된 적어도 하나의 구역에 대응하는 구역 각각을 하나 이상의 구역으로 분할함으로써 제 n 행 헤더를 생성하는 단계;
를 포함하는,
방법.
According to claim 1,
The step of creating at least one of a horizontal header, a vertical header, and a merge header in the first header area:
generating a first row header including at least one column section on a first row among R rows for generating a horizontal header among the first header sections; and
On the nth row among the R rows, an nth row header is generated by dividing each zone corresponding to at least one zone included in the n-1th row header of the preceding n-1th row into one or more zones. steps;
Including,
method.
제 2 항에 있어서,
상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계는:
상기 R개의 행 중 연속하는 적어도 2 개의 행 상에서 동일한 행 너비의 인접한 구역 중에서 적어도 일부를 병합하는 단계;
를 포함하는,
방법.
According to claim 2,
The step of creating at least one of a horizontal header, a vertical header, and a merge header in the first header area:
merging at least a portion of adjacent regions with the same row width on at least two consecutive rows among the R rows;
Including,
method.
제 1 항에 있어서,
상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계는:
상기 제 1 헤더 구역 중에서 세로형 헤더를 생성할 C개의 열 중 첫번째 열 상에, 적어도 하나의 행 구역을 포함하는 제 1 열 헤더를 생성하는 단계; 및
상기 C개의 열 중 m번째 열 상에, 선행하는 m-1 번째 열의 제 m-1 열 헤더에 포함된 적어도 하나의 구역에 대응하는 구역 각각을 하나 이상의 구역으로 분할함으로써 제 m 행 헤더를 생성하는 단계;
를 포함하는,
방법.
According to claim 1,
The step of creating at least one of a horizontal header, a vertical header, and a merge header in the first header area:
generating a first column header including at least one row section on a first column of the C columns for generating a vertical header among the first header sections; and
On the m-th column of the C columns, generating the m-th row header by dividing each zone corresponding to at least one zone included in the m-1-th column header of the preceding m-1-th column into one or more zones. step;
Including,
method.
제 4 항에 있어서,
상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계는:
상기 C개의 열 중 연속하는 적어도 2 개의 열 상에서 동일한 열 너비의 인접한 구역 중에서 적어도 일부를 병합하는 단계;
를 더 포함하는,
방법.
According to claim 4,
The step of creating at least one of a horizontal header, a vertical header, and a merge header in the first header area:
merging at least a portion of adjacent regions of the same column width in at least two consecutive columns among the C columns;
Containing more,
method.
제 1 항에 있어서,
상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계는:
상기 제 1 헤더 구역 중 1 내지 R행 및 1 내지 C열의 중첩된 구역을 병합함으로써 병합형 헤더 구역을 생성하는 단계;
를 포함하는,
방법.
According to claim 1,
The step of creating at least one of a horizontal header, a vertical header, and a merge header in the first header area:
Generating a merged header section by merging overlapping sections of rows 1 to R and columns 1 to C of the first header section;
Including,
method.
제 1 항에 있어서,
상기 제 1 컨텐츠 구역 상에 셀들을 병합 또는 분할하거나, 또는 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하는 단계는:
상기 생성된 가로형 헤더, 세로형 헤더, 또는 병합형 헤더에 대응하도록 상기 제 1 컨텐츠 구역을 분할하는 단계;
를 포함하는,
방법.
According to claim 1,
Merging or splitting cells on the first content area, or setting a second header area and a second content area:
dividing the first content area to correspond to the generated horizontal header, vertical header, or merge header;
Including,
method.
제 7 항에 있어서,
상기 제 1 컨텐츠 구역 상에 셀들을 병합 또는 분할하거나, 또는 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하는 단계는:
상기 분할된 제 1 컨텐츠 구역 중 적어도 일부를 병합하는 단계;
상기 분할된 제 1 컨텐츠 구역 중 적어도 일부를 적어도 하나의 구역으로 분할하는 단계; 또는
상기 분할된 제 1 컨텐츠 구역 중 적어도 일부에 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하는 단계;
를 더 포함하는,
방법.
According to claim 7,
Merging or splitting cells on the first content area, or setting a second header area and a second content area:
merging at least a portion of the divided first content areas;
dividing at least a portion of the divided first content zones into at least one zone; or
setting a second header area and a second content area in at least some of the divided first content areas;
Containing more,
method.
제 1 항에 있어서,
상기 결정된 표 구조의 행과 열의 픽셀값을 설정하는 단계;
를 더 포함하는,
방법.
According to claim 1,
setting pixel values of rows and columns of the determined table structure;
Containing more,
method.
제 1 항에 있어서,
상기 결정된 표 구조에 포함되는 셀 중 적어도 일부 상에 텍스트를 설정하는 단계;
를 더 포함하는,
방법.
According to claim 1,
setting text on at least some of the cells included in the determined table structure;
Containing more,
method.
제 1 항에 있어서,
상기 결정된 표 구조에 포함되는 셀 중 적어도 일부 상에 스타일을 설정하는 단계;
를 더 포함하는,
방법.
According to claim 1,
setting a style on at least some of the cells included in the determined table structure;
Containing more,
method.
제 11 항에 있어서,
상기 스타일은 경계선 스타일, 텍스트 글꼴, 또는 배경색 중 적어도 하나를 포함하는,
방법.
According to claim 11,
The style includes at least one of a border style, a text font, or a background color,
method.
컴퓨터 판독가능 매체에 저장된 컴퓨터 프로그램으로서, 상기 컴퓨터 프로그램은 하나 이상의 프로세서로 하여금 표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 수행하게 하기 위한 명령들을 포함하며, 상기 방법은:
복수의 구역을 포함하는 표를 생성하는 단계;
상기 복수의 구역 상에 제 1 헤더 구역 및 제 1 컨텐츠 구역을 설정하는 단계;
상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하는 단계;
상기 제 1 컨텐츠 구역 상에 셀들을 병합 또는 분할하거나, 또는 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하는 단계; 및
적어도 상기 제 1 헤더 구역 및 상기 제 1 컨텐츠 구역에 기초하여 표 구조를 결정하는 단계;
를 포함하는,
컴퓨터 판독가능 매체에 저장된 컴퓨터 프로그램.
A computer program stored on a computer-readable medium, the computer program comprising instructions for causing one or more processors to perform a method of generating training data for a model for table recognition, the method comprising:
generating a table including a plurality of zones;
establishing a first header zone and a first content zone on the plurality of zones;
generating at least one of a horizontal header, a vertical header, and a merge header in the first header area;
merging or splitting cells on the first content area, or establishing a second header area and a second content area; and
determining a table structure based at least on the first header section and the first content section;
Including,
A computer program stored on a computer-readable medium.
표 인식을 위한 모델의 학습 데이터를 생성하는 방법을 수행하는 컴퓨팅 장치로서, 상기 컴퓨팅 장치는:
컴퓨터 실행가능한 컴포넌트들을 포함하는 메모리;
메모리에 저장된 이하의 컴퓨터 실행가능한 컴포넌트들을 실행하는 프로세서; 를 포함하고,
상기 프로세서는,
복수의 구역을 포함하는 표를 생성하고,
상기 복수의 구역 상에 제 1 헤더 구역 및 제 1 컨텐츠 구역을 설정하고,
상기 제 1 헤더 구역 상에 가로형 헤더, 세로형 헤더, 병합형 헤더 중 적어도 하나를 생성하고,
상기 제 1 컨텐츠 구역 상에 셀들을 병합 또는 분할하거나, 또는 제 2 헤더 구역 및 제 2 컨텐츠 구역을 설정하고, 그리고
적어도 상기 제 1 헤더 구역 및 상기 제 1 컨텐츠 구역에 기초하여 표 구조를 결정하는,
컴퓨팅 장치.
A computing device that performs a method of generating training data for a model for table recognition, the computing device comprising:
memory containing computer-executable components;
a processor executing the following computer-executable components stored in memory; Including,
The processor,
Create a table containing multiple zones,
Establishing a first header zone and a first content zone on the plurality of zones,
Generating at least one of a horizontal header, a vertical header, and a merge header in the first header area,
Merge or split cells on the first content area, or set a second header area and a second content area, and
determining a table structure based at least on the first header section and the first content section,
Computing device.
KR1020220054223A 2022-05-02 2022-05-02 Method and device for generating training data of model for table recognition KR20230154600A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020220054223A KR20230154600A (en) 2022-05-02 2022-05-02 Method and device for generating training data of model for table recognition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020220054223A KR20230154600A (en) 2022-05-02 2022-05-02 Method and device for generating training data of model for table recognition

Publications (1)

Publication Number Publication Date
KR20230154600A true KR20230154600A (en) 2023-11-09

Family

ID=88748104

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220054223A KR20230154600A (en) 2022-05-02 2022-05-02 Method and device for generating training data of model for table recognition

Country Status (1)

Country Link
KR (1) KR20230154600A (en)

Similar Documents

Publication Publication Date Title
Bhardwaj et al. Deep Learning Essentials: Your hands-on guide to the fundamentals of deep learning and neural network modeling
KR102313626B1 (en) Method for training neural network
KR20200116831A (en) Method for managing training data
KR102465571B1 (en) Techniques for performing subject word classification of document data
KR102478076B1 (en) Method for generating learning data for speech recognition errer detection
KR102588332B1 (en) Method for generating storyboard based on script text
KR20210023385A (en) Method for processing data by using neural network
JP2024516629A (en) Biosignal Analysis Methods
KR102406287B1 (en) super resolution imaging method using collaborative learning
KR20230062130A (en) Interview sharing and user matching platform using artificial intelligence
KR20230154600A (en) Method and device for generating training data of model for table recognition
KR20230093691A (en) Method for classifying asset file
KR20230031419A (en) Method to train model for diversity of neural network model
KR102492277B1 (en) Method for qa with multi-modal information
KR102255998B1 (en) Method for detecting on-the-fly disaster damage based on image
KR102497436B1 (en) Method for acquiring information related to a target word based on content including a voice signal
KR102662645B1 (en) Method for active learning based on curriculum
KR102669805B1 (en) Method and apparatus for recognizing korean alphabet and mathematical problem in image
KR102508654B1 (en) Method for image-based table border generation
KR102647511B1 (en) Method for reinforce learning on large language model
KR102669806B1 (en) Method and apparatus to assist in solving mathematical problem
KR102437285B1 (en) method of training object prediction models using ambiguous labels
KR102596192B1 (en) Method for predicting time the user reads the text based on artificial intelligence
KR102629022B1 (en) Scheduling method based on reinforcement learning
KR20230154601A (en) Method and device for obtaining pixel information of table