Data summarization method and device

Through automated data summary method, the operating system's clipboard is used to obtain data to be summarized from the software page, solving the problem of inefficient data summary in complex information systems by enterprises, achieving efficient and accurate data summary, and having flexibility .

CN118916088APending Publication Date: 2024-11-08NIO TECH ANHUI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410970283.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

Enterprises face the problem of inefficient data aggregation, especially in complex information systems, manual collection and summary of data requires a lot of effort, resulting in inefficiency and increased possibility of errors.

Method used

Through an automated data summary method, respond to software startup commands, determine the target area based on preset key position identification, use the operating system clipboard to obtain the data to be summarized from the software page, and summarize it to the specified file to reduce manual operation dependencies .

Benefits of technology

It improves the efficiency and accuracy of data aggregation, reduces the dependence of manual operations, and can flexibly apply to the data aggregation process of other software by modifying software startup commands and adding key position identifiers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916088A_ABST
    Figure CN118916088A_ABST
Patent Text Reader

Abstract

The invention is applicable to the technical field of data processing, and provides a data summarization method, which comprises the following steps of: in response to a current software starting command, automatically triggering a starting operation of a software page corresponding to the current software starting command; determining a target area in the software page based on a preset key position identifier; obtaining to-be-summarized data of a target area from the software page through a clipboard of an operating system; and summarizing the to-be-summarized data to a target file. By automatically executing the software starting command, the data extraction, the data summarization and other operations, the data summarization efficiency is improved, the dependence on manual operation in the data summarization process is reduced, and the problem of low efficiency in the data summarization process is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular, relates to a data aggregation method and device. Background Art

[0002] With the rapid development of information technology, the wave of digitalization has swept across various industries. In the process of pursuing production efficiency, management optimization and market competitiveness, enterprises continue to introduce and upgrade various business systems to realize the automation and informatization of business processes. However, in this process, the complexity of internal information systems of enterprises has gradually emerged. Faced with complex information systems, how to efficiently collect and summarize the required information has become a major challenge facing enterprises. Generally, for data that cannot be automatically collected online, manual collection is usually adopted. Frontline business personnel need to invest a lot of energy in manual summary and sorting, which not only reduces work efficiency, but also increases the possibility of errors.

[0003] Therefore, there is an urgent need for a method that can efficiently collect and summarize data resources to solve the technical problem of low efficiency in the current data aggregation process. Summary of the invention

[0004] The embodiments of the present application provide a data aggregation method and device, which can solve the technical problem of low aggregation efficiency during data aggregation.

[0005] In a first aspect, an embodiment of the present application provides a data aggregation method, comprising: in response to a current software startup command, automatically triggering a startup operation of a software page corresponding to the current software startup command; based on a preset key position identifier, determining a target area in the software page, wherein the target area contains data to be aggregated; obtaining the data to be aggregated in the target area from the software page through the clipboard of the operating system; and aggregating the data to be aggregated into a target file.

[0006] The data aggregation method provided in the embodiment of the present application automatically starts a software page containing data to be aggregated through a software startup command; then, based on a preset key position identifier, the target area in the software page is determined, and the data to be aggregated in the target area is obtained from the software page through the clipboard of the operating system; finally, the extracted data to be aggregated is aggregated into a specified file. This method improves the efficiency and accuracy of data aggregation by automating operations such as software startup commands, data extraction and aggregation, and reduces the reliance on manual operations during the data aggregation process. In addition, by modifying the software startup command and adding new key position identifiers, this method can be easily applied to the data aggregation process of other software, and has high flexibility.

[0007] In a possible implementation of the present application, the data aggregation method also includes: capturing the content displayed on the software page to obtain a screenshot; determining the target area in the software page based on a preset key position marker, including: determining the coordinates of the key position marker from the screenshot; determining the target area in the software page according to the coordinates of the key position marker.

[0008] In a possible implementation of the present application, obtaining the data to be summarized in the target area from the software page through the clipboard of the operating system includes: positioning the cursor of the operating system at the coordinates or the coordinates of the target area determined according to the coordinates; executing preset operation instructions to select the data to be summarized in the target area and copy it to the clipboard of the operating system; reading the data to be summarized from the clipboard.

[0009] In a possible implementation of the present application, after aggregating the data to be aggregated into the target file, the data aggregation method further includes: closing the currently launched software page; determining whether there is an unexecuted software startup command; if so, using one of the unexecuted software startup commands as the current software startup command.

[0010] In a possible implementation of the present application, there are multiple software startup commands, and the multiple software startup commands are stored in a startup command text according to a preset order. The data aggregation method also includes: reading the software startup commands that have not been executed as the current software startup command in sequence according to the order of the multiple software startup commands in the startup command text.

[0011] In a possible implementation of the present application, capturing the content displayed on the software page to obtain a screenshot includes: calling a screenshot thread to capture the content displayed on the screen at a preset interval to obtain a screenshot.

[0012] In a possible implementation of the present application, determining the coordinates of the key position marker from the screenshot includes: traversing the pixels in the screenshot according to a preset key position marker, and determining the coordinates of the key position marker in the screenshot.

[0013] In the second aspect, the present application provides a data aggregation device, including: a software page startup module, which is used to respond to the current software startup command and automatically trigger the startup operation of the software page corresponding to the current software startup command; a target area determination module, which is used to determine the target area in the software page based on a preset key position identifier, and the target area contains data to be aggregated; a data acquisition module, which is used to acquire the data to be aggregated in the target area from the software page through the clipboard of the operating system; a data aggregation module, which is used to aggregate the data to be aggregated into a target file.

[0014] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described above when executing the computer program.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method as described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art 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 any creative work.

[0017] Figure 1 It is a flowchart of a data aggregation method provided in an embodiment of the present application;

[0018] Figure 2 is a schematic diagram of a browser display page provided by an embodiment of the present application;

[0019] Figure 3 It is a schematic diagram of an Excel spreadsheet page provided in an embodiment of the present application;

[0020] Figure 4 is a schematic diagram of an Excel table select all button provided in an embodiment of the present application;

[0021] Figure 5 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0023] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0024] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0025] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0026] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0027] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0028] With the rapid development of information technology, the wave of digitalization has swept through various industries, especially the manufacturing industry. In the process of pursuing production efficiency, management optimization and market competitiveness, manufacturing companies have continuously introduced and upgraded various business systems, such as ERP (Enterprise Resource Planning), CRM (Customer Relationship Management), MES (Manufacturing Execution System), etc., to achieve automation and informatization of business processes. However, in this process, the complexity of the internal information system of the enterprise has gradually emerged, and the collection, aggregation and unified management of data have become a major challenge facing enterprises.

[0029] For example, in manufacturing companies, sales, production and other data cannot be put online for various reasons, but are stored by front-line business personnel in unstructured or semi-structured environments such as internal network disks, mailboxes, and internal online documents. This decentralized storage of data makes it difficult to aggregate and uniformly manage data between different departments and systems. Generally, for data that cannot be automatically collected online, manual collection is usually adopted, and front-line business personnel need to invest a lot of energy in manual aggregation and sorting, which not only reduces work efficiency, but also increases the possibility of errors.

[0030] Therefore, there is an urgent need for a solution that can collect and summarize data resources and realize data online, so as to bring together data scattered in various corners.

[0031] In order to illustrate the technical solution of the present application, specific embodiments are provided below.

[0032] See also Figure 1 The process of an embodiment of the data aggregation method shown, as an example but not a limitation, includes the following steps:

[0033] Step S100: In response to a current software startup command, automatically triggering a startup operation of a software page corresponding to the current software startup command.

[0034] It should be noted that the software startup command can be stored in a startup command text. A startup command text can contain one or more software startup commands. Any software startup command is used to start a software page in any software that contains data to be summarized.

[0035] It should be noted that the startup command text can be a script file or a configuration file, which contains software startup commands, each software startup command occupies a line or is separated by a specific delimiter, and is automatically executed after being read by the system. Among them, the current software startup command needs to be extracted according to the format and rules of the text file. For example, if the text file is a simple list, it is only necessary to read the first line or a specific line indexed in some way for reading.

[0036] For the software startup command read out, the command line interface (CLI) of the operating system or the corresponding API can be used to execute the software startup operation. Exemplarily, in Unix / Linux systems, a shell (such as Bash) can be used to execute the command, and in Windows systems, CMD or PowerShell can be used.

[0037] Specifically, the software startup command can be used to start a browser or an Excel spreadsheet, as well as any software page that needs to be started, and this application does not impose any restrictions on this.

[0038] Step S200: Based on a preset key position identifier, determine a target area in the software page, wherein the target area contains data to be summarized.

[0039] It should be noted that key location markers are usually visual elements that are easy to identify and locate on the software page. These markers can be color blocks, icons, specific text labels, or any other significant visual features. Their purpose is to provide one or more fixed reference points to accurately determine the location of the target area from the screenshot. By identifying key location markers, the target area of ​​the software page containing the data to be summarized can be quickly located. This is crucial for the automated data aggregation process because it ensures accurate extraction of data.

[0040] Step S300: obtaining the data to be summarized in the target area from the software page through the clipboard of the operating system.

[0041] It should be noted that the text extraction process in the software page can adopt the OCR text recognition method (Optical Character Recognition). The OCR technology is mainly based on image processing and machine learning algorithms. Its core process includes image preprocessing, feature extraction, character recognition and post-processing, so as to convert the text in the image into text format. However, the recognition effect of OCR depends largely on the quality of the input image. Image problems such as blur, tilt, and complex background may cause OCR recognition errors. If there are interfering elements in the image, such as watermarks, it may also cause trouble for OCR recognition. However, clipboard copying only cares about the visual content on the screen and has no specific requirements for image quality. In addition, the recognition effect of OCR may be greatly reduced for unconventional fonts, artistic characters or complex typesetting. Clipboard copying is not affected by fonts and typesetting, and can accurately copy any visual content. Therefore, it can be known that using the clipboard to complete the acquisition process of the data to be summarized has higher accuracy.

[0042] Step S400: Aggregate the data to be aggregated into a target file.

[0043] The data aggregation method provided in the embodiment of the present application automatically starts a software page containing data to be aggregated through a software startup command; then, based on a preset key position identifier, the target area in the software page is determined, and the data to be aggregated in the target area is obtained from the software page through the clipboard of the operating system; finally, the extracted data to be aggregated is aggregated into a specified file. This method improves the efficiency and accuracy of data aggregation by automating operations such as software startup commands, data extraction and aggregation, and reduces the reliance on manual operations during the data aggregation process. In addition, by modifying the software startup command and adding new key position identifiers, this method can be easily applied to the data aggregation process of other software, and has high flexibility.

[0044] In a possible implementation, the data aggregation method further includes: capturing the content displayed on the software page to obtain a screenshot; step S200 includes:

[0045] Step S201: determining the coordinates of key position markers from the screenshot;

[0046] Step S202: determining a target area in the software page according to the coordinates of the key position marker.

[0047] It should be noted that before executing the screenshot, you must first ensure that the software has been successfully started and its page is visible. That is, when determining the screenshot time, you need to consider the waiting time after executing the software startup command to ensure that the software page has been loaded when the screenshot is executed. Alternatively, within a period of time after the software startup command is executed, the screenshot operation is continuously executed to obtain a screenshot containing the software page.

[0048] It should also be noted that the entire screen display content can be captured, or only the area where the software page is located can be captured. For the screenshot operation, an existing screenshot tool can be used, and this application does not limit the specific screenshot method.

[0049] For example, see Figure 2 and Figure 3 , Figure 2 A browser display interface, which mainly includes an address bar, a search button, and search results; Figure 3 It is the display interface of the Excel table, which mainly includes the toolbar, select all button and data area.

[0050] The following is an example to illustrate the preset process of key location identification.

[0051] In one example, see Figure 3In the display interface of the Excel table shown, the target area can be the entire data area, or a certain row or several rows of data, or a certain column or several columns of data.

[0052] When the target area is the entire data area, a select all button can be preset as the key position identifier, because if the select all button is clicked, the entire data area can be directly selected. In this way, the target area in the software page is determined by the key position identifier;

[0053] Similarly, if the target area is a row or several rows of data, the row number grid of the row or several rows can be preset as the key position mark, because if the mouse clicks on the row number grid, the entire area of ​​the row can be directly selected;

[0054] When the target area is a column or several columns of data, the column number grid of the column or several columns can be preset as the key position marker. The reason is the same as above and will not be repeated here.

[0055] In another example, see Figure 2 The browser display interface shown, its target area can be the address bar, or it can be the area corresponding to the search results. For the above two cases, the search button can be preset as the key position identifier, the new page button or the page lock button can be preset as the key position identifier, and the buttons, dialog boxes and other special positions on other pages can also be preset as key position identifiers. As long as the target area can be determined by the key position identifier, therefore, this application does not limit the selection of the key position identifier.

[0056] It should be noted that when the key position markers are preset, the key position markers can be captured by taking screenshots and stored in a designated location so that they can be retrieved and used in subsequent steps.

[0057] It should also be noted that the process of determining the coordinates of the key position markers can use an image recognition library, such as OpenCV (Open Source Computer Vision Library). OpenCV is a powerful image processing library that can be used for tasks such as target detection, feature extraction, and image matching. The main process includes: (1) loading the screenshot into the image processing library; (2) identifying the key position marker to be identified. The key position marker can be a fixed image template (such as a screenshot of a button); (3) using the template matching function of OpenCV, searching for the area in the screenshot that matches the image template and returning the coordinates of the matching area.

[0058] In a possible embodiment of the present application, capturing the content displayed on the software page to obtain a screenshot includes:

[0059] The screenshot thread is called to take a screenshot of the screen display content at a preset interval to obtain a screenshot.

[0060] In order to better understand this solution, we first briefly introduce the daemon thread.

[0061] Threads are mainly divided into two categories: user threads and daemon threads. In JAVA language, both threads and thread pools are user threads by default, so user threads are also called ordinary threads. Daemon threads are also called background threads, service threads or daemon threads. Daemon threads serve user threads. When all user threads in the thread are executed, daemon threads will also end.

[0062] In this embodiment, the screenshot thread is a daemon thread, which is used to capture pixel data on the screen and save it as an image file. The screenshot thread serves the software startup thread (the software startup thread is used to start the corresponding software page according to the software startup instruction). When the software startup thread starts a software page, the screenshot thread starts to provide it with screenshot services.

[0063] Specifically, according to a preset interval (such as every second, every minute, etc.), the screenshot thread will trigger the screenshot operation at a fixed time. When the screenshot operation is triggered, the screenshot thread will capture the pixel data on the current screen and save it as an image file. Common formats include PNG, JPEG, etc. Since the operation of the screenshot thread is automatic and does not require manual intervention, it can greatly improve work efficiency.

[0064] It should also be noted that the screenshot thread runs continuously for a period of time. The advantage of such a setting is that even if the user moves the current software page and changes the position of the software page, it will not cause data collection failure, because the screenshot thread runs continuously, and the system can determine the location of the target area in the moved software page based on the latest screenshot, and collect the data to be summarized.

[0065] In a possible embodiment of the present application, step S201 includes: traversing pixels in the screenshot according to a preset key position marker, and determining the coordinates of the key position marker in the screenshot.

[0066] It should be noted that before traversing the pixels in the screenshot, the key position marker needs to be converted into an RGB matrix, and then compared pixel by pixel in the screenshot. After the comparison is successful, the coordinates of the corresponding pixels are determined as the coordinates of the key position marker in the screenshot.

[0067] It is understandable that the above screenshot and traversal operations can be implemented by the Java Robot class, which is used to generate local system input events for test automation, self-running demonstration programs, and other applications that require control of the mouse and keyboard. It should be noted that the above process can also be implemented in other ways, and this application does not limit this.

[0068] It should also be noted that in order to avoid excessive calculation in the step of traversing the pixels in the screenshot, when presetting key position markers, page markers with fewer details should be selected as key position markers as much as possible, or only part of a page marker should be selected as the key position marker.

[0069] For example, see Figure 3 , if the target area is the entire data area, you can select the Select All button as the key position marker, but because the entire Select All button contains a large number of pixels, you can select a part of the Select All button as the key position marker. For example, see Figure 4 As shown in the Select All button, a small area in the upper right corner of the Select All button (i.e., the white box area) can be screenshotted as a key position marker.

[0070] In a possible implementation, step S300 includes:

[0071] Step S301: positioning the cursor of the operating system at the coordinates or at the coordinates of the target area determined according to the coordinates;

[0072] Step S302: executing a preset operation instruction to select the data to be summarized in the target area and copy it to the clipboard of the operating system;

[0073] Step S303: Read the data to be summarized from the clipboard.

[0074] To better understand this solution, first briefly introduce the Java Robot class. The Robot class is used to generate local system input events for test automation, self-running demonstration programs, and other applications that require control of the mouse and keyboard. For example, the mouseMove(X, Y) command can be used to move the mouse cursor to a specified position. And the mousePress() and mouseRelease() commands can be used to press and release a button on the mouse.

[0075] It should be noted that, in this embodiment, the Java Robot class can be used to move the cursor to the coordinates of the key position mark, or to move the cursor to the coordinates of the target area determined according to the coordinates; then, the preset operation instructions are completed at the specified coordinate position, and the operation instructions here include lifting and dropping the left and right mouse buttons, etc., to select the data to be summarized in the target area.

[0076] In addition, the operation instruction also includes copying the data to be summarized to the clipboard of the operating system. For example, for the data to be summarized in the target area, the system or application will simulate a "cut" or "copy" operation through the operation instruction to collect the data in the target area to the clipboard. Finally, the clipboard data is read to obtain the data to be summarized.

[0077] It is understandable that the above-mentioned operations such as moving the cursor, raising the cursor, and dropping the cursor are not completed by operating real hardware, but are automatically executed by the operating system through preset operating instructions.

[0078] It should be noted that the above process may also be implemented in other ways, and this application does not limit this.

[0079] The following is a specific example to explain the above process. Figure 3 In the display interface of the Excel table shown, when the target area is the entire data area and the preset key position is marked as the select all button, the implementation process of obtaining the data to be summarized can be: according to the coordinates of the select all button, locate the area where the select all button is located, click the select all button to select all the data in the entire data area, and after selection, perform a copy operation to copy the data in the data area to the system's built-in clipboard to complete the acquisition of the data in the data area. It should be noted that the above process of obtaining the data to be summarized is automatically completed through the preset operation instructions.

[0080] Similarly, for the case where the target area is a row / several rows of data, and the preset key position is marked as the row number grid of a row / several rows, the implementation process of obtaining the data to be summarized can be: according to the coordinates of the row number grid, locate the area where the row number grid is located, click the row number grid to select the entire row of data, and after selection, perform a copy operation to copy the entire row of data to the system's built-in clipboard to complete data acquisition.

[0081] The following describes this solution through a specific usage scenario.

[0082] See also Figure 3The Excel spreadsheet page shown takes the entire data area as the target area and the Select All button as the key position marker as an example. First, it is necessary to control the cursor of the operating system to move to the coordinates of the Select All button through a preset operation instruction; then, the input device responds to the drop and lift instructions of the left mouse button to complete the click operation of the Select All button. At this time, all the data in the data area of ​​the Excel spreadsheet page has been selected; then, in response to the data copy instruction, the data in the data area is copied to the clipboard of the operating system to obtain the clipboard data.

[0083] See also Figure 2 The browser web page shown takes the case where the address bar is the target area and the search button is the key position mark as an example. At this time, directly controlling the cursor to move to the search button and clicking it cannot select the address data in the address bar, but the cursor needs to be moved to the address bar and clicked to select the address data in the address bar. Therefore, it is necessary to locate the coordinates of a certain point in the address bar according to the coordinates of the search button. Since the positions of the search button and the address bar are relatively fixed, the coordinates of a certain point in the address bar can be calculated according to the coordinates of the search button. Then, after moving the mouse cursor to the coordinates of a certain point in the address bar, respond to the drop and lift instructions of the left mouse button to complete the click operation on the address bar. At this time, the address data in the address bar has been selected; then, respond to the data copy instruction, copy the address data in the address bar to the clipboard of the operating system to obtain the clipboard data.

[0084] In a possible embodiment of the present application, after step S400, the following steps are further included:

[0085] Step S500: close the currently started software page;

[0086] Step S600: Determine whether there is a software startup command that has not been executed;

[0087] Step S700: If it exists, use one of the unexecuted software startup commands as the current software startup command.

[0088] It should be noted that in actual situations, it may be necessary to collect data for different software or different pages of the same software. In this case, after the data collection and summary of the current software page is completed, it is necessary to start the next software page that needs data summary and continue to obtain the data to be summarized.

[0089] Specifically, after the data aggregation operation has been completed for the currently started software page, it is closed. Exemplarily, the closing operation can be implemented by sending a specific system command or calling the API interface of the software.

[0090] Next, it is determined whether there is a software startup command that has not been executed. Exemplarily, the executed software startup commands can be marked, and the unmarked software startup commands are software startup commands that have not been executed, and one of the software startup commands that have not been executed is used as the current software startup command. In this way, it can be ensured that all required software startup commands are executed without being missed.

[0091] In a possible embodiment of the present application, there are multiple software startup commands, and the multiple software startup commands are stored in a startup command text according to a preset order. The data aggregation method also includes: reading the first software startup command from the startup command text according to the order of the multiple software startup commands in the startup command text.

[0092] It should be noted that the script or program can read each command one by one according to the arrangement order of the software startup commands in the startup command text. After reading the software startup commands, the script or program will call the corresponding system commands or APIs to execute these software startup commands.

[0093] By setting the startup command text, users can easily modify, add or delete the software startup commands, and can flexibly control the automatic startup of the software without the need for users to manually start the software one by one. Especially when there are a large number of software to be started, it can reduce the burden of manual operation and the possibility of errors or omissions in manual operation.

[0094] The present application also provides a data aggregation device, including: a software page startup module, which is used to respond to the current software startup command and automatically trigger the startup operation of the software page corresponding to the current software startup command; a target area determination module, which is used to determine the target area in the software page based on a preset key position identifier, and the target area contains data to be aggregated; a data acquisition module, which is used to acquire the data to be aggregated in the target area from the software page through the clipboard of the operating system; and a data aggregation module, which is used to aggregate the data to be aggregated into a target file.

[0095] The data aggregation device provided in the embodiment of the present application automatically starts the software page containing the data to be aggregated through the software page startup module; then, through the target area determination module, based on the preset key position identifier, the target area in the software page is determined; then, through the data acquisition module, the data to be aggregated in the target area is acquired from the software page using the clipboard of the operating system; finally, the extracted data to be aggregated is aggregated into a specified file through the data aggregation module. The device improves the efficiency and accuracy of data aggregation by automatically executing software startup commands, data extraction and aggregation, and reduces the reliance on manual operations during the data aggregation process. In addition, by modifying the software startup command and adding new key position identifiers, the method can be easily applied to the data aggregation process of other software, and has high flexibility.

[0096] Figure 5 The terminal device 1000 is a schematic diagram of a terminal device provided in an embodiment of the present application. The terminal device 1000 includes: at least one processor 1001 ( Figure 5 Only one processor is shown in the figure), a memory 1002, and a computer program 1003 stored in the memory 1002 and executable on the at least one processor 1001, wherein the processor 1001 implements the steps in the above-mentioned 5 method embodiments when executing the computer program 1003.

[0097] The terminal device 1000 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 1001 and a memory 1002. Those skilled in the art will appreciate that Figure 5 It is only an example of the terminal device 1000 and does not constitute a limitation on the terminal device 1000 , and may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.

[0098] The processor 1001 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0099] In some embodiments, the memory 1002 may be an internal storage unit of the terminal device 1000, such as a hard disk or memory of the terminal device 1000. In other embodiments, the memory 1002 may also be an external storage device of the terminal device 1000, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device 1000. Further, the memory 1002 may also include both an internal storage unit of the terminal device 1000 and an external storage device. The memory 1002 is used to store an operating system, an application program, a boot loader (BootLoader), data and other programs, such as the program code of the computer program, etc. The memory 1002 may also be used to temporarily store data that has been output or is to be output.

[0100] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0101] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0102] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0103] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0104] The relevant user personal information that may be involved in the various embodiments of this application is strictly in accordance with the requirements of laws and regulations, following the principles of legality, legitimacy and necessity, based on the reasonable purposes of business scenarios, to process the personal information that users actively provide during the use of products / services or generated due to the use of products / services, as well as the personal information obtained with the user's authorization.

[0105] The user personal information processed by the applicant will vary depending on the specific product / service scenario, and shall be based on the specific scenario in which the user uses the product / service, which may involve the user's account information, device information, driving information, vehicle information or other related information. The applicant will treat the user's personal information and its processing with a high degree of diligence.

[0106] The Applicant attaches great importance to the security of user personal information and has adopted reasonable and feasible security protection measures that comply with industry standards to protect user information and prevent personal information from being accessed, disclosed, used, modified, damaged or lost without authorization.

[0107] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0108] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0109] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0111] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A data aggregation method, characterized in that: include: In response to a current software startup command, automatically triggering a startup operation of a software page corresponding to the current software startup command; Determining a target area in the software page based on a preset key location identifier, wherein the target area contains the data to be aggregated; Obtaining the data to be summarized in the target area from the software page through the clipboard of the operating system; Aggregate the data to be aggregated into a target file.

2. The data aggregation method according to claim 1, wherein: The data aggregation method further includes: intercepting the content displayed on the software page to obtain a screenshot; The determining of the target area in the software page based on the preset key position identifier includes: From the screenshot, determining the coordinates of key location markers; A target area in the software page is determined according to the coordinates of the key position marker.

3. The data aggregation method according to claim 2, wherein: The step of obtaining the target area's data to be aggregated from the software page through the operating system's clipboard includes: Positioning a cursor of the operating system at the coordinates or at the coordinates of a target area determined according to the coordinates; Execute a preset operation instruction to select the data to be summarized in the target area and copy it to the clipboard of the operating system; The data to be summarized is read from the clipboard.

4. The data aggregation method according to claim 1, wherein: After aggregating the data to be aggregated into the target file, the data aggregation method further includes: Close the currently launched software page; Determine whether there is any unrunning software startup command; If so, one of the unexecuted software startup commands is used as the current software startup command.

5. The data aggregation method according to claim 1, characterized in that: There are multiple software startup commands, and the multiple software startup commands are stored in a startup command text in a preset order. The data aggregation method further includes: According to the order of the plurality of software startup commands in the startup command text, the software startup commands that have not been executed are read in sequence as the current software startup commands.

6. The data aggregation method according to any one of claims 2 to 5, characterized in that: The capturing of the content displayed on the software page to obtain a screenshot includes: The screenshot thread is called to take a screenshot of the screen display content according to a preset interval to obtain a screenshot.

7. The data aggregation method according to any one of claims 2 to 5, characterized in that: Determining the coordinates of key location markers from the screenshot includes: According to the preset key position marker, the pixels in the screenshot are traversed to determine the coordinates of the key position marker in the screenshot.

8. A data aggregation device, characterized in that: include: A software page startup module, configured to automatically trigger a startup operation of the software page corresponding to the current software startup command in response to the current software startup command; A target area determination module, configured to determine a target area in the software page based on a preset key location identifier, wherein the target area contains data to be aggregated; A data acquisition module, configured to acquire the data to be aggregated in the target area from the software page via the clipboard of the operating system; The data aggregation module is used to aggregate the data to be aggregated into a target file.

9. A terminal 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 computer program, the method according to any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.