KR20200062806A - Method for recognizing characters on document images - Google Patents

Method for recognizing characters on document images Download PDF

Info

Publication number
KR20200062806A
KR20200062806A KR1020180148660A KR20180148660A KR20200062806A KR 20200062806 A KR20200062806 A KR 20200062806A KR 1020180148660 A KR1020180148660 A KR 1020180148660A KR 20180148660 A KR20180148660 A KR 20180148660A KR 20200062806 A KR20200062806 A KR 20200062806A
Authority
KR
South Korea
Prior art keywords
character
window
block
recognized
determining
Prior art date
Application number
KR1020180148660A
Other languages
Korean (ko)
Other versions
KR102122561B1 (en
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 KR1020180148660A priority Critical patent/KR102122561B1/en
Publication of KR20200062806A publication Critical patent/KR20200062806A/en
Application granted granted Critical
Publication of KR102122561B1 publication Critical patent/KR102122561B1/en

Links

Images

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/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/414Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
    • G06K9/00442
    • G06K9/3233
    • 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/14Image acquisition
    • G06V30/146Aligning or centring of the image pick-up or image-field
    • G06V30/147Determination of region of interest
    • 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/19007Matching; Proximity measures
    • 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/1916Validation; Performance evaluation
    • 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/413Classification of content, e.g. text, photographs or tables
    • G06K2209/01

Abstract

According to an embodiment of the present invention, disclosed is a computer program stored in a computer-readable storage medium. The computer program is configured to perform the following operations of: recognizing characters on a document image when executed in one or more processors of a computing device: determining a window at least partially based on a character block including one or more characters on a document image; recognizing a character by calculating the character block and the window through a character recognition model including one or more pre-trained network functions; readjusting the window based at least in part on the recognized character; and outputting a recognized character as a string by sliding the window in the character block.

Description

문서 이미지 상에서 글자를 인식하기 위한 방법{METHOD FOR RECOGNIZING CHARACTERS ON DOCUMENT IMAGES}METHOD FOR RECOGNIZING CHARACTERS ON DOCUMENT IMAGES}

본 개시는 문서 이미지 상에서 글자를 인식하기 위한 방법에 관한 것으로서, 보다 구체적으로 글자 인식 모델을 통해 윈도우를 재조정하여 문서 이미지 상에서 글자를 인식하기 위한 방법에 관한 것이다.The present disclosure relates to a method for recognizing characters on a document image, and more particularly, to a method for recognizing characters on a document image by re-adjusting a window through the character recognition model.

약국, 보험 회사, 병원 등에서 처방전에 대한 OCR 기기와 같은 광학 인식 모듈을 이용하여, 처방전에 기재된 환자 정보, 처방 내역, 수급 정보 등을 자동으로 인식하고 있다.Pharmacies, insurance companies, hospitals, etc., automatically recognize patient information, prescription details, and supply/receipt information on prescriptions using optical recognition modules such as OCR devices for prescriptions.

다만, 사람이 직접 확인해서 작업하는 것이 아니기 때문에, OCR 기기를 통한 인식은 유사도가 높은 숫자 또는 문자 간의 인식 오류가 발생할 확률이 높다. 약국의 경우, 처방전의 OCR 기기 인식 오류가 발생하게 되면 환자에게 잘못된 약을 처방하게 될 수 있고, 보험사의 경우 피보험자에게 잘못된 금액을 지급하게 될 수도 있다.However, since the person does not directly check and work, the recognition through the OCR device is likely to cause a recognition error between numbers or characters with high similarity. In the case of a pharmacy, if a prescription OCR device recognition error occurs, the patient may be prescribed the wrong medicine, and the insurer may pay the wrong amount to the insured.

따라서, OCR 기기의 인식률 제고에 대한 방안에 대한 수요가 늘어나고 있다. 이러한 수요에 따라, 특히, 딥러닝을 이용한 OCR 솔루션에 대한 인식률 제고 방안에 대한 연구가 증가하고 있다.Accordingly, there is an increasing demand for a method for raising the recognition rate of OCR devices. In response to these demands, in particular, research is being conducted on ways to increase awareness of OCR solutions using deep learning.

대한민국 등록특허 제10-0717734호는 광학 마크 또는 문자 판독기의 입력 오류 방지 장치를 개시한다.Republic of Korea Patent Registration No. 10-0717734 discloses an input error prevention device for an optical mark or text reader.

본 개시는 전술한 배경기술에 대응하여 안출된 것으로, 문서 이미지 상에서 글자를 인식하기 위한 방법을 제공하기 위함이다.The present disclosure has been devised in correspondence with the background art described above, and is intended to provide a method for recognizing characters on a document image.

전술한 바와 같은 과제를 실현하기 위한 본 개시의 일 실시예에 따라 컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램이 개시된다. 상기 컴퓨터 프로그램은 컴퓨팅 장치의 하나 이상의 프로세서에서 실행되는 경우 문서 이미지 상에서 글자를 인식하기 위한 이하의 동작들을 수행하도록 하며 상기 동작들은 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하는 동작, 상기 문자 블록 및 상기 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식하는 동작, 상기 인식된 글자에 적어도 부분적으로 기초하여 상기 윈도우를 재조정하는 동작 및 상기 문자 블록 내에서 상기 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력하는 동작을 포함할 수 있다.Disclosed is a computer program stored in a computer readable storage medium in accordance with one embodiment of the present disclosure for realizing the above-described problems. The computer program, when executed on one or more processors of a computing device, performs the following operations for recognizing a character on a document image, the operations being based at least in part on a character block containing one or more characters on the document image an operation of determining a window, an operation of recognizing a character by calculating the character block and the window through a character recognition model including one or more pre-trained network functions, and the window based at least in part on the recognized character It may include the operation of re-adjusting and outputting the recognized character as a character string by sliding the window in the character block.

대안적으로, 상기 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하는 동작은 상기 문서 이미지 상에서 색상 값을 가지는 픽셀을 기준으로 상기 문자 블록을 결정하는 동작, 상기 문자 블록에서 일 방향의 픽셀 라인 중 색상 값을 가지는 픽셀이 사전 결정된 비율 이하인 픽셀 라인을 기준선으로 결정하는 동작 및 상기 기준선에 적어도 부분적으로 기초하여 상기 윈도우를 결정하는 동작을 포함할 수 있다.Alternatively, determining a window based at least in part on a character block containing one or more characters on the document image may include determining the character block based on a pixel having a color value on the document image The method may include determining a pixel line having a color value of a pixel line in one direction of the character block as a reference line, and determining the window based at least in part on the reference line.

대안적으로, 상기 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하는 동작은 상기 문서 이미지 상의 연결 요소 추출을 통해 상기 문자 블록을 결정하는 동작, 상기 문자 블록 상에서 글자가 추출되는지 여부를 판단하는 동작 및 상기 문자 블록 상에서 글자가 추출되는 경우, 상기 글자의 크기에 대응되도록 상기 윈도우를 결정하는 동작을 포함할 수 있다.Alternatively, determining a window based at least in part on a character block containing one or more characters on the document image may include determining the character block through extraction of connection elements on the document image, the character It may include an operation of determining whether a character is extracted on a block, and when the character is extracted on the character block, determining the window to correspond to the size of the character.

대안적으로, 상기 문서 이미지 상의 연결 요소 추출을 통해 상기 문자 블록을 결정하는 동작은 상기 문서 이미지 상의 연결 요소를 각각 추출한 단위 문자 블록을 결정하는 동작 및 상기 단위 문자 블록 중 사전 설정된 거리 이내에 위치한 상기 단위 문자 블록을 상기 하나의 문자 블록으로 그룹화하는 동작을 포함할 수 있다.Alternatively, the operation of determining the text block through the extraction of the connection elements on the document image may include the operation of determining the unit character blocks respectively extracting the connection elements on the document image and the unit located within a predetermined distance among the unit character blocks. And grouping the text blocks into the one text block.

대안적으로, 상기 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하는 동작은 상기 문서 이미지의 컨텍스트 분석을 통해 상기 문자 블록에 위치하는 글자의 속성을 결정하는 동작 및 상기 글자의 속성에 기초하여 상기 윈도우를 결정하는 동작을 포함할 수 있다.Alternatively, determining a window based at least in part on a character block containing one or more characters on the document image determines an attribute of the character located in the character block through context analysis of the document image And determining the window based on an attribute to be performed and the character.

대안적으로, 상기 문서 이미지의 컨텍스트 분석을 통해 상기 문자 블록에 위치하는 글자의 속성을 결정하는 동작은 상기 문자 블록의 수직, 또는 수평에 위치한 다른 문자 블록에서 인식된 인식 단어에 대한 의미분석을 수행하는 동작, 상기 인식 단어에 대한 의미분석 결과에 기초하여, 상기 문자 블록의 항목을 결정하는 동작 및 상기 항목과 매칭되는 글자의 종류를 상기 글자의 항목과 속성으로 결정하는 동작을 포함하고, 그리고 상기 글자의 속성에 기초하여 상기 윈도우를 결정하는 동작은 상기 윈도우를 상기 항목과 매칭되는 글자의 종류에 기초하여 결정하는 동작을 포함할 수 있다.Alternatively, the operation of determining the attribute of the character located in the character block through the context analysis of the document image performs semantic analysis on the recognized word recognized in another character block located vertically or horizontally in the character block. And based on a result of semantic analysis of the recognized word, determining an item of the character block and determining a type of character matching the item as an item and attribute of the character, and Determining the window based on the attribute of the letter may include determining the window based on the type of the letter matching the item.

대안적으로, 상기 문자 블록 및 상기 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식하는 동작은 상기 문자 블록을 상기 윈도우를 기준으로 크롭(crop)하여 글자 이미지를 생성하는 동작 및 상기 글자 이미지를 상기 글자 인식 모델을 통해 연산함으로써 글자를 인식하는 동작을 포함할 수 있다.Alternatively, the operation of recognizing a character by calculating the character block and the window through a character recognition model including one or more pre-trained network functions crops the character block based on the window to generate a character image. It may include an operation of generating and recognizing a character by calculating the character image through the character recognition model.

대안적으로, 상기 글자 이미지를 상기 글자 인식 모델을 통해 연산함으로써 글자를 인식하는 동작은 상기 글자 이미지를 상기 글자 인식 모델을 통해 연산함으로써 인식되는 글자 및 상기 글자의 인식 신뢰도를 출력하는 동작, 상기 글자의 인식 신뢰도와 사전 결정된 기준 인식 신뢰도에 기초하여 상기 글자 이미지의 글자가 적절하게 인식되었는지 여부를 판단하는 동작 및 상기 글자 이미지의 글자가 적절하게 인식되었다고 판단되는 경우, 상기 글자를 출력하는 동작을 포함할 수 있다.Alternatively, the operation of recognizing a character by calculating the character image through the character recognition model may include outputting a character recognized by calculating the character image through the character recognition model and recognition reliability of the character, the character And determining whether the characters of the character image are properly recognized based on the recognition reliability of the and the predetermined reference recognition reliability, and outputting the characters when it is determined that the characters of the character image are properly recognized. can do.

대안적으로, 상기 글자의 인식 신뢰도와 사전 결정된 기준 인식 신뢰도에 기초하여 상기 글자 이미지의 글자가 적절하게 인식되었는지 여부를 판단하는 동작은 상기 글자의 인식 신뢰도가 사전 결정된 기준 인식 신뢰도 미만인 경우, 상기 윈도우의 크기 및 모양 중 적어도 하나를 변경하는 동작을 포함할 수 있다.Alternatively, the operation of determining whether a character of the character image is properly recognized based on the recognition reliability of the character and a predetermined reference recognition reliability, when the recognition reliability of the character is less than a predetermined reference recognition reliability, the window It may include the operation of changing at least one of the size and shape of the.

대안적으로, 상기 문자 블록 내에서 상기 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력하는 동작은 상기 문자 블록 내에서 상기 윈도우를 이동시키기 위한 슬라이딩 방향을 결정하는 동작, 상기 윈도우 및 상기 슬라이딩 방향에 기초하여 생성되는 하나 이상의 글자 이미지 상에서 글자를 인식하는 동작 및 상기 문자 블록 내의 인식된 상기 글자의 위치 및 순서 중 적어도 하나에 기초하여 상기 문자열을 생성하는 동작을 포함할 수 있다.Alternatively, sliding the window in the character block and outputting the recognized character as a character string determines the sliding direction for moving the window in the character block, the window and the sliding The method may include recognizing a character on one or more character images generated based on a direction, and generating the character string based on at least one of the recognized position and order of the characters in the character block.

대안적으로, 상기 문자 블록 내에서 상기 윈도우를 이동시키기 위한 슬라이딩 방향을 결정하는 동작은 상기 문자 블록의 모양에 기초하여 상기 슬라이딩 방향을 결정하는 동작을 포함할 수 있다.Alternatively, the operation of determining the sliding direction for moving the window in the character block may include the operation of determining the sliding direction based on the shape of the character block.

대안적으로, 상기 문자 블록 내의 인식된 상기 글자의 위치 및 순서 중 적어도 하나에 기초하여 상기 문자열을 생성하는 동작은 상기 문자열이 포함하는 하나 이상의 글자를 의미 단위로 그룹화하여 하나 이상의 인식 단어를 추출하는 동작 및 상기 인식 단어를 메모리에 저장된 하나 이상의 기준 단어와 비교한 결과에 기초하여, 상기 문자열이 포함하는 하나 이상의 글자에 대한 상기 윈도우를 변경하거나, 또는, 상기 슬라이딩 방향을 변경하는 동작을 포함할 수 있다.Alternatively, the operation of generating the character string based on at least one of the recognized position and order of the characters in the character block extracts one or more recognized words by grouping one or more characters included in the character string into semantic units. Based on an operation and a result of comparing the recognized word with one or more reference words stored in memory, the method may include changing the window for one or more letters included in the character string, or changing the sliding direction. have.

또한, 본 개시의 다른 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 방법이 개시된다. 상기 방법은 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하는 단계, 상기 문자 블록 및 상기 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식하는 단계, 상기 인식된 글자에 적어도 부분적으로 기초하여 상기 윈도우를 재조정하는 단계 및 상기 문자 블록 내에서 상기 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력하는 단계를 포함할 수 있다.Also disclosed is a method for recognizing text on a document image according to another embodiment of the present disclosure. The method includes determining a window based at least in part on a character block containing one or more characters on a document image, and a character recognition model comprising the character block and one or more network functions pre-trained with the window. Recognizing a character by calculating through, Re-adjusting the window based at least in part on the recognized character, and sliding the window in the character block to output the recognized character as a character string. can do.

그리고, 본 개시의 다른 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 컴퓨팅 장치가 개시된다. 상기 컴퓨팅 장치는 하나 이상의 코어를 포함하는 프로세서 및 메모리를 포함하고, 상기 프로세서는 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하고, 상기 문자 블록 및 상기 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식하고, 상기 인식된 글자에 적어도 부분적으로 기초하여 상기 윈도우를 재조정하고, 그리고 상기 문자 블록 내에서 상기 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력할 수 있다.Then, a computing device for recognizing characters on a document image according to another embodiment of the present disclosure is disclosed. The computing device includes a processor and memory comprising one or more cores, the processor determining a window based at least in part on a character block containing one or more characters on a document image, the character block and the Recognizing a character by calculating a window through a character recognition model including one or more pre-trained network functions, re-adjusting the window based at least in part on the recognized character, and sliding the window within the character block (sliding) the recognized characters can be output as a string.

본 개시는 문서 이미지 상에서 글자를 인식하기 위한 방법을 제공할 수 있다.The present disclosure can provide a method for recognizing text on a document image.

도 1은 본 개시의 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 동작을 수행하는 컴퓨팅 장치의 블록 구성도를 도시한 도면이다.
도 2는 본 개시의 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 방법에 관한 예시를 도시한 도면이다.
도 3은 본 개시의 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 방법의 순서도이다.
도 4는 본 개시의 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 방법을 구현하기 위한 로직을 도시한 블록 구성도이다.
도 5는 본 개시의 일 실시예에 따른 컴퓨팅 장치의 블록 구성도이다.
1 is a block diagram of a computing device performing an operation for recognizing a character on a document image according to an embodiment of the present disclosure.
2 is a diagram illustrating an example of a method for recognizing characters on a document image according to an embodiment of the present disclosure.
3 is a flowchart of a method for recognizing characters on a document image according to an embodiment of the present disclosure.
4 is a block diagram illustrating logic for implementing a method for recognizing characters on a document image according to an embodiment of the present disclosure.
5 is a block diagram of a computing device according to an embodiment of the present disclosure.

다양한 실시예들이 이제 도면을 참조하여 설명되며, 전체 도면에서 걸쳐 유사한 도면번호는 유사한 구성요소를 나타내기 위해서 사용된다. 본 명세서에서, 다양한 설명들이 본 개시의 이해를 제공하기 위해서 제시된다. 그러나 이러한 실시예들은 이러한 구체적인 설명 없이도 실행될 수 있음이 명백하다. Various embodiments are now described with reference to the drawings, and like reference numbers throughout the drawings are used to denote similar elements. In this specification, various descriptions are presented to provide an understanding of the present disclosure. However, it is clear that these embodiments can be practiced without these specific details.

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

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

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

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

본 개시의 일 실시예에서 서버는 서버의 서버 환경을 수행하기 위한 다른 구성들이 포함될 수도 있다. 서버는 임의의 형태의 장치는 모두 포함할 수 있다. 서버는 디지털 기기로서, 랩탑 컴퓨터, 노트북 컴퓨터, 데스크톱 컴퓨터, 웹 패드, 이동 전화기와 같이 프로세서를 탑재하고 메모리를 구비한 연산 능력을 갖춘 디지털 기기일 수 있다. 서버는 서비스를 처리하는 웹 서버일 수 있다. 전술한 서버의 종류는 예시일 뿐이며 본 개시는 이에 제한되지 않는다. In one embodiment of the present disclosure, the server may include other configurations for performing the server environment of the server. The server can include any type of device. The server is a digital device, and may be a digital device equipped with a processor and having computing power, such as a laptop computer, a notebook computer, a desktop computer, a web pad, and a mobile phone. The server may be a web server that processes services. The above-described types of servers are only examples, and the present disclosure is not limited thereto.

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

본 명세서에서 네트워크 함수는 하나 이상의 뉴럴 네트워크를 포함할 수도 있으며, 이 경우 네트워크 함수의 출력은 하나 이상의 뉴럴 네트워크의 출력의 앙상블(ensemble)일 수 있다. 모델은 다른 모델과 함께 데이터의 처리를 수행할 수 있다. 모델은 다른 모델과 직렬 또는 병렬로 상호 연결될 수 있다.In this specification, the network function may include one or more neural networks, and in this case, the output of the network function may be an ensemble of the output of the one or more neural networks. The model can perform data processing with other models. The models can be interconnected in series or in parallel with other models.

도 1은 본 개시의 일 실시예에 따른 문서 이미지(200) 상에서 글자를 인식하기 위한 동작을 수행하는 컴퓨팅 장치(100)의 블록 구성도를 도시한 도면이다.1 is a block diagram of a computing device 100 performing an operation for recognizing characters on a document image 200 according to an embodiment of the present disclosure.

도 1에 도시된 컴퓨팅 장치(100)의 구성은 간략화 하여 나타낸 예시일 뿐이다. 본 개시의 일 실시예에서 컴퓨팅 장치(100)는 컴퓨팅 장치(100)의 컴퓨팅 환경을 수행하기 위한 다른 구성들이 포함될 수 있다.The configuration of the computing device 100 illustrated in FIG. 1 is merely an example for simplicity. In one embodiment of the present disclosure, the computing device 100 may include other configurations for performing the computing environment of the computing device 100.

본 개시의 일 실시예에 따른 문서 이미지(200) 상에서 글자를 인식하기 위한 방법을 위한 컴퓨팅 장치(100)는 하나 이상의 글자를 포함하는 문서 이미지(200) 상에서 글자 인식 모델을 통해 글자를 인식하기 위해 사용될 수 있다.The computing device 100 for a method for recognizing a character on a document image 200 according to an embodiment of the present disclosure is configured to recognize a character through a character recognition model on the document image 200 including one or more characters Can be used.

본 개시의 일 실시예에 따른 문서 이미지(200) 상에서 글자를 인식하기 위한 방법을 위한 컴퓨팅 장치(100)는 네트워크부(110), 프로세서(120) 및 메모리(130)를 포함할 수 있다. The computing device 100 for a method for recognizing characters on a document image 200 according to an embodiment of the present disclosure may include a network unit 110, a processor 120, and a memory 130.

네트워크부(110)는 본 개시의 일 실시예에 따른 문서 이미지(200) 상에서 글자를 인식하기 위한 방법을 수행하기 위한 데이터 등을 다른 컴퓨팅 장치, 서버 등과 송수신할 수 있다. 네트워크부(110)는 인식 단어의 항목과 속성의 연관성 정보를 서버로부터 수신할 수 있다. 또한, 네트워크부(110)는 복수의 컴퓨팅 장치 사이의 통신을 가능하게 하여 복수의 컴퓨팅 장치 각각에서 모델의 학습이 분산 수행되도록 할 수 있다. 네트워크부(110)는 복수의 컴퓨팅 장치 사이의 통신을 가능하게 하여 모델을 이용한 이미지의 글자 인식을 분산 처리할 수 있도록 할 수 있다.The network unit 110 may transmit/receive data, etc. for performing a method for recognizing characters on the document image 200 according to an embodiment of the present disclosure to other computing devices, servers, and the like. The network unit 110 may receive association information of items and attributes of recognized words from a server. In addition, the network unit 110 may enable communication between a plurality of computing devices so that learning of a model is distributed in each of the plurality of computing devices. The network unit 110 may enable communication between a plurality of computing devices so that character recognition of images using a model can be distributed.

프로세서(120)는 하나 이상의 코어로 구성될 수 있으며, 컴퓨팅 장치의 중앙 처리 장치(CPU: central processing unit), 범용 그래픽 처리 장치 (GPGPU: general purpose graphics processing unit), 텐서 처리 장치(TPU: tensor processing unit) 등의 데이터 분석, 딥러닝을 위한 프로세서를 포함할 수 있다. 프로세서(120)는 메모리(130)에 저장된 컴퓨터 프로그램을 판독하여 본 개시의 일 실시예에 따른 문서 이미지(200) 상에서 글자를 인식하기 위한 방법을 수행할 수 있다. 본 개시의 일 실시예에 따라 프로세서(120)는 신경망의 학습을 위한 계산을 수행할 수 있다.The processor 120 may be composed of one or more cores, a central processing unit (CPU) of a computing device, a general purpose graphics processing unit (GPGPU), and a tensor processing unit (TPU). unit), and a processor for data analysis and deep learning. The processor 120 may read a computer program stored in the memory 130 and perform a method for recognizing characters on the document image 200 according to an embodiment of the present disclosure. According to an embodiment of the present disclosure, the processor 120 may perform calculation for learning a neural network.

프로세서(120)의 CPU, GPGPU, 및 TPU 중 적어도 하나가 모델의 학습을 처리할 수 있다. 또한, 본 개시의 일 실시예에 따른 컴퓨팅 장치에서 수행되는 컴퓨터 프로그램은 CPU, GPGPU 또는 TPU 실행가능 프로그램일 수 있다.At least one of the CPU, GPGPU, and TPU of the processor 120 may process training of the model. Further, the computer program executed in the computing device according to an embodiment of the present disclosure may be a CPU, GPGPU, or TPU executable program.

본 개시의 일 실시예에서 컴퓨팅 장치(100)는 CPU, GPGPU, 및 TPU 중 적어도 하나를 이용하여 모델을 분산하여 처리할 수 있다. 또한 본 개시의 일 실시예에서 컴퓨팅 장치(100)는 다른 컴퓨팅 장치와 함께 모델을 분산하여 처리할 수 있다.In one embodiment of the present disclosure, the computing device 100 may distribute and process a model using at least one of a CPU, GPGPU, and TPU. In addition, in one embodiment of the present disclosure, the computing device 100 may distribute and process a model together with other computing devices.

이하에서는, 프로세서(120)가 글자 인식에 사용하는 윈도우(window)를 결정하는 방법에 관하여 설명한다.Hereinafter, a method of determining a window used by the processor 120 for character recognition will be described.

프로세서(120)는 문서 이미지(200) 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우를 결정할 수 있다. 본 개시에서 윈도우는 문서 이미지에서 글자를 인식하기 위한 이미지 처리의 기본 단위로서, 문서 이미지의 적어도 일부 영역을 지정하는 단위가 될 수 있다. 본 개시에서 문서 이미지는 윈도우 단위로 크롭핑(cropping)되어 글자 인식 모델에 입력될 수 있다.문서 이미지(200)는 하나 이상의 인식 대상 글자를 포함하는 문서에 대한 이미지일 수 있다. 또한, 문서 이미지(200)는 하나 이상의 글자 이미지를 포함할 수 있다. 글자 이미지는 하나의 글자를 포함하는 이미지일 수 있다. 예를 들어, 글자 이미지는 "가"라는 글자 하나를 포함하고 있는 이미지일 수 있다. 프로세서(120)는 네트워크부(110)를 통해 문서 이미지(200)를 수신할 수도 있고, 카메라부(미도시)를 통해 문서 이미지(200)를 수신할 수도 있다. 예를 들어, 글자 인식 모델을 약국에서 사용하는 경우, 문서 이미지(200)는 처방전일 수도 있고, 보험회사에서 사용하는 경우, 문서 이미지(200)는 진료비 세부내역서일 수도 있다. 전술한 문서 이미지(200) 및 글자 이미지에 대한 기재는 예시일 뿐이며 본 개시는 이에 제한되지 않는다.The processor 120 may determine the window based at least in part on a character block including one or more letters on the document image 200. In the present disclosure, a window is a basic unit of image processing for recognizing characters in a document image, and may be a unit that designates at least a portion of a document image. In the present disclosure, a document image may be cropped in units of windows and input to a character recognition model. The document image 200 may be an image of a document including one or more characters to be recognized. Also, the document image 200 may include one or more character images. The letter image may be an image including one letter. For example, the letter image may be an image including one letter “A”. The processor 120 may receive the document image 200 through the network unit 110 or may receive the document image 200 through a camera unit (not shown). For example, when the character recognition model is used in a pharmacy, the document image 200 may be a prescription, or when used by an insurance company, the document image 200 may be a detailed statement of medical expenses. The descriptions of the document image 200 and the text image described above are only examples, and the present disclosure is not limited thereto.

프로세서(120)는 수신한 문서 이미지(200)에서 글자 인식에 사용될 윈도우를 결정할 수 있다. 윈도우의 결정에는 픽셀 기준선 인식, 연결 요소 추출 및 컨텍스트 인식 등의 방법이 사용될 수 있다.The processor 120 may determine a window to be used for character recognition in the received document image 200. Methods such as pixel baseline recognition, connection element extraction, and context recognition may be used to determine the window.

먼저 본 명세서에서 문자 블록은 문서 이미지(200) 상에서 글자가 존재할 것으로 예측되는 픽셀의 그룹일 수 있다. 또한, 프로세서(120)는 색상 값을 가지는 픽셀들의 기준으로 전역 밀집도(global crowdedness) 분석을 통해 탐색된 텍스트 영역을 문자 블록으로 결정할 수 있다. 여기서 전역 밀집도 분석은 허프 변환(Hough transform)을 수행하여 일정한 직선을 지나는 모든 세그멘트들의 개수를 측정하여 계산하는 방식으로 수행될 수 있다. 그리고, 프로세서(120)는 각 세그멘트 단위로 밀집도를 계산하여 임계값 이상의 밀집도를 가지는 영역을 문자 블록으로 결정할 수 있다.First, in the present specification, the character block may be a group of pixels that are expected to have characters on the document image 200. In addition, the processor 120 may determine the text area searched through the global crowdedness analysis as a character block based on pixels having color values. Here, the global density analysis It may be performed by performing a Hough transform to measure and calculate the number of all segments passing a certain straight line. In addition, the processor 120 may determine a region having a density higher than or equal to a threshold as a character block by calculating the density in units of each segment.

보다 구체적으로, 프로세서(120)는 문서 이미지(200) 상에서 색상 값을 가지는 픽셀을 기준으로 문자 블록을 결정할 수 있다. 여기서 문서 이미지(200)는 각각 하나의 값을 가지는 복수 개의 픽셀들이 격자 구조로 배치되어 구성되는 이미지일 수 있다. 그리고, 각각의 픽셀은 색상을 의미하는 값, 또는 이진화 처리된 이후의 0, 1 값을 포함할 수 있다. 프로세서(120)는 색상 값을 가지는 픽셀을 기준으로 사전 설정된 거리의 이내의 픽셀을 문자 블록으로 결정할 수 있다. More specifically, the processor 120 may determine a character block based on a pixel having a color value on the document image 200. Here, the document image 200 may be an image formed by arranging a plurality of pixels each having a single value in a grid structure. In addition, each pixel may include a value representing color or 0 and 1 values after binarization. The processor 120 may determine a pixel within a preset distance as a character block based on a pixel having a color value.

그리고, 프로세서(120)는 문자 블록에서 일 방향의 픽셀 라인 중 색상 값을 가지는 픽셀이 사전 결정된 비율 이하인 픽셀 라인을 기준선으로 결정할 수 있다. 프로세서(120)는 문자 블록의 세로 방향으로 배치되는 하나의 픽셀 라인에서 값이 존재하는 픽셀을 카운팅 할 수 있다. 그리고, 프로세서(120)는 하나의 픽셀 라인에 포함되는 픽셀 개수 중 값이 있는 픽셀의 개수를 통해, 색상 값을 가지는 픽셀의 비율을 산출할 수 있다. 그리고, 프로세서(120)는 메모리(130)에 저장된 사전 결정된 비율(예컨대, 5%) 이하의 픽셀 라인을 기준선으로 결정할 수 있다. 이에 따라, 프로세서(120)는 문자 블록 상에 존재하는 하나 이상의 기준선을 결정할 수 있다. In addition, the processor 120 may determine, as a reference line, a pixel line in which a pixel having a color value among pixel lines in one direction in a character block is equal to or less than a predetermined ratio. The processor 120 may count pixels having a value in one pixel line arranged in the vertical direction of the character block. Then, the processor 120 may calculate a ratio of pixels having a color value through the number of pixels having a value among the number of pixels included in one pixel line. In addition, the processor 120 may determine a pixel line of a predetermined ratio (eg, 5%) or less stored in the memory 130 as a reference line. Accordingly, the processor 120 may determine one or more reference lines present on the character block.

본 개시의 일 실시예에 따른 프로세서(120)는 문서 이미지(200)에 대한 이진화 처리를 수행할 수 있다. 보다 구체적으로, 프로세서(120)는 문서 이미지(200)에 대한 선, 그림, 표 등을 제거할 수 있다. 또한, 프로세서(120)는 문서 이미지(200)에 대한 노이즈 제거를 위하여 문서 이미지(200)에 대한 이진화 처리를 수행할 수 있다. 여기서 이진화 처리는 사전 결정된 임계값 이상의 선명도를 가지는 경우 1로 처리하고, 사전 결정된 임계값 미만의 선명도를 가지는 경우 0으로 처리하는 것을 의미할 수 있다. 이에 따라, 프로세서(120)는 문서 이미지(200) 상에서 이진화 처리에서 1로 남겨진 픽셀을 색상 값을 가진다고 판단할 수 있다. 그리고, 프로세서(120)는 일 방향(예컨대, 문서 이미지(200)의 세로 방향)의 픽셀 라인 중 1을 값으로 가지는 픽셀의 비율에 기초하여 기준선을 생성할 수 있다.The processor 120 according to an embodiment of the present disclosure may perform binarization processing on the document image 200. More specifically, the processor 120 may remove lines, pictures, tables, and the like of the document image 200. Also, the processor 120 may perform binarization processing on the document image 200 in order to remove noise from the document image 200. Here, the binarization process may mean processing as 1 when the sharpness is greater than or equal to the predetermined threshold, and processing as 0 when the sharpness is lower than the predetermined threshold. Accordingly, the processor 120 may determine that the pixel left as 1 in the binarization process on the document image 200 has a color value. In addition, the processor 120 may generate a reference line based on a ratio of pixels having a value of 1 among pixel lines in one direction (eg, a vertical direction of the document image 200).

그리고, 프로세서(120)는 기준선에 적어도 부분적으로 기초하여 윈도우를 결정할 수 있다. 또한, 프로세서(120)는 문자 블록 내에서 결정된 기준선 및 문자 블록의 외각선에 기초하여 윈도우를 결정할 수 있다. 보다 구체적으로, 프로세서(120)는 문자 블록 내에서 색상 값을 가지는 픽셀의 비율이 기준보다 낮은 세로 방향 픽셀 라인을 기준선을 결정할 수 있다. 그리고, 프로세서(120)는 상기 기준선과 문자 블록의 외각선(예컨대, 최상단 픽셀 라인, 최하단 픽셀 라인)에 기초하여 사각형 형태의 윈도우를 결정할 수 있다. 또한, 프로세서(120)는 문자 블록 내의 기준선이 하나만 결정되는 경우, 문자 블록의 측면 외각선(예컨대, 좌측 픽셀 라인), 상/하면 외각선 및 기준선에 기초하여 사각형의 윈도우를 결정할 수 있다. 전술한 외각선, 기준선 및 윈도우의 형태의 기재는 예시일 뿐, 본 개시는 이에 제한되지 않는다.Then, the processor 120 may determine the window based at least in part on the reference line. Also, the processor 120 may determine a window based on the reference line determined within the text block and the outline of the text block. More specifically, the processor 120 may determine a reference line of a vertical pixel line in which a ratio of pixels having color values in a character block is lower than a reference. In addition, the processor 120 may determine a window having a rectangular shape based on the reference line and the outer line of the character block (eg, a topmost pixel line and a bottommost pixel line). In addition, when only one reference line in the character block is determined, the processor 120 may determine a window of a rectangle based on a side outline (eg, a left pixel line), an upper/lower outline, and a reference line of the character block. The above-described outlines of the outline, reference line, and window are merely examples, and the present disclosure is not limited thereto.

예를 들어, 프로세서(120)는 도 2에 도시되는 바와 같이, 프로세서(120)는 문자 블록(210) 내의 기준선(230)을 결정할 수 있다. 프로세서(120)는 색상 값을 가지는 픽셀의 비율이 기준보다 낮은 세로 방향 픽셀 라인을 기준선(231, 232, 233, 234)로 결정할 수 있다. 이에 따라, 프로세서(120)는 문자 블록(210)을 기준으로 제 1 기준선(231), 제 2 기준선(232), 제 3 기준선(233) 및 제 4 기준선(234)을 결정할 수 있다. 또한, 프로세서(120)는 문자 블록(210)의 상단 외각선(221) 및 문자 블록의 하단 외각선(222)을 결정할 수 있다. 그리고, 프로세서(120)는 문자 블록(210)의 외각선(221, 222) 및 기준선(230)에 기초하여 3개의 윈도우(240)를 결정할 수 있다. 전술한 프로세서(120)의 윈도우 결정은 예시일 뿐, 본 개시는 이에 제한되지 않는다.For example, as illustrated in FIG. 2, the processor 120 may determine the reference line 230 in the character block 210. The processor 120 may determine a vertical pixel line in which a ratio of pixels having a color value is lower than a reference as the reference lines 231, 232, 233, and 234. Accordingly, the processor 120 may determine the first reference line 231, the second reference line 232, the third reference line 233, and the fourth reference line 234 based on the character block 210. Also, the processor 120 may determine the upper outer line 221 of the character block 210 and the lower outer line 222 of the character block 210. Then, the processor 120 may determine three windows 240 based on the outer lines 221 and 222 and the reference line 230 of the character block 210. The above-described window determination of the processor 120 is only an example, and the present disclosure is not limited thereto.

추가적으로, 프로세서(120)는 문자 블록의 외각선(220)에 기초하여 윈도우(240)를 생성할 수 있다. 보다 구체적으로, 프로세서(120)는 문자 블록의 외각선(220)이 사각형 모양일 경우, 짧은 길이의 외각선(220)(예컨대, 문자 블록 좌측면의 세로 픽셀 라인)을 기준으로 긴 길이의 외각선(220)(예컨대, 문자 블록 상면의 가로 픽셀 라인)을 절단할 수 있다. 이에 따라, 프로세서(120)는 문자 블록의 짧은 길이 외각선(220)을 한 변으로 하는 정사각형의 윈도우(240)를 결정할 수도 있다.Additionally, the processor 120 may generate the window 240 based on the outline 220 of the character block. More specifically, when the outer line 220 of the character block has a square shape, the processor 120 may have a long length outer line based on the short length outer line 220 (eg, a vertical pixel line on the left side of the character block). The line 220 (eg, a horizontal pixel line on the top of a character block) may be cut. Accordingly, the processor 120 may determine the square window 240 having the short length outer line 220 of the character block as one side.

또한, 프로세서(120)는 문서 이미지(200) 상의 연결 요소 추출을 통해 문자 블록을 결정할 수 있다. 프로세서(120)는 문서 이미지(200) 상에서 색상 값을 가지는 픽셀들 중 연속적으로 배치되는 픽셀을 연결 요소로 추출할 수 있다. 그리고, 프로세서(120)는 각 연결요소 중 병합 가능한 요소들을 허프변환(hough transform), 런-길이 스무딩(run-length smoothing), 모폴로지 연산(morphological operation) 등의 다양한 방식을 통해 병합할 수 있다. 그리고, 프로세서(120)는 각각의 연결요소들을 포함하는 임의의 형태로 구성되는 영역을 설정하여 문자 블록을 결정할 수 있다. 예를 들어, 프로세서(120)는 하나의 연결요소가 추출된 픽셀을 포함할 수 있는 직사각형 형태의 영역을 문자 블록으로 결정할 수 있다. 전술한 프로세서(120)의 문자 블록 결정의 기재는 예시일 뿐, 본 개시는 이에 제한되지 않는다.Also, the processor 120 may determine a character block through extraction of connection elements on the document image 200. The processor 120 may extract, as a connection element, pixels continuously arranged among pixels having color values on the document image 200. In addition, the processor 120 may merge elements that can be merged among the connection elements through various methods such as a hough transform, a run-length smoothing, and a morphological operation. In addition, the processor 120 may determine a character block by setting an area configured in an arbitrary shape including respective connection elements. For example, the processor 120 may determine an area of a rectangular shape that may include a pixel from which one connection element is extracted as a character block. The description of the character block determination of the above-described processor 120 is merely an example, and the present disclosure is not limited thereto.

그리고, 프로세서(120)는 문자 블록 상에서 글자가 추출되는지 여부를 판단할 수 있다. 보다 구체적으로, 프로세서(120)는 문서 이미지(200) 상에서 하나 이상의 문자 블록을 결정할 수 있다. 그리고, 프로세서(120)는 각각의 문자 블록을 글자 인식 모델을 통해 연산함으로써 글자가 추출되는지 여부를 판단할 수 있다. 여기서 글자 인식 모델은 각각의 문자 블록을 입력값으로 하고, 상기 문자 블록 내에서 추출되는 글자 및 글자의 인식 신뢰도를 출력값으로 할 수 있다. 보다 구체적으로 글자 인식 모델은 각각의 문자 블록을 윈도우 단위로 크롭핑 한 이미지를 입력 값으로 할 수 있다 이에 따라, 프로세서(120)는 추출된 글자의 인식 신뢰도가 사전 결정된 기준 인식 신뢰도 이상인지 여부에 기초하여, 문자 블록 상에서 어떤 글자가 추출될지를 판단할 수 있다. Then, the processor 120 may determine whether a character is extracted on the character block. More specifically, the processor 120 may determine one or more character blocks on the document image 200. In addition, the processor 120 may determine whether a character is extracted by calculating each character block through a character recognition model. Here, the character recognition model may use each character block as an input value, and the recognition reliability of characters and characters extracted from the character block as an output value. More specifically, the character recognition model may use an image cropped for each character block in units of windows as an input value. Accordingly, the processor 120 determines whether the recognition reliability of the extracted characters is greater than or equal to a predetermined reference recognition reliability. Based on this, it is possible to determine which characters are to be extracted on the character block.

예를 들어, 프로세서(120)는 도 2에 도시된 바와 같이, "진찰료"라는 문자 블록(210)을 글자 인식 모델에 입력하여 연산함으로써, "진"에 대한 인식 신뢰도 "92", "찰"에 대한 인식 신뢰도 "88" 및 "표"에 대한 인식 신뢰도 "34"를 출력할 수 있다. 그리고, 프로세서(120)는 사전 결정된 기준 인식 신뢰도 "85"에 기초하여, "진찰표"에서 "진"및 "찰"가 추출된다고 결정할 수 있다. 그리고, 프로세서(120)는 "표"에 대한 인식 신뢰도가 기준 인식 신뢰도 이하라는 것에 기초하여, "표"에 대한 글자가 잘못 인식되었다고 판단할 수 있다. 이에 따라, 프로세서(120)는 문자 블록(210)에 대해서 "진찰"이라는 글자만을 추출할 수 있다. 전술한 글자의 기재, 인식 신뢰도 및 기준 인식 신뢰도의 수치 한정은 예시일 뿐, 본 개시는 이에 제한되지 않는다.For example, as illustrated in FIG. 2, the processor 120 inputs and calculates a character block 210 called “examination fee” into the character recognition model, thereby recognizing reliability of “92” and “examination” for “true”. The recognition reliability for "88" and the recognition reliability for "table" "34" may be output. Then, the processor 120 may determine that “true” and “chalk” are extracted from the “examination table” based on the predetermined reference recognition reliability “85”. In addition, the processor 120 may determine that the letters for the “table” are incorrectly recognized based on that the recognition reliability for the “table” is less than or equal to the reference recognition reliability. Accordingly, the processor 120 may extract only the word “examination” with respect to the character block 210. The description of the above-described letters, numerical limits of recognition reliability and reference recognition reliability are merely examples, and the present disclosure is not limited thereto.

또한, 프로세서(120)는 문자 블록(210) 상에서 글자가 추출되는 경우, 글자의 크기에 대응되도록 윈도우(240)를 결정할 수 있다. 보다 구체적으로, 프로세서(120)는 문자 블록(210) 내에서 추출된 글자의 크기를 인식할 수 있다. 그리고, 프로세서(120)는 상기 글자의 크기에 대응하는 윈도우(240)를 결정할 수 있다. 또한, 프로세서(120)는 문자 블록(210) 내에서 두 개 이상의 글자가 인식되는 경우, 글자들의 평균 크기에 기초하여 윈도우(240)를 결정할 수 있다. In addition, when the text is extracted on the text block 210, the processor 120 may determine the window 240 to correspond to the size of the text. More specifically, the processor 120 may recognize the size of characters extracted in the character block 210. Then, the processor 120 may determine the window 240 corresponding to the size of the text. Also, when two or more characters are recognized in the character block 210, the processor 120 may determine the window 240 based on the average size of the characters.

그리고, 다른 실시예에 따른 프로세서(120)는 문자 블록(210) 내에서 두 개 이상의 글자가 인식되는 경우, 글자 크기의 규칙성을 분석하여 윈도우(240)를 생성할 수 있다. 예를 들어, 프로세서(120)는 하나의 문자 블록(210) 내에서 80*80 픽셀 단위의 글자 2개와 80*40 픽셀 단위의 글자 2개가 순차적으로 인식되는 경우, 상기 문자 블록(210)을 분할하여 2개의 문자 블록(210)을 생성할 수 있다. 그리고, 프로세서(120)는 80*80 픽셀 단위의 글자가 2개 인식된 문자 블록(210)에 대해서 80*80 픽셀의 윈도우(240)를 결정하고, 80*40 픽셀 단위의 글자가 2개 인식된 블록에 대해서 80*40 픽셀의 윈도우(240)를 결정할 수 있다. 전술한 글자의 인식 및 윈도우(240) 크기의 수치 한정은 예시일 뿐, 본 개시는 이에 제한되지 않는다.In addition, when two or more characters are recognized in the character block 210, the processor 120 according to another embodiment may generate a window 240 by analyzing the regularity of the character size. For example, the processor 120 divides the character block 210 when two characters in 80*80 pixel units and two characters in 80*40 pixel units are sequentially recognized in one character block 210. By doing so, two character blocks 210 may be generated. Then, the processor 120 determines a window 240 of 80*80 pixels for the character block 210 in which two 80*80 pixel units are recognized, and recognizes two 80*40 pixel units. It is possible to determine the window 240 of 80*40 pixels for the block. Recognition of the above-described letters and numerical limitation of the size of the window 240 are only examples, and the present disclosure is not limited thereto.

본 개시의 일 실시예에 따른 프로세서(120)는 문서 이미지(200) 상의 연결 요소를 각각 추출한 단위 문자 블록을 결정할 수 있다. 그리고, 프로세서(120)는 단위 문자 블록 중 사전 설정된 거리 이내에 위치한 단위 문자 블록을 하나의 문자 블록으로 그룹화할 수 있다. 보다 구체적으로, 프로세서(120)는 문자 블록 내에서 하나 이상의 연결 요소를 추출하고, 각각의 연결 요소를 포함하는 픽셀을 기준으로 단위 문자 블록을 결정할 수 있다. 그리고, 프로세서(120)는 단위 문자 블록 중 서로 사전 설정된 거리 이내에 위치한 단위 블록을 병합하여 문자 블록으로 결정할 수 있다. 여기서 사전 설정된 거리는 각각의 연결 요소들의 밀집도에 기초하여 결정될 수 있다. 즉, 프로세서(120)는 문자 블록 내의 연결 요소가 밀집되어 있을수록, 단위 문자 블록의 병합 기준에 해당하는 거리를 좁게 설정할 수 있다. 이에 따라, 본 개시에 따른 프로세서(120)는 문서 이미지(200) 상에 글자가 다수 밀집하여 위치하거나, 또는 카메라부(미도시)에서 원거리에 있는 문서를 촬영하여 문서 이미지(200)를 생성하는 경우에도 단위 문자 블록의 병합 기준을 유지할 수 있다. The processor 120 according to an embodiment of the present disclosure may determine a unit character block from which each connection element on the document image 200 is extracted. Also, the processor 120 may group unit character blocks located within a predetermined distance among unit character blocks into one character block. More specifically, the processor 120 may extract one or more connection elements within the character block, and determine a unit character block based on a pixel including each connection element. In addition, the processor 120 may determine unit blocks by merging unit blocks located within a predetermined distance from each other. Here, the preset distance may be determined based on the density of each connecting element. That is, the processor 120 may set the distance corresponding to the merging criterion of the unit character block as the connection elements in the character block are densely packed. Accordingly, the processor 120 according to the present disclosure generates a document image 200 by photographing a document located at a large number of letters on the document image 200 or at a distance from the camera unit (not shown). Even in this case, it is possible to maintain the merging criteria of unit character blocks.

예를 들어, 프로세서(120)는 도 2에 도시된 바와 같이, 문서 이미지(200) 상에서 연결 요소를 추출을 통해 제 1 단위 문자 블록(211) "ㅈ", 제 2 단위 문자 블록(212) "ㅣ" 및 제 3 단위 문자 블록(213) "ㄴ"을 출력할 수 있다. 그리고, 프로세서(120)는 각각의 단위 문자 블록들(211, 212, 213)이 사전 설정된 거리인 30 픽셀 이내에 배치된다는 점에 기초하여 하나의 문자 블록(210)으로 그룹화할 것을 결정할 수 있다. 이에 따라, 프로세서(120)는 단위 문자 블록들(211, 212, 213)을 결합하여 하나의 문자 블록(210) "진"을 추출할 수 있다. 전술한 단위 문자 블록의 그룹화 동작 기재는 예시일 뿐, 본 개시는 이에 제한되지 않는다.For example, as illustrated in FIG. 2, the processor 120 extracts a connection element on the document image 200 through the first unit character block 211 "ㅈ", the second unit character block 212 " ㅣ" and the third unit character block 213 "b" may be output. Then, the processor 120 may determine to group the unit character blocks 211, 212, and 213 into one character block 210 based on the fact that the unit character blocks 211, 212, and 213 are disposed within a predetermined distance of 30 pixels. Accordingly, the processor 120 may combine unit character blocks 211, 212, and 213 to extract a single character block 210 "jin". The description of the grouping operation of the unit character block described above is only an example, and the present disclosure is not limited thereto.

그리고, 프로세서(120)는 문서 이미지(200)의 컨텍스트 분석을 통해 문자 블록에 위치하는 글자의 속성을 결정할 수 있다. 여기서 글자의 속성이란 인식하는 글자의 종류(예컨대, 숫자, 알파벳, 한자, 한글 등)을 포함할 수 있다. 보다 구체적으로, 프로세서(120)는 하나의 문서 이미지(200)에서 복수개의 문자 블록에 위치한 글자를 인식할 수 있다. 그리고, 프로세서(120)는 다른 문자 블록에서 인식된 글자로 구성된 인식 단어에 적어도 부분적으로 기초하여 문자 블록에 위치하는 글자의 속성을 결정할 수 있다. 여기서 다른 문자 블록이란 문서 이미지(200) 내에 존재하는 다른 문자 블록으로, 문자 블록(210)보다 먼저 글자인식이 수행된 문자 블록일 수 있다. 프로세서(120)는 문서 이미지(200)에서 문자 블록과 위치상 연관성을 가지는 하나 이상의 다른 문자 블록에서 인식 단어를 인식할 수 있다. Then, the processor 120 may determine the attribute of the character located in the character block through context analysis of the document image 200. Here, the attribute of the letter may include the type of the recognized letter (eg, number, alphabet, Hanja, Hangul, etc.). More specifically, the processor 120 may recognize characters located in a plurality of character blocks in one document image 200. Then, the processor 120 may determine the attribute of the character located in the character block based at least in part on the recognition word composed of the characters recognized in other character blocks. Here, the other character block is another character block existing in the document image 200 and may be a character block in which character recognition is performed before the character block 210. The processor 120 may recognize a recognized word in one or more other character blocks having a positional association with a character block in the document image 200.

본 개시의 다른 일 실시예에 따른 프로세서(120)는 다른 문자 블록에서 인식된 인식 단어가 포함하는 의미에 기초하여 문자 블록에 위치하는 글자의 속성을 결정할 수 있다. 보다 구체적으로, 프로세서(120)는 다른 문자 블록에서 인식된 인식 단어가 포함하는 의미에 기초하여 대응하는 항목을 결정할 수 있다. 그리고, 프로세서(120)는 인식 단어에 대해서 결정된 항목에 기초하여 문자 블록에 위치하는 글자의 속성을 결정할 수 있다. 예를 들어, 프로세서(120)는 도 2에 도시된 바와 같이, "진찰료"라는 문자 블록(210)에서 인식된 인식 단어가 진찰에 대한 비용이라는 의미를 판독하여 인식 단어에 대응하는 항목을 "기본항목" 또는 "비용" 등으로 결정할 수 있다. 그리고, 프로세서(120)는 "기본항목" 및 "비용" 등의 항목에 기초하여 글자를 인식하여는 문자 블록(260) "3,285"에 위치하는 글자의 속성이 "숫자"임을 결정할 수 있다. 전술한 컨텍스트 분석의 기재는 예시일 뿐, 본 개시는 이에 제한되지 않는다.The processor 120 according to another embodiment of the present disclosure may determine the attribute of a character located in the character block based on the meaning included in the recognized word recognized in the other character block. More specifically, the processor 120 may determine a corresponding item based on the meaning included in the recognized word recognized in another character block. Then, the processor 120 may determine the attribute of the character located in the character block based on the item determined for the recognized word. For example, as illustrated in FIG. 2, the processor 120 reads the meaning that the recognized word recognized in the text block 210 called “examination fee” is the cost for the examination, and then displays the item corresponding to the recognized word as “basic”. Item" or "cost". Then, the processor 120 may determine that the attribute of the character located in the character block 260 "3,285" is "number" based on the items such as "basic item" and "cost". The description of context analysis described above is merely an example, and the present disclosure is not limited thereto.

그리고, 프로세서(120)는 글자의 속성에 기초하여 윈도우를 결정할 수 있다. 보다 구체적으로, 프로세서(120)는 메모리(130)에 저장된 항목 및 속성의 연관성 정보에 기초하여 문자 블록의 속성을 결정할 수 있다. 여기서 항목은 하나 이상의 속성을 포함할 수 있다. 예컨대, "비용" 항목은 "숫자" 속성을 포함할 수 있고, "약품명" 항목은 "영어" 및 "숫자"의 속성을 포함할 수 있다. 이러한 경우, 프로세서(120)는 문자 블록의 속성을 복수 개의 속성 중 하나로 결정할 수 있다. 전술한 항목 및 속성 값의 기재는 예시일 뿐, 본 개시는 이에 제한되지 않는다. 이에 따라, 프로세서(120)는 글자의 속성에 기초하여 윈도우의 크기 및 모양 중 적어도 하나를 결정할 수 있다. 또한, 실시예에 따라 프로세서(120)는 윈도우를 항목과 매칭되는 글자의 종류에 기초하여 결정할 수 있다. Then, the processor 120 may determine the window based on the attribute of the letter. More specifically, the processor 120 may determine the attribute of the character block based on the association information of the items and attributes stored in the memory 130. Here, the item may include one or more attributes. For example, the "cost" item may include "number" attributes, and the "pharmaceutical name" item may include "English" and "number" attributes. In this case, the processor 120 may determine the attribute of the character block as one of a plurality of attributes. The description of the above-mentioned items and attribute values is merely examples, and the present disclosure is not limited thereto. Accordingly, the processor 120 may determine at least one of the size and shape of the window based on the attribute of the letter. Also, according to an embodiment, the processor 120 may determine the window based on the type of the character matching the item.

본 개시의 일 실시예에 따른 프로세서(120)는 문자 블록의 수직, 또는 수평에 위치한 다른 문자 블록에서 인식된 인식 단어에 대한 의미분석을 수행할 수 있다. 또한, 프로세서(120)는 인식 단어에 대한 의미분석 결과에 기초하여, 문자 블록의 항목을 결정할 수 있다. 그리고, 프로세서(120)는 항목과 매칭되는 글자의 종류를 글자의 항목과 속성으로 결정할 수 있다. 그리고, 프로세서(120)는 윈도우를 항목과 매칭되는 글자의 종류에 기초하여 결정할 수 있다.The processor 120 according to an embodiment of the present disclosure may perform semantic analysis on a recognized word recognized in another character block positioned vertically or horizontally of the character block. Also, the processor 120 may determine an item of the character block based on the result of semantic analysis of the recognized word. Then, the processor 120 may determine the type of the character matching the item as the item and attribute of the letter. Then, the processor 120 may determine the window based on the type of the letter matching the item.

본 개시의 일 실시예에 따른 문서 이미지(200) 상에서 글자를 인식하기 위한 방법은 글자 이미지를 생성하는 기준인 윈도우를 픽셀 라인 기준, 연결 요소 추출 기준 및 컨텍스트 기준 중 적어도 하나를 사용하여 결정하여, 최초 윈도우를 통한 글자 인식률을 향상시킬 수 있고, 인식 결과에 따라 윈도우를 재조정할 때도 인식률을 높이는 방향으로 조정할 수 있어 결과적으로 작업 시간을 단축할 수 있다.A method for recognizing a character on a document image 200 according to an embodiment of the present disclosure determines a window that is a reference for generating a character image using at least one of a pixel line criterion, a connection element extraction criterion, and a context criterion, It is possible to improve the character recognition rate through the initial window, and even when the window is readjusted according to the recognition result, it can be adjusted in the direction to increase the recognition rate, resulting in shorter work time.

본 명세서에 걸쳐, 신경망, 네트워크 함수, 뉴럴 네트워크(neural network)는 동일한 의미로 사용될 수 있다. 딥 뉴럴 네트워크(DNN: deep neural network, 심층신경망)는 입력 레이어와 출력 레이어 외에 복수의 히든 레이어를 포함하는 신경망을 의미할 수 있다. 딥 뉴럴 네트워크를 이용하면 데이터의 잠재적인 구조(latent structures)를 파악할 수 있다. 즉, 사진, 글, 비디오, 음성, 음악의 잠재적인 구조(예를 들어, 어떤 물체가 사진에 있는지, 글의 내용과 감정이 무엇인지, 음성의 내용과 감정이 무엇인지 등)를 파악할 수 있다. 딥 뉴럴 네트워크는 컨벌루셔널 뉴럴 네트워크 (CNN: convolutional neural network), 리커런트 뉴럴 네트워크(RNN: recurrent neural network), 제한 볼츠만 머신(RBM: restricted boltzmann machine), 심층 신뢰 네트워크(DBN: deep belief network), Q 네트워크, U 네트워크, 샴 네트워크 등을 포함할 수 있다.Throughout this specification, neural networks, network functions, and neural networks may be used in the same sense. A deep neural network (DNN) may mean a neural network including a plurality of hidden layers in addition to an input layer and an output layer. Deep neural networks can be used to identify potential latent structures in data. In other words, it is possible to grasp the potential structure of photos, text, video, voice, and music (for example, what objects are in the picture, what the content and emotions of the text are, what the content and emotions of the speech, etc.) are. . Deep neural networks include convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), and deep belief networks (DBNs). , Q network, U network, Siam network, and the like.

컨벌루셔널 뉴럴 네트워크는 딥 뉴럴 네트워크의 일종으로서, 컨벌루셔널 레이어를 포함하는 신경망을 포함한다. 컨벌루셔널 뉴럴 네트워크는 최소한의 전처리(preprocess)를 사용하도록 설계된 다계층 퍼셉트론(multilayer perceptorns)의 한 종류이다. CNN은 하나 또는 여러 개의 컨벌루셔널 레이어와 이와 결합된 인공 신경망 계층들로 구성될 수 있다. CNN은 가중치와 풀링 레이어(pooling layer)들을 추가로 활용할 수 있다. 이러한 구조 덕분에 CNN은 2 차원 구조의 입력 데이터를 충분히 활용할 수 있다. 컨벌루셔널 뉴럴 네트워크는 이미지에서 오브젝트를 인식하기 위하여 사용될 수 있다. 컨벌루셔널 뉴럴 네트워크는 이미지 데이터를 차원을 가진 행렬로 나타내어 처리할 수 있다. 예를 들어 RGB(red-green-blue)로 인코딩 된 이미지 데이터의 경우, R, G, B 색상별로 각각 2차원(예를 들어, 2 차원 이미지 인 경우) 행렬로 나타내 질 수 있다. 즉, 이미지 데이터의 각 픽셀의 색상 값이 행렬의 성분이 될 수 있으며 행렬의 크기는 이미지의 크기와 같을 수 있다. 따라서 이미지 데이터는 3개의 2차원 행렬로(3차원의 데이터 어레이)로 나타내질 수 있다.The convolutional neural network is a kind of deep neural network, and includes a neural network including a convolutional layer. Convolutional neural networks are a type of multilayer perceptorns designed to use minimal preprocessing. The CNN may consist of one or several convolutional layers and artificial neural network layers combined with it. CNN may additionally utilize weights and pooling layers. Thanks to this structure, CNN can fully utilize the input data of the two-dimensional structure. Convolutional neural networks can be used to recognize objects in an image. Convolutional neural networks can process image data as a matrix with dimensions. For example, in the case of red-green-blue (RGB)-encoded image data, each of R, G, and B colors may be represented as a two-dimensional (for example, two-dimensional image) matrix. That is, the color value of each pixel of the image data can be a component of the matrix, and the size of the matrix can be the same as the size of the image. Therefore, the image data can be represented by three two-dimensional matrices (three-dimensional data array).

컨벌루셔널 뉴럴 네트워크에서 컨벌루셔널 필터를 이동해가며 컨벌루셔널 필터와 이미지의 각 위치에서의 행렬 성분끼리 곱하는 것으로 컨벌루셔널 과정(컨벌루셔널 레이어의 입출력)을 수행할 수 있다. 컨벌루셔널 필터는 n*n 형태의 행렬로 구성될 수 있다. 컨벌루셔널 필터는 일반적으로 이미지의 전체 픽셀의 수보다 작은 고정된 형태의 필터로 구성될 수 있다. 즉, m*m 이미지를 컨벌루셔널 레이어(예를 들어, 컨벌루셔널 필터의 사이즈가 n*n인 컨벌루셔널 레이어)입력시키는 경우, 이미지의 각 픽셀을 포함하는 n*n 픽셀을 나타내는 행렬이 컨벌루셔널 필터와 성분 곱 (즉, 행렬의 각 성분끼리의 곱) 될 수 있다. 컨벌루셔널 필터와의 곱에 의하여 이 미지에서 컨벌루셔널 필터와 매칭되는 성분이 추출될 수 있다. 예를 들어, 이미지에서 상하 직선 성분을 추출하기 위한 3*3 컨벌루셔널 필터는 [[0,1,0], [0,1,0], [0,1,0]] 와 같이 구성될 수 있다. 이미지에서 상하 직선 성분을 추출하기 위한 3*3 컨벌루셔널 필터가 입력 이미지에 적용되면 이미지에서 컨벌루셔널 필터와 매칭되는 상하 직선 성분이 추출되어 출력될 수 있다. 컨벌루셔널 레이어는 이미지를 나타낸 각각의 채널에 대한 각각의 행렬(즉, R, G, B 코딩 이미지의 경우, R, G, B 색상)에 컨벌루셔널 필터를 적용할 수 있다. 컨벌루셔널 레이어는 입력 이미지에 컨벌루셔널 필터를 적용하여 입력 이미지에서 컨벌루셔널 필터와 매칭되는 피쳐를 추출할 수 있다. 컨벌루셔널 필터의 필터 값(즉, 행렬의 각 성분의 값)은 컨벌루셔널 뉴럴 네트워크의 학습 과정에서 역전파에 의하여 업데이트 될 수 있다.A convolutional process (input/output of the convolutional layer) can be performed by moving the convolutional filter in the convolutional neural network and multiplying the convolutional filter and matrix components at each position of the image. The convolutional filter may be configured as an n*n matrix. The convolutional filter may generally consist of a fixed type filter smaller than the total number of pixels in the image. That is, when an m*m image is input to a convolutional layer (for example, a convolutional layer having a size of n*n of a convolutional filter), a matrix representing n*n pixels including each pixel of the image It can be multiplied by this convolutional filter (ie, the product of each component of the matrix). A component matching the convolutional filter in the image may be extracted by multiplying with the convolutional filter. For example, a 3*3 convolutional filter for extracting a vertical line component from an image may be configured as [[0,1,0], [0,1,0], [0,1,0]] Can be. When a 3*3 convolutional filter for extracting vertical components from the image is applied to the input image, vertical components that match the convolutional filter from the image may be extracted and output. The convolutional layer may apply a convolutional filter to each matrix for each channel representing an image (ie, R, G, and B colors in the case of R, G, and B coded images). The convolutional layer can apply a convolutional filter to the input image to extract features matching the convolutional filter from the input image. The filter value of the convolutional filter (that is, the value of each component of the matrix) may be updated by back propagation in the learning process of the convolutional neural network.

컨벌루셔널 레이어의 출력에는 서브샘플링 레이어가 연결되어 컨벌루셔널 레이어의 출력을 단순화하여 메모리 사용량과 연산량을 줄일 수 있다. 예를 들어, 2*2 맥스 풀링 필터를 가지는 풀링 레이어에 컨벌루셔널 레이어의 출력을 입력시키는 경우, 이미지의 각 픽셀에서 2*2 패치마다 각 패치에 포함되는 최대값을 출력하여 이미지를 압축할 수 있다. 전술한 풀링은 패치에서 최소값을 출력하거나, 패치의 평균값을 출력하는 방식일 수도 있으며 임의의 풀링 방식이 본 개시에 포함될 수 있다.A subsampling layer is connected to the output of the convolutional layer, thereby simplifying the output of the convolutional layer to reduce memory usage and computation. For example, if the output of the convolutional layer is input to a pooling layer having a 2*2 max pooling filter, the maximum value included in each patch is output for each 2*2 patch in each pixel of the image to compress the image. You can. The aforementioned pooling may be a method of outputting a minimum value in a patch or outputting an average value of patches, and any pooling method may be included in the present disclosure.

컨벌루셔널 뉴럴 네트워크는 하나 이상의 컨벌루셔널 레이어, 서브 샘플링 레이어를 포함할 수 있다. 컨벌루셔널 뉴럴 네트워크는 컨벌루셔널 과정과 서브샘플링 과정(예를 들어, 전술한 맥스 풀링 등)을 반복적으로 수행하여 이미지에서 피쳐를 추출할 수 있다. 반복적인 컨벌루션널 과정과 서브샘플링 과정을 통해 뉴럴 네트워크는 이미지의 글로벌 피쳐를 추출할 수 있다.The convolutional neural network may include one or more convolutional layers and sub-sampling layers. The convolutional neural network can extract features from an image by repeatedly performing a convolutional process and a subsampling process (for example, the Max pooling described above). Through the iterative convolutional and subsampling process, the neural network can extract global features of the image.

컨벌루셔널 레이어 또는 서브샘플링 레이어의 출력은 풀 커넥티드 레이어(fully connected layer)에 입력될 수 있다. 풀 커넥티드 레이어는 하나의 레이어에 있는 모든 뉴런과 이웃한 레이어에 있는 모든 뉴런이 연결되는 레이어이다. 풀 커넥티드 레이어는 뉴럴 네트워크에서 각 레이어의 모든 노드가 다른 레이어의 모든 노드에 연결된 구조를 의미할 수 있다.The output of the convolutional layer or subsampling layer may be input to a fully connected layer. A fully connected layer is a layer in which all neurons in one layer are connected to all neurons in a neighboring layer. The full connected layer may refer to a structure in which all nodes of each layer are connected to all nodes of another layer in a neural network.

본 개시의 일 실시예에서 이미지 데이터의 세그먼테이션(segmentation)을 수행하기 위하여 뉴럴 네트워크는 디컨벌루셔널 뉴럴 네트워크(DCNN: deconvolutional neural network)를 포함할 수 있다. 디컨벌루셔널 뉴럴 네트워크는 컨벌루셔널 뉴럴 네트워크를 역방향으로 계산시킨 것과 유사한 동작을 수행한다. 디컨벌루셔널 뉴럴 네트워크는 컨벌루셔널 뉴럴 네트워크에서 추출된 피쳐를 원본 데이터와 관련된 피쳐맵으로 출력할 수 있다. 컨벌루셔널 뉴럴 네트워크에 대한 구체적인 구성에 관한 설명은 본 출원에서 전체가 참조로서 통합되는 미국 등록 특허 US9870768B2에서 보다 구체적으로 논의된다.In one embodiment of the present disclosure, in order to perform segmentation of image data, the neural network may include a deconvolutional neural network (DCNN). The deconvolutional neural network performs an operation similar to that of calculating the convolutional neural network in the reverse direction. The deconvolutional neural network may output features extracted from the convolutional neural network as a feature map related to original data. The description of the specific configuration for the convolutional neural network is discussed in more detail in US patent US9870768B2, which is incorporated herein by reference in its entirety.

이하에서는, 프로세서(120)가 문자 블록 및 윈도우를 글자 인식 모델을 통해 연산함으로써 글자를 인식하는 방법 및 윈도우를 재조정하는 방법에 관하여 설명한다.Hereinafter, a method of recognizing a character and a method of re-adjusting a window will be described in which the processor 120 calculates a character block and a window through a character recognition model.

프로세서(120)는 문자 블록 및 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식할 수 있다. 보다 구체적으로, 프로세서(120)는 문자 블록을 윈도우를 기준으로 크롭(crop)하여 글자 이미지를 생성할 수 있다. 그리고, 프로세서(120)는 글자 이미지를 글자 인식 모델을 통해 연산함으로써 글자를 인식할 수 있다. 또한, 프로세서(120)는 문자 블록 내에서 윈도우의 위치 및 크기 중 적어도 하나를 조절하며 하나 이상의 글자 이미지를 생성할 수 있다. 이에 따라, 프로세서(120)는 하나 이상의 글자 이미지를 글자 인식 모델을 통해 연산함으로써 문자 블록 내에 위치하는 하나 이상의 글자 이미지를 인식할 수 있다.The processor 120 may recognize characters by calculating a character block and a window through a character recognition model including one or more pre-trained network functions. More specifically, the processor 120 may generate a character image by cropping a character block based on a window. In addition, the processor 120 may recognize a letter by calculating the letter image through a letter recognition model. In addition, the processor 120 may control at least one of the position and size of the window in the text block and generate one or more text images. Accordingly, the processor 120 may recognize one or more character images located in the character block by calculating one or more character images through a character recognition model.

또한, 본 개시의 일 실시예에 따른 프로세서(120)는 글자 이미지를 글자 인식 모델을 통해 연산함으로써 인식되는 글자 및 글자의 인식 신뢰도를 출력할 수 있다. 그리고, 프로세서(120)는 글자의 인식 신뢰도와 사전 결정된 기준 인식 신뢰도에 기초하여 글자 이미지의 글자가 적절하게 인식되었는지 여부를 판단할 수 있다. 그리고, 프로세서(120)는 글자 이미지의 글자가 적절하게 인식되었다고 판단되는 경우, 글자를 출력할 수 있다. 또한, 실시예에 따라 프로세서(120)는 글자 이미지에 기초하여 출력되는 글자 중 인식 신뢰도가 가장 높은 글자를 출력할 수도 있다.In addition, the processor 120 according to an embodiment of the present disclosure may output the recognized letters and the recognition reliability of the letters by calculating the letter images through the letter recognition model. Then, the processor 120 may determine whether the characters of the character image are properly recognized based on the recognition reliability of the characters and the predetermined reference recognition reliability. Then, when it is determined that the characters of the character image are properly recognized, the processor 120 may output the characters. Also, according to an embodiment, the processor 120 may output a character having the highest recognition reliability among characters output based on the character image.

그리고, 프로세서(120)는 인식된 글자에 적어도 부분적으로 기초하여 윈도우를 재조정할 수 있다. 본 개시의 일 실시예에 따른 프로세서(120)는 글자의 인식 신뢰도가 사전 결정된 기준 인식 신뢰도 미만인 경우, 윈도우의 크기 및 모양 중 적어도 하나를 변경할 수 있다. 보다 구체적으로, 프로세서(120)는 글자 이미지에 대해서 출력되는 글자 및 글자의 인식 신뢰도를 기준 인식 신뢰도와 비교할 수 있다. 그리고, 프로세서(120)는 글자의 인식 신뢰도가 기준 인식 신뢰도 이상인 경우, 글자 이미지를 생성하는 윈도우가 적합하다고 판단하여 윈도우를 유지할 수 있다. 또한, 프로세서(120)는 글자의 인식 신뢰도가 기준 인식 신뢰도 미만인 경우, 글자 이미지를 생성하는 윈도우가 적합하지 않다고 판단하여 윈도우를 변경할 수 있다. 여기서 프로세서(120)가 수행하는 윈도우의 변경은 윈도우의 모양(즉, 형태) 변경이나, 또는 윈도우의 크기 변화(예컨대, 중점을 기준으로 8방향 중 하나 이상의 방향으로의 확장/축소) 중 하나일 수 있다.Then, the processor 120 may readjust the window based at least in part on the recognized character. The processor 120 according to an embodiment of the present disclosure may change at least one of a size and a shape of a window when the recognition reliability of characters is less than a predetermined reference recognition reliability. More specifically, the processor 120 may compare the recognition reliability of characters and characters output with respect to the character image with the reference recognition reliability. In addition, when the recognition reliability of the characters is greater than or equal to the reference recognition reliability, the processor 120 may determine that the window for generating the character image is suitable and maintain the window. In addition, when the recognition reliability of the characters is less than the reference recognition reliability, the processor 120 may determine that the window for generating the character image is not suitable and change the window. Here, the change of the window performed by the processor 120 may be one of a change in the shape (ie, shape) of the window or a change in the size of the window (for example, expansion/reduction in one or more of the 8 directions based on the midpoint). Can be.

예를 들어, 프로세서(120)는 도 2에 도시된 바와 같이, "진찰료"라는 문자 블록(210)을 글자 인식 모델을 통해 연산함으로써, "진"이라는 글자와 인식 신뢰도 "90" 그리고 "찰"이라는 글자와 인식 신뢰도 "95"를 출력할 수 있다. 또한, 프로세서(120)는 "료"(즉, 정답)라는 글자 이미지를 글자 인식 모델을 통해 연산함으로써 "표" 및 "료"라는 두 글자를 출력할 수 있다. 또한, 이 중 "표"라는 글자에 대해서 출력된 인식 신뢰도는 "65"이고, "료"라는 글자에 대해서 출력된 인식 신뢰도는 "68"일 수 있다. 그리고, 프로세서(120)는 사전 결정된 기준 인식 신뢰도 "75"에 기초하여 "진"이라는 글자 인식 결과가 적절하다고 판단할 수 있다. 이에 따라, 프로세서(120)는 "진"에 사용된 윈도우(240)를 유지할 것을 결정할 수 있다. 그리고, 프로세서(120)는 "진"에 사용된 윈도우(240)를 이동시키며 글자 이미지를 생성할 수 있다. 또한, 프로세서(120)는 동일한 방식으로 "찰"이라는 글자 인식 결과에 기초하여 "찰"이라는 글자 이미지 생성에 사용된 윈도우(240)를 유지할 것을 결정할 수 있다. 그리고, 프로세서(120)는 "료"라는 글자 이미지에서 인식된 "표" 및 "료"가 모두 기준 인식 신뢰도 미만의 인식 신뢰도를 출력하기 때문에, 글자 인식 결과로 부적절하다고 판단할 수 있다. 이에 따라, 프로세서(120)는 "료"라는 글자 이미지를 생성한 윈도우(240)를 변경할 것을 결정할 수 있다. 여기서 프로세서(120)는 윈도우(240)를 현재 위치에 두면서 8방향(상, 하, 좌, 우의 조합) 중 일 방향으로 확장하는 크기 변경을 수행할 수 있다. 또한, 프로세서(120)는 윈도우(240)의 모양을 사각형에서 임의의 도형으로 변경할 수도 있다. 추가적으로, 프로세서(120)는 해당 글자 이미지에 위치할 글자의 속성에 기초하여 윈도우(240)를 결정할 수 있다. 이에 따라, 프로세서(120)는 문자 블록(210)의 글자 인식 결과에 따라, 사용 중인 윈도우(240)를 유지할 것인지, 또는 윈도우(240)를 변경할 것인지 결정할 수 있다. 전술한 글자 인식 및 윈도우 재조정 동작의 기재는 예시일 뿐, 본 개시는 이에 제한되지 않는다.For example, as illustrated in FIG. 2, the processor 120 calculates a character block 210 called “examination fee” through a character recognition model, and recognizes the character “true” and recognition reliability “90” and “chalk”. And the recognition confidence "95". In addition, the processor 120 may output two letters, "table" and "ryo", by calculating a character image of "Ryo" (ie, the correct answer) through a character recognition model. Further, among them, the recognition reliability output for the letter "table" may be "65", and the recognition reliability output for the letter "Ryo" may be "68". Then, the processor 120 may determine that the character recognition result of “true” is appropriate based on the predetermined reference recognition reliability “75”. Accordingly, the processor 120 may determine to maintain the window 240 used in the "jin". In addition, the processor 120 may move the window 240 used in the "jean" to generate a text image. In addition, the processor 120 may determine to maintain the window 240 used to generate the character image “Charge” based on the result of the character recognition “Charge” in the same manner. In addition, since the processor 120 outputs recognition reliability less than the reference recognition reliability, both “table” and “ryo” recognized in the text image “Ryo” may determine that the character recognition result is inappropriate. Accordingly, the processor 120 may determine to change the window 240 in which the text image “Ryo” is generated. Here, the processor 120 may perform a size change that extends in one direction among 8 directions (a combination of up, down, left, and right) while keeping the window 240 in the current position. Also, the processor 120 may change the shape of the window 240 from a rectangle to an arbitrary shape. Additionally, the processor 120 may determine the window 240 based on the attribute of the character to be located in the corresponding character image. Accordingly, the processor 120 may determine whether to keep the window 240 in use or change the window 240 according to the result of the character recognition of the character block 210. The above description of the character recognition and window re-adjustment operation is only an example, and the present disclosure is not limited thereto.

본 개시의 일 실시예에 따른 프로세서(120)는 글자 이미지를 생성하는 기준인 윈도우를 픽셀 라인 기준, 연결 요소 추출 기준 및 컨텍스트 기준 중 적어도 하나를 사용하여 결정할 수 있다. 이에 따라, 프로세서(120)는 최초 윈도우를 통한 글자 인식률을 향상시킬 수 있고, 인식 결과에 따라 윈도우를 재조정할 때도 인식률을 높이는 방향으로 조정할 수 있어 결과적으로 작업 시간을 단축할 수 있다.The processor 120 according to an embodiment of the present disclosure may determine a window, which is a reference for generating a text image, using at least one of a pixel line reference, a connection element extraction reference, and a context reference. Accordingly, the processor 120 may improve the character recognition rate through the initial window, and even when the window is readjusted according to the recognition result, the recognition rate may be adjusted in a direction to increase the recognition rate, resulting in shortening of work time.

이하에서는, 프로세서(120)가 문자 블록(210) 내에서 윈도우(240)를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력하는 방법에 관하여 설명한다.Hereinafter, a method of outputting a recognized character as a character string by the processor 120 sliding the window 240 in the character block 210 will be described.

프로세서(120)는 문자 블록 내에서 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력할 수 있다. 보다 구체적으로, 프로세서(120)는 문자 블록 내에서 윈도우를 이동시키기 위한 슬라이딩 방향을 결정할 수 있다. 그리고, 프로세서(120)는 윈도우 및 슬라이딩 방향에 기초하여 생성되는 하나 이상의 글자 이미지 상에서 글자를 인식할 수 있다. 또한, 프로세서(120)는 문자 블록 내의 인식된 글자의 위치 및 순서 중 적어도 하나에 기초하여 문자열을 생성할 수 있다.The processor 120 may output a recognized character as a character string by sliding a window in a character block. More specifically, the processor 120 may determine a sliding direction for moving the window within the character block. In addition, the processor 120 may recognize a letter on one or more letter images generated based on the window and sliding direction. Also, the processor 120 may generate a character string based on at least one of the position and order of recognized characters in the character block.

본 개시의 일 실시예에 따른 프로세서(120)는 문자 블록의 모양에 기초하여 슬라이딩 방향을 결정할 수 있다. 프로세서(120)는 문서 이미지 내에서 글자가 위치하는 픽셀을 기준으로 문자 블록을 결정할 수 있다. 그리고, 프로세서(120)는 문자 블록의 모양에 기초하여 슬라이딩 방향을 결정할 수 있다. 본 개시의 일 실시예에 따른 프로세서(120)는 문자 블록의 가로 및 세로 중 길이가 긴 방향을 슬라이드 이동 방향으로 결정할 수 있다. 예를 들어, 프로세서(120)는 도 2에 도시된 바와 같이, 문자 블록 상에서 가로 길이가 세로 길이보다 긴 경우, 가로 방향을 슬라이딩 방향으로 결정할 수 있다. 또한, 프로세서(120)는 "기본항목" 및 "선택항목"과 같이, 세로 방향의 길이가 가로 방향의 길이보다 긴 문자 블록의 경우, 세로 방향을 슬라이딩 방향으로 결정할 수 있다. 전술한 슬라이딩 방향 결정의 기재는 예시일 뿐, 본 개시는 이에 제한되지 않는다.The processor 120 according to an embodiment of the present disclosure may determine the sliding direction based on the shape of the character block. The processor 120 may determine a character block based on the pixel where the character is located in the document image. Then, the processor 120 may determine the sliding direction based on the shape of the character block. The processor 120 according to an embodiment of the present disclosure may determine a direction in which the length is longer among the horizontal and vertical characters blocks as the slide movement direction. For example, as illustrated in FIG. 2, the processor 120 may determine the horizontal direction as the sliding direction when the horizontal length is longer than the vertical length on the character block. In addition, the processor 120 may determine the vertical direction as the sliding direction in the case of a character block in which the length in the vertical direction is longer than the length in the horizontal direction, such as "basic item" and "optional item". The above description of the determination of the sliding direction is only an example, and the present disclosure is not limited thereto.

또한, 다른 일 실시예에 따른 프로세서(120)는 문자 블록 내에서 인식되는 글자들의 배치 방향을 슬라이드 이동 방향으로 결정할 수 있다. 보다 구체적으로, 프로세서(120)는 문자 블록을 윈도우를 통해 크롭하여 하나 이상의 글자 이미지를 생성할 수 있다. 그리고, 프로세서(120)는 각각의 글자 이미지를 글자 인식 모델을 통해 연산함으로써 글자를 인식할 수 있다. 이에 따라, 프로세서(120)는 문자 블록 내의 하나 이상의 글자를 인식할 수 있다. 그리고, 프로세서(120)는 문자 블록 내에서 복수 개의 글자가 인식되는 경우, 인식된 글자들의 위치에 따라 슬라이딩 방향을 결정할 수 있다. 예를 들어, 프로세서(120)는 도 2에 도시된 바와 같이, "진료비 계산서 * 영수증" 문자 블록(270)에서 글자 인식 모델을 통해 "진료 산서 영수증"이라는 글자를 인식할 수 있다. 그리고, 프로세서(120)는 "진료 산서 영수증"에서의 글자 배치가 가로 방향임을 인식할 수 있다. 이에 따라, 프로세서(120)는 해당 문자 블록(270)의 윈도우 슬라이딩 방향을 가로 방향으로 결정할 수 있다. 전술한 슬라이딩 방향 결정의 기재는 예시일 뿐, 본 개시는 이에 제한되지 않는다.Also, the processor 120 according to another embodiment may determine a direction in which the letters are recognized in the character block as a slide movement direction. More specifically, the processor 120 may generate one or more character images by cropping a character block through a window. Then, the processor 120 may recognize characters by calculating each character image through a character recognition model. Accordingly, the processor 120 may recognize one or more characters in the character block. Then, when a plurality of characters are recognized in the character block, the processor 120 may determine a sliding direction according to the recognized character positions. For example, as illustrated in FIG. 2, the processor 120 may recognize the text “medical statement receipt” through the character recognition model in the character block 270 of the “medical fee statement * receipt”. Then, the processor 120 may recognize that the letter arrangement in the "medical bill receipt" is horizontal. Accordingly, the processor 120 may determine a window sliding direction of the corresponding character block 270 in the horizontal direction. The above description of the determination of the sliding direction is only an example, and the present disclosure is not limited thereto.

본 개시의 일 실시예에 따른 프로세서(120)는 윈도우 및 슬라이딩 방향에 기초하여 생성되는 하나 이상의 글자 이미지 상에서 글자를 인식할 수 있다. 프로세서(120)는 문자 블록을 윈도우에 기초하여 크롭함으로써 글자 이미지를 생성할 수 있다. 그리고, 프로세서(120)는 슬라이딩 방향에 기초하여 문자 블록 내에서 윈도우를 슬라이딩 할 수 있다. 여기서 슬라이딩은 사전 결정된 윈도우 크기의 비율(예컨대, 윈도우 길이의 1/2, 1/4 등)으로 윈도우를 이동시킴으로써 수행될 수 있다. 이에 따라, 프로세서(120)는 하나 이상의 글자 이미지를 생성하고, 이를 글자 인식 모델을 통해 연산하여 글자를 인식할 수 있다. The processor 120 according to an embodiment of the present disclosure may recognize a character on one or more character images generated based on a window and a sliding direction. The processor 120 may generate a character image by cropping a character block based on a window. Then, the processor 120 may slide the window in the character block based on the sliding direction. Here, the sliding may be performed by moving the window at a ratio of a predetermined window size (eg, 1/2, 1/4 of the window length). Accordingly, the processor 120 may recognize characters by generating one or more character images and calculating them through a character recognition model.

그리고, 프로세서(120)는 문자 블록 내의 인식된 글자의 위치 및 순서 중 적어도 하나에 기초하여 문자열을 생성할 수 있다. 보다 구체적으로, 프로세서(120)는 문자 블록 및 윈도우에 기초하여 하나 이상의 글자 이미지를 생성할 수 있다. 그리고, 프로세서(120)는 각각의 글자 이미지를 글자 인식 모델을 통해 연산함으로써 글자를 인식할 수 있다. 또한, 프로세서(120)는 글자 이미지에서 글자가 인식되는 경우, 글자 이미지의 위치에 기초하여 글자의 위치를 인식할 수 있다. 그리고, 프로세서(120)는 하나 이상의 글자 중 좌측에 위치한 글자부터 우측에 위치한 글자 순서로 합성한 문자열을 생성할 수 있다. 또한, 프로세서(120)는 하나 이상의 글자 중 상측에 위치한 글자부터 하측에 위한 글자 순서로 합성한 문자열을 생성할 수 있다. 또한, 프로세서(120)는 하나의 문자 블록 내에서 인식된 글자의 순서에 기초하여 문자열을 생성할 수 있다. 즉, 프로세서(120)는 인식되는 글자 및 슬라이딩 방향에 기초하여 인식되는 글자를 조합하고, 이를 문자열로 출력할 수 있다.Then, the processor 120 may generate a character string based on at least one of the position and order of the recognized characters in the character block. More specifically, the processor 120 may generate one or more character images based on character blocks and windows. Then, the processor 120 may recognize characters by calculating each character image through a character recognition model. Also, when a character is recognized in the character image, the processor 120 may recognize the location of the character based on the location of the character image. In addition, the processor 120 may generate a synthesized string in the order of the characters located on the right from the characters located on the left among the one or more characters. In addition, the processor 120 may generate a character string synthesized in the order of the letters located on the upper side from the letters positioned on the upper side among the one or more letters. Also, the processor 120 may generate a character string based on the sequence of characters recognized in one character block. That is, the processor 120 may combine the recognized characters and the recognized characters based on the sliding direction, and output them as character strings.

또한, 본 개시의 일 실시예에 따른 프로세서(120)는 문자열이 포함하는 하나 이상의 글자를 의미 단위로 그룹화하여 하나 이상의 인식 단어를 추출할 수 있다. 그리고, 프로세서(120)는 인식 단어를 메모리에 저장된 하나 이상의 기준 단어와 비교한 결과에 기초하여, 문자열이 포함하는 하나 이상의 글자에 대한 윈도우를 변경하거나, 또는, 슬라이딩 방향을 변경할 수 있다.In addition, the processor 120 according to an embodiment of the present disclosure may extract one or more recognition words by grouping one or more letters included in a character string into semantic units. Also, the processor 120 may change a window for one or more letters included in the character string, or change a sliding direction based on a result of comparing the recognized word with one or more reference words stored in the memory.

보다 구체적으로, 프로세서(120)는 하나 이상의 글자가 조합되어 구성되는 문자열을 생성할 수 있다. 그리고, 프로세서(120)는 문자열이 포함하는 글자들을 의미 단위로 그룹화하여 인식 단어를 추출할 수 있다. 여기서 인식 단어는 글자 인식 모델 문서 이미지에 포함된 단어일 수 있다. 또한, 인식 단어는 글자를 의미 단위로 그룹화 한 것일 수 있다. 예를 들어, 프로세서(120)는 띄어쓰기에 기초하여 글자를 그룹화할 수도 있고, 명사 단위로 글자를 그룹화할 수도 있다. 또 다른 예시로써, 인식 단어는 "진찰료"와 같은 하나의 단어일 수도 있고, "보철 교정료"와 같은 복수의 단어로 구성되는 구절일 수도 있다. 전술한 인식 단어에 대한 구체적인 기재는 예시일 뿐이며 본 개시는 이에 제한되지 않는다.More specifically, the processor 120 may generate a string composed of one or more letters combined. Then, the processor 120 may extract the recognition word by grouping the characters included in the character string into semantic units. Here, the recognition word may be a word included in a letter recognition model document image. In addition, the recognition word may be a grouping of characters into semantic units. For example, the processor 120 may group characters on the basis of spacing, or may group characters on a noun basis. As another example, the recognition word may be a single word such as "examination fee" or a phrase composed of a plurality of words such as "prosthetic correction fee". The detailed description of the above-mentioned recognition words is only an example, and the present disclosure is not limited thereto.

그리고, 프로세서(120)는 인식 단어를 메모리(130)에 저장된 하나 이상의 기준 단어 각각에 포함된 글자와의 매칭 비율을 산출할 수 있다. 프로세서(120)는 인식 단어에 포함된 하나 이상의 글자의 배열과 기준 단어에 포함된 하나 이상의 글자의 배열에 기초하여 매칭 비율이 가장 높은 기준 단어를 결정할 수 있다. 그리고, 프로세서(120)는 인식 단어의 기준 단어에 대한 매칭 비율이 사전 결정된 임계값 이상인 경우, 윈도우의 모양 및 크기를 유지하거나, 또는 슬라이딩 방향을 유지할 수 있다. 또한, 프로세서(120)는 인식 단어의 기준 단어에 대한 매칭 비율이 사전 결정된 임계값 이하인 경우, 윈도우의 모양 및 크기 중 적어도 하나를 변경하거나, 또는 슬라이딩 방향을 변경할 수 있다. 이에 따라, 프로세서(120)는 하나의 문자 블록 내에서 생성되는 문자열을, 윈도우(즉, 글자 이미지)를 변경하거나, 윈도우의 이동 방향을 변경함으로써 기존과 상이한 문자열을 생성할 수 있다.In addition, the processor 120 may calculate a matching ratio of the recognition word with the letters included in each of the one or more reference words stored in the memory 130. The processor 120 may determine the reference word having the highest matching ratio based on the arrangement of one or more letters included in the recognized word and the arrangement of one or more letters included in the reference word. In addition, when the matching ratio of the recognized word to the reference word is equal to or greater than a predetermined threshold, the processor 120 may maintain the shape and size of the window or maintain the sliding direction. Further, the processor 120 may change at least one of the shape and size of the window or change the sliding direction when the matching ratio of the recognized word to the reference word is equal to or less than a predetermined threshold. Accordingly, the processor 120 may generate a character string different from the existing character string by changing a window (that is, a character image) or changing a moving direction of the character string generated in one character block.

이에 따라, 본 개시의 일 실시예에 따른 프로세서(120)는 추출되는 문자열과 기준 단어의 매칭 비율을 산출하여 글자 인식에 반영함으로써, 잘못 인식된 글자를 포함하는 문자열이 출력될 가능성을 줄일 수 있다.Accordingly, the processor 120 according to an embodiment of the present disclosure may reduce the possibility of outputting a character string including a character that is incorrectly recognized by calculating the matching ratio between the extracted character string and the reference word in character recognition. .

메모리(130)는 본 개시의 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 방법을 수행하기 위한 컴퓨터 프로그램을 저장할 수 있으며, 저장된 컴퓨터 프로그램은 프로세서(120)에 의하여 판독되어 구동될 수 있다.The memory 130 may store a computer program for performing a method for recognizing characters on a document image according to an embodiment of the present disclosure, and the stored computer program may be read and driven by the processor 120.

본 개시의 실시예들에 따른 메모리(130)는 프로세서(120)의 동작을 위한 프로그램을 저장할 수 있고, 입/출력되는 데이터들(예를 들어, 문서 이미지, 글자 이미지, 글자의 항목 및 속성의 연관성 정보 등)을 임시 또는 영구 저장할 수도 있다. 상기 메모리(130)는 디스플레이 및 음향에 관한 데이터를 저장할 수 있다. 메모리(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), 자기 메모리, 자기 디스크, 광디스크 중 적 어도 하나의 타입의 저장매체를 포함할 수 있다.The memory 130 according to embodiments of the present disclosure may store a program for the operation of the processor 120, and input/output data (eg, a document image, a text image, a text item, and an attribute of the text). Association information, etc.). The memory 130 may store data related to a display and sound. The memory 130 is a flash memory type, a hard disk type, a multimedia card micro type, a card type memory (for example, SD or XD memory, etc.), RAM (Random Access Memory, RAM), Static Random Access Memory (SRAM), Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Programmable Read-Only Memory (PROM), magnetic memory, magnetic It may include at least one type of storage medium among disks and optical disks.

이에 따라, 본 개시의 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 방법은 문서 이미지에서 글자 인식 모델을 통한 선행적 글자의 인식과, 글자 인식 결과에 따라 윈도우 재조정함으로써 글자의 분리를 상호연관성 있게 수행할 수 있다. 또한, 이를 통해 글자들의 크기가 상이하고 구조가 복잡한 문서 이미지에서도 정확한 글자 분류와 글자 인식이 가능할 수 있다. Accordingly, a method for recognizing characters on a document image according to an embodiment of the present disclosure correlates separation of characters by re-adjusting a window according to a result of character recognition and a character recognition model through a character recognition model in the document image. You can do it. In addition, through this, it is possible to accurately classify characters and recognize characters even in document images having different sizes and complicated structures.

또한, 글자 이미지를 생성하는 기준인 윈도우를 픽셀 라인 기준, 연결 요소 추출 기준 및 컨텍스트 기준 중 적어도 하나를 사용하여 결정하여, 최초 윈도우를 통한 글자 인식률을 향상시킬 수 있고, 인식 결과에 따라 윈도우를 재조정할 때도 인식률을 높이는 방향으로 조정할 수 있어 결과적으로 작업 시간을 단축할 수 있다.In addition, the window, which is a standard for generating a text image, is determined using at least one of a pixel line criterion, a connection element extraction criterion, and a context criterion, thereby improving the character recognition rate through the initial window and re-adjusting the window according to the recognition result. It can also be adjusted in the direction of increasing the recognition rate, resulting in shorter working time.

그리고, 추출되는 문자열과 기준 단어의 매칭 비율을 산출하여 글자 인식에 반영함으로써, 잘 못 인식된 글자를 포함하는 문자열이 출력될 가능성을 줄일 수 있다.In addition, by calculating the matching ratio between the extracted character string and the reference word and reflecting it in the character recognition, it is possible to reduce the possibility of outputting a character string containing the character that is not well recognized.

도 3은 본 개시의 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 방법의 순서도이다.3 is a flowchart of a method for recognizing characters on a document image according to an embodiment of the present disclosure.

컴퓨팅 장치(100)는 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정(310)할 수 있다.The computing device 100 may determine 310 a window based at least in part on a character block that includes one or more letters on the document image.

본 개시의 일 실시예에 따라, 컴퓨팅 장치(100)는 문서 이미지 상에서 색상 값을 가지는 픽셀을 기준으로 상기 문자 블록을 결정할 수 있다. 그리고, 컴퓨팅 장치(100)는 상기 문자 블록에서 일 방향의 픽셀 라인 중 색상 값을 가지는 픽셀이 사전 결정된 비율 이하인 픽셀 라인을 기준선으로 결정할 수 있다. 그리고, 컴퓨팅 장치(100)는 상기 기준선에 적어도 부분적으로 기초하여 상기 윈도우를 결정할 수 있다.According to an embodiment of the present disclosure, the computing device 100 may determine the character block based on a pixel having a color value on the document image. Also, the computing device 100 may determine, as a reference line, a pixel line in which the pixel having a color value among pixel lines in one direction in the character block is equal to or less than a predetermined ratio. In addition, the computing device 100 may determine the window based at least in part on the reference line.

또한, 본 개시의 다른 일 실시예에 따라, 컴퓨팅 장치(100)는 문서 이미지 상의 연결 요소 추출을 통해 상기 문자 블록을 결정할 수 있다. 그리고, 컴퓨팅 장치(100)는 문자 블록 상에서 글자가 추출되는지 여부를 판단할 수 있다. 그리고, 컴퓨팅 장치(100)는 문자 블록 상에서 글자가 추출되는 경우, 상기 글자의 크기에 대응되도록 상기 윈도우를 결정할 수 있다. 또한, 컴퓨팅 장치(100)는 상기 문서 이미지 상의 연결 요소를 각각 추출한 단위 문자 블록을 결정할 수 있다. 그리고, 컴퓨팅 장치(100)는 단위 문자 블록 중 사전 설정된 거리 이내에 위치한 상기 단위 문자 블록을 상기 하나의 문자 블록으로 그룹화할 수 있다.Further, according to another embodiment of the present disclosure, the computing device 100 may determine the text block through extraction of a connection element on a document image. In addition, the computing device 100 may determine whether a character is extracted on the character block. Then, when a character is extracted on a character block, the computing device 100 may determine the window to correspond to the size of the character. Further, the computing device 100 may determine a unit character block from which each connection element on the document image is extracted. In addition, the computing device 100 may group the unit text blocks located within a predetermined distance among the unit text blocks into the one text block.

또한, 본 개시의 또 다른 일 실시예에 따라, 컴퓨팅 장치(100)는 문서 이미지의 컨텍스트 분석을 통해 상기 문자 블록에 위치하는 글자의 속성을 결정할 수 있다. 그리고, 컴퓨팅 장치(100)는 글자의 속성에 기초하여 상기 윈도우를 결정할 수 있다. 또한, 컴퓨팅 장치(100)는 문자 블록의 수직, 또는 수평에 위치한 다른 문자 블록에서 인식된 인식 단어에 대한 의미분석을 수행할 수 있다. 그리고, 컴퓨팅 장치(100)는 인식 단어에 대한 의미분석 결과에 기초하여, 상기 문자 블록의 항목을 결정할 수 있다. 또한, 컴퓨팅 장치(100)는 항목과 매칭되는 글자의 종류를 상기 글자의 항목과 속성으로 결정할 수 있다. 여기서 컴퓨팅 장치(100)는 윈도우를 상기 항목과 매칭되는 글자의 종류에 기초하여 결정할 수 있다.In addition, according to another embodiment of the present disclosure, the computing device 100 may determine an attribute of a character positioned in the character block through context analysis of a document image. Then, the computing device 100 may determine the window based on the attribute of the letter. Also, the computing device 100 may perform semantic analysis on the recognized word recognized in another character block positioned vertically or horizontally of the character block. Then, the computing device 100 may determine the item of the character block based on the result of semantic analysis of the recognized word. Also, the computing device 100 may determine the type of the character matching the item as the item and attribute of the letter. Here, the computing device 100 may determine the window based on the type of the character matching the item.

컴퓨팅 장치(100)는 문자 블록 및 상기 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식(320)할 수 있다.The computing device 100 may recognize the character 320 by calculating the character block and the window through a character recognition model including one or more pre-trained network functions.

본 개시의 일 실시예에 따라, 컴퓨팅 장치(100)는 문자 블록을 상기 윈도우를 기준으로 크롭(crop)하여 글자 이미지를 생성할 수 있다. 그리고, 컴퓨팅 장치(100)는 글자 이미지를 상기 글자 인식 모델을 통해 연산함으로써 글자를 인식할 수 있다. 또한, 컴퓨팅 장치(100)는 글자 이미지를 상기 글자 인식 모델을 통해 연산함으로써 인식되는 글자 및 상기 글자의 인식 신뢰도를 출력할 수 있다. 그리고, 컴퓨팅 장치(100)는 글자의 인식 신뢰도와 사전 결정된 기준 인식 신뢰도에 기초하여 상기 글자 이미지의 글자가 적절하게 인식되었는지 여부를 판단할 수 있다. 그리고, 컴퓨팅 장치(100)는 글자 이미지의 글자가 적절하게 인식되었다고 판단되는 경우, 상기 글자를 출력할 수 있다. 여기서 컴퓨팅 장치(100)는 상기 글자의 인식 신뢰도가 사전 결정된 기준 인식 신뢰도 미만인 경우, 상기 윈도우의 크기 및 모양 중 적어도 하나를 변경할 수 있다.According to an embodiment of the present disclosure, the computing device 100 may generate a character image by cropping a character block based on the window. Then, the computing device 100 may recognize a character by calculating the character image through the character recognition model. In addition, the computing device 100 may output a recognized character and the recognition reliability of the character by calculating the character image through the character recognition model. In addition, the computing device 100 may determine whether the characters of the character image are properly recognized based on the recognition reliability of the characters and the predetermined reference recognition reliability. Then, when it is determined that the characters of the character image are properly recognized, the computing device 100 may output the characters. Here, the computing device 100 may change at least one of the size and shape of the window when the recognition reliability of the text is less than a predetermined reference recognition reliability.

컴퓨팅 장치(100)는 인식된 글자에 적어도 부분적으로 기초하여 상기 윈도우를 재조정(330)할 수 있다.The computing device 100 may readjust the window 330 based at least in part on the recognized character.

본 개시의 일 실시예에 따라, 컴퓨팅 장치(100)는 인식된 글자에 적어도 부분적으로 기초하여 윈도우를 재조정할 수 있다. 본 개시의 일 실시예에 따른 컴퓨팅 장치(100)는 글자의 인식 신뢰도가 사전 결정된 기준 인식 신뢰도 미만인 경우, 윈도우의 크기 및 모양 중 적어도 하나를 변경할 수 있다. 보다 구체적으로, 컴퓨팅 장치(100)는 글자 이미지에 대해서 출력되는 글자 및 글자의 인식 신뢰도를 기준 인식 신뢰도와 비교할 수 있다. 그리고, 컴퓨팅 장치(100)는 글자의 인식 신뢰도가 기준 인식 신뢰도 이상인 경우, 글자 이미지를 생성하는 윈도우가 적합하다고 판단하여 윈도우를 유지할 수 있다. 또한, 컴퓨팅 장치(100)는 글자의 인식 신뢰도가 기준 인식 신뢰도 미만인 경우, 글자 이미지를 생성하는 윈도우가 적합하지 않다고 판단하여 윈도우를 변경할 수 있다. 여기서 컴퓨팅 장치(100)가 수행하는 윈도우의 변경은 윈도우의 모양(즉, 형태) 변경이나, 또는 윈도우의 크기 변화(예컨대, 중점을 기준으로 8방향 중 하나 이상의 방향으로의 확장/축소) 중 하나일 수 있다.According to one embodiment of the present disclosure, the computing device 100 may readjust the window based at least in part on the recognized character. The computing device 100 according to an embodiment of the present disclosure may change at least one of a size and a shape of a window when the recognition reliability of characters is less than a predetermined reference recognition reliability. More specifically, the computing device 100 may compare the recognition reliability of characters and characters output with respect to the character image with the reference recognition reliability. The computing device 100 may maintain the window by determining that the window for generating the character image is suitable when the recognition reliability of the characters is higher than the reference recognition reliability. In addition, when the recognition reliability of the characters is less than the reference recognition reliability, the computing device 100 may change the window by determining that the window for generating the character image is not suitable. Here, the change of the window performed by the computing device 100 is one of a change in the shape (ie, shape) of the window, or a change in the size of the window (for example, expansion/reduction in one or more of the eight directions based on the midpoint). Can be

컴퓨팅 장치(100)는 문자 블록 내에서 상기 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력(340)할 수 있다.The computing device 100 may output 340 a character recognized as a character string by sliding the window in a character block.

본 개시의 일 실시예에 따라, 컴퓨팅 장치(100)는 상기 문자 블록 내에서 상기 윈도우를 이동시키기 위한 슬라이딩 방향을 결정할 수 있다. 그리고, 컴퓨팅 장치(100)는 윈도우 및 상기 슬라이딩 방향에 기초하여 생성되는 하나 이상의 글자 이미지 상에서 글자를 인식할 수 있다. 그리고, 컴퓨팅 장치(100)는 상기 문자 블록 내의 인식된 상기 글자의 위치 및 순서 중 적어도 하나에 기초하여 상기 문자열을 생성할 수 있다. 여기서 컴퓨팅 장치(100)는 상기 문자 블록의 모양에 기초하여 상기 슬라이딩 방향을 결정할 수 있다. 또한, 컴퓨팅 장치(100)는 문자열이 포함하는 하나 이상의 글자를 의미 단위로 그룹화하여 하나 이상의 인식 단어를 추출할 수 있다. 그리고, 컴퓨팅 장치(100)는 인식 단어를 메모리에 저장된 하나 이상의 기준 단어와 비교한 결과에 기초하여, 상기 문자열이 포함하는 하나 이상의 글자에 대한 상기 윈도우를 변경하거나, 또는, 상기 슬라이딩 방향을 변경할 수 있다.According to an embodiment of the present disclosure, the computing device 100 may determine a sliding direction for moving the window within the text block. In addition, the computing device 100 may recognize a letter on one or more letter images generated based on a window and the sliding direction. Then, the computing device 100 may generate the character string based on at least one of the recognized position and order of the characters in the character block. Here, the computing device 100 may determine the sliding direction based on the shape of the character block. Also, the computing device 100 may extract one or more recognition words by grouping one or more letters included in the string into semantic units. In addition, the computing device 100 may change the window for one or more letters included in the string, or change the sliding direction based on a result of comparing the recognized word with one or more reference words stored in the memory. have.

이에 따라, 본 개시의 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 방법은 문서 이미지에서 글자 인식 모델을 통한 선행적 글자의 인식과, 글자 인식 결과에 따라 윈도우 재조정함으로써 글자의 분리를 상호연관성 있게 수행할 수 있다. 또한, 이를 통해 글자들의 크기가 상이하고 구조가 복잡한 문서 이미지에서도 정확한 글자 분류와 글자 인식이 가능할 수 있다. Accordingly, a method for recognizing characters on a document image according to an embodiment of the present disclosure correlates separation of characters by re-adjusting a window according to a result of character recognition and a character recognition model through a character recognition model in the document image. You can do it. In addition, through this, it is possible to accurately classify characters and recognize characters even in document images having different sizes and complicated structures.

또한, 글자 이미지를 생성하는 기준인 윈도우를 픽셀 라인 기준, 연결 요소 추출 기준 및 컨텍스트 기준 중 적어도 하나를 사용하여 결정하여, 최초 윈도우를 통한 글자 인식률을 향상시킬 수 있고, 인식 결과에 따라 윈도우를 재조정할 때도 인식률을 높이는 방향으로 조정할 수 있어 결과적으로 작업 시간을 단축할 수 있다.In addition, the window, which is a standard for generating a text image, is determined using at least one of a pixel line criterion, a connection element extraction criterion, and a context criterion, thereby improving the character recognition rate through the initial window and re-adjusting the window according to the recognition result. It can also be adjusted in the direction of increasing the recognition rate, resulting in shorter working time.

그리고, 추출되는 문자열과 기준 단어의 매칭 비율을 산출하여 글자 인식에 반영함으로써, 잘 못 인식된 글자를 포함하는 문자열이 출력될 가능성을 줄일 수 있다.In addition, by calculating the matching ratio between the extracted character string and the reference word and reflecting it in the character recognition, it is possible to reduce the possibility of outputting a character string containing the character that is incorrectly recognized.

도 4는 본 개시의 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 방법을 구현하기 위한 로직을 도시한 블록 구성도이다.4 is a block diagram illustrating logic for implementing a method for recognizing characters on a document image according to an embodiment of the present disclosure.

본 개시의 일 실시예에 따라 문서 이미지 상에서 글자를 인식하기 위한 방법은 다음과 같은 로직에 의해 구현될 수 있다.A method for recognizing characters on a document image according to an embodiment of the present disclosure may be implemented by the following logic.

본 개시의 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 방법은, 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하기 위한 로직(410); 상기 문자 블록 및 상기 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식하기 위한 로직(420); 상기 인식된 글자에 적어도 부분적으로 기초하여 상기 윈도우를 재조정하기 위한 로직(430); 및 상기 문자 블록 내에서 상기 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력하기 위한 로직(440)에 의하여 구현될 수 있다.A method for recognizing a character on a document image according to an embodiment of the present disclosure includes: logic 410 for determining a window based at least in part on a character block including one or more characters on the document image; Logic 420 for recognizing characters by computing the character block and the window through a character recognition model including one or more pre-trained network functions; Logic 430 for re-adjusting the window based at least in part on the recognized character; And a logic 440 for outputting a recognized character as a character string by sliding the window in the character block.

문서 이미지 상에서 글자를 인식하기 위한 방법의 대안적인 실시예에서, 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하기 위한 로직(410)은, 상기 문서 이미지 상에서 색상 값을 가지는 픽셀을 기준으로 상기 문자 블록을 결정하기 위한 로직, 상기 문자 블록에서 일 방향의 픽셀 라인 중 색상 값을 가지는 픽셀이 사전 결정된 비율 이하인 픽셀 라인을 기준선으로 결정하기 위한 로직, 및 상기 기준선에 적어도 부분적으로 기초하여 상기 윈도우를 결정하기 위한 로직에 의하여 구현될 수 있다.In an alternative embodiment of a method for recognizing text on a document image, logic 410 for determining a window based at least in part on a text block containing one or more text on the document image includes: the document image Logic for determining the character block based on a pixel having a color value on the image, logic for determining a pixel line having a color value of a pixel value of a pixel line in one direction or less in the character block as a reference line, and the It can be implemented by logic for determining the window based at least in part on a baseline.

문서 이미지 상에서 글자를 인식하기 위한 방법의 대안적인 실시예에서, 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하기 위한 로직(410)은, 상기 문서 이미지 상의 연결 요소 추출을 통해 상기 문자 블록을 결정하기 위한 로직, 상기 문자 블록 상에서 글자가 추출되는지 여부를 판단하기 위한 로직 및 상기 문자 블록 상에서 글자가 추출되는 경우, 상기 글자의 크기에 대응되도록 상기 윈도우를 결정하기 위한 로직에 의하여 구현될 수 있다.In an alternative embodiment of a method for recognizing text on a document image, logic 410 for determining a window based at least in part on a text block containing one or more text on the document image includes: the document image Logic for determining the text block through extraction of a connection element on the screen, logic for determining whether a letter is extracted on the text block, and when the text is extracted on the text block, the window corresponds to the size of the text It can be implemented by logic to determine.

문서 이미지 상에서 글자를 인식하기 위한 방법의 대안적인 실시예에서, 상기 문서 이미지 상의 연결 요소 추출을 통해 상기 문자 블록을 결정하기 위한 로직은, 상기 문서 이미지 상의 연결 요소를 각각 추출한 단위 문자 블록을 결정하기 위한 로직 및 상기 단위 문자 블록 중 사전 설정된 거리 이내에 위치한 상기 단위 문자 블록을 상기 하나의 문자 블록으로 그룹화하기 위한 로직에 의하여 구현될 수 있다.In an alternative embodiment of a method for recognizing text on a document image, logic for determining the text block through extraction of linking elements on the document image includes: determining unit text blocks each extracting linking elements on the document image The logic may be implemented by logic for grouping the unit character block located within a predetermined distance among the unit character blocks into the one character block.

문서 이미지 상에서 글자를 인식하기 위한 방법의 대안적인 실시예에서, 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하기 위한 로직(410)은, 상기 문서 이미지의 컨텍스트 분석을 통해 상기 문자 블록에 위치하는 글자의 속성을 결정하기 위한 로직 및 상기 글자의 속성에 기초하여 상기 윈도우를 결정하기 위한 로직에 의하여 구현될 수 있다.In an alternative embodiment of a method for recognizing text on a document image, logic 410 for determining a window based at least in part on a text block containing one or more text on the document image includes: the document image It may be implemented by logic for determining the attribute of the character located in the character block through the context analysis of and logic for determining the window based on the attribute of the character.

문서 이미지 상에서 글자를 인식하기 위한 방법의 대안적인 실시예에서, 상기 문서 이미지의 컨텍스트 분석을 통해 상기 문자 블록에 위치하는 글자의 속성을 결정하기 위한 로직은, 상기 문자 블록의 수직, 또는 수평에 위치한 다른 문자 블록에서 인식된 인식 단어에 대한 의미분석을 수행하기 위한 로직, 상기 인식 단어에 대한 의미분석 결과에 기초하여, 상기 문자 블록의 항목을 결정하기 위한 로직 및 상기 항목과 매칭되는 글자의 종류를 상기 글자의 항목과 속성으로 결정하기 위한 로직에 의하여 구현될 수 있고, 그리고 상기 글자의 속성에 기초하여 상기 윈도우를 결정하기 위한 로직은 상기 윈도우를 상기 항목과 매칭되는 글자의 종류에 기초하여 결정하기 위한 로직에 의하여 구현될 수 있다.In an alternative embodiment of a method for recognizing a character on a document image, logic for determining an attribute of a character located in the character block through context analysis of the document image is located vertically or horizontally in the character block. The logic for performing semantic analysis on the recognized word recognized in another character block, the logic for determining the item of the character block based on the semantic analysis result for the recognized word, and the type of the character matching the item It can be implemented by logic for determining the item and attribute of the letter, and the logic for determining the window based on the attribute of the letter determines the window based on the type of character matching the item It can be implemented by logic.

문서 이미지 상에서 글자를 인식하기 위한 방법의 대안적인 실시예에서, 상기 문자 블록 및 상기 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식하기 위한 로직(420)은, 상기 문자 블록을 상기 윈도우를 기준으로 크롭(crop)하여 글자 이미지를 생성하기 위한 로직 및 상기 글자 이미지를 상기 글자 인식 모델을 통해 연산함으로써 글자를 인식하기 위한 로직에 의하여 구현될 수 있다.In an alternative embodiment of a method for recognizing characters on a document image, logic 420 for recognizing characters by computing the character block and the window through a character recognition model including one or more pre-trained network functions is , It may be implemented by logic for generating a character image by cropping the character block based on the window and logic for recognizing a character by calculating the character image through the character recognition model.

문서 이미지 상에서 글자를 인식하기 위한 방법의 대안적인 실시예에서, 상기 글자 이미지를 상기 글자 인식 모델을 통해 연산함으로써 글자를 인식하기 위한 로직은, 상기 글자 이미지를 상기 글자 인식 모델을 통해 연산함으로써 인식되는 글자 및 상기 글자의 인식 신뢰도를 출력하기 위한 로직, 상기 글자의 인식 신뢰도와 사전 결정된 기준 인식 신뢰도에 기초하여 상기 글자 이미지의 글자가 적절하게 인식되었는지 여부를 판단하기 위한 로직 및 상기 글자 이미지의 글자가 적절하게 인식되었다고 판단되는 경우, 상기 글자를 출력하기 위한 로직에 의하여 구현될 수 있다.In an alternative embodiment of a method for recognizing a character on a document image, logic for recognizing a character by calculating the character image through the character recognition model is recognized by calculating the character image through the character recognition model The logic for outputting the character and the recognition reliability of the character, the logic for determining whether the character of the character image is properly recognized based on the recognition reliability of the character and the predetermined reference recognition reliability, and the character of the character image When it is determined that it is properly recognized, it may be implemented by logic for outputting the text.

문서 이미지 상에서 글자를 인식하기 위한 방법의 대안적인 실시예에서, 상기 글자의 인식 신뢰도와 사전 결정된 기준 인식 신뢰도에 기초하여 상기 글자 이미지의 글자가 적절하게 인식되었는지 여부를 판단하기 위한 로직은, 상기 글자의 인식 신뢰도가 사전 결정된 기준 인식 신뢰도 미만인 경우, 상기 윈도우의 크기 및 모양 중 적어도 하나를 변경하기 위한 로직에 의하여 구현될 수 있다.In an alternative embodiment of a method for recognizing a character on a document image, logic for determining whether a character of the character image is properly recognized based on the recognition reliability of the character and a predetermined reference recognition reliability, the character If the recognition reliability of is less than the predetermined reference recognition reliability, it may be implemented by logic for changing at least one of the size and shape of the window.

문서 이미지 상에서 글자를 인식하기 위한 방법의 대안적인 실시예에서, 상기 문자 블록 내에서 상기 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력하기 위한 로직(440)은, 상기 문자 블록 내에서 상기 윈도우를 이동시키기 위한 슬라이딩 방향을 결정하기 위한 로직, 상기 윈도우 및 상기 슬라이딩 방향에 기초하여 생성되는 하나 이상의 글자 이미지 상에서 글자를 인식하기 위한 로직 및 상기 문자 블록 내의 인식된 상기 글자의 위치 및 순서 중 적어도 하나에 기초하여 상기 문자열을 생성하기 위한 로직에 의하여 구현될 수 있다.In an alternative embodiment of a method for recognizing a character on a document image, the logic 440 for sliding the window in the character block and outputting the recognized character as a character string is performed in the character block. At least one of logic for determining a sliding direction for moving a window, logic for recognizing a letter on the window and one or more letter images generated based on the sliding direction, and the position and order of the recognized letters in the text block It can be implemented by logic for generating the string based on one.

문서 이미지 상에서 글자를 인식하기 위한 방법의 대안적인 실시예에서, 상기 문자 블록 내에서 상기 윈도우를 이동시키기 위한 슬라이딩 방향을 결정하기 위한 로직은, 상기 문자 블록의 모양에 기초하여 상기 슬라이딩 방향을 결정하기 위한 로직에 의하여 구현될 수 있다.In an alternative embodiment of a method for recognizing text on a document image, logic for determining a sliding direction for moving the window within the text block determines the sliding direction based on the shape of the text block It can be implemented by logic.

문서 이미지 상에서 글자를 인식하기 위한 방법의 대안적인 실시예에서, 상기 문자 블록 내의 인식된 상기 글자의 위치 및 순서 중 적어도 하나에 기초하여 상기 문자열을 생성하기 위한 로직은, 상기 문자열이 포함하는 하나 이상의 글자를 의미 단위로 그룹화하여 하나 이상의 인식 단어를 추출하기 위한 로직 및 상기 인식 단어를 메모리에 저장된 하나 이상의 기준 단어와 비교한 결과에 기초하여, 상기 문자열이 포함하는 하나 이상의 글자에 대한 상기 윈도우를 변경하거나, 또는, 상기 슬라이딩 방향을 변경하기 위한 로직에 의하여 구현될 수 있다.In an alternative embodiment of a method for recognizing a character on a document image, logic for generating the character string based on at least one of the recognized position and order of the character in the character block includes: one or more of the character strings Based on the logic for extracting one or more recognized words by grouping the letters into semantic units and the result of comparing the recognized words with one or more reference words stored in memory, the window for one or more letters included in the string is changed. Or, it may be implemented by logic for changing the sliding direction.

본 개시의 일 실시예에 따른 문서 이미지 상에서 글자를 인식하기 위한 방법을 구현하기 위한 로직은, 문서 이미지 상에서 글자를 인식하기 위한 방법을 구현하기 위한 모듈, 회로 또는 수단에 의하여 구현될 수도 있다.Logic for implementing a method for recognizing text on a document image according to an embodiment of the present disclosure may be implemented by a module, circuit, or means for implementing a method for recognizing text on a document image.

도 5는 본 개시의 일 실시예에 따른 컴퓨팅 장치(100)의 블록 구성도이다.5 is a block diagram of a computing device 100 according to an embodiment of the present disclosure.

도 5는 본 개시의 실시예들이 구현될 수 있는 예시적인 컴퓨팅 환경에 대한 간략하고 일반적인 개략도를 도시한다.5 shows a simplified and general schematic diagram of an exemplary computing environment in which embodiments of the present disclosure can be implemented.

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

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

본 개시의 설명된 실시예들은 또한 어떤 태스크들이 통신 네트워크를 통해 연결되어 있는 원격 처리 장치들에 의해 수행되는 분산 컴퓨팅 환경에서 실시될 수 있다. 분산 컴퓨팅 환경에서, 프로그램 모듈은 로컬 및 원격 메모리 저장 장치 둘 다에 위치할 수 있다.The described embodiments of the present 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 computer-accessible medium 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 are volatile and non-volatile media, temporary and non-transitory media, removable and non-removable, implemented in any method or technology for storing 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 devices, magnetic cassettes, magnetic tapes, magnetic disk storage devices or other magnetic storage devices, Or any other medium that can be accessed by a computer and used to store desired information.

컴퓨터 판독가능 전송 매체는 통상적으로 반송파(carrier wave) 또는 기타 전송 메커니즘(transport mechanism)과 같은 피 변조 데이터 신호(modulated data signal)에 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈 또는 기타 데이터 등을 구현하고 모든 정보 전달 매체를 포함한다. 피 변조 데이터 신호라는 용어는 신호 내에 정보를 인코딩하도록 그 신호의 특성들 중 하나 이상을 설정 또는 변경시킨 신호를 의미한다. 제한이 아닌 예로서, 컴퓨터 판독가능 전송 매체는 유선 네트워크 또는 직접 배선 접속(direct-wired connection)과 같은 유선 매체, 그리고 음향, RF, 적외선, 기타 무선 매체와 같은 무선 매체를 포함한다. 상술된 매체들 중 임의의 것의 조합도 역시 컴퓨터 판독가능 전송 매체의 범위 안에 포함되는 것으로 한다.Computer readable transmission media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and Includes all information delivery media. The term modulated data signal means a signal in which one or more of the characteristics of the signal are set or changed to encode information in 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 described media 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 exemplary environment 1100 is shown that implements various aspects of the present disclosure, including a computer 1102, and the computer 1102 includes a processing device 1104, a system memory 1106, and a system bus 1108. do. System bus 1108 connects system components, including, but not limited to, system memory 1106 to processing device 1104. The processing device 1104 can be any of a variety of commercial processors. Dual processor and other multiprocessor architectures may also be used as the processing unit 1104.

시스템 버스(1108)는 메모리 버스, 주변장치 버스, 및 다양한 상용 버스 아키텍처 중 임의의 것을 사용하는 로컬 버스에 추가적으로 상호 연결될 수 있는 몇 가지 유형의 버스 구조 중 임의의 것일 수 있다. 시스템 메모리(1106)는 판독 전용 메모리(ROM)(1110) 및 랜덤 액세스 메모리(RAM)(1112)를 포함한다. 기본 입/출력 시스템(BIOS)은 ROM, EPROM, EEPROM 등의 비 휘발성 메모리(1110)에 저장되며, 이 BIOS는 시동 중과 같은 때에 컴퓨터(1102) 내의 구성요소들 간에 정보를 전송하는 일을 돕는 기본적인 루틴을 포함한다. RAM(1112)은 또한 데이터를 캐싱하기 위한 정적 RAM 등의 고속 RAM을 포함할 수 있다.The system bus 1108 can be any of several types of bus structures that can be further 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 a non-volatile memory 1110 such as ROM, EPROM, EEPROM, etc. This BIOS is a basic to help transfer information between components in the computer 1102 at the same time as during startup. Contains routines. The 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 is also an internal hard disk drive (HDD) 1114 (eg, EIDE, SATA)-this internal hard disk drive 1114 can also be configured for external use within a suitable chassis (not shown). Yes, magnetic floppy disk drive (FDD) 1116 (e.g., for reading from or writing to removable diskette 1118), and optical disk drive 1120 (e.g., CD-ROM Disc 1122, or for reading from or writing to other high-capacity optical media such as DVDs). The hard disk drive 1114, the magnetic disk drive 1116, and the optical disk drive 1120 are the system bus 1108 by the hard disk drive interface 1124, the magnetic disk drive interface 1126, and the optical drive interface 1128, respectively. ). 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. In the case of computer 1102, drives and media correspond to storing any data in a suitable digital format. Although the above description of computer readable media refers to HDDs, removable magnetic disks, and removable optical media such as CDs or DVDs, those of ordinary skill in the art can use a zip drive, magnetic cassette, flash memory card, cartridge, etc. It will be appreciated that other types of media readable by a computer, etc., may also be used in the exemplary operating environment and any such media may include 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 the drive and RAM 1112, including the operating system 1130, one or more application programs 1132, other program modules 1134, and program data 1136. All or part of the operating system, applications, modules, and/or data may also be cached in RAM 1112. It will be appreciated that the present disclosure can be implemented in various commercially available operating systems or combinations of operating systems.

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

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

컴퓨터(1102)는 유선 및/또는 무선 통신을 통한 원격 컴퓨터(들)(1148) 등의 하나 이상의 원격 컴퓨터로의 논리적 연결을 사용하여 네트워크화된 환경에서 동작할 수 있다. 원격 컴퓨터(들)(1148)는 워크스테이션, 컴퓨팅 디바이스 컴퓨터, 라우터, 퍼스널 컴퓨터, 휴대용 컴퓨터, 마이크로프로세서-기반 오락 기기, 피어 장치 또는 기타 통상의 네트워크 노드일 수 있으며, 일반적으로 컴퓨터(1102)에 대해 기술된 구성요소들 중 다수 또는 그 전부를 포함하지만, 간략함을 위해, 메모리 저장 장치(1150)만이 도시되어 있다. 도시되어 있는 논리적 연결은 근거리 통신망(LAN)(1152) 및/또는 더 큰 네트워크, 예를 들어, 원거리 통신망(WAN)(1154)에의 유선/무선 연결을 포함한다. 이러한 LAN 및 WAN 네트워킹 환경은 사무실 및 회사에서 일반적인 것이며, 인트라넷 등의 전사적 컴퓨터 네트워크(enterprise-wide computer network)를 용이하게 해주며, 이들 모두는 전세계 컴퓨터 네트워크, 예를 들어, 인터넷에 연결될 수 있다.The computer 1102 can 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 communication. The 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, typically in computer 1102. It includes many or all of the components described with respect to, but for simplicity, only the memory storage device 1150 is shown. The illustrated logical connections include wired/wireless connections to a local area network (LAN) 1152 and/or a larger network, such as a wide area network (WAN) 1154. Such 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 computer networks around the world, 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, the computer 1102 is connected to the local network 1152 via a wired and/or wireless communication network interface or adapter 1156. The adapter 1156 may facilitate wired or wireless communication to the LAN 1152, which also includes a wireless access point installed therein to communicate with the wireless adapter 1156. When used in a WAN networking environment, the computer 1102 may include a modem 1158, connect to a communication computing device on the WAN 1154, or establish communication over the WAN 1154, such as through the Internet. Have other means. The modem 1158, which may be an internal or external and wired or wireless device, is connected to the system bus 1108 via a serial port interface 1142. In a networked environment, program modules described for the computer 1102 or portions thereof may be stored in the remote memory/storage device 1150. It will be appreciated that the illustrated network connection is exemplary and other means of establishing a communication link between computers can be used.

컴퓨터(1102)는 무선 통신으로 배치되어 동작하는 임의의 무선 장치 또는 개체, 예를 들어, 프린터, 스캐너, 데스크톱 및/또는 휴대용 컴퓨터, PDA(portable data assistant), 통신 위성, 무선 검출가능 태그와 연관된 임의의 장비 또는 장소, 및 전화와 통신을 하는 동작을 한다. 이것은 적어도 Wi-Fi 및 블루투스 무선 기술을 포함한다. 따라서, 통신은 종래의 네트워크에서와 같이 미리 정의된 구조이거나 단순하게 적어도 2개의 장치 사이의 애드혹 통신(ad hoc communication)일 수 있다.The computer 1102 is associated with any wireless device or entity that is deployed and operates in wireless communication, such as a printer, scanner, desktop and/or portable computer, a portable data assistant (PDA), communication satellite, or wireless detectable tag. It operates to communicate with any equipment or place and telephone. This includes at least Wi-Fi and Bluetooth wireless technology. Accordingly, the communication may be a predefined structure as in a conventional network or simply 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 a connection to the Internet or the like without a wired connection. Wi-Fi is a wireless technology such as a cell phone that allows a computer, for example, a computer to transmit and receive data indoors and outdoors, ie anywhere within the base station's coverage area. Wi-Fi networks use a wireless technology called IEEE 802.11 (a,b,g, etc.) to provide a secure, reliable and high-speed wireless connection. Wi-Fi can be used to connect computers to each other, to the Internet, and to a wired network (using IEEE 802.3 or Ethernet). Wi-Fi networks can operate in unlicensed 2.4 and 5 GHz radio bands, for example, at 11 Mbps (802.11a) or 54 Mbps (802.11b) data rates, or in products that include both bands (dual band). have.

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

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

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

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

제시된 실시예들에 대한 설명은 임의의 본 개시의 기술 분야에서 통상의 지식을 가진 자가 본 개시를 이용하거나 또는 실시할 수 있도록 제공된다. 이러한 실시예들에 대한 다양한 변형들은 본 개시의 기술 분야에서 통상의 지식을 가진 자에게 명백할 것이다. 여기에 정의된 일반적인 원리들은 본 개시의 범위를 벗어남이 없이 다른 실시예들에 적용될 수 있다. 그리하여, 본 개시는 여기에 제시된 실시예들로 한정되는 것이 아니라, 여기에 제시된 원리들 및 신규한 특징들과 일관되는 최광의의 범위에서 해석되어야 할 것이다.Descriptions of the presented embodiments are 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 of the present disclosure. The general principles defined herein can be applied to other embodiments without departing from the scope of the present disclosure. Thus, the present disclosure should not be limited to the embodiments presented herein, but should be interpreted in the broadest scope consistent with the principles and novel features presented herein.

Claims (14)

컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램으로서, 상기 컴퓨터 프로그램은 하나 이상의 프로세서에서 실행되는 경우 문서 이미지 상에서 글자를 인식하기 위한 이하의 동작들을 수행하도록 하며 상기 동작들은,
문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하는 동작;
상기 문자 블록 및 상기 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식하는 동작;
상기 인식된 글자에 적어도 부분적으로 기초하여 상기 윈도우를 재조정하는 동작; 및
상기 문자 블록 내에서 상기 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
A computer program stored on a computer readable storage medium, the computer program, when executed on one or more processors, performs the following operations for recognizing characters on a document image, the operations being:
Determining a window based at least in part on a character block containing one or more letters on the document image;
Recognizing a character by calculating the character block and the window through a character recognition model including one or more pre-trained network functions;
Re-adjusting the window based at least in part on the recognized character; And
Sliding the window in the character block to output characters recognized as character strings;
Containing,
A computer program stored on a computer readable storage medium.
제 1 항에 있어서,
상기 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하는 동작은,
상기 문서 이미지 상에서 색상 값을 가지는 픽셀을 기준으로 상기 문자 블록을 결정하는 동작;
상기 문자 블록에서 일 방향의 픽셀 라인 중 색상 값을 가지는 픽셀이 사전 결정된 비율 이하인 픽셀 라인을 기준선으로 결정하는 동작; 및
상기 기준선에 적어도 부분적으로 기초하여 상기 윈도우를 결정하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
According to claim 1,
The determining of a window based at least in part on a character block including one or more letters on the document image may include:
Determining the character block based on a pixel having a color value on the document image;
Determining a pixel line having a color value among pixel lines in one direction in the character block as a reference line; And
Determining the window based at least in part on the reference line;
Containing,
A computer program stored on a computer readable storage medium.
제 1 항에 있어서,
상기 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하는 동작은,
상기 문서 이미지 상의 연결 요소 추출을 통해 상기 문자 블록을 결정하는 동작;
상기 문자 블록 상에서 글자가 추출되는지 여부를 판단하는 동작; 및
상기 문자 블록 상에서 글자가 추출되는 경우, 상기 글자의 크기에 대응되도록 상기 윈도우를 결정하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
According to claim 1,
The determining of a window based at least in part on a character block including one or more letters on the document image may include:
Determining the text block through extraction of connection elements on the document image;
Determining whether a character is extracted on the character block; And
When the text is extracted on the text block, determining the window to correspond to the size of the text;
Containing,
A computer program stored on a computer readable storage medium.
제 3 항에 있어서,
상기 문서 이미지 상의 연결 요소 추출을 통해 상기 문자 블록을 결정하는 동작은,
상기 문서 이미지 상의 연결 요소를 각각 추출한 단위 문자 블록을 결정하는 동작; 및
상기 단위 문자 블록 중 사전 설정된 거리 이내에 위치한 상기 단위 문자 블록을 상기 하나의 문자 블록으로 그룹화하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
The method of claim 3,
The operation of determining the text block through extraction of a connection element on the document image may include:
Determining a unit character block from which each connection element on the document image is extracted; And
Grouping the unit character blocks located within a predetermined distance among the unit character blocks into the one character block;
Containing,
A computer program stored on a computer readable storage medium.
제 1 항에 있어서,
상기 문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하는 동작은,
상기 문서 이미지의 컨텍스트 분석을 통해 상기 문자 블록에 위치하는 글자의 속성을 결정하는 동작; 및
상기 글자의 속성에 기초하여 상기 윈도우를 결정하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
According to claim 1,
The determining of a window based at least in part on a character block including one or more letters on the document image may include:
Determining an attribute of a character located in the character block through context analysis of the document image; And
Determining the window based on the attribute of the letter;
Containing,
A computer program stored on a computer readable storage medium.
제 5 항에 있어서,
상기 문서 이미지의 컨텍스트 분석을 통해 상기 문자 블록에 위치하는 글자의 속성을 결정하는 동작은,
상기 문자 블록의 수직, 또는 수평에 위치한 다른 문자 블록에서 인식된 인식 단어에 대한 의미분석을 수행하는 동작;
상기 인식 단어에 대한 의미분석 결과에 기초하여, 상기 문자 블록의 항목을 결정하는 동작; 및
상기 항목과 매칭되는 글자의 종류를 상기 글자의 항목과 속성으로 결정하는 동작;
을 포함하고, 그리고
상기 글자의 속성에 기초하여 상기 윈도우를 결정하는 동작은,
상기 윈도우를 상기 항목과 매칭되는 글자의 종류에 기초하여 결정하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
The method of claim 5,
The operation of determining the attribute of the text located in the text block through context analysis of the document image may include:
Performing a semantic analysis on recognized words recognized in other character blocks positioned vertically or horizontally of the character block;
Determining an item of the character block based on a result of semantic analysis of the recognized word; And
Determining a type of character matching the item as an item and attribute of the character;
And
The operation of determining the window based on the attribute of the letter,
Determining the window based on the type of character matching the item;
Containing,
A computer program stored on a computer readable storage medium.
제 1 항에 있어서,
상기 문자 블록 및 상기 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식하는 동작은,
상기 문자 블록을 상기 윈도우를 기준으로 크롭(crop)하여 글자 이미지를 생성하는 동작; 및
상기 글자 이미지를 상기 글자 인식 모델을 통해 연산함으로써 글자를 인식하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
According to claim 1,
The operation of recognizing a character by calculating the character block and the window through a character recognition model including one or more pre-trained network functions includes:
Generating a character image by cropping the character block based on the window; And
Recognizing a character by calculating the character image through the character recognition model;
Containing,
A computer program stored on a computer readable storage medium.
제 7 항에 있어서,
상기 글자 이미지를 상기 글자 인식 모델을 통해 연산함으로써 글자를 인식하는 동작은,
상기 글자 이미지를 상기 글자 인식 모델을 통해 연산함으로써 인식되는 글자 및 상기 글자의 인식 신뢰도를 출력하는 동작;
상기 글자의 인식 신뢰도와 사전 결정된 기준 인식 신뢰도에 기초하여 상기 글자 이미지의 글자가 적절하게 인식되었는지 여부를 판단하는 동작; 및
상기 글자 이미지의 글자가 적절하게 인식되었다고 판단되는 경우, 상기 글자를 출력하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
The method of claim 7,
The operation of recognizing a character by calculating the character image through the character recognition model may include:
Outputting a character recognized by calculating the character image through the character recognition model and a recognition reliability of the character;
Determining whether the characters of the character image are properly recognized based on the character recognition reliability and a predetermined reference recognition reliability; And
Outputting the text when it is determined that the text of the text image is properly recognized;
Containing,
A computer program stored on a computer readable storage medium.
제 8 항에 있어서,
상기 글자의 인식 신뢰도와 사전 결정된 기준 인식 신뢰도에 기초하여 상기 글자 이미지의 글자가 적절하게 인식되었는지 여부를 판단하는 동작은,
상기 글자의 인식 신뢰도가 사전 결정된 기준 인식 신뢰도 미만인 경우, 상기 윈도우의 크기 및 모양 중 적어도 하나를 변경하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
The method of claim 8,
The operation of determining whether the characters of the character image is properly recognized based on the recognition reliability of the characters and the predetermined reference recognition reliability,
Changing at least one of the size and shape of the window when the recognition reliability of the text is less than a predetermined reference recognition reliability;
Containing,
A computer program stored on a computer readable storage medium.
제 1 항에 있어서,
상기 문자 블록 내에서 상기 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력하는 동작은,
상기 문자 블록 내에서 상기 윈도우를 이동시키기 위한 슬라이딩 방향을 결정하는 동작;
상기 윈도우 및 상기 슬라이딩 방향에 기초하여 생성되는 하나 이상의 글자 이미지 상에서 글자를 인식하는 동작; 및
상기 문자 블록 내의 인식된 상기 글자의 위치 및 순서 중 적어도 하나에 기초하여 상기 문자열을 생성하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
According to claim 1,
The operation of sliding the window in the character block and outputting the recognized character as a character string,
Determining a sliding direction for moving the window within the character block;
Recognizing a letter on one or more letter images generated based on the window and the sliding direction; And
Generating the character string based on at least one of the recognized position and order of the characters in the character block;
Containing,
A computer program stored on a computer readable storage medium.
제 10 항에 있어서,
상기 문자 블록 내에서 상기 윈도우를 이동시키기 위한 슬라이딩 방향을 결정하는 동작은,
상기 문자 블록의 모양에 기초하여 상기 슬라이딩 방향을 결정하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
The method of claim 10,
The operation of determining a sliding direction for moving the window in the character block is:
Determining the sliding direction based on the shape of the character block;
Containing,
A computer program stored on a computer readable storage medium.
제 10 항에 있어서,
상기 문자 블록 내의 인식된 상기 글자의 위치 및 순서 중 적어도 하나에 기초하여 상기 문자열을 생성하는 동작은,
상기 문자열이 포함하는 하나 이상의 글자를 의미 단위로 그룹화하여 하나 이상의 인식 단어를 추출하는 동작; 및
상기 인식 단어를 메모리에 저장된 하나 이상의 기준 단어와 비교한 결과에 기초하여, 상기 문자열이 포함하는 하나 이상의 글자에 대한 상기 윈도우를 변경하거나, 또는, 상기 슬라이딩 방향을 변경하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
The method of claim 10,
The operation of generating the character string based on at least one of the recognized position and order of the characters in the character block may include:
Extracting one or more recognized words by grouping one or more letters included in the string into semantic units; And
Changing the window for one or more letters included in the character string or changing the sliding direction based on a result of comparing the recognized word with one or more reference words stored in a memory;
Containing,
A computer program stored on a computer readable storage medium.
문서 이미지 상에서 글자를 인식하기 위한 방법에 있어서,
문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하는 단계;
상기 문자 블록 및 상기 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식하는 단계;
상기 인식된 글자에 적어도 부분적으로 기초하여 상기 윈도우를 재조정하는 단계; 및
상기 문자 블록 내에서 상기 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력하는 단계;
를 포함하는,
문서 이미지 상에서 글자를 인식하기 위한 방법.
A method for recognizing text on a document image,
Determining a window based at least in part on a character block containing one or more letters on the document image;
Recognizing a character by calculating the character block and the window through a character recognition model including one or more pre-trained network functions;
Re-adjusting the window based at least in part on the recognized character; And
Sliding the window in the character block to output characters recognized as character strings;
Containing,
A method for recognizing text on document images.
문서 이미지 상에서 글자를 인식하기 위한 컴퓨팅 장치로서,
하나 이상의 코어를 포함하는 프로세서; 및
메모리;
를 포함하고,
상기 프로세서는,
문서 이미지 상에서 하나 이상의 글자를 포함하는 문자 블록에 적어도 부분적으로 기초하여 윈도우(window)를 결정하고,
상기 문자 블록 및 상기 윈도우를 사전 학습된 하나 이상의 네트워크 함수를 포함하는 글자 인식 모델을 통해 연산함으로써 글자를 인식하고,
상기 인식된 글자에 적어도 부분적으로 기초하여 상기 윈도우를 재조정하고, 그리고
상기 문자 블록 내에서 상기 윈도우를 슬라이딩(sliding)하여 인식되는 글자를 문자열로 출력하는,
문서 이미지 상에서 글자를 인식하기 위한 컴퓨팅 장치.

A computing device for recognizing text on a document image,
A processor comprising one or more cores; And
Memory;
Including,
The processor,
Determine a window based at least in part on a character block containing one or more letters on the document image,
Characters are recognized by calculating the character block and the window through a character recognition model including one or more pre-trained network functions,
Readjust the window based at least in part on the recognized text, and
Sliding the window in the character block to output the recognized character as a character string,
A computing device for recognizing text on a document image.

KR1020180148660A 2018-11-27 2018-11-27 Method for recognizing characters on document images KR102122561B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180148660A KR102122561B1 (en) 2018-11-27 2018-11-27 Method for recognizing characters on document images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180148660A KR102122561B1 (en) 2018-11-27 2018-11-27 Method for recognizing characters on document images

Publications (2)

Publication Number Publication Date
KR20200062806A true KR20200062806A (en) 2020-06-04
KR102122561B1 KR102122561B1 (en) 2020-06-12

Family

ID=71080668

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180148660A KR102122561B1 (en) 2018-11-27 2018-11-27 Method for recognizing characters on document images

Country Status (1)

Country Link
KR (1) KR102122561B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200092487A (en) * 2019-01-10 2020-08-04 한국전자통신연구원 Apparatus for recognition of letters using multiple neural networks and operating method thereof
CN112434668A (en) * 2020-12-14 2021-03-02 北京一起教育科技有限责任公司 Method and device for evaluating cleanliness and electronic equipment
CN112613348A (en) * 2020-12-01 2021-04-06 浙江华睿科技有限公司 Character recognition method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05128302A (en) * 1991-11-05 1993-05-25 Canon Inc Method and device for character recognition
JP2005250816A (en) * 2004-03-04 2005-09-15 Fujitsu Ltd Document image layout analyzing program
JP2011150466A (en) * 2010-01-20 2011-08-04 Fujitsu Ltd Device, program and method for recognizing character string

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05128302A (en) * 1991-11-05 1993-05-25 Canon Inc Method and device for character recognition
JP2005250816A (en) * 2004-03-04 2005-09-15 Fujitsu Ltd Document image layout analyzing program
JP2011150466A (en) * 2010-01-20 2011-08-04 Fujitsu Ltd Device, program and method for recognizing character string

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200092487A (en) * 2019-01-10 2020-08-04 한국전자통신연구원 Apparatus for recognition of letters using multiple neural networks and operating method thereof
CN112613348A (en) * 2020-12-01 2021-04-06 浙江华睿科技有限公司 Character recognition method and electronic equipment
CN112434668A (en) * 2020-12-14 2021-03-02 北京一起教育科技有限责任公司 Method and device for evaluating cleanliness and electronic equipment

Also Published As

Publication number Publication date
KR102122561B1 (en) 2020-06-12

Similar Documents

Publication Publication Date Title
KR102122560B1 (en) Method to update character recognition model
CN111476284B (en) Image recognition model training and image recognition method and device and electronic equipment
CN110348294B (en) Method and device for positioning chart in PDF document and computer equipment
US20190385054A1 (en) Text field detection using neural networks
US20210295114A1 (en) Method and apparatus for extracting structured data from image, and device
CN110363091B (en) Face recognition method, device and equipment under side face condition and storage medium
CN110909725A (en) Method, device and equipment for recognizing text and storage medium
KR102122561B1 (en) Method for recognizing characters on document images
CN111488826A (en) Text recognition method and device, electronic equipment and storage medium
CN110399878B (en) Form format recovery method, computer readable medium and computer
WO2020223859A1 (en) Slanted text detection method, apparatus and device
CN113742483A (en) Document classification method and device, electronic equipment and storage medium
WO2023116231A1 (en) Image classification method and apparatus, computer device, and storage medium
US11557140B2 (en) Model-independent confidence values for extracted document information using a convolutional neural network
CN112949476B (en) Text relation detection method, device and storage medium based on graph convolution neural network
KR20200092450A (en) Technique for perfoming data labeling
US11373043B2 (en) Technique for generating and utilizing virtual fingerprint representing text data
CN114821610B (en) Method for generating webpage code from image based on tree-shaped neural network
CN110347841B (en) Document content classification method and device, storage medium and electronic equipment
KR102145858B1 (en) Method for standardizing recognized term from document image
CN113221523A (en) Method of processing table, computing device, and computer-readable storage medium
Li et al. Comic image understanding based on polygon detection
US9619521B1 (en) Classification using concept ranking according to negative exemplars
CN115880702A (en) Data processing method, device, equipment, program product and storage medium
KR20200044179A (en) Apparatus and method for recognizing character

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant