Information processing device, control method of information processing device, and program
The information processing device enhances keyword and personal information detection in documents with complex layouts by extracting and combining character strings in multiple orders, improving detection accuracy and preventing information leakage.
Patent Information
- Application Number
- JP2023034186
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional keyword detection methods in documents with complex area structures often fail to accurately detect confidential information due to incorrect determination of character string reading orders.
An information processing device that extracts character string areas, recognizes characters, combines them in multiple orders based on their arrangement, and determines the presence of specific patterns within these combinations to enhance detection accuracy.
This approach effectively suppresses the failure to detect keywords and personal information patterns in documents with complicated layouts, ensuring high-accuracy detection of confidential documents and preventing information leakage.
Smart Images

Figure 2024126055000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, a control method for an information processing device, and a program. [Background technology]
[0002] With the growing social interest in information security, there is a demand for technology that can automatically detect with high accuracy whether or not confidential information is present in a large number of documents. In particular, there is a reality that confidential information leakage caused by printing is not monitored thoroughly, and there is a demand for technology that can monitor documents to be printed. Here, confidential information refers to information that must be kept confidential, such as one's own confidential information, confidential information of other companies, or personal information. For example, Patent Document 1 discloses such an automatic detection technology.
[0003] In the confidential document detection system of Patent Document 1, a technique is proposed for determining a confidential information category based on the correspondence between keywords and the areas in which they are detected. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2011-221894 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, the conventional keyword detection methods described above uniquely determined the order in which character strings are combined (reading order) within a document. Therefore, in a document with a complex region structure, if the determined reading order was incorrect, there was a possibility that keywords, etc., would be missed.
[0006] The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a mechanism that can reduce the oversight of detection of patterns such as keywords even in document image data with a complex region structure. [Means for solving the problem]
[0007] The present invention is an information processing device which detects a specific pattern from a character string in image data, and is characterized by having an extraction means which extracts a character string area which is an area of a character string in the image data, a recognition means which recognizes a character string from the extracted character string area, a combination means which combines the character strings in a plurality of combination orders based on an arrangement of the character string areas of the recognized character strings, and a judgment means which judges that the specific pattern has been detected when the specific pattern is included in at least one of the character strings combined in the plurality of combination orders. Effect of the Invention
[0008] According to the present invention, even in the case of document image data having a complex region configuration, it is possible to prevent missed detection of patterns such as keywords, etc. Therefore, confidential documents can be detected with high accuracy to prevent information leaks. [Brief description of the drawings]
[0009] [Figure 1] 1 is a diagram illustrating an example of the configuration of a confidential document detection system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of a print log monitoring server according to the embodiment. [Diagram 3] FIG. 2 is a diagram illustrating an example of a software configuration of the confidential document detection system according to the present embodiment. [Figure 4] 4 is a flowchart showing the overall process executed by the print log monitoring server of the present embodiment. [Diagram 5] FIG. 11 is a diagram showing an example of a character string block extraction result according to the embodiment. [Figure 6] 6 is a flowchart illustrating details of a character string block acquisition process according to the first embodiment. [Figure 7] 5 is a flowchart illustrating confidential information detection processing according to the first embodiment. [Figure 8] 10 is a flowchart illustrating a confidential information detection process according to the second embodiment. [Figure 9] 10 is a flowchart illustrating a joint portion search process according to the second embodiment. [Figure 10] FIG. 4 is a diagram showing an example of a UI screen displayed in the embodiment. [Figure 11] 13A to 13C are diagrams showing examples of results of grouping in multiple directions in the character grouping process according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. [First embodiment] In this embodiment, a confidential document detection system that monitors whether confidential information has been printed will be described as an example of the document detection system.
[0011] FIG. 1 is a diagram showing an example of the configuration of a confidential document detection system according to an embodiment of the present invention. The system of this embodiment includes a printer 101, a print log monitoring server 102, a user terminal 103, and an administrator terminal 104. These devices and servers are connected to each other via a network 105. As an example of this network, the Internet, a LAN (Local Area Network), or the like is applied.
[0012] The user terminal 103 is a terminal device having an application, a printer driver, etc., and into which a user inputs a print instruction for document data. Examples of the user terminal 103 include a general-purpose computer such as a personal computer (PC), a smartphone, a tablet terminal, or other portable terminal device.
[0013] When a print instruction is input on the user terminal 103 for document data edited by an application, the document data is converted by the printer driver into print data such as PDL (Page Description Language) data that can be interpreted by the printer 101. The print data converted here is transmitted to the printer 101 and the print log monitoring server 102.
[0014] The print data includes print attributes such as the destination printer name, print job name, identification information of the user terminal 103 that made the print request (host name or IP address, etc.), the user name of the user that made the print request, a timestamp, print setting information (2-in-1, double-sided, enlarged, reduced, etc.), and the number of copies to be printed.
[0015] The print log monitoring server 102 generates and analyzes print image data from the received print data, and determines whether or not confidential information may have been printed. The print log monitoring server 102 is communicably connected to various databases via a dedicated network 110. In this embodiment, an example is shown in which the print log monitoring server 102 is connected to a keyword database 111, a personal information rule database 112, and a print log database 113, but the present invention is not limited to this. For example, the print log monitoring server 102 may be configured to include all or at least any of the functions of the keyword database 111, the personal information rule database 112, and the print log database 113 inside.
[0016] In this embodiment, predefined keywords for detecting confidential information (i.e., keywords corresponding to confidential information) are registered in the keyword database 111. Examples of keywords include general confidential keywords such as "confidential", "not for external use", and "confidential", and unique keywords registered by an administrator such as document titles and project names. The personal information rule database 112 stores rules for typical digit designation patterns for telephone numbers and My Numbers that may be confidential information, as well as typical information such as names and addresses. The print log database 113 registers print data including print attributes, detection results of confidential information, and the like.
[0017] If the print log monitoring server 102 determines that confidential information is included in the print image data, it sends notification information (email, etc.) to a terminal device (in this embodiment, the administrator terminal 104) that has been pre-registered as a notification destination, indicating that confidential information may have been printed. The print log monitoring server 102 is realized, for example, by using a general-purpose computer such as a server computer, a personal computer, etc. The print log monitoring server 102 can also be realized by using a cloud server provided by a cloud service.
[0018] The administrator terminal 104 is a terminal operated by an administrator (e.g., a security administrator) who confirms that a confidential document has been printed. The administrator terminal 104 is not limited to a specific one as long as it can receive notification information from the print log monitoring server 102. As an example, the administrator terminal 104 may be a general-purpose computer such as a personal computer, or a portable terminal device such as a smartphone or a tablet terminal.
[0019] FIG. 2 is a diagram illustrating an example of a hardware configuration of the print log monitoring server 102 of the present embodiment. As shown in FIG. 2, the print log monitoring server 102 includes a control unit 220 , a communication unit 225 , a display unit 226 , an operation unit 227 , and a storage unit 228 . The control unit 220 includes a CPU 221, a ROM 222, a RAM 223, and an input / output interface (I / O) 224, and these components are connected to each other via a bus.
[0020] The CPU 221 loads programs stored in the ROM 222 or a storage unit 228 (described later) into the RAM 223 as necessary and executes the programs, thereby implementing various functions of the print log monitoring server 102. A communication unit 225, a display unit 226, an operation unit 227, and a storage unit 228 are connected to the I / O 224. Each of these functional units is capable of communicating with the CPU 221 via the I / O 224.
[0021] The storage unit 228 may, for example, be a hard disk drive (HDD), a solid state drive (SSD), a flash memory, etc. In the storage unit 228, an information processing program 229 is stored. The communication unit 225 is connected to a network, and transmits and receives information to and from each device via the network.
[0022] As an example, a liquid crystal display (LCD) or an organic EL (Electro Luminescence) display is used as the display unit 226. The display unit 226 displays information such as a print log stored in various databases so that the administrator can check it. As an example, the operation unit 227 is implemented by an operation input device such as a keyword or a mouse. The operation unit 227 accepts various instructions from the administrator to the print log monitoring server 102. The display unit 226 and the operation unit 227 may be integrated into one device such as a touch panel. The administrator may check and operate the information as described above using the display unit 226 and the operation unit 227, or may check and operate the information via the communication unit 225 from a web browser or the like running on the administrator terminal 104. The user terminal 103 and the administrator terminal 104 can also be realized with the same configuration as that shown in FIG.
[0023] FIG. 3 is a diagram illustrating an example of a software configuration of the confidential document detection system according to the present embodiment. The information processing program 229 corresponds to a program for causing the print log monitoring server 102 to function as a main processing unit 300, a print image generating unit 301, an image analyzing unit 302, a confidential document determining unit 303, a result notifying unit 304, a print log managing unit 305, and a display processing unit 310. These functions are realized by the CPU 221 loading the information processing program 229 into the RAM 223 and executing it.
[0024] The main processing unit 300 generates and analyzes print image data from the print data using each of the units 301 to 305, and notifies the notification destination of the possibility that confidential information has been printed. The print image generation unit 301 performs rendering processing on the print data sent from the user terminal 103, and generates image data to be printed (print image data). In this embodiment, the print image data is generated by the print log monitoring server 102, but this is not limited to this. It may also be configured to acquire print image data generated by a printer driver or print image data generated by the printer 101.
[0025] The image analysis unit 302 extracts character string blocks such as character string area information and text information from the print image data. The confidential document determination unit 303 determines whether or not confidential information is included in the print image data based on the contents of the keyword database 111 and the personal information rule database 112.
[0026] When the confidential document determination unit 303 determines that the print image data contains confidential information, the result notification unit 304 transmits notification information (such as an e-mail) indicating that confidential information may have been printed to a previously registered notification destination (the administrator's e-mail address). Note that the notification may be transmitted to a terminal device (such as the administrator's terminal 104) previously registered as a notification destination.
[0027] The print log management unit 305 manages the print data received from the user terminal 103 , the determination information by the confidential document determination unit 303 , the notification information by the result notification unit 304 , and the like in the print log database 113 .
[0028] The display processing unit 310 displays a UI (User Interface) screen that allows the administrator to check the detected confidential documents, etc. The administrator uses the UI screen displayed here to check the notification information received from the print log monitoring server 102 and performs the task of checking the possibility that confidential documents have been printed. Note that, in addition to the function of displaying the UI screen on the display unit 226, the display processing unit 310 may also have a function of displaying the UI screen on a web browser operating on the administrator terminal 104 in response to access from the web browser. 10 is a diagram showing an example of a UI screen displayed by the display processing unit 310. Details of the UI screen will be described later.
[0029] <Main processing flow> 4 is a flowchart showing an example of the overall processing executed by the main processing unit 300 of the print log monitoring server 102 of this embodiment. That is, the processing is executed by a function realized by the CPU 221 loading the information processing program 229 into the RAM 223 and executing it. This processing starts when the print log monitoring server 102 receives print data from the user terminal 103.
[0030] In S401, the main processing unit 300 performs a print image generation process using the print image generation unit 301. The print image generation unit 301 performs a rendering process on the print data received from the user terminal 103, and generates image data to be printed (print image data).
[0031] In S402, the main processing unit 300 uses the image analysis unit 302 to perform extraction processing of character string blocks contained in the print image generated in S401 above. The character string blocks have character string area information (position within the image) and text information, and in this embodiment are obtained by executing OCR (Optical Character Recognition) processing. Here, the character string blocks will be described with reference to FIG. 5.
[0032] FIG. 5 is a diagram showing an example of the result of character string block extraction in S402 of FIG. FIG. 5A corresponds to the print image data 500 generated in S401 of FIG. Fig. 5(b) corresponds to the result of obtaining character string blocks from print image data 500. In Fig. 5(b), each character area (510 to 535, etc.) indicated by dotted lines is an extracted character string block. The character string block extraction process in S402 will be described in detail later with reference to FIG.
[0033] Next, in S403, the main processing unit 300 performs confidential information detection processing using the confidential document determination unit 303. The confidential information detection processing is processing for detecting whether or not confidential information is included in the print image data by comparing information on the character string extracted in S402 with the contents of the keyword database 111 and the personal information rule database 112. Details of the confidential information detection processing in S403 will be described later with reference to FIG.
[0034] Next, in S404, the main processing unit 300 determines whether or not confidential information was detected in the above S403. If confidential information was detected here (Yes in S404), the main processing unit 300 advances the process to S405.
[0035] In S405, the main processing unit 300 uses the result notification unit 304 to notify the administrator terminal 104 of information that confidential information was detected in S403, and proceeds to the process of S406. Note that, in this embodiment, the notification is performed by email, and is sent with a link that enables the administrator to view and confirm the print image, the confidential information detection result, etc., but is not limited to this.
[0036] On the other hand, if no confidential information is detected in S403 (No in S404), the main processing unit 300 advances the process to S406.
[0037] In S406, the main processing unit 300 uses the print log management unit 305 to record the print log in the print log database 113, and ends the processing of this flowchart. The print log includes the print data received from the user terminal 103, the print image data generated in S401, the confidential information detection result in S403, the notification information in S405, etc. In this embodiment, the various information in the print log database 113 can be viewed, displayed, and edited by the administrator.
[0038] <Details of the string block extraction process (S402)> 6 is a flowchart for explaining details of the character string block acquisition process (S402) executed by the image analysis unit 302 in the first embodiment. This process starts when the print image data generated in S401 of FIG.
[0039] In S601, the image analysis unit 302 performs region analysis for each attribute of an object in the print image data. The image analysis unit 302 first performs contour tracing on the print image data binarized to black and white, and extracts a cluster of pixels surrounded by a black pixel contour. Then, for a cluster of black pixels whose area is larger than a predetermined area, the image analysis unit 302 also performs contour tracing on the white pixels inside the cluster of black pixels to extract a cluster of white pixels, and further recursively extracts a cluster of black pixels from inside the cluster of white pixels whose area is equal to or smaller than a certain area. The image analysis unit 302 classifies the clusters of black pixels thus obtained by size and shape, and classifies them into regions with different attributes. For example, a character region (CHARACTER) is extracted as a pixel cluster equivalent to a character if the aspect ratio is close to 1 and the size is within a certain range. In addition to the character region, flat pixel clusters are extracted as ruled lines (LINE), regions with scattered pixel clusters of irregular shapes are extracted as photo regions (PHOTO), and other pixel clusters of arbitrary shapes are extracted as picture regions (PICTURE).
[0040] Next, in S602, the image analysis unit 302 combines each character extracted as a character area (CHARACTER) in S601 with adjacent characters, and groups them as a character string area (TEXT). In this embodiment, adjacent character strings are grouped under conditions such as the character size being approximately the same, being aligned on the same line, not straddling a ruled line, etc.
[0041] Next, in S603, the image analysis unit 302 executes OCR processing on the character string area (TEXT) grouped in S602 above, and ends the processing of this flowchart. The text information obtained by this OCR process is linked to character string area information and stored as a character string block for use in subsequent processes. The method of extracting the character string block is not limited to the method of this embodiment. For example, if the print data electronically holds text information from a source application (such as a word processor software, spreadsheet software, or presentation software), the character string block may be created based on that information.
[0042] <Details of confidential information detection process (S403)> 7 is a flowchart for explaining the confidential information detection process (S403) executed by the confidential document determination unit 303 in the first embodiment. This process starts by inputting information (area and text) of each character string block in the print image acquired in S402 to the confidential document determination unit 303.
[0043] In S701, the confidential document determination unit 303 acquires a detection pattern of a character string to be detected. In this embodiment, a predefined keyword is acquired from the keyword database 111, and a character string pattern of personal information is acquired from the personal information rule database 112. For each of the detection patterns acquired in this process, the process from S702 onwards is executed.
[0044] Next, in S702, the confidential document determination unit 303 combines each of the character string blocks in a number of possible reading order candidates. The character string blocks (candidate blocks) to be combined are predefined in terms of an arrangement pattern to be combined, and character string blocks that match the arrangement pattern to be combined are extracted. In this embodiment, the candidate blocks to be connected to the "previous" are the blocks above and to the left of the target, and if there is a column adjacent to the left, the bottom block of that column. A column indicates an arrangement of characters or the like divided into two or more columns. As for candidate blocks to be connected "after," the blocks below and to the right of the target, and if there is an adjacent column to the right, the topmost block of that column, are candidates. Furthermore, if the document is multiple pages, character string blocks on the previous and next pages are also considered as candidates. In this embodiment, the candidate blocks are narrowed down by adding conditions such as that the character size is approximately the same as that of the target block and that the block does not straddle a ruled line.
[0045] Some examples of bonds (shown by dashed lines) will be specifically described with reference to FIG. 5(b). Character string block 513 has no candidate blocks connected “before” it (except for 510 because there is a ruled line above it), and the candidate blocks “after” it are 514 and 516 . The candidate blocks connected "before" character string block 516 are 513 and 515, and there is no candidate block "after" character string block 516 (except for 517, which has a ruled line below it). The candidate blocks “after” string block 520 are 521, 522, and 523. The candidate blocks connected “before” the character string block 531 are 530, 533, and 535. The extraction conditions for the candidate blocks in this embodiment are merely examples, and other conditions may be applied. Also, the number of candidate blocks for each character string block may be limited so as to prevent the number of candidate blocks from becoming too large.
[0046] Furthermore, in step S702, the confidential document determination unit 303 combines the texts of multiple candidate blocks for each character string block to obtain the combined result (combined text). In this way, in step S703, it is determined whether or not all combined texts contain a detection pattern. An example of a combined result in printed image 500 of FIG. Examples of combined results include, for example, "ABC Project 2022 / 09 / 16", "ABC Project", and "XYZ Corporation". Also, "X Contact 090-1234-5678 XXXXXX", "X Contact 090- AXXXX", and "X Contact 090- BXXXXXXXXXXX". Also, "XXXX Hold XXXXXX Do Not Jump Out XXXXXXXXX", "XXXXXXXXXXX Do Not Take Out XXXXXXXXX", and "XXXX Do Not Take Out XXXXXXXXX". In this way, combined results are obtained in multiple combinations without determining the reading order.
[0047] Next, in S703, the confidential document determination unit 303 determines whether any of the combined results (combined text) combined in S702 includes a detection pattern. If there is no detection pattern in any of the combined results (No in S703), the confidential document determination unit 303 ends the process of this flowchart. In this case, there is no detection result. On the other hand, if the detection pattern is found in any of the combined results (Yes in S703), the confidential document determination unit 303 advances the process to S704.
[0048] In the example of the print image shown in FIG. 5, the combined result includes detection patterns such as keywords and personal information phone number patterns, so a determination of Yes is made in S703 of FIG. In this embodiment, an example will be described in which the keywords are "ABC Project" and "Prohibited to take out", and the personal information is defined as a phone number pattern by the number of digits in the numeric string. In this example, the keyword "ABC Project" is contained in the text "ABC Project" formed by combining string blocks 513 and 516. The keyword "Prohibited to take out" is contained in the text "XXXXXXXX Prohibited to take out XXXXXXX" formed by combining string blocks 530 and 531. A phone number pattern is also detected in the text "X Contact Person 090-1234-5678XXXXX" formed by combining string blocks 520 and 522.
[0049] In S704, the confidential document determination unit 303 acquires information on the character string block including the detection pattern found in S703 as the detection result, and ends the process of this flowchart. Note that, if a detection result exists, it is determined in S404 of FIG. 4 that confidential information has been detected (Yes in S404).
[0050] <ui> FIG. 10 is a diagram showing an example of a UI displayed by the display processing unit 310 in this embodiment, and a print log confirmation screen 1000 is shown here as an example. The print log confirmation screen 1000 includes a filter designation area 1010 , a print log list area 1020 , a preview area 1030 , and a print log information area 1040 .
[0051] On the print log confirmation screen 1000, the administrator checks the confidential information detected in the print log and performs the task of checking the possibility that a confidential document has been printed. The filter designation area 1010 is a designation area for filtering the print logs to be displayed in a list based on print attribute information. In this embodiment, the attributes to be filtered are "user name", "destination", and "detection or not", but are not limited to these. Other attributes may be designated, or filtering may not be performed.
[0052] The print log list area 1020 displays a list of print logs in reverse chronological order based on the filter results specified in the filter specification area 1010. If no attribute to filter is specified, all print logs are displayed. In this embodiment, the contents displayed in the list are the print job name, transmission date and time, and detection results, and a mark (1099) is displayed when confidential information is detected in S403 of FIG. 4, but the detection results are not limited to this. In this embodiment, a details button 1021 is displayed to the right of the list, and when the administrator selects the details button 1021, the details of the corresponding print log can be confirmed in a preview area 1030 and a print log information area 1040.
[0053] A preview area 1030 displays a preview of a print image of the print log selected in the print log list area 1020. In this embodiment, character areas 1031, 1032, 1033, and 1034 in which confidential information is detected are highlighted.
[0054] Pop-up area 1050 pops up on the front of print log confirmation screen 1000 when the mouse is placed over a highlighted character string area (here, "No taking out" 1033). Pop-up area 1050 displays information on the detected confidential information and text blocks. By displaying pop-up area 1050, the administrator can easily check which keywords and personal information patterns have been detected, even if the confidential information area is far away.
[0055] The print log information area 1040 displays detailed information about the print log selected in the print log list area 1020 .
[0056] In this embodiment, a link that can display the print log confirmation screen 1000 is attached to the notification information sent from the print log monitoring server 102, allowing the administrator to display and operate the print log confirmation screen 1000 via the administrator terminal 104.
[0057] As described above, in the first embodiment, character string blocks included in document image data are combined in multiple combination orders (reading orders), and specific patterns such as keywords and personal information patterns are detected from the combined text of the combined character string blocks. This makes it possible to reduce missed detections even if character strings corresponding to specific patterns are separated in document image data with complex area configurations. This makes it possible to accurately detect confidential documents.
[0058] In the confidential document detection system shown in this embodiment, an example is shown in which the administrator only checks the print results, but the monitoring function by the administrator is not limited to this. For example, the print log monitoring server 102 may be provided with a separate function for restricting print instructions to the printer, so that printing can be stopped until approval of the administrator as to whether or not printing is allowed. Also, for example, when an administrator determines that a document detected as a confidential document does not pose a risk of information leakage, the administrator may be able to perform an operation to rewrite the information in the print log database 113. For example, an operation button or the like for confirming "no risk of information leakage" may be provided in Fig. 10, and when the administrator presses this button, the print log management unit 305 may perform a process of rewriting the corresponding print log.
[0059] Second Embodiment In the above first embodiment, a method was described in which a combined text is created by combining multiple combination candidate texts for each character string block, and keyword detection and personal information detection are performed using the combined text. However, performing detection processing on all multiple combined texts may result in a large amount of processing and a deterioration in performance. Therefore, in this embodiment, an example is described in which a combination candidate is searched for only when part of a keyword is found in keyword detection. Note that only differences from the first embodiment are described below.
[0060] <Details of confidential information detection process (S403)> 8 is a flowchart for explaining the confidential information detection process (S403) executed by the confidential document determination unit 303 in the second embodiment. This process starts by inputting information (area and text) of each character string block in the print image data acquired in S402 to the confidential document determination unit 303.
[0061] In S801, the confidential document determination unit 303 acquires a keyword to be detected. In this embodiment, the confidential document determination unit 303 acquires a plurality of keywords predefined in the keyword database 111, and controls to execute the processes from S802 onward for each keyword. Examples of keywords include general confidential keywords such as "confidential" and "prohibited from taking outside the company", and unique keywords registered by an administrator such as a document title or a project name.
[0062] Next, in S802, the confidential document determination unit 303 determines whether the keyword is included in any of the text of each character string block. If the keyword is found in any of the text of each character string block (Yes in S802), the confidential document determination unit 303 proceeds to S810. In this case, in S810, the confidential document determination unit 303 obtains information on the character string block containing the keyword found in S802 as a detection result, and ends the processing of this flowchart. Note that if a detection result exists, it is determined in S404 of FIG. 4 that confidential information has been detected (Yes in S404).
[0063] On the other hand, if the keyword is not found in any of the text of the character string blocks (No in S802), the confidential document determination unit 303 advances the process to S803.
[0064] In S803, the confidential document determination unit 303 sets an initial value of a division position for dividing and searching a keyword. In this embodiment, the keyword is divided into a first half before the i-th character and a second half after the i+1th character. First, in S803, the initial value of the division position i is set to i=1, and the keyword is divided into a first half before the 1st character and a second half after the 2nd character. Thereafter, the division position i is shifted by one character at a time (S811) and the processes of S804 to S807 are repeated until the keyword is found. A detailed description is given below.
[0065] In S804, the confidential document determination unit 303 judges whether the division position i has reached the end of the keyword. If the division position i has not yet reached the end (if i<keyword length-1 is Yes), the confidential document determination unit 303 advances the process to S805.
[0066] In S805, the confidential document determination unit 303 divides the keyword into a first half portion before the i-th character and a second half portion after the i+1-th character. Next, in S806, the confidential document determination unit 303 compares the character string lengths of the first and second parts divided in S805 above, and sets the longer character string length as the priority word and the shorter character string length as the remaining word. If the character string lengths are equal, the first part is set as the priority word and the second part is set as the remaining word.
[0067] Next, in S807, the confidential document determination unit 303 determines whether the priority word is included in any of the texts of each character string block. If the priority word is not found in any of the texts (No in S807), the confidential document determination unit 303 advances the process to S811. In S811, the confidential document determination unit 303 shifts the division position i by one character, and returns the process to S804. In addition, in the above S804, if the confidential document determination unit 303 determines that the end has been reached (if i<keyword length-1 is No), the process of this flowchart ends. In this case, there is no detection result.
[0068] Furthermore, in the above S807, if the priority word is found in the text of any of the blocks (Yes in S807), the confidential document determination unit 303 advances the process to S808. In S808, the confidential document determination unit 303 searches for a string block including the remaining word among the string blocks combined with the string block in which the priority word was found in S807. The string block combined with the string block in which the priority word was found is likely to include the remaining word. The details of the combined block search process (S808) will be described later with reference to FIG. 9.
[0069] Next, in S809, the confidential document determination unit 303 judges whether or not a character string block including the remaining word has been obtained as a combined result in S808. If a combined result (character string block including the remaining word) has not been obtained (No in S809), the confidential document determination unit 303 ends the process of this flowchart. In this case, no detection result exists.
[0070] On the other hand, if a combined result (a character string block including the remaining word) is obtained (Yes in S809), the confidential document determination unit 303 advances the process to S810. In this case, in S810, the confidential document determination unit 303 obtains information on the character string block including the priority word and the remaining word found in S807 to S809 as the detection result, and ends the process of this flowchart. Note that if a detection result exists, it is determined in S404 of FIG. 4 that confidential information has been detected (Yes in S404).
[0071] <Details of the join block search process (S808)> 9 is a flowchart for explaining the combination search process (S808) executed by the confidential document determination unit 303 in the second embodiment. This process is started when a priority word is found in the text of any of the character string blocks (Yes in S807 in FIG. 8). Note that a character string block in which a priority word is found is referred to as a priority word detection block, and information contained in the priority word detection block is referred to as a priority word detection area and priority word detection text.
[0072] In S901, the confidential document determination unit 303 determines whether the priority word determined to have been detected in S807 of Fig. 8 is the first half or the second half of the divided keyword. The priority word and the remaining words have already been set by comparing the character lengths in S806 of Fig. 8, and are necessary to obtain combination candidates for character string blocks in the processes following this flowchart. Here, if the priority word is the first half of the divided keyword, the confidential document determination unit 303 advances the process to S902.
[0073] In S902, the confidential document determination unit 303 determines whether or not the priority word (here, the first half of a keyword) is present at the "end" of the priority word detection text (text in which the priority word is detected). If the priority word is not present at the "end" of the priority word detection text (No in S902), the confidential document determination unit 303 ends the processing of this flowchart. In this case, no combined result exists.
[0074] On the other hand, if the priority word is present at the "end" of the priority word detection text (Yes in S902), the confidential document determination unit 303 advances the process to S903.
[0075] In S903, the confidential document determination unit 303 acquires multiple string blocks that are candidates for combining after the priority word detection block. When a horizontally written character block is extracted in the string block extraction process (S402 in FIG. 4), the combining candidates following after the priority word detection block are string blocks located in the lower or right area. An example is shown using the string block extraction results of the printed image in FIG. 5. The string block 513 is a priority word detection block that contains the first half of the keyword "ABC project". The combining candidates following after 513 are 514 and 516. Considering the column layout, 511 in the upper right is also a combining candidate, but in this embodiment, combining candidates that cross ruled lines are excluded.
[0076] Next, in S904, the confidential document determination unit 303 judges whether or not there is a remaining word at the "head" of the text of any of the combination candidates acquired in S903. In this embodiment, by checking from the "head" of the text of the combination candidate to the character string length of the remaining word, there is no need to check the entire text, and performance degradation is suppressed. If there are no remaining words at the "head" of any of the combination candidates (No in S904), the confidential document determination unit 303 ends the process of this flowchart. In this case, there is no combination result.
[0077] On the other hand, if there is a remaining word at the "beginning" of the text of any of the combination candidates (Yes in S904), the confidential document determination unit 303 proceeds to S908. In the example of combination candidates 514 and 516 following "after" the priority word detection block 513 in Fig. 5, there is a remaining word at the "beginning" of 516, so the determination is Yes. In this case, in S908, the confidential document determination unit 303 acquires, as the combination result, information on the character string block in which the remaining word was found in S904 (remaining word detection block), and ends the processing of this flowchart.
[0078] Also, in the above S901, if the confidential document determination unit 303 determines that the priority word is the latter half of the divided keyword, the process proceeds to S906. In S905, the confidential document determination unit 303 judges whether or not the priority word (here, the latter half of the keyword) is present at the "beginning" of the priority word detection text. If the priority word is not present at the "beginning" of the priority word detection text (No in S905), the confidential document determination unit 303 ends the processing of this flowchart. In this case, no combined result exists.
[0079] On the other hand, if the priority word is present at the "head" of the priority word detection text (Yes in S905), the confidential document determination unit 303 advances the process to S906.
[0080] In S906, the confidential document determination unit 303 obtains multiple string blocks that are candidates for combining "before" the priority word detection block. When a horizontally written character block is extracted in the string block extraction process (S402 in FIG. 4), the combining candidate following "before" the priority word detection block is the string block located in the upper or left area. An example is shown using the string block extraction results of the printed image in FIG. 5. String block 521 is a priority word detection block that contains the first half "export prohibited" of the keyword "takeout prohibited". The combining candidates following "before" 531 are 530, 533, and 535.
[0081] Next, in S907, the confidential document determination unit 303 judges whether or not there is a remaining word at the "end" of the text of any of the combination candidates acquired in S906. In this embodiment, by checking from the "end" of the text of the combination candidate to the character string length of the remaining word, there is no need to check the entire text, and performance degradation is suppressed. If there are no remaining words at the "end" of any of the combination candidates (No in S907), the confidential document determination unit 303 ends the process of this flowchart. In this case, there is no combination result.
[0082] On the other hand, if there is a remaining word at the "end" of the text of any of the combination candidates (Yes in S907), the confidential document determination unit 303 proceeds to S908. In the example of combination candidates 530, 533, and 535 that follow "before" the priority word detection block 531 in FIG. 5, there is a remaining word at the "end" of 530, so the determination is Yes. In this case, in S908, the confidential document determination unit 303 acquires, as the combination result, information on the character string block in which the remaining word was found in S907 (remaining word detection block), and ends the processing of this flowchart.
[0083] As described above, in the second embodiment, when a part of a keyword is found in keyword detection, a combination candidate is searched for. This makes it possible to perform efficient and accurate keyword detection while suppressing performance degradation, even if a character string related to confidential information is separated in a document with a complex region structure.
[0084] In the above description, an example has been described in which a combination candidate is searched for when a part of a keyword is found in keyword detection. However, similar to keyword detection, in personal information pattern detection, a personal information pattern may also be divided, and when a divided pattern (part of a personal information pattern) is found, a combination candidate may be searched for. This makes it possible to perform efficient and accurate detection while suppressing performance degradation in detection of specific patterns including not only keyword detection but also personal information pattern detection.
[0085] Third Embodiment In the first and second embodiments, a document detection method was described for the case where the writing direction of character strings in a printed image is one direction (horizontal writing in the example of FIG. 5). However, when character strings in multiple writing directions are mixed in a printed image, if character string extraction is limited to one direction, confidential documents may not be detected. Therefore, in the third embodiment, an example is described in which characters in a printed image are grouped according to multiple writing directions and character string extraction is performed. Note that only the differences from the first and second embodiments are described below.
[0086] In the third embodiment, in the character grouping process (S602) shown in the flowchart of FIG. 6, grouping is not limited to one direction, but is instead performed by multiple writing directions, taking into account the possibility that a printed image may contain a mixture of character strings in multiple directions, such as vertical and horizontal writing.
[0087] FIG. 11 is a diagram showing an example of the result of grouping into a plurality of writing directions in the character grouping process (S602) according to the third embodiment. 11, (b) shows the result of grouping horizontally written characters, and (c) shows the result of grouping vertically written characters for a printed image 1100 (a). In this embodiment, the character strings grouped into horizontally written (b) and vertically written (c) are subjected to the subsequent OCR processing (S603) and confidential information detection processing (S403) in parallel.
[0088] In the confidential information detection process (S403) using character strings grouped by the "horizontal" writing direction, based on multiple linking orders (reading orders), for example, the candidate blocks to be connected "before" the target are the blocks above and to the left of the target, and if there is an adjacent column to the left, the bottom block of that column is selected as a candidate. Also, the candidate blocks to be connected "after" the target are the blocks below and to the right of the target, and if there is an adjacent column to the right, the top block of that column is selected as a candidate. In other words, in this case, the multiple combining orders (reading orders) include at least one of the following: a combining order in which a first string area is combined with a second string area adjacent to and below the first string area, a combining order in which a third string area is combined with a fourth string area adjacent to the right of the third string area, and a combining order in which a fifth string area is combined with a sixth string area at the top of the column adjacent to the right of the fifth string area.
[0089] On the other hand, in the confidential information detection process (S403) using character strings grouped in the "vertical writing" writing direction, based on multiple linking orders (reading orders), for example, the candidate blocks connected "above" are the blocks above and to the right of the target, and if there is an adjacent column above, the leftmost block of that column. Also, the candidate blocks connected "below" are the blocks below and to the left of the target, and if there is an adjacent column below, the rightmost block of that column. In other words, in this case, the multiple combining orders (reading orders) include at least one of the following: a combining order in which the 7th character string area is combined with the 8th character string area adjacent to the left of the 7th character string area (below), a combining order in which the 9th character string area is combined with the 10th character string area adjacent to the below of the 9th character string area, and a combining order in which the 11th character string area is combined with the 12th character string area at the rightmost column adjacent to the below of the 11th character string area.
[0090] By performing confidential information detection on character strings that are recognized in multiple writing directions, rather than specifying one direction in this way, the risk of confidential information being overlooked can be reduced. As described above, according to the third embodiment, it is possible to prevent missed detection of specific patterns such as keywords related to confidential information and personal information patterns, even in document image data containing a mixture of character strings written in a plurality of directions.
[0091] As described above, according to each embodiment, even in document image data with a complex region configuration, it is possible to prevent confidential information from going undetected, and it is possible to detect confidential documents with high accuracy and prevent information leaks. In the above embodiments, a document detection system that detects confidential documents that may leak information from documents to be printed has been described, but the present invention is not limited to this. The present invention can be applied to any document detection system that detects documents that contain specific patterns such as keywords or personal information patterns. In other words, the present invention can prevent missed detection of specific patterns even in document image data with complex area configurations.
[0092] It goes without saying that the configurations and contents of the various data described above are not limited to those described above, and the data may have various configurations and contents depending on the application and purpose. Although one embodiment has been described above, the present invention can be embodied, for example, as a system, an apparatus, a method, a program, a storage medium, etc. Specifically, the present invention may be applied to a system composed of multiple devices, or may be applied to an apparatus composed of a single device. Furthermore, any combination of the above-described embodiments is also included in the present invention.
[0093] (Other embodiments) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. Furthermore, the present invention may be applied to a system made up of a plurality of devices, or to an apparatus made up of a single device. The present invention is not limited to the above-mentioned embodiment, and various modifications (including organic combinations of the embodiments) are possible based on the spirit of the present invention, and are not excluded from the scope of the present invention. In other words, the present invention includes all configurations that combine the above-mentioned embodiments and their modifications.
[0094] The disclosure of this embodiment includes the following configuration, method, and program. (Configuration 1) An information processing device that detects a specific pattern from a character string in image data, An extraction means for extracting a character string area that is an area of a character string within the image data; a recognition means for recognizing a character string from the extracted character string region; a combining means for combining the character strings in a plurality of combining orders based on an arrangement of the character string regions of the recognized character strings; a determination means for determining that the specific pattern has been detected when the specific pattern is included in at least one of the character strings each formed by combining in the plurality of combining orders; 13. An information processing device comprising: (Configuration 2) An information processing device that detects a specific pattern from a character string in image data, An extraction means for extracting a character string area that is an area of a character string within the image data; a recognition means for recognizing a character string from the extracted character string region; a first determination means for determining whether the recognized character string includes a part of the specific pattern; a combining means for combining a character string determined to include a part of the specific pattern with character strings in other character string regions in a plurality of combining orders; a second determination means for determining that the specific pattern has been detected when at least one of the character strings formed by combining the specific pattern in the plurality of combining orders contains a portion of the specific pattern excluding a part of the specific pattern; 13. An information processing device comprising: (Configuration 3) The multiple bonding orders include a combining order in which a first character string region is combined with a second character string region adjacent below the first character string region; a combining order in which the third character string region is combined with a fourth character string region adjacent to the right of the third character string region; a combining order in which the sixth character string region, which is adjacent to the fifth character string region on the right and is the top of the column, is combined with the fifth character string region; 3. The information processing device according to configuration 1 or 2, comprising at least one of the above. (Configuration 4) The multiple bonding orders include a combining order in which the seventh character string region is combined with an eighth character string region adjacent to the left of the seventh character string region; a combining order in which the ninth character string region is combined with a tenth character string region adjacent below the ninth character string region; a combining order in which the 12th character string region, which is the rightmost character string region of the column adjacent to the 11th character string region below, is combined with the 11th character string region; 4. The information processing device according to any one of configurations 1 to 3, comprising at least one of the above. (Configuration 5) the extraction means extracts character regions from the image data, and performs a process of extracting the character string regions by combining adjacent character regions from the extracted character regions for each of a plurality of writing directions; performing character string recognition, character string combination, and specific pattern detection for each of the extracted character string regions for each of the writing directions; 5. The information processing device according to any one of configurations 1 to 4. (Configuration 6) 6. The information processing device according to configuration 5, wherein the plurality of writing directions are a writing direction corresponding to horizontal writing and a writing direction corresponding to vertical writing. (Configuration 7) 7. The information processing device according to any one of configurations 1 to 6, wherein the specific pattern includes at least one of a keyword corresponding to confidential information and a pattern corresponding to personal information. (Configuration 8) 8. The information processing device according to any one of configurations 1 to 7, further comprising a notification means for notifying the user when it is determined that the specific pattern has been detected. (Configuration 9) 9. The information processing device according to any one of configurations 1 to 8, wherein the image data is image data generated from print data to be transmitted to a printing device. (Configuration 10) 10. The information processing apparatus according to configuration 9, further comprising a restricting unit that restricts execution of printing based on the print data by the printing apparatus when it is determined that the specific pattern has been detected. (Method 1) A method for controlling an information processing device that detects a specific pattern from a character string in image data, comprising: An extraction step of extracting a character string region that is a region of a character string within the image data; a recognition step of recognizing a character string from the extracted character string region; a combining step of combining the character strings in a plurality of combining orders based on an arrangement of the character string regions of the recognized character strings; a determination step of determining that the specific pattern has been detected when the specific pattern is included in at least one of the character strings each formed by combining in the plurality of combining orders; 13. A method for controlling an information processing apparatus comprising the steps of: (Method 2) An information processing device that detects a specific pattern from a character string in image data, An extraction step of extracting a character string region that is a region of a character string within the image data; a recognition step of recognizing a character string from the extracted character string region; a first determination step of determining whether the recognized character string includes a part of the specific pattern; a combining step of combining the character string determined to include a part of the specific pattern with character strings in other character string regions in a plurality of combining orders; a second determination step of determining that the specific pattern has been detected when at least one of the character strings combined in the plurality of combination orders contains the specific pattern minus a portion of the specific pattern; 13. A method for controlling an information processing apparatus comprising the steps of: (Program 1) A program for causing a computer to execute the control method according to the method 1 or 2. [Explanation of symbols]
[0095] 101 Printer 102 Printing log monitoring server 103 User terminal 104 Administrator terminal 303 Confidential Document Judgment Department< / ui>
Claims
1. An information processing device that detects a specific pattern from a character string in image data, An extraction means for extracting a character string area that is an area of a character string within the image data; a recognition means for recognizing a character string from the extracted character string region; a combining means for combining the character strings in a plurality of combining orders based on an arrangement of the character string regions of the recognized character strings; a determination means for determining that the specific pattern has been detected when the specific pattern is included in at least one of the character strings each formed by combining in the plurality of combining orders; 13. An information processing device comprising:
2. An information processing device that detects a specific pattern from a character string in image data, An extraction means for extracting a character string area that is an area of a character string within the image data; a recognition means for recognizing a character string from the extracted character string region; a first determination means for determining whether the recognized character string includes a part of the specific pattern; a combining means for combining a character string determined to include a part of the specific pattern with character strings in other character string regions in a plurality of combining orders; a second determination means for determining that the specific pattern has been detected when at least one of the character strings formed by combining the specific pattern in the plurality of combining orders contains a portion of the specific pattern excluding a part of the specific pattern; 13. An information processing device comprising:
3. The multiple bonding orders include a combining order in which a second character string region adjacent to and below the first character string region is combined with the first character string region; a combining order in which the third character string region is combined with a fourth character string region adjacent to the right of the third character string region; a combining order in which a sixth character string region, which is adjacent to the fifth character string region on the right and is the top of the column, is combined with the fifth character string region; 3. The information processing apparatus according to claim 1, further comprising at least one of the following:
4. The multiple bonding orders include a combining order in which the seventh character string region is combined with an eighth character string region adjacent to the left of the seventh character string region; a combining order in which the ninth character string region is combined with a tenth character string region adjacent below the ninth character string region; a combining order in which a 12th character string region, which is adjacent to the 11th character string region and is located at the rightmost position of the column below the 11th character string region, is combined with the 11th character string region; 3. The information processing apparatus according to claim 1, further comprising at least one of the following:
5. the extraction means extracts character regions from the image data, and performs a process of extracting the character string regions by combining adjacent character regions from the extracted character regions for each of a plurality of writing directions; performing character string recognition, character string combination, and specific pattern detection for each of the extracted character string regions for each of the writing directions; 2. The information processing apparatus according to claim 1,
6. 6. The information processing apparatus according to claim 5, wherein the plurality of writing directions include a writing direction corresponding to horizontal writing and a writing direction corresponding to vertical writing.
7. 3. The information processing apparatus according to claim 1, wherein the specific pattern includes at least one of a keyword corresponding to confidential information and a pattern corresponding to personal information.
8. 3. The information processing apparatus according to claim 1, further comprising a notification unit that notifies a user when it is determined that the specific pattern has been detected.
9. 3. The information processing apparatus according to claim 1, wherein the image data is image data generated from print data to be transmitted to a printing device.
10. 10. The information processing apparatus according to claim 9, further comprising a restricting unit that restricts execution of printing based on the print data by the printing device when it is determined that the specific pattern has been detected.
11. A method for controlling an information processing device that detects a specific pattern from a character string in image data, comprising: An extraction step of extracting a character string region that is a region of a character string within the image data; a recognition step of recognizing a character string from the extracted character string region; a combining step of combining the character strings in a plurality of combining orders based on an arrangement of the character string regions of the recognized character strings; a determination step of determining that the specific pattern has been detected when the specific pattern is included in at least one of the character strings each formed by combining in the plurality of combining orders; 13. A method for controlling an information processing apparatus comprising the steps of:
12. An information processing device that detects a specific pattern from a character string in image data, An extraction step of extracting a character string region that is a region of a character string within the image data; a recognition step of recognizing a character string from the extracted character string region; a first determination step of determining whether the recognized character string includes a part of the specific pattern; a combining step of combining the character string determined to include a part of the specific pattern with character strings in other character string regions in a plurality of combining orders; a second determination step of determining that the specific pattern has been detected when at least one of the character strings combined in the plurality of combination orders contains the specific pattern minus a portion of the specific pattern; 13. A method for controlling an information processing apparatus comprising the steps of:
13. A program for causing a computer to execute the control method according to claim 11 or 12.
Citation Information
Patent Citations
Secure document detection method, secure document detection program, and optical character reader
JP2011221894A
