Event information processing method, device and electronic device
By performing screenshots and event information acquisition when preset operation instructions are detected in the current screen of the electronic device, the problem of occupying a large amount of resources in the prior art is solved, and efficient operation information recording and privacy protection are achieved.
Patent Information
- Application Number
- CN202011075224.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-09
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2040-10-09
AI Technical Summary
The existing technology occupies a large amount of computing resources and storage space to record the operation information of electronic devices, which cannot effectively solve the problem that users cannot view the usage trajectory when using electronic devices.
By screenshotting the current screen when a preset operation command is detected in the current screen, the event information corresponding to the preset operation command is obtained, and screenshots and event information are stored when no preset operation command is detected, reducing the use of computing resources and storage space.
It realizes recording the operation information of electronic devices without occupying a large amount of computing resources and storage space, provides visualization of the use trajectory of electronic devices, and enhances privacy protection capabilities.
Smart Images

Figure CN112214762B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing, and in particular to a method, device and electronic device for processing event information. Background Art
[0002] As the functions of electronic devices become increasingly powerful, their importance to people is also increasing. More and more things can be processed on electronic devices, whether it is socializing, work or games.
[0003] However, when using electronic devices, users cannot view the usage history of the electronic devices, which causes many inconveniences. For example, when performing some important operations, users may be interrupted and forget where they were when they restart the operation; or after viewing a page, they want to view it again but forget where they opened it; and it is also possible that after others use the electronic device, they cannot know whether their privacy has been exposed by their operations.
[0004] Currently, screen recording can be used to completely record all operations of electronic devices, but this method consumes too much computing resources and occupies too much storage space.
[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of the present invention provide a method, device and electronic device for processing event information, so as to at least solve the technical problem in the prior art that more computing resources and storage space are occupied to record the operation information of the electronic device.
[0007] According to one aspect of an embodiment of the present invention, a method for processing event information is provided, including: when a preset operation instruction is detected in the current screen, taking a screenshot of the current screen to obtain a first image; obtaining event information corresponding to the preset operation instruction; and when the preset operation instruction is not detected in the current screen, storing the first image and event information.
[0008] Optionally, before taking a screenshot of the current screen to obtain the first image, the method also includes: determining whether the second image displayed in the current screen satisfies a preset scene; if the second image satisfies the preset scene, prohibiting taking a screenshot of the current screen; if the second image does not satisfy the preset scene, taking a screenshot of the current screen to obtain the first image.
[0009] Optionally, the preset scene includes at least one of the following: a keyboard operation scene, a game operation scene.
[0010] Optionally, storing the first image and the event information includes: drawing the event information onto the first image to obtain a third image; and storing the third image in a target list.
[0011] Optionally, storing the third image in the image list includes: determining a target application corresponding to the third image; and storing the third image in a target sublist in the target list, wherein the target sublist corresponds to the target application.
[0012] Optionally, storing the third image in the target list includes: acquiring a processing time of the third image; and storing the third image in the target list according to the processing time.
[0013] Optionally, the preset operation instruction includes at least one of the following: a click instruction, a long press instruction, a slide instruction, and a drag instruction.
[0014] Optionally, the event information includes at least one of the following: event type, time when the event occurs, time when the event ends, location information when the event starts, location information when the event ends, and application information corresponding to the event.
[0015] According to another aspect of an embodiment of the present invention, a method for processing event information is also provided, including: when a preset operation instruction is detected in the current screen, displaying a first image, wherein the first image is obtained by taking a screenshot of the current screen; when no preset operation instruction is detected in the current screen, outputting a storage result, wherein the storage result is used to represent event information corresponding to the first image and the preset operation instruction.
[0016] Optionally, before displaying the first image, it also includes: judging whether the second image in the current screen satisfies a preset scene; if the second image satisfies the preset scene, prohibiting the display of the first image; if the second image does not satisfy the preset scene, displaying the first image.
[0017] Optionally, the preset scene includes at least one of the following: a keyboard operation scene, a game operation scene.
[0018] Optionally, the storage result includes: a target list storing the third image, wherein the third image is output before the storage result is output.
[0019] Optionally, the storing result includes: storing a target sub-list of the third image, wherein the third image is stored in the target sub-list of the target list, and the target sub-list corresponds to a target application corresponding to the third image.
[0020] Optionally, the method further includes: displaying the third image in the target list according to the processing time of the third image.
[0021] Optionally, the preset operation instruction includes at least one of the following: a click instruction, a long press instruction, a slide instruction, and a drag instruction.
[0022] Optionally, the event information includes at least one of the following: event type, time when the event occurs, time when the event ends, location information when the event starts, location information when the event ends, and application information corresponding to the event.
[0023] According to another aspect of an embodiment of the present invention, there is also provided an event information processing device, including: a screenshot module, for taking a screenshot of the current screen to obtain a first image when a preset operation instruction is detected in the current screen; an acquisition module, for acquiring event information corresponding to the preset operation instruction; and a storage module, for storing the first image and event information when the preset operation instruction is not detected in the current screen.
[0024] According to another aspect of an embodiment of the present invention, there is also provided an event information processing device, including: a display module, for displaying a first image when a preset operation instruction is detected in a current screen, wherein the first image is obtained by taking a screenshot of the current screen; and an output module, for outputting a storage result when no preset operation instruction is detected in the current screen, wherein the storage result is used to represent event information corresponding to the first image and the preset operation instruction.
[0025] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned method for processing event information.
[0026] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including: a memory and a processor, wherein the processor is used to run a program, wherein the above-mentioned method for processing event information is executed when the program is run.
[0027] In an embodiment of the present invention, when a preset operation instruction is detected in the current screen, a screenshot of the current screen can be taken to obtain a first image; then event information corresponding to the preset operation instruction is obtained; and when the preset operation instruction is not detected in the current screen, the first image and event information are stored, so that the privacy protection of the electronic device can be implemented to the greatest extent. When the electronic device is used by others, it can be timely understood which of its own information has been leaked based on the obtained first image and event information; at the same time, less computing resources and storage space can be used to record the operation information of the electronic device; compared with the prior art of recording the operation information of the electronic device by screen recording, this method can greatly reduce the occupancy of memory and computing resources, thereby achieving the effect of saving memory and computing resources, thereby solving the technical problem of occupying more computing resources and storage space to record the operation information of the electronic device in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0029] Figure 1 is a flow chart of a method for processing event information according to an embodiment of the present invention;
[0030] Figure 2a is a schematic diagram of drawing event information according to an embodiment of the present invention;
[0031] Figure 2b is another schematic diagram of drawing event information according to an embodiment of the present invention;
[0032] Figure 2c is a schematic diagram of another drawing event information according to an embodiment of the present invention;
[0033] Figure 3 is a schematic diagram of a time axis according to an embodiment of the present invention;
[0034] Figure 4 is a flowchart of another method for processing event information according to an embodiment of the present invention;
[0035] Figure 5 is a flowchart of another method for processing event information according to an embodiment of the present invention;
[0036] Figure 6 is a schematic diagram of a device for processing event information according to an embodiment of the present invention;
[0037] Figure 7 is a schematic diagram of another device for processing event information according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0040] Example 1
[0041] According to an embodiment of the present invention, an embodiment of a method for processing event information is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0042] Figure 1 is a flow chart of a method for processing event information according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0043] Step S102: When a preset operation instruction is detected in the current screen, a screenshot is taken of the current screen to obtain a first image.
[0044] The current screen in the above steps refers to the screen currently displayed when the user is using an electronic device; the current screen can be the current screen of a mobile phone, the current screen of a tablet, the current screen of a computer, the current screen of a smart watch, etc., without any limitation here.
[0045] The preset operation instructions in the above steps may be operation instructions preset by the user.
[0046] Optionally, the preset operation instruction includes at least one of the following: a click instruction, a long press instruction, a slide instruction, and a drag instruction. Among them, the preset operation instruction detected when clicking the screen may be a click instruction; the preset operation instruction detected when long pressing the screen may be a long press instruction; the preset operation instruction detected when sliding the screen may be a slide instruction; the preset operation instruction detected when dragging the content on the screen may be a drag instruction, for example: dragging an application icon on the screen of the electronic device.
[0047] Each operation instruction can be divided into multiple stages. For example, click instructions and long press instructions can be divided into two stages of instructions, such as start (ACTION_DOWN) and end (ACTION_UP), and slide instructions and drag instructions can be divided into three stages of instructions, such as start (ACTION_DOWN), move (ACTION_MOVE) and end (ACTION_UP). In this embodiment, detecting the preset operation instruction may refer to detecting the instruction of the start stage of the preset operation instruction, but is not limited to this.
[0048] The first image in the above step may be a page image of an application or an interface image of an electronic device, and no limitation is imposed on the first image.
[0049] In another optional embodiment, the user can choose whether to enable the acquisition event information mode. When the acquisition event information mode is enabled, if the preset operation instruction can be detected in the current screen, the current screen is captured to obtain the first image; in this way, when the user needs to record event information, the first image of the current screen and the corresponding event information can be recorded, thereby meeting the user's needs. When the user does not need to obtain event information, the acquisition event information mode can be disabled, so that the preset operation instruction in the current screen will not be detected, thereby reducing the consumption of computing resources and memory usage.
[0050] Exemplarily, the user can turn on the event information acquisition mode, and when a click instruction of clicking the Taobao application icon is detected in the current screen, the current screen can be screenshotted to obtain the image when the Taobao application icon is clicked.
[0051] In another optional embodiment, after turning on the event information acquisition mode, when a preset operation instruction is detected in the current screen, the current screen and the screen to which the current screen jumps can be screenshoted to obtain a first image, wherein the first image is an image of the current screen and an image of the screen to which the current screen jumps.
[0052] For example, after turning on the event information acquisition mode, when a click instruction of the Taobao icon is detected in the electronic device interface, a screenshot can be taken of the current screen when the Taobao icon is clicked and the screen that jumps to the Taobao homepage to obtain an image of the Taobao icon clicked and an image of the Taobao homepage.
[0053] In another optional embodiment, the event information acquisition mode can be enabled based on the user's fingerprint. For example, the fingerprint of the electronic device holder can be set as the first fingerprint, and the first fingerprint can be saved. When a preset operation instruction is detected in the current screen, it is detected whether the current fingerprint is the first fingerprint; if the current fingerprint is the first fingerprint, it means that the holder of the electronic device is using the electronic device. At this time, there is no need to record the operation information of the electronic device, so there is no need to take a screenshot of the current screen; if the current fingerprint is not the first fingerprint, it means that the holder of a non-electronic device is using the electronic device. At this time, it is necessary to record the operation information of the electronic device so that the user can check whether the privacy is leaked. Therefore, it is necessary to take a screenshot of the current screen to obtain the first image and perform subsequent operations.
[0054] Step S104, obtaining event information corresponding to the preset operation instruction. Optionally, the event information includes at least one of the following: event type, time of event occurrence, time of event end, location information of event start, location information of event end, and application information corresponding to the event.
[0055] In an optional embodiment, the event information corresponding to the preset operation instruction can be obtained in any one or more forms of text, image, voice, etc., without any limitation here.
[0056] In another optional embodiment, the event information corresponding to the click instruction can be the location information of clicking the screen, the icon information of the clicked application, the content information of the clicked text, the time information when the click operation occurs, and the type of event is clicking the screen.
[0057] In another optional embodiment, the event information corresponding to the click instruction can be obtained in the form of an image and text. For example, when a click instruction of clicking a Taobao icon is detected in the interface of the current screen, a screenshot is taken of the interface in the current screen to obtain a first image, and then the Taobao icon corresponding to the click instruction is obtained in the form of an image, and the time information when the click instruction occurs is obtained in the form of text.
[0058] In another optional embodiment, the event information corresponding to the long press instruction may be the time information when the long press of the screen starts, the time information when the long press of the screen ends, the duration information of the long press of the screen, the location information of the long press of the screen, the application information when the application is long pressed, the text information and image information within a preset range when the screen is long pressed, and the type of event is long press of the screen.
[0059] In another optional embodiment, the event information corresponding to the sliding instruction may be the time information when sliding the screen starts, the time information when sliding the screen ends, the duration information of sliding the screen, the starting position information when sliding the screen, the ending position information when sliding the screen, the application information corresponding to the current screen when sliding the screen, the text information and image information in the sliding content when sliding the screen, and the type of event is sliding screen.
[0060] In another optional embodiment, the event information corresponding to the drag instruction may be time information when dragging the content on the screen starts, time information when dragging the content on the screen ends, duration information when dragging the content on the screen, starting position information when dragging the content on the screen, ending position information when dragging the content on the screen, application information corresponding to dragging the application on the screen, text information corresponding to dragging the text on the screen, image information corresponding to dragging the image on the screen, and the type of event is dragging the content on the screen.
[0061] Step S106: When no preset operation instruction is detected in the current screen, the first image and event information are stored.
[0062] In this embodiment, not detecting the preset operation instruction may refer to detecting an instruction at the end stage of the preset operation instruction, but is not limited thereto.
[0063] In an optional embodiment, the first image and event information can be stored in a memory module, wherein the memory module can permanently save the first image and event information, so that the user can view the first image and event information at any time, thereby understanding the use track of the electronic device; the first image and event information can also be saved within a preset time period, and the first image and event information can be deleted when the storage time of the first image and event information exceeds the preset time period; in this way, the user can view the use track of the electronic device within the preset time period, and after exceeding the preset time period, reduce the memory usage by deleting the first image and event information; wherein the preset time period can be set by the user according to his or her own needs. Exemplarily, the preset time period can be set to 24 hours, and when the preset operation instruction is not detected in the current screen, the first image and event information can be stored in the memory module, and the first image and event information can be saved for 24 hours.
[0064] In another optional embodiment, the first image and the event information may be stored in a target list, and the target list may display the first image and the event information corresponding to the first image.
[0065] In another optional embodiment, the target list can be a target list that displays the first image and event information in chronological order; the target list can also be a target list that displays the first image and event information according to application information corresponding to the event information; exemplarily, if the first image displayed in the event information is an image generated when the Taobao icon is clicked, the first image and event information can be saved in the Taobao information list in the target list.
[0066] In another optional embodiment, the event information can also be drawn into the first image to obtain a second image, and the second image can be saved in a memory module or a target list; exemplarily, the event information can be saved in the attribute information of the first image, and the event information can also be drawn in a blank space of the first image, and the event information can also be drawn at a position corresponding to a preset operation instruction in the first image.
[0067] In an embodiment of the present invention, when a preset operation instruction is detected in the current screen, a screenshot of the current screen can be taken to obtain a first image; then event information corresponding to the preset operation instruction is obtained; and when the preset operation instruction is not detected in the current screen, the first image and event information are stored, so that the privacy protection of the electronic device can be implemented to the greatest extent. When the electronic device is used by others, it can be timely understood which of its own information has been leaked based on the obtained first image and event information; at the same time, less computing resources and storage space can be used to record the operation information of the electronic device; compared with the prior art of recording the operation information of the electronic device by screen recording, this method can greatly reduce the occupancy of memory and computing resources, thereby achieving the effect of saving memory and computing resources, thereby solving the technical problem of occupying more computing resources and storage space to record the operation information of the electronic device in the prior art.
[0068] Optionally, before taking a screenshot of the current screen to obtain the first image, the method also includes: determining whether the second image displayed in the current screen satisfies a preset scene; if the second image satisfies the preset scene, prohibiting taking a screenshot of the current screen; if the second image does not satisfy the preset scene, taking a screenshot of the current screen to obtain the first image.
[0069] The preset scene in the above steps may be a scene defined by the user.
[0070] In an optional embodiment, the preset scenario may be a scenario in which the current electronic device is in a power saving mode; illustratively, when a preset operation instruction is detected in the current screen, it is determined whether the current electronic device is in a power saving mode. If the current electronic device is in a power saving mode, taking a screenshot of the current screen is prohibited, thereby saving power of the electronic device.
[0071] In another optional embodiment, the preset scenario may be a scenario in which the power level of the current electronic device is less than a preset power level; illustratively, when a preset operation instruction is detected in the current screen, it is determined whether the power level of the current electronic device is less than the preset power level; if the power level of the current electronic device is less than the preset power level, it is prohibited to take a screenshot of the current screen, thereby reducing the power consumption of the electronic device and extending the use time of the electronic device; wherein the preset power level may be set by the user or automatically set according to the power consumption of the electronic device.
[0072] Optionally, the preset scene includes at least one of the following: a keyboard operation scene, a game operation scene.
[0073] In an optional embodiment, the preset scene can be a keyboard operation scene; since the user will frequently click on the current screen when performing keyboard operation, if the current screen is always screenshotted during this process, it will only add many images of the typing process, and such image recording is of little significance. Therefore, the preset scene can be set as a keyboard operation scene, and when it is detected that there is a picture related to the keyboard in the second image displayed on the current screen, the current screen will not be screenshotted, thereby reducing the occupation of memory resources.
[0074] In another optional embodiment, the preset scene can be a game operation scene; since the user will frequently click on the current screen during the game, if the current screen is constantly screenshotted during this process, it will only add many images during the game, and such image recording is of little significance. Therefore, the preset scene can be set as a game operation scene, and when it is detected that there is an image related to the game scene in the second image displayed on the current screen, the current screen will not be screenshotted, thereby reducing the occupation of memory resources.
[0075] Optionally, storing the first image and the event information includes: drawing the event information onto the first image to obtain a third image; and storing the third image in a target list.
[0076] In an optional embodiment, the information of the preset operation instruction may be drawn onto the first image to obtain a third image, and the third image may be stored in the target list.
[0077] The target list in the above steps may be a time list or an application list, or an application list arranged in chronological order.
[0078] like Figure 2a As shown, if the preset operation instruction is a click instruction, the drawing can be performed at the same position on the first image according to the position of the click instruction when it occurs on the current screen, and the icon corresponding to the click instruction when drawing can be a circle. Figure 2bAs shown, if the preset operation instruction is a long press instruction, the drawing can be performed at the same position on the first image according to the position of the long press instruction when it occurs on the current screen, and the corresponding icon when the long press instruction is drawn can be a concentric circle. Figure 2c As shown, if the preset operation instruction is a sliding instruction, it can be drawn at the same position on the first image according to the initial position and the end position of the sliding instruction when it occurs on the current screen. The corresponding icon when the sliding instruction is drawn can be a line segment marked with the sliding direction.
[0079] Optionally, storing the third image in the image list includes: determining a target application corresponding to the third image; and storing the third image in a target sublist in the target list, wherein the target sublist corresponds to the target application.
[0080] like Figure 3 As shown, the target list may be a timeline arranged in the order of application use, and the target sub-list may be a list of each application in the timeline, wherein the images in the target sub-list may be arranged in chronological order.
[0081] Optionally, storing the third image in the target list includes: acquiring a processing time of the third image; and storing the third image in the target list according to the processing time.
[0082] In an optional embodiment, the processing time of the third image may be obtained, and the most recently generated third image may be stored at the top of the target list according to the processing time.
[0083] In another optional embodiment, the event information may be drawn onto the first image to obtain a third image, the processing time of the third image may be acquired, and the third image may be stored in the target list according to the processing time.
[0084] In another optional embodiment, the event information may be drawn onto the first image to obtain a third image, and the target application corresponding to the third image may be determined, and the third image may be stored in an application list in the target list according to the processing time.
[0085] Combine the following Figure 2a , Figure 2b , Figure 2c , Figure 3 , Figure 4 A preferred embodiment of the present invention is described in detail. Figure 4 As shown, the method may include the following steps:
[0086] Step S41, click event start;
[0087] Optionally, the start of the click event can be ACTION_DOWN. The click event can be clicking the screen, long pressing the screen, sliding the screen, and dragging the content on the screen.
[0088] Step S42, determining whether it is necessary to obtain the first image; if so, executing step S44; if not, executing step S43;
[0089] Step S43, prohibiting acquisition;
[0090] Step S44, taking a screenshot of the current screen to obtain a first image;
[0091] Optionally, it can be determined whether the second image displayed in the current screen satisfies a preset scene; if the second image satisfies the preset scene, it is prohibited to take a screenshot of the current screen; if the second image does not satisfy the preset scene, a screenshot of the current screen is taken to obtain the first image. The preset scene includes at least one of the following: a keyboard operation scene, a game operation scene.
[0092] Step S45, obtaining event information corresponding to the click event;
[0093] Optionally, the event information includes at least one of the following: event type, time when the event occurs, time when the event ends, location information when the event starts, location information when the event ends, and application information corresponding to the event.
[0094] Step S46, the click event ends;
[0095] Optionally, the click event end can be ACTION_UP.
[0096] Step S47, drawing the click event into the first image to obtain a third image;
[0097] Optional, such as Figure 2a As shown, if the preset operation instruction is a click instruction, the drawing can be performed at the same position on the first image according to the position of the click instruction when it occurs on the current screen, and the icon corresponding to the click instruction when drawing can be a circle. Figure 2b As shown, if the preset operation instruction is a long press instruction, the drawing can be performed at the same position on the first image according to the position of the long press instruction when it occurs on the current screen, and the corresponding icon when the long press instruction is drawn can be a concentric circle. Figure 2c As shown, if the preset operation instruction is a sliding instruction, it can be drawn at the same position on the first image according to the initial position and the end position of the sliding instruction when it occurs on the current screen. The corresponding icon when the sliding instruction is drawn can be a line segment marked with the sliding direction.
[0098] Step S48: adding the third image to the target list.
[0099] Optionally, application information corresponding to the second image may be obtained, and the second image may be added to the application list in the target list according to the application information.
[0100] Optional, such as Figure 3 As shown, the target list may be a timeline arranged in the order of application use, and the target sub-list may be a list of each application in the timeline, wherein the images in the target sub-list may be arranged in chronological order.
[0101] After testing, a 480p standard-definition picture occupies about 30KB of memory after retaining 70% of the details. It is estimated that 1GB of storage space can hold 33,000 records. If the phone is used continuously for 12 hours a day, with an average of 30 calculations per minute, only 21,000 records will be generated. Taking the storage of one day's operation trajectory as an example, this consumption is completely acceptable, and with the continuous increase of existing storage space, the practicality of this method will become stronger and stronger.
[0102] Example 2
[0103] According to an embodiment of the present invention, an embodiment of a method for processing event information is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here. The specific implementation method and preferred application scenario in this embodiment are the same as those in the above embodiment, and will not be repeated here.
[0104] Figure 5 is a method for processing event information according to an embodiment of the present invention, such as Figure 5 As shown, the method comprises the following steps:
[0105] Step S502: displaying a first image when a preset operation instruction is detected in the current screen.
[0106] The first image is obtained by taking a screenshot of the current screen.
[0107] In the above steps, the first image may be displayed on the screen of the electronic device, or on the screen of another electronic device associated with the electronic device. No limitation is imposed on the electronic device that displays the first image.
[0108] Step S504: when no preset operation instruction is detected in the current screen, output the storage result.
[0109] The storage result is used to represent the event information corresponding to the first image and the preset operation instruction.
[0110] In the above steps, the output storage results can be displayed in any one or more forms of output forms such as image, text, video, audio, etc., and there is no limitation on the output form of the storage results.
[0111] Optionally, before displaying the first image, it also includes: judging whether the second image in the current screen satisfies a preset scene; if the second image satisfies the preset scene, prohibiting the display of the first image; if the second image does not satisfy the preset scene, displaying the first image.
[0112] Optionally, the preset scene includes at least one of the following: a keyboard operation scene, a game operation scene.
[0113] Optionally, the storage result includes: a target list storing the third image, wherein the third image is output before the storage result is output.
[0114] In an optional embodiment, the user may be prompted to output the third image, or may not be prompted to output the third image, or may display the third image on the screen after outputting the third image.
[0115] Optionally, the storage result includes: a target sub-list storing the third image, wherein the third image is stored in the target sub-list of the target list, and the target sub-list corresponds to the target application corresponding to the third image.
[0116] like Figure 3 As shown, the target list may be a timeline used by the application, and the target sub-list may be a list of each application in the timeline, wherein the images in the target sub-list may be arranged in chronological order.
[0117] Optionally, the method further includes: displaying the third image in the target list according to the processing time of the third image.
[0118] In the above steps, the third image may be displayed on a screen of an electronic device, or may be displayed on screens of multiple electronic devices.
[0119] In an optional embodiment, the third image may be displayed in the target sub-list according to the processing time of the third image.
[0120] In another optional embodiment, a thumbnail of the third image may be displayed in the target list.
[0121] In yet another optional embodiment, thumbnails of the third images may be displayed in the target sub-list according to the processing time of the third images.
[0122] Optionally, the preset operation instruction includes at least one of the following: a click instruction, a long press instruction, a slide instruction, and a drag instruction.
[0123] Optionally, the event information includes at least one of the following: event type, time when the event occurs, time when the event ends, location information when the event starts, location information when the event ends, and application information corresponding to the event.
[0124] Example 3
[0125] According to an embodiment of the present invention, a device for processing event information is also provided. The device can execute the method for processing event information in the above-mentioned embodiment 1. The specific implementation method and preferred application scenario are the same as those in the above-mentioned embodiment and will not be described in detail here.
[0126] Figure 6 is a schematic diagram of a device for processing event information according to an embodiment of the present invention. Figure 6 As shown, the device comprises:
[0127] The screenshot module 62 is used to take a screenshot of the current screen to obtain a first image when a preset operation instruction is detected in the current screen.
[0128] The acquisition module 64 is used to acquire event information corresponding to the preset operation instruction.
[0129] The storage module 66 is used to store the first image and event information when no preset operation instruction is detected in the current screen.
[0130] Optionally, the device also includes a judgment module, used to judge whether the second image displayed in the current screen satisfies a preset scene; a prohibition module, used to prohibit taking a screenshot of the current screen if the second image satisfies the preset scene; and the screenshot module is also used to take a screenshot of the current screen to obtain a first image if the second image does not satisfy the preset scene.
[0131] Optionally, the preset scenarios in the judgment module include at least one of the following: a keyboard operation scenario, a game operation scenario.
[0132] Optionally, the storage module is further used to draw the event information onto the first image to obtain a third image; the storage module is further used to store the third image in the target list.
[0133] Optionally, the storage module includes: a determination unit, configured to determine a target application corresponding to the third image; and a storage unit, configured to store the third image into a target sub-list in the target list, wherein the target sub-list corresponds to the target application.
[0134] Optionally, the storage module includes: an acquisition unit, used to acquire the processing time of the third image; the storage unit is also used to store the third image into the target list according to the processing time.
[0135] Optionally, the preset operation instructions in the screenshot module include at least one of the following: a click instruction, a long press instruction, a slide instruction, and a drag instruction.
[0136] Optionally, the event information in the acquisition module includes at least one of the following: event type, time when the event occurs, time when the event ends, location information when the event starts, location information when the event ends, and application information corresponding to the event.
[0137] Example 4
[0138] According to an embodiment of the present invention, a device for processing event information is also provided. The device can execute the method for processing event information in the above-mentioned embodiment 2. The specific implementation method and preferred application scenario are the same as those in the above-mentioned embodiment and will not be described in detail here.
[0139] Figure 7 is a schematic diagram of a device for processing event information according to an embodiment of the present invention. Figure 7 As shown, the device comprises:
[0140] The display module 72 is used to display a first image when a preset operation instruction is detected in the current screen, wherein the first image is obtained by taking a screenshot of the current screen.
[0141] The output module 74 is used to output the storage result when no preset operation instruction is detected in the current screen, wherein the storage result is used to represent the event information corresponding to the first image and the preset operation instruction.
[0142] Optionally, the device also includes: a judgment module, used to judge whether the second image in the current screen meets the preset scene; a prohibition module is used to prohibit the display of the first image when the second image meets the preset scene; and the display module is also used to display the first image when the second image does not meet the preset scene.
[0143] Optionally, the preset scenarios in the judgment module include at least one of the following: a keyboard operation scenario, a game operation scenario.
[0144] Optionally, the storage result in the output module includes: a target list storing the third image, wherein the third image is output before the storage result is output.
[0145] Optionally, the storage result in the output module includes: storing a target sub-list of the third image, wherein the third image is stored in the target sub-list of the target list, and the target sub-list corresponds to a target application corresponding to the third image.
[0146] Optionally, the device further includes: the display module is further used to display the third image in the target list according to the processing time of the third image.
[0147] Optionally, the preset operation instructions in the display module include at least one of the following: a click instruction, a long press instruction, a slide instruction, and a drag instruction.
[0148] Optionally, the event information in the output module includes at least one of the following: event type, time when the event occurs, time when the event ends, location information when the event starts, location information when the event ends, and application information corresponding to the event.
[0149] Example 5
[0150] According to an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the event information processing method in the above-mentioned embodiment 1 and embodiment 2.
[0151] Example 6
[0152] According to an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the event information processing method in the above-mentioned embodiment 1 and embodiment 2 is executed when the program is running.
[0153] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0154] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0155] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, 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 units or modules, which can be electrical or other forms.
[0156] 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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0157] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0158] 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 technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0159] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for processing event information, characterized in that: include: When a preset operation instruction is detected in the current screen, taking a screenshot of the current screen to obtain a first image, wherein the first image includes: an image of the current screen and an image of a screen to which the current screen jumps; Acquire event information corresponding to the preset operation instruction, the event information including: event type, time when the event occurs, time when the event ends, location information of the start of the event, location information of the end of the event, and application information corresponding to the event; When the preset operation instruction is not detected in the current screen, storing the first image and the event information; Before detecting the preset operation instruction in the current screen, the method further includes: In response to determining to start the event information acquisition mode, detecting the preset operation instruction in the current screen; In response to determining that the event information acquisition mode is not enabled, the preset operation instruction in the current screen is not detected.
2. The method according to claim 1, characterized in that Before taking a screenshot of the current screen to obtain the first image, the method further includes: Determining whether the second image displayed in the current screen satisfies a preset scenario; If the second image satisfies the preset scenario, prohibiting taking a screenshot of the current screen; If the second image does not satisfy the preset scenario, a screenshot is taken of the current screen to obtain the first image.
3. The method according to claim 2, characterized in that The preset scene includes at least one of the following: a keyboard operation scene, a game operation scene.
4. The method according to claim 2, characterized in that: Storing the first image and the event information includes: Drawing the event information onto the first image to obtain a third image; The third image is stored in a target list.
5. The method according to claim 4, characterized in that Storing the third image in a target list comprises: Determining a target application corresponding to the third image; The third image is stored in a target sub-list in the target list, wherein the target sub-list corresponds to the target application.
6. The method according to claim 4 or 5, characterized in that: Storing the third image in the target list comprises: Acquire the processing time of the third image; The third image is stored in the target list according to the processing time.
7. The method according to claim 1, characterized in that The preset operation instruction includes at least one of the following: a click instruction, a long press instruction, a slide instruction, and a drag instruction.
8. A method for processing event information, characterized in that: include: In the case where a preset operation instruction is detected in the current screen, a first image is displayed, wherein the first image is obtained by taking a screenshot of the current screen, and the first image includes: an image of the current screen and an image of a screen to which the current screen jumps; In the case that the preset operation instruction is not detected in the current screen, a storage result is output, wherein the storage result is used to represent and store event information corresponding to the first image and the preset operation instruction, and the event information includes: event type, time when the event occurs, time when the event ends, location information of the start of the event, location information of the end of the event, and application information corresponding to the event; Wherein, the method further comprises: In response to determining to start the event information acquisition mode, detecting the preset operation instruction in the current screen; In response to determining that the event information acquisition mode is not enabled, the preset operation instruction in the current screen is not detected.
9. The method according to claim 8, characterized in that Before displaying the first image, it also includes: Determining whether the second image in the current screen satisfies a preset scenario; If the second image satisfies the preset scenario, prohibiting the first image from being displayed; If the second image does not satisfy the preset scenario, the first image is displayed.
10. A device for processing event information, characterized in that: include: A screenshot module, configured to take a screenshot of the current screen to obtain a first image when a preset operation instruction is detected in the current screen, wherein the first image includes: an image of the current screen and an image of a screen to which the current screen jumps; An acquisition module, used to acquire event information corresponding to the preset operation instruction, wherein the event information includes: event type, time when the event occurs, time when the event ends, location information of the start of the event, location information of the end of the event, and application information corresponding to the event; A storage module, configured to store the first image and the event information when the preset operation instruction is not detected in the current screen; Before detecting the preset operation instruction in the current screen, the device further includes: A first determining module, configured to detect the preset operation instruction in the current screen in response to determining to start the event information acquisition mode; The second determining module is configured to, in response to determining that the event information acquisition mode is not enabled, not detect the preset operation instruction in the current screen.
11. A device for processing event information, characterized in that: include: A display module, configured to display a first image when a preset operation instruction is detected in the current screen, wherein the first image is obtained by taking a screenshot of the current screen, and the first image includes: an image of the current screen and an image of a screen to which the current screen jumps; an output module, configured to output a storage result when the preset operation instruction is not detected in the current screen, wherein the storage result is used to represent and store event information corresponding to the first image and the preset operation instruction, and the event information includes: event type, time when the event occurs, time when the event ends, location information of the start of the event, location information of the end of the event, and application information corresponding to the event; Wherein, the device further comprises: A first determining module, configured to detect the preset operation instruction in the current screen in response to determining to start the event information acquisition mode; The second determining module is configured to, in response to determining that the event information acquisition mode is not enabled, not detect the preset operation instruction in the current screen.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for processing event information as claimed in any one of claims 1 to 9.
13. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program, wherein the program, when running, executes the method for processing event information described in any one of claims 1 to 9.
Citation Information
Patent Citations
Message transcription method and device
CN104793963A
Method and device for recording behaviors, intelligent device and storage medium
CN107480037A
Operating record processing method and device
CN108810268A
Operation recording method, device and terminal
CN109213668A
Application historical record viewing method and device, terminal and storage medium
CN110704477A