A data processing method and device
By extracting data from invoice images and using image recognition technology and websocket technology, automatic data entry is realized, solving the problem of low data processing efficiency in the existing technology, improving processing efficiency and saving manpower and time.
Patent Information
- Application Number
- CN201811485976.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-12-06
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2038-12-06
AI Technical Summary
The data processing efficiency in the existing technology is low and consumes a lot of manpower and time. As a result, the ticket clerk needs to manually enter each invoice one by one during the reverse process operation of the invoice. The cumbersome operation seriously restricts the processing efficiency.
By obtaining the data to be entered from the picture of the document to be processed, using image recognition technology and websocket long connection, the data to be entered is pushed to the data entry page of the browser corresponding to the identity identifier, realizing automatic data entry processing.
It improves data processing efficiency, saves manpower and time costs, simplifies the operation process of ticket clerks, and makes data entry more efficient and automated.
Smart Images

Figure CN111291290B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data processing method and device. Background Art
[0002] In many business scenarios, data needs to be entered and processed. For example, in business scenarios in the e-commerce field, customers often need to send invoices back for various reasons such as returns, multiple stamps, unclear password area, customer qualification changes, damaged invoices, unclear stamps, change of subjects, etc., waiting for them to be invalidated or reissued. The bill clerk needs to enter the invoice data into the system for subsequent reverse operations.
[0003] In the existing solution, the billing clerk needs to manually enter the many invoices returned by customers into the invoice system one by one and perform the reverse process of the invoice. The cumbersome manual operation has seriously restricted the processing efficiency of the billing clerk.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0005] Data processing efficiency is low and consumes a lot of manpower and time. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a data processing method and device, which can realize automatic data entry processing, improve data processing efficiency, and save manpower and time costs.
[0007] To achieve the above objective, according to one aspect of an embodiment of the present invention, a data processing method is provided.
[0008] A data processing method comprises: obtaining data to be entered from a picture of a document to be processed, wherein the data to be entered carries an identity identifier; and pushing the data to be entered to a data entry page of a browser corresponding to the identity identifier to perform data entry processing.
[0009] Optionally, the step of obtaining the data to be entered from the picture of the document to be processed includes: converting the document to be processed into a picture through an image acquisition device associated with a designated page; calling an image recognition interface through the designated page to perform image recognition on the picture to obtain the data to be entered.
[0010] Optionally, the image acquisition device is a camera device embedded in the designated page.
[0011] Optionally, before the step of obtaining the data to be entered from the image of the document to be processed, it includes: establishing a websocket (network socket) long connection with the browser of each user to save the user identity of each browser to the local cache.
[0012] Optionally, the step of pushing the data to be entered to the data entry page of the browser corresponding to the identity identifier includes: pushing the data to be entered to the data entry page of the corresponding browser according to the matching relationship between the identity identifier carried in the data to be entered and the user identity identifier stored in the local cache; wherein the identity identifier carried in the data to be entered is the identity identifier of the user who logs in to the specified page.
[0013] Optionally, by adding the identity of the user who logs into the designated page to the image of the document to be processed, the data to be entered carries the identity.
[0014] Optionally, after the step of calling an image recognition interface through the designated page to perform image recognition on the picture to obtain the data to be entered, the identity of the user who logs into the designated page is added to the data to be entered.
[0015] According to another aspect of an embodiment of the present invention, a data processing device is provided.
[0016] A data processing device includes: a data acquisition module, used to obtain data to be entered from a picture of a document to be processed, wherein the data to be entered carries an identity identifier; and a data entry module, used to push the data to be entered to a data entry page of a browser corresponding to the identity identifier for data entry processing.
[0017] Optionally, the data acquisition module is further used to: convert the document to be processed into a picture through an image acquisition device associated with a designated page; call an image recognition interface through the designated page to perform image recognition on the picture to obtain the data to be entered.
[0018] Optionally, the image acquisition device is a camera device embedded in the designated page.
[0019] Optionally, an identity storage module is also included, which is used to establish a websocket long connection with each user's browser to save the user identity of each browser to a local cache.
[0020] Optionally, the data entry module includes a data push sub-module, which is used to: push the data to be entered to the data entry page of the corresponding browser based on the matching relationship between the identity identifier carried in the data to be entered and the user identity identifier stored in the local cache; wherein the identity identifier carried in the data to be entered is the identity identifier of the user who logs in to the specified page.
[0021] Optionally, the data acquisition module includes a first identification adding submodule, which is used to add the identification of the user who logs into the designated page to the image of the document to be processed, so that the data to be entered carries the identification.
[0022] Optionally, the data acquisition module includes a second identification adding submodule, which is used to add the identity identification of the user who logs into the designated page to the data to be entered.
[0023] According to yet another aspect of the embodiments of the present invention, an electronic device is provided.
[0024] An electronic device comprises: one or more processors; a memory for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method provided by the present invention.
[0025] According to yet another aspect of an embodiment of the present invention, a computer readable medium is provided.
[0026] A computer readable medium stores a computer program, which implements the data processing method provided by the present invention when executed by a processor.
[0027] One embodiment of the above invention has the following advantages or beneficial effects: the data to be entered is obtained from the image of the document to be processed, and the data to be entered carries the identity identifier; the data to be entered is pushed to the data entry page of the browser corresponding to the identity identifier for data entry processing. Automatic data entry processing can be achieved, data processing efficiency is improved, and manpower and time costs are saved.
[0028] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0030] Figure 1 is a schematic diagram of main steps of a data processing method according to an embodiment of the present invention;
[0031] Figure 2 is a schematic diagram of an invoice reverse automation process according to an embodiment of the present invention;
[0032] Figure 3 is a websocket timing diagram according to an embodiment of the present invention;
[0033] Figure 4 is a schematic diagram of main modules of a data processing device according to an embodiment of the present invention;
[0034] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0035] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0037] Figure 1 It is a schematic diagram of main steps of a data processing method according to an embodiment of the present invention.
[0038] like Figure 1 As shown, the data processing method of the embodiment of the present invention mainly includes the following steps S101 to S102.
[0039] Step S101: Obtain the data to be entered from the image of the document to be processed.
[0040] Specifically, the document to be processed can be converted into a picture through an image acquisition device associated with a designated page; and an image recognition interface is called through the designated page to perform image recognition on the picture to obtain the data to be entered.
[0041] The designated page may be an HTML5 (Hypertext Markup Language 5) page. HTML5 is a markup language for describing web page documents and is the latest revised version of HTML (Hypertext Markup Language).
[0042] The image acquisition device may be a camera device embedded in a designated page, such as a camera embedded in an HTML5 page.
[0043] The HTML5 page can be opened through a mobile app (application) that establishes a network connection with the server, and the camera can be woken up to take a photo of the document to be processed, thereby converting the document to be processed into a picture, and triggering a call to the image recognition interface to perform image recognition on the picture taken, and identify the data to be entered in the picture. The mobile app will continue to send the identified data to be entered to the server, so that the server can obtain the data to be entered in the document to be processed through the above method.
[0044] The data to be entered obtained by the server carries an identity identifier, which is the identity identifier of the user who logged in to the above-mentioned specified page. Specifically, the user logs in to the mobile app, opens the HTML5 page, takes a photo of the document to be processed through the camera, and performs image recognition. Then, the data to be entered will carry the identity identifier used by the user when logging in to the app.
[0045] In one implementation, the identity of the user who logged into the designated page may be added to the image of the document to be processed, so that the identity is carried in the data to be entered.
[0046] In another embodiment, after calling the image recognition interface through the specified page and performing image recognition on the picture to obtain the data to be entered, the identity of the user who logs in to the specified page is added to the data to be entered so that the data to be entered carries the identity.
[0047] Before the server obtains the data to be entered from the image of the document to be processed, it establishes a long websocket connection with each user's browser to obtain the user identity from each browser and save the user identity of each browser to the local cache of the server. Websocket is a technology used for two-way data transmission between the browser and the server. The websocket protocol is implemented based on the TCP protocol (Transmission Control Protocol), including the handshake process and the subsequent multiple two-way transmission processes of data frames.
[0048] The browser may be a browser on a PC (personal computer) or a browser on a mobile device (such as a mobile phone).
[0049] Step S102: Push the data to be entered to the data entry page of the browser corresponding to the carried identity identifier to perform data entry processing.
[0050] Specifically, in step S102 , the server may push the data to be entered to a data entry page of the corresponding browser according to a matching relationship between the identity carried in the data to be entered and the user identity stored in the local cache.
[0051] The embodiment of the present invention can be used in the reverse return scenario of e-commerce invoices. The data processing method of the present invention is introduced below by taking the invoice data entry processing in this scenario as an example. It should be noted that the data processing method of the present invention is not limited to this scenario, but can be used in all scenarios where data in non-electronic media needs to be entered and processed.
[0052] Figure 2 The figure is a schematic diagram of the reverse automated processing flow of invoices according to an embodiment of the present invention.
[0053] After the billing clerk has collected the invoices, he needs to enter the invoice number, invoice code, various amounts, headings, ticket types, invoice date and other data on each invoice into the reverse data entry page, i.e., the data entry page. The data processing flow of the embodiment of the present invention can solve the problem of the billing clerk manually entering invoice data, which is cumbersome. Specifically, through image recognition and TCP long connection full-duplex technology, the billing clerk only needs to hold a mobile phone and take photos continuously through the company's internal app, which can replace the current complicated manual entry operation. Figure 2 Introduce the specific process.
[0054] like Figure 2 As shown in the figure, the bill clerk logs in to the company's internal app through the mobile phone and opens the HTML5 page (i.e. Figure 2 H5 page), wake up the camera embedded in the HTML5 page;
[0055] Before or after this, the user (i.e. the bill clerk) logs into the PC (personal computer) invoice system and enters the reverse data entry page, which corresponds to Figure 2 Page 1, Page 2, Page 3 in
[0056] The bill clerk uses a camera to take photos of the collected invoices, converts the invoices in his hand into pictures, and calls the image recognition interface provided by OCR (image recognition tool) through JSF (JavaServer Faces, a distributed service framework for high-performance, transparent RPC (remote service call)) technology to perform image recognition on the content in the picture and return the parsed invoice text information (i.e., invoice data). If the parsing (image recognition) is successful, the invoice text information is put into MQ (message queue, a communication method between applications). If the parsing fails, the current process ends. Among them, the invoice data carries the identity used by the bill clerk when logging into the company's internal app.
[0057] After the invoice text information is put into MQ, the message is sent through MQ, and the content of the message includes the invoice text information. When sending messages through MQ, MQ message publishing and subscription, using the broadcast mode of MQ, each consumer (i.e. Figure 2 In the example, consumer1, consumer2, and consumer3 will consume messages, thus ensuring that messages will be pushed to users on each websocket server.
[0058] The server, as a consumer, consumes the messages in the MQ to push the invoice data to each connected user interface, i.e., page 1, page 2, and page 3. The server pushes the invoice data to the user's browser through a websocketsession (network socket session) as a pipeline. A session (the embodiment of the present invention refers to a websocketsession) is a series of sessions in which the browser and the server interact. After the server establishes a session, it subsequently interacts with the browser through a session id (identifier) within the validity period of the session.
[0059] By embedding the camera function in the HTML5 page on the mobile phone, it can be ensured that the mobile phone can be responsible for taking photos continuously without page jumps, while the PC is responsible for displaying the data, and the entire data processing operation is clear and simple.
[0060] It should be noted that the present invention is not limited to this implementation method, and operations such as taking photos of invoices, image recognition, and entering invoice data can also be implemented based on mobile devices (such as mobile phones, etc.). That is, the billing clerk logs in to the company's internal app through the mobile phone, opens the HTML5 page (i.e. Figure 2 H5 page), wake up the camera embedded in the HTML5 page, take a photo of the collected invoices, then call the image recognition interface for image recognition, return the parsed invoice data, put the invoice data into mq, and then the bill clerk switches to the login page of the mobile invoice system to log in to the data entry page. The server consumes the messages in mq to push the invoice data to the data entry page where the bill clerk logs in according to the identity carried by the invoice data.
[0061] The server pushes the invoice data to the data entry page, such as page 1, page 2, and page 3, using websocket full-duplex communication technology. The websocket timing diagram is as follows: Figure 3 shown.
[0062] Figure 3 The process of establishing a websocket persistent connection between a websocket server (i.e., a server) and a client in an embodiment of the present invention is shown. The browser of each user is the client, or the websocket client. Figure 2 In the embodiment shown, the data entry pages of each browser are page 1, page 2, and page 3, and the browser is a PC browser.
[0063] The user opens a browser to log in to the PC invoice system to enter the data entry page, and establishes a long connection with the server through the handshake protocol. Before the handshake protocol is reached, the user information (i.e., the user's identity) of the logged-in user is saved in the websocketsession through the handshakeInterceptor (interceptor). After the long connection is established, the server saves all sessions in the websocketsession to the server's local cache. After receiving the invoice data obtained by taking a photo on the mobile phone of the app, the server reads the identity carried in the invoice data and the user identity in the session saved in the server's local cache, and pushes the invoice data to the corresponding browser's data entry page according to the matching relationship between the two. For example, if the identity carried in the invoice data is XX, and the user identity in the session saved in the server's local cache also includes XX, then the invoice data is pushed to the data entry page of the browser of user XX. It should be noted that the embodiment of the present invention supports the situation where user XX opens two or more data entry pages at the same time. If the user opens two or more data entry pages, the invoice data will be pushed to all data entry pages opened by the user.
[0064] Figure 4 4 is a schematic diagram of main modules of a data processing device according to an embodiment of the present invention.
[0065] The data processing device 400 of the embodiment of the present invention mainly includes: a data acquisition module 401 and a data entry module 402 .
[0066] The data acquisition module 401 is used to obtain the data to be entered from the image of the document to be processed.
[0067] The data acquisition module 401 can be specifically used to: convert the document to be processed into a picture through an image acquisition device associated with a specified page; call an image recognition interface through the specified page to perform image recognition on the picture to obtain the data to be entered.
[0068] The image acquisition device may be a camera device embedded in the specified page.
[0069] In one embodiment, the data acquisition module 401 may include a first identification adding submodule for adding an identification of a user who logs into a specified page to the image of the document to be processed, so that the data to be entered carries the identification.
[0070] In another embodiment, the data acquisition module 401 may include a second identification adding submodule, which is used to add the identification of the user who logs into the specified page to the data to be entered, so that the data to be entered carries the identification.
[0071] The data entry module 402 is used to push the data to be entered to the data entry page of the browser corresponding to the identity carried by the data to be entered, so as to perform data entry processing.
[0072] The data processing device 400 may further include an identity storage module, which is used to establish a websocket persistent connection with each user's browser to save the user identity of each browser into a local cache.
[0073] The data entry module 402 may include a data push submodule, which is used to: push the data to be entered to the data entry page of the corresponding browser based on the matching relationship between the identity carried in the data to be entered and the user identity stored in the local cache; wherein the identity carried in the data to be entered is the identity of the user who logs in to the specified page.
[0074] In addition, the specific implementation content of the data processing device in the embodiment of the present invention has been described in detail in the above-mentioned data processing method, so the repeated content will not be described again here.
[0075] Figure 5 An exemplary system architecture 500 is shown to which the data processing method or data processing device according to the embodiment of the present invention can be applied.
[0076] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0077] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0078] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0079] The server 505 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 501, 502, and 503. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0080] It should be noted that the data processing method provided in the embodiment of the present invention is generally executed by the server 505 or the terminal devices 501 , 502 , 503 , and accordingly, the data processing device is generally arranged in the server 505 or the terminal devices 501 , 502 , 503 .
[0081] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0082] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device or server suitable for implementing an embodiment of the present application. Figure 6 The terminal device or server shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0083] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0084] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0085] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present application are executed.
[0086] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0087] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0088] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a data acquisition module and a data entry module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the data acquisition module may also be described as "a module for obtaining data to be entered from a picture of a document to be processed".
[0089] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining data to be entered from a picture of a document to be processed, the data to be entered carrying an identity identifier; pushing the data to be entered to a data entry page of a browser corresponding to the identity identifier for data entry processing.
[0090] According to the technical solution of the embodiment of the present invention, the data to be entered is obtained from the image of the document to be processed, and the data to be entered carries an identity identifier; the data to be entered is pushed to the data entry page of the browser corresponding to the identity identifier to perform data entry processing. Automatic data entry processing can be achieved, data processing efficiency is improved, and manpower and time costs are saved.
[0091] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data processing method, characterized in that: include: Obtaining data to be entered from the image of the document to be processed, wherein the data to be entered carries an identity identifier; Pushing the data to be entered to the data entry page of the browser corresponding to the identity identifier to perform data entry processing; The step of obtaining the data to be entered from the image of the document to be processed includes: Converting the to-be-processed document into an image through an image acquisition device associated with a designated page; Calling an image recognition interface through the designated page to perform image recognition on the picture to obtain the data to be entered; Before the step of obtaining the data to be entered from the image of the document to be processed, the method includes: establishing a network socket long connection with the browser of each user to save the user identity of each browser to the local cache; The step of pushing the data to be entered to the data entry page of the browser corresponding to the identity identifier includes: according to the matching relationship between the identity identifier carried in the data to be entered and the user identity identifier stored in the local cache, the data to be entered is placed into MQ, and the message containing the data to be entered is sent by MQ to push the data to be entered to the data entry page of the corresponding browser; wherein the identity identifier carried in the data to be entered is the identity identifier of the user who logs in to the designated page.
2. The method according to claim 1, characterized in that: The image acquisition device is a camera device embedded in the designated page.
3. The method according to claim 1, characterized in that: By adding the identity of the user who logged into the designated page to the image of the document to be processed, the data to be entered carries the identity.
4. The method according to claim 1, characterized in that: After the step of calling the image recognition interface through the designated page, performing image recognition on the picture, and obtaining the data to be entered, the identity of the user who logs in to the designated page is added to the data to be entered.
5. A data processing device, characterized in that: include: A data acquisition module, used to obtain the data to be entered from the image of the document to be processed, wherein the data to be entered carries an identity identifier; A data entry module, used to push the data to be entered to the data entry page of the browser corresponding to the identity identifier to perform data entry processing; The data acquisition module is also used for: Converting the to-be-processed document into an image through an image acquisition device associated with a designated page; Calling an image recognition interface through the designated page to perform image recognition on the picture to obtain the data to be entered; The identity storage module is used to: establish a network socket long connection with each user's browser to save the user identity of each browser to a local cache; The data entry module includes a data push submodule, which is used to: put the data to be entered into MQ according to the matching relationship between the identity carried in the data to be entered and the user identity stored in the local cache, and push the data to be entered to the data entry page of the corresponding browser through a message containing the data to be entered sent by MQ; wherein the identity carried in the data to be entered is the identity of the user who logs in to the specified page.
6. The device according to claim 5, characterized in that The image acquisition device is a camera device embedded in the designated page.
7. The device according to claim 5, characterized in that The data acquisition module includes a first identification adding submodule, which is used to: The identity of the user who logs into the designated page is added to the image of the document to be processed, so that the data to be entered carries the identity.
8. The device according to claim 5, characterized in that The data acquisition module includes a second identification adding submodule, which is used to: The identity of the user who logs in to the specified page is added to the data to be entered.
9. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 4.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Data obtaining method and device, server, and storage medium
CN108304815A
