Programs and Devices
A program enables automatic document sorting and grouping in image processing, eliminating the need for manual rearrangement and enhancing efficiency in generating image data.
Patent Information
- Application Number
- JP2020150081
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-07
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-09-07
AI Technical Summary
Existing image processing devices require users to manually rearrange documents based on extraction conditions before scanning, which is cumbersome and inefficient.
A program that allows users to set extraction and sorting conditions via a user interface, automatically reads and sorts documents according to these conditions, and generates image data without requiring manual rearrangement.
Saves users the effort of manually rearranging documents by automatically grouping and sorting images based on set conditions, improving efficiency and reducing user input.
Smart Images

Figure 0007533044000001 
Figure 0007533044000002 
Figure 0007533044000005
Abstract
Description
[Technical field]
[0001] The technical field disclosed in this specification relates to a technique for reading a plurality of documents and generating image data based on the images of the read documents. [Background technology]
[0002] Conventionally, there is known a technique for reading a plurality of documents and generating image data in which the images of the read documents are arranged in an area of one page. For example, Patent Document 1 discloses an image processing device having a so-called N-in-1 function that reduces N read images and generates arranged image data in which the reduced N images are arranged in an area of one page divided into N equal parts. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2009-296409 A Summary of the Invention [Problem to be solved by the invention]
[0004] The image processing device arranges the images in the order of the scanned documents. Therefore, when trying to obtain image data compiled from the scanned results of multiple documents by extraction conditions such as date or company name, the user must first rearrange the documents so that they are consecutive for each extraction condition, and then set the document stack in the image reading device. This task of rearranging and setting the documents can be time-consuming for the user.
[0005] This specification discloses a technique for reducing the effort required for a user to set an original when generating image data in which a plurality of images are compiled for each extraction condition. [Means for solving the problem]
[0006] A program developed for solving this problem causes a computer of an information processing device to execute a first setting process for accepting input of extraction conditions via a user interface of the information processing device and setting the accepted extraction conditions, a second setting process for accepting input of sorting conditions via the user interface and setting the accepted sorting conditions, and an acquisition process for acquiring images from an image reading device, wherein the image reading device, upon receiving a scan command from the information processing device, reads multiple documents set one by one and transmits an image of each of the read documents to the information processing device, and further causes the computer to execute an extraction process for extracting a first image that satisfies the extraction condition set in the first setting process from the multiple images received when the multiple images have been acquired from the image reading device in the acquisition process by receiving the image of each of the documents read by the image reading device, a sorting process for sorting the multiple first images extracted in the extraction process in accordance with the sorting condition set in the second setting process, and a generation process for generating first image data that includes the first images sorted in the sorting process.
[0007] By executing the program disclosed in this specification, the information processing device extracts first images from a plurality of images acquired from the image reading device according to extraction conditions set by the user, rearranges the first images according to sorting conditions set by the user, and generates first image data that compiles the rearranged first images. As a result, even if the user sets the document without rearranging the documents, the image data is generated based on the extraction conditions and sorting conditions, so that the user can save the trouble of rearranging the documents in advance.
[0008] A device for executing the processing of the above program, a control method for realizing the functions of the program, and a computer-readable storage medium for storing the program are also novel and useful. Effect of the Invention
[0009] According to the present invention, a technique is realized for reducing the effort required for a user to set an original when generating image data in which a plurality of images are compiled for each extraction condition. [Brief description of the drawings]
[0010] [Figure 1] 1 is a schematic configuration diagram of a scan system according to an embodiment; [Diagram 2] 10 is a flowchart showing a procedure of a scan process. [Diagram 3] FIG. 13 is an explanatory diagram showing an example of an Nin1 condition setting screen. [Figure 4] FIG. 13 is an explanatory diagram showing an example of a company name editing screen. [Diagram 5] 13 is a flowchart showing a procedure for a grouping process. [Figure 6] 11A and 11B are explanatory diagrams showing examples of header information and arrangement information; [Figure 7] 13 is a flowchart showing a procedure for a placement process. [Figure 8] FIG. 11 is an explanatory diagram showing an example of a placement result. [Figure 9] FIG. 11 is an explanatory diagram showing an example of a placement result. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, an embodiment of a scan system will be described in detail with reference to the accompanying drawings. This embodiment discloses a scan system including a personal computer (hereinafter, referred to as "PC") and a scanner connected to the PC.
[0012] 1, the scan system 100 of this embodiment is a system including a PC 1 and a scanner 3, which are connected to each other. The PC 1 has at least a communication function with the scanner 3, and is a device that transmits scan commands to the scanner 3 and receives scan data, which is the result of reading, from the scanner 3. The PC 1 is an example of an information processing device and an example of a device. Instead of the PC 1, for example, a smartphone or a tablet computer may be used.
[0013] As shown in Fig. 1, the PC 1 of this embodiment includes a controller 10 including a CPU 11 and a memory 12. The PC 1 also includes a user interface (hereinafter referred to as "user IF") 13 and a communication interface (hereinafter referred to as "communication IF") 14, which are electrically connected to the controller 10. Note that the controller 10 in Fig. 1 is a collective term for hardware and software used to control the PC 1, and does not necessarily represent a single piece of hardware actually present in the PC 1.
[0014] The CPU 11 executes various processes according to the programs read from the memory 12 and based on the user's operations. The CPU 11 is an example of a computer. The memory 12 is a storage area in which various programs such as a startup program for starting the PC 1 and various application programs (hereinafter referred to as "apps") for using the scanner 3, as well as various data such as image data and document data, are stored. The memory 12 is also used as a working area when various processes are executed.
[0015] 1, the memory 12 of the PC 1 according to the present embodiment stores an OS 21, a scan application 22, a scanner driver 23, a company name database (hereinafter, referred to as a "company name DB") 24, and a person name database (hereinafter, referred to as a "person name DB") 25. The OS 21 is, for example, Windows (registered trademark), macOS (registered trademark), Linux (registered trademark), iOS (registered trademark), or Android (registered trademark).
[0016] The scan application 22 is a program that accepts user instructions such as designation of a device to perform scanning, designation of a format and a location to save the scan data, an instruction to perform scanning, etc. The scan application 22 may further accept an instruction to edit an image based on the scan data received from the scanner.
[0017] The scanner driver 23 is a program that controls the operation of the scanner 3 and accepts various settings related to scanning. The scanner driver 23 is a program corresponding to the model of the scanner 3, and is started by the scan application 22 when, for example, the scan application 22 accepts an instruction to execute scanning with the scanner 3. The scanner driver 23 is an example of a program. The scanner driver 23 may be a part of the scan application 22.
[0018] The scanner driver 23 in this embodiment has an Nin1 function that aggregates multiple scan data extracted based on a predetermined condition based on multiple scan data received from the scanner 3, and generates one compiled image data. For example, a user who manages a large number of documents such as accounting-related documents may scan each document, obtain image data, and create copies to manage or submit. Many accounting-related documents such as receipts and delivery notes are smaller than A4 size, and management is made easier by generating one image data that aggregates multiple documents, or by collating and copying them on one sheet. The scanner driver 23 in this embodiment accepts an Nin1 instruction that is an instruction to execute the Nin1 function. Note that the Nin1 instruction in this embodiment is an instruction to aggregate images without reducing them, and N is not a fixed value but a variable value determined by the number of images read, etc.
[0019] The scanner driver 23 accepts the conditions of images to be combined into one sheet as Nin1 settings, which are detailed settings related to the Nin1 function. The company name DB 24 and the person name DB 25 are information input by the user as image conditions, and the company name DB 24 includes information registered as company names, and the person name DB 25 includes information registered as person names. The scanner driver 23 may refer to the company name DB 24 or the person name DB 25 when accepting image conditions in the Nin1 settings.
[0020] An example of the memory 12 is not limited to a ROM, RAM, HDD, etc. built into the PC 1, but may be a storage medium that is readable and writable by the CPU 11. A computer-readable storage medium is a non-transitory medium. In addition to the above examples, non-transitory media also include recording media such as CD-ROMs and DVD-ROMs. Non-transitory media are also tangible media. On the other hand, an electrical signal carrying a program downloaded from a server on the Internet is a computer-readable signal medium, which is a type of computer-readable medium, but is not included in non-transitory computer-readable storage media.
[0021] The user IF 13 includes hardware for displaying a screen for notifying information and hardware for accepting operations by the user. The user IF 13 may be a touch panel having a display function and an operation acceptance function, or may be a combination of a display having a display function and a keyboard, a mouse, a trackball, or the like having an operation acceptance function.
[0022] The communication IF 14 includes hardware for communicating with an external device such as the scanner 3. The communication standards of the communication IF 14 are Ethernet (registered trademark), Wi-Fi (registered trademark), USB, etc. The communication IF 14 may include multiple configurations corresponding to multiple communication standards.
[0023] The scanner 3 of this embodiment is a device having a communication function with the PC 1 and an image reading function of reading an image of a document and generating scan data. The scanner 3 is an example of an image reading device. As shown in Fig. 1, the scanner 3 of this embodiment includes an automatic document feeder (hereinafter, referred to as "ADF") 31, and can automatically feed documents one by one from a stack of multiple documents set in the ADF 31 and read them continuously. The scanner 3 is not limited to a device with a single scanning function, and may be, for example, a multifunction machine, a copier, or a fax machine.
[0024] The ADF 31 of the scanner 3 of this embodiment can accept a stack of documents of various sizes. The scanner 3 also has a function of acquiring the size of the scanned document. When the scanner 3 receives a scan command including an auto size designation, which is an instruction to acquire the size of the document, the scanner 3 adds document size information indicating the size of the document to the scan data for each document and transmits the data. The document size information includes document length information indicating the size of the document in the transport direction, and document width information indicating the size of the document in the direction perpendicular to the transport direction.
[0025] Next, the processing by the scanner driver 23 will be described. The following processing basically indicates the processing of the CPU 11 according to the instructions written in the program. That is, the processing such as "judgment", "extraction", "selection", "calculation", "decision", "identification", "acquisition", "reception", and "control" in the following description indicate the processing of the CPU 11. The processing by the CPU 11 also includes hardware control using the API of the OS. In this specification, the description of the OS will be omitted and the operation of each program will be described. That is, in the following description, a description to the effect that "program B controls hardware C" may also mean that "program B controls hardware C using the API of the OS". In addition, the processing of the CPU 11 according to the instructions written in the program may be described in abbreviated terms. For example, it may be described as "performed by the CPU 11". In addition, the processing of the CPU 11 according to the instructions written in the program may be described in abbreviated terms such as "performed by program A".
[0026] Note that "obtaining" is used as a concept that does not require a request. In other words, the process of receiving data without the CPU 11 making a request is also included in the concept of "the CPU obtaining data." In addition, "data" in this specification is represented as a bit string that can be read by a computer. Data that has the same substantial meaning but different formats is treated as the same data. The same applies to "information" in this specification. In addition, "requesting" and "instructing" are concepts that indicate outputting information indicating a request or information indicating an instruction to the other party. In addition, information indicating a request or information indicating an instruction is also simply referred to as "request" and "instruction."
[0027] Furthermore, the process by CPU 11 to determine whether information A indicates event B may be conceptually described as "determining whether event B is determined from information A." The process by CPU 11 to determine whether information A indicates event B or event C may be conceptually described as "determining whether event B or event C is determined from information A."
[0028] The procedure of the scan process executed by the PC 1 in the scan system 100 of this embodiment will be described below with reference to the flowchart in Fig. 2. The scan process is executed by the CPU 11 of the PC 1 when an instruction to execute scanning by the scanner 3 is received by the scan application 22 or the like. The scan process of this embodiment is executed by the scanner driver 23.
[0029] In the scan process, the CPU 11 acquires scan settings (S101). The scan settings are various parameters that are set in the scan application 22 or the scanner driver 23 before receiving an instruction to execute a scan, and are set based on a user operation or the like.
[0030] The reception of scan settings will be described. When Nin1 is selected as the scan setting, the scanner driver 23 of this embodiment displays an Nin1 condition setting screen 50 for receiving Nin1 settings, which are detailed settings of Nin1, on the user IF 13 as shown in FIG. 3, and receives user input. The Nin1 condition setting screen 50 shown in FIG. 3 includes input fields for receiving user input for each of a canvas size 51, a grouping condition 52, and a sorting condition 53. FIG. 3 is an example of the first setting process and the second setting process.
[0031] Canvas size 51 is information indicating the size of a single canvas on which multiple images grouped together are arranged. When printing is performed, the canvas size is the size of the printing paper. Information on the canvas size includes, for example, the width and height of the canvas, and the size of the space between each image.
[0032] Grouping conditions 52 are information indicating conditions for classifying scan data into groups. Scanner driver 23 executes Nin1, which groups images of multiple documents based on grouping conditions 52 and compiles each group into one image. Grouping conditions 52 include items such as document type, company name, person's name, and date, as shown in FIG. 3. Scanner driver 23 accepts the selection of one or more items, and further accepts the specification of more specific extraction conditions for each selected item. The extraction conditions are text indicating, for example, a specific document name, company name, or person's name.
[0033] When any item is selected as grouping condition 52, scanner driver 23 displays the extraction conditions registered for that item and accepts the user's selection. For example, when a company name item is selected, scanner driver 23 reads out all company names registered in company name DB 24, displays them in a list on user IF 13 as shown in Fig. 3, and accepts the user's selection. When a person's name item is selected, scanner driver 23 reads out all person's names registered in person name DB 25 and accepts the user's selection.
[0034] The scanner driver 23 also accepts editing of the company name DB 24 and the personal name DB 25. For example, as shown in FIG. 3, the scanner driver 23 displays an edit button 521 in a list display of company names, and when an operation of the edit button 521 is accepted, the scanner driver 23 displays a company name editing screen 60 as shown in FIG. 4. The company name editing screen 60 includes a text input field 61 and an add button 62. When text is input in the text input field 61 and an operation of the add button 62 is accepted, the scanner driver 23 registers the input text in the company name DB 24. FIG. 4 is an example of the registration process. The same applies to personal names. The company names registered in the company name DB 24 and the personal names registered in the personal name DB 25 are displayed in a list display as extraction conditions of the grouping conditions 52, and the user can select them.
[0035] It should be noted that some extraction conditions may be stored in advance in scanner driver 23. For example, scanner driver 23 may store text such as bills, receipts, delivery notes, and invoices in memory 12 in advance as extraction conditions for document type items. Alternatively, scanner driver 23 may also have a DB for extraction conditions for document type items and accept user input.
[0036] In addition, the scanner driver 23 stores a plurality of date description patterns, and when a date item is selected, it extracts a character string that fits the description pattern from the image, and acquires date information based on the extracted character string. Date description patterns include, for example, Arabic numeral notation such as yyyy / mm / dd, mm dd yyyy, dd-mm-yyyy, and Reiwa x year mm month dd day, as well as month notation using characters such as Jan, and Chinese numeral notation. The extraction conditions for the date item may be to accept a designation of a specific month or day, and group depending on whether or not it corresponds to the designated month or day, or to accept a designation of a grouping unit such as a month classification or a day classification, and group by the designated unit.
[0037] Sorting conditions 53 are information indicating conditions for determining the order in which images are arranged within each group classified by grouping conditions 52. Scanner driver 23 accepts, as sorting conditions 53, for example, ascending or descending order by year, month, and day, as well as a condition for no sorting. Scanner driver 23 also accepts sorting conditions 53 in the form of radio buttons that cannot be selected in duplicate. Note that, when a date item is selected as grouping conditions 52, sorting conditions 53 may be accepted only for time units shorter than the extraction conditions specified in grouping conditions 52.
[0038] Returning to the explanation of the scan process in Fig. 2, in the scan process, the CPU 11 judges whether or not the scan settings acquired in S101 include an instruction for Nin1 (S102). If it is judged that Nin1 is not included (S102: NO), the CPU 11 performs normal scan processing (S103). Normal scan is a process of generating one image data for each document, and since it is an existing technology, the explanation is omitted.
[0039] If it is determined that Nin1 is included (S102: YES), the CPU 11 generates a scan command with an auto size specification added (S105), and transmits the generated scan command to the scanner 3 (S106).
[0040] Based on the received scan command, the scanner 3 scans the documents set in the ADF 31 one by one, and transmits the scan data and document size information to the PC 1. The scanner 3 may transmit the scan data each time it scans one document, or may transmit the scan data of multiple documents all at once. When the scanner 3 has finished scanning all the documents set in the ADF 31, it transmits completion information to the PC 1.
[0041] Scanner 3 may have a continuous scan function. Scanner 3 with the continuous scan function receives an instruction to continue or end scanning after all documents set in ADF 31 have been scanned. If an instruction to continue is received, scanner 3 further scans a new document set in ADF 31 and continues to send the scan data and document size information to PC 1. In this case, scanner 3 sends end information to PC 1 after receiving an instruction to end scanning.
[0042] The CPU 11 determines whether or not termination information has been received from the scanner 3 (S107). If it is determined that termination information has not been received (S107: NO), the CPU 11 receives the scan data and document size information from the scanner 3 (S108) and sequentially saves the received information as a temporary file (S109). S108 is an example of an acquisition process. Saving the information as a temporary file makes it less subject to limitations due to the capacity of the RAM. If it is determined that termination information has been received (S107: YES), the CPU 11 executes a grouping process (S111).
[0043] The grouping process is a process of grouping multiple scan data, with each image containing a character string that matches each extraction condition specified as grouping condition 52 in the Nin1 setting being treated as one group. The procedure for the grouping process will be described with reference to the flowchart in Fig. 5. The following describes an example in which, as shown in Fig. 3, grouping is performed by company name (Company A, Company B) and month, and an instruction has been received to sort by date.
[0044] In the grouping process, CPU 11 reads out temporary files one by one (S201), and rotates the images of the read out temporary files so that the orientation of the included characters is uniform (S202). S202 is an example of a rotation process. CPU 11 analyzes the orientation of the document according to the language of the characters extracted from the image, for example, and rotates the images so that the orientation of the images is uniform in one direction. CPU 11 also changes the document length information and document width information of the document size information as necessary in accordance with the rotation of the image. Uniformity of the character orientation makes the output image easier to read. The user may be asked whether or not to align the character orientation.
[0045] Then, CPU 11 performs optical character recognition (OCR) processing on the rotated image of the temporary file to obtain character strings contained in the image (S203). Furthermore, CPU 11 extracts character strings that meet the extraction conditions specified in grouping conditions 52 and the sorting conditions specified in sorting conditions 53 from the obtained character strings (S204). CPU 11 attempts to extract text indicating "Company A" or "Company B" and character strings that can be determined to indicate a date from the obtained character strings.
[0046] The CPU 11 determines whether a character string that satisfies the grouping conditions 52 has been extracted (S205). Specifically, the CPU 11 determines whether a character string that matches at least one of the extraction conditions specified as the grouping conditions 52 has been extracted. S205 is an example of an extraction process. When it is determined that a character string that matches the extraction condition has been extracted (S205: YES), the CPU 11 stores grouping information including the extracted character string in the header information of the temporary file (S206).
[0047] For example, if CPU 11 determines that the image of the temporary file for the first image contains a character string indicating Company A and date information indicating month X, it stores the information "Company A, month X" as grouping information in the header information, as shown in Fig. 6. An image from which a character string matching the extraction condition is extracted is an example of a first image. The grouping information is an example of extraction information, and the header information including the grouping information is an example of page information.
[0048] Furthermore, CPU 11 determines whether a character string that meets the conditions specified in sorting condition 53 has been extracted (S207). If it is determined that the character string has been extracted (S207: YES), CPU 11 adds the character string to the header information as sorting information (S208). For example, if the same first image contains date information indicating P day, the information "P day" is added to the header information as sorting information, as shown in Fig. 6. Note that if the specification of sorting condition 53 has not been accepted, the sorting information remains blank.
[0049] On the other hand, when it is determined that a character string matching the extraction condition of the grouping condition 52 has not been extracted (S205: NO), the CPU 11 extracts a feature amount of the image of the temporary file (S211). An image from which a character string matching the extraction condition has not been extracted is an example of a second image, and S211 is an example of a feature acquisition process. Note that when the grouping condition 52 is not specified as the Nin1 setting, the CPU 11 executes S211 for all temporary files.
[0050] CPU 11 extracts, as the feature, for example, the size of the document, information on partial images such as marks and borders included in the image, and information on colors included in the image. Scanner driver 23 may accept a user's selection regarding the type of information to be used as the feature. For example, when the size of the document is used as the feature, CPU 11 obtains the information on the size of the document based on the document size information attached to the scan data and received from scanner 3.
[0051] CPU 11 adds information indicating the extracted feature amount as grouping information to the header information of the temporary file (S212). For example, if the document size of the temporary file is H mm in height and W mm in width, information of "document size H x W" is added to the header information as grouping information. The same grouping information is added to images containing the same feature amount. For example, the same grouping information is added to images of documents of the same size. When the grouping information is information indicating the feature amount, the grouping information is an example of a classification condition.
[0052] When partial image information or color information is used as the feature amount, CPU 11 may use, for example, an existing program that extracts local features of an image. Also, the relationship between the extracted feature amount and the extraction conditions may be learned by scanner driver 23, for example, by machine learning. CPU 11 may then store information indicating the feature amount and the extraction conditions in memory 12 and use the information as the extraction conditions for the next or subsequent scans. Partial image information and color information are examples of image features.
[0053] After S212, the CPU 11 proceeds to S207 to determine whether or not a character string that meets the condition specified in the sorting condition 53 has been extracted. If the grouping condition 52 is not specified and only the sorting condition 53 is specified, the CPU 11 may group by a unit of time longer than the unit of time specified as the sorting condition 53. For example, if a date is specified as the sorting condition 53, the CPU 11 may group by month. Also, an instruction not to group as the grouping condition 52 may be accepted, in which case the CPU 11 skips S211 and S212 and does not extract a feature.
[0054] After S208, or when it is determined that no character string satisfying the sorting condition 53 has been extracted (S207: NO), the CPU 11 determines whether or not the processing has been completed for all temporary files (S215). If it is determined that the processing has not been completed (S215: NO), the CPU 11 returns to S201, reads the next temporary file, and performs the same processing.
[0055] When it is determined that the processing has been completed for all temporary files (S215: YES), CPU 11 determines the placement information of each temporary file. First, CPU 11 assigns a page number indicating the order of each group (S221). Specifically, CPU 11 assigns page numbers in order so that temporary files having the same grouping information added to the header information have the same page number, and temporary files having different grouping information have different page numbers. For example, as shown in Fig. 6, CPU 11 assigns the page number "1" in the group order to all temporary files having "Company A, Month X" stored in the header information.
[0056] Moreover, if the grouping information is a common feature, the CPU 11 assigns a common page number. For example, the CPU 11 assigns a common page number to images to which information on a predetermined partial image is added as grouping information. In this case, S221 is an example of a classification process. In this embodiment, the CPU 11 allows a certain degree of error when the grouping information is document size information. For example, the CPU 11 assigns the same page number if the document size is within a predetermined range in both length and width. Furthermore, the CPU 11 assigns a common page number to all images to which no grouping information is added, the page number being different from that of the grouped images.
[0057] Furthermore, the CPU 11 determines the order of arrangement within the group based on the information on the sorting conditions of the header information (S222). For example, if the sorting in ascending order of the date is specified and P < Q < R, as shown in FIG. 6, for the first and fourth images in the same group, the first image with the date P stored as the sorting information is set as the front order, and the fourth image with the date R stored as the sorting information is set as the back order. After the CPU 11 determines the order of each image, it ends the grouping process and returns to the scanning process.
[0058] If neither the grouping condition 52 nor the sorting condition 53 is specified, the CPU 11 does not need to perform OCR. Also, the scanner driver 23 may be configured not to accept the grouping condition 52 or the sorting condition 53 as the Nin1 setting. In this case as well, there is no need to perform OCR. In the grouping process without performing OCR, after S201, the CPU 11 proceeds to S211 and extracts the feature amounts for the read temporary file. In this case, S202 to S208 of the grouping process may be omitted.
[0059] Returning to the description of the scanning process in FIG. 2. After the grouping process in S111 ends, the CPU 11 executes the arrangement process (S112). The arrangement process is a process of generating image data in which the images of each temporary file are collectively arranged based on the information on the groups and the order determined in the grouping process.
[0060] The procedure of the arrangement process will be described with reference to the flowchart in FIG. 7. In the arrangement process, first, the CPU 11 acquires the canvas size received on the Nin1 condition setting screen 50 (see FIG. 3) (S301). Then, based on the arrangement information given to each image, the CPU 11 generates image data grouped by page number.
[0061] To this end, CPU 11 first arranges the image with the first order in the group in the upper left position of the canvas (S302). Next, CPU 11 arranges the next image with the same page number after the previous image (S303). If a space larger than 0 is set in canvas size 51 of Nin1 condition setting screen 50, CPU 11 arranges the image with a space between it and the previous image. The process of arranging images in order in S303 is an example of a sorting process.
[0062] For example, in the example of the arrangement information shown in Fig. 6, the first and fourth images are arranged on the canvas of the first page, as shown in Fig. 8. Note that in Fig. 8, the fourth image is arranged to the right of the first image, that is, the arrangement is prioritized in the horizontal direction, but the arrangement may be prioritized in the vertical direction, and the arrangement direction may also be specified by the user.
[0063] The CPU 11 judges whether the image placed in S303 is within the canvas (S304). If it is judged that it is within the canvas (S304: YES), the CPU 11 judges whether there is a next image in the same group (S305). If it is judged that there is a next image (S305: YES), the CPU 11 proceeds to S303 and further places the next image.
[0064] If it is determined that the image arranged in S303 does not fit within the canvas (S304: NO), CPU 11 creates image data by collecting the images arranged on the canvas, excluding the image arranged in S303 (S311). CPU 11 then prepares the next canvas (S312), proceeds to S302, and arranges the image to be arranged in S303 in the upper left corner of the new canvas. If there are further images from the same group, CPU 11 arranges them continuously on the new canvas.
[0065] Also, when it is determined that there is no next image in the same group (S305: NO), CPU 11 creates image data by grouping the images arranged on the canvas, and creates an image file by combining the image data with the image data created in S311 (S315). S311 and S315 are examples of a generation process, and the image data generated in S311 or S315 is an example of the first image data or the second image data.
[0066] As a result, image data of a plurality of pages in which each image is arranged is created, for example, as shown in Fig. 8. The CPU 11 creates image files in formats such as PDF, JPEG, BMP, etc., and sets the grouping information of the group to the name of the created image file. The CPU 11 may collect the image data of each page into one image file for multiple pages, or may create an image file for each page to create multiple image files. Also, regarding the file configuration, a user's instruction may be accepted in the Nin1 setting.
[0067] Furthermore, the CPU 11 judges whether or not the creation of image files for all groups is completed (S316). If it is judged that the creation is not completed (S316: NO), the CPU 11 proceeds to S302, prepares the next canvas, and arranges the images of the next group.
[0068] If it is determined that the creation of image files has been completed for all groups (S316: YES), the CPU 11 ends the arrangement process and returns to the scan process. After the image files have been created by the arrangement process, the CPU 11 deletes all temporary files.
[0069] As described above, in the case of Nin1 setting where grouping condition 52 is not specified, CPU 11 sets the feature amount of each image as grouping information. Image data that compiles images categorized by feature amount is an example of categorized image data. For example, when document size information is used as the feature amount, image data that compiles documents of the same size is generated as shown in FIG. 9. In this way, there is a high possibility that the data will have less blank space compared to the example in FIG. 8. This is suitable for cases where you simply want to copy multiple documents together.
[0070] Returning to the description of the scan process in FIG. 2, after the arrangement process in S112 is completed or after S103, CPU 11 outputs the generated image data (S115) and ends the scan process. S115 is an example of output process. CPU 11 saves the file in a specified folder or prints the image data based on the user's designation. CPU 11 may also accept an instruction to divide files into folders based on part of the grouping conditions. CPU 11 may, for example, create a folder for each company name and save files that include the company name in the name in that folder.
[0071] In this embodiment, the process is described as being performed by the scanner driver 23 included in the PC 1, but the scanner 3 itself may have an Nin1 function, for example. That is, the scanner 3 may accept input of scan settings including Nin1 settings via its own user IF. When such a scanner 3 accepts a scan instruction via its own user IF, it reads a document to acquire an image, and generates image data based on the scan settings already accepted via its own user IF. If the accepted scan settings include the Nin1 setting, the scanner 3 generates image data that includes images obtained by reading a plurality of documents. In this case, the scanner 3 is an example of a device, and the process of reading a document to acquire an image is an example of an image acquisition process.
[0072] As described above in detail, according to the scan system 100 of this embodiment, the PC 1 generates image data by rearranging images including the extraction conditions selected as the grouping conditions 52 from among the multiple scan data acquired from the scanner 3, in the order specified by the sorting conditions 53, using the scanner driver 23. This eliminates the need for the user to rearrange the documents in advance.
[0073] Furthermore, in this embodiment, since the extraction conditions are accepted as text, it is easy for the user to set the extraction conditions. Also, the input text is registered in the company name DB 24 or person name DB 25 in the memory 12, and when setting the extraction conditions, the user can select from the registered text, which eliminates the need to input the same text when setting the same extraction conditions, and makes it easy to reuse the same extraction conditions.
[0074] Furthermore, in this embodiment, the orientations of a plurality of images are aligned, so the appearance of the generated image data is improved, and the user is saved the trouble of aligning the orientations of documents in advance.
[0075] Furthermore, in this embodiment, image data is also generated that compiles images from which no character strings matching the extraction conditions were extracted. In this case, feature amounts are extracted and the images are automatically classified based on the feature amounts, so that the scanned images are prevented from going to waste and the image data is easy for users to use. In particular, in this embodiment, information on the document size and information on partial images can be used as feature amounts. Since the document size and partial images tend to differ depending on the type of document, appropriate classification can be expected by classifying based on this information.
[0076] It should be noted that the present embodiment is merely an example and does not limit the present invention in any way. Therefore, the present invention can be modified and improved in various ways without departing from the spirit of the present invention. For example, the number of PCs and scanners constituting the scan system 100 is not limited to one, and may be multiple.
[0077] Also, in this embodiment, images are not reduced in size, but they may be reduced. For example, images may be reduced so that all images in the same group fit into a specified canvas size. Also, the canvas size is uniform across all pages, but it may be variable. In other words, images may not be reduced in size, but the canvas size may be enlarged so that all images in the same group fit into a single canvas.
[0078] In addition, in this embodiment, if a character string that meets the extraction condition of the grouping condition 52 is not extracted, a feature amount is extracted, but it is not necessary to extract a feature amount. For example, images from which a character string that meets the extraction condition is not extracted may be collected into one group to create a file. In this case, steps S211 and S212 of the grouping process may be omitted, and if the CPU 11 judges NO in S205, the CPU 11 proceeds to S207.
[0079] In addition, in this embodiment, both the document size and the partial image can be extracted as the feature amount, but only one of them may be used. For example, when only the partial image is used as the feature amount, it is not necessary to obtain the document size information, so there is no need to specify the auto size in the scan command.
[0080] In addition, in this embodiment, grouping and sorting are performed after all scan data is received, but reception of scan data and grouping processing may be performed in parallel. In other words, S201 to S208 and S211 to S212 of the grouping processing may be performed sequentially for the received scan data. Also, processing to align the orientation of the document may be performed before saving it as a temporary file.
[0081] Also, for example, the scanner 3 may not have the ADF 31. In that case, the user needs to set the documents one by one on the document platen and give a scan execution instruction, but there is no need to align the order or orientation of the documents. Also, the scanner 3 does not need to have an auto size function.
[0082] In addition, in any of the flowcharts disclosed in the embodiments, the order of execution of multiple processes in any of the steps can be arbitrarily changed or the processes can be executed in parallel as long as no contradiction occurs in the process content.
[0083] The processes disclosed in the embodiments may be executed by a single CPU, multiple CPUs, hardware such as ASIC, or a combination of these. The processes disclosed in the embodiments may be realized in various forms, such as a recording medium having a program for executing the processes recorded thereon, or a method. [Explanation of symbols]
[0084] 1 PC 3. Scanner 11 CPU 12. Memory 13 User Interface
Claims
1. The computer of the information processing device a first setting process for receiving an input of extraction conditions via a user interface of the information processing device and setting the received extraction conditions; a second setting process of receiving an input of a sorting condition via the user interface and setting the received sorting condition; and an acquisition process for acquiring images from an image reading device, in which the image reading device, upon receiving a scan command from the information processing device, reads the plurality of documents set one by one and transmits the read images of each of the documents to the information processing device. Further, when the image for each of the documents read by the image reading device is received by the computer in the acquisition process, a plurality of the images are acquired from the image reading device. an extraction process of extracting a first image that satisfies the extraction condition set in the first setting process from the received plurality of images; a sorting process of rearranging the first images extracted in the extraction process according to the sorting conditions set in the second setting process; a generating process for generating first image data that compiles the first images rearranged in the sorting process; Run the command, In the first setting process, a text input is accepted via the user interface, the input text is registered in a memory of the information processing device, and the text selected from the registered texts is set as the extraction condition; In the extraction process, for each of the received images, text contained in the image is acquired, and from the plurality of received images, an image in which the text acquired from the image includes the extraction condition set in the first setting process is extracted as the first image. A program characterized by:
2. The computer of the information processing device a first setting process for receiving an input of extraction conditions via a user interface of the information processing device and setting the received extraction conditions; a second setting process of receiving an input of a sorting condition via the user interface and setting the received sorting condition; and an acquisition process for acquiring images from an image reading device, in which the image reading device, upon receiving a scan command from the information processing device, reads the plurality of documents set one by one and transmits the read images of each of the documents to the information processing device. Further, when the image for each of the documents read by the image reading device is received by the computer in the acquisition process, a plurality of the images are acquired from the image reading device. an extraction process of extracting a first image that satisfies the extraction condition set in the first setting process from the received plurality of images; a sorting process of rearranging the first images extracted in the extraction process according to the sorting conditions set in the second setting process; a generating process for generating first image data that compiles the first images rearranged in the sorting process; Run the command, The computer further comprises: receiving an input of the extraction conditions via the user interface and executing a registration process for registering the received extraction conditions in a memory of the information processing device; In the first setting process, a selection of at least one of the extraction conditions registered in the registration process is accepted as an input of the extraction condition via the user interface, and the selected extraction condition is set. A program characterized by:
3. The computer of the information processing device a first setting process for receiving an input of extraction conditions via a user interface of the information processing device and setting the received extraction conditions; a second setting process of receiving an input of a sorting condition via the user interface and setting the received sorting condition; and an acquisition process for acquiring images from an image reading device, in which the image reading device, upon receiving a scan command from the information processing device, reads the plurality of documents set one by one and transmits the read images of each of the documents to the information processing device. Further, when the image for each of the documents read by the image reading device is received by the computer in the acquisition process, a plurality of the images are acquired from the image reading device. an extraction process of extracting a first image that satisfies the extraction condition set in the first setting process from the received plurality of images; a sorting process of rearranging the first images extracted in the extraction process according to the sorting conditions set in the second setting process; a generating process for generating first image data that compiles the first images rearranged in the sorting process; Run the command, When the image of each of the documents read by the image reading device in response to the scan command is received by the computer, Analyzing the orientation of each of the received images, and executing a rotation process to rotate the image so that the orientations of the received images are aligned in one direction; In the generation process, the first image data is generated by compiling the first images whose orientations have been aligned in the rotation process. A program characterized by:
4. The computer of the information processing device a first setting process for receiving an input of extraction conditions via a user interface of the information processing device and setting the received extraction conditions; a second setting process of receiving an input of a sorting condition via the user interface and setting the received sorting condition; and an acquisition process for acquiring images from an image reading device, in which the image reading device, upon receiving a scan command from the information processing device, reads the plurality of documents set one by one and transmits the read images of each of the documents to the information processing device. Further, when the image for each of the documents read by the image reading device is received by the computer in the acquisition process, a plurality of the images are acquired from the image reading device. an extraction process of extracting a first image that satisfies the extraction condition set in the first setting process from the received plurality of images; a sorting process of rearranging the first images extracted in the extraction process according to the sorting conditions set in the second setting process; a generating process for generating first image data that compiles the first images rearranged in the sorting process; Run the command, In the generation process, when a second image that was not extracted in the extraction process is included in the plurality of received images, second image data including the second image is generated separately from the first image data including the first images; Furthermore, when the computer has a plurality of the second images, A feature acquisition process for acquiring a feature amount of the second image for each of the second images; a classification process for classifying the second images according to a classification condition based on the feature amounts, using the feature amounts acquired in the feature acquisition process; In the generation process, the first image data is generated, and the second image data is also generated, the second image data being collected for each of the second images classified by the classification process. A program characterized by:
5. In the program according to claim 4, In the acquisition process, the image is acquired from the image reading device that has received the scan command specifying an auto size from the information processing device, the image being of a size corresponding to the size of the document; In the characteristic acquisition process, a size of the second image is acquired as the characteristic amount; In the classification process, the second images are classified according to a classification condition that a size of the second image is within a predetermined range. A program characterized by:
6. In the program according to claim 4, The feature acquisition process acquires information indicating an image feature of the second image as the feature amount; In the classification process, the second images are classified according to the classification condition based on the image features. A program characterized by:
7. The computer of the information processing device a first setting process for receiving an input of extraction conditions via a user interface of the information processing device and setting the received extraction conditions; a second setting process of receiving an input of a sorting condition via the user interface and setting the received sorting condition; and an acquisition process for acquiring images from an image reading device, in which the image reading device, upon receiving a scan command from the information processing device, reads the plurality of documents set one by one and transmits the read images of each of the documents to the information processing device. Further, when the image for each of the documents read by the image reading device is received by the computer in the acquisition process, a plurality of the images are acquired from the image reading device. an extraction process of extracting a first image that satisfies the extraction condition set in the first setting process from the received plurality of images; a sorting process of rearranging the first images extracted in the extraction process according to the sorting conditions set in the second setting process; a generating process for generating first image data that compiles the first images rearranged in the sorting process; Run the command, In the extraction process, extracting, from the received plurality of images, the first images that satisfy the extraction conditions set in the first setting process, and then storing, for each of the extracted first images, extraction information corresponding to the extraction conditions set in the first setting process in page information of the first images; In the generation process, the same page number is assigned to the first images stored in the page information with the same extraction information, and the first image data is generated by grouping the first images extracted in the extraction process by the page number. A program characterized by:
8. A user interface; A computer, A device comprising: The computer includes: a first setting process for receiving an input of extraction conditions via the user interface and setting the received extraction conditions; a second setting process of receiving an input of a sorting condition via the user interface and setting the received sorting condition; an image acquisition process for acquiring an image of each of a plurality of documents read one by one when a scan instruction is received via the user interface; an extraction process of extracting a first image that satisfies the extraction condition set in the first setting process from the plurality of images acquired in the image acquisition process; a sorting process of rearranging the first images extracted in the extraction process according to the sorting conditions set in the second setting process; a generating process for generating first image data that compiles the first images rearranged in the sorting process; Run In the first setting process, a text input is accepted via the user interface, and the input text is set as the extraction condition; In the extraction process, for each of the images acquired in the image acquisition process, text contained in the image is acquired, and from the multiple images acquired in the image acquisition process, an image in which the text acquired from the image includes the extraction condition set in the first setting process is extracted as the first image; the first setting process includes accepting an input of text via the user interface, registering the input text in a memory of the device, and setting the text selected from the registered texts as the extraction condition. A device characterized in that
9. A user interface; A computer, A device comprising: The computer includes: a first setting process for receiving an input of extraction conditions via the user interface and setting the received extraction conditions; a second setting process of receiving an input of a sorting condition via the user interface and setting the received sorting condition; an image acquisition process for acquiring an image of each of a plurality of documents read one by one when a scan instruction is received via the user interface; an extraction process of extracting a first image that satisfies the extraction condition set in the first setting process from the plurality of images acquired in the image acquisition process; a sorting process of rearranging the first images extracted in the extraction process according to the sorting conditions set in the second setting process; a generating process for generating first image data that compiles the first images rearranged in the sorting process; Run The computer further comprises: receiving an input of the extraction conditions via the user interface, and executing a registration process of registering the received extraction conditions in a memory of the device; In the first setting process, a selection of at least one of the extraction conditions registered in the registration process is accepted as an input of the extraction condition via the user interface, and the selected extraction condition is set. A device characterized in that
10. A user interface; A computer, A device comprising: The computer includes: a first setting process for receiving an input of extraction conditions via the user interface and setting the received extraction conditions; a second setting process of receiving an input of a sorting condition via the user interface and setting the received sorting condition; an image acquisition process for acquiring an image of each of a plurality of documents read one by one when a scan instruction is received via the user interface; an extraction process of extracting a first image that satisfies the extraction condition set in the first setting process from the plurality of images acquired in the image acquisition process; a sorting process of rearranging the first images extracted in the extraction process according to the sorting conditions set in the second setting process; a generating process for generating first image data that compiles the first images rearranged in the sorting process; Run Furthermore, when the image of each document is acquired in the image acquisition process in response to the scan instruction, the computer Analyzing the orientation of each of the acquired images, and performing a rotation process of rotating the images so that the orientations of the acquired images are aligned in one direction; In the generation process, the first image data is generated by compiling the first images whose orientations have been aligned in the rotation process. A device characterized in that
11. A user interface; A computer, A device comprising: The computer includes: a first setting process for receiving an input of extraction conditions via the user interface and setting the received extraction conditions; a second setting process of receiving an input of a sorting condition via the user interface and setting the received sorting condition; an image acquisition process for acquiring an image of each of a plurality of documents read one by one when a scan instruction is received via the user interface; an extraction process of extracting a first image that satisfies the extraction condition set in the first setting process from the plurality of images acquired in the image acquisition process; a sorting process of rearranging the first images extracted in the extraction process according to the sorting conditions set in the second setting process; a generating process for generating first image data that compiles the first images rearranged in the sorting process; Run In the generation process, when a second image that was not extracted in the extraction process is included in the plurality of images acquired in the image acquisition process, second image data including the second image is generated separately from the first image data including the first images; Furthermore, when there are a plurality of the second images, the computer A feature acquisition process for acquiring a feature amount of the second image for each of the second images; a classification process for classifying the second images according to a classification condition based on the feature amount, using the feature amount acquired in the feature acquisition process; In the generation process, the first image data is generated, and the second image data is also generated, the second image data being grouped for each of the second images classified by the classification process. A device characterized in that
12. A user interface; A computer, A device comprising: The computer includes: a first setting process for receiving an input of extraction conditions via the user interface and setting the received extraction conditions; a second setting process of receiving an input of a sorting condition via the user interface and setting the received sorting condition; an image acquisition process for acquiring an image of each of a plurality of documents read one by one when a scan instruction is received via the user interface; an extraction process of extracting a first image that satisfies the extraction condition set in the first setting process from the plurality of images acquired in the image acquisition process; a sorting process of rearranging the first images extracted in the extraction process according to the sorting conditions set in the second setting process; a generating process for generating first image data that compiles the first images rearranged in the sorting process; Run In the extraction process, extracting the first images that satisfy the extraction conditions set in the first setting process from the plurality of images acquired in the image acquisition process, and then storing extraction information corresponding to the extraction conditions set in the first setting process for each of the extracted first images in page information of the first images; In the generation process, the same page number is assigned to the first images stored in the page information with the same extraction information, and the first image data is generated by grouping the first images extracted in the extraction process by the page number. A device characterized in that
Citation Information
Patent Citations
Image forming / Storing device
JP1994314303A
Image forming device
JP2005020419A
Device for storing and displaying image
JP2008131218A
Image processing apparatus
JP2009296409A
Image processing apparatus and program
JP2017068303A
