Character recognition apparatus and image preprocessing method
The character recognition device and method address the issue of image distortions by detecting and correcting feature points in OCR, enhancing the accuracy of character recognition through a feature point detection and distortion correction process.
Patent Information
- Application Number
- JP2023169752
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-09-29
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2043-03-02
AI Technical Summary
Current OCR technologies lack effective methods for distortion correction in image processing, which affects the accuracy of character recognition, especially in images with distortions caused by factors like paper folds and photographing angles.
A character recognition device and method that includes a feature point detection unit to identify corresponding points between a template and actual input images, an outlier removal unit to eliminate deviations, and a distortion correction unit to adjust the input image using the remaining points, followed by character recognition on the corrected image.
This approach allows for more accurate character recognition by effectively correcting distortions in input images, improving the overall recognition process.
Smart Images

Figure 2024124307000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a character recognition device and an image preprocessing method. [Background technology]
[0002] Optical Character Recognition (OCR) technology is used to convert images of handwritten or printed characters optically read into digital data (e.g. character codes) that can be used by computers. Optical reading is achieved by optical devices such as image scanners and digital cameras. The read image is then converted into digital data through image processing such as pattern recognition.
[0003] Furthermore, so-called artificial intelligence (AI) technology has been developing remarkably. Important milestones in AI technology in recent years include deep learning, which uses a deep neural network with many intermediate layers between the input layer and the output layer, and the Transformer, an encoder / decoder type model that uses an attention mechanism.
[0004] Image processing technology is one of the main application fields of AI technology. As mentioned above, image processing is used in OCR technology, and currently, AI-OCR technology, which applies AI technology to OCR technology, is at the beginning of development (for example, Patent Document 1). [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2023-003648 A Summary of the Invention [Problem to be solved by the invention]
[0006] Distortion correction using AI technology in OCR processing is still a developing field, and various technological developments are expected in the future. The smaller the distortion of the image input to OCR processing (hereinafter referred to as the actual input image), the more appropriate the character recognition will be. No outstanding technology or combination of technologies that can become the de facto standard for AI-OCR has yet been found.
[0007] In view of the above circumstances, an object of the present invention is to appropriately process characters to be recognized that are written in an actual input image. [Means for solving the problem]
[0008] In order to achieve the above-mentioned object, the character recognition device of the present invention includes a feature point detection unit that detects a plurality of corresponding feature points between a template image including a plurality of recognition areas and an actual input image in which characters to be recognized are written in a format corresponding to the template image, an outlier point removal unit that removes outliers from the plurality of feature points detected by the feature point detection unit, a distortion correction unit that corrects distortion of the actual input image using the removed feature points after the outlier points have been removed by the outlier point removal unit, and a character recognition unit that performs character recognition on corrected characters included in areas in the corrected actual input image after correction by the distortion correction unit that correspond to the recognition areas.
[0009] In addition, an image preprocessing method according to the present invention includes detecting, by a computer processor, a plurality of corresponding feature points between a template image including a plurality of recognition areas and an actual input image in which characters to be recognized are written in a format corresponding to the template image, removing outliers from the detected plurality of feature points, and correcting distortion of the actual input image using the removed feature points after the outliers have been removed.
[0010] According to the above configuration, it is possible to appropriately process characters to be recognized that are written in an actual input image. Note that the above configuration may provide other effects instead of or in addition to the above effect. [Brief description of the drawings]
[0011] [Figure 1] 1 is a diagram illustrating a character recognition system S including a character recognition device 20 according to a first embodiment. [Diagram 2] 1 is a hardware configuration diagram of a user terminal 10 according to the first embodiment. [Diagram 3] 1 is a hardware configuration diagram of a character recognition device 20 according to a first embodiment. [Figure 4] 2 is a diagram illustrating a software configuration of the character recognition device 20 according to the first embodiment. [Diagram 5] 5 is a flowchart showing detailed processing of character recognition according to the first embodiment. [Figure 6] FIG. 2 is a diagram showing an example of a template image IT according to the first embodiment. [Figure 7] 3 is a diagram showing an example of an actual input image IR according to the first embodiment. FIG. [Figure 8] FIG. 2 is an explanatory diagram of feature point detection according to the first embodiment. [Figure 9] FIG. 2 is a diagram showing an example of a corrected actual input image IRA according to the first embodiment. [Figure 10] FIG. 10 is a diagram showing a comparative example of FIG. [Figure 11] FIG. 11 is a diagram illustrating a software configuration of a character recognition device 20 according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings. In this specification and the drawings, elements that can be similarly described may be designated by the same reference numerals, and redundant description may be omitted.
[0013] Each embodiment described below is merely one example of a configuration that can realize the present invention. Each of the following embodiments can be appropriately modified or changed depending on the configuration of the device to which the present invention is applied and various conditions. Not all of the combinations of elements included in each of the following embodiments are necessarily essential to realize the present invention, and some of the elements can be omitted as appropriate. Therefore, the scope of the present invention is not limited by the configurations described in each of the following embodiments. As long as there is no mutual contradiction, a configuration that combines multiple configurations described in the following embodiments can also be adopted.
[0014] 1. First embodiment 1 is a diagram illustrating a character recognition system S including a character recognition device 20 according to a first embodiment. The character recognition system S includes a user terminal 10 and the character recognition device 20. The character recognition system S may include other components. The other components may be, for example, a front-end server that is disposed between the user terminal 10 and the character recognition device 20 and executes various data processing operations.
[0015] The user terminal 10 is a terminal device such as a smartphone or a PC used by a user. The user uses the user terminal 10 to use applications and services provided by the character recognition device 20. The user terminal 10 is connected to the character recognition device 20 via, for example, a wireless communication network and the Internet.
[0016] The character recognition device 20 is a server device that performs OCR processing on an image (actual input image) transmitted from the user terminal 10. The character recognition device 20 performs OCR processing on actual input images corresponding to various standard forms, such as an image of a medical certificate for applying for insurance benefits or an image of an application form for opening a bank account.
[0017] The character recognition device 20 may transmit the character recognition result by the OCR process to another server device. The character recognition device 20 may be a server device that executes various application processes including the OCR process. That is, the character recognition device 20 may provide only the functions described in the present embodiment, or may provide other functions in addition. The character recognition device 20 may be arranged in an on-premise environment, or in a cloud environment provided by another company. The character recognition device 20 may be configured to execute only normal OCR process by the character recognition unit 28, and to separately arrange a pre-processing device that is a computer including the feature point detection unit 22, the outlier removal unit 24, and the distortion correction unit 26, and to obtain a character recognition result by OCR processing an image received from a user terminal and processed by this pre-processing device in the character recognition unit 28 of the character recognition device 20. Furthermore, the character recognition device 20 may be configured in such a manner that all or a part of each unit is configured as one application, and installed and executed in the user terminal.
[0018] The character recognition device 20 includes, as functional units for implementing OCR processing, a feature point detection unit 22, an outlier removal unit 24, a distortion correction unit 26, and a character recognition unit 28. Details of each unit will be described later.
[0019] Fig. 2 is a hardware configuration diagram of the user terminal 10 according to the first embodiment. As shown in Fig. 2, the user terminal 10 has a processor 101, a memory 102, an input / output interface 103, and a communication interface 104. The above elements provided in the user terminal 10 are connected to each other by an internal bus. Note that the user terminal 10 may have hardware elements other than the elements shown in Fig. 2.
[0020] The processor 101 is a computing element that realizes various functions of the user terminal 10. The processor 101 may be a system-on-a-chip (SoC) including elements such as a central processing unit (CPU), a graphics processing unit (GPU), and a memory controller.
[0021] The memory 102 is composed of a storage medium such as a RAM (Random Access Memory) or an eMMC (embedded Multi Media Card). The memory 102 is an element that temporarily or permanently stores programs and data used to execute various processes in the user terminal 10. The programs include one or more instructions for operating the user terminal 10. The processor 101 realizes the functions of the user terminal 10 by expanding the programs stored in the memory 102 into the memory 102 and / or a system memory (not shown) and executing them.
[0022] The input / output interface 103 is an interface that accepts operations on the user terminal 10 and supplies them to the processor 101, and also presents various information to the user, and is, for example, a touch panel, or a keyboard and display.
[0023] The communication interface 104 is a circuit that executes various signal processing for realizing Internet communication, and is, for example, a network interface card (NIC).
[0024] Fig. 3 is a hardware configuration diagram of character recognition device 20 according to the first embodiment. As shown in Fig. 3, character recognition device 20 has processor 201, memory 202, input / output interface 203, and communication interface 204. The above elements provided in character recognition device 20 are connected to each other by an internal bus. Note that character recognition device 20 may have hardware elements other than the elements shown in Fig. 3.
[0025] The processor 201 is a computing element that realizes various functions of the character recognition device 20. The processor 201 may be a CPU, and may further include other processors such as a GPU.
[0026] The memory 202 is composed of a storage medium such as a RAM, a ROM (Read Only Memory), a HDD (Hard Disk Drive), or an SSD (Solid State Drive). The memory 202 is an element that temporarily or permanently stores programs and data used to execute various processes in the character recognition device 20. The programs include one or more instructions for the operation of the character recognition device 20. The processor 201 realizes the functions of the character recognition device 20 by expanding the programs stored in the memory 202 into the memory 202 and / or a system memory (not shown) and executing them.
[0027] The input / output interface 203 is an interface that accepts operations on the character recognition device 20 and supplies them to the processor 201, and also presents various information to a user, and is, for example, a keyboard and a display. Note that the character recognition device 20 may not have the input / output interface 203 and may be remotely operated.
[0028] The communication interface 204 is a circuit that executes various signal processing for realizing Internet communication, and is, for example, a network interface card (NIC).
[0029] 4 is a diagram showing the software configuration of the character recognition device 20 according to the first embodiment. As shown in FIG.
[0030] The control unit 210 is a software element that realizes various functions including the feature point detection unit 22, the outlier removal unit 24, the distortion correction unit 26, and the character recognition unit 28, and is realized by the above-mentioned processor 201. The operation of the control unit 210 will be briefly described below.
[0031] The feature point detection unit 22 detects a template image I including a plurality of recognition areas RA. T and template image I T The real input image I has the characters to be recognized written in a format F corresponding to RA plurality of corresponding feature points P F Detect.
[0032] The outlier removal unit 24 removes the plurality of feature points P F Point P O Remove.
[0033] The distortion correction unit 26 corrects the removed feature points P FE Using the real input image I R Correct the distortion of the image.
[0034] The character recognition unit 28 recognizes the corrected actual input image I RA Character recognition is performed on the corrected character C' contained in an area CA corresponding to the recognition area RA in the image processing apparatus.
[0035] The storage unit 220 is an element that stores various data and programs used by the control unit 210, and is realized by the memory 202 that cooperates with the processor 201.
[0036] The communication unit 230 is an element that communicates with other devices under the control of the control unit 210, and is realized by the communication interface 204 that cooperates with the processor 201.
[0037] Detailed processing of character recognition according to the first embodiment will be described with reference to Fig. 5 to Fig. 10. Fig. 5 is a flowchart showing detailed processing of character recognition according to the first embodiment.
[0038] In step S510, first, the feature point detection unit 22 detects the actual input image I R , and receives the template image I T Read out.
[0039] FIG. 6 shows a template image I T FIG. 1 is a diagram showing an example of a template image I Tis image data used to print a paper medium (format F) on which a user can write characters. Format F may be provided to the user as a pre-printed paper medium, or may be printed by the user himself.
[0040] As shown in Figure 6, the template image I T The template image I includes a plurality of recognition areas RA. The recognition areas RA include, for example, an area in which Chinese characters or numbers are written, and an area in which a check mark is placed. In FIG. 6, for the sake of simplicity, only some of the recognition areas RA are labeled with symbols. The recognition areas RA are located on the template image I. T In the image data representing the image, the pixel occupies a predetermined area (eg, a rectangular area) identified by coordinates in the image, and occupies a predetermined physical area in the printed format F.
[0041] FIG. 7 shows an actual input image I R As shown in FIG. 7, the actual input image I R is the template image I T The actual input image I is an image of a format F corresponding to the input image I, and includes characters written by the user in the format F. R is image data obtained by photographing a real paper medium of format F. Therefore, as shown in Fig. 7, the real input image I R Images often contain distortions caused by a number of factors, such as folds in the paper and the angle at which the image was taken.
[0042] In step S510, the feature point detection unit 22 detects the actual input image I R As preprocessing for the distortion correction (step S530), the following feature point detection is executed.
[0043] 8 is an explanatory diagram of feature point detection according to the first embodiment. The feature point detection unit 22 detects a template image I based on, for example, a Local Feature Matching with Transformers (LoFTR) algorithm.T and the real input image I R A plurality of corresponding feature points P F Detect.
[0044] Feature point P F is a characteristic point on an image, such as a boundary of an area or a corner of a rectangular frame, and in this embodiment, it is a template image I T and the real input image I R The corresponding template images I T Upper characteristic point P F and the real input image I R Upper characteristic point P F have similar features.
[0045] The feature point detection unit 22 detects a template image I T and the real input image I R The points whose confidence level indicating the degree of correspondence between the feature points P and the points included in P exceeds a predetermined threshold (e.g., 98% or 99%) are called feature points P F It is preferable to extract the feature points P F The extraction of is performed, for example, according to the LoFTR algorithm. The LoFTR algorithm is realized by a trained model trained by supervised learning using training data. In the LoFTR algorithm, a template image I T and the real input image I R A plurality of corresponding feature points P F Search for the feature points P F are cut off according to their confidence.
[0046] In the LoFTR algorithm, first, a convolutional neural network and a transformer are used to generate a vector of each image I T ,I R The feature value F T ,F R Then, image I T ,I RWe calculate the rough correspondence between the images by a transport optimal algorithm, and then calculate the fine correspondence in small patches. As a result, image I T ,I R Pixel-level matching is performed between the corresponding feature points P F As can be seen from the above, the LoFTR algorithm extracts each image I T ,I R This is a technique that is applied to the entire
[0047] Figure 8 shows the feature points P detected by the LoFTR algorithm. F FIG. 8 is an explanatory diagram of a template image I T and the real input image I R The corresponding feature points P F is indicated by a line segment.
[0048] The feature point detection unit 22 may extract a plurality of feature points P based on an algorithm other than LoFTR, such as SuperPoint or Patch2Pix. F That is, the feature point detection unit 22 may detect the feature points of the template image I by using an arbitrary detection algorithm. T and the real input image I R The process of step S510 may be executed for the above.
[0049] In step S520, the actual input image I R As a pre-processing of the distortion correction (step S530), the outlier removal unit 24 removes the plurality of feature points P F Point P O Remove.
[0050] More specifically, the outlier removal unit 24 extracts a plurality of feature points P F Identify outliers from the coordinate values corresponding to the feature points P F The outlier point P Ois used for the distortion correction by the distortion correction unit 26 in step S530. F The outlier removal unit 24 removes the corresponding feature point P F If the distance between the coordinate values of the feature points P F The above-mentioned predetermined threshold may be set so that all the corresponding feature points P F It may be set based on a statistical value (mean, median, variance, standard deviation, etc.) of the distance between randomly selected partial feature points P F It may be set based on a statistical value of the distance between the
[0051] The CONSAC algorithm is realized by a trained model trained by supervised learning and self-supervised learning. In the CONSAC algorithm, samples are updated based on the information used to select samples from the dataset. Like the LoFTR algorithm, the CONSAC algorithm selects each image I T ,I R This is a technique that is applied to the entire
[0052] In step S530, the distortion correction unit 26 detects the outlier P O The removed feature points P after removing FE Using the real input image I R Correct the distortion of the image.
[0053] More specifically, the distortion correction unit 26 performs distortion correction on the real input image I based on a Thin Plate Spline algorithm. R The removed feature points P FE The coordinates of the template image I T The corresponding feature point P F The real input image I R After correcting, the corrected real input image I RA Output.
[0054] The thin plate spline algorithm is an algorithm that uses a set of points on a two-dimensional plane to find a curved surface that passes through the points included in the set. In this embodiment, the thin plate spline algorithm is applied to a real input image I R Alternatively, a thin plate spline algorithm is applied to the entire real input image I R may be applied to the divided partial images.
[0055] FIG. 9 shows a corrected actual input image I RA 10 is a diagram showing an example of a corrected actual input image I' output from the distortion corrector 26 when the outlier removal in step S520 in the flowchart shown in FIG. RA FIG. 10 is a diagram showing an example of the above (i.e., a comparison with FIG. 9).
[0056] As shown in FIG. 9, the above-mentioned steps S510 to S530 are performed on the actual input image I R When the command is executed on the input image I, the distortion in the format F is properly corrected. RA has been obtained.
[0057] On the other hand, as shown in FIG. 10, if the outlier removal in step S520 is not performed, the corrected actual input image I′ with incomplete distortion correction is generated. RA As a result, the accuracy of the subsequent character recognition is reduced.
[0058] In step S540, the character recognition unit 28 recognizes the corrected actual input image I RA Character recognition is performed on the corrected character C' contained in an area CA corresponding to the recognition area RA in the image processing apparatus.
[0059] According to the above configuration, the actual input image I is corrected for distortion based on feature point detection and outlier removal. R Since character recognition is performed on the real input image I R It is possible to more appropriately recognize characters written in.
[0060] 2. Second embodiment Fig. 11 is a software configuration diagram of a character recognition device 20 according to the second embodiment. As shown in Fig. 11, the character recognition device 20 has a control unit 210, a storage unit 220, and a communication unit 230, similar to the first embodiment. Compared to the first embodiment, the control unit 210 of the second embodiment further includes a template selection unit 30 and a correction necessity determination unit 32 as software elements.
[0061] The template selection unit 30 uses the LoFTR algorithm and / or the CONSAC algorithm to select a template image I to be used by the feature point detection unit 22. T Multiple template images I T Choose from.
[0062] More specifically, for example, the template selection unit 30 selects an actual input image I R and multiple template images I T The feature point detection unit 22 detects feature points between each of the feature points P F Template image I T Then, the selected template image I T Steps S510 to S540 of the first embodiment are executed using the above.
[0063] The template selection unit 30 also selects the feature points P F After further removing the outliers by the outlier remover 24, the feature points P F Template image I T may be selected.
[0064] According to the above configuration, the user of the user terminal 10 selects the template image I T You can use the template image I without selecting T The character recognition device 20 can automatically select.
[0065] The correction necessity determining unit 32 uses the LoFTR algorithm and / or the CONSAC algorithm to determine whether or not the distortion correction unit 26 should perform distortion correction.
[0066] More specifically, for example, the correction necessity determination unit 32 detects an actual input image I R and multiple template images I T The feature point detection unit 22 detects feature points between the corresponding feature points P F If the difference in coordinate values between the real input image I R Since the distortion of the image is considered to be relatively large, the correction necessity determining unit 32 determines that the distortion correction unit 26 should perform the distortion correction.
[0067] Or the corresponding feature point P F If the variance of the difference in coordinate values between the real input image I R Since the distortion of the image is considered to be relatively large, the correction necessity determining unit 32 determines that the distortion correction unit 26 should perform the distortion correction.
[0068] In addition, the correction necessity determination unit 32 detects the feature point P F The outlier removal unit 24 may then remove the outliers from the image, and then the above-described correction necessity determination may be performed.
[0069] When it is determined that the distortion correction unit 26 does not perform distortion correction, the control unit 210 R A general keystone correction may be performed on
[0070] According to the above configuration, distortion correction is selectively performed on images with relatively large distortion, i.e., images for which the need for distortion correction is relatively high. Therefore, it is possible to reduce the overall processing load of the character recognition device 20.
[0071] Further, instead of the above-mentioned correction necessity determination, the correction necessity determination unit 32 determines whether or not the correction necessity is satisfied based on the actual input image I RAlternatively, it may be possible to determine whether or not to perform distortion correction by the distortion correction unit 26 based on whether or not the format F includes a straight line portion having a predetermined relative length or more (for example, 70% or 80% of the total length of the vertical or horizontal sides of the format F).
[0072] In the first embodiment, in step S530, the distortion correction unit 26 corrects the actual input image I R In contrast, in the second embodiment, the distortion correction unit 26 performs distortion correction on the entire real input image I R Let I be multiple partial images P After dividing into, each partial image I P The removed feature points P FE Using the partial image I P The distortion correction unit 26 corrects the distortion of the actual input image I R Six partial images I P It may be divided into eight partial images I P It may be divided into more partial images I P It may be divided into
[0073] In the thin plate spline algorithm, the processing load increases significantly as the size of the image to be processed increases, and the possibility of problems such as memory leaks also increases. With the above configuration, it is possible to reduce the processing load of distortion correction by the distortion correction unit 26.
[0074] In the second embodiment, the feature point detection in step S510 and the outlier removal in step S520 are performed on the actual input image I R is performed on the entire
[0075] In addition, the distortion correction unit 26 corrects each partial image I P The removed feature points P FE Among them, a certain number of removed feature points P FE Using the partial image I P Furthermore, the distortion correction unit 26 may correct the distortion of the removed feature point P FE When selecting, the removed feature points P FEThe distance between the selected feature points is kept greater than a certain value (for example, the removed feature points P FE The selection may be made such that the sum of the distances between the first and second nodes exceeds a predetermined threshold.
[0076] According to the above configuration, it is possible to further reduce the processing load of the distortion correction performed by the distortion correction unit 26.
[0077] In the present embodiment, the template selection by the template selection unit 30, the correction necessity determination by the correction necessity determination unit 32, and the distortion correction of the partial image by the distortion correction unit 26 can be performed independently. It will be naturally understood by those skilled in the art that only one or two of the above three independent operations may be performed.
[0078] 3. Other embodiments 3.1. Variations Although the embodiment for carrying out the present invention has been described above, the present invention is not limited to the above embodiment. It is naturally understood that the above embodiment is merely an example and various modifications are possible. Words, phrases, and other expressions used in the above embodiment are merely examples and may be replaced with substantially the same or similar expressions.
[0079] After performing the distortion correction described in the above embodiment, the distortion correction unit 26 uses the LoFTR algorithm and / or the CONSAC algorithm to convert the corrected actual input image I RA It may be determined whether the distortion correction in is appropriate.
[0080] The means and / or functions provided by the devices described in the above embodiments can be provided by software recorded in a tangible memory device and a computer that executes the software, software alone, hardware alone, or a combination of these. For example, when any of the above devices is provided by an electronic circuit that is hardware, it can be provided by a digital circuit including a large number of logic circuits, or an analog circuit.
[0081] The device described in the above embodiment executes a program stored in a non-transitory tangible storage medium, and the program is executed to perform a method corresponding to the program.
[0082] 3.2. Additional Notes Some or all of the above-mentioned embodiments and modified examples may be described as follows, but are not limited to the contents of the following appendices. In the following, a relationship is expressed in which an appendix that is subordinate to multiple appendices is subordinate to an appendix that is subordinate to multiple appendices. All of the subordinate relationships of appendices expressed below are included in the above-mentioned embodiments.
[0083] (Appendix 1) a feature point detection unit that detects a plurality of corresponding feature points between a template image including a plurality of recognition areas and an actual input image in which characters to be recognized are written in a format corresponding to the template image; an outlier removal unit that removes outliers from the plurality of feature points detected by the feature point detection unit; a distortion correction unit that corrects distortion of the actual input image by using removed feature points obtained after the outlier point removal unit has removed the outlier points; a character recognition unit that performs character recognition on a corrected character included in an area corresponding to the recognition area in the corrected actual input image corrected by the distortion correction unit. Character recognition device.
[0084] (Appendix 2) The outlier removal unit identifies an outlier from coordinate values corresponding to the plurality of feature points based on a CONSAC (Conditional Sample Consensus) algorithm, and removes the outlier, which is a feature point corresponding to the identified outlier, from feature points to be used for distortion correction by the distortion correction unit. 2. A character recognition device as described in claim 1.
[0085] (Appendix 3) The distortion correction unit corrects the actual input image based on a Thin Plate Spline algorithm so that coordinates of removed feature points in the actual input image approach coordinates of corresponding feature points in the template image. 3. A character recognition device as described in appendix 2.
[0086] (Appendix 4) The feature point detection unit extracts points whose confidence level, which indicates the degree to which a point included in the template image corresponds to a point included in the actual input image, exceeds a predetermined threshold value as the plurality of feature points. 4. The character recognition device according to claim 2 or 3.
[0087] (Appendix 5) The feature point detection unit detects the plurality of feature points based on a Local Feature Matching with Transformers (LoFTR) algorithm. 5. A character recognition device according to any one of Supplementary Note 2 to Supplementary Note 4.
[0088] (Appendix 6) The method further includes the steps of: selecting the template image to be used by the feature point detection unit from a plurality of template images by using the LoFTR algorithm and / or the CONSAC algorithm; 6. A character recognition device according to any one of appendix 2 to appendix 5.
[0089] (Appendix 7) a correction necessity determination unit that determines whether or not the distortion correction should be performed by the distortion correction unit using the LoFTR algorithm and / or the CONSAC algorithm. 6. A character recognition device according to any one of appendix 2 to appendix 5.
[0090] (Appendix 8) a correction necessity determination unit that determines whether or not the distortion correction should be performed by the distortion correction unit based on whether or not the actual input image includes a straight line portion having a predetermined relative length or more. 6. A character recognition device according to any one of appendix 1 to appendix 5.
[0091] (Appendix 9) The distortion correction unit divides the actual input image into a plurality of partial images, and then corrects the distortion of each partial image using the removed feature points included in each partial image. 9. A character recognition device according to any one of appendix 1 to appendix 8.
[0092] (Appendix 10) The distortion correction unit corrects distortion of each partial image by using a predetermined number or less of the removed feature points included in each partial image. 10. The character recognition apparatus of claim 9.
[0093] (Appendix 11) When selecting the predetermined number or less of removed feature points, the distortion correction unit performs the selection so that a distance between the removed feature points P is maintained at a predetermined value or more. 11. The character recognition apparatus of claim 10.
[0094] (Appendix 12) a feature point detection unit that detects a plurality of corresponding feature points between a template image including a plurality of recognition areas and an actual input image in which characters to be recognized are written in a format corresponding to the template image; an outlier removal unit that removes outliers from the plurality of feature points detected by the feature point detection unit; a distortion correction unit that corrects distortion of the actual input image by using removed feature points obtained after the outlier point removal unit has removed the outlier points. Image preprocessing device.
[0095] (Appendix 13) The computer's processor Detecting a plurality of corresponding feature points between a template image including a plurality of recognition areas and an actual input image in which characters to be recognized are written in a format corresponding to the template image; removing outliers from the detected feature points; and correcting the distortion of the real input image using the removed feature points after the outlier points have been removed. Image pre-processing methods.
[0096] (Appendix 14) The processor of the character recognition device Detecting a plurality of corresponding feature points between a template image including a plurality of recognition areas and an actual input image in which characters to be recognized are written in a format corresponding to the template image; removing outliers from the plurality of feature points; correcting distortion of the real input image using the removed feature points after the outlier points have been removed; and performing character recognition on the corrected character included in an area corresponding to the recognition area in the corrected actual input image after the correction. method.
[0097] (Appendix 15) The processor of the character recognition device Detecting a plurality of corresponding feature points between a template image including a plurality of recognition areas and an actual input image in which characters to be recognized are written in a format corresponding to the template image; removing outliers from the plurality of feature points; correcting distortion of the real input image using the removed feature points after the outlier points have been removed; performing character recognition on the corrected characters included in an area corresponding to the recognition area in the corrected actual input image after the correction; program.
[0098] (Appendix 16) The processor of the character recognition device Detecting a plurality of corresponding feature points between a template image including a plurality of recognition areas and an actual input image in which characters to be recognized are written in a format corresponding to the template image; removing outliers from the plurality of feature points; correcting distortion of the real input image using the removed feature points after the outlier points have been removed; performing character recognition on the corrected characters included in an area corresponding to the recognition area in the corrected actual input image after the correction; A non-transient tangible recording medium on which a program is recorded. [Explanation of symbols]
[0099] 10 User terminal 20 Character recognition device 22 Feature point detection unit 24 Outlier removal section 26 Distortion correction section 28 Character recognition section 30 Template selection section 32 Correction necessity determination section
Claims
1. a feature point detection unit that detects a plurality of corresponding feature points between a template image including a plurality of recognition areas and an actual input image in which characters to be recognized are written in a format corresponding to the template image; an outlier removal unit that identifies an outlier from coordinate values corresponding to the plurality of feature points detected by the feature point detection unit, and removes the outlier that is the feature point corresponding to the identified outlier from feature points to be used for distortion correction; a distortion correction unit that corrects distortion of the actual input image by using removed feature points obtained after the outlier point removal unit has removed the outlier points; a character recognition unit that performs character recognition on a corrected character included in an area corresponding to the recognition area in the corrected actual input image after the distortion correction unit has corrected the image, the feature point detection unit detects the plurality of feature points without performing a process related to distortion correction of the actual input image in advance; The outlier removal unit removes the outliers based on a CONSAC (Conditional Sample Consensus) algorithm. Character recognition device.
2. The outlier removal unit identifies outliers from coordinate values of each feature point of the template image detected by the feature point detection unit and coordinate values of each feature point of the actual input image corresponding to each feature point of the template image, and removes the outliers that correspond to the identified outliers from feature points to be used for distortion correction by the distortion correction unit.
2. The character recognition device according to claim 1.
3. The outlier removal unit recognizes a coordinate value as an outlier when a distance between coordinate values of a pair of corresponding feature points exceeds a threshold value set based on a statistical value of distances between all or a part of the corresponding plurality of feature points.
3. The character recognition device according to claim 2.
4. The distortion correction unit corrects the actual input image based on a Thin Plate Spline algorithm so that coordinates of removed feature points in the actual input image approach coordinates of corresponding feature points in the template image.
4. The character recognition device according to claim 3.
5. The feature point detection unit extracts points whose confidence level, which indicates the degree to which a point included in the template image corresponds to a point included in the actual input image, exceeds a predetermined threshold value as the plurality of feature points.
5. The character recognition device according to claim 4.
6. The feature point detection unit detects the plurality of feature points based on a Local Feature Matching with Transformers (LoFTR) algorithm.
6. The character recognition device according to claim 5.
7. The method further includes the steps of: selecting the template image to be used by the feature point detection unit from a plurality of template images by using the LoFTR algorithm and / or the CONSAC algorithm; 7. The character recognition device according to claim 6.
8. a correction necessity determination unit that determines whether or not the distortion correction should be performed by the distortion correction unit using the LoFTR algorithm and / or the CONSAC algorithm.
7. The character recognition device according to claim 6.
9. a correction necessity determination unit that determines whether or not the distortion correction should be performed by the distortion correction unit based on whether or not the actual input image includes a straight line portion having a predetermined relative length or more.
7. The character recognition device according to claim 1.
10. The distortion correction unit divides the actual input image into a plurality of partial images, and then corrects the distortion of each partial image using the removed feature points included in each partial image. The character recognition device according to any one of claims 1 to 8.
11. the distortion correction unit corrects distortion of each partial image by using a predetermined number or less of the removed feature points included in each partial image; When selecting the predetermined number or less of removed feature points, the selection is performed so that the distance between the removed feature points is kept equal to or greater than a predetermined value. The character recognition device according to claim 10.
12. The computer's processor Detecting a plurality of corresponding feature points between a template image including a plurality of recognition areas and an actual input image in which characters to be recognized are written in a format corresponding to the template image; identifying an outlier from coordinate values corresponding to the detected plurality of feature points, and removing the outlier that is the feature point corresponding to the identified outlier from feature points to be used for distortion correction; and correcting the distortion of the real input image using the removed feature points after the outlier points have been removed; detecting the plurality of feature points includes detecting the plurality of feature points without performing a process related to distortion correction of the actual input image in advance; removing the outlier points based on a Conditional Sample Consensus (CONSAC) algorithm; Image pre-processing methods.
Citation Information
Patent Citations
Method for extracting image feature point
JP2011043969A
Image processor and image processing program
JP2015169978A
Method and system for characterizing an image acquired by an imaging medical device
JP2016533782A
Image processing device, control method therefor, and program
JP2020204887A
System and method for automatic distortion correction and / or co-registration of three-dimensional images using bone-aligned artificial landmarks
JP2020523107A
