Method, system and computer program for layering text recognized from an image
The hierarchical text structuring method enhances natural language processing by clustering text regions into structured units, addressing the challenge of reconstructing word-by-word recognition into coherent sentences, thereby improving translation and information retrieval.
Patent Information
- Application Number
- JP2021147615
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-09-15
- Filing Date
- 2021-09-10
- Publication Date
- 2024-09-02
- Estimated Expiration
- 2041-09-10
AI Technical Summary
Existing text recognition systems struggle to reconstruct word-by-word recognition results into coherent sentences or paragraphs, lacking a hierarchical structure for natural language processing.
A method and system for hierarchical text structuring (HTS) that utilizes a computer system to cluster text regions based on visual partitions, constructing deep learning-based learning models using natural language processing units, including linear, virtual, and correlation clusters to reconstruct text into sentences and paragraphs.
Enhances natural language processing performance by generating training data for more complete structural units, improving translation, information retrieval, and document summarization through improved text recognition and reconstruction.
Smart Images

Figure 0007543230000005 
Figure 0007543230000013 
Figure 0007543230000016
Abstract
Description
[Technical field]
[0001] The following description relates to a technique for hierarchizing text recognition results. [Background technology]
[0002] Mobile device and camera manufacturers, as well as mobile communications companies, portal companies, solution companies, and content companies that can build services, are developing technology to recognize text in images and use this to provide a variety of services.
[0003] It is now possible to extract and recognize specific scene text from natural scene images captured by a camera, and then use this for real-time translation and information searches.
[0004] As an example of related technology, Patent Document 1 (published on Dec. 12, 2001) discloses a video camera equipped with a translation function that recognizes characters in a video image and provides a translation of the recognized characters. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Korean Patent Publication No. 10-2001-0109861 Summary of the Invention [Problem to be solved by the invention]
[0006] A method and system for structuring text recognized from an image using hierarchical text structuring (HTS) is provided.
[0007] A method and system for reconstructing word-based text recognition results into sentences or paragraphs is provided.
[0008] A method and system are provided for performing hierarchical text structuring based on text lines, visual divisions, and styles. [Means for solving the problem]
[0009] The present invention provides a method executed by a computer system, the computer system including at least one processor configured to execute computer-readable instructions contained in a memory, the method including: constructing, by the at least one processor, a natural language processing unit by clustering at least one text region based on visual partition areas between the text regions in an image; and constructing, by the at least one processor, a deep learning-based learning model using the natural language processing unit as learning data.
[0010] According to one aspect, the step of constructing the natural language processing unit may cluster the text regions using at least one of a line, a figure, an image, a background, a space, a symbol, and a number that can divide the text regions as the visual division region.
[0011] According to another aspect, constructing the natural language processing unit may include constructing a set of word elements corresponding to a word-based text area recognized from the image as a linear cluster corresponding to a line-based text area.
[0012] According to another aspect, the forming of the linear cluster may form a set of consecutive word elements that are collinear but have no visually distinct region as one linear cluster.
[0013] In another aspect, constructing the natural language processing unit may further include constructing a set of the linear clusters as a virtual cluster corresponding to a text region of a paragraph unit.
[0014] According to another aspect, the step of configuring the virtual clusters may configure a set of continuous linear clusters in which no visually distinct region exists as one virtual cluster.
[0015] According to another aspect, the configuring of the virtual clusters may configure at least one linear cluster as the virtual cluster based on a text style included in the linear cluster.
[0016] In another aspect, forming the natural language processing unit may further include forming a set of the virtual clusters as a correlated cluster corresponding to a correlated text region.
[0017] According to another aspect, the forming of the correlated clusters may include forming a set of consecutive virtual clusters corresponding to a complete sentence or phrase as one correlated cluster.
[0018] According to yet another aspect, the word element may include polygon coordinate information indicating a text region in word units, and the linear cluster, the virtual cluster, and the correlation cluster may include collection information of child nodes constituting the corresponding cluster.
[0019] A computer program is provided that is recorded on a computer-readable recording medium for causing the computer system to execute the method.
[0020] A computer system is provided that includes at least one processor configured to execute computer-readable instructions contained in a memory, wherein the at least one processor processes a process of constructing a natural language processing unit by clustering at least one text region based on visual partition areas between the text regions in an image, and a process of building a deep learning-based learning model using the natural language processing unit as learning data. Effect of the Invention
[0021] According to an embodiment of the present invention, learning data for a learning model for natural language processing can be generated by hierarchical text structuring, which reconstructs word-by-word text recognized from an image into sentences or paragraphs.
[0022] According to an embodiment of the present invention, a deep learning-based learning model can be constructed using learning data with hierarchical text structuring, thereby making it possible to set natural language processing units with a more complete structure and to improve natural language processing performance in various fields such as machine translation, information retrieval, question and answering, document summarization, etc. [Brief description of the drawings]
[0023] [Figure 1] FIG. 2 is a block diagram illustrating an example of the internal configuration of a computer system according to an embodiment of the present invention. [Diagram 2] FIG. 2 illustrates example components that may be included in a processor of a computer system in accordance with one embodiment of the present invention. [Diagram 3] 4 is a flow chart illustrating an example method that may be performed by a computer system in accordance with an embodiment of the present invention. [Figure 4] FIG. 2 illustrates an example of a hierarchical text structuring process in accordance with an embodiment of the present invention. [Diagram 5] FIG. 2 illustrates an example of a hierarchical text structuring process in accordance with an embodiment of the present invention. [Figure 6] FIG. 2 illustrates an example of a hierarchical text structuring process in accordance with an embodiment of the present invention. [Figure 7] FIG. 2 illustrates an example of a hierarchical text structuring process in accordance with an embodiment of the present invention. [Figure 8] FIG. 2 illustrates an example of a hierarchical text structuring process in accordance with an embodiment of the present invention. [Figure 9] FIG. 2 is a diagram illustrating an example of a visually segmented region in accordance with an embodiment of the present invention. [Figure 10] FIG. 2 is a diagram illustrating an example of a visually segmented region in accordance with an embodiment of the present invention. [Figure 11] FIG. 2 is a diagram illustrating an example of a visually segmented region in accordance with an embodiment of the present invention. [Figure 12] FIG. 2 is an exemplary diagram illustrating a process of clustering a word-based text (WE) into linear clusters (LC) according to an embodiment of the present invention. [Figure 13] FIG. 2 is an exemplary diagram illustrating a process of clustering a word-based text (WE) into linear clusters (LC) according to an embodiment of the present invention. [Figure 14] 1 is an exemplary diagram illustrating a process of clustering a linear cluster (LC) into a virtual cluster (VC) according to an embodiment of the present invention. [Figure 15] 1 is an exemplary diagram illustrating a process of clustering a linear cluster (LC) into a virtual cluster (VC) according to an embodiment of the present invention. [Figure 16] 1 is an exemplary diagram illustrating a process of clustering a virtual cluster (VC) into a correlated cluster (CC) in accordance with an embodiment of the present invention; [Figure 17] 1 is an exemplary diagram illustrating a process of clustering a virtual cluster (VC) into a correlated cluster (CC) in accordance with an embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0025] The present invention relates to a technique for hierarchically structuring text recognition results. The present invention relates to an embodiment including the subject matter specifically disclosed in the present specification, which can hierarchically structurize text recognized from an image into more complete structural units by hierarchical text structuring (HTS).
[0026] 1 is a block diagram showing an example of a computer system according to an embodiment of the present invention. For example, a text layering system according to an embodiment of the present invention may be realized by a computer system 100 shown in FIG.
[0027] As shown in FIG. 1, a computer system 100 may include a memory 110, a processor 120, a communication interface 130, and an input / output interface as components for executing a text layering method according to an embodiment of the present invention.
[0028] The memory 110 is a computer-readable recording medium and may include a random access memory (RAM), a read only memory (ROM), and a permanent mass storage device such as a disk drive. Here, the permanent mass storage device such as a ROM or a disk drive may be included in the computer system 100 as a separate permanent storage device separate from the memory 110. The memory 110 may also store an operating system and at least one program code. Such software components may be loaded into the memory 110 from a computer-readable recording medium separate from the memory 110. Such separate computer-readable recording medium may include a computer-readable recording medium such as a floppy drive, a disk, a tape, a DVD / CD-ROM drive, a memory card, etc. In another embodiment, the software components may be loaded into the memory 110 through the communication interface 130, which is not a computer-readable recording medium. For example, the software components may be loaded into the memory 110 of the computer system 100 based on a computer program installed by a file received via the network 160.
[0029] The processor 120 may be configured to process instructions of a computer program by performing basic arithmetic, logic, and input / output operations. The instructions may be provided to the processor 120 by the memory 110 or the communication interface 130. For example, the processor 120 may be configured to execute instructions received according to program code stored in a storage device such as the memory 110.
[0030] The communication interface 130 may provide a function for the computer system 100 to communicate with other devices via the network 160. As an example, requests, instructions, data, files, etc. generated by the processor 120 of the computer system 100 according to program codes recorded in a recording device such as the memory 110 may be transmitted to other devices via the network 160 under the control of the communication interface 130. Conversely, signals, instructions, data, files, etc. from other devices may be received by the computer system 100 via the communication interface 130 of the computer system 100 via the network 160. The signals, instructions, data, etc. received via the communication interface 130 may be transmitted to the processor 120 or the memory 110, and the files, etc. may be recorded in a recording medium (the above-mentioned permanent recording device) that the computer system 100 may further include.
[0031] The communication method is not limited, and may include not only a communication method using a communication network (for example, a mobile communication network, a wired Internet, a wireless Internet, a broadcasting network) that the network 160 can include, but also short-range wireless communication between devices. For example, the network 160 may include any one or more of a personal area network (PAN), a local area network (LAN), a campus area network (CAN), a metropolitan area network (MAN), a wide area network (WAN), a broadband network (BBN), the Internet, and the like. Furthermore, the network 160 may include any one or more of a network topology including, but not limited to, a bus network, a star network, a ring network, a mesh network, a star-bus network, a tree or a hierarchical network, and the like.
[0032] The input / output interface 140 may be a means for interfacing with the input / output device 150. For example, the input device may include a device such as a microphone, a keyboard, a camera, or a mouse, and the output device may include a device such as a display or a speaker. As another example, the input / output interface 140 may be a means for interfacing with a device in which functions for input and output are integrated into one, such as a touch screen. The input / output device 150 may be configured as one device together with the computer system 100.
[0033] Also, in other embodiments, computer system 100 may include fewer or more components than those in Figure 1. However, most of the prior art components need not be explicitly shown in the figures. For example, computer system 100 may be implemented to include at least some of the input / output devices 150 described above, and may further include other components such as a transceiver, a camera, various sensors, a database, etc.
[0034] FIG. 2 is a diagram illustrating example components that may be included in a processor of a computer system in one embodiment of the present invention, and FIG. 3 is a flowchart illustrating an example of a text layering method that may be performed by a computer system in one embodiment of the present invention.
[0035] 2, the processor 120 may include a linear clustering unit 210, a virtual clustering unit 220, and a correlation clustering unit 230. Such components of the processor 120 may represent different functions executed by the processor 120 according to control instructions provided by at least one program code. For example, the linear clustering unit 210 may be used as a functional representation that operates to control the computer system 100 so that the processor 120 clusters the text by words to construct linear clusters.
[0036] The processor 120 and components of the processor 120 may execute steps 310 to 330 included in the text layering method of Fig. 3. For example, the processor 120 and components of the processor 120 may be implemented to execute instructions from the operating system code included in the memory 110 and the at least one program code described above. Here, the at least one program code may correspond to the code of a program implemented to process the text layering method.
[0037] The text layering method may not occur in the order shown in the figures, some of the steps may be omitted, or additional steps may be included.
[0038] The processor 120 may load a program code recorded in a program file for the text layering method into the memory 110. For example, the program file for the text layering method may be recorded in a persistent recording device, and the processor 120 may control the computer system 100 so that the program code is loaded into the memory 110 from the program file recorded in the persistent recording device via a bus. In this case, the processor 120 and the linear clustering unit 210, the virtual clustering unit 220, and the correlation clustering unit 230 included in the processor 120 may be different functional representations of the processor 120 for executing instructions of corresponding parts of the program code loaded into the memory 110 and performing subsequent steps 310 to 330. To perform steps 310 to 330, the processor 120 and components of the processor 120 may directly process operations according to control instructions or control the computer system 100.
[0039] The processor 120 may perform hierarchical text structuring based on text lines, visual divisions, and styles of text recognized from an image by OCR (optical character recognition) or the like. The processor 120 may generate learning data for natural language processing by word unit, line unit, or paragraph unit by hierarchical text structuring, and may construct a deep learning model (e.g., UNet, GNN (graph neural network), etc.) for learning such learning data. In other words, the processor 120 may hierarchically organize the text recognition results by word unit into natural language processing units with a more complete structure by hierarchical text structuring to improve natural language processing performance such as image translation quality, and may learn the results.
[0040] In step 310, the linear clustering unit 210 may configure a set of word elements (hereinafter, referred to as "WE"), which indicate a word-based text recognized from an image, as a linear cluster (hereinafter, referred to as "LC"). A WE means a word-based text area recognized by OCR or the like, and has polygon coordinate information including 4 to 16 points. The linear clustering unit 210 may configure an LC, which indicates a line-based text area, by clustering at least one WE based on a visual division area between the WEs. An LC means a set of consecutive WEs located on the same line, and does not have polygon coordinate information. In general, an LC means a line-based text area, but if a visual division area exists between WEs on the same line, the LCs may be configured as different LCs. Also, if text styles are different from each other, but if they are on the same line and there is no visual division area, the LCs may be configured as one LC. The text style may include typographic information such as the text's font, size, bold, italic, etc. Visual division regions are described in more detail below.
[0041] In step 320, the virtual clustering unit 220 may configure a virtual cluster (hereinafter, referred to as "VC") indicating a text region of a paragraph unit by clustering at least one LC based on a visual division area between the LCs. A VC means a set of consecutive LCs without a visual division area, and does not have polygon coordinate information. A single VC may contain multiple consecutive sentences. If the text styles (font, size, bold, italic, etc.) of adjacent LCs are different, consecutive LCs without a visual division area may be separated as different VCs. For example, LCs with different text sizes may be configured as their own VCs. If adjacent LCs are each composed of only one different style, consecutive LCs without a visual division area may be separated as different VCs. However, if two or more different styles are mixed in an LC, they may be considered as one VC if they are consecutive and do not have a visual division area.
[0042] In step 330, the correlation clustering unit 230 may construct a correlation cluster (hereinafter, referred to as "CC") indicating correlated text regions by clustering at least one VC based on the visual division regions of adjacent VCs. A CC means a set of consecutive VCs without visual division regions and does not have polygon coordinate information. A CC is a set of VCs corresponding to consecutive phrases or sentences, and only adjacent VCs may be treated as one CC.
[0043] The processor 120 may use at least one of LC, VC, and CC, which are obtained by reconstructing the results of text recognition on a word-by-word basis into sentences or paragraphs, as learning data for a deep learning model for natural language processing.
[0044] 4 to 8 are diagrams showing an example of a hierarchical text structuring process in one embodiment of the present invention.
[0045] Referring to FIG. 4, WE 40 may be defined as word-by-word text that has been recognized by OCR or the like.
[0046] 5, the processor 120 may bundle a set of WEs 40 located on the same line as an LC 50. If there is a visually distinct area between the WEs 40 even if they are located on the same line, the processor 120 may separate them as different LCs 50, and if there is no visually distinct area between the WEs 40 even if they are located on the same line but have different text styles, the processor 120 may configure them as a single LC 50.
[0047] 6, the processor 120 may bundle a set of adjacent LCs 50 without visual divisions as a VC 60. For example, for adjacent LCs 50 without visual divisions, if the text sizes are different, the processor 120 may separate them as different VCs 60, and if the text sizes are the same, the processor 120 may bundle them as a single VC 60. In the case of adjacent LCs 50 without visual divisions and each consisting of only one different style, the processor 120 may separate them as different VCs 60, and in the case of two or more different styles mixed within an LC 50, if they are continuous without a visual division area, the processor 120 may configure them as a single VC 60.
[0048] One WE 40 may constitute one LC 50 and one VC 60. For example, even if adjacent WEs 40 are on the same horizontal line, they may be separated into different LCs 50 and VCs 60 if they are visually separated by a line or the like.
[0049] Referring to FIG. 7, the processor 120 may bundle, as a CC 70, a set of VCs among adjacent VCs 60 that correspond to consecutive phrases or sentences.
[0050] Therefore, the types with hierarchical text are classified as WE40, LC50, VC60, and CC70.
[0051] LC50, VC60, and CC70 do not have polygon coordinate information, and the data formats of LC50, VC60, and CC70 shown in FIG. 8 are as shown in Table 1. The text filter is the result of combining the text of child nodes as a space. In other words, the child node of CC70 is VC60, the child node of VC60 is LC50, and the child node of LC50 is WE40. While WE40 has polygon coordinate information, LC50, VC60, and CC70 have set information of child nodes that make up the corresponding cluster instead of coordinate information.
[0052] [Table 1]
[0053] 9 to 11 are diagrams showing examples of visually divided regions in one embodiment of the present invention.
[0054] A visually divided region that is a basis for hierarchical text structuring may be defined as follows: A visually divided region may be defined when a text region is divided by a line, a figure, an image, etc., when a text region is divided by different backgrounds, or when the intervals between text regions are irregular.
[0055] 9, the processor 120 determines that text regions (WE40, LC50, VC60) are visually separated when they are separated by various graphics 902 such as table lines 901 or boxes. In other words, lines 901, graphics 902, images, etc. may be used as visually separated regions. For example, a set of adjacent LC50 may be bundled as one VC60 if they are not separated by lines 901 or graphics 902, and may be bundled as different VC60 if they are separated by lines 901 or graphics 902.
[0056] 10, the processor 120 determines that a text region is visually separated if it is separated by different backgrounds 1001, 1002. In other words, the text backgrounds 1001, 1002 may be used as visually separated regions. For example, if adjacent LC50 have the same background, they may be bundled as one VC60, and if they are separated by different backgrounds, they may be bundled as different VC60.
[0057] 11, the processor 120 may check the spacing 1101, 1102, 1103, 1104 of the text regions, and if the spacing 1101, 1102, 1103, 1104 of the text regions is irregular, it may determine that the text regions are visually separated. In other words, the irregular spacing of the text regions may be used as a visually separated region. If the spacing between adjacent LC50s is regular, they may be bundled as one VC60. On the other hand, if the spacing between LC50s changes from being regular, that is, the portion where it becomes irregular, it may be regarded as a visually separated boundary, and the previous LC50 and the subsequent LC50 may be separated as different VC60s based on the corresponding boundary.
[0058] In addition to the visual division regions described above, various formats and elements used to divide text regions, such as sentence prefixes and numbering, may be applied.
[0059] 12 and 13 are illustrative views for explaining the process of clustering WE40 as LC50 in one embodiment of the present invention.
[0060] The processor 120 may essentially cluster at least one WE 40 as an LC 50 using a visual segmentation scheme.
[0061] In addition to the visual segmentation method, clustering is performed according to the following rules:
[0062] 12, when the interval between WE40 is equal to or greater than a certain number of characters, they are clustered as different LC50s. For example, a set of previous WE40 and a set of subsequent WE40 with an interval of two or more characters may be bundled together as different LC50s.
[0063] 13, a set of WEs 40 located on the same horizontal line are clustered as one LC 50. Even if the WEs 40 have different text styles such as size, font, bold, italic, etc., they are clustered as one LC 50 if they are located on the same line. On the other hand, the processor 120 separates and configures WEs 40 that are not located on the same line as different LCs 50.
[0064] 14 and 15 are exemplary views illustrating a process of clustering LC50 as VC60 in one embodiment of the present invention.
[0065] The processor 120 may essentially cluster at least one LC 50 as a VC 60 using a visual segmentation scheme.
[0066] In addition to the visual segmentation method, clustering is performed according to the following rules:
[0067] When there are multiple adjacent LC50s for which no visually distinct region exists, the processor 120 clusters the LC50s located closer together as a VC60.
[0068] As shown in FIG. 14, when the interval between LCs 50 is equal to or greater than a certain value (for example, two or more rows), the processor 120 clusters the LCs 50 as different VCs 60.
[0069] Also, referring to FIG. 15, when partial regions of LCs 50 overlap, for example when one or more characters overlap, the processor 120 regards them as a set of adjacent LCs 50 and clusters them as the same VC 60.
[0070] In addition, if adjacent LC50s are each composed of only one different style (font, size, bold, italics, etc.), they are clustered as different VC60s even if they are consecutive LC50s with no visual division. However, if multiple different styles are mixed within an LC50, they are clustered as the same VC60 if they are consecutive with no visual division. For example, for an LC50 divided into LC1, LC2, and LC3, if there is no visual division between consecutive LC1 and LC2, and there is no visual division between consecutive LC2 and LC3, even if LC1 and LC3 are not consecutive and have different text styles, LC1, LC2, and LC3 are regarded as having a transitive relation and are clustered as a VC60.
[0071] 16 and 17 are exemplary diagrams illustrating a process of clustering VC60 as CC70 in one embodiment of the present invention.
[0072] The processor 120 may essentially cluster at least one VC 60 as a CC 70 using a visual segmentation scheme.
[0073] In addition to the visual segmentation method, clustering is performed according to the following rules:
[0074] Processor 120 searches the internal text of each VC 60 based on a dictionary database (not shown) that may be built inside computer system 100 or in a separate system and can be linked to computer system 100, and if the searched text is determined to have meaning in itself or to be a complete phrase, it does not cluster it as a CC 70.
[0075] On the other hand, even if the text of each VC60 has a complete meaning, if the combination of the text of two or more VC60 corresponds to a proper noun, processor 120 clusters the set of VC60 into one CC70. For example, as shown in FIG. 16, if VC60 is divided into "toy," "story," and "4" using a visual segmentation method, processor 120 may bundle "toy" and "story" into one CC70 because the combined sentence means the proper noun "toy story," even if "toy" and "story" have meanings in themselves.
[0076] Referring to FIG. 17, when VC60 is classified into "made with," "100%," "natural," and "ingredients" based on different backgrounds or text styles, processor 120 may determine that this is a discontinuous sentence rather than a complete sentence, and may bundle "made with," "100%," "natural," and "ingredients" into a single CC70 as a collection of VC60 corresponding to complete sentences or phrases.
[0077] Therefore, the processor 120 can hierarchically organize the image text recognition results into sentences and paragraphs, which can be used as training data for a deep learning model for natural language processing.
[0078] In the case of image translation, hierarchical text structuring (HTS) is applied to the image OCR results to reconstruct the text in the image into complete structural units, then the original text is deleted and each reconstructed unit is translated and rendered in the location where the original text was deleted. By reconstructing the natural language processing units for translation of the text in the image into more complete structural units through hierarchical text structuring, it is possible to provide image translation results of higher quality.
[0079] As described above, according to an embodiment of the present invention, learning data for a learning model for natural language processing can be generated by hierarchical text structuring, which reconstructs word-based text recognized from an image into sentences or paragraphs. A deep learning-based learning model can be constructed using learning data based on hierarchical text structuring, and thus a unit of a complete structure can be set, thereby improving natural language processing performance in various fields such as machine translation, information search, question and answering, and document summarization.
[0080] The above-mentioned devices may be realized by hardware components, software components, and / or a combination of hardware and software components. For example, the devices and components described in the embodiments may be realized using one or more general-purpose or special-purpose computers, such as a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), a programmable logic unit (PLU), a microprocessor, or various devices capable of executing and responding to instructions. The processing device may execute an operating system (OS) and one or more software applications that run on the OS. The processing device may also respond to the execution of the software to access, record, manipulate, process, and generate data. For convenience of understanding, a single processing device may be described as being used, but those skilled in the art will understand that the processing device may include multiple processing elements and / or multiple types of processing elements. For example, the processing device may include multiple processors or one processor and one controller. Other processing configurations, such as parallel processors, are also possible.
[0081] The software may include computer programs, codes, instructions, or a combination of one or more of these, and may configure a processing device to operate as desired or instruct the processing device, either independently or collectively. The software and / or data may be embodied in any type of machine, component, physical device, computer storage medium, or device to be interpreted by the processing device or to provide instructions or data to the processing device. The software may be distributed and stored or executed in a distributed manner on computer systems connected by a network. The software and data may be stored on one or more computer-readable storage media.
[0082] The method according to the embodiment may be realized in the form of program instructions executable by various computer means and recorded on a computer-readable medium. In this case, the medium may be one that continuously records the computer-executable program or one that temporarily records it for execution or download. The medium may be one of various recording means or storage means in the form of a single or multiple hardware devices combined, and may not be limited to a medium directly connected to a certain computer system, but may be one that is distributed on a network. Examples of the medium include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and ROMs, RAMs, flash memories, etc., configured to record program instructions. Other examples of the medium include recording media or storage media managed by application stores that distribute applications, or sites, servers, etc. that supply or distribute various other software.
[0083] Although the embodiments have been described based on the limited embodiments and drawings as above, those skilled in the art will be able to make various modifications and variations from the above description. For example, the described techniques may be performed in an order different from that described, and / or the components of the described systems, structures, devices, circuits, etc. may be combined or combined in a manner different from that described, or may be counterbalanced or replaced by other components or equivalents, and still achieve suitable results.
[0084] Therefore, different embodiments are within the scope of the appended claims provided they are equivalent to the claims. [Explanation of symbols]
[0085] 120: Processor 210: Linear clustering section 220: Virtual Clustering Department 230: Correlation clustering section
Claims
1. 1. A method executed by a computer system, comprising: The computer system includes at least one processor configured to execute computer-readable instructions contained in a memory; The method comprises: constructing, by the at least one processor, natural language processing units by clustering at least one text region in an image based on visual partition regions between the text regions; generating, by the at least one processor, the learning data for a learning model for deep learning-based natural language processing of images including text, using the natural language processing units as learning data; Including, The step of constructing the natural language processing unit includes: configuring a set of word elements corresponding to a set of word-based text regions included in the at least one text region recognized from the image as a linear cluster corresponding to a line-based text region; constructing the set of linear clusters as a virtual cluster corresponding to a text region of a paragraph unit; and configuring the set of virtual clusters as correlated clusters; Including, In the step of configuring the virtual cluster, a set of consecutive linear clusters in which the visually divided region does not exist is configured as one virtual cluster, and when the text styles of adjacent linear clusters are configured with a single style different from each other, the consecutive linear clusters in which the visually divided region does not exist are separated as different linear clusters. method.
2. The step of constructing the natural language processing unit includes: Clustering the text regions using at least one of lines, figures, images, backgrounds, spaces, symbols, and numbers that can be used to separate the text regions as the visually separated regions. The method of claim 1 , comprising:
3. The step of forming the linear cluster includes: A set of consecutive word elements that are collinear but do not have the visually distinct region is organized as a linear cluster.
3. The method according to claim 1 or 2, characterized in that
4. The step of constructing the natural language processing unit includes: constructing a set of the virtual clusters, which correspond to a complete sentence or phrase and in which the visually distinct region does not exist, as the correlated cluster. The method of claim 1 , further comprising:
5. The step of forming the correlation clusters includes: Constructing a set of consecutive virtual clusters that correspond to a complete sentence or phrase into a correlated cluster. The method of claim 4 , comprising:
6. the word element includes polygon coordinate information indicating a text region of the word unit, The linear cluster, the virtual cluster, and the correlation cluster each include set information of child nodes constituting the corresponding cluster. The method according to claim 4, characterized in that
7. A computer program product adapted to cause said computer system to carry out the method according to any one of claims 1 to 6.
8. 1. A computer system comprising: At least one processor configured to execute computer-readable instructions contained in the memory. Including, The at least one processor constructing a natural language processing unit by clustering at least one text region based on visual partition regions between the text regions in the image; and generating learning data for a learning model for deep learning-based natural language processing of images including text, using the natural language processing units as learning data; Process The process of constructing the natural language processing unit includes: configuring a set of word elements corresponding to a set of word-based text regions included in the at least one text region recognized from the image as a linear cluster corresponding to a line-based text region; constructing the set of linear clusters as a virtual cluster corresponding to a text region of a paragraph unit; forming a set of the virtual clusters into a correlated cluster. Including, The configuration of the virtual cluster includes configuring a set of consecutive linear clusters in which the visually divided region does not exist as one virtual cluster, and separating the consecutive linear clusters in which the visually divided region does not exist as different linear clusters when the text styles of adjacent linear clusters are different from each other. Computer system.
9. The process of constructing the natural language processing unit includes: Clustering the text regions using at least one of lines, figures, images, backgrounds, spaces, symbols, and numbers that can be used to separate the text regions as the visually separated regions.
9. The computer system of claim 8, comprising:
10. The forming of the linear cluster includes: A set of consecutive word elements that are collinear but do not have the visually distinct region is organized as a linear cluster.
10. A computer system according to claim 8 or 9, comprising:
11. The process of constructing the natural language processing unit includes: A set of the consecutive virtual clusters corresponding to a complete sentence or phrase and not including the visually distinct region is constructed as the correlated cluster.
11. A computer system according to any one of claims 8 to 10, comprising:
12. The process of constructing the natural language processing unit includes: Constructing a set of consecutive virtual clusters that correspond to a complete sentence or phrase into a correlated cluster.
12. The computer system of claim 11.
Citation Information
Patent Citations
Handwritten character retrieval apparatus, method, and program
JP2013246731A
The video camera having translation function
KR1020010109861A
Digital image-based document digitization using a graph model
US20200279107A1
