Image processing device, control method thereof and program

The image processing device efficiently recognizes words in image data by extracting and processing character rectangles based on user input, addressing the slow processing of large character regions in languages like Japanese, thereby enhancing usability.

JP2024115025AInactive Publication Date: 2024-08-26CANON KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023020462
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-14
Publication Date
2024-08-26
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Conventional character recognition technologies, such as those described in Patent Document 1, take a long time to process large character regions, particularly in languages like Japanese where regions cannot be easily divided into words, reducing usability.

Method used

An image processing device that extracts character areas, estimates character rectangles, and performs character recognition on connected rectangles in both directions based on user input, terminating recognition when the character type no longer matches, thereby enabling quick recognition of words.

Benefits of technology

This approach allows for rapid character recognition of words in image data, improving usability by reducing processing time and enabling efficient file naming operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024115025000001
    Figure 2024115025000001
Patent Text Reader

Abstract

To address a possibility such that, when a character recognition is performed from image data, it takes a time for the character recognition, and thus a usability is decreased.SOLUTION: An MFP 101 extracts a character region from image data (S603), estimates a character rectangle from the character region (S604), displays the image data (S605), and executes a character recognition process (S607) in accordance with a user operation (S606). At this time, such an MFP executes a character recognition in accordance with the designated position by the user operation (S701 and S702), and repeatedly executes the character recognition on the character rectangles before and after the designated character rectangle to generate a character string (S703 to S712). Moreover, in accordance with a fact such that there is no next character rectangle (S704; No) or no character with a kind consistent with a character kind recognized from the designated character rectangle is contained in the character recognition on the character rectangle (S708; No), the character recognition for the character rectangle in such a direction is finished.SELECTED DRAWING: Figure 7
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image processing apparatus, a control method thereof, and a program. [Background technology]

[0002] There is a document filing system that presents the character recognition results of a scanned document to a user, and saves the image by adding a character string selected by the user from the recognition results to the file name. In such a document filing system, character recognition is generally performed on the entire document, so it takes time to present the recognition results to the user.

[0003] Patent Document 1 proposes a technology that performs character recognition on a unit area selected by a user to extract a character string, and divides and displays selectable character strings that satisfy a predetermined division condition. A unit area is a block of character area that is assumed to be a continuous character string that can be recognized by layout analysis before character recognition. In the case of a language that is written in separate words, such as English, the unit area is the word area. On the other hand, in the case of a language that cannot be divided into areas by word analysis, such as Japanese, the unit area is the entire area of ​​consecutive characters (for example, the entire line). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2019-068324 A Summary of the Invention [Problem to be solved by the invention]

[0005] The technology of Patent Document 1 is a technology that performs character recognition for the entire unit area based on user selection, so character recognition takes a long time when the number of characters in the unit area is large. In particular, in languages ​​such as Japanese in which areas cannot be divided into words, the number of characters in the unit area tends to be large, and character recognition is likely to take a long time. As such, with conventional technology, character recognition takes a long time, which may reduce usability.

[0006] The present invention has been made to solve the above problems, and has an object to provide a mechanism for improving usability by enabling word-equivalent character recognition in image data with simple operations and without delay. [Means for solving the problem]

[0007] The present invention is an image processing apparatus comprising: an extraction unit for extracting a character region from image data; The system comprises an estimation means for estimating a character rectangle from the character area, a user interface means for displaying the image data and accepting a user operation for specifying a position on the image data corresponding to the character area for which character recognition is to be performed, and a character recognition means for performing character recognition on a character rectangle corresponding to the position on the image data specified by the user operation, and further repeating character recognition on character rectangles connected in a first direction and a second direction of the specified character rectangle to generate a string of characters, wherein the character recognition means terminates character recognition on the character rectangles connected in that direction when the connected character rectangles no longer exist or when the character recognition result of the connected character rectangles no longer includes a character type matching the character type recognized from the specified character rectangle. Effect of the Invention

[0008] According to the present invention, it is possible to improve usability by enabling character recognition equivalent to words in image data with simple operations and without delay. This makes it possible to significantly improve usability in situations such as setting a file name for image data by using a character string obtained by character recognition from image data read from a document. [Brief description of the drawings]

[0009] [Figure 1] 1 is a diagram showing the overall configuration of a document filing system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing a hardware configuration of the document filing system according to the embodiment. [Diagram 3] FIG. 2 is a diagram showing the software configuration of the document filing system according to the embodiment. [Figure 4] 4A to 4C are diagrams showing rectangular areas for each character estimated in the first embodiment and character recognition results; [Diagram 5] 13A and 13B are diagrams showing rectangular areas estimated for each character and character recognition results in the second embodiment. [Figure 6] 4 is a flowchart showing a process in the document filing system of the present embodiment. [Figure 7] 5 is a flowchart illustrating details of character recognition processing in the first embodiment. [Figure 8] 10 is a flowchart illustrating details of character recognition processing in a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. [System Configuration] First, a document filing system on which the present invention is based will be described. FIG. 1 is a diagram showing an example of the overall configuration of a document filing system according to an embodiment of the present invention. 1, an MFP (Multifunction Peripheral) 101 is an image processing apparatus that can be connected to a network. The MFP 101 has a function of scanning paper documents. The document filing server 102 provides a service of filing scanned images of paper documents. The document filing server 102 assigns a file name to the scanned image and saves it as a file. The MFP 101 and the document filing server 102 are communicatively connected via a network 100 (the Internet in the example of FIG. 1). The document filing server 102 may be realized by one computer or by multiple computers. For example, the document filing server 102 may be configured to be realized by using a cloud service or the like.

[0011] [Hardware configuration] FIG. 2A is a block diagram showing an example of a basic hardware configuration of the document filing server 102. As shown in FIG. In FIG. 2(a), a central processing unit (CPU) 201 is a unit that executes various programs and realizes various functions. A random access memory (RAM) 202 is a unit that stores various information. The RAM 202 is also a unit that is used as a temporary working memory area for the CPU 201. A read only memory (ROM) 203 is a unit that stores various programs and the like. The SSD 207 is a unit that stores various programs and various data and the like. Note that the configuration may include other storage devices such as a hard disk drive (HDD) instead of or in combination with the solid state drive (SSD). For example, the CPU 201 loads a program stored in the ROM 203 or the SSD 207 into the RAM 202 and executes it. This realizes the software configuration of the document filing server 102 as shown in FIG. 3(b) and the processing of each step of a sequence described later. Note that the functions of the document filing server 102 and the processing related to the sequence described later may all or partly be realized using dedicated hardware.

[0012] The input / output interface 204 is a unit that provides an interface with output devices such as a display device and input devices such as a keyboard and a mouse. The NIC (Network Interface Card) 205 is a unit for connecting the document filing server 102 to a network (not shown). Each of the above-mentioned units is configured to be able to transmit and receive data via a bus 206 .

[0013] FIG. 2B is a block diagram showing an example of the basic hardware configuration of the MFP 101. As shown in FIG. In Fig. 2(b), a CPU 211, a RAM 212, a ROM 213, and a NIC 214 are similar to the CPU 201, the RAM 202, the ROM 203, and the NIC 205 in Fig. 2(a), respectively. For example, the CPU 221 loads a program stored in the ROM 213 or the like into the RAM 212 and executes it. This realizes the software configuration of the MFP 101 shown in Fig. 3(a) described later and the processing of each step of a sequence described later.

[0014] The scanner 215 is an input unit that converts a paper document into image data. The printer engine 216 is an output unit that prints the image data. The operation panel 217 is an input unit that accepts touch operations from a user and is an output unit that displays information about the MFP 101 on a display. In addition, other storage devices such as SSD and HDD may also be provided. The above-mentioned units are configured to be able to transmit and receive data via a bus 218 .

[0015] [Software configuration] Next, the software configuration of the MFP 101 and the document filing server 102 will be described. FIG. 3A is a diagram showing an example of the software configuration of the MFP 101. As shown in FIG. The MFP 101 includes, as its software configuration, a UI unit 301, a scan execution unit 302, an image data transmission unit 303, a character region extraction unit 304, a character rectangle estimation unit 305, and a character recognition unit 306.

[0016] The UI unit 301 presents information to the user and accepts input from the user via the operation panel 217. The scan execution unit 302 converts data input from the scanner 215 into image data. The image data transmission unit 303 transmits the image data to the document filing server 102 via the NIC 214. The character area extraction unit 304 extracts a character area from the image data. The character rectangle estimation unit 305 estimates a rectangular area for each character from the character area. The character recognition unit 306 performs character recognition on the image data.

[0017] FIG. 3B is a diagram showing an example of the software configuration of the document filing server 102. As shown in FIG. The document filing server 102 includes, as its software configuration, an image data receiving unit 311 and a filing unit 312 . An image data receiving unit 311 receives image data from the MFP 101 via the NIC 205. A filing unit 312 assigns a file name to the image data and stores the image data in the SSD 207 or the like.

[0018] [Processing flow] The process in the document filing system of this embodiment will be described below. Fig. 6 is a flowchart showing an example of processing in the document filing system of this embodiment. The processing of the MFP 101 in this flowchart is realized by the software configuration of the MFP 101 shown in Fig. 3(a). Moreover, the processing of the document filing server 102 is realized by the software configuration of the document filing server 102 shown in Fig. 3(b).

[0019] When a user places an original (paper document) on the scanner 215 of the MFP 101 and issues an instruction to start scanning (S601), the MFP 101 detects this and starts the processing from S602 onwards. First, in S602, the scan execution unit 302 of the MFP 101 scans a paper document to generate image data (document image).

[0020] Next, in S603, the character area extraction unit 304 of the MFP 101 analyzes the layout of the image data generated in S602 above and extracts a character area. Next, in S604, the character rectangle estimation unit 305 of the MFP 101 estimates a character rectangle from the image data of the character region extracted in S603 above. The character rectangle is estimated by converting the image of the character region into a binary image and estimating a rectangular region of a line (hereinafter referred to as a "line rectangle") from the horizontal projection of the binary image. The character rectangle is estimated from the height of the estimated line rectangle and the vertical projection. 4 is a diagram showing an example of a rectangular area for each character estimated in the first embodiment and a character recognition result. Hereinafter, the rectangular area for each character will be referred to as a "character rectangle." In FIG. 4, 401 to 411 respectively indicate estimated character rectangles.

[0021] Next, in S605, the UI unit 301 of the MFP 101 displays the image data for which the character string rectangle was estimated in S604 on the operation panel 217 (presentation of image data), and controls the operation panel 217 so that a user operation can be accepted. In S606, when the user touches the position of the word he or she wants to add to the file name (for example, a point in the character area or nearby) on the preview screen of the image data displayed on the operation panel 217 of MFP 101 in S605 above, MFP 101 detects this user operation.

[0022] In S607, when the MFP 101 detects the user operation in S606, the character recognition unit 306 recognizes a character string equivalent to a word from the image data based on the position touched by the user. In this process, the character recognition unit 306 automatically selects a character string equivalent to a word (character recognition execution character string) from a position (one point) on the image data specified by the user, thereby enabling character recognition of the character string equivalent to a word in the image data. Details of this process are shown in FIG. 7, which will be described later.

[0023] Next, in step S608, the UI unit 301 of the MFP 101 displays the character string resulting from the character recognition on the operation panel 217 (presentation of the character recognition result), and performs control so that a user operation via the operation panel 217 can be accepted. In S609, when the user checks the character string of the recognition result displayed on the operation panel 217 of the MFP 101, corrects the character string as necessary to confirm the character string that is the recognition result, and instructs filing of the image data, the MFP 101 detects this user operation.

[0024] In S610, when the MFP 101 detects the user operation in S609, the image data transmission unit 303 transmits the image data and the file name (the file name based on the character string determined in S609) to the document filing server 102. The file name may be the character string determined in S609 itself, or may be a file name obtained by processing the character string (for example, by adding a date or some other character).

[0025] In S611, when the image data receiving unit 311 of the document filing server 102 receives the image data and file name transmitted in S610, the filing unit 312 assigns the received file name to the image data and stores the received image data.

[0026] Hereinafter, a detailed flow of the process in S607 in FIG. 6 in which the character recognition unit 306 of the MFP 101 recognizes character strings equivalent to words from image data will be described with reference to FIG. FIG. 7 is a flowchart illustrating the details of the character recognition process executed by the character recognition unit 306 of the MFP 101 in the first embodiment.

[0027] First, in S701, the character recognition unit 306 performs character recognition on a character rectangle based on the position touched by the user in the user operation in S606 of Fig. 6, and sets the recognized characters as a recognition result character string. The character rectangle for which character recognition is performed here is the character rectangle that overlaps with or is closest to the position touched by the user in the user operation in S606 of Fig. 6. Next, in S702, the character recognition unit 306 determines the character type (Chinese characters / Hiragana / Katakana / alphabet / symbols, etc.) from the recognition result in S701 above.

[0028] Next, in S703, the character recognition unit 306 sets the direction of the character rectangle to be next recognized as "forward." As a result, the character rectangle to be next recognized becomes the character rectangle before the recognized character rectangle. Here, assuming a horizontally written document, the character rectangle direction "forward" indicates the leftward direction and "backward" indicates the rightward direction, but if it is determined to be written vertically by layout analysis or the like, "forward" may indicate the upward direction and "backward" may indicate the downward direction. In other words, the direction "forward" and the direction "backward" indicate directions that are opposite to each other in the approximately horizontal direction, or directions that are opposite to each other in the approximately vertical direction.

[0029] Next, in S704, the character recognition unit 306 determines whether or not there is a next character rectangle in the direction of the above character rectangle. If it is determined that there is a next character rectangle (Yes in S704), the character recognition unit 306 advances the process to S705. In S705, the character recognition unit 306 sets the recognition target to the next character rectangle (moves to the next character rectangle).

[0030] Next, in S706, the character recognition unit 306 performs character recognition on the character rectangle set in S705 above, and lists candidates (there may be multiple candidates) of the character recognition result. Next, in S707, the character recognition unit 306 determines the character type for each of the candidates of the recognition result in S706 above, and creates a character type list including these character types.

[0031] Next, in S708, the character recognition unit 306 determines whether or not the character type that matches the character type determined in S702 is included in the character type list created in S707. If it is determined that the character type is included in the character type list (Yes in S708), the character recognition unit 306 proceeds to S709. In S709, the character recognition unit 306 adds the recognition result character with a matching character type to the direction of the character rectangle of the recognition result string described above (if the direction of the character rectangle is "forward", it adds it to the front of the recognition result string), and transitions to S704.

[0032] In addition, in the above S704, if the character recognition unit 306 determines that there is no next character rectangle (No in S704), the process proceeds to S710. Also, in S708, if the character recognition unit 306 determines that the character type matching the character type determined in S702 is not included in the character type list created in S707 (No in S708), the process proceeds to S710. That is, the character recognition unit 306 recognizes character rectangles in the character rectangle direction and adds the recognition results to the recognition result character string until there are no more character rectangles connected in the character rectangle direction or the character type of the character rectangle changes, and ends character recognition in that direction when there are no more character rectangles connected in the character rectangle direction or the character type of the character rectangle changes.

[0033] In S710, the character recognition unit 306 determines whether the recognition direction setting is “rear.” If it is determined that the recognition direction setting is not “rear” (i.e., “front”) (Yes in S710), the character recognition unit 306 advances the process to S711. In S711, the character recognition unit 306 resets the character rectangle to be recognized to the character rectangle in S701. Next, in S712, the direction of the character rectangle to be recognized next is set to "after" and the process proceeds to S704. As a result, the character rectangle to be recognized next is the character rectangle following the recognized character rectangle. In other words, character rectangles are recognized and the recognition results are added to the rear of the recognition result string until there is no character rectangle to be connected next (after) or the character type of the character rectangle changes, and character recognition in the backward direction ends when there is no character rectangle to be connected next or the character type of the character rectangle changes.

[0034] Furthermore, in the above S710, if the character recognition unit 306 determines that the recognition direction setting is "backward" (No in S710), it determines that character recognition in the forward and backward directions is completed, and ends the process of this flowchart. In this way, character recognition equivalent to a word can be completed by performing recognition until the character type changes before and after the character selected by the user, and adding the recognition result to the recognition result character string. The recognition result string generated by the process shown in FIG. 7 above becomes the recognition result of S607 in FIG. 6.

[0035] Hereinafter, the process of FIG. 7 will be described in more detail using the example of FIG. 4. In the user operation of S606 in FIG. 6, when the user touches the character rectangle 407 in FIG. 4, in S701, the character recognition unit 306 performs character recognition on the character rectangle 407. In this example, it recognizes the Chinese character "行" (character recognition result 4071), and the recognition result string at this time is "行". Further, in S702, the character recognition unit 306 determines that the character type of the character recognition result 4071 is "Chinese character".

[0036] Next, in S703, the character recognition unit 306 sets the direction of the character rectangle for which character recognition is to be performed to "forward". Furthermore, in S704, the character recognition unit 306 determines that there is a next character rectangle (there is a character rectangle 406 in front of the character rectangle 407), and proceeds to S705. In S705, the character recognition unit 306 sets the recognition target to the character rectangle 406 in front of the character rectangle 407. Then, in S706, the character recognition unit 306 performs character recognition on the character rectangle 406. In this example, it recognizes the Chinese character "銀" (character recognition result 4061).

[0037] Next, in S707, the character recognition unit 306 creates a character type list including the character types of all candidates of the character recognition result. Here, since the candidate is only the character recognition result 4061 ("銀"), a character type list including only the character type ("Chinese character") is created.

[0038] Next, in S708, the character recognition unit 306 determines that the character type list (a list including only "Chinese character") includes the character type "Chinese character" that matches the determination in S702, and proceeds to S709. In S709, the character recognition unit 306 adds, to the front side of the recognition result character string (which is "line" at this time), a candidate corresponding to the character type "Chinese characters" that matches the determination in S702 among the candidates of the character recognition result recognized in S706 (in this example, "silver"). As a result, the recognition result character string becomes "bank". After that, the character recognition unit 306 proceeds to S704.

[0039] In S704, the character recognition unit 306 determines that there is the following character rectangle (there is a character rectangle 405 one before the character rectangle 406), and proceeds to S705. Next, in S705, the character recognition unit 306 sets the recognition target to the character rectangle 405 one before the character rectangle 406. Then, in S706, the character recognition unit 306 performs character recognition on the character rectangle 405. In this example, it recognizes the hiragana character "no" (character recognition result 4051).

[0040] Next, in S707, the character recognition unit 306 creates a character type list including the character types of all candidates of the character recognition result. Here, since there is only one candidate, which is the character recognition result 4051 ("no"), a character type list including only that character type ("hiragana") is created. Next, in S708, the character recognition unit 306 determines that the character type "Chinese characters" that matches the determination in S702 is not included in the character type list (a list including only "hiragana"), and proceeds to S710.

[0041] In S710, the character recognition unit 306 determines that the setting of the recognition direction is not "backward", and proceeds to S711. In S711, the character recognition unit 306 resets the character rectangle of the recognition target to the character rectangle 407. Next, in S712, the character recognition unit 306 sets the direction of the character rectangle for the next character recognition to "backward", and proceeds to S704.

[0042] In S704, the character recognition unit 306 determines that there is the following character rectangle (there is a character rectangle 408 one after the character rectangle 407), and proceeds to S705. In S705, the character recognition unit 306 sets the recognition target to the character rectangle 408 that is one after the character rectangle 407. Then, in S706, the character recognition unit 306 performs character recognition on the character rectangle 408. 4081 and 4082 in FIG. 4 are the character recognition results of the character rectangle 408 respectively. In this example, the first candidate 4081 is the katakana character "ロ" and the second candidate 4082 is the Chinese character "口".

[0043] In S707, the character recognition unit 306 creates a character type list including the character types of the first candidate 4081 (katakana character "ロ") and the second candidate 4082 (Chinese character "口") of the character recognition result. That is, a list consisting of "katakana" and "Chinese character" is created.

[0044] Next, in S708, the character recognition unit 306 determines that the character type "Chinese character" that matches the determination in S702 is included in the character type list (a list consisting of "katakana" and "Chinese character"), and proceeds to S709 for processing. In S709, the character recognition unit 306 adds the candidate corresponding to the character type "Chinese character" that matches the determination in S702 (in this example, the Chinese character "口") among the candidates of the character recognition result recognized in S706 to the rear side of the recognition result character string (at this time, "銀行"). As a result, the recognition result character string becomes "銀行口". Then, the character recognition unit 306 shifts the process to S704.

[0045] In S704, the character recognition unit 306 determines that there is a next character rectangle (there is a character rectangle 409 one after the character rectangle 408), and proceeds to S705 for processing. In S705, the character recognition unit 306 sets the recognition target to the character rectangle 409 that is one after the character rectangle 408. Then, in S706, the character recognition unit 306 performs character recognition on the character rectangle 409. In this example, it recognizes the Chinese character "座" (character recognition result 4091).

[0046] In S707, the character recognition unit 306 creates a character type list including the character types of all candidates of the character recognition result. Here, since the candidate is only the character recognition result 4091 ("座"), a character type list including only that character type ("Chinese character") is created.

[0047] Next, in S708, the character recognition unit 306 determines that the character type "Chinese character" that matches the determination in S702 is included in the character type list (a list including only "Chinese character"), and proceeds to S709 for processing. In S709, among the candidates of the character recognition result recognized in S706, the character recognition unit 306 adds the candidate corresponding to the character type "Chinese character" that matches the determination in S702 (in this example, the Chinese character "座") to the rear side of the recognition result character string (at this time, "銀行口"). As a result, the recognition result character string becomes "銀行口座". Then, the character recognition unit 306 proceeds to S704 for processing.

[0048] In S704, the character recognition unit 306 determines that there is the next character rectangle (there is a character rectangle 410 after one of the character rectangles 409), and proceeds to S705 for processing. In S705, the character recognition unit 306 sets the recognition target to the character rectangle 410 after one of the character rectangles 409. Then, in S706, the character recognition unit 306 performs character recognition on the character rectangle 410. In this example, it recognizes the hiragana character "の" (character recognition result 4101).

[0049] Next, in S707, the character recognition unit 306 creates a character type list including the character types of all candidates of the character recognition result. Here, since the candidate is only the character recognition result 4101 ("の"), a character type list including only that character type ("hiragana") is created.

[0050] Next, in S708, the character recognition unit 306 determines that the character type "Chinese character" that matches the determination in S702 is not included in the character type list (a list including only "hiragana"), and proceeds to S710 for processing. In S710, the character recognition unit 306 determines that the recognition direction is set to "rear," and ends the process. The recognition result character string at this point is "bank account."

[0051] As described above, the document filing system of this embodiment performs character recognition of a character rectangle based on a position on image data specified by a user, and determines the character type. Then, character recognition of the character rectangle in the forward and backward directions is repeated, and character recognition in that direction is terminated when a character of a character type that matches the specified character rectangle is no longer included in the candidates of the character recognition result. Therefore, a character string for character recognition can be automatically selected by a simple operation of the user simply specifying a position in the image data. Therefore, even if the number of characters in the entire character string area (unit area) that is assumed to be a continuous character string is large, such as in image data read from a Japanese manuscript, character recognition of a character string equivalent to a word can be completed without delay in the user's operation, and the character recognition result can be quickly presented to the user.

[0052] Second Embodiment Hereinafter, only the difference from the first embodiment will be described. In the second embodiment, as in the first embodiment, character recognition is performed on the character rectangle based on the position touched by the user to determine the character type. Then, character recognition of the character rectangle is repeated in the forward and backward directions, and when the character of the matching character type is no longer included in the candidates of the character recognition result, character recognition in that direction is terminated. In addition, in the second embodiment, if the character type of the character rectangle that has been character recognized based on the position touched by the user is not "kanji", the pixel density of the character rectangle is obtained when determining the character type of the character area in the forward and backward directions. Then, if the pixel density is high, the character types before and after are estimated to be "kanji", it is determined that the character types do not match, and character recognition in that direction is terminated.

[0053] The process in the document filing system of the second embodiment will be described below. Here, a detailed flow of the character recognition process (the process of recognizing character strings equivalent to words from image data in S607 in FIG. 6), which is different from the first embodiment, will be described with reference to FIG. FIG. 8 is a flowchart illustrating the details of the character recognition process executed by the character recognition unit 306 of the MFP 101 in the second embodiment.

[0054] First, steps S801 to S805 are the same processes as steps S701 to S705 in Fig. 7. Also, steps S809 to S815 are the same processes as steps S706 to S712, respectively, and therefore descriptions thereof will be omitted. In the second embodiment, after the process of S805, the character recognition unit 306 advances the process to S806. In S806, the character recognition unit 306 determines whether the character type determined in S802 is "Kanji". Here, if it is determined that the character type is "Kanji" (Yes in S806), the character recognition unit 306 advances the process to S809.

[0055] On the other hand, if it is determined that the character type is not "Kanji" (No in S806), the character recognition unit 306 advances the process to S807. In S807, the character recognition unit 306 acquires the pixel density of the character rectangle to be recognized. Specifically, the image data in the character rectangle to be recognized is binarized to acquire the ratio of black pixels. Since characters other than "Kanji" have a low pixel density, if the pixel density is high, the character type in the character rectangle to be recognized can be determined (estimated) to be "Kanji".

[0056] Next, in S808, the character recognition unit 306 determines whether the pixel density acquired in S807 is higher than a predetermined density. If it is determined that the pixel density is equal to or lower than the predetermined density (No in S808), the character recognition unit 306 advances the process to S809.

[0057] On the other hand, if it is determined that the pixel density of the character rectangle to be recognized is higher than the predetermined density (Yes in S808), the character recognition unit 306 advances the process to S813. That is, if the pixel density is high, the character type in the character rectangle to be recognized is estimated to be "Kanji", which is determined to be different from the character type determined in S802 (here, not "Kanji"), and character recognition in that direction is terminated. The other steps are the same as those in FIG. 7, so their explanations will be omitted. The recognition result character string generated by the process shown in FIG. 8 above is the recognition result of S607 in FIG. 6 in the second embodiment.

[0058] The process of FIG. 8 will be described in more detail below using the example of FIG. FIG. 5 is a diagram showing an example of a rectangular area for each character estimated in the second embodiment and a character recognition result. In FIG. 5, 501 to 510 respectively indicate estimated character rectangles. Also, 5011 to 5041 indicate the character recognition results recognized from the character rectangles 501 to 504, respectively.

[0059] In the user operation of S606 in Fig. 6, when the user touches character rectangle 502 in Fig. 5, in S801, the character recognition unit 306 executes character recognition of character rectangle 502. 5021 in Fig. 5 is the character recognition result of character rectangle 502 (in this example, the katakana character "n"), and the recognition result character string at this point is "n". Furthermore, in S802, the character recognition unit 306 determines the character type of character recognition result 5021 to be "katakana".

[0060] Next, in S803, the character recognition unit 306 sets the direction of the character rectangle for which character recognition is to be performed next to "forward." In step S804, the character recognition unit 306 determines that there is a next character rectangle (the character rectangle 501 is located immediately before the character rectangle 502), and the process proceeds to step S805. Next, in S805, the character recognition unit 306 sets the character rectangle 501 immediately before the character rectangle 502 as the recognition target.

[0061] Next, in S806, the character recognition unit 306 determines that the character type determined in S802 is not "kanji", and proceeds to S807. In S807 , the character recognition unit 306 acquires the pixel density of the character rectangle 501 . Next, in S808, the character recognition unit 306 determines that the pixel density of the character rectangle 501 is not higher than a predetermined pixel density, and the process proceeds to S809.

[0062] In S809, the character recognition unit 306 executes character recognition on the character rectangle 501. In this example, the character is recognized as "ka" in Katakana (character recognition result 5011). Then, in S810, character recognition unit 306 creates a character type list including all candidate character types of the character recognition result. In this case, since the only candidate is character recognition result 5011 (katakana "ka"), a character type list including only that character type ("katakana") is created.

[0063] Next, in S811, the character recognition unit 306 determines that the character type list (a list of only "katakana") contains the character type "katakana" that matches the determination in S802, and proceeds to S812. In S812, the character recognition unit 306 adds a candidate (in this example, "ka") corresponding to the character type "katakana" that matches the determination in S802, from among the candidates of the character recognition result recognized in S809, to the front of the recognition result character string (at this point, "n"). As a result, the recognition result character string becomes "kan," and the character recognition unit 306 transitions to the process of S804.

[0064] Next, in S804, the character recognition unit 306 determines that there is no next character in the character rectangle 501, and proceeds to S813. In S813, the character recognition unit 306 determines that the recognition direction setting is not "rear," and proceeds to S814. In S814, the character recognition unit 306 resets the character rectangle to be recognized to the character rectangle 502. Next, in S815, the character recognition unit 306 sets the direction of the character rectangle for which character recognition is to be performed next to "backward," and the process proceeds to S804.

[0065] Thereafter, the character recognition unit 306 executes S804 to S812 for the character rectangle 503 (character recognition result 5031) and the character rectangle 504 (character recognition result 5041). That is, in S804, the character recognition unit 306 determines that there is a next character rectangle. Then, in S805, the character recognition unit 306 sets the recognition target to the character rectangle 505. Furthermore, in S806, the character recognition unit 306 determines that the character type determined in S802 is not "Kanji". Next, in S807, the character recognition unit 306 acquires the pixel density of the character rectangle to be recognized. Then, in S808, the character recognition unit 306 determines that the pixel density is higher than a predetermined pixel density, and proceeds to S813. In S813, the character recognition unit 306 determines that the recognition direction setting is "back", and ends the process. As a result, the recognition result character string becomes "Kannon".

[0066] As described above, in the document filing system of the second embodiment, if the character type of the character rectangle (specified character rectangle) that has been subjected to character recognition based on the position specified by the user is not Kanji, the pixel density of the character rectangle is obtained before performing character recognition on the next character rectangle. If the pixel density is high, character recognition of the character rectangle is not performed, and it is determined that the character types do not match, and character recognition in that direction is terminated. In this way, by not performing character recognition, the time spent on the character rectangle can be reduced, and character recognition can be completed in a shorter time.

[0067] Third Embodiment In the first and second embodiments, the character region extraction unit 304, the character rectangle estimation unit 305, and the character recognition unit 306 are provided in the MFP 101. However, all or at least the functions of the character recognition unit 306 may be provided in a cloud service or the like.

[0068] A case where the character region extraction unit 304, the character rectangle estimation unit 305, and the character recognition unit 306 are provided in a cloud service or the like (hereinafter, "image processing service") will be described with reference to FIG. In this case, the MFP 101 transmits the image data generated in S602 to the above-mentioned image processing service.

[0069] The image processing service performs the processes in S603 to S604 on the image data received from the MFP 101, and transmits to the MFP 101 the image data in which the character string rectangle has been estimated in S604. The UI unit 301 of the MFP 101 displays the image data received from the image processing service on the operation panel 217 and accepts user operations. When the user touches the position of a word that the user wants to add to the file name on the preview screen of the image data displayed on the operation panel 217 of the MFP 101, the MFP 101 detects this user operation and transmits information about the position touched by the user to the image processing service.

[0070] The image processing service performs character recognition processing in S607 based on information on the position touched by the user received from the MFP 101, and transmits the character recognition result of S607 to the MFP 101. Note that the character recognition processing in S607 may be either the character recognition processing of the first embodiment or the character recognition processing of the second embodiment.

[0071] In S608, the UI unit 301 of the MFP 101 displays the character recognition result received from the image processing service on the operation panel 217 and accepts a user operation. The user checks the character string of the recognition result displayed on the operation panel 217 of the MFP 101, corrects the character string as necessary, confirms the character string as the recognition result, and issues an instruction to file the image data. When the MFP 101 detects this user operation, in S610, the MFP 101 transmits the character string confirmed as described above and the image data generated in S602 to the document filing server 102.

[0072] When the image processing service is provided by the document filing server 102, in S610, the determined character string may be transmitted to the document filing server 102, but image data may not be transmitted.

[0073] As described above, according to the third embodiment, it is possible to obtain the same effects as the first and second embodiments while reducing the load on the MFP 101. Moreover, it is also possible to obtain the same effects even with an MFP 101 that does not have a function such as character recognition.

[0074] It goes without saying that the configurations and contents of the various data described above are not limited to those described above, and the data may have various configurations and contents depending on the application and purpose. Although one embodiment has been described above, the present invention can be embodied, for example, as a system, an apparatus, a method, a program, a storage medium, etc. Specifically, the present invention may be applied to a system composed of multiple devices, or may be applied to an apparatus composed of a single device. Furthermore, any combination of the above embodiments is also included in the present invention.

[0075] According to the above-mentioned embodiments, in image data without text information such as a scanned image of a document, a character recognition execution area can be automatically selected by a simple operation of merely designating a position (for example, a character area or a point in the vicinity thereof), and character recognition of a character string equivalent to a word can be performed. Even in the case of image data read from a Japanese manuscript, where the number of characters in the entire character string area (unit area) assumed to be a continuous character string is large, character recognition of a character string equivalent to a word can be completed without delaying the user's operation, and the character recognition result can be quickly presented to the user. Therefore, for example, usability can be significantly improved in a scene where a file name of the image data is set by using a character string obtained by character recognition from image data read from a manuscript.

[0076] It is possible to reduce the time required for character recognition by having the user clearly specify the character recognition execution area (for example, by having the user touch the beginning and end positions). However, this method has problems such as the user having to specify the character recognition execution area being cumbersome and difficult to specify on a small touch panel. In contrast, in each of the above embodiments, a character string equivalent to a word that is adjacent to the user's touch position can be automatically selected as the character recognition execution area by a simple specification method of touching a point on the image data (a character area or its vicinity) that is easy even on a small touch panel, and as a result, it is possible to reduce the time required for character recognition. In this way, the character recognition execution area of ​​a word (or its equivalent) in the image data can be automatically selected, and character recognition of a character string equivalent to a word can be easily and quickly performed.

[0077] Other embodiments The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. Furthermore, the present invention may be applied to a system made up of a plurality of devices, or to an apparatus made up of a single device. The present invention is not limited to the above-mentioned embodiment, and various modifications (including organic combinations of the embodiments) are possible based on the spirit of the present invention, and are not excluded from the scope of the present invention. In other words, the present invention includes all configurations that combine the above-mentioned embodiments and their modifications.

[0078] The disclosure of this embodiment includes the following configuration, method, and program. (Configuration 1) An image processing device, An extraction means for extracting a character region from image data; an estimation means for estimating a character rectangle from the character area; a user interface means for displaying the image data and accepting a user operation for designating a position on the image data corresponding to a character area for which character recognition is to be performed; character recognition means for performing character recognition on a character rectangle corresponding to a position on the image data specified by the user operation, and for generating a character string by repeating character recognition on character rectangles connected in a first direction and a second direction of the specified character rectangle, the character recognition means terminates character recognition for the connected character rectangles in that direction in response to the connected character rectangles no longer existing or the result of character recognition of the connected character rectangles no longer containing a character of a type matching the type of character recognized from the specified character rectangle. 13. An image processing device comprising: (Configuration 2) 2. The image processing device according to configuration 1, wherein the type of character is any one of kanji, hiragana, katakana, alphabet, and symbols. (Configuration 3) The image processing device described in configuration 2, characterized in that the character recognition means determines whether the pixel density of the connected character rectangle is higher than a predetermined density when the type of character recognized from the specified character rectangle is not Chinese character, and if the pixel density is higher than the predetermined density, does not perform character recognition on the character rectangle and terminates character recognition on the character rectangles connected in that direction. (Configuration 4) 4. The image processing device according to any one of configurations 1 to 3, wherein the first direction and the second direction are opposite directions in a substantially horizontal direction, or opposite directions in a substantially vertical direction. (Configuration 5) 5. The image processing device according to any one of configurations 1 to 4, wherein the user interface means displays the character string generated by the character recognition means, and receives a user operation for confirming the character string. (Configuration 6) 6. The image processing device according to configuration 5, wherein the character string confirmed by the user operation is used as a file name when the image data is saved. (Configuration 7) a reading means for reading an original and generating the image data; a transmission means for transmitting the character string confirmed by the user operation and the image data to a predetermined server, 6. The image processing apparatus according to claim 5, wherein the server uses the character string as a file name to save the image data. (Configuration 8) an image reading device having a reading unit that reads an original and generates the image data, and the user interface unit; The image processing device according to any one of configurations 1 to 7, characterized in that the image processing service having the extraction means, the estimation means, and the character recognition means is an image processing system that cooperates with the image processing service via a network. (Method 1) A control method for an image processing device, comprising: An extraction step of extracting a character region from the image data; an estimation step of estimating a character rectangle from the character region; a receiving step of displaying the image data and receiving a user operation for designating a position on the image data corresponding to a character area for which character recognition is to be performed; a character recognition step of performing character recognition on a character rectangle corresponding to a position on the image data specified by the user operation, and further repeating character recognition on character rectangles connected in a first direction and a second direction of the specified character rectangle to generate a character string, in the character recognition step, when the connected character rectangles no longer exist or when the result of character recognition of the connected character rectangles no longer includes a character type matching the character type recognized from the specified character rectangle, the character recognition for the connected character rectangles in that direction is terminated. 23. A method for controlling an image processing apparatus comprising the steps of: (Program 1) A program for causing a computer to function as each of the means according to any one of configurations 1 to 4. [Explanation of symbols]

[0079] 100 Network 101 MFP 102 Document filing server 304 Character area extraction part 305 Character rectangle estimation part 306 Character recognition section

Claims

1. An image processing device, An extraction means for extracting a character region from image data; an estimation means for estimating a character rectangle from the character region; a user interface means for displaying the image data and accepting a user operation for designating a position on the image data corresponding to a character area for which character recognition is to be performed; character recognition means for performing character recognition on a character rectangle corresponding to a position on the image data specified by the user operation, and for generating a character string by repeating character recognition on character rectangles connected in a first direction and a second direction of the specified character rectangle, the character recognition means terminates character recognition for the connected character rectangles in that direction in response to the connected character rectangles no longer existing or the result of character recognition for the connected character rectangles no longer containing a character of a type matching the type of character recognized from the specified character rectangle.

13. An image processing device comprising:

2. 2. The image processing apparatus according to claim 1, wherein the type of characters is any one of kanji, hiragana, katakana, alphabet, and symbols.

3. 3. The image processing device according to claim 2, wherein the character recognition means determines whether the pixel density of the connected character rectangle is higher than a predetermined density when the type of character recognized from the specified character rectangle is not a kanji character, and if the pixel density is higher than the predetermined density, does not perform character recognition of the character rectangle and terminates character recognition for the character rectangles connected in that direction.

4. 2 . The image processing device according to claim 1 , wherein the first direction and the second direction are opposite directions in a substantially horizontal direction or opposite directions in a substantially vertical direction.

5. 5. The image processing apparatus according to claim 1, wherein the user interface means displays the character string generated by the character recognition means and accepts a user operation for confirming the character string.

6. 6. The image processing apparatus according to claim 5, wherein the character string confirmed by the user operation is used as a file name when the image data is saved.

7. a reading means for reading an original and generating the image data; a transmission means for transmitting the character string confirmed by the user operation and the image data to a predetermined server, 6. The image processing apparatus according to claim 5, wherein the server uses the character string as a file name to store the image data.

8. an image reading device having a reading unit that reads an original and generates the image data, and the user interface unit; The image processing device according to any one of claims 1 to 4, characterized in that an image processing service having the extraction means, the estimation means, and the character recognition means is an image processing system that cooperates with the image processing service via a network.

9. A control method for an image processing device, comprising: An extraction step of extracting a character region from the image data; an estimation step of estimating a character rectangle from the character region; a receiving step of displaying the image data and receiving a user operation for designating a position on the image data corresponding to a character area for which character recognition is to be performed; a character recognition step of performing character recognition on a character rectangle corresponding to a position on the image data specified by the user operation, and further repeating character recognition on character rectangles connected in a first direction and a second direction of the specified character rectangle to generate a character string, in the character recognition step, when the connected character rectangles no longer exist or when the character recognition result of the connected character rectangles no longer includes a character type matching the character type recognized from the specified character rectangle, the character recognition for the connected character rectangles in that direction is terminated.

23. A method for controlling an image processing apparatus comprising the steps of:

10. A program for causing a computer to function as each of the means according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Device for setting file name for scanned image, control method thereof, and program

    JP2019068324A