Information processing device and computer readable storage medium
By introducing the acceptance and generation components into the information processing device, the user is allowed to specify the order of the whiteboard image area, which solves the problem in the prior art that the order of filling in the content cannot be recognized, realizes the generation of output data arranged in order, and improves the recognition accuracy and User experience.
Patent Information
- Application Number
- CN202010159770.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-06
- Filing Date
- 2020-03-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-03-09
AI Technical Summary
Existing character recognition technology cannot correctly determine the order of multiple filled-in contents on the whiteboard, resulting in the inability to generate output data arranged in the order of filling in.
By introducing the acceptance component and the generation component into the information processing device, the user is allowed to specify the order of multiple areas in the image, and performs the order designation through templates or touch gestures to generate electronic data.
Even if the order of regions within an image cannot be identified based on the image content, sequential output data can still be generated, simplifying operations and improving recognition accuracy.
Smart Images

Figure CN112463010B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an information processing device and a computer-readable storage medium. Background Art
[0002] In a discussion using a whiteboard, one or more users fill in information at a free time and in a free place. In addition, an image of the whiteboard used for the discussion is often captured and saved as a record of the meeting. However, the information on the whiteboard is filled in with a free layout, so in most cases, the flow of the discussion is unknown even if the image is viewed, and sometimes it is unclear which of the filled information is the final conclusion.
[0003] Conventionally, there are devices that recognize characters written by hand on a whiteboard or a touch screen display in real time and output them in the form of text data.
[0004] Furthermore, as conventional techniques for performing character recognition on a handwritten character group, there are the following techniques.
[0005] Patent document 1 describes a device that detects a gesture of a user's finger on a projected image of a document in order to perform character recognition on a document such as a medical record and input data based on the document, and detects the user's operation instruction through the gesture. The device accepts operations such as designation of a column to be recognized in the image, association of a column in the image with an item of an input object, and addition of an attribute value to an item through gestures.
[0006] The text data output whiteboard disclosed in Patent Document 2 divides the image of the whiteboard into grids and recognizes the characters in each grid. By performing the recognition process on a plurality of grids of different sizes, characters of different sizes are recognized respectively. Furthermore, by embedding each recognized character and an image that cannot be recognized due to deviation from the grid, etc. into a row and column position format, characters belonging to the same row are recognized, and the character recognition results are separated by row units.
[0007] [Prior art literature]
[0008] [Patent Document]
[0009] Patent Document 1: Japanese Patent Application Publication No. 2016-162372
[0010] Patent Document 2: Japanese Patent Laid-Open No. 9-130521 Summary of the invention
[0011] [Problems to be solved by the invention]
[0012] When an image obtained by photographing a filling surface such as a whiteboard where a plurality of filling contents are filled in a free layout is digitized, if conventional character recognition technology is simply applied, each filling content can be digitized using the conventional character recognition technology. However, conventional character recognition technology and other digitization technologies cannot determine the order in which the plurality of filling contents are filled in, and thus cannot generate output data such as meeting minutes in which the plurality of filling contents are arranged in the order in which they are filled in.
[0013] An object of the present invention is to generate output data in which information of each region is arranged in the order even if the order of each region in an image cannot be identified from the content of the image.
[0014] [Technical means to solve the problem]
[0015] The invention of technical solution 1 is an information processing device, comprising: an accepting component that accepts a sequential designation of multiple areas in an image from a user; and a generating component that generates output data corresponding to the image, in which the electronic data of each of the multiple areas is arranged in the sequence.
[0016] The invention according to claim 2 is the information processing device according to claim 1, wherein the accepting means accepts, from the user, a selection of a template suitable for the image from among a plurality of templates that define the order.
[0017] The invention of technical solution 3 is the information processing device described in technical solution 2, wherein the receiving component displays the template overlapping the image displayed on the screen in a form in which the image is visible, and receives an instruction from the user whether to apply the displayed template to the image.
[0018] The invention of technical solution 4 is an information processing device as described in technical solution 2 or 3, wherein the information processing device further includes: a segmentation component, which segments the image into the multiple areas through the lines or non-character parts contained in the image, and the receiving component starts from the template among the multiple templates that is suitable for the configuration pattern of the multiple areas segmented by the segmentation component, and gives priority to prompting it to the user as a selection object.
[0019] The invention according to claim 5 is the information processing device according to claim 1 , wherein the receiving unit receives a designation of the order regarding the plurality of areas on the image displayed on the screen.
[0020] The invention of technical solution 6 is the information processing device described in technical solution 1, wherein the receiving component receives the designation of the order through a touch gesture, and the touch gesture passes through the multiple areas of the image displayed on the screen in the order.
[0021] The invention of technical solution 7 is an information processing device described in technical solution 5 or 6, wherein the receiving component also receives the designation of an area that does not need to be digitized among the multiple areas on the image displayed on the screen, and the generating component generates the output data that does not include data of the area designated as the area that does not need to be digitized.
[0022] The invention of technical solution 8 is an information processing device recorded in any one of technical solutions 5 to 7, wherein the acceptance component also accepts the designation of an area among the multiple areas imported in the form of image data, namely, an image import area, on the image displayed on the screen, and for the image import area among the multiple areas, the output data generated by the generation component includes the image data of the area as the electronic data, and for an area other than the image import area among the multiple areas, the output data generated by the generation component includes text data of character recognition results for the image of the area as the electronic data.
[0023] The invention of technical solution 9 is an information processing device recorded in any one of technical solutions 1 to 8, and also includes: a component that accepts the designation of the data format of the output data on the image displayed on the screen, and the generating component generates the output data in the designated data format.
[0024] The invention of technical solution 10 is an information processing device recorded in any one of technical solutions 1 to 9, and also includes: a component that accepts the specification of the order of multiple images, that is, the image order, the accepting component accepts the specification of the order of multiple areas in the image for each of the multiple images, and the generating component arranges the output data of each of the multiple images in the image order, thereby generating output data of the multiple images.
[0025] The invention of technical solution 11 is a computer-readable storage medium storing a program for causing a computer to function as: an accepting component for accepting a sequential designation of multiple areas in an image from a user; and a generating component for generating output data corresponding to the image, in which the electronic data of each of the multiple areas is arranged in the sequence.
[0026] [Effects of the Invention]
[0027] According to the invention of claim 1 or 11, even when the order of the regions within an image cannot be identified from the content of the image, output data in which the information of the regions is arranged in the order can be generated.
[0028] According to the invention of claim 2, it is possible to accept the designation of the order from the user through a simpler operation than designating the order of each area one by one.
[0029] According to the invention of technical solution 3, it is possible to intuitively indicate in what order each area of the image is arranged in the order shown by the template.
[0030] According to the invention of claim 4 , compared with a case where templates are presented in a fixed order of priority, a template suitable for a target image can be selected more easily.
[0031] According to the invention of claim 5 or 6, compared with the case where the order is designated using a template prepared in advance, it is possible to accept more detailed designation of the order.
[0032] According to the invention of claim 7, it is possible to accept the designation of a region in the image that is not included in the output data.
[0033] According to the invention of claim 8, each region in an image can be digitized in a format corresponding to the content of the region.
[0034] According to the invention of claim 9, it is possible to accept the designation of the data format of the output data.
[0035] According to the invention of claim 10, it is possible to specify the order of multiple images in output data. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A diagram illustrating a functional structure of a mobile terminal according to an exemplary embodiment.
[0037] Figure 2 This is a diagram illustrating the process flow of application execution.
[0038] Figure 3 A diagram of an example template.
[0039] Figure 4 This is a diagram illustrating an example of a state where a template is superimposed and displayed on an image.
[0040] Figure 5 A diagram showing the non-character portion (blank portion) in an image.
[0041] Figure 6 This figure illustrates an example of the result of dividing an image into multiple areas with non-character parts as boundaries.
[0042] Figure 7 This is a diagram showing the arrangement order of text data in each area in the generated electronic document.
[0043] Figure 8This is a diagram illustrating a process flow of an application having a function of accepting specification of a sequence by a touch gesture.
[0044] Fig. 9 As an example Figure 8 A diagram showing the detailed sequence of S24 and S26 in the order of .
[0045] Fig.10 The diagrams are diagrams illustrating images to be digitized.
[0046] Fig.11 This is a diagram illustrating an example of a state where an image is divided into a plurality of regions.
[0047] Fig.12 A diagram for explaining a touch gesture that indicates the order of areas.
[0048] Fig.13 A diagram for explaining a touch gesture indicating an area to be excluded from an electronic object.
[0049] Fig.14 This is a diagram for explaining a touch gesture indicating an image import area in which an image is imported without undergoing OCR processing but remains in its state.
[0050] Fig.15 The figure is an electronic document showing an example of an image including an image import area and OCR results of other areas.
[0051] Fig.16 is a diagram for explaining a touch gesture indicating a data format of an electronic document.
[0052] Fig.17 This is a diagram illustrating a part of the processing flow of an application that accepts touch gestures for various instructions.
[0053] Fig.18 To express Fig.17 The figure after the order.
[0054] Fig.19 A diagram for explaining a touch gesture indicating the order of a plurality of images.
[0055] Explanation of symbols
[0056] 100: Mobile terminals
[0057] 110: Application
[0058] 112: Image acquisition unit
[0059] 114: Display control unit
[0060] 116: Electronic Control Department
[0061] 118: Gesture recognition unit
[0062] 120: OCR Department
[0063] 122: Electronic Document Generation Department
[0064] 150: Camera
[0065] 160: Image storage
[0066] 170: Touch screen display DETAILED DESCRIPTION
[0067] Figure 1 1 shows a functional structure of a mobile terminal 100 according to an embodiment of the present invention. The mobile terminal 100 is, for example, a smartphone or a tablet terminal equipped with a computer, a camera 150 and a touch screen display 170 .
[0068] The mobile terminal 100 includes an image storage 160. The image storage 160 is a storage area for storing images (ie, photo images) captured by the camera 150. For example, the Camera Roll in the operating system "iOS (registered trademark)" provided by Apple is one example.
[0069] The computer on board the mobile terminal 100 is installed with an application (i.e., application software) 110, which converts the image obtained by photographing the filled-in surface into an electronic document of a specified format. The filled-in surface is, for example, a page of a whiteboard or a memo filled in by handwriting or the like. The digitization of the image performed by the application 110 includes a process of converting the character image contained in the image into text data. In addition, the so-called "digitization" in this specification is to convert the image of the object from the form of image data into an electronic document of a specified data format.
[0070] The application 110 includes an image acquisition unit 112 , a display control unit 114 , an electronic control unit 116 , a gesture recognition unit 118 , an optical character recognition (OCR) unit 120 , and an electronic document generation unit 122 as functional modules.
[0071] The image acquisition unit 112 acquires an image of the digitized object from the camera 150 or the image storage 160. The display control unit 114 controls a screen for displaying the image of the digitized object or accepting an operation for digitizing the image. The digitization control unit 116 controls all the processing for digitizing the image. The gesture recognition unit 118 recognizes the content of the operation on the application 110 represented by the touch gesture performed by the user on the touch screen display 170. In addition, the touch gesture is a gesture performed by the user on the screen of the touch screen display 170 with a fingertip or the like.
[0072] The OCR unit 120 performs OCR, i.e., character recognition, on the input image. Alternatively, instead of providing the OCR unit 120 in the application 110 as shown in the figure, an OCR function of other software in the mobile terminal 100 or an OCR service outside the mobile terminal 100, such as on the Internet, may be used.
[0073] The electronic document generation unit 122 generates an electronic document of a predetermined data format corresponding to the image based on text data of the OCR result of the image. The data format of the electronic document generated by the electronic document generation unit 122 includes, for example, a portable document format (PDF) format, a document work (Docuworks, registered trademark) format, etc., but is not limited to these.
[0074] Reference Figure 2 , an example of the flow of electronic processing of an image performed by application 110 is described.
[0075] When the user starts the application 110 on the mobile terminal 100, the display control unit 114 of the application 110 displays a menu screen on the touch screen display 170. The menu screen displays several menu items including the menu items "capture image for electronic conversion" and "select image for electronic conversion from storage".
[0076] When the user selects the menu item "take an image for digitization" on the menu screen, the application 110 activates the camera 150 via the operating system (OS) of the mobile terminal 100. The user takes a picture of a filled-in surface such as a whiteboard with the camera 150 while viewing the image captured by the camera 150 displayed on the touch screen display 170. The image acquisition unit 112 acquires the image taken by the camera 150 as an image to be digitized (S10).
[0077] Furthermore, when the user selects the menu item "Select an image to be digitized from storage" on the menu screen, the application 110 displays a list screen of images in the image storage 160 on the touch screen display 170 via the OS of the mobile terminal 100. The user selects an image to be digitized from the images in the list screen. The image acquisition unit 112 acquires the file of the image selected by the user from the image storage 160 (S10).
[0078] Alternatively, the image acquisition unit 112 may acquire the image of the digitized target from an image storage device located outside the mobile terminal 100 (eg, an image storage device used by the user located on a cloud).
[0079] The display control unit 114 displays the image of the digitized object acquired by the image acquisition unit 112 on the touch panel display 170 .
[0080] After the display, the electronic control unit 116 receives an instruction from the user. For example, the user can instruct to execute OCR on the image by selecting a menu item "Execute OCR" from a menu screen provided by the application 110. The application 110 determines whether the instruction input by the user is to execute OCR (S12). When the instruction from the user is not to execute OCR (i.e., the determination result of S12 is No), the application 110 executes the processing corresponding to the instruction (not shown in the figure), and ends. Figure 2 order.
[0081] When the result of determination in S12 is Yes, the application 110 displays a template screen on the touch screen display 170 via the display control unit 114 (S14). The template screen is a screen that displays a template. The template is data that specifies the order in which OCR processing is performed on multiple areas included in an image to be digitized (for example, an image obtained by photographing a whiteboard).
[0082] For example, when each person is holding a meeting while filling out notes on a whiteboard, each person can select an area that he or she thinks is appropriate in the blank area on the whiteboard at any time and fill out the area by handwriting. Through the filling behavior of each person, the image on the filled whiteboard can be divided into multiple areas. The order of the contents filled in these multiple areas (for example, this refers to the order in which these areas are filled in) cannot be uniquely determined based on the image.
[0083] It is the template that specifies the order. Figure 2 In the example of FIG. 1 , the user selects a template suitable for the image of the digitized object from among a plurality of templates that specify the order.
[0084] Figure 3, multiple templates 202 to 210 are illustrated. Templates 202 to 210 are all assumed to be filled in horizontally on a filled-in surface such as a whiteboard. Template 202 indicates that the image of the electronic object contains a column area that should be read from top to bottom. Template 204 indicates that the image contains two columns of areas that should be read from left to right. Template 206 indicates that the image contains two columns of areas that should be read from right to left. Moreover, template 208 indicates that the image contains three columns of areas that should be read from left to right, and template 210 indicates that the image contains three columns of areas that should be read from right to left.
[0085] Figure 3 The templates 202 to 210 shown are merely examples, and other types of templates such as templates corresponding to vertical writing may also be used.
[0086] The template screen displayed in S14 can also be displayed at a glance, for example Figure 3 The illustrated templates are templates 202 to 210. The user selects a template suitable for the image to be digitized from the displayed list.
[0087] Furthermore, as another example, S14 may also be as follows Figure 4 As shown in the example, the template is superimposed on the image 300 of the electronic object displayed on the touch screen display 170. In the superimposed display, the image 300 is visible under the template. Figure 3 The template superimposed on the image 300 is switched to another template by a predetermined operation such as a tap operation on the touch screen display 170. The user determines whether the template superimposed on the image 300 is suitable for the image 300 based on the mark of the template displayed. And if the template is suitable, the template is selected by a predetermined operation such as tapping the touch screen display 170 twice in a row.
[0088] The electronic control unit 116 receives the template selection from the user (S16), and analyzes the layout of the image to be digitized according to the template (S18). That is, the image is divided into a plurality of regions according to the template, and the order of the plurality of regions is determined according to the template. Furthermore, the electronic control unit 116 inputs the images of the respective regions to the OCR unit 120 in the order determined according to the layout analysis result according to the template (S20).
[0089] For example, when you select Figure 4When the template is a two-column template, the electronic control unit 116 divides the electronic object image 300 into two column areas. In the area division, the image 300 is divided into a plurality of areas with the handwritten lines contained in the image 300 or the continuous non-character parts in the image 300 as boundaries. Here, the non-character part is a blank area in the image 300 or an area with only content other than characters (such as graphics). Figure 5 As shown in the example, near the center of the image 300 in the horizontal direction, there is a non-character portion 302 extending continuously in the vertical direction. Figure 6 As shown, the image 300 is divided into two left and right regions 310-1 and 310-2 by the non-character portion 302. Figure 4 The template (i.e. Figure 3 In the order shown in the template 206), the image of the area 310-2 is first input to the OCR unit 120, and then the image of the area 310-1 is input to the OCR unit 120.
[0090] The OCR unit 120 performs a known OCR process on the sequentially input images of the respective regions, and returns the text data obtained as a result of the OCR process to the electronic control unit 116 .
[0091] For example, when you select Figure 4 In the template illustrated, the handwritten character strings in each area are written horizontally. That is, the arrows 212-1 and 212-2 of the template indicate the direction of travel of the row of the filled character string, so the direction orthogonal to the arrows, i.e., the horizontal direction, is the arrangement direction of the characters in the row. At this time, the electronic control unit 116 instructs the OCR unit 120 to perform OCR processing assuming horizontal writing. The OCR unit 120 performs OCR processing on the image of the area 310-2 and the image of the area 310-1 in sequence, and sends the text data of the area 310-2 and the text data of the area 310-1 obtained as a result back to the electronic control unit 116.
[0092] The electronic control unit 116 delivers the text data sequentially sent back from the OCR unit 120 to the electronic document generation unit 122. The electronic document generation unit 122 generates a file (i.e., electronic document) in a specified (i.e., predetermined) data format including the input text data (S22). The data format of the generated electronic document can be set to be selectable by the user.
[0093] For example, when the image 300 is selected Figure 4 When the template is instantiated, Figure 7 As shown, an electronic document 350 is generated in which the text data of the area 310 - 2 and the text data of the area 310 - 1 are arranged in order from the first row.
[0094] In the example described above, the user specifies the order in which to perform OCR processing on the digitized image by selecting a template. The application 110 performs OCR processing on each region in the order indicated by the selected template, thereby generating an electronic document in which the OCR results of each region are arranged in the order.
[0095] In the example described above, the process of displaying the template screen (S14) and accepting the selection of the template from the user (S16) is an example of "accepting means for accepting the specification of the order of the plurality of regions in the image from the user". Furthermore, the electronic document generation unit 122 is an example of "generating means for generating output data corresponding to the image in which the electronic data of each of the plurality of regions is arranged in the order". Furthermore, the text data of the OCR results of the regions 310-1 and 310-2 obtained by dividing the image 300 is an example of "electronic data" of these regions.
[0096] In the above example, the priority of the templates presented to the user in the template screen of S14 may also be determined according to the regional structure of the image to be digitized. Figure 5 When the image 300 (S10) is analyzed before the template screen is displayed (S14), it is found that the image 300 can be divided into two areas 310-1 and 310-2 by the non-character part 302. Figure 3 ), the templates 204 and 206 are suitable for the area 310-1 and area 310-2 which are divided into two horizontally. Therefore, these templates 204 and 206 are presented to the user with a higher priority than the other templates 202, 208 to 210. For example, in an example of providing an overview display of templates 202 to 210, templates 204 and 206 are displayed from the top of the overview display, and the remaining templates 202, 208 to 210 are displayed below them. Moreover, in an example of switching the template superimposed on the image 300 by a tap operation, the template initially superimposed on the image 300 is set to one of the templates 204 and 206. Furthermore, the superimposed template is switched to the other by a tap operation, and is switched to any one of the other templates 202, 208 to 210 by further performing a tap operation.
[0097] <Example of sequence instruction by touch gesture>
[0098] Next, refer to Figure 8 to Figure 12 , an example of an application 110 having the function of specifying the order of regions within an image of an electronic object through a touch gesture on the touch screen display 170 is described.
[0099] Figure 8 The flowchart of the process executed by the application 110 of the example is shown. Figure 8 In, with Figure 2 The same steps in the processing flow are marked with the same symbols and the description is omitted.
[0100] Figure 8 In the sequence of the application 110, the electronic control unit 116 receives an instruction from the user between S12 and S14 as to whether to use the template for the sequence of the regions (S13). When the instruction from the user is to use the template, the electronic control unit 116 receives an instruction from the user as to whether to use the template for the sequence of the regions (S13). Figure 2 The step group of S14 to S22 is executed in the same order.
[0101] When the result of S13 is negative (No), the electronic control unit 116 jumps to the following mode, that is, accepting a gesture indicating the recognition order of the area groups in the image (S24). In the above mode, the user indicates the order of these recognition area groups by performing a touch gesture of sliding a fingertip on the surface of the touch screen display 170. The gesture recognition unit 118 recognizes the user's touch gesture, and the electronic control unit 116 analyzes the layout of the image according to the recognized touch gesture (S26). Then, with Figure 2 The processing of S20 and S22 is performed in the same order.
[0102] Fig. 9 Detailed examples of the processing of S24 and S26 are shown in FIG. In the above sequence, the electronic control unit 116 divides the image of the electronic object into a plurality of regions using the lines or non-character parts contained in the image as the division boundaries (S30). In addition, the gesture recognition unit 118 recognizes the track drawn by the fingertip of the touch gesture on the screen of the touch screen display 170. When multiple touch gestures are performed in sequence, the track of the fingertip is recognized for each of the touch gestures (S32).
[0103] The electronic control unit 116 determines the order of the regions in the image based on the trajectory of the fingertips of each touch gesture and the input order of these touch gestures (S34). That is, for example, the order of the region group passed by the trajectory of a touch gesture (i.e., the trajectory of the fingertips from the time the fingertips touch the screen to the time they leave the screen next time) is set as the order in which the fingertips move on the trajectory, and the order is arranged according to the input order of the touch gestures. In this way, the order of the regions indicated by a series of touch gestures is obtained.
[0104] Next, the electronic control unit 116 obtains the information of the region group obtained in S30 and the order of these regions determined in S34 as a layout analysis result ( S36 ).
[0105] Then, the electronic control unit 116 inputs the images of each area to the OCR unit 120 in the order shown in the layout analysis result (S20). Furthermore, the text data output from the OCR unit 120 is arranged in the output order and expressed in a predetermined data format, thereby generating an electronic document as an output (S22).
[0106] The above-mentioned Fig. 9 A specific example of the processing is shown below. In the specific example, it is assumed that the image acquisition unit 112 acquires Fig.10 The image 400 shown is a target for digitization. Furthermore, it is assumed that the user inputs an instruction to designate the order of OCR of the image by a touch gesture instead of a template.
[0107] Fig.10 The image 400 shown is an image of a whiteboard, and includes an image of a group of character strings 402 written by a person on the whiteboard, and an image of a dividing line 404 drawn by a person to divide an area of the whiteboard.
[0108] In S30, Fig.11 As shown, the image 400 is divided into three areas 410 - 1 , 410 - 2 , and 410 - 3 by two dividing lines 404 and a non-character portion (ie, a portion without characters) 406 below the dividing lines 404 extending in the longitudinal direction.
[0109] In S32, it is assumed that the user of the mobile terminal 100 is Fig.12 As shown, a touch gesture 420-1 is performed on the screen of the touch screen display 170 displaying the image 400, and then a touch gesture 420-2 is performed. Fig.12 In the following figures illustrating touch gestures, the trajectory of the user's fingertip moving on the screen is represented as touch gesture 420-1, etc. Touch gestures 420-1 and touch gestures 420-2 indicate that the user's fingertip moves along the arrow direction of the illustrated trajectory. For example, in touch gesture 420-1, the user moves the fingertip at the upper center of the left half of image 400 downward, bends the fingertip about 90 degrees near the lower end and moves the fingertip to the right, and then leaves the screen.
[0110] By touch gesture 420-1 and touch gesture 420-2, the following order is determined in S34, that is, area 410-1 is the first, area 410-3 is the second, and area 410-2 is the third. Therefore, OCR unit 120 performs OCR processing in the order of area 410-1, area 410-3, and area 410-2. In addition, an electronic document is generated in which the text data of the OCR results of area 410-1, area 410-3, and area 410-2 are arranged in sequence.
[0111] Fig.10In the examples shown in FIG. 4 and FIG. 5 , the dividing line 404 is represented as a continuous line. However, the electronic control unit 116 may recognize a discontinuous line such as a dotted line as a series of dividing lines by using a known technique.
[0112] Reference above Figure 8 to Figure 12 In the illustrated example, a user may specify the order in which OCR within image 400 is to be performed through touch gestures.
[0113] <Touch gestures for instructions other than sequence specification>
[0114] The application 110 may accept not only the touch gesture for designating the OCR sequence described above but also a touch gesture for other instructions.
[0115] For example, Fig.13 In the example shown, in addition to the touch gesture 420 indicating the OCR order, a touch gesture 422 for designating an area to be excluded from the electronic object is performed for the image 400. The touch gesture 422 for indicating exclusion is a fingertip drawing an X-shaped track. That is, the action of drawing a line segment in an inclined direction with the fingertip touching the screen, and then drawing a line segment intersecting the line segment with the fingertip in a direction close to a right angle with the line segment is the touch gesture 422 for indicating exclusion. The gesture recognition unit 118 recognizes the touch gesture 422 for indicating exclusion as described above. And, the exclusion instruction and the position information of the touch gesture 422 in the image 400 are notified to the electronic control unit 116. At this time, the notified position information is, for example, a group of coordinates of the two end points of the two line segments constituting the X-shaped touch gesture 422 (i.e., a group containing a total of four coordinates).
[0116] The electronic control unit 116 that has received the notification recognizes that the area including the touch gesture 422 is to be excluded from the electronic target based on the position information included in the notification and the result of the area division performed in S30 . Fig.13 In the example, Fig.11 The region 410-3 shown is excluded from the digitized object. Information originating from the image of the region excluded from the digitized object is not included in the finally generated electronic document.
[0117] and, Fig.14 In the illustrated example, a touch gesture 510 is shown indicating an image import instruction. This touch gesture 510 indicates that the image data is to be imported into a region of a final electronic document while being kept without undergoing OCR. Fig.14In the example, the area surrounded by the track of the fingertip indicated by the touch gesture 510 is the area imported with the image data kept. In other words, the track of the fingertip obtained by the touch gesture 510 indicated by the image import is a closed curve surrounding a certain area. In addition, the track does not necessarily constitute a completely closed curve. For example, even if there is a gap between the start point and the end point of the track, the track is not completely closed, but as long as the gap is, for example, less than a specified length, the start point and the end point can be interpolated and recognized as a closed curve.
[0118] Fig.14 In the example of , the area surrounded by the touch gesture 510 becomes a table, so if OCR is simply applied, the information of the table structure is lost. Therefore, in the example, the image data containing the table structure is kept for the area and imported into the final electronic document. In addition, when an image element that is not recognized as text, such as a graph or a picture, is to be incorporated into the electronic document in addition to the table, the touch gesture 510 of the image import instruction is also used.
[0119] Fig.14 In the example of FIG. 5 , in addition to the gesture 510 for instructing image import, a touch gesture 520 - 1 and a touch gesture 520 - 2 for designating the order of OCR are performed on the image 500 .
[0120] Apply 110 according to Fig.14 The content of the electronic document 550 generated by the illustrated touch gesture 510, the touch gesture 520-1, and the touch gesture 520-2 is illustrated in FIG. Fig.15 . Fig.15 In the electronic document 550 shown, under the image 552 of the area indicated by the touch gesture 510 of the image import instruction, the text data 554-1 and the text data 554-2 of the OCR result are arranged in the order indicated by the touch gesture 520-1 and the touch gesture 520-2 specified in the OCR order. The positional relationship between the image 552 and the text data 554-1 and the text data 554-2 in the electronic document 550 is based on the positional relationship between these two areas in the original image 500.
[0121] Fig.15 The image 552, text data 554-1 and text data 554-2 in the illustrated electronic document 550 are all examples of "electronicized data" that are electronicized images of corresponding regions in the original image 500 (i.e., partial images relative to the original image). As described above, the "electronicization" of the image performed by the application 110 is: converting the partial images of each region in the image into electronic data in the form indicated by the user, arranging the electronic data of each region, and generating a file (i.e., an electronic document) in a specified data format.
[0122] Fig.16 6 illustrates a touch gesture 610 for specifying the data format of the electronic document generated by the electronic document generation unit 122. The touch gesture 610 is to draw a "P"-shaped track representing the PDF format with a fingertip on the image 600. The electronic document generation unit 122 may specify a mark or graphic drawn by a fingertip for a touch gesture representing the data format for each of the corresponding data formats in advance.
[0123] Fig.17 and Fig.18 , a processing flow of the application 110 that accepts both a touch gesture for designating an OCR sequence and a touch gesture for other instructions is illustrated. Fig.17 and Fig.18 Replace in the order shown Figure 8 S24 and 26 of the sequence shown and the subsequent S20 and S22. Figure 8 In the sequence, when the determination result of S13 is Yes, the processing of each step of S14 to S22 only needs to maintain the processing content of these steps.
[0124] In the above example, it is assumed that the electronic document generation unit 122 can generate electronic documents in two data formats, “P format” and “D format”.
[0125] like Fig.17 As shown, when the determination result of S13 is No, the electronic control unit 116 divides the electronic target image into a plurality of regions by the lines or non-character parts contained in the image (S30). Fig. 9 The S30 is also shown.
[0126] Furthermore, the gesture recognition unit 118 recognizes a touch gesture performed on the screen of the touch screen display 170 (S42). Furthermore, the gesture recognition unit 118 determines whether the recognized touch gesture indicates an exclusion instruction (S44), an image import instruction (S48), an instruction to use the P format as the electronic document format (S52), or an instruction to use the D format as the electronic document format (S56).
[0127] In these determinations, when the determination result of S44 (Exclusion indication?) is Yes, the electronic control unit 116 stores the area corresponding to the position and range of the touch gesture of the exclusion indication as an area excluded from the electronic object (S46). Furthermore, when the determination result of S48 is Yes, the electronic control unit 116 stores the area surrounded by the touch gesture of the image import indication as an area of the image import object (S50). Furthermore, when the determination result of S52 is Yes, the electronic control unit 116 sets the data format of the electronic document generated by the electronic document generation unit 122 to the P format (S54). Furthermore, when the determination result of S56 is Yes, the electronic control unit 116 sets the data format of the electronic document generated by the electronic document generation unit 122 to the D format (S58). In addition, when a touch gesture specifying a data format is not input, the electronic document generation unit 122 generates an electronic document in a data format set by default.
[0128] When the determination results of S44 , S48 , S52 , and S56 are all No, the electronic control unit 116 recognizes the touch gesture acquired in S42 as an OCR order specification ( S60 ).
[0129] Next, the electronic control unit 116 determines whether the OCR order designation by the touch gesture on the electronic target image is completely completed (S62). Here, it is determined whether the touch gesture for OCR order designation required for determining the order of all the remaining areas of the image segmented in S30, except for the area stored as the excluded area in S46 and the area stored as the image import target in S50, has been input. That is, after S30, it is determined whether the group of areas passed by the track of one or more OCR order designation touch gestures accepted so far covers all these remaining areas.
[0130] When the determination result of S62 is No, the electronic control unit 116 returns to S42 to accept further touch gesture input. When the determination result of S62 is Yes, the electronic control unit 116 enters Fig.18 order.
[0131] Fig.18 In the order of the touch gesture group designated by the accepted OCR order, the electronic control unit 116 determines the order of the remaining areas in the image except the areas excluded by the exclusion instruction and the areas designated as the image import object (S34a). The processing of the above steps is the same as Fig. 9Next, the electronic control unit 116 arranges the regions in the order determined in S34a as a layout analysis result (S36), and inputs the image of each region to the OCR unit 120 (S20) according to the analysis result. The processing of S36 and S20 is the same as Figure 8 and Fig. 9 The same is true for the order of .
[0132] Furthermore, the electronic control unit 116 inputs the image data of the area of the image import object and the text data of the OCR result sequentially output by the OCR unit 120 to the electronic document generation unit 122. The electronic document generation unit 122 generates an electronic document including these image data and text data (S22a). The electronic document generated at this time does not contain data representing the content of the partial image of the area excluded in S46. Furthermore, when a touch gesture for specifying a data format is performed, the electronic document generation unit 122 generates an electronic document in the format indicated by the touch gesture in S22a.
[0133] Furthermore, characters filled in with a specific color or characters in an area surrounded by a specific color of enclosing lines in the image of the electronic object can also be distinguished from other filled-in contents in the image. That is, in the example, when the application 110 detects characters filled in with a specific color or characters in an area surrounded by a specific color of enclosing lines in the image of the electronic object, the text data of the OCR result of these characters is given a specified emphasis attribute. The emphasis attribute is, for example, an attribute of setting the display color of the character to a specific color (e.g., red), or an attribute of displaying the character in bold font, etc. In the electronic document as the final product, the emphasis attribute is added to these characters.
[0134] In the above, the case of digitizing one image is described. In addition, there may be a case where multiple images are selected from the image storage 160, etc., and these multiple images are continuously digitized and output as one electronic document. In this case, the user may also specify the order of these multiple images through touch gestures. In order to distinguish this order from the order of regions in one image, it is called "image order".
[0135] Fig.19In the example shown, the user draws numbers 702 and 712 indicating the order of the images by touch gestures for the plurality of images 700 and 710. When the gesture recognition unit 118 detects the touch gesture of drawing numbers on the images, the electronic control unit 116 recognizes the numbers as the numbers of the order of the images in the plurality of images. Furthermore, the electronic control unit 116 notifies the electronic document generation unit 122 of the numbers of the recognized images. The electronic document generation unit 122 arranges the electronic data of each area of each image (i.e., the image data of the image import area or the text data of the OCR result) in the order of the numbers of these images, thereby generating an electronic document.
[0136] The mobile terminal 100 of the embodiment described above is implemented by causing a computer built into the mobile terminal 100 to execute a program, and the program represents the functions of the component group constituting the mobile terminal 100. Here, the computer has, for example, a circuit structure in which the following components as hardware are connected via, for example, a bus, etc.: a processor; a controller that controls a memory (main storage device) such as a random access memory (RAM), a flash memory or a solid state drive (Solid State Drive), a hard disk drive (Hard Disc Drive, HDD) and other auxiliary storage devices; various input / output (I / O) interfaces; a network interface for controlling the connection with a network such as a local area network, etc. The program describing the processing content of each of these functions is stored in an auxiliary storage device via a network, etc., and installed in the computer. The functional module group illustrated above is implemented by reading the program stored in the fixed storage device into the memory and executing it by the processor.
[0137] The processor referred to here refers to a processor in a broad sense, including a general-purpose processor (such as a central processing unit (CPU)), or a dedicated processor (such as a graphics processing unit (GPU), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a programmable logic device, etc.).
[0138] Furthermore, the actions of the processors in the embodiments and reference examples can be achieved not only by one processor but also by cooperation of multiple processors located in physically distant locations. Figure 1The processing actions of each component are not limited to the order described in the above embodiment and can also be changed appropriately.
[0139] In the above, the embodiment configured as the mobile terminal 100 has been described, but the present invention can also be embodied as an information processing device (for example, a personal computer) other than the mobile terminal 100 .
Claims
1. An information processing device, comprising: an accepting means for accepting a designation from a user regarding an order of a plurality of regions in an image; a generating means for generating output data corresponding to the image, in which the electronic data on each of the plurality of regions is arranged in the order; as well as A component that receives a designation of an output format of the output data on the image displayed on the screen, The generating means generates the output data in the designated output format according to a track drawn by a touch gesture performed by the user.
2. The information processing device according to claim 1, wherein: The receiving unit receives, from the user, a selection of a template suitable for the image from among a plurality of templates defining the order.
3. The information processing device according to claim 2, wherein: The receiving unit displays the template superimposed on the image displayed on the screen in a manner that the image is visible, and receives an instruction from the user as to whether to apply the displayed template to the image.
4. The information processing device according to claim 2 or 3, wherein: The information processing device further comprises: a segmentation component, which segments the image into the plurality of regions according to the lines or non-character parts contained in the image, The receiving unit preferentially presents a template suitable for the arrangement pattern of the plurality of regions divided by the dividing unit to the user as a selection target, starting from among the plurality of templates.
5. The information processing device according to claim 1, wherein: The receiving unit receives a designation of the order regarding the plurality of areas on the image displayed on the screen.
6. The information processing device according to claim 1, wherein: The receiving unit receives designation of the order by a touch gesture, the touch gesture passing through the plurality of areas of the image displayed on the screen in the order.
7. The information processing device according to claim 5 or 6, wherein: The receiving unit further receives, on the image displayed on the screen, a designation of an area in the plurality of areas that does not need to be digitized, The generating unit generates the output data excluding data of the area designated as the area not requiring electronicization.
8. The information processing device according to claim 5 or 6, wherein: The receiving unit further receives a designation of an image import area on the image displayed on the screen, the image import area being an area to be imported in the form of image data in the plurality of areas, Regarding the image import area among the multiple areas, the output data generated by the generating component includes the image data of the area as the electronic data, and regarding the area other than the image import area among the multiple areas, the output data generated by the generating component includes text data of the character recognition result for the image of the area as the electronic data.
9. The information processing device according to any one of claims 1, 2, 3, 5, and 6, further comprising: A means for receiving a designation of the order of a plurality of images, i.e., the order of images, The receiving unit receives, for each of the plurality of images, a designation of the order regarding a plurality of regions in the image, The generating unit arranges the output data on each of the plurality of images in the order of the images, thereby generating the output data on the plurality of images.
10. A computer-readable storage medium storing a program for causing a computer to function as: An accepting component accepts sequential designation of a plurality of regions in an image from a user; a generating means for generating output data corresponding to the image, in which the electronic data on each of the plurality of regions is arranged in the order; and A component that receives a designation of an output format of the output data on the image displayed on the screen, The generating means generates the output data in the designated output format according to a track drawn by a touch gesture performed by the user.
