Work record generation method, device, equipment and storage medium

By capturing screenshots of applications on the computer desktop and performing optical character recognition, work records are automatically generated, solving the problem of employees wasting time and energy during monthly summaries and improving work efficiency.

CN117095404BActive Publication Date: 2026-02-06GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310880380.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-17
Publication Date
2026-02-06
Estimated Expiration
2043-07-17

AI Technical Summary

Technical Problem

When employees are summarizing their monthly work, they need to spend a lot of time recalling and writing down their work content, which affects their work efficiency and may lead to oversights.

Method used

By capturing screenshots of applications on the computer desktop, optical character recognition is performed to determine priority classification information and work duration, and work records are automatically generated.

Benefits of technology

Automated recording of work content reduces the time and effort employees spend on work reports, summaries, or performance evaluations, thereby improving work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117095404B_ABST
    Figure CN117095404B_ABST
Patent Text Reader

Abstract

The application provides a work record generation method, device and equipment and a storage medium. The method comprises the following steps: obtaining screenshots taken at preset intervals within a preset time; cutting out first key areas from the screenshots; performing optical character recognition on each first key area to obtain priority classification information of each first key area; determining a work duration corresponding to each priority classification information based on the number of screenshots corresponding to each priority classification information; and determining a work record of a user based on at least the priority classification information and the work duration corresponding to each priority classification information. The method can help the user to automatically record the work content in daily life, effectively reduces the time and effort of the employee when reporting work summary or performance evaluation, and thus improves the work efficiency of the employee.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of work record generation technology, and in particular to a method, apparatus, device and storage medium for generating work records. Background Technology

[0002] In most internet companies, employee performance appraisals rely on employees summarizing their work for the month and evaluating them through performance appraisal forms. When employees have a heavy workload and limited free time, they need to spend a lot of time recalling their work and compiling work records when summarizing their monthly work. This not only affects their work efficiency but may also lead to oversights. Summary of the Invention

[0003] To address the aforementioned issues, this application provides a method, apparatus, device, and storage medium for generating work records, which can help users automate the recording of daily work content, effectively reducing the time and effort employees spend on work reports, summaries, or performance evaluations, thereby improving employee work efficiency.

[0004] This application provides a method for generating work records, including:

[0005] Acquire screenshots taken at preset intervals within a preset time period, wherein the screenshots are screenshots of applications that the user is using on the computer desktop;

[0006] The first key region is segmented from the screenshot; optical character recognition is performed on each first key region to obtain the priority classification information of each first key region;

[0007] Based on the number of screenshots corresponding to each priority category, determine the working time corresponding to each priority category.

[0008] The user's work records should be determined based at least on priority classification information and the corresponding work duration for each priority classification information.

[0009] In some embodiments, the method further includes:

[0010] Within a preset time period, the system API of the computer is called at preset intervals to obtain all visible windows corresponding to each preset interval.

[0011] Identify the topmost visible window and take a screenshot of it to obtain a screenshot of the application currently in use on the computer desktop.

[0012] In some embodiments, determining the working time corresponding to each priority category based on the number of screenshots corresponding to each priority category includes:

[0013] The working time for each priority category is determined by multiplying the number of screenshots corresponding to each priority category by the preset interval.

[0014] In some embodiments, the method further includes:

[0015] From the screenshot, separate the second key areas corresponding to each of the first key areas;

[0016] Optical character recognition is performed on the second key area to obtain the text information of each second key area;

[0017] Word frequency statistics were performed on the text information of each secondary key area to obtain the target text content;

[0018] The processing time for each target text content is determined based on the number of screenshots corresponding to each target text content.

[0019] The process of determining a user's work records based at least on priority classification information and the corresponding work duration for each priority classification includes:

[0020] Based on each priority category, the corresponding work duration, the corresponding target text content, and the corresponding work duration, the user's work records are determined, wherein each priority category corresponds to at least one target text content.

[0021] In some embodiments, the method further includes:

[0022] Obtain the user's first setting information, which is used to set the preset time;

[0023] Obtain the user's second setting information, which is used to set the preset interval duration.

[0024] In some embodiments, acquiring screenshots taken at preset intervals within a preset time period includes:

[0025] If the user's trigger information is obtained, screenshots are captured at preset intervals within a preset time period.

[0026] In some embodiments, the method further includes:

[0027] Output the work record.

[0028] This application provides a work record generation apparatus, comprising:

[0029] The acquisition module is used to acquire screenshots taken at preset intervals within a preset time period, wherein the screenshots are screenshots of applications that the user is using on the computer desktop;

[0030] The recognition module is used to segment the first key region from the screenshot; perform optical character recognition on each first key region to obtain priority classification information for each first key region;

[0031] The first determination module is used to determine the working time corresponding to each priority category information based on the number of screenshots corresponding to each priority category information.

[0032] The second determination module is used to determine the user's work records based at least on priority classification information and the work duration corresponding to each priority classification information.

[0033] This application provides an electronic device, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, performs the work record generation method as described in any of the above embodiments.

[0034] This application provides a computer, including the electronic device described above.

[0035] This application provides a computer-readable storage medium storing a computer program that can be executed by one or more processors and can be used to implement the work record generation method described above.

[0036] This application provides a method, apparatus, device, and storage medium for generating work records. The method involves acquiring screenshots taken at preset intervals within a preset time period; segmenting first key regions from the screenshots; performing optical character recognition (OCR) on each first key region to obtain priority classification information for each region; determining the corresponding work duration based on the number of screenshots corresponding to each priority classification information; and determining the user's work record based at least on the priority classification information and the corresponding work duration. This method helps users automate the recording of their daily work, effectively reducing the time and effort employees spend on work reports, summaries, or performance evaluations, thereby improving employee work efficiency. Attached Figure Description

[0037] The present application will be described in more detail below based on embodiments and with reference to the accompanying drawings.

[0038] Figure 1 A schematic diagram illustrating the implementation flow of a method for generating work records provided in an embodiment of this application;

[0039] Figure 2 A flowchart illustrating a method for generating work records provided in an embodiment of this application;

[0040] Figure 3 This is a schematic diagram of the composition structure of the electronic device provided in the embodiments of this application.

[0041] In the accompanying drawings, the same parts are referred to by the same reference numerals, and the drawings are not drawn to scale. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0043] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0044] If the application documents contain similar descriptions such as "first, second, third", the following explanation shall be added: In the following description, the terms "first, second, third" are used only to distinguish similar objects and do not represent a specific order of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0046] To address the problems existing in related technologies, this application provides a method for generating work records. This method is applied to an electronic device, such as a computer. In some embodiments, the electronic device may be a computer controller. The functionality of the work record generation method provided in this application can be implemented by the processor of the electronic device calling program code, wherein the program code can be stored in a computer storage medium.

[0047] This application provides a method for generating work records. Figure 1 This application provides a schematic diagram of the implementation process of a method for generating work records, as illustrated in the embodiments of this application. Figure 1As shown, it includes:

[0048] Step S101: Obtain screenshots taken at preset intervals within a preset time period, wherein the screenshots are screenshots of applications that the user is using on the computer desktop.

[0049] In this embodiment of the application, the preset time can be configured. For example, the preset time can be selected as a week, month, day, etc.

[0050] In this embodiment, the preset interval duration can be configured; for example, the preset interval duration can be 5 seconds, 5 minutes, etc. The electronic device can capture a screenshot of the application currently in use on the computer desktop every time the preset interval duration is reached. In this embodiment, the application currently in use can be considered as the application displayed on the top layer of the desktop.

[0051] In this embodiment of the application, the electronic device can obtain screenshots of the applications being used on the computer desktop within a preset time period and at preset intervals.

[0052] In this embodiment, the program code for generating work records can be installed on the computer. Images captured by the electronic device can be stored locally and processed locally during subsequent processing. This eliminates the need to delegate extensive image recognition processing to a server or cloud computing center. Based on edge computing, all optical character recognition (OCR) processing of the captured images is performed locally. Only a few application requests, such as updates, communicate with the server, significantly reducing data transmission volume and load while ensuring the security and privacy of user data.

[0053] In this embodiment of the application, screenshots can be used to record the activity status of an employee's computer, thereby determining the employee's work records based on the computer's activity status.

[0054] Step S102: Segment the first key region from the screenshot; perform optical character recognition on each first key region to obtain priority classification information for each first key region.

[0055] In this embodiment of the application, the first key area can be preset. The first key area can be the title bar area of ​​the application. Usually, the title bar can reflect the content of the user's current work.

[0056] In this embodiment, the first key area is the title bar area by default. Users can add key areas according to their personal situation and work content to generate work records that are more suitable for their own situation.

[0057] In this embodiment, optical character recognition can be performed on each first key area to obtain priority classification information for each first key area. This priority classification information can be title bar information. The title bar information is used to represent the user's work content.

[0058] In this embodiment of the application, by segmenting the first key area from the screenshot and then identifying the first key area, the efficiency of identification can be improved.

[0059] For example, if the priority category information is identified as A, B, and C, then the user has performed at least three tasks within a preset time period.

[0060] Step S103: Determine the working time corresponding to each priority category information based on the number of screenshots corresponding to each priority category information.

[0061] In this embodiment of the application, since each priority classification information is determined based on each screenshot, the number of screenshots corresponding to each priority classification information can be determined. Since each screenshot is related to a preset interval duration, the working time corresponding to each priority classification information can be determined.

[0062] In this embodiment of the application, the working time corresponding to each priority category information can be determined by multiplying the number of screenshots corresponding to each priority category information by the preset interval duration.

[0063] Continuing with the example above, the priority classification information for 100 screenshots is A, the priority classification information for 150 screenshots is B, and the priority classification information for 50 screenshots is C. Then, the corresponding number of screenshots can be multiplied by the preset interval to obtain the working time corresponding to each priority classification information.

[0064] Step S104: Determine the user's work record based at least on priority classification information and the work duration corresponding to each priority classification information.

[0065] In this embodiment of the application, the first column of the work record can display priority classification information, and the second column can display the work duration, thereby obtaining the work record.

[0066] Following the example above, the first column displays A, B, and C, and the second column displays the corresponding working hours x, y, and z.

[0067] This application provides a method for generating work records, which involves acquiring screenshots taken at preset intervals within a preset time period; segmenting first key areas from the screenshots; performing optical character recognition on each first key area to obtain priority classification information for each first key area; determining the work duration corresponding to each priority classification information based on the number of screenshots corresponding to each priority classification information; and determining the user's work record based at least on the priority classification information and the work duration corresponding to each priority classification information. This method can help users automate the recording of their daily work content, effectively reducing the time and effort employees spend on work reports, summaries, or performance evaluations, thereby improving employee work efficiency.

[0068] Traditional systems upload collected image information to the cloud or a centralized environment, which poses a risk of privacy breaches and security attacks. This application's embodiment effectively solves the security problem of transmitting employee work-related privacy data over the network using edge computing, securely and reliably helping users record their work activities.

[0069] In some embodiments, prior to step S101, the method further includes:

[0070] Step S1011: Call the system API of the computer at preset intervals within a preset time period to obtain all visible windows corresponding to each preset interval.

[0071] In this embodiment of the application, the computer's system may be a Windows system.

[0072] Step S1012: Identify the topmost visible window and take a screenshot of the topmost visible window to obtain a screenshot of the application being used on the computer desktop.

[0073] In this embodiment of the application, after obtaining the screenshot, it can be stored in a local database.

[0074] The method provided in this application embodiment achieves automatic window recognition screenshots by calling the Windows system API. In this way, the obtained screenshot data is a screenshot of the application window currently in use on the user's desktop. This can ensure that the image data has a certain degree of template and practicality, and also facilitates the image recognition work in the next step.

[0075] In some embodiments, after step S102, the method further includes:

[0076] Step S105: Divide the screenshot into second key areas corresponding to each first key area.

[0077] In this embodiment of the application, the second key area can be configured. For example, the first key area is the title portion, and the second key area can be the content portion.

[0078] Step S106: Perform optical character recognition on the second key area to obtain the text information of each second key area.

[0079] Step S107: Perform word frequency statistics on the text information of each second key area to obtain the target text content.

[0080] In this embodiment, since the text in the second key region may not be highly distinguishable, the results obtained here are used to extract text features through word frequency statistics, thereby obtaining the target text content under each priority classification information. The target text content can be considered as more detailed work content under the work content.

[0081] Step S108: Determine the working time for each target text content based on the number of screenshots corresponding to each target text content.

[0082] In this embodiment of the application, the number of screenshots corresponding to each target text content can be multiplied by a preset interval duration to obtain the working time of each target text content.

[0083] In some embodiments, step S104 can be implemented through the following steps:

[0084] Based on each priority category, the corresponding work duration, the corresponding target text content, and the corresponding work duration, the user's work records are determined, wherein each priority category corresponds to at least one target text content.

[0085] In this embodiment of the application, the work record displays priority classification information in the first column, the work duration corresponding to the priority classification information in the second column, the target text content corresponding to each priority classification information in the third column, and the work duration corresponding to each target text content in the fourth column.

[0086] Continuing with the example above, the first column displays A, B, and C; the second column displays the work durations x, y, and z; the third column, taking A as an example, displays multiple rows, each showing the extracted target text content; and the fourth column displays the corresponding time. The same applies to sections B and C. This results in a progressive work record.

[0087] In some embodiments, prior to step S1011, the method further includes:

[0088] Obtain the user's first setting information, which is used to set the preset time; obtain the user's second setting information, which is used to set the preset interval duration.

[0089] In this embodiment, users can set preset time and preset interval duration to cope with different job positions and environments: the preset interval duration is configured according to the user's work needs. For example, if the work is mainly code-related and the window changes very little, the preset interval duration can be once every 5 minutes. If the work requires a lot of computer operations, the preset interval duration is shortened to avoid missing any work content.

[0090] The preset time can be a time period set by the user for work records, such as daily, weekly, or monthly work record summaries.

[0091] In some embodiments, acquiring screenshots taken at preset intervals within a preset time period includes:

[0092] If the user's trigger information is obtained, screenshots are captured at preset intervals within a preset time period.

[0093] In this embodiment, the triggering information may be the start of work record generation. The triggering information may be a specified time; screenshots taken at preset intervals within a preset time period will only be obtained upon receiving the triggering information, thus minimizing the impact on work.

[0094] In this embodiment of the application, only screenshots are taken normally, without affecting the content of the user's work. Steps S101 to S104 are only executed when the user specifies a time or actively initiates the generation of work records.

[0095] In some embodiments, after step S104, the method further includes:

[0096] Output the work record.

[0097] In this embodiment of the application, the work record can be output through a display device.

[0098] Based on the foregoing embodiments, this application further provides a method for generating work records. Figure 2 A method for generating work records provided in this application embodiment, such as Figure 2 As shown, the method includes:

[0099] Step S201: Take screenshots periodically in the background to initially collect information about the user's computer's operation.

[0100] In this embodiment, the method can be implemented by running an application on a computer. Unlike other types of products that delegate a large amount of image recognition processing to the server or cloud computing center, the method provided in this embodiment is based on edge computing. After a screenshot is collected, the OCR recognition processing of the image is performed entirely on the client side. Only a small number of application requests, such as updates, will communicate with the server, which greatly reduces the amount of data transmission and load, while also ensuring the security and privacy of user data.

[0101] In this embodiment of the application, when running automatically in the background, the computer activity status of employees is recorded by taking a screenshot every X seconds.

[0102] In this embodiment of the application, when taking a screenshot, WinAPI can be called to achieve automatic window recognition screenshot. The screenshots obtained through WinAPI are all screenshots with the size of the application window currently in use on the user's desktop. This can ensure that the image data has a certain degree of template and practicality, and also facilitates the image recognition work in the next step.

[0103] Step S202: Using OCR image recognition technology, the first region is identified, and the screenshot is classified using text information to obtain the working content.

[0104] In this embodiment, OCR text recognition technology is used for the recognition part of the screenshot. First, the collected screenshots are segmented into key areas, that is, the title bar of the corresponding window in each screenshot (same as the first key area in the above embodiment) is cut out. Generally speaking, the characters in the title bar are highly important and distinguishable. The segmented title bar image is subjected to OCR text recognition to obtain priority classification information. For example, if three different title bar information, A, B, and C, is recognized, all screenshots can be divided into three screenshot parts, A, B, and C, at the same time.

[0105] Step S203: Use the number of screenshots to obtain the working time of the work content, generate a work record table and give it to the user.

[0106] After identifying the priority category information, the priority category information is matched with the screenshots. For example, 100 screenshots are labeled A, 150 screenshots are labeled B, and 50 screenshots are labeled C. Since the screenshots are time-related, the 100 screenshots correspond to the user working for x hours (this will change according to the X value of the screenshot every X seconds). This results in the following work record: the first column shows A, B, and C, and the second column shows the time spent x, y, and z.

[0107] In some embodiments, after step S202, the method further includes:

[0108] Step S204: Identify the second region to obtain more detailed working information.

[0109] In this embodiment, when the user adds a new key area to the screenshot (similar to the second endpoint area in the above embodiment), after generating three parts A, B, and C, OCR text recognition processing is performed on the key area within each part. Since the text in the user-defined area may not have high distinguishability, the result obtained here is used to extract text features through word frequency statistics. This yields several types of text content under part A. The generated work record is as follows: the first column displays A, B, and C; the second column displays the time spent x, y, and z; the third column, taking A as an example, displays multiple lines, with each line displaying the extracted text words; and the fourth column displays the corresponding time. Parts B and C are processed similarly. This results in an advanced work record.

[0110] This application provides a method for generating work records. Through OCR text recognition, it helps users automatically compile their daily work statistics, effectively reducing the time and effort employees spend on work reports, summaries, and performance evaluations, thus improving employee efficiency. The system's edge computing characteristics ensure high security when processing such privacy-sensitive user information, while also minimizing network bandwidth load and energy consumption in the central environment, offering better adaptability.

[0111] Based on the foregoing embodiments, this application provides a work record generation device. The various modules and units included in the device can be implemented by a processor in a computer device; of course, they can also be implemented by specific logic circuits. In the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.

[0112] This application provides a work record generation apparatus, comprising:

[0113] The acquisition module is used to acquire screenshots taken at preset intervals within a preset time period, wherein the screenshots are screenshots of applications that the user is using on the computer desktop;

[0114] The recognition module is used to segment the first key region from the screenshot; perform optical character recognition on each first key region to obtain priority classification information for each first key region;

[0115] The first determination module is used to determine the working time corresponding to each priority category information based on the number of screenshots corresponding to each priority category information.

[0116] The second determination module is used to determine the user's work records based at least on priority classification information and the work duration corresponding to each priority classification information.

[0117] In some embodiments, the work record generation apparatus is further configured to:

[0118] Within a preset time period, the system API of the computer is called at preset intervals to obtain all visible windows corresponding to each preset interval.

[0119] Identify the topmost visible window and take a screenshot of it to obtain a screenshot of the application currently in use on the computer desktop.

[0120] In some embodiments, determining the working time corresponding to each priority category based on the number of screenshots corresponding to each priority category includes:

[0121] The working time for each priority category is determined by multiplying the number of screenshots corresponding to each priority category by the preset interval.

[0122] In some embodiments, the work record generation apparatus is further configured to:

[0123] From the screenshot, separate the second key areas corresponding to each of the first key areas;

[0124] Optical character recognition is performed on the second key area to obtain the text information of each second key area;

[0125] Word frequency statistics were performed on the text information of each secondary key area to obtain the target text content;

[0126] The processing time for each target text content is determined based on the number of screenshots corresponding to each target text content.

[0127] The process of determining a user's work records based at least on priority classification information and the corresponding work duration for each priority classification includes:

[0128] Based on each priority category, the corresponding work duration, the corresponding target text content, and the corresponding work duration, the user's work records are determined, wherein each priority category corresponds to at least one target text content.

[0129] In some embodiments, the work record generation apparatus is further configured to:

[0130] Obtain the user's first setting information, which is used to set the preset time;

[0131] Obtain the user's second setting information, which is used to set the preset interval duration.

[0132] In some embodiments, acquiring screenshots taken at preset intervals within a preset time period includes:

[0133] If the user's trigger information is obtained, screenshots are captured at preset intervals within a preset time period.

[0134] In some embodiments, the work record generation apparatus is further configured to:

[0135] Output the work record.

[0136] This application provides an electronic device; Figure 3 This is a schematic diagram of the composition structure of the electronic device provided in the embodiments of this application, such as... Figure 3 As shown, the electronic device 500 includes: a processor 501, at least one communication bus 502, a user interface 503, at least one external communication interface 504, and a memory 505. The communication bus 502 is configured to enable communication between these components. The user interface 503 may include a control panel, and the external communication interface 504 may include standard wired and wireless interfaces. The processor 501 is configured to execute a program for generating work records stored in the memory, to implement the steps in the work record generation method provided in the above embodiment, wherein the work record generation method includes:

[0137] Acquire screenshots taken at preset intervals within a preset time period, wherein the screenshots are screenshots of applications that the user is using on the computer desktop;

[0138] The first key region is segmented from the screenshot; optical character recognition is performed on each first key region to obtain the priority classification information of each first key region;

[0139] Based on the number of screenshots corresponding to each priority category, determine the working time corresponding to each priority category.

[0140] The user's work records should be determined based at least on priority classification information and the corresponding work duration for each priority classification information.

[0141] In some embodiments, the method further includes:

[0142] Within a preset time period, the system API of the computer is called at preset intervals to obtain all visible windows corresponding to each preset interval.

[0143] Identify the topmost visible window and take a screenshot of it to obtain a screenshot of the application currently in use on the computer desktop.

[0144] In some embodiments, determining the working time corresponding to each priority category based on the number of screenshots corresponding to each priority category includes:

[0145] The working time for each priority category is determined by multiplying the number of screenshots corresponding to each priority category by the preset interval.

[0146] In some embodiments, the method further includes:

[0147] From the screenshot, separate the second key areas corresponding to each of the first key areas;

[0148] Optical character recognition is performed on the second key area to obtain the text information of each second key area;

[0149] Word frequency statistics were performed on the text information of each secondary key area to obtain the target text content;

[0150] The processing time for each target text content is determined based on the number of screenshots corresponding to each target text content.

[0151] The process of determining a user's work records based at least on priority classification information and the corresponding work duration for each priority classification includes:

[0152] Based on each priority category, the corresponding work duration, the corresponding target text content, and the corresponding work duration, the user's work records are determined, wherein each priority category corresponds to at least one target text content.

[0153] In some embodiments, the method further includes:

[0154] Obtain the user's first setting information, which is used to set the preset time;

[0155] Obtain the user's second setting information, which is used to set the preset interval duration.

[0156] In some embodiments, acquiring screenshots taken at preset intervals within a preset time period includes:

[0157] If the user's trigger information is obtained, screenshots are captured at preset intervals within a preset time period.

[0158] In some embodiments, the method further includes:

[0159] Output the work record.

[0160] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0161] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0162] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0163] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the controlled or discussed components can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0164] The units described above as separate components may or may not be physically separate. The components controlled by the units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0165] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0166] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0167] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a controller to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0168] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for generating work records, characterized in that, include: Acquire screenshots taken at preset intervals within a preset time period, wherein the screenshots are screenshots of applications that the user is using on the computer desktop; The first key region is segmented from the screenshot; optical character recognition is performed on each first key region to obtain the priority classification information of each first key region; Based on the number of screenshots corresponding to each priority category, determine the working time corresponding to each priority category. The user's work records should be determined based at least on priority classification information and the corresponding work duration for each priority classification information. The method further includes: segmenting the screenshots to extract the second key regions corresponding to each first key region; performing optical character recognition on the second key regions to obtain the text information of each second key region; performing word frequency statistics on the text information of each second key region to obtain the target text content; and determining the working time of each target text content based on the number of screenshots corresponding to each target text content. The step of determining a user's work record based at least on priority classification information and the work duration corresponding to each priority classification information includes: determining a user's work record based on each priority classification information, the work duration corresponding to each priority classification information, the target text content corresponding to each priority classification information, and the work duration corresponding to each target text content, wherein each priority classification information corresponds to at least one target text content.

2. The method according to claim 1, characterized in that, The method further includes: Within a preset time period, the system API of the computer is called at preset intervals to obtain all visible windows corresponding to each preset interval. The system identifies the topmost visible window and takes a screenshot of it, resulting in screenshots of the applications currently in use on the computer desktop at each preset time interval.

3. The method according to claim 1, characterized in that, The process of determining the working time corresponding to each priority category based on the number of screenshots for each priority category includes: The working time for each priority category is determined by multiplying the number of screenshots corresponding to each priority category by the preset interval.

4. The method according to claim 1, characterized in that, The method further includes: Obtain the user's first setting information, which is used to set the preset time; Obtain the user's second setting information, which is used to set the preset interval duration.

5. The method according to claim 1, characterized in that, The process of acquiring screenshots taken at preset intervals within a preset time period includes: If the user's trigger information is obtained, screenshots are captured at preset intervals within a preset time period.

6. The method according to claim 5, characterized in that, The method further includes: Output the work record; The work record is output based on the trigger information.

7. A device for generating work records, characterized in that, include: The acquisition module is used to acquire screenshots taken at preset intervals within a preset time period, wherein the screenshots are screenshots of applications that the user is using on the computer desktop; The recognition module is used to segment the first key region from the screenshot; perform optical character recognition on each first key region to obtain priority classification information for each first key region; The first determination module is used to determine the working time corresponding to each priority category information based on the number of screenshots corresponding to each priority category information. The second determining module is used to determine the user's work record based at least on priority classification information and the working time corresponding to each priority classification information; segment the screenshots to extract the second key areas corresponding to each first key area; perform optical character recognition on the second key areas to obtain the text information of each second key area; perform word frequency statistics on the text information of each second key area to obtain the target text content; and determine the working time of each target text content based on the number of screenshots corresponding to each target text content. The determination of the user's work record based at least on priority classification information and the working time corresponding to each priority classification information includes: determining the user's work record based on each priority classification information, the working time corresponding to each priority classification information, the target text content corresponding to each priority classification information, and the working time corresponding to each target text content, wherein each priority classification information corresponds to at least one target text content.

8. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, performs the method for generating work records as described in any one of claims 1 to 6.

9. A storage medium, characterized in that, The computer program stored in the storage medium can be executed by one or more processors and can be used to implement the method for generating work records as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Chat record screenshot processing method and device, computer equipment and storage medium

    CN111985467A

  • Work note generation method and device

    CN113033536A