Image processing device, manuscript type recognition method, and program
A multi-stage document type recognition process in image processing devices addresses inefficiencies and resource strain by recognizing document types in stages, enhancing flexibility and efficiency across various applications.
Patent Information
- Application Number
- JP2023060959
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2024-10-17
AI Technical Summary
Conventional image processing devices face inefficiencies and resource strain due to the need for multiple document type recognition functions for each application, leading to redundant recognition and increased processing time and resource load.
Implementing a multi-stage document type recognition process in image processing devices, where document types are recognized in stages based on user-defined settings, allowing a single function to handle various applications efficiently.
This approach reduces resource strain and processing time while enabling flexible and efficient document type recognition for diverse document types without requiring redundant recognition functions for each application.
Smart Images

Figure 2024148062000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing apparatus, a document type recognition method, and a program. [Background technology]
[0002] There is a known method in which an image processing device recognizes the document type by analyzing image data of a document read by a scanner or the like, and switches the subsequent processing depending on the document type. For example, this enables processing according to the document type and optimal image processing. However, in an environment in which a wide variety of documents are input to an image processing device every day, it is difficult to distinguish the subdivided document types using a general-purpose method.
[0003] In document type recognition, a technique is known that flexibly and accurately determines the document type and applies optimal image processing according to the document type (see, for example, Patent Document 1). Patent Document 1 discloses a configuration that allows a user to arbitrarily register a document type other than predetermined document types. Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the conventional technology, there is a problem that it is inefficient for one image processing device to have a document type recognition function for each application, and it also causes resource shortage. In other words, when an image processing device recognizes various document types in each application, multiple document type recognition functions are required for each application, which makes application development inefficient. In addition, when each application recognizes a common document type, each application has a duplicate document type recognition function, which causes resource shortage.
[0005] In view of the above-mentioned problems, an object of the present invention is to provide a technique for performing document type recognition efficiently while reducing resource pressure. [Means for solving the problem]
[0006] The present invention is an image processing device in which an application processes image data generated by reading a document, and includes a setting acceptance unit that accepts settings of the application by a user, a document type determination unit that determines a document type discrimination type associated with the application accepted by the setting acceptance unit, and a document type recognition unit that gradually recognizes the document type of the image data based on the document type discrimination type determined by the document type determination unit. Effect of the Invention
[0007] It is possible to provide a technique for efficiently recognizing document types while reducing resource pressure. [Brief description of the drawings]
[0008] [Figure 1] FIG. 4 is a diagram showing an example of a document type. [Diagram 2] FIG. 2 is a diagram for explaining an outline of document type recognition performed by the image processing apparatus; [Diagram 3] FIG. 1 is a diagram illustrating an image processing apparatus or an image processing system that is an example of an apparatus that performs document type recognition. [Figure 4] FIG. 2 illustrates an example of a hardware configuration of an image processing apparatus. [Diagram 5] FIG. 1 is a functional block diagram showing a schematic configuration of a digital color image forming apparatus as an example of an image processing apparatus. [Figure 6] 4 is a diagram illustrating an example of a functional configuration of a document type recognition implementation unit. [Figure 7] 11A and 11B are diagrams illustrating examples of pattern settings in which a plurality of document types recognized by document type recognition are combined. [Figure 8] FIG. 2 is a diagram showing an example of a hierarchical structure of patterns A to D. [Figure 9] 13 is a diagram showing an example of a pattern setting screen on which a user sets a correspondence between an application and a pattern of a document type; FIG. [Figure 10] 1 is a diagram illustrating an example of document type recognition used by an application in multiple stages, for each application; [Figure 11]11 is a flowchart illustrating an example of a process performed by a document type recognition unit to determine a document type. [Figure 12] 13 is an example of a flowchart illustrating a process in which a document type recognition implementation unit determines a document type based on pattern A, pattern B, and pattern D. FIG. [Figure 13] FIG. 1 is a functional block diagram of an example of a document type recognition device using machine learning. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An image processing apparatus and a document type recognition method performed by the image processing apparatus will be described below with reference to the drawings as an example of an embodiment of the present invention.
[0010] <Processing Overview> It is known that there are various types of documents, such as documents, forms, drawings, and photographs, that are scanned by image processing devices such as scanners. Therefore, there is a technology called "document type recognition" that automatically distinguishes the type of document scanned by a scanner, and a method of switching the subsequent processing depending on the document type is well known. However, the document type required varies depending on the subsequent processing. For example, in some cases, it is sufficient to recognize the document type, such as a photograph, document, or form, but in the case of a form, it may be required to further classify it into a type of form, such as a statement or invoice.
[0011] Figure 1 shows examples of manuscript types. The manuscript type in Figure 1(a) is a document, the manuscript type in Figure 1(b) is a form, the manuscript type in Figure 1(c) is a drawing, and the manuscript type in Figure 1(d) is a photograph.
[0012] In an environment where a wide variety of documents are input to image processing devices every day, it is difficult for the image processing device to universally distinguish all document types using one method. Furthermore, the more detailed the document types that the image processing device must recognize, the more complex the document type recognition process becomes, and the greater the processing time and the load on resources such as memory tends to be.
[0013] Furthermore, there are cases where an image processing device is used for multiple purposes. The purpose is a process performed on image data of a document read by the image processing device, such as OCR, saving to a folder, or form processing. The purpose is specified by an application running on the image processing device. If the image processing device recognizes various document types in each application, multiple document type recognition functions are required for each application, making application development inefficient. Also, if each application recognizes a common document type, each application has a duplicate document type recognition function, which causes resource congestion.
[0014] Therefore, in this embodiment, in an environment where a single image processing device recognizes document types for various purposes (where it is desired to distinguish various document type types), the document type recognition configuration is a multi-stage configuration, and the document type recognition results are output according to the purpose.
[0015] FIG. 2 is a diagram for explaining an outline of document type recognition performed by the image processing apparatus 20 of this embodiment. (1) First, the image processing device 20 has a multi-stage configuration that includes functions for recognizing different document types. Different document type recognition functions are not provided for each purpose (for example, application). (2) Furthermore, each application is associated in advance with one or more document types that the application is to recognize when processing (document types that the application can process). (3) When the user causes the image processing device 20 to read an original, the user selects a desired application from among a number of applications. (4) The image processing device 20 repeats document type recognition according to the application set by the user until the document type associated with this application is recognized. That is, when the application is application D, the image processing device 20 performs the first document type recognition, but determines that the document types associated with application D (Company A's specification, Company B's specification) are not recognized. Furthermore, the first document type recognition recognizes a document type (a slip) that should be recognized by the second document type recognition, which is a more detailed document type. (5) For this reason, the image processing device 20 performs the second document type recognition, but determines that the document type associated with application D is not recognized. Furthermore, the second document type recognition recognizes a document type (specification) that should be further subdivided and recognized by the third document type recognition. (6) Therefore, the image processing device 20 can recognize the document type associated with application D (Company A's specification or Company B's specification) by performing the third document type recognition.
[0016] Therefore, the image processing device 20 of this embodiment does not have the same document type recognition function for each application, but repeats multi-stage document type recognition common to different applications until it recognizes the document type associated with the application. Therefore, in an environment where one image processing device recognizes document types for various applications, it is possible to realize a wide variety of document type recognition efficiently and without straining resources.
[0017] <Terminology> An application is a dedicated program developed for a specific purpose to run on an OS (Operating System). In this embodiment, the application may be one that processes image data for a preset document type. The application may also be a web application. In this embodiment, the application may be referred to as an "app."
[0018] The document type is a type of document for identifying the content of the document. Document types are, for example, documents, forms, photographs, drawings, specifications, invoices, etc., but are not limited to these. The document type discrimination type is a combination of one or more document types. The document type discrimination type may be a combination of document types specified by an ID. In this embodiment, the document type discrimination type is described using the term document type pattern.
[0019] "Stepwise" means that document type recognition processing is repeatedly performed with different document types that can be recognized. The image processing device 20 recognizes document types stepwise, such as documents, slips, photographs, or drawings in the first step, specifications or invoices in the second step, and specifications of company A and company B in the third step.
[0020] <Configuration example> FIG. 3 shows an image processing device 20 or an image processing system 100, which is an example of a device that performs document type recognition. The image processing device 20 in FIG. 3(a) is a device used by a user that combines multiple different functions, such as a multifunction device or MFP (Multifunction Peripheral). The image processing device 20 has at least a scanner function. A scanner is a device or function that converts images, documents, etc. into digital still images for communication or recording. In this embodiment, the digital still images may be color or monochrome. The digital still images may be snapshots of a video.
[0021] In addition to the scanner function, the image processing device 20 may have a fax function, a print function, a copy function, etc. The image processing device 20 may be called an image forming device, a printing device, a printer, a scanner device, etc.
[0022] 3A is capable of scanning an original image, generating multi-tone image data, and performing original type recognition on the image data by itself. The image processing device 20 can run multiple applications, and each application performs processing according to the original type.
[0023] On the other hand, as shown in Fig. 3(b), image data generation and document type recognition of this embodiment may be performed by different devices. Fig. 3(b) shows an example of an image processing system 100 in which an information processing device 40 performs document type recognition. This image processing system 100 includes an information processing device 40 and an image processing device 20. The information processing device 40 and the image processing device 20 are connected to each other so as to be able to communicate with each other via a LAN or Wi-Fi (registered trademark) within the facility, a USB cable, or the like.
[0024] When a user places a document on the image processing device 20 and executes scanning, the image processing device 20 transmits image data to the information processing device 40 via the network N. The information processing device 40 receives the image data generated by the image processing device 20 by scanning the document, and can perform document type recognition on the image data.
[0025] 3(c), the document type recognition may be executed as part of a workflow process. A workflow is a series of processes that are executed by combining a plurality of processes (e.g., scanning, saving to the cloud, or sending by email, etc.). For example, a service is known in which an image processing device 20 reads a document and generates image data, and then an information processing system 60 performs a predetermined process on the image data, and then the image data is saved in the cloud or sent by email.
[0026] FIG. 3(c) shows an image processing system 100 that executes a workflow. The image processing system 100 has an information processing system 60 and an image processing device 20. The information processing system 60 may or may not be included in the image processing system 100. The information processing system 60 and the image processing device 20 are communicatively connected via a wide area network N1 such as the Internet. The image processing device 20 is placed in a facility such as a company, and is connected to a network N2 laid in the facility. The network N2 may be a LAN, Wi-Fi (registered trademark), wide area Ethernet (registered trademark), or a mobile phone network such as 4G, 5G, or 6G.
[0027] The information processing system 60 may be realized by one or more computers. The information processing system 60 may be realized by cloud computing, or may be realized by a single information processing device. Cloud computing refers to a form in which resources on a network are used without being aware of specific hardware resources. The information processing system 60 may exist on the Internet or on-premise.
[0028] The image processing device 20 and the information processing system 60 may execute a Web application. A Web application is an application that runs as a result of cooperation between a program written in a programming language (e.g., JavaScript (registered trademark)) that runs on a Web browser and a program on the Web server side. In contrast, an application that cannot be executed unless it is installed in the image processing device 20 is called a native application. In this embodiment, too, the application executed by the image processing device 20 may be a Web application or a native application.
[0029] The information processing system 60 generates screen information for displaying a screen of a Web application on the image processing device 20. The screen information is a program written in HTML, XML, a scripting language, CSS (Cascading Style Sheet), etc., where the structure of a Web page is mainly specified by HTML, the operation of the Web page is regulated by the scripting language, and the style of the Web page is specified by CSS.
[0030] 3(c), the image processing device 20 generates image data using a scanner function, recognizes the document type, and transmits the data to the information processing system 60 via the networks N1 and N2. The information processing system 60 executes a workflow set by the user to send the data by email or store the data in the cloud.
[0031] 3(c), the document type recognition may be performed by the information processing system 60. The image processing device 20 generates image data using a scanner function, and transmits the image data to the information processing system 60 via the networks N1 and N2. The information processing system 60 performs document type recognition on the received image data, and executes the subsequent workflow.
[0032] The information processing system 60 can accept execution of a workflow, but may also be used by a user to perform settings related to the workflow (such as license assignment and initial settings).
[0033] Furthermore, the image data on which the information processing device 40 in Fig. 3(b) or the information processing system 60 in Fig. 3(c) performs document type recognition does not have to be that scanned by the image processing device 20. For example, the image processing device 20 may be a digital camera or a smartphone, and the information processing device 40 or the information processing system 60 may perform document type recognition on image data generated by these devices by capturing an image of a document or the like. Furthermore, the information processing device 40 or the information processing system 60 can perform document type recognition on any image on the network.
[0034] In the following description, unless otherwise specified, it is assumed that the image processing device 20 in FIG. 3(a) performs document type recognition.
[0035] <Hardware configuration example> Fig. 4 is a diagram showing an example of a hardware configuration of an image processing device 20 according to an embodiment of the present invention. As shown in Fig. 4, the image processing device 20 includes a controller 910, a short-range communication circuit 920, an engine control unit 930, an operation panel 940, and a network I / F 950. Here, the image processing device 20 may be an image forming device, an MFP, or a multifunction peripheral / product / printer.
[0036] Of these, the controller 910 has a CPU 901, which is the main part of the computer, a system memory (MEM-P) 902, a north bridge (NB) 903, a south bridge (SB) 904, an ASIC (Application Specific Integrated Circuit) 906, a local memory (MEM-C) 907, an HDD controller 908, and an HD 909, and is configured such that the NB 903 and the ASIC 906 are connected via an AGP (Accelerated Graphics Port) bus 921.
[0037] Of these, the CPU 901 controls the entire image processing device 20. The NB 903 is a bridge for connecting the CPU 901 with the MEM-P 902, the SB 904, and the AGP bus 921, and includes a memory controller for controlling reading and writing to the MEM-P 902, a PCI (Peripheral Component Interconnect) master, and an AGP target.
[0038] The MEM-P 902 is composed of a ROM 902a which is a memory for storing programs and data for implementing the various functions of the controller 910, and a RAM 902b which is used for developing the programs and data, and as a drawing memory during memory printing, etc. The programs stored in the RAM 902b may be provided by being recorded in a computer-readable recording medium such as a CD-ROM, CD-R, or DVD in the form of an installable or executable file.
[0039] The SB904 is a bridge for connecting the NB903 to a PCI device and a peripheral device. The ASIC906 is an IC (Integrated Circuit) for image processing purposes having hardware elements for image processing, and plays the role of a bridge connecting the AGP bus 921, the PCI bus 922, the HDD controller 908, and the MEM-C907. The ASIC906 is composed of a PCI target and an AGP master, an arbiter (ARB) that is the core of the ASIC906, a memory controller that controls the MEM-C907, a plurality of DMACs (Direct Memory Access Controllers) that rotate image data using hardware logic, and a PCI unit that transfers data between the scanner unit 931, the printer unit 932, and the fax unit 933 via the PCI bus 922. A USB (Universal Serial Bus) interface or an IEEE1394 (Institute of Electrical and Electronics Engineers 1394) interface may be connected to the ASIC906.
[0040] The short-distance communication circuit 920 has a card reader 920a for reading user authentication information and the like stored on an IC card or the like.
[0041] The operation panel 940 includes a touch panel 940a and a numeric keypad 940b for accepting input from a user. The touch panel 940a displays a setting screen for the image processing device 20 and the like.
[0042] <Functional configuration of image processing device> 5 is a functional block diagram showing a schematic configuration of a digital color image forming apparatus as an example of the image processing apparatus 20. The digital color image processing apparatus includes a setting reception unit 6, a reading unit 1, an image processing unit 2, an image data storage unit 3, a printing unit 4, and an application processing unit 5. Each of these functional units of the image processing apparatus 20 is a function or means realized by a CPU 901 executing commands included in one or more programs installed in the image processing apparatus 20. Alternatively, each functional unit may be realized by an ASIC (Application Specific Integrated Circuit), a DSP (Digital Signal Processor), an FPGA (Field Programmable Gate Array), a hardware circuit module, or the like.
[0043] The setting reception unit 6 receives the setting conditions set by the user when scanning. As condition settings, the user sets, for example, the application to be used or any conditions within the application (file format, resolution, whether or not OCR is applied, save destination, etc.). Hereinafter, the type of application set by the setting reception unit 6 will be described as a "setting condition." In this embodiment, of the setting conditions, the type of application that has been set is mainly used. The setting conditions received by the setting reception unit 6 are also input to the image processing unit 2 and the application processing unit 5.
[0044] When the user completes the settings for scanning and processing begins, the reading unit 1 reads the document. The reading unit 1 is a device that optically reads the document and generates image data. The reading unit 1 sends the read image data to the image processing unit 2 according to the setting conditions accepted by the setting acceptance unit 6.
[0045] The image processing unit 2 has a gamma correction unit 21, an area detection unit 22, a data interface unit 23, a color processing / UCR unit 24, and a printer correction unit 25. When a scanned image is generated, the gamma correction unit 21 and the area detection unit 22 process the image data in that order. When a copy image is generated, the gamma correction unit 21, the area detection unit 22, the data interface unit 23, the color processing / UCR unit 24, and the printer correction unit 25 process the image data in that order.
[0046] The gamma correction unit 21 is a means for performing one-dimensional conversion on each signal of the data (8 bits for each of R, G, and B colors after A / D conversion) read by the reading unit 1 in order to align the gradation balance for each color. For the sake of explanation here, the data is converted into a density linear signal (RGB signal: the signal value indicating white is set to 0) after conversion, and the output of the gamma correction unit 21 is sent to the area detection unit 22 and directly to the data interface unit 23. The area detection unit 22 judges whether a pixel or pixel block of interest in the read image data is a character area or a non-character area (i.e., a picture), and also judges whether it is a chromatic or achromatic color.
[0047] The data interface unit 23 is, for example, an interface for a HDD when the determination result from the area detection unit 22 and the image data after processing by the gamma correction unit 21 are temporarily stored in the image data storage unit 3 .
[0048] In the processing flow of the scanned image, the judgment result from the area detection unit 22 and the image data processed by the gamma correction unit 21 are temporarily stored in the image data storage unit 3, and the image data is input from the image data storage unit 3 to the application processing unit 5, where processing of each application is carried out.
[0049] On the other hand, when a copy image is generated, the data interface unit 23 sends the gamma-corrected image data and the judgment result from the area detection unit 22 to the color processing / UCR unit 24. The color processing / UCR unit 24 is a means for selecting color processing or UCR processing based on the judgment result for each pixel area or pixel block. Furthermore, the printer correction unit 25 receives the C, M, Y, Bk image signals from the color processing / UCR unit 24, performs gamma correction processing and dither processing taking into account the printer characteristics, and sends the signals to the printing unit 4.
[0050] That is, the copy image processing flow uses the results of character judgment performed by the area detection unit 22 to determine whether a pixel or pixel block of interest in the read image data is a character area or a non-character area (i.e., a picture) and color judgment to determine whether the color is chromatic or achromatic, The color processing / UCR unit 24 performs color reproduction processing suitable for the original according to the results of the character judgment and color judgment.
[0051] The image data output by the image processing unit 2 is transferred onto a medium such as paper by the printing unit 4. The printing unit 4 controls a transfer printing unit to output a copy image.
[0052] The application processing unit 5 acquires the image data processed by the gamma correction unit 21 and temporarily stored in the image data storage unit 3, and performs document type recognition. The application processing unit 5 determines the pattern of document types to be output (one or more document types to be recognized that are associated with the application) in accordance with the setting conditions received by the setting reception unit 6, and performs document type recognition until a corresponding output result is obtained. Using the obtained results, the application processing unit 5 performs processing in accordance with the setting conditions (such as file format conversion to PDF, performing OCR, and sending to a storage destination or address predetermined according to the document type).
[0053] The application processing unit 5 has a document type recognition execution unit 51 and an application execution unit 52. The document type recognition unit 512 recognizes the document type based on a processing flow. The processing flow is, for example, a flow for performing document type recognition and executing processing according to the setting conditions accepted by the setting acceptance unit 6 using the result of the document type recognition.
[0054] The document type recognition implementation unit 51 confirms a pattern of the document type previously associated with the setting conditions from the setting conditions accepted by the setting acceptance unit 6, and performs document type recognition until the confirmed document type is output from the image data. The document type information output by the document type recognition implementation unit 51 is input to the application implementation unit 52 together with the image data input from the image data storage unit 3.
[0055] The application execution unit 52 processes the image data processed by the gamma correction unit 21 in accordance with the setting conditions accepted by the setting acceptance unit 6 (such as converting the file format to PDF, performing OCR, and sending to a predetermined storage destination or address depending on the type of document).
[0056] Next, the document type recognition unit 512 will be described in detail with reference to Fig. 6. Fig. 6 is a functional configuration diagram of the document type recognition execution unit 51. The document type recognition execution unit 51 has a document type determination unit 511, a document type recognition unit 512, and a next-stage recognition document type determination unit 513.
[0057] The document type determination unit 511 acquires a document type pattern to be output in the subsequent document type recognition based on the setting conditions received by the setting reception unit 6 (see FIG. 7). A combination of document types determined by an application is called a document type pattern. An example of the correspondence between the pattern and the document type is shown in FIG. 7.
[0058] The document type determination unit 511 sets a document type pattern previously associated with the setting conditions received by the setting reception unit 6 as document type pattern information when performing document type recognition on the image data input from the image data storage unit 3. The image data and document type pattern information input from the image data storage unit 3 are input to the document type recognition unit 512.
[0059] The document type recognition unit 512 checks the document type pattern associated with the setting conditions (application) accepted by the setting acceptance unit 6, and performs document type recognition for the image data until the confirmed document type pattern is output. The document type information obtained by the document type recognition unit 512 is input to the application execution unit 52 as document type information to be used by the subsequent application execution unit 52. The document type recognition unit 512 performs so-called classification processing, and outputs a class (document type).
[0060] The document type recognition unit 512 performs document type recognition on the image data input from the document type determination unit 511. The document type recognition unit 512 includes a plurality of document type recognition methods. Here, an example will be described in which there are three document type recognition methods (pattern A, pattern B, pattern C) or four (including pattern D), but there is no limit to the number of methods. Details will be described with reference to Figs. 7 to 9.
[0061] The document type recognition unit 512 has all (e.g., three or four) document type recognition methods. The document type recognition unit 512 changes the document type recognition method to be used and recognizes the document type according to "information on the document type recognition method to be implemented" requested by the next-stage recognition document type determination unit 513. There are no limitations on the document type recognition method, and it may be a rule-based method (for example, determining the document type from the feature amount of an image) or a method using a neural network. The feature amount may be a histogram of the color of the background, the number of characters, the number of straight lines, the number of rectangles, etc.
[0062] The document type recognition unit 512 may switch the recognition method for each stage, for example, performing the first document type recognition by a neural network and the second document type recognition on a rule-based basis. Alternatively, the document type recognition unit 512 may extract text from the document by OCR, divide it into keywords by morphological analysis, and recognize the document type by using natural language processing for the keywords. The natural language processing may be, for example, a process of simply searching a dictionary by a keyword and estimating the document type associated with the keyword, or a process of inputting one or more keywords into a neural network and outputting the document type.
[0063] When the document type recognition unit 512 recognizes the document type using a neural network, a person in charge prepares a learning data set for each document type and creates a learning model for document type recognition. The learning model can be optimized for each pattern. For example, when document type recognition of pattern A is performed using a neural network, the document type recognition device generates a learning model A by learning a learning data set A composed of "documents of a document type included in pattern A" for pattern A. Similarly, the document type recognition device can generate a learning model B by learning a learning data set B composed of "documents of a document type included in pattern B" for pattern B. In addition, when it is assumed that pattern B is performed after pattern A, it is also possible to construct a learning data set B composed of "documents determined to be a form in pattern A" and "documents of a document type included in pattern B" to generate the learning model B. For example, when the document determined to be a form in pattern A is further recognized as "documents of a document type included in pattern B" into a statement and an invoice, pattern B is recognized by a learning model that has learned a learning data set that is determined to be a form.
[0064] This makes it possible to create a learning model that has a high affinity with pattern A. In this embodiment, the document type recognition of pattern B will be described on the premise that it is performed when the "form" application is set in the document type recognition of pattern A. In other words, the document type recognition of pattern B can be a document type recognition method specialized for forms. Such a configuration is possible because this embodiment has a multi-stage configuration.
[0065] The document type recognition unit 512 also performs pre-processing (such as grayscale conversion and magnification change) required for document type recognition, and the contents of the pre-processing can be switched depending on the method of document type recognition to be performed.
[0066] The next-stage recognition document type determination unit 513 judges whether the document type recognition result output from the document type recognition unit 512 matches the document type associated with the setting conditions accepted by the setting acceptance unit 6. If the next-stage recognition document type determination unit 513 judges that they match, the document type recognition result output from the document type recognition unit 512 and the image data input by the document type judgment unit 511 are output to the application execution unit 52. If the next-stage recognition document type determination unit 513 judges that they do not match, it instructs the document type recognition unit 512 to recognize the next document type in a multi-stage configuration, or judges that the document type cannot be judged.
[0067] <Example of manuscript type pattern> Fig. 7 shows an example of pattern setting combining a plurality of document types recognized by document type recognition. According to Fig. 7, pattern A is a pattern in which a document, a slip, a photograph, or a drawing is recognized as the document type. The patterns in Fig. 7 are only examples, and there is no limit to the number of patterns. Also, the combination of document types in each pattern is arbitrary. Each pattern can be set in advance by a developer of the image processing device 20, etc.
[0068] In the case of patterns such as those in Fig. 7, the hierarchical structure of document type patterns can be expressed as shown in Fig. 8. Fig. 8 shows the hierarchical structure of patterns A to D. A hierarchical structure means that there is a relationship between multiple patterns in which the document type recognized by a higher-level pattern is further subdivided and recognized as a document type by a lower-level pattern.
[0069] That is, a document recognized as a slip using pattern A can be further recognized as a statement or invoice using pattern B. A document recognized as a statement using pattern B is further subdivided to recognize the document type (company A's statement, company B's statement) using pattern C. On the other hand, a document recognized as a photograph using pattern A is further subdivided to recognize the document type (landscape photograph, photograph of a face) using pattern D.
[0070] The next-stage recognition document type determination unit 513 controls which pattern of document type is to be recognized next, based on the hierarchical structure in FIG. 8 and the document type recognition result.
[0071] When one image processing device 20 performs document type recognition for various purposes, it is difficult to distinguish all of the document types of patterns A to D using a general-purpose method. In this embodiment, the document type recognition unit 512 performs step-by-step recognition by further subdividing and recognizing the document type recognized in the higher-level pattern, so that a single image processing device 20 can perform detailed document type discrimination. Only one document type recognition function corresponding to each of patterns A to D is required, which is efficient and reduces resource congestion.
[0072] The hierarchical structure of FIG. 8 is an example, but the order of document type recognition is preferably such that a document type recognized in a higher-level document type recognition is recognized as a more detailed document type in a lower-level document type recognition.
[0073] <Application and pattern matching> 9 shows a pattern setting screen 200 on which a user sets the correspondence between an application and a pattern of document types. This user is usually the developer of the image processing device 20, but may also be a user on the client side.
[0074] For example, the image processing device 20 displays the pattern setting screen 200 of Fig. 9 on the operation panel. The setting reception unit 6 receives user operations on the touch panel, keyboard, etc. The pattern setting screen 200 has a two-dimensional table that associates applications with patterns A to D. The user sets which pattern to use for document type recognition for each application, taking into account the document type required by the application. That is, the user checks the pattern for the document type that the application wants to recognize.
[0075] When a document type pattern is set for each application as in Fig. 9, the document type recognition performed by each application is as shown in Fig. 10. Fig. 10 shows the document type recognition used by the applications in multiple stages for each application. The first document type recognition recognizes the document type associated with pattern A. The second document type recognition recognizes the document type associated with pattern B or pattern D. The third document type recognition recognizes the document type associated with pattern C. Note that the order of first, second, third indicates the order of the document type recognition in stages, and does not correspond to a specific pattern of document type recognition.
[0076] In this embodiment, as shown in FIG. 8, the document type recognition unit 512 performs stepwise recognition, so that different document type recognition is performed in stages in the order of pattern A → pattern B → pattern C, or in the order of pattern A → pattern D.
[0077] For example, since an application called "scan to folder" (hereinafter also referred to as the "scan to folder" app) is associated with pattern A, only the first document type recognition is performed according to the hierarchical structure of Fig. 8. The "scan to folder" app is an app that saves image data generated by the image processing device 20 by scanning a document in, for example, a folder corresponding to a user. Since the application "OCR" (hereinafter also referred to as the "OCR" application) is associated with pattern A, only the first document type recognition is performed according to the hierarchical structure of Fig. 8. The "OCR" application is an application that performs character recognition on image data generated by the image processing device 20 by reading a document. Since the application "document identification" (hereinafter also referred to as the "document identification" app) is associated with pattern B, the first document type recognition and the second document type recognition are performed according to the hierarchical structure of Fig. 8. The "document identification" app is an app that identifies the type of document (e.g., a statement, an invoice) when the image data generated by the image processing device 20 by reading an original is a document. The "document identification" app stores, for example, statements and invoices in a fixed folder. An application called "accounting system" (hereinafter also referred to as the "accounting system" app) is associated with pattern C, and therefore performs the first document type recognition, the second document type recognition, and the third document type recognition according to the hierarchical structure of FIG. 8. The "accounting system" app is an app that identifies the type of statement (e.g., statement of Company A, statement of Company B) when the image data generated by image processing device 20 by reading an original is a statement. The "accounting system" app extracts the payment amount and the like from the statement based on the format of each company's statement. Since the application "Album" (hereinafter also referred to as "Album" app) is associated with pattern D, the first document type recognition and the second document type recognition are performed according to the hierarchical structure of Fig. 8. The "Album" app is an app that identifies (automatically classifies) the type of photo (e.g., landscape photo, face photo) when the image data generated by the image processing device 20 by reading a document is a photo. The "Album" app saves, for example, landscape photos and face photos in a fixed folder.
[0078] <Recognition of manuscript type in the cases of Figs. 7 to 9> 7 to 9, the processes performed by the document type recognition unit 512 and the next-stage recognition document type determination unit 513 will be described. In this description, it is assumed that the document type recognition unit 512 has a function of first document type recognition for recognizing a document type of pattern A, a second document type recognition for recognizing a document type of pattern B, and a third document type recognition for recognizing a document type of pattern C.
[0079] When image data is input from the document type determination unit 511, the document type recognition unit 512 first performs a first document type recognition. The document type recognition unit 512 performs pre-processing and post-processing associated with the first document type recognition (such as tallying up various results when the image data is processed and the first document type recognition is performed multiple times to determine the document type by majority vote, etc.). The document type recognition unit 512 outputs the image data input from the document type determination unit 511, information indicating that the result is the first document type recognition, and the first document type recognition result to the next-stage recognition document type determination unit 513.
[0080] The next-stage recognition document type determination unit 513 judges whether the first document type recognition result input from the document type recognition unit 512 matches the document type associated with the setting conditions accepted by the setting acceptance unit 6. A case will be described where the document type associated with the setting conditions accepted by the setting acceptance unit 6 belongs to pattern A. In other words, when the result of the first document type recognition (document type belonging to pattern A in FIG. 7) belongs to the document type associated with the application accepted by the setting acceptance unit 6 (document type group of pattern A associated with the “scan to folder” application and the “OCR” application), the next-stage recognition document type determination unit 513 outputs the input image data and the result of the first document type recognition to the application execution unit 52.
[0081] A case will be described where the document type associated with the setting conditions accepted by the setting acceptance unit 6 does not belong to pattern A. In other words, when the result of the first document type recognition (document type belonging to pattern A in Fig. 7) does not belong to the document type associated with the application accepted by the setting acceptance unit 6 (for example, the document type group of pattern B associated with the "document recognition" application), the next-stage recognition document type determination unit 513 creates information indicating that it is the result of the first document type recognition and information on the method of document type recognition to be performed after the first document type recognition result.
[0082] Information about the method of document type recognition to be performed next by document type recognition unit 512 is created after confirming whether the result of the previous document type recognition (first document type recognition result) is a "form". If it is a "form", this is because document type recognition unit 512 recognizes the document type of pattern B. If it is a "form", information about the method of document type recognition to be performed next (information that the second document type recognition will be performed in this case) is output from next-stage recognition document type determination unit 513 based on the hierarchical structure of Fig. 8 and input (request) again to document type recognition unit 512.
[0083] On the other hand, if the result of the first document type recognition (document type belonging to pattern A in FIG. 7) is other than "document type", that is, if the document type is not used in the application set by the user, the next-stage recognition document type determination unit 513 determines that it is "undeterminable". The next-stage recognition document type determination unit 513 outputs the result of "undeterminable", the image data input from the document type determination unit 511, and the result of the first document type recognition to the application execution unit 52. For example, when the user sets the "document identification" application, the result of the first document type recognition is "drawing". If the user sets the "document identification" application and has the document of a document read, but it is recognized as "drawing", this is presumed to be a misrecognition.
[0084] The document type recognition unit 512 performs the second document type recognition according to information on the method of document type recognition to be performed next, which is input from the next-stage recognition document type determination unit 513. The document type recognition unit 512 outputs the image data input from the document type determination unit 511, information indicating that this is the result of the second document type recognition, and the second document type recognition result. At this time, pre-processing and post-processing associated with the second document type recognition are performed.
[0085] A case will be described where the document type associated with the setting conditions accepted by setting acceptance unit 6 belongs to pattern B. In other words, when the result of the second document type recognition (document type belonging to pattern B in FIG. 7) belongs to the document type associated with the application accepted by setting acceptance unit 6 (document type group of pattern B associated with the “document identification” application set by setting acceptance unit 6), the input image data and the result of the second document type recognition are output from next-stage recognition document type determination unit 513 and input to application execution unit 52.
[0086] A case will be described where the document type associated with the setting conditions accepted by the setting acceptance unit 6 does not belong to pattern B. In other words, when the result of the second document type recognition (document type belonging to pattern B in FIG. 7) does not belong to the document type associated with the application accepted by the setting acceptance unit 6 (document type group of pattern B associated with the "document identification" application set by the setting acceptance unit 6), the next-stage recognition document type determination unit 513 creates information indicating the result of the second document type recognition and information on the method of document type recognition to be performed next from the second document type recognition result.
[0087] Information about the method of document type recognition to be performed next by document type recognition unit 512 is created after confirming whether the result of the immediately preceding document type recognition (second document type recognition result) is a "specification." If it is a "specification," this is because document type recognition unit 512 recognizes a document type of pattern C. If the document type is a "specification," information about the method of document type recognition to be performed next (information that a third document type recognition will be performed in this case) is output from next-stage recognition document type determination unit 513 based on the hierarchical structure of FIG. 8 and is input (requested) again to document type recognition unit 512.
[0088] On the other hand, if the result of the second document type recognition (document type belonging to pattern B in FIG. 7) is other than "invoice", that is, if the document type is not used in the application set by the user, the next-stage recognition document type determination unit 513 determines that "determination is impossible". The next-stage recognition document type determination unit 513 outputs the result of "determination is impossible", the image data input from the document type determination unit 511, and the result of the second document type recognition to the application execution unit 52. For example, when the user sets the "accounting system" application, the result of the second document type recognition is "invoice". If the user sets the "accounting system" application and has the application read a document of an invoice, but it is recognized as "invoice", this is presumed to be a misrecognition.
[0089] The document type recognition section 512 performs the third document type recognition in accordance with information on the method of document type recognition to be performed next, which is input from the next-stage recognition document type determination section 513 .
[0090] The document type recognition unit 512 outputs the image data input from the document type determination unit 511, information indicating that the image data is the result of the third document type recognition, and the result of the third document type recognition.
[0091] A case will be described where the document type associated with the setting conditions accepted by setting acceptance unit 6 belongs to pattern C. In other words, when the result of the third document type recognition (document type belonging to pattern C in FIG. 7) belongs to the document type associated with the application accepted by setting acceptance unit 6 (document type group of pattern C associated with the “accounting system” application set by setting acceptance unit 6), the input image data and the result of the third document type recognition are output from next-stage recognition document type determination unit 513 and input to application execution unit 52.
[0092] A case will be described where the document type associated with the setting conditions accepted by the setting acceptance unit 6 does not belong to pattern C. In other words, if the result of the third document type recognition (document type belonging to pattern C in FIG. 7) does not belong to the document type associated with the application accepted by the setting acceptance unit 6 (document type group of pattern C associated with the "accounting system" application set by the setting acceptance unit 6), the next document type recognition does not exist, so the next-stage recognition document type determination unit 513 judges it as "undeterminable." For example, when the user sets the "accounting system" application, the result of the third document type recognition is neither a statement of Company A nor a statement of Company B.
[0093] The next-stage recognized document type determination unit 513 inputs the result of “undeterminable”, the image data input from the document type determination unit 511, and the result of the third document type recognition to the application execution unit 52.
[0094] With the above configuration, the image processing device 20 does not need to have separate document type recognition methods for similar applications, which also leads to saving resources (memory and ROM usage). Also, the image processing device 20 enables highly flexible document type recognition by outputting the recognition results for each document type recognition method.
[0095] In terms of processing time, the minimum necessary processing is required according to the setting conditions received by the setting reception unit 6, so productivity does not decrease even in a multi-stage configuration. In addition, in terms of productivity, if the document type is clearly different from the setting conditions received by the setting reception unit 6, processing can be terminated as soon as the corresponding document type is recognized. In this case, unnecessary document type recognition is not performed, which also contributes to productivity.
[0096] In addition, although an example has been described above in which three document type recognition methods are processed sequentially, multiple document type recognition methods do not necessarily have to be sequential, and document type recognition unit 512 may, for example, carry out first document type recognition and second document type recognition in parallel and weight the results of the first document type recognition and the second document type recognition to perform document type recognition.
[0097] The first and second document type recognition in this parallel method are different from the first and second document type recognition described above. For example, if a user wants to recognize the document type of pattern B, it is possible to perform the first document type recognition by rule-based document type recognition and the second document type recognition by neural network document type recognition in parallel, and to determine the document type by integrating the results of both.
[0098] <Operation or processing procedure> Fig. 11 is a flowchart for explaining the process of determining the document type by the document type recognition implementation unit 51. Fig. 11 explains an example in which the document type recognition implementation unit 51 performs three document type recognition methods (first document type recognition for recognizing a document type of pattern A, second document type recognition for recognizing a document type of pattern B, and third document type recognition for recognizing a document type of pattern C).
[0099] First, the user sets up the application (S600). The setting reception unit 6 receives the setting for the application.
[0100] Next, the document type determination unit 511 identifies a document type pattern associated with the application accepted by the setting acceptance unit 6 (S601). In the explanation of FIG. 11, one of patterns A to C is identified. When image data input from the image data storage unit 3 is input to the application processing unit 5, the document type recognition implementation unit 51 acquires the image data. In addition, the setting conditions (application set by the user) accepted by the setting acceptance unit 6 are also input to the application processing unit 5, and are acquired by the document type recognition implementation unit 51 and the application implementation unit 52.
[0101] Next, the document type recognition unit 512 performs preprocessing according to the first document type recognition method and performs the first document type recognition (S602). The document type recognition unit 512 outputs the recognized document type to the next-stage recognition document type determination unit 513.
[0102] The next-stage recognition document type determination unit 513 judges whether the document type associated with the application set by the user (desired to be determined) belongs to the document type of pattern A (S603). If the judgment in step S603 is Yes, the document type is determined by document type recognition of pattern A. For example, when the user sets the "scan to folder" application, the result of the first document type recognition is one of "document," "form," "photo," or "drawing."
[0103] If the determination in step S603 is Yes, the process in the document type recognition implementation unit 51 (including the document type determination unit 511, the document type recognition unit 512, and the next-stage recognition document type determination unit 513) ends.
[0104] If the determination in step S603 is No, the next-stage recognition document type determination unit 513 determines whether the result of the first document type recognition is a "document" (S604) based on the hierarchical structure of Fig. 8. A "document" is an example of the first document type.
[0105] If the result of the first document type recognition is not a "document" (No in S604), the process proceeds to step S610. For example, if the user sets the "document identification" application and the result of the first document type recognition is a "document," "photo," or "drawing," it is assumed that a document type completely different from a document has been recognized and therefore is a misrecognition.
[0106] If the result of the first document type recognition is a “document” (Yes in S604), then in order to further recognize what type of document it is, the document type recognition unit 512 performs preprocessing in accordance with the method for the second document type recognition, and then performs the second document type recognition (S605).
[0107] Next, the next-stage recognition document type determination unit 513 judges whether the document type (desired document type) associated with the application set by the user belongs to the document type of pattern B (S606). If the judgment in step S606 is Yes, the document type is determined by document type recognition of pattern B. For example, this is the case when the user sets the "document identification" application and the result of the second document type recognition is "specification" or "invoice." "Specification" or "invoice" is an example of the second document type.
[0108] If the determination in step S606 is Yes, the process in the document type recognition implementation unit 51 (including the document type determination unit 511, the document type recognition unit 512, and the next-stage recognition document type determination unit 513) ends.
[0109] If the determination in step S606 is No, the next-stage recognition document type determination unit 513 determines whether the result of the second document type recognition is “specification” (S607) based on the hierarchical structure in Fig. 8. “Specification” is an example of the third document type.
[0110] If the result of the second document type recognition is not "invoice" (No in S607), the process proceeds to step S610. For example, if the user sets the "accounting system" application and the result of the second document type recognition is "invoice," it is assumed that the document type recognized is a misrecognition because it is completely different from the invoice.
[0111] If the result of the second document type recognition is a “specification” (Yes in S607), then in order to further recognize what type of document it is, the document type recognition unit 512 performs preprocessing in accordance with the third document type recognition method, and performs the third document type recognition (S608).
[0112] Next, the next-stage recognition document type determination unit 513 judges whether the document type associated with the application set by the user (desired to be determined) belongs to document types of pattern C (S609). If the judgment in step S609 is Yes, the document type is determined by document type recognition of pattern C. For example, the user sets an "accounting system" application and the result of the third document type recognition is "Company A's statement" or "Company B's statement." "Company A's statement" or "Company B's statement" is an example of a fourth document type.
[0113] If the determination in step S609 is Yes, the process in the document type recognition implementation unit 51 (including the document type determination unit 511, the document type recognition unit 512, and the next-stage recognition document type determination unit 513) ends.
[0114] If the determination in step S609 is No, the process proceeds to step S610. For example, the user may set up an "accounting system" application and the result of the third document type recognition is neither "Company A's statement" nor "Company B's statement." In other words, even if three stages of document type recognition are performed, the document type associated with the application set by the user is not recognized.
[0115] In step S610, since the manuscript type recognized in the first to third manuscript type recognition processes does not belong to the manuscript type associated with the application (desired), the next-stage recognition manuscript type determination section 513 outputs a result of “unable to determine”, and processing in the manuscript type recognition implementation section 51 ends (S610).
[0116] In this way, the document type recognition unit 512 recognizes document types in multiple stages in a preset order, and if it cannot recognize the document type associated with the application set by the user, it repeats recognizing more specific document types, allowing one image processing device 20 to perform document type recognition for various purposes. It is also possible to prevent a decrease in application development efficiency, and to realize a wide variety of document type recognition without straining resources.
[0117] <Document type recognition including Pattern A, Pattern B, and Pattern D> Fig. 12 is a flowchart illustrating the process in which document type recognition implementation unit 51 determines the document type based on pattern A, pattern B, and pattern D. Fig. 12 illustrates an example in which document type recognition implementation unit 51 performs three document type recognition methods (first document type recognition that recognizes the document type of pattern A, and second document type recognition that recognizes patterns B and D).
[0118] The explanation of Fig. 12 will mainly focus on the differences from Fig. 11. Steps S700 to S704, S706, and S708 in Fig. 12 may be similar to steps S600 to S604, S605, and S606 in Fig. 11.
[0119] If the result of step S704 is No, the next-stage recognition document type determination unit 513 determines whether the result of the first document type recognition is “photograph” (S705) in order to determine whether the document type of pattern D should be recognized based on the hierarchical structure of FIG. 8.
[0120] If the result of the first document type recognition is not "photograph" (No in S705), the process proceeds to step S710. For example, if the user sets the "album" application and the result of the first document type recognition is "document" or "drawing", it is assumed that the recognition is erroneous because a document type completely different from the photograph that the "album" application processes has been recognized.
[0121] If the result of the first document type recognition is a “photograph” (Yes in S705), then in order to further recognize what type of photograph it is, the document type recognition unit 512 performs preprocessing in accordance with the method for the second document type recognition (Pattern D), and performs the second document type recognition (S707).
[0122] Next, the next-stage recognition document type determination unit 513 judges whether the document type (desired document type) associated with the application set by the user belongs to the document type of pattern D (S709). If the judgment in step S709 is Yes, the document type is determined by document type recognition of pattern D. For example, this is the case when the user sets the "album" application and the result of the second document type recognition is "landscape photo" or "portrait photo."
[0123] If the determination in step S709 is Yes, the process in the document type recognition implementation unit 51 (including the document type determination unit 511, the document type recognition unit 512, and the next-stage recognition document type determination unit 513) ends.
[0124] If the determination in step S709 is No, the process proceeds to step S710. For example, this is the case when the user sets the "album" application and the result of the second document type recognition is neither "landscape photo" nor "face photo."
[0125] In step S710, since the document type recognized in the first document type recognition to the second document type recognition does not belong to the document type associated with the application (desired document type), the next-stage recognition document type determination unit 513 outputs a result of “unable to determine”, and the processing in the document type recognition implementation unit 51 ends (S710).
[0126] <Additional information on manuscript type recognition using machine learning> In this embodiment, the document type recognition using a neural network has been described, but a learning model generated by machine learning other than a neural network may be used for document type recognition. Machine learning is a technology for making a computer acquire a human-like learning ability, and refers to a technology in which a computer autonomously generates an algorithm required for judgment such as data identification from learning data that is previously acquired, and applies this to new data to make predictions. The learning method for machine learning may be any of supervised learning, unsupervised learning, semi-supervised learning, reinforcement learning, and deep learning, or may be a combination of these learning methods, and any learning method for machine learning may be used.
[0127] For example, deep learning, which is one type of neural network, is an algorithm that predicts an output value based on input data, and then adjusts weights between neural networks using an error backpropagation method to reduce errors with teacher data. Machine learning methods include perceptrons, support vector machines, logistic regression, naive Bayes, decision trees, random forests, and the like, and are not limited to the methods described in this embodiment.
[0128] Fig. 13 is a functional block diagram of a document type recognition device 220 using machine learning. As shown in Fig. 13, the document type recognition device 220 can include an image data acquisition unit 221, a teacher data storage unit 222, a machine learning unit 223, a trained model storage unit 224, and an inference unit 225. Each of these will be described below.
[0129] The image data acquisition unit 221 acquires image data of a document stored in the image data storage unit 3 .
[0130] <<Learning Phase>> Teacher data for machine learning is stored in the teacher data storage unit 222. The teacher data in the teacher data storage unit 222 is image data (input) and document type (output) that the image data acquisition unit 221 has acquired and accumulated for a certain period of time.
[0131] The machine learning unit 223 generates a trained model for deriving the manuscript type to be output from the received image data. Specifically, the machine learning unit 223 performs machine learning using teacher data in which the received image data is used as input data and the manuscript type of the image data is used as output data, thereby generating a trained model. The machine learning unit 223 also stores the generated trained model in the trained model storage unit 224.
[0132] The trained model storage unit 224 stores the trained model generated by the machine learning unit 223.
[0133] <<Inference Phase>> The inference unit 225 acquires current image data and infers the manuscript type of this image data. Specifically, the inference unit 225 acquires image data from the image data acquisition unit 221. The inference unit 225 also inputs the image data to a trained model in the trained model storage unit 224 to output the manuscript type.
[0134] <Major Effects> The image processing device 20 of this embodiment does not have the same document type recognition function for each application, but repeats multi-stage document type recognition common to different applications until it recognizes the document type associated with the application. Therefore, in an environment where one image processing device recognizes document types for various applications, it is possible to realize a wide variety of document type recognition efficiently and without straining resources.
[0135] <Other application examples> The above describes the best mode for carrying out the present invention using examples, but the present invention is not limited to these examples in any way, and various modifications and substitutions can be made within the scope that does not deviate from the gist of the present invention.
[0136] The configuration examples in Figs. 5, 6, etc. are divided according to main functions to facilitate understanding of the processing by the image processing device 20. The present invention is not limited by the manner in which the processing units are divided or the names of the processing units. The processing by the image processing device 20 can be divided into more processing units depending on the processing contents. Also, it can be divided so that one processing unit includes more processes.
[0137] Each function of the above-described embodiments can be realized by one or more processing circuits. Here, the term "processing circuit" in this specification includes a processor programmed to execute each function by software, such as a processor implemented by an electronic circuit, and a device such as an ASIC (Application Specific Integrated Circuit), a DSP (Digital Signal Processor), an FPGA (Field Programmable Gate Array), or a conventional circuit module designed to execute each function described above.
[0138] <Additional Notes> [Appendix 1] An image processing apparatus in which an application processes image data generated by scanning an original, a setting reception unit that receives settings of the application by a user; an original type determination unit that determines a discrimination type of an original type associated with the application accepted by the setting acceptance unit; an original type recognition unit that recognizes the original type of the image data in a stepwise manner based on the discrimination type of the original type determined by the original type determination unit; 13. An image processing device comprising: [Appendix 2] An image processing device as described in Appendix 1, wherein if the discrimination type of the document type determined by the document type determination unit includes the document type recognized by the document type recognition unit, the document type recognition unit determines that the recognized document type is the type of the document. [Appendix 3] and a next-stage recognition document type determination unit that inputs a next-stage document type recognition to the document type recognition unit when the document type recognized by the document type recognition unit is not included in the discrimination types of the document type determined by the document type determination unit. [Appendix 4] the document type recognition unit performs document type recognition in stages in which different document types can be recognized, 4. The image processing device according to claim 3, wherein the next-stage recognition document type determination unit determines a document type to be recognized in a next stage in a preset order. [Appendix 5] The document type recognized by the document type recognition unit through the first document type recognition is not included in the discrimination type of the document type determined by the document type determination unit, and The image processing device according to claim 4, characterized in that, when the document type recognition unit recognizes a first document type that is set in advance by the first document type recognition, the next-stage recognition document type determination unit determines a second document type recognition that recognizes a second document type that is more specific than the first document type. [Appendix 6] The second document type recognized by the document type recognition unit through the second document type recognition is not included in the discrimination type of the document type determined by the document type determination unit, and The image processing device according to claim 5, characterized in that, when the document type recognition unit recognizes a third document type that is preset by the second document type recognition, the next-stage recognition document type determination unit determines a third document type recognition that recognizes a fourth document type that is more specific than the third document type. [Appendix 7] The document type recognized by the document type recognition unit through the first document type recognition is not included in the discrimination type of the document type determined by the document type determination unit, and 6. The image processing device according to claim 5, wherein, when the document type recognition unit does not recognize the first document type, the next-stage recognition document type determination unit determines that the document type cannot be determined. [Appendix 8] the document type recognition unit recognizes the document type by a learning model using a neural network that has previously learned the correspondence between the image data and the document type; Alternatively, the image processing device according to any one of appendices 1 to 7, wherein the document type is recognized by determining a feature amount of the image data based on a rule base. [Explanation of symbols]
[0139] 20 Image processing device 511 Manuscript type determination section 512 Original type recognition section 513 Next-stage recognition document type determination section [Prior art documents] [Patent documents]
[0140] [Patent Document 1] JP 2005-079940 A
Claims
1. An image processing apparatus in which an application processes image data generated by scanning an original, a setting reception unit that receives settings of the application by a user; an original type determination unit that determines a discrimination type of an original type associated with the application accepted by the setting acceptance unit; an original type recognition unit that recognizes the original type of the image data in a stepwise manner based on the discrimination type of the original type determined by the original type determination unit; 13. An image processing device comprising:
2. 2 . The image processing device according to claim 1 , wherein when the discrimination type of the document type determined by the document type determination unit includes the document type recognized by the document type recognition unit, the document type recognition unit determines that the recognized document type is the type of the document.
3. 3. The image processing device according to claim 1, further comprising a next-stage document type determination unit that inputs a next-stage document type recognition to the document type recognition unit when the document type recognized by the document type recognition unit is not included in the discrimination type of the document type determined by the document type determination unit.
4. the document type recognition unit performs document type recognition in stages in which different document types can be recognized, 4. The image processing apparatus according to claim 3, wherein the next-stage recognition document type determination section determines the document type to be recognized in the next stage in a preset order.
5. The document type recognized by the document type recognition unit through the first document type recognition is not included in the discrimination type of the document type determined by the document type determination unit, and The image processing device according to claim 4, characterized in that when the document type recognition unit recognizes a first document type that is preset by the first document type recognition, the next-stage recognition document type determination unit determines a second document type recognition that recognizes a second document type that is more specific than the first document type.
6. The second document type recognized by the document type recognition unit through the second document type recognition is not included in the discrimination type of the document type determined by the document type determination unit, and The image processing device according to claim 5, characterized in that when the document type recognition unit recognizes a third document type that is preset by the second document type recognition, the next-stage recognition document type determination unit determines a third document type recognition that recognizes a fourth document type that is more specific than the third document type.
7. The document type recognized by the document type recognition unit through the first document type recognition is not included in the discrimination type of the document type determined by the document type determination unit, and 6. The image processing apparatus according to claim 5, wherein, when the document type recognition section does not recognize the first document type, the next-stage recognition document type determination section determines that the document type cannot be determined.
8. the document type recognition unit recognizes the document type by a learning model using a neural network that has previously learned the correspondence between the image data and the document type; 2. The image processing apparatus according to claim 1, further comprising: determining a feature amount of the image data based on a rule base to recognize the document type.
9. 9. The image processing apparatus according to claim 8, wherein the document type recognition unit recognizes the document type by switching between recognition using a neural network and recognition using the rule base depending on the stage.
10. 1. A method for recognizing a type of document performed by an image processing apparatus in which an application processes image data generated by scanning a document, comprising: A process of accepting settings of the application by a user; A process of determining a document type discrimination type associated with the received application; a process of performing stepwise recognition of the document type for the image data based on the discrimination type of the document type determined; 13. A document type recognition method comprising:
11. An image processing device in which an application processes image data generated by scanning an original, a setting reception unit that receives settings of the application by a user; an original type determination unit that determines a discrimination type of an original type associated with the application accepted by the setting acceptance unit; an original type recognition unit that recognizes the original type of the image data in a stepwise manner based on the discrimination type of the original type determined by the original type determination unit; A program to function as a
Citation Information
Patent Citations
Image processing apparatus and copying machine with same
JP2005079940A
Cited By
Medical examination slip data digitization system and method
JP7811688B1
Document classification system, document classification device, and document classification program
WO2026181770A1
