Image processing methods, apparatus, electronic devices and readable storage media
By automatically detecting and stitching images of dynamically changing areas in the screenshot interface, the problem of needing to take multiple screenshots for dynamic pages is solved, achieving efficient screenshot operation and improving user experience.
Patent Information
- Application Number
- CN202311282440.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-09-28
AI Technical Summary
In existing technologies, dynamically changing pages require multiple screenshots, which is cumbersome and results in a poor user experience.
By receiving the first input on the screen to be captured, a first screenshot image is generated, and a dynamically changing first region is automatically detected and determined. When the information is updated, the updated first region image is stitched together with the first screenshot image to generate a second screenshot image.
It automatically detects dynamically changing areas and generates new screenshots, reducing the need for users to manually take repeated screenshots and improving screenshot efficiency and user experience.
Smart Images

Figure CN117648144B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to an image processing method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] To facilitate users in saving images displayed on their devices, the screenshot function was developed. Users can trigger the screenshot function through physical buttons, specific gestures, or other methods.
[0003] If the page you want to capture includes dynamically updated information, you'll need to take another screenshot when the information changes later, resulting in multiple screenshots and a cumbersome process. Summary of the Invention
[0004] The purpose of this application is to provide an image processing method, apparatus, electronic device, and readable storage medium that can solve the problem of cumbersome operation caused by needing to take multiple screenshots of dynamically changing pages.
[0005] In a first aspect, embodiments of this application provide an image processing method, the method comprising:
[0006] On the screen to be screenshotted, receive the first input;
[0007] In response to the first input, a first screenshot image is generated;
[0008] Identify the first area in the screen to be captured;
[0009] If the information in the first area is updated, the updated image of the first area is stitched together with the first screenshot image to generate a second screenshot image.
[0010] Secondly, embodiments of this application provide an image processing apparatus, the apparatus comprising:
[0011] The first receiving module is used to receive the first input on the screen to be captured.
[0012] A first generation module is configured to generate a first screenshot image in response to the first input;
[0013] The determination module is used to determine the first region in the screen to be captured.
[0014] The second generation module is used to stitch the updated image of the first region with the first screenshot image to generate a second screenshot image when the information in the first region is updated.
[0015] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0016] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0017] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0018] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0019] In this embodiment, on the screen to be captured, a first input is received; in response to the first input, a first screenshot image is generated; a first region in the screen to be captured is determined; if the information in the first region is updated, the updated image of the first region is stitched together with the first screenshot image to generate a second screenshot image. In this way, after the user takes a screenshot, based on the determined dynamically changing first region, if the information in the first region is updated, the updated image of the first region is automatically stitched together with the first screenshot image to generate a new screenshot image. By automatically detecting whether the information in the first region is updated, a new screenshot image is automatically generated, saving the user the need to manually repeat the screenshot operation. Attached Figure Description
[0020] Figure 1 This is a flowchart of the steps of an image processing method provided in an embodiment of the present invention;
[0021] Figure 2 This is a schematic diagram of the first interface provided in an embodiment of the present invention;
[0022] Figure 3 This is a flowchart of another image processing method provided in an embodiment of the present invention;
[0023] Figure 4 This is a schematic diagram of the second interface provided in an embodiment of the present invention;
[0024] Figure 5 This is a schematic diagram of the third interface provided in the embodiments of the present invention;
[0025] Figure 6This is a schematic diagram of the fourth interface provided in the embodiments of the present invention;
[0026] Figure 7 This is a schematic diagram of the fifth interface provided in the embodiments of the present invention;
[0027] Figure 8 This is a schematic diagram of the sixth interface provided in the embodiments of the present invention;
[0028] Figure 9 This is a block diagram of an image processing device provided in an embodiment of the present invention;
[0029] Figure 10 This is a block diagram of an electronic device provided in an embodiment of the present invention;
[0030] Figure 11 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0031] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0032] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0033] The information interaction method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0034] refer to Figure 1 As shown in the figure, this application provides an image processing method, the method comprising:
[0035] Step 101: On the screen to be screenshotted, receive the first input.
[0036] Step 102: In response to the first input, generate a first screenshot image.
[0037] In this embodiment of the invention, the interface to be screenshotted can be a display interface of an application such as shopping, chatting, or video entertainment. The first input can be a screenshot input triggered by a physical button, a screenshot input triggered by a gesture, or a screenshot input triggered by a voice command, etc., which can be determined according to actual usage needs in practical applications, and this embodiment does not impose specific limitations on this. Specifically, gesture triggering can include click input, such as single-click input, double-click input, or any number of clicks input, and can also be long-press input or short-press input; in practical applications, the number of clicks input can be preset, and the user can operate according to the preset number of clicks input, or the number of clicks input can be set by the user according to their own operating habits.
[0038] Furthermore, in this embodiment of the invention, the first input may be a three-finger swipe down or double-tap input performed by the user on the screen to be screenshotted, so as to perform a screenshot operation on the currently displayed page.
[0039] In response to the first input, a screenshot is taken of the interface to be screenshotted, thereby obtaining a first screenshot image. The first screenshot image may include all the content of the interface to be screenshotted, or it may only include a part of the content of the interface to be screenshotted. This application embodiment does not limit this.
[0040] Step 103: Determine the first area in the screen to be captured.
[0041] In this embodiment of the invention, the first region in the screen to be captured can be determined by: manual selection by the user, for example, displaying a region selection box on the screen to be captured, allowing the user to select the first region based on the operation of the region selection box, such as determining the region selected by the selection box as the first region, or determining the region where the selected control is located as the first region. Alternatively, the first region can be determined by: automatic detection by the program, for example, automatically detecting areas in the screen to be captured where information is dynamically changing, and automatically taking the detected area as the first region. Automatic detection can be determined by periodically acquiring images of the screen to be captured and comparing them with images acquired at the previous moment, or by detecting the attributes of each control in the screen to be captured. The attributes can be feature values used to characterize whether the control is changeable.
[0042] Furthermore, the first region can be associated with a screenshot program. The screenshot program can register a listener for the first region to determine whether the information displayed in the first region has changed. If it has changed, a new screenshot image is automatically generated. The new screenshot image can be a screenshot image obtained by stitching together the image of the changed first region and the first screenshot image.
[0043] Step 104: If the information in the first area is updated, the updated image of the first area is stitched together with the first screenshot image to generate a second screenshot image.
[0044] In this embodiment of the invention, if the information in the first area is updated, the screenshot program can obtain the updated image of the first area, and according to the position of the first area in the first screenshot image, the updated image of the first area is stitched together with the first screenshot image to generate a second screenshot image.
[0045] Furthermore, the image of the first region can cover the same location area in the first screenshot to generate a second screenshot image. Alternatively, the first screenshot image can include a variable information region containing the first region and the remaining unchanging information region. The variable information region is used to replace the original image of the first region with the new image of the first region after the information of the first region is updated. The unchanging information region is used to represent the area in the first screenshot image where the information does not change. After the information of the first region is updated, the same location area in the first screenshot image can be replaced with the updated image of the first region to generate a second screenshot image. This application does not limit this. This application uses the unchanging information region in the screenshot as a basis, and the variable information region is made into a dynamically refreshed region. By continuously replacing the image at the location of the first region in the variable information region, a second screenshot image is dynamically generated for display.
[0046] In addition, for areas where information changes rapidly, the screenshot program can generate a second screenshot image at a preset time interval while monitoring the first area. For example, it can update the screenshot image every minute to avoid frequent updates and reduce energy consumption.
[0047] For example, refer to Figure 2 , Figure 2 This illustration shows a first interface diagram provided by an embodiment of this application. Taking a user queuing for a meal as an example, the interface to be screenshotted can be the interface of a queuing program. The interface of the queuing program can include information about the current waiting seat. This information changes over time. If a user takes a screenshot of the current interface and shares it with a friend, the user needs to take another screenshot and resend it to the friend after the information about the current waiting seat changes to achieve information synchronization. Using the method of this application, the user first performs a first input on the interface to be screenshotted, and a first screenshot image is generated in response to the first input. (Refer to...) Figure 2The first screenshot image can be displayed as a thumbnail on the screen to be screenshotted. The display position and size can be set according to the actual situation, and this embodiment does not limit them. While displaying the thumbnail, a prompt message "Confirm screenshot refresh area" can also be displayed simultaneously on the screen to be screenshotted. In response to the user's trigger operation on this prompt message, the user can enter the mode of selecting the first area. At this time, the user can continue to select the screen to be screenshotted and confirm the first area. At this time, the first area and the screenshot program are associated. The screenshot program registers and listens for the page information of the first area. When the information on the first area changes, the screenshot program generates a second screenshot image based on the updated image of the first area and the first screenshot image. The user can directly send the second screenshot image without manually taking a new screenshot, saving the user's operation time.
[0048] In addition, with user authorization, the first screenshot can be automatically deleted after the second screenshot is generated to save storage space.
[0049] In this embodiment, on the screen to be captured, a first input is received; in response to the first input, a first screenshot image is generated; a first region in the screen to be captured is determined; if the information in the first region is updated, the updated image of the first region is stitched together with the first screenshot image to generate a second screenshot image. In this way, after the user takes a screenshot, based on the determined dynamically changing first region, if the information in the first region is updated, the updated image of the first region is automatically stitched together with the first screenshot image to generate a new screenshot image. By automatically detecting whether the information in the first region is updated, a new screenshot image is automatically generated, saving the user the need to manually repeat the screenshot operation.
[0050] refer to Figure 3 As shown in the embodiment of this application, another image processing method is provided, the method comprising:
[0051] Step 201: On the screen to be screenshotted, receive the first input.
[0052] This step can be referred to in the description of step 101, and will not be repeated here.
[0053] Step 202: In response to the first input, generate a first screenshot image.
[0054] This step can be referred to in the description of step 102, and will not be repeated here.
[0055] Step 203: On the screen to be screenshotted, receive the second input.
[0056] In this embodiment of the invention, if the screen to be captured includes a local area where information changes dynamically, then after generating the first screenshot image, a second input can be received on the screen to be captured to determine the information change area that the user wants to focus on.
[0057] Specifically, the second input can be the user's input to determine the area of information change in the screenshot interface. For example, the user can long-press any position in the screenshot image to display a selection box for the selected area. The user can then select the target area of information change based on dragging, scaling, or other operations on the selection box, or determine the target area by selecting a control element displayed in the screenshot interface. By having the user determine the first area, it is possible to monitor only the area of interest to the user, without having to pay attention to other dynamically changing areas in the screenshot interface, thus saving processing resources. At the same time, the generated second screenshot image is more in line with the user's needs. In addition, the unchanged parts of multiple second screenshot images can share a single storage, saving storage resources.
[0058] Optionally, step 203 specifically includes:
[0059] Sub-step 2031: On the screen to be screenshotted, receive a gesture swipe operation.
[0060] In an embodiment of the present invention, reference is made to Figure 4 , Figure 4 The second interface provided in this application embodiment is shown in the figure. The gesture swipe operation can be used to control the operation of the area selection box. The user can use gesture swipe to select the area ( Figure 3 The rectangle that displays the number of people waiting after selecting the current waiting seats can be used to perform operations, such as dragging, scaling, etc., to determine the position and size of the area selection box, and then the area selected by the area selection box is determined as the first area.
[0061] Optionally, step 203 specifically includes:
[0062] Sub-step 2032: On the screen to be screenshotted, receive element selection operation;
[0063] In an embodiment of the present invention, reference is made to Figure 5 , Figure 5The illustration shows a third interface diagram provided in this application embodiment. The element selection operation can be a long press or click operation on an element on the screen to be screenshotted. Taking a long press as an example, the user can long press the location of the specific information of the current waiting seat on the screen to be screenshotted. After a preset long press, a prompt box for setting the screenshot as variable information is displayed on the screen to be screenshotted. In response to input to this prompt box, the area where the selected element is located is determined as the first area. It should be noted that the display position of each element is fixed, and it has a fixed display area and coordinates relative to the screen to be screenshotted. Therefore, when long-pressing, as long as the long-pressed position is within the display area of an element, it can be considered a selection operation for that element. For example, long-pressing the location of "10" will prompt a prompt for setting the screenshot as variable information near the page area displaying "10". In response to this prompt, the display area where "10" is located is determined as the first area.
[0064] This application implements the operation of determining the area of information change in the screen to be captured through multiple methods, which makes it convenient for users to quickly specify the first area. When the screen to be captured includes multiple areas of variable information, by specifying the first area by the user, only the information changes of the specified first area can be monitored, saving processing resources.
[0065] Step 204: In response to the second input, determine the first area in the screen to be captured.
[0066] Optionally, step 204 specifically includes:
[0067] Sub-step 2041: In response to the gesture swipe operation, display a region selection box and determine the region selected by the region selection box as the first region.
[0068] This step can be referred to in the description of sub-step 2031, and will not be repeated here.
[0069] Optionally, step 204 specifically includes:
[0070] Sub-step 2042: In response to the element selection operation, the region where the element is located is determined as the first region.
[0071] This step can be referred to in the description of sub-step 2032, and will not be repeated here.
[0072] Step 205: Display the contact identifier and receive a fourth input for the target contact identifier in the contact identifier.
[0073] In this embodiment of the invention, after a user takes a screenshot of the current application page to obtain a first screenshot image and determines a first region, a contact identifier can be displayed on the screen to be screenshotted. The first screenshot image is then sent to the selected target contact through a fourth input to the displayed contact identifier.
[0074] Step 206: In response to the fourth input, associate the first target area with the target contact and send the first screenshot image to the target contact.
[0075] In this embodiment of the invention, a "Send to Contacts" option can be provided below the first screenshot image of the interface to be screenshotted. Clicking this option button will bring up a list of social contact identifiers (see reference 6). Figure 6 The illustration shows a fourth interface provided in this application embodiment, whereby a user can send a first screenshot image by selecting one or more contact identifiers from the contact identifier list. Specifically, a screenshot image can be sent by clicking on the avatars of one or more contacts.
[0076] Furthermore, users can drag contact avatars from the contact list to the first area to associate the first area with the contact. Once associated, if the information in the first area is updated, the screenshot program can automatically generate a second screenshot image and send it automatically or by user confirmation to the target contact.
[0077] It should be noted that after the first screenshot image is sent to the target contact, the first screenshot image carries a page identifier. The first screenshot image can be saved locally or in the application. After the first area is updated, the first screenshot image locally or in the application can be determined based on the page identifier. Then, the updated first area and the first screenshot image are stitched together to generate the second screenshot image.
[0078] Step 207: If the information in the first area is updated, generate a session message to be sent to the target contact.
[0079] In this embodiment of the invention, if the information in the first area is updated, a conversation message to be sent to the target contact can be regenerated based on the automatically generated second screenshot image. Alternatively, if the information in the first area is updated, a conversation message can be generated to inform the target contact that the information in the first area has changed. By automatically generating conversation messages, the process of requiring the user to retake the screenshot or input text to inform the target contact that the information in the screenshot has expired is simplified, and the user can choose to send the message.
[0080] Optionally, step 207 specifically includes:
[0081] Sub-step 2071: If the information in the first region is updated, the updated image of the first region is stitched together with the first screenshot image to generate a second screenshot image, and the second screenshot image is generated as a first session message.
[0082] Optionally, the method further includes: associating the first region with a screenshot program;
[0083] Sub-step 2071 may specifically include:
[0084] Sub-step 20711: If the information in the first region is updated, obtain the sub-image formed by the updated first region;
[0085] Sub-step 20712: Control the screenshot program to stitch the sub-image to the second region in the first screenshot image to generate a second screenshot image; the second region is in the same position as the first region.
[0086] In this embodiment of the invention, for sub-steps 20711 and 20712, the first region can be associated with a screenshot program to monitor whether the first region is updated and to generate a new second screenshot image.
[0087] Furthermore, if the information within the first area is updated, the screenshot program can automatically take another screenshot of the first area, obtaining a sub-image formed by the updated first area. This sub-image can then be overlaid onto the corresponding area in the first screenshot image to generate a new screenshot, i.e., the second screenshot image. Alternatively, it can use the area with unchanged information as a base, stitching the sub-image with the area with unchanged information in the first screenshot image to generate a new second screenshot image. To reduce system memory usage, multiple images with unchanged information can share a single storage location.
[0088] Sub-step 2072: Send the first session message to the target contact.
[0089] In this embodiment of the invention, if the user is currently on the first application page, the generated first conversation message can be displayed on the first application page in the form of a pop-up window, notifying the user that a new conversation message has been generated. The user can then click or select the conversation message to send it to the target contact. Alternatively, the conversation message can also be automatically sent to the target contact; this embodiment of the application does not limit this.
[0090] refer to Figure 7 , Figure 7 The fifth interface diagram provided in the embodiment of this application is shown. After receiving the session message, the user can display a prompt that "This is a message generated by a screenshot variable information". The user can perform input such as clicking on the message, and then display a second screenshot image on the interface.
[0091] Optionally, step 207 specifically includes:
[0092] Sub-step 2073: If the information in the first area is updated, generate a second session message indicating that the information in the first area has been updated.
[0093] Sub-step 2074: Send the second session message to the target contact.
[0094] In this embodiment of the invention, regarding sub-steps 2073 and 2074, if the information in the first area is updated, a notification message indicating that the information in the first area has been updated can be generated as a second conversation message and sent to the target contact to remind them that the information in the first area has been updated. The second conversation message may include a second screenshot image or an image of the first area. If it includes a second screenshot image, the target contact can determine whether to display the second screenshot image on their conversation interface based on the input of the second conversation message. If it includes an image of the first area, the target contact can determine whether to stitch the image of the first area with a local first screenshot image to generate a second screenshot image based on the input of the second conversation message. This satisfies the target contact's need to display the second screenshot image in different ways.
[0095] Optionally, after step 204, the method further includes;
[0096] Step 208: In the first region, receive a third input;
[0097] Step 209: In response to the third input, associate the first region with a target application; the target application includes associated information related to information updates within the first region.
[0098] Step 210: If the associated information is updated, update the information in the first area according to the associated information, and stitch the updated image of the first area with the first screenshot image to generate a second screenshot image.
[0099] In this embodiment of the invention, for steps 208 to 210, the variable information source for the screenshot may not be the original application page, but may be other applications or other information sources, see reference. Figure 8 , Figure 8The illustration shows a sixth interface diagram provided by an embodiment of the present invention. After a user captures a first screenshot of a first application and determines a first region of that screenshot, the user can perform a third input on that region using gestures or other operations. For example, if the third input is a long press, after the user long presses the first target region, the associated area displays the option "Add Other Information Source." After clicking this option, the user can select other information sources from the system (such as installed applications or page controls) and use these selected sources as the target application. After selection, the screenshot program is associated with the target application. When the information in the target application changes, the screenshot program can be automatically notified to refresh the first screenshot. For example, assuming the current screenshot page is application 1 and the added target application is application 2, the information from application 2 can be transmitted to the first region of application 1 as a new screenshot, or a change in the information of application 2 can be transmitted as an action notification to application 1, notifying application 1 to refresh itself. After refreshing, a second screenshot is generated.
[0100] For example, taking a restaurant queuing scenario, the program displaying the current waiting seats is application 1. The number of people currently waiting is a variable area, i.e., the first area defined by the user. This variable area can be associated with an indoor camera program, which is application 2. The camera monitors changes in the number of diners indoors, and when the number changes, it notifies application 1 of the changed information (associated information). Application 1 then updates its own waiting number value based on the data from the camera program. If the camera's detection is inaccurate, the number in the variable area can also be notified to the camera program for recalibration.
[0101] For example, Application 1 could be a health monitoring app, displaying the user's step count in its interface. The area displaying the user's step count could be a first region. Application 2 could be the user's fitness tracker app. The user associates the first region of Application 1 with Application 2. Thus, when the fitness tracker app receives an update on the user's step count, it can update the value of the step count display area in Application 1 based on the fitness tracker app's data, thereby regenerating the second screenshot image. This application enriches the data sources for changes in the first region's information by associating the first region with other applications, improving the accuracy of these changes. It also expands the application scenarios of this method, enabling information linkage between multiple apps.
[0102] Optionally, after step 209, the method further includes:
[0103] Step 211: If the information in the first region is updated, update the associated information in the target application according to the updated information in the first region.
[0104] In this embodiment of the invention, since the first region is associated with the target application, information about changes in the first region can also be transmitted to the target application, allowing the target application to update its own content and achieve bidirectional information updates. For example, if the step count of the health monitoring app is updated, the bracelet program can update its own recorded step count based on the health monitoring app's step count, achieving consistency between the two apps' records and improving the accuracy of data recording.
[0105] The image processing method provided in this application can be executed by an image processing device. This application uses an image processing device executing the image processing method as an example to illustrate the image processing device provided in this application.
[0106] refer to Figure 9 This application provides an image processing apparatus 30, the apparatus comprising:
[0107] The first receiving module 301 is used to receive the first input on the screen to be captured.
[0108] The first generation module 302 is used to generate a first screenshot image in response to the first input;
[0109] Module 304 is used to determine the first region in the screen to be captured.
[0110] The second generation module 305 is used to stitch the updated image of the first region with the first screenshot image to generate a second screenshot image when the information in the first region is updated.
[0111] Optionally, the determining module includes:
[0112] The selection submodule is used to receive a second input on the screen to be captured.
[0113] The region determination submodule is used to determine a first region in the interface to be captured in response to the second input.
[0114] The selection submodule includes:
[0115] The first receiving submodule is used to receive gesture swiping operations on the screen to be screenshotted.
[0116] The determining module includes:
[0117] The first determination submodule is used to respond to the gesture swipe operation, display a region selection box, and determine the region selected by the region selection box as the first region.
[0118] Optionally, the selection submodule includes:
[0119] The second receiving submodule is used to receive element selection operations on the screen to be screenshotted.
[0120] The determining module includes:
[0121] The second determination submodule is used to determine the region where the element is located as the first region in response to the element selection operation.
[0122] Optionally, the device further includes:
[0123] The first association module is used to associate the first area with the screenshot program;
[0124] The second generation module includes:
[0125] The sub-image determination submodule is used to obtain the updated sub-image formed by the first region when the information in the first region is updated;
[0126] The stitching submodule is used to control the screenshot program to stitch the sub-image to the second region of the first screenshot image to generate a second screenshot image; the second region is in the same position as the first region.
[0127] Optionally, the device further includes:
[0128] The second receiving module is used to receive a third input in the first area;
[0129] The second association module is used to associate the first region with a target application in response to the third input; the target application includes association information related to information updates within the first region.
[0130] The update module is used to update the information in the first region according to the association information when the association information is updated, and to stitch the updated image of the first region with the first screenshot image to generate a second screenshot image.
[0131] Optionally, the device further includes:
[0132] The reverse update module is used to update the associated information in the target application based on the updated information in the first region when the information in the first region is updated.
[0133] Optionally, the device further includes:
[0134] The display module is used to display contact identifiers and receive a fourth input for the target contact identifier in the contact identifiers;
[0135] The sending module is configured to, in response to the fourth input, associate the first region with the target contact and send the first screenshot image to the target contact;
[0136] The first conversation automatic generation module is used to generate a conversation message to be sent to the target contact when the information in the first area is updated.
[0137] Optionally, the session auto-generation module includes:
[0138] The first submodule is used to stitch the updated first region with the first screenshot image to generate a second screenshot image when the information in the first region is updated, and to generate the second screenshot image as a first session message.
[0139] The second submodule is used to send the first session message to the target contact.
[0140] Optionally, the session auto-generation module includes:
[0141] The third submodule is used to generate a second session message as a notification that the information in the first area has been updated when the information in the first area is updated.
[0142] The fourth submodule is used to send the second session message to the target contact.
[0143] In summary, in this embodiment, on the screen to be captured, a first input is received; in response to the first input, a first screenshot image is generated; a first region in the screen to be captured is determined; if the information in the first region is updated, the updated image of the first region is stitched together with the first screenshot image to generate a second screenshot image. Thus, after the user takes a screenshot, based on the dynamically changing information in the first region, if the information in the first region is updated, the updated image of the first region is automatically stitched together with the first screenshot image to generate a new screenshot image. By automatically detecting whether the information in the first region has been updated, a new screenshot image is automatically generated, eliminating the need for the user to manually repeat the screenshot process.
[0144] The image processing device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0145] The image processing device in this application embodiment can be a device with an operating system. The operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.
[0146] The image processing apparatus provided in this application embodiment can achieve... Figure 1 and Figure 3 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0147] like Figure 10 As shown, this application embodiment also provides an electronic device 400, including a processor 401 and a memory 402. The memory 402 stores a program or instructions that can run on the processor 401. When the program or instructions are executed by the processor 401, they implement the various steps of the above-described image processing method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0148] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0149] Figure 11 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of this application.
[0150] The electronic device 1000 includes, but is not limited to, components such as: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
[0151] Those skilled in the art will understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 11 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0152] The user input unit 1007 is used to receive the first input on the screen to be captured.
[0153] Processor 1010 is used to generate a first screenshot image in response to the first input;
[0154] The user input unit 1007 is used to receive a second input on the screen to be captured.
[0155] Processor 1010 is used to determine a first region in the screen to be captured in response to the second input;
[0156] The processor 1010 is used to stitch the updated image of the first region with the first screenshot image to generate a second screenshot image when the information in the first region is updated.
[0157] Optionally, the user input unit 1007 is used to receive a gesture swipe operation on the screen to be screenshotted;
[0158] The processor 1010 is used to respond to the gesture swipe operation by displaying a region selection box and defining the region selected by the region selection box as the first region.
[0159] Optionally, the user input unit 1007 is used to receive element selection operations on the screen to be screenshotted.
[0160] The processor 1010 is configured to, in response to the element selection operation, determine the region where the element is located as a first region.
[0161] Optionally, the processor 1010 is used to associate the first region with the screenshot program;
[0162] If the information in the first region is updated, obtain the sub-image formed by the updated first region;
[0163] The screenshot program controls the stitching of the sub-image to the second region of the first screenshot image to generate a second screenshot image; the second region is in the same position as the first region.
[0164] Optionally, the user input unit 1007 is configured to receive a third input in the first area;
[0165] Processor 1010 is configured to associate the first region with a target application in response to the third input; the target application includes associated information related to information updates within the first region;
[0166] If the associated information is updated, the information in the first area is updated according to the associated information, and the updated first area is stitched together with the first screenshot image to generate a second screenshot image.
[0167] Optionally, the processor 1010 is configured to update the associated information in the target application based on the updated information in the first region when the information in the first region is updated.
[0168] Optionally, the display unit 1006 is used to display a contact identifier on the screen to be screenshotted, and the user input unit 1007 is used to receive a fourth input for the target contact identifier in the contact identifier;
[0169] Processor 1010 is configured to, in response to the fourth input, associate the first region with the contact and send the first screenshot image to the target contact;
[0170] If the information in the first area is updated, a session message is generated and sent to the target contact.
[0171] Optionally, the processor 1010 is configured to, in the event of an update in the first region, stitch the updated first region with the first screenshot image to generate a second screenshot image, and generate the second screenshot image as a first session message;
[0172] The processor 1010 is used to send the first session message to the target contact.
[0173] Optionally, the processor 1010 is configured to generate a second session message indicating that the information in the first area has been updated, in the event that the information in the first area has been updated.
[0174] The processor 1010 is used to send the second session message to the target contact.
[0175] In this embodiment, on the screen to be captured, a first input is received; in response to the first input, a first screenshot image is generated; a first region in the screen to be captured is determined; if the information in the first region is updated, the updated image of the first region is stitched together with the first screenshot image to generate a second screenshot image. In this way, after the user takes a screenshot, based on the determined dynamically changing first region, if the information in the first region is updated, the updated image of the first region is automatically stitched together with the first screenshot image to generate a new screenshot image. By automatically detecting whether the information in the first region is updated, a new screenshot image is automatically generated, saving the user the need to manually repeat the screenshot operation.
[0176] It should be understood that, in this embodiment, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0177] The memory 1009 can be used to store software programs and various data. The memory 1009 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1009 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1009 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0178] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor 1010.
[0179] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described image processing method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0180] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0181] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described image processing method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0182] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0183] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described image processing method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0184] 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. Without further limitations, 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. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0185] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0186] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An image processing method, characterized in that, The method includes: On the screen to be screenshotted, receive the first input; In response to the first input, a first screenshot image is generated; Identify the first area in the screen to be captured and associate the first area with the screenshot program; In the first region, a third input is received; In response to the third input, the first region is associated with a target application; the target application includes associated information related to information updates within the first region; if the associated information is updated, the information within the first region is updated according to the associated information. If the information in the first region is updated, a sub-image formed by the updated first region is obtained; the screenshot program is controlled to stitch the sub-image to the second region in the first screenshot image to generate a second screenshot image; the second region is in the same position as the first region; and the associated information in the target application is updated according to the information in the updated first region.
2. The method according to claim 1, characterized in that, Determining the first region in the screen to be captured includes: On the screen to be screenshotted, receive the second input; In response to the second input, a first region in the screen to be captured is determined; The step of receiving a second input on the screen to be screenshotted includes: On the screen to be screenshotted, a gesture swipe operation is received; The step of responding to the second input and determining the first region in the screen to be captured includes: In response to the gesture swipe operation, a region selection box is displayed, and the region selected by the region selection box is determined as the first region.
3. The method according to claim 1, characterized in that, Determining the first region in the screen to be captured includes: On the screen to be screenshotted, receive the second input; In response to the second input, a first region in the screen to be captured is determined; The step of receiving a second input on the screen to be screenshotted includes: On the screen to be screenshotted, receive the element selection operation; The step of responding to the second input and determining the first region in the screen to be captured includes: In response to the element selection operation, the region where the element is located is defined as the first region.
4. The method according to claim 1, characterized in that, After determining the first region in the screen to be captured, the method further includes: Display the contact identifier and receive a fourth input for the target contact identifier in the contact identifier; In response to the fourth input, the first region is associated with the target contact, and the first screenshot image is sent to the target contact; If the information in the first area is updated, a session message is generated and sent to the target contact.
5. The method according to claim 4, characterized in that, In the event of an information update within the first region, generating a session message to be sent to the target contact includes: If the information in the first area is updated, the updated image of the first area is stitched together with the first screenshot image to generate a second screenshot image, and the second screenshot image is generated as a first session message; Send the first session message to the target contact.
6. The method according to claim 4, characterized in that, In the event of an information update within the first region, generating a session message to be sent to the target contact includes: If the information in the first area is updated, a notification message indicating that the information in the first area has been updated will be generated as a second session message; The second session message is sent to the target contact.
7. An image processing apparatus, characterized in that, The device includes: The first receiving module is used to receive the first input on the screen to be captured. A first generation module is configured to generate a first screenshot image in response to the first input; The determination module is used to determine the first region in the screen to be captured. The first association module is used to associate the first area with the screenshot program; The second receiving module is used to receive a third input in the first area; The second association module is used to associate the first region with a target application in response to the third input; the target application includes association information related to information updates within the first region. The update module is used to update the information in the first region according to the associated information when the associated information is updated; The second generation module includes: The sub-image determination submodule is used to obtain the updated sub-image formed by the first region when the information in the first region is updated; The stitching submodule is used to control the screenshot program to stitch the sub-image to the second region of the first screenshot image to generate a second screenshot image; the second region is in the same position as the first region; The device further includes: The reverse update module is used to update the associated information in the target application based on the updated information in the first region when the information in the first region is updated.
8. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a program or instructions that can run on the processor, and the program or instructions, when executed by the processor, implement the steps of the image processing method as described in any one of claims 1 to 6.
9. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the image processing method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Terminal dynamic screen capturing method and device, and readable storage medium
CN107229402A
