Image recognition method, device, computer equipment and medium combining RPA and AI
By combining RPA and AI image recognition methods, and using RPA robots for image recognition and text matching search, the problem of high model training costs in the existing technology is solved, efficient and accurate image recognition is achieved, and costs are reduced.
Patent Information
- Application Number
- CN202011242372.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-08-26
- Filing Date
- 2020-11-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-11-09
AI Technical Summary
Existing image recognition technology requires a large number of manually annotated sample images for model training, resulting in high costs.
Combining RPA and AI, the target image is obtained through the AI platform, the RPA robot is used for text recognition, and the recognized text information is used for matching search without additional model training to achieve image recognition.
In specific scenarios, it reduces the cost of image recognition while ensuring the recognition effect, improving work efficiency and data processing accuracy.
Smart Images

Figure CN112381087B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image recognition, and specifically to an image recognition method, apparatus, computer equipment and medium that combine RPA (Robotic Process Automation) and AI (Artificial Intelligence). Background Art
[0002] Robotic Process Automation (RPA) simulates human operations on computers through specific "robot software" and automatically executes process tasks according to rules. Artificial Intelligence (AI) is a technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. The application of AI-based image recognition is becoming more and more common.
[0003] At present, image recognition technology usually uses a pre-trained model to recognize images. Therefore, a large number of manually annotated sample images are required for model training in order to perform better image recognition, which is costly. Summary of the invention
[0004] The embodiments of the present application disclose an image recognition method, apparatus, computer equipment and medium that combine RPA and AI. In specific scenarios, better image recognition effects can be obtained without additional model training, thereby greatly reducing the cost of image recognition.
[0005] In a first aspect, an embodiment of the present application discloses an image recognition method combining RPA and AI, including: an AI platform obtains a target image through an RPA robot, and performs text recognition on the target image to obtain at least one text information;
[0006] The AI platform identifies first text information for positioning from the text information;
[0007] The AI platform uses the first text information to search the text information for second text information that matches the first text information;
[0008] The AI platform feeds back each first text information and the second text information matching it to the RPA robot.
[0009] In a second aspect, the present application embodiment discloses an AI platform, including:
[0010] An acquisition module, used to acquire a target image through an RPA robot, and perform text recognition on the target image to acquire at least one piece of text information;
[0011] An identification module, used to identify a first text message used for positioning in the at least one text message;
[0012] A matching module, configured to search the at least one text message for a second text message that matches the first text message;
[0013] A feedback module is used to feed back each of the first text information and the second text information matching it to the RPA robot.
[0014] In a third aspect, an embodiment of the present application discloses an image recognition system combining RPA and AI, characterized in that it comprises: the AI platform, business system and RPA robot described in claim 10;
[0015] The business system obtains the image by photographing with a camera, and sends the image to the RPA robot;
[0016] The RPA robot sends the image to the AI platform for processing, generates an image recognition result and feeds it back to the RPA robot;
[0017] The RPA robot sends the image recognition result to the database of the business system for storage.
[0018] In a fourth aspect, an embodiment of the present application discloses a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the image recognition method combining RPA and AI as described in the first aspect is implemented.
[0019] In a fifth aspect, an embodiment of the present application discloses a computer-readable storage medium, which, when executed by a processor, implements the image recognition method combining RPA and AI as described in the first aspect.
[0020] The embodiment of the present application combines the image recognition method of RPA and AI, and can use the first text used for positioning to search for matching information without the need for additional model training for text recognition. This effectively reduces the cost of image recognition while ensuring the recognition effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 A schematic diagram of the structure of an image recognition system combining RPA and AI provided in an embodiment of the present application;
[0023] Figure 2 This is a flowchart of an image recognition method combining RPA and AI provided in an embodiment of the present application;
[0024] Figure 3 is an example diagram of image recognition in an embodiment of the present application;
[0025] Figure 4 is a flowchart of another image recognition method combining RPA and AI provided in an embodiment of the present application;
[0026] Figure 5 This is a flowchart of another image recognition method combining RPA and AI provided in an embodiment of the present application;
[0027] Figure 6 is a flowchart of another image recognition method combining RPA and AI provided in an embodiment of the present application;
[0028] Figure 7 is a flowchart of another image recognition method combining RPA and AI provided in an embodiment of the present application;
[0029] Figure 8 is a block diagram of an AI platform provided in an embodiment of the present application;
[0030] Fig. 9 It is a schematic diagram of the structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0033] The contents provided in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
[0034] Specifically, this application proposes an image recognition method that combines RPA and AI, which realizes image acquisition, recognition and feedback through an AI platform. Through the combination of RPA technology and OCR technology, it can help users extract text information from images more efficiently, greatly improve work efficiency and improve the accuracy of data processing.
[0035] In actual applications, the images received by RPA robots come from many different businesses, most of which are open images. The structure, direction, size, etc. of the text content in the images are different. The image recognition method combining RPA and AI proposed in this application can process the open images described above, and does not require additional model training for specific scenarios, effectively reducing the cost of image recognition.
[0036] In order to make the image recognition method combining RPA and AI described in the embodiment of the present application more clear to those skilled in the art, firstly, Figure 1 Describe an image recognition system that combines RPA and AI.
[0037] Figure 1 A schematic diagram of the structure of an image recognition system combining RPA and AI provided in an embodiment of the present application.
[0038] like Figure 1 As shown, the system includes: an AI platform 10, an RPA robot 20 and a business system 30.
[0039] The business system 30 obtains an image by photographing it with a camera, or the business system 30 obtains an image by scanning it with a scanner and sends it to the RPA robot 20 .
[0040] The RPA robot 20 sends the image to the AI platform 10 for processing, generates an image recognition result and feeds it back to the RPA robot 20.
[0041] The RPA robot 20 sends the image recognition result to the database of the business system 30 for storage.
[0042] In the embodiment of the present application, the AI platform 10 can provide professional and comprehensive process automation solutions for enterprises and individuals. The RPA robot 20 can intelligently understand the existing applications of the enterprise through the user interface, and automate routine operations based on rules, such as automatically and repeatedly reading emails, reading office software components, operating databases, web pages and client software, etc., collecting data, performing tedious calculations, generating files and reports in large quantities, and completing boring file checks, etc. It can greatly reduce the investment in labor costs, effectively improve the existing office efficiency, and complete work accurately, stably and quickly.
[0043] As an example of a scenario, such as a comprehensive municipal service window, the RPA robot 20 receives various application material images collected by the business system 30, and then sends them to the AI platform 10, so that the AI platform 10 extracts the text in the application material images to form actionable text information, so as to achieve digitization and de-humanization.
[0044] Among them, the material images received by the RPA robot 20 are usually open data, coming from different application scenarios. This application integrates RPA and OCR (Optical Character Recognition) technology, so that the AI platform 10 can process text extraction from various types of images and the capabilities of the RPA robot 20. In addition, the RPA robot 20 sends the recognized text information to the business system 30 (such as an identity reporting system) to realize automatic entry into the municipal service system and improve the processing efficiency of the municipal service window.
[0045] Figure 2 : is a flowchart of an image recognition method combining RPA and AI provided in an embodiment of the present application. Figure 2 As shown, the image recognition method combining RPA and AI includes the following steps:
[0046] S1: The AI platform obtains the target image through the RPA robot and performs text recognition on the target image to obtain at least one piece of text information.
[0047] The image may be recognized by using optical character recognition (OCR) technology, and text information may be generated according to the recognized characters from the image.
[0048] Furthermore, the text information can be divided into multiple pieces according to the spacing between the recognized characters, semantic information, etc. For example, the character spacing between two consecutive characters can be identified in turn. If the character spacing is less than or equal to a preset distance, it is determined that the two characters belong to the same text information. If the character spacing is greater than the preset distance, it is determined that the latter character and the former character do not belong to the same text information, or, in horizontal text, the characters in the same horizontal row belong to the same text information, and in vertical text, the characters in the same vertical row belong to the same text information. It should be understood that a variety of text information division methods can be used independently and / or in combination, and this application does not limit this.
[0049] S2: The AI platform identifies first text information for positioning from the text information.
[0050] Optionally, the first text information used for positioning may be a start word, an end word, etc. that facilitates text recognition.
[0051] For example, when performing image recognition of an ID card, "name", "gender", "ethnicity", etc., which are used to extract identity information, can be used as starting words to facilitate obtaining the identity information content through search. Or, when performing image recognition of an invoice, "name", "taxpayer identification number", etc., which are used to extract taxpayer information, can be used as starting words.
[0052] It should be understood that each start word can be used as the end word of the previous start word.
[0053] S3: The AI platform uses the first text information to search for second text information matching the first text information from the text information.
[0054] The second text information that matches the first text information may be target information searched based on the starting word, for example, identity information in an ID card, taxpayer information in an invoice, and the like.
[0055] S4: The AI platform feeds back each first text message and the second text message matching it to the RPA robot.
[0056] It should be noted that when providing feedback, you can choose the feedback method according to the feedback needs, for example, Figure 3 As shown, the first text information and the second text information that matches it are displayed in pairs. For example, when connecting with a system for municipal services, the corresponding area in the municipal service system can be filled in according to the result of image recognition, thereby effectively reducing the repeated input of routine information by users and / or municipal service personnel, thereby effectively reducing labor costs and avoiding problems such as text errors caused by manual input.
[0057] Therefore, the embodiment of the present application, by combining the image recognition method of RPA and AI, can use the first text used for positioning to search for matching information without the need for additional model training, thereby effectively reducing the cost of image recognition while ensuring the recognition effect in specific scenarios.
[0058] It should be understood that the use of OCR for text recognition itself requires model training. This application is based on the use of OCR for text recognition, and can effectively and quickly recognize and use text in specific scenarios without the need for additional model training, thereby improving the efficiency of text recognition and extraction.
[0059] As a feasible embodiment, acquiring the target image may include: acquiring the target image according to a preset storage location, or grabbing the target image from an interactive interface according to a preset area.
[0060] For example, when connecting with the system used for municipal services, when people are handling business, the municipal service window staff can first verify their identity based on the scanned ID card image and handle the business. The AI platform then stores the ID card image for later archiving, verification, and organization of the business according to the stored ID card image. Alternatively, when handling some business, the scanned ID card image can be directly captured and image recognized, and at the same time, some application forms can be entered based on the first text information, effectively reducing the workload of window staff and people handling business, and reducing the input error rate.
[0061] Furthermore, if Figure 4 As shown, identifying first text information for positioning from text information includes:
[0062] S21: The AI platform matches each text message with the preset positioning text.
[0063] It should be noted that the positioning text can be set in a template according to the scenario of the image recognition application. For example, if it is applied in a municipal service department, positioning text for ID card images and positioning text for business license images can be preset; if it is applied in a tax department, positioning text for business license images and positioning text for invoice images can be preset.
[0064] S22: The AI platform uses the text information that matches the positioning text in the text information as the first text information.
[0065] Specifically, the text information obtained through the general text recognition OCR technology is matched with the preset positioning text. If the text information obtained through the OCR technology matches the positioning text, it means that the text is the first text information. If the text information obtained through the OCR technology does not match the positioning text, it means that the text is the alternative text information.
[0066] Optionally, the text information and the positioning text can be matched and identified using a cosine matching algorithm, and when the degree of match between the text information and the positioning text is greater than or equal to a preset matching degree, it is determined that the text information and the positioning text are consistent; when the degree of match between the text information and the positioning text is less than a preset matching degree, it is determined that the text information and the positioning text are inconsistent.
[0067] Furthermore, if Figure 5 As shown, using the first text information, searching the text information for the second text information matching the first text information includes:
[0068] S31: The AI platform obtains the first text area of the first text information and the second text area of the candidate text information respectively.
[0069] The candidate text information is text information between the first text information and the first text information adjacent to it along the search direction.
[0070] It should be noted that the text area may be the spatial area where the characters in the text information are located or the text box space used to accommodate the characters, etc. It should be understood that the text area has width and height. In horizontal text, the height of the text area may be the height of the text font, and the width of the text area may be the product of the width of the text font and the number of characters. In vertical text, the height of the text area may be the product of the height of the text font and the number of characters, and the width of the text area may be the width of the text font.
[0071] It should also be noted that due to factors such as the close distance between texts, the positioning text information and the alternative text information are easily extracted as one piece of text information. At this time, the positioning text information and the alternative text information need to be segmented in order to determine the text areas of the positioning text information and the alternative text information respectively.
[0072] The last character of the positioning text information may be used as a segmentation point, that is, the part after the last character of the positioning text is divided into candidate text information, and the part before the last character is the positioning text information.
[0073] S32: The AI platform obtains the matching degree between each second text region and the first text region.
[0074] It should be noted that only when there are multiple second text regions, the matching degree between the second text region and the first text region is further determined, that is, if there is only one candidate text information, there is no need to determine the matching degree between the second text region and the first text region. It should be understood that, usually, due to text habit, there is only one candidate text information between any two first text information. However, due to, for example, printing errors in photocopies, it is easy to cause multiple candidate text information in the same region, and multiple candidate text information overlaps. In this case, it is necessary to analyze the multiple text information to determine the real second text information that matches the first text information.
[0075] As a possible embodiment, Figure 6 As shown, obtaining the matching degree between each second text region and the first text region includes:
[0076] S321: The AI platform extracts matching parameters from the first text area and the second text area respectively according to the search direction.
[0077] It should be noted that the search direction may be a direction for searching the second text information set according to demand.
[0078] Further, the matching parameters may include the length of the area perpendicular to the search direction. For example, when the search direction is left and right, the matching parameter may be the height of the text font or the height of the text box, that is, the first matching parameter of the first text area is the height of the text font in the located text information, and the second matching parameter of the second text area is the height of the text font in the alternative text information, or, the first matching parameter of the first text area is the height of the text box in the located text information, and the second matching parameter of the second text area is the height of the text box in the alternative text information; similarly, when the search direction is up and down, the matching parameter may be the width of the font or the width of the text box.
[0079] It should be noted that before obtaining the matching parameters, the matching parameter range corresponding to the second text area set by the user according to the first text information may be obtained first, and then the actual matching parameters of the second text area may be determined according to the matching parameter range.
[0080] For example, the content of the address bar in the ID card is usually presented in the form of multiple lines of text due to the large number of characters. At this time, in order to ensure that all the text in the address bar can be extracted as the second text information, the area of the matching parameters can be expanded. For example, the upper border of the first text area is moved upward by 1 times the width and height, and the lower border is moved downward by 1 times the width and height, that is, a second text area with a height of 3 times the first text area is obtained. In other words, the area range of the three lines of text behind the first text area is obtained. At this time, the actual total matching area is determined according to the line height of each line of the three lines of text behind or the text box height.
[0081] S322: The AI platform obtains a matching degree by using an overlap between a second matching parameter of the second text region and a first matching parameter of the first text region.
[0082] As a possible embodiment, Figure 7 As shown, obtaining the matching degree by using the overlap amount of the second matching parameter of the second text area and the first matching parameter of the first text area includes:
[0083] S3221: The AI platform obtains the overlap between the second area length of the second text area and the first area length of the first text area.
[0084] Specifically, when the search direction is left and right, the area length can be the text box height of the text area, that is, the text box height of the second text area is obtained as the second area length, the text box height of the first text area is obtained as the first area length, and the overlap of the two text box heights is obtained. For example, if the length of the first area is 0.96 cm and the length of the second area is 1 cm, the overlap is 0.96 cm, or if the length of the first area is 0.96 cm and the length of the second area is 0.84 cm, the overlap is 0.84 cm.
[0085] S3222: The AI platform obtains the ratio of the overlap amount in the length of the second region, and uses the ratio as the matching degree between the corresponding second text region and the first text region.
[0086] That is to say, after obtaining the overlap amount, the proportion of the overlap amount in the length of the second area to which it belongs is further obtained. In the above embodiment, when the overlap amount is 0.96, the proportion can be 100%, that is, the matching degree is 100%; when the overlap amount is 0.84, the proportion can be 87.5%, that is, the matching degree is 87.5%.
[0087] S33: The AI platform uses the candidate text information with the highest matching degree as the second text information matching the first text information.
[0088] That is to say, for the above embodiment, the second text information with a matching degree of 100% can be regarded as the second text information matching the first text information.
[0089] Therefore, the present application can identify second text information whose text space is more similar to the first text information by matching multiple second text information with the first text information, thereby obtaining alternative text information that matches the first text information, and effectively improving the accuracy of the image recognition result.
[0090] As a feasible embodiment, the AI platform feeds back each first text information and the second text information matching it, including: the AI platform splices the second text information and feeds back the spliced second text information.
[0091] Specifically, in various picture information, such as address information in ID card pictures, there will be multiple lines of text corresponding to one positioning text information. At this time, the multiple second text information searched can be spliced to form a second text information that conforms to the actual text content of the picture for feedback, so as to make the image recognition result more accurate and facilitate subsequent feedback operations based on the picture recognition results.
[0092] It should be understood that before multiple lines of text are spliced together, the AI platform is required to sort the multiple second text information in a preset order to ensure the correctness of the spliced second text information.
[0093] It should also be understood that before the AI platform splices the second text information, it also includes: the AI platform identifies the second text information that allows feedback greater than a preset number.
[0094] That is to say, different feedback amounts can be set in different application scenarios. For example, when counting the province and city information of the address entered in the ID card information, even if the address information obtained through ID card image recognition corresponds to multiple second text information, since the province and city information usually only exists in the first text information, at this time, only the first information can be fed back, and there is no need to feed back too much second text information.
[0095] Therefore, it is necessary to identify whether the system allows a preset number of second text messages to be fed back before splicing and / or sorting. If the preset number of second text messages are allowed to be fed back, the multiple second text messages are spliced and / or sorted. If the preset number of second text messages are not allowed to be fed back, the identified second text messages that are adjacent to the first text message can be directly fed back.
[0096] Therefore, the present application can process the second text information according to the needs of the feedback scenario and obtain the most suitable second text information. While ensuring that the second text information meets the user's needs, it reduces the data processing volume and improves the speed of image recognition.
[0097] To sum up, the embodiment of the present application combines the image recognition method of RPA and AI, and can use the first text used for positioning to search for matching information without the need for additional model training. While ensuring the recognition effect in specific scenarios, it effectively reduces the cost of image recognition.
[0098] In order to implement the above embodiments, the present application also proposes an AI platform.
[0099] Figure 8 is a block diagram of an AI platform provided in an embodiment of the present application. Figure 8 As shown, the AI platform 10 includes:
[0100] The acquisition module 11 is used to acquire a target image and perform text recognition on the target image to acquire at least one piece of text information;
[0101] An identification module 12, configured to identify a first text message used for positioning in the at least one text message;
[0102] A matching module 13, configured to search the at least one text message for a second text message that matches the first text message;
[0103] The feedback module 14 is used to feed back each first text information and the second text information matching it.
[0104] Furthermore, the acquisition module 11 is specifically used to: acquire the target image according to a preset storage location; or capture the target image from an interactive interface according to a preset area.
[0105] Furthermore, the identification module 12 is specifically configured to: match each piece of the text information with a preset positioning text; and use the text information in the text information that matches the positioning text as the first text information.
[0106] Furthermore, the matching module 13 is specifically used to: respectively obtain a first text area of the first text information and a second text area of the alternative text information, wherein the alternative text information is the text information between the first text information and the first text information adjacent to it along the search direction; obtain the matching degree between each second text area and the first text area; and use the alternative text information with the highest matching degree as the second text information matched with the first text information.
[0107] Furthermore, the matching module 13 is specifically used to: extract matching parameters from the first text area and the second text area respectively according to the search direction; and obtain the matching degree by using the overlap between the second matching parameter of the second text area and the first matching parameter of the first text area.
[0108] Furthermore, the matching parameters include an area length perpendicular to the search direction, and the matching module 13 is specifically used to: obtain the overlap between the second area length of the second text area and the first area length of the first text area; obtain the proportion of the overlap in the first area length, and use the proportion as the corresponding matching degree between the second text area and the first text area.
[0109] Furthermore, the matching module 13 is specifically configured to segment the text information to obtain a first text region of the first text information and a second text region of the candidate text information.
[0110] Furthermore, the feedback module 14 is specifically configured to: splice the second text information, and feed back the spliced second text information.
[0111] Furthermore, the feedback module 14 is specifically configured to sort the plurality of second text information according to a preset order.
[0112] Furthermore, the feedback module 14 is specifically configured to: identify the second text information for which feedback is allowed to be greater than a preset amount.
[0113] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and will not be repeated here.
[0114] The embodiment of the present application combines the image recognition method of RPA and AI, and can use the first text used for positioning to search for matching information without the need for additional model training for text recognition. While ensuring the recognition effect in specific scenarios, it effectively reduces the cost of image recognition.
[0115] In order to implement the above embodiment, the present application also proposes an electronic device, Fig. 9 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Fig. 9 As shown, a memory 21, a processor 22, and a computer program stored in the memory 21 and executable on the processor 22.
[0116] When the processor 22 executes the program, the image recognition method combining RPA and AI provided in the above embodiment is implemented.
[0117] Furthermore, the computer device also includes:
[0118] The communication interface 23 is used for communication between the memory 21 and the processor 22 .
[0119] The memory 21 is used to store computer programs that can be run on the processor 22 .
[0120] The memory 21 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0121] The processor 22 is used to implement the image recognition combining RPA and AI as described in the above embodiment when executing the program.
[0122] If the memory 21, the processor 22 and the communication interface 23 are implemented independently, the communication interface 21, the memory 21 and the processor 22 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0123] Optionally, in a specific implementation, if the memory 21, the processor 22 and the communication interface 23 are integrated on a chip, the memory 21, the processor 22 and the communication interface 23 can communicate with each other through an internal interface.
[0124] The processor 22 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0125] The embodiment of the present application combines the image recognition method of RPA and AI, and can use the first text used for positioning to search for matching information without the need for model training for text recognition. This effectively reduces the cost of image recognition while ensuring the recognition effect.
[0126] In order to implement the above-mentioned embodiments, the embodiments of the present application propose a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the image recognition method combining RPA and AI described in the above-mentioned method embodiment is implemented.
[0127] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0128] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0129] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0130] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0131] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0132] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0133] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0134] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. An image recognition method combining RPA and AI, characterized in that: include: The AI platform obtains a target image through an RPA robot, and performs text recognition on the target image to obtain at least one piece of text information; the target image is an open image with different structures, directions, and sizes of the text in the image; The AI platform identifies first text information for positioning from the text information; The AI platform uses the first text information to search the text information for second text information that matches the first text information; the second text information is target information searched for by the first text information according to the starting word; The AI platform feeds back each of the first text information and the second text information matching the first text information to the RPA robot; The AI platform feeds back each of the first text information and the second text information matching the first text information, including: The AI platform identifies the second text information that allows feedback greater than a preset amount; The AI platform sorts the plurality of second text information in a preset order; The AI platform splices the second text information and feeds back the spliced second text information; The AI platform uses the first text information to search the text information for second text information matching the first text information, including: The AI platform segments the text information to obtain a first text region of the first text information and a second text region of the candidate text information; The AI platform respectively obtains a first text area of the first text information and a second text area of candidate text information, wherein the candidate text information is the text information between the first text information and the first text information adjacent to it along the search direction; The AI platform obtains a matching degree between each second text region and the first text region; The AI platform uses the candidate text information with the highest matching degree as the second text information matching the first text information.
2. The image recognition method combining RPA and AI according to claim 1, characterized in that: The AI platform identifies first text information for positioning from the text information, including: The AI platform matches each piece of text information with a preset positioning text; The AI platform uses the text information in the text information that matches the positioning text as the first text information.
3. The image recognition method combining RPA and AI according to claim 1, characterized in that: The AI platform obtains the matching degree between each second text region and the first text region, including: The AI platform extracts matching parameters from the first text area and the second text area respectively according to the search direction; The AI platform obtains the degree of matching by using an overlap between a second matching parameter of the second text region and a first matching parameter of the first text region.
4. The image recognition method combining RPA and AI according to claim 3, characterized in that: The matching parameter includes a region length perpendicular to the search direction, and the AI platform uses an overlap amount of a second matching parameter of the second text region and a first matching parameter of the first text region to obtain the matching degree, including: The AI platform obtains an overlap between a second region length of the second text region and a first region length of the first text region; The AI platform obtains the proportion of the overlap amount in the length of the first region, and uses the proportion as the matching degree between the corresponding second text region and the first text region.
5. An AI platform, characterized in that: include: An acquisition module, used to acquire a target image through an RPA robot, and perform text recognition on the target image to acquire at least one piece of text information; The target image is an open image with different structures, directions and sizes of characters in the image; An identification module, used to identify a first text message used for positioning in the at least one text message; A matching module, used to search the at least one text message for a second text message that matches the first text message; the second text message is the target information searched for by the first text message according to the starting word; A feedback module, used for feeding back each first text information and the second text information matching the first text information to the RPA robot; Wherein, the feedback module is specifically used for: Identifying the second text information that allows feedback greater than a preset amount; sorting the plurality of second text messages according to a preset order; splicing the second text information, and feeding back the spliced second text information; The matching module is specifically used for: The text information is segmented to obtain a first text region of the first text information and a second text region of the candidate text information; the first text region of the first text information and the second text region of the candidate text information are obtained respectively, wherein the candidate text information is the text information between the first text information and the first text information adjacent to it along the search direction; the matching degree between each second text region and the first text region is obtained; and the candidate text information with the highest matching degree is used as the second text information matching the first text information.
6. An image recognition system combining RPA and AI, characterized in that: include: The AI platform, business system and RPA robot described in claim 5; The business system obtains the image by photographing with a camera, and sends the image to the RPA robot; The RPA robot sends the image to the AI platform for processing, generates an image recognition result and feeds it back to the RPA robot; The RPA robot sends the image recognition result to the database of the business system for storage.
7. A computing device, characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the image recognition method combining RPA and AI as described in any one of claims 1 to 4 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, an image recognition method combining RPA and AI as described in any one of claims 1 to 4 is implemented.
