Screen shot generation method, device and electronic equipment

By identifying and generating target visual elements, the screenshot content is automatically optimized, solving the problem that users need to manually process screenshots in existing technologies, thus improving the quality of screenshots and user experience.

CN122111292APending Publication Date: 2026-05-29NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
NETEASE (HANGZHOU) NETWORK CO LTD
Filing Date
2026-04-17
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

The existing screenshot function cannot automatically identify and optimize application interface elements. Users need to manually add text and annotations, which is cumbersome and affects user experience and content quality.

Method used

By identifying application interface elements through terminal devices or cloud interaction systems, target visual elements are generated. Combining the initial visual elements and image templates, the target image corresponding to the screenshot command is automatically generated.

Benefits of technology

It simplifies the process of highlighting and enhancing screenshot content, improves user experience, and enhances the attractiveness and information completeness of screenshots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122111292A_ABST
    Figure CN122111292A_ABST
Patent Text Reader

Abstract

The application provides a screenshot generation method and device and electronic equipment. In response to a screenshot instruction, a target interface element in an application interface is determined, and a target image template is determined. The target image template includes an initial visual element, and the display mode of the initial visual element is limited. A target visual element is generated based on the target interface element and the initial visual element. A target image corresponding to the screenshot instruction is generated based on the application interface, the target image template and the target visual element. After the user triggers the screenshot, the target interface element and the target image template in the current application interface can be automatically determined, and then the target visual element is generated. The target visual element is added to the application interface, the target image highlighting the specified attribute of the target interface element is generated, the operation of the user for highlighting, beautifying and the like of the screenshot content is simplified, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and more specifically, to a screenshot generation method, apparatus, and electronic device. Background Technology

[0002] In social networking and gaming applications, players often need to capture memorable moments using screenshots and share them on other social media platforms to enhance interactivity and reach. However, the built-in screenshot function within these applications only saves the current image. Users must then manually add text descriptions, annotations, or enhancements using third-party image editing tools. This cumbersome process results in a poor user experience. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide a screenshot generation method, apparatus and electronic device to simplify the user's operation of highlighting, beautifying and other processing of screenshot content, and improve the user experience.

[0004] In a first aspect, embodiments of the present invention provide a screenshot generation method, wherein an application is run on a terminal device to display the application interface corresponding to the application; the method includes: in response to a screenshot command, determining a target interface element in the application interface and determining a target image template; the target image template includes initial visual elements and defines the display mode of the initial visual elements; the initial visual elements correspond to at least one of the following: the basic attributes of the target interface elements and the real-time state of the target interface elements in the current application scenario corresponding to the application interface; generating a target visual element based on the target interface elements and the initial visual elements; and generating a target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual element.

[0005] Secondly, embodiments of the present invention provide a screenshot generation device, which runs an application on a terminal device to display the application interface corresponding to the application; the device includes: a template determination module, used to determine target interface elements in the application interface and determine a target image template in response to a screenshot command; the target image template includes initial visual elements and defines the display mode of the initial visual elements; the initial visual elements correspond to at least one of the following: the basic attributes of the target interface elements and the real-time state of the target interface elements in the current application scenario corresponding to the application interface; a visual element generation template, used to generate target visual elements based on the target interface elements and the initial visual elements; and a target image generation template, used to generate a target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements.

[0006] Thirdly, embodiments of the present invention provide an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-described screenshot generation method.

[0007] Fourthly, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to implement the above-described screenshot generation method.

[0008] The embodiments of the present invention bring the following beneficial effects: The aforementioned screenshot generation method, apparatus, and electronic device, in response to a screenshot command, determine a target interface element in the application interface and a target image template. The target image template includes initial visual elements and defines the display method of the initial visual elements. The initial visual elements correspond to at least one of the following: the basic attributes of the target interface element and the real-time state of the target interface element in the current application scenario corresponding to the application interface. Based on the target interface element and the initial visual element, a target visual element is generated. Based on the application interface, the target image template, and the target visual element, a target image corresponding to the screenshot command is generated. This method automatically determines the target interface element and the target image template in the current application interface after the user triggers a screenshot, thereby generating the target visual element, adding the target visual element to the application interface, and generating a target image that highlights the specified attributes of the target interface element. This simplifies the user's operations for highlighting, beautifying, and other processing of screenshot content, improving the user experience.

[0009] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.

[0010] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0011] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0012] Figure 1 A flowchart of a screenshot generation method provided in an embodiment of the present invention; Figure 2 A schematic diagram of an application interface provided in an embodiment of the present invention; Figure 3 A schematic diagram of another application interface provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a screenshot generation device provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0013] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0014] In the realm of digital entertainment and gaming applications, users frequently need to capture memorable moments during gameplay and share them on social media or other platforms to enhance interactivity and reach. This typically relies on basic screenshot functions built into the operating system or the game itself. For example, users trigger a screenshot via a keyboard shortcut or interface button, and the system captures the current screen image and saves it to local storage in a standard format (such as PNG or JPEG). Some games or applications may further offer simple screenshot management features, such as sorting by time or adding basic filters, but they lack in-depth analysis and automated enhancement of image content.

[0015] Users who wish to enhance the expressiveness and appeal of their shared content often need to manually use third-party image editing tools to add text descriptions, highlight key information, or perform aesthetic enhancements. This process is not only cumbersome but also relies heavily on the user's creativity and expressive abilities. While third-party tools allow users to manually add text, graphics, or mark areas, these tools are typically not integrated with game scenes and real-time data, and cannot automatically identify in-game elements or associate them with contextual information.

[0016] In the methods described above, users need to manually complete post-screenshot optimization steps, such as writing text, adding tags, or beautifying the image, increasing the burden and time cost. The sharing effect is limited by the user's writing ability and aesthetic sense, potentially leading to insufficient content appeal or inaccurate information delivery. Existing screenshot functions only save visual images and cannot automatically identify in-game elements (such as characters, items, and stats) and their associated data, making it difficult to provide intelligent content enhancement suggestions. The manual processing is unsuitable for real-time or high-frequency sharing scenarios, reducing user experience and dissemination efficiency. These shortcomings limit the quality and dissemination value of screenshot content, highlighting the need for automated and intelligent screenshot optimization solutions.

[0017] Based on this, embodiments of the present invention provide a screenshot generation method, apparatus, and electronic device, which can be applied to game scenarios where monsters can enter a state where their weaknesses are exposed.

[0018] The screenshot generation method in one embodiment of this invention can run on a local terminal device or a server. When the screenshot generation method runs on a server, it can be implemented and executed based on a cloud interaction system, which includes a server and client devices.

[0019] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of screenshot generation are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.

[0020] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.

[0021] See Figure 1 First, a screenshot generation method provided by an embodiment of the present invention will be introduced. An application is run on a terminal device to display the application interface corresponding to the application. The application can be a social media application, a game application, an office application, etc., and is not limited thereto.

[0022] The method includes the following steps: Step S102: In response to the screenshot command, determine the target interface element in the application interface and determine the target image template; the target image template includes initial visual elements and limits the display method of the initial visual elements; the initial visual elements correspond to at least one of the following: the basic attributes of the target interface element and the real-time state of the target interface element in the current application scenario corresponding to the application interface.

[0023] The screenshot commands mentioned above are typically generated by the user through a human-computer interaction device connected to the terminal device. These devices can be a mouse, keyboard, game controller, touchscreen, etc. For example, a user can click a specific key on the keyboard to generate a screenshot command; a user can also click the icon in the application interface used to trigger a screenshot to generate a screenshot command; when the terminal device is equipped with a touchscreen, the user can also perform touch operations such as clicking, long-pressing, or swiping on the icon in the application interface used to trigger a screenshot to generate a screenshot command. Specific settings can be configured according to needs and are not limited here.

[0024] The screenshot commands described above can be applied to the entire application interface or to a specific area within it. For example, a user can use the mouse to select a portion of the application interface as the designated area for the screenshot command.

[0025] Applications typically encounter different usage scenarios, and the interface elements included in the application interface usually differ depending on the scenario. For example, social applications may involve social information exchange scenarios, and the corresponding social interface will include interface elements such as account identifiers of each account in the current channel, social messages sent by each account, and functional controls for sending social messages; social applications may also involve social activity statistics scenarios, and the corresponding social interface will include interface elements such as statistics duration, statistics frequency, and account identifiers of the most frequently interacted accounts.

[0026] In this context, game applications will present game scenarios, and the corresponding application interface needs to display the screen where the player controls a virtual character to play in a virtual game scene. The interface usually includes character models of the game scene, controls for controlling the controlled virtual character's game behavior, and other interface elements. Game applications will also present game settlement scenarios, and the corresponding application interface needs to display the results of the game. The interface usually includes icons for each ranking in the game and identifiers for the game characters corresponding to each ranking.

[0027] Office applications often involve office work scenarios, and the corresponding application interfaces typically include controls to trigger various office actions, as well as office information sent from other staff accounts. The examples of application scenarios for several different applications mentioned above are for illustrative purposes only. In actual implementation, the specific implementation can be determined according to the actual situation, and no restrictions are imposed here.

[0028] After a screenshot command is generated, users can continue to select interface elements within the corresponding interface area using selection commands. This process typically involves the user selecting a specific location on the interface; the interface element displayed at that location will be identified as the selected element, i.e., the target element. Alternatively, after a screenshot command is generated, the interface elements within the corresponding interface area can be identified, and then the target element can be determined from among the identified elements.

[0029] The aforementioned basic attributes typically refer to the attributes inherent in the interface element itself. For example, when the interface element is a character model, its basic attributes can be the character's gender, name, skills, level, etc.; when the interface element is a control icon, its basic attributes can be the control function and display position of the control icon, etc.

[0030] The real-time state of UI elements in an application scenario is usually changeable. The real-time state of a UI element can be dynamic data or environmental context information showing how the element changes over time within the application scenario. It typically serves to provide context and trigger specific visual enhancement strategies.

[0031] Specifically, in one optional implementation, the real-time status may include the cumulative numerical changes of a virtual object in the current game. For example, a character's real-time status may include the number of kill streaks or critical hit damage values ​​that have just been achieved, which can be used to generate corresponding achievement tags in screenshots. When the kill streak reaches a certain threshold, special visual effects are triggered, such as generating a golden full-screen flashing effect for a five-kill streak while only generating a normal badge for a three-kill streak, reflecting the achievement level through differences in visual intensity.

[0032] Specifically, in one optional implementation, the real-time status can include the availability status or charge level of a virtual item in a specific environment. For example, the real-time status of a weapon can be displayed as an awakened state or fully charged, triggering special light effect visual elements in the screenshot template. When the weapon is detected to be in a fully charged state, the screenshot will automatically add energy ripple effects and an awakening icon, creating a visual difference from the normal state of not being fully charged, highlighting the value of the special state.

[0033] Specifically, in an optional implementation, the real-time state may include environmental parameters of the application scenario and event trigger markers. For example, the real-time state at the moment of taking the screenshot may include a rainy environment or a boss battle phase. These states affect the selection of background visual elements in the screenshot template. A rainy environment automatically adds a raindrop blur effect and a cool-toned filter, while a boss battle phase adds a threat warning border and an epic battle slogan to enhance the contextual immersion and narrative of the screenshot.

[0034] It should be noted that the real-time status can be just one of the above implementation methods, or it can be multiple of the above implementation methods simultaneously. For example, the real-time status of a screenshot can simultaneously include killstreak value, environmental weather type, and current game mode indicator. The system will intelligently select the most expressive visual combination by integrating these status information, such as displaying weather effects and achievement effects at the same time when a high killstreak is achieved in a rainy environment, creating a unique visual atmosphere.

[0035] Real-time status can include the display status and usage status of interface elements themselves, as well as the interaction status between interface elements. Only interface elements that can interact with other interface elements have an interactive status, such as character models in game applications and accounts in social applications. For example, character models in games can attack each other, and accounts in social applications can send messages to other accounts, such as by using "@" to indicate that the message is sent to a specific account.

[0036] The real-time states of interface elements can be pre-set to differ in different application scenarios. For example, in one game scenario, multiple character models can lift each other; in other game scenarios, character models cannot lift each other.

[0037] The real-time state of UI elements in an application scenario can be reflected by their display effects. During the identification of UI elements within an application interface, the display effects can be determined simultaneously, thereby confirming the real-time state of the UI elements. For example, if a character model displays a black halo, it indicates the character model is in a poisoned state; if a control is highlighted, it indicates the control has been triggered. Some interactive states between UI elements can also be determined through image recognition. For instance, when one character model launches a skill attack on another, the attack effect will be displayed in the UI area between the two character models.

[0038] It can also acquire real-time running data of the application on the terminal device to determine the real-time state of interface elements. For example, when the interface element is a control, the state parameters corresponding to the control can be obtained from the running data. These state parameters can indicate whether the control is in a triggered state. When the application communicates with the corresponding server, it can also obtain the current data of the first account logged into the application from the server and determine the relevant data of the current interface elements, such as the state data of the virtual character controlled by the first account, thereby determining the real-time state of the interface elements.

[0039] Multiple image templates can be pre-set. Each image template has one or more corresponding interface elements; the interface elements corresponding to different image templates can be the same or different; when the interface elements corresponding to different image templates are the same, the attributes of the interface elements they emphasize are usually different. For example, an image template for an office application can focus on the interface element of the work duration icon and the basic attribute of work duration, namely the value of the work duration. This image template can include an initial visual element corresponding to the work duration, which can be a combination of the work duration value and the text "Thank you for your hard work!"

[0040] In addition to the initial visual elements, image templates can also include some basic visual elements, which may be related to interface elements or used solely for aesthetic purposes. For example, they may include sticker elements such as borders, sun, and moon.

[0041] After identifying the interface elements in the interface area corresponding to the screenshot command, the system searches for image templates in the preset image templates where all corresponding interface elements appear in that interface area. When an image template has limitations on the attributes or states of interface elements, it is also necessary to determine whether the corresponding interface elements in the interface area can satisfy the limitations of the image template before the image template can be identified as the target image template. For example, if an image template limits the interaction state of a character model to launching a skill attack on another character model, then the image template can only be identified as the target image template if the interface area includes the character model and the character model is launching a skill attack on another model. Among the identified interface elements, the interface elements that correspond to the target image template are the target interface elements.

[0042] When determining the target image template, the user's historical selection of image templates and the user's preferences when using the application can also be considered, such as the style of the emojis used and the style of the game characters used. In addition to the corresponding preset conditions for the target image templates, style tags such as "sweet," "cute," and "cool" can be set for each image template for use in the target image template matching process.

[0043] Step S104: Generate target visual elements based on target interface elements and initial visual elements.

[0044] After determining the target interface elements and the target image template, it is necessary to generate target interface elements that indicate the corresponding attributes of the target interface elements based on the initial visual elements in the target image template. When setting the target image template, the corresponding attributes of the target interface elements in the current application context are unknown, and the initial visual elements can be randomly set. For example, if the initial visual element refers to the name of a target interface element, the elements corresponding to the name in the initial visual element can be replaced with the name of the target interface element while maintaining the display style of the initial visual element, thereby generating the target visual element.

[0045] Step S106: Based on the application interface, target image template, and target visual elements, generate the target image corresponding to the screenshot command.

[0046] The target image template usually also specifies the display method of the initial visual elements, such as the display position and display size. The display position can be the relative positional relationship between the initial visual element and the target interface element, such as displaying it above the target interface element, or the distance between the initial visual element and the target interface element being less than or equal to a preset distance threshold.

[0047] The target visual element can be added to the interface area corresponding to the screenshot command in the application interface based on the initial display method of the visual element. Alternatively, the interface area can be cropped based on the position of the target visual element within the interface area corresponding to the screenshot command, bringing the target visual element closer to the center of the cropped interface area. The target visual element can then be added to the cropped interface area.

[0048] When the target image template includes basic visual elements, the basic visual elements can be added to the interface area corresponding to the screenshot command at a constant speed based on the display method of the basic visual elements, thereby generating a target image with rich visual elements.

[0049] The interface area with the visual elements from the target image template added can be displayed on the terminal device first, so that users can adjust the position, size and other aspects of the newly added visual elements. It can also provide options to delete the added visual elements and add new visual elements, so that users can adjust them according to their needs and finally generate the target image corresponding to the screenshot command.

[0050] The aforementioned screenshot generation method, in response to a screenshot command, determines the target interface element in the application interface and a target image template. The target image template includes initial visual elements and defines the display method of the initial visual elements. The initial visual elements correspond to at least one of the following: the basic attributes of the target interface element and the real-time state of the target interface element in the current application scenario corresponding to the application interface. Based on the target interface element and the initial visual element, a target visual element is generated. Based on the application interface, the target image template, and the target visual element, a target image corresponding to the screenshot command is generated. This method automatically determines the target interface element and the target image template in the current application interface after the user triggers a screenshot, then generates the target visual element, adds the target visual element to the application interface, and generates a target image that highlights the specified attributes of the target interface element. This simplifies the user's operations for highlighting, beautifying, and other processing of screenshot content, improving the user experience.

[0051] The following embodiments provide a method for determining target interface elements in an application interface and determining the implementation method of a target image template.

[0052] After a screenshot command is generated, the corresponding interface area can be determined. This interface area can be the entire application interface or a portion of the application interface. In response to an interface location selection command for the interface area corresponding to the screenshot command, the interface element at the target location specified in the interface location selection command is determined as the target interface element.

[0053] Similar to the screenshot command mentioned above, interface location selection commands can also be generated by the user through a human-computer interaction device connected to the terminal device. For example, the user can move the mouse to place the cursor at a specific location within the interface area corresponding to the screenshot command, and then click the left mouse button to generate a selection command for that location. When the terminal device is equipped with a touchscreen, the user can click on a specific location within the interface area corresponding to the screenshot command to generate a selection command for that location. Furthermore, the interface element displayed at the target location corresponding to the interface location selection command in the application interface can be obtained and identified as the target interface element.

[0054] It can also simultaneously determine target interface elements and target image templates. After a screenshot command is generated, the target interface area corresponding to the screenshot command is first determined, and the real-time data corresponding to the application interface is determined, thereby identifying the interface elements in the target interface area. In specific implementation, the identifiers and display positions of each interface element in the application interface corresponding to the moment the screenshot command is generated can be obtained. This information can be stored in the terminal device or obtained by the terminal device from the server corresponding to the application. Then, based on the display positions of the interface elements, the interface elements in the target interface area are determined. Alternatively, image recognition of interface elements can be performed on the target interface area, and then the recognition results are matched with multiple interface elements in the application. Based on the matching results, the interface elements belonging to the application in the target interface area are determined. Furthermore, based on the identified interface elements and real-time data, the target image template needs to be determined from multiple preset image templates.

[0055] Each image template typically has corresponding preset conditions; these preset conditions are used to limit at least one of the following: the type, quantity, basic attributes, and real-time status of the interface elements corresponding to the image template. For example, an image template can be set to correspond to more than 3 samurai characters, and each samurai character must be above level 30.

[0056] After identifying UI elements, it's necessary to determine their basic attributes and real-time status based on real-time data. This real-time data typically includes parameters identifying the real-time status of UI elements, such as whether a control has been triggered or a game character has been defeated. The real-time data may also include the basic attributes of the UI elements. If not, the identifier of the UI element can be obtained from the real-time data, and its basic attributes can be queried from the application's server, such as the rarity of a non-player character in the game scene. Furthermore, it's necessary to determine the preset conditions that the identified UI elements and their attribute parameters must satisfy.

[0057] In practical implementation, one or more interface elements can be identified. When multiple interface elements are identified, the process can begin by querying the corresponding image templates for each identified element. If the retrieved image templates also correspond to other types of interface elements, it is determined whether the identified interface elements include the corresponding image templates. Simultaneously, it is also necessary to determine whether the attribute parameters of the identified interface elements satisfy the preset conditions corresponding to the image templates. The image templates that satisfy the preset conditions are then identified as the target image templates. The target image templates determined in this way may be one or more.

[0058] The aforementioned preset conditions can also limit the target application scenario for the image template, such as game match settlement scenarios or monthly attendance summary scenarios. Based on real-time data, the current application scenario corresponding to the application interface can be determined. In specific implementations, the real-time data can contain parameter data representing the current application scenario, and the current application scenario can be determined based on this data. Furthermore, an image template suitable for the current application scenario can be determined as the target image template. Target image templates can be determined using the two methods described above, and multiple target images corresponding to these target image templates can be generated subsequently.

[0059] When preset conditions simultaneously limit the target application scenario for the image template as well as the basic attributes and real-time status of the interface elements, the corresponding image template can usually be identified as the target image template only when the current application scenario is the target application scenario and the basic attributes and real-time status of the identified interface elements meet the preset conditions.

[0060] The following embodiments provide an implementation method for generating target visual elements based on target interface elements and initial visual elements.

[0061] A target image template typically includes multiple initial visual elements, each with pre-set attribute parameters, which, for convenience, can be referred to as target attribute parameters. After determining the target image template, it's necessary to determine the target attribute parameters for each initial visual element, such as name, level, or ranking. Then, based on the parameter values ​​of the target attribute parameters of the target interface elements and the initial visual elements, the target visual elements are generated. Generally, the relevant content of the target attribute parameters in the initial visual elements needs to be replaced with the parameter values ​​of the target attribute parameters of the target visual elements. For example, if the initial visual element corresponds to the account level (e.g., displaying account level 1 on a crown), and the target interface element's account level is 32, then the account level 1 on the crown can be replaced with account level 32. Similarly, if the initial visual element corresponds to the display attributes of the target interface elements, such as appearance, then the texture of the initial visual element can be replaced with the display texture of the target interface element.

[0062] The following embodiments provide an implementation method for generating a target image corresponding to a screenshot command based on an application interface, a target image template, and target visual elements.

[0063] You can also pre-set corresponding text prompts for each image template. Correspondingly, the target image template also has a corresponding text prompt. This text prompt can indicate the emotional tone of the target image template, highlight key points, etc. For example, if an image template is for a victory sign in a game, the text prompt for that target template could be: "Compare the scores and describe the joy of victory."

[0064] Furthermore, a large language model can be used to generate text content based on text prompts and target interface elements. In practice, the text within the target interface elements can be obtained, and then this text, along with the text prompts, can be input into the large language model to generate the text content to be displayed in the screenshot. Subsequently, based on the application interface, target image template, target visual elements, and text content, the target image corresponding to the screenshot command can be generated.

[0065] When multiple target image templates are identified, it is usually necessary to generate candidate images for each target image template; alternatively, a specified number of target image templates can be selected to generate corresponding candidate images. In some cases, the target interface elements and target image templates do not perfectly match; for example, a certain attribute of the target interface element may not match a preset condition of the target image template. Based on the degree of matching between the target interface element and the target image template, candidate images can be generated by selecting target image templates with a matching degree higher than a specified threshold, or those among the top few in terms of matching degree. Furthermore, priorities can be pre-set for image templates, allowing the selection of several high-priority target image templates to generate corresponding candidate images for.

[0066] After generating the corresponding candidate images, the candidate image corresponding to the highest priority target image template can be selected and displayed in the application interface to indicate to the user that the candidate image corresponding to the screenshot command has been generated, such as... Figure 2 As shown. In practical applications, the highest priority target image template can be displayed immediately after the candidate image is generated to prompt the user, such as in exploration games; to avoid interference, the candidate image corresponding to the screenshot command generated in the game will only be displayed during the settlement.

[0067] Users can trigger the display of a candidate image in the application interface to simultaneously display candidate images corresponding to multiple target image templates, such as... Figure 3As shown, the user can zoom in to view each candidate image and select a candidate image using a selection command. In response to a selection command for the first image among multiple candidate images, the first image is determined as the target image corresponding to the screenshot command.

[0068] In practical implementation, the target visual element needs to be added to the application interface based on the display method corresponding to the initial visual element to generate an initial image. To facilitate user adjustments to the target image, the target visual element in the initial image is usually given editable attributes. Users can drag, scale, and delete the target visual element. These operations can typically be achieved through corresponding editing commands. In response to editing commands for the target visual element in the initial image, the initial image is updated. After the user confirms the updated initial image, it can be designated as the target image.

[0069] This invention aims to solve the problem that the screenshot function in the prior art can only record the original image and cannot automatically optimize the content expression. Specifically, it includes: reducing the burden of manual operation for users, improving the attractiveness and information integrity of the screenshot content, and providing a one-click optimization solution by intelligently recognizing game context-related data.

[0070] The following embodiments of the invention provide an implementation method for applying the above screenshot generation method to game applications.

[0071] In practical applications, this method needs to automatically analyze the screen content when the user triggers a screenshot, identify in-game elements (such as scenes, characters, and props) and obtain relevant numerical data of the elements, and then call image templates (also known as "visual templates") based on pre-made rules (equivalent to the above "preset conditions"), generate appropriate text, provide users with one-click optimization options, and finally output an enhanced image for sharing.

[0072] In its implementation, the system monitors user actions such as pressing shortcut keys or clicking the in-game screenshot button to capture the current game screen image and obtain real-time data from the game application (also known as "contextual information"), such as game mode, character status, and real-time numerical data. Based on the screen area captured, it categorizes interface elements such as scenes, characters, and items, and extracts associated attribute numerical data for these elements from the game's backend interface, such as match score and item attributes. Furthermore, based on the recognition results and preset conditions corresponding to preset image templates, it automatically filters and matches text and image templates. Text templates typically include text descriptions, while image templates typically include borders, annotations, and decorative elements. Text and image templates can also be linked using the same preset conditions. During the filtering and matching process, element type, numerical thresholds, or user historical preferences can be considered. Candidate images can be generated based on multiple templates, and each candidate image can be presented to the user as optimization suggestions, allowing the user to select and edit text or adjust visual elements, such as modifying text or moving marker positions. Ultimately, at the user's discretion, one or more versions of the final optimized image can be generated, saved to local storage in a standard format, and shared to external platforms with one click.

[0073] In one specific embodiment, the game interface obtained from a screenshot command is subjected to element recognition. Multiple identical game skins can be recognized simultaneously, as can the current character's friends and interactions between characters involving grabbing and lifting. This allows for the matching of skin party templates, friend templates, and lift-up templates, respectively.

[0074] For the skin party template, the game interface is automatically cropped, and border materials and themes are selected according to the relevant skin. At the same time, the number of eggs wearing the skin is calculated and displayed with special stickers. A text is generated through artificial intelligence (AI), and the text and sticker positions are selected while avoiding characters, generating candidate images corresponding to the template.

[0075] The friend template is automatically cropped. It selects border materials and theme colors based on the skin of the two people, detects their behavior during shooting, such as interactive actions and grabbing, and detects the relationship between the two people, such as whether they are close or how many days they have been friends. Based on the above information, it generates text through artificial intelligence, selects the text and sticker positions while avoiding characters, and generates candidate images corresponding to the template.

[0076] Raise the template high, calculate the number of layers raised, generate text using artificial intelligence, select the text and texture positions while avoiding characters, and generate candidate images corresponding to the template.

[0077] The system then displays candidate images as prompts in the game interface based on the highest-priority image template. Users can click on the candidate image to view it and switch the matching template, generating several different styles using the captured data. Users can manually fine-tune all generated effects; some templates include special editable content, such as the friend template allowing users to switch friends, and Crazy Farm allowing users to switch fruit information.

[0078] In one specific embodiment, for a game interface obtained from a screenshot command, element recognition is performed on the game interface. When a high-value crop is identified, a super crop template can be matched. For the super crop template, multiple high-value or rare mutant crops in the central area of ​​the screen can be identified, multiple crop data can be retrieved, the highest-value crop can be selected, and a target image including a focused area and data display can be generated and displayed to the user.

[0079] This method is based on automated recognition and template calling, allowing users to obtain optimized content with a single click without manual editing, reducing operational burden and time costs. By intelligently matching text and visual elements, such as automatically adding relevant value descriptions and visual enhancements when high-value loot is identified, the expressiveness and attractiveness of screenshots are enhanced, improving dissemination effectiveness. Combined with real-time game data (such as item stats), it ensures that the optimized content is highly relevant to the screenshot context, avoiding information disconnect. The entire process is integrated into the game environment, supports real-time processing, is suitable for high-frequency sharing scenarios, and improves user experience.

[0080] For the above method embodiments, see Figure 4 The embodiment of the present invention shown provides a screenshot generation device. An application is run on a terminal device to display the application interface corresponding to the application; the device includes: The template determination module 402 is used to respond to the screenshot command, determine the target interface element in the application interface, and determine the target image template; the target image template includes initial visual elements and limits the display mode of the initial visual elements; the initial visual elements correspond to at least one of the following: the basic attributes of the target interface element and the real-time state of the target interface element in the current application scenario corresponding to the application interface; Visual element generation template 404 is used to generate target visual elements based on target interface elements and initial visual elements; Target image generation template 406 is used to generate the target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements.

[0081] The aforementioned screenshot generation device, in response to a screenshot command, determines a target interface element in the application interface and a target image template. The target image template includes initial visual elements and defines the display method of the initial visual elements. The initial visual elements correspond to at least one of the following: the basic attributes of the target interface element and the real-time state of the target interface element in the current application scenario corresponding to the application interface. Based on the target interface element and the initial visual element, a target visual element is generated. Based on the application interface, the target image template, and the target visual element, a target image corresponding to the screenshot command is generated. This method, after a user triggers a screenshot, can automatically determine the target interface element and the target image template in the current application interface, thereby generating the target visual element, adding the target visual element to the application interface, and generating a target image that highlights the specified attributes of the target interface element. This simplifies the user's operations for highlighting, beautifying, and other processing of screenshot content, improving the user experience.

[0082] The steps for determining the target interface element in the application interface include: responding to the interface position selection instruction for the interface area corresponding to the screenshot instruction, and determining the interface element at the target position corresponding to the interface position selection instruction as the target interface element.

[0083] The steps described above for determining the target interface element in the application interface and determining the target image template include: determining the target interface area corresponding to the screenshot command and the real-time data corresponding to the application interface; identifying the interface elements in the target interface area; and determining the target image template from a set of preset image templates based on the identified interface elements and the real-time data.

[0084] Each of the above image templates has corresponding preset conditions; the preset conditions are used to limit at least one of the following: the type, quantity, basic attributes, and real-time status of the interface elements corresponding to the image template; the step of determining the target image template from multiple preset image templates based on the identified interface elements and real-time data includes: determining the basic attributes and real-time status of the identified interface elements based on real-time data; determining the preset conditions that are met based on the identified interface elements and their basic attributes and / or real-time status; and determining the image template corresponding to the satisfied preset conditions as the target image template.

[0085] The aforementioned preset conditions are at least used to limit: the target application scenario to which the image template is applicable; the aforementioned method also includes: determining the current application scenario corresponding to the application interface based on real-time data; and determining the image template applicable to the current application scenario as the target image template.

[0086] The steps for generating target visual elements based on target interface elements and initial visual elements include: determining the target attribute parameters corresponding to the initial visual elements; and generating target visual elements based on the parameter values ​​of the target attribute parameters of the target interface elements and the initial visual elements.

[0087] The aforementioned target image template has corresponding text prompts; the steps of generating the target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements include: generating text content based on the text prompts and target interface elements using a large language model; and generating the target image corresponding to the screenshot command based on the application interface, the target image template, the target visual elements, and the text content.

[0088] The aforementioned target image templates include multiple ones; the step of generating the target image corresponding to the screenshot command based on the application interface, the target image templates, and the target visual elements includes: for each target image template, generating a candidate image corresponding to the target image template based on the application interface, the target image template, and the target visual elements corresponding to the target image template; displaying the candidate images corresponding to multiple target image templates; and in response to a selection command for a first image among the multiple candidate images, determining the first image as the target image corresponding to the screenshot command.

[0089] The steps described above for generating the target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements include: adding the target visual elements to the application interface based on the display method corresponding to the initial visual elements to generate an initial image; the target visual elements in the initial image have editable attributes; in response to the editing command for the target visual elements in the initial image, updating the initial image, and determining the updated initial image as the target image.

[0090] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-described screenshot generation method. Specifically: In response to a screenshot command, the target interface element in the application interface is determined, and a target image template is determined. The target image template includes initial visual elements and limits the display method of the initial visual elements. The initial visual elements correspond to at least one of the following: the basic attributes of the target interface element and the real-time state of the target interface element in the current application scenario corresponding to the application interface. Based on the target interface element and the initial visual element, a target visual element is generated. Based on the application interface, the target image template, and the target visual element, a target image corresponding to the screenshot command is generated.

[0091] After a user triggers a screenshot, the above method can automatically determine the target interface element and target image template in the current application interface, and then generate the target visual element. The target visual element is then added to the application interface to generate a target image that highlights the specified attributes of the target interface element. This simplifies the user's operations for highlighting, beautifying, and other processing of the screenshot content, and improves the user experience.

[0092] Optionally, the above steps for determining the target interface element in the application interface include: responding to an interface position selection instruction for the interface area corresponding to the screenshot instruction, and determining the interface element at the target position corresponding to the interface position selection instruction as the target interface element.

[0093] Optionally, the steps of determining the target interface element in the application interface and determining the target image template include: determining the target interface area corresponding to the screenshot command and the real-time data corresponding to the application interface; identifying the interface elements in the target interface area; and determining the target image template from a set of preset image templates based on the identified interface elements and the real-time data.

[0094] Optionally, each of the above image templates has corresponding preset conditions; the preset conditions are used to limit at least one of the following: the type, quantity, basic attributes, and real-time status of the interface elements corresponding to the image template; the step of determining the target image template from the preset multiple image templates based on the identified interface elements and real-time data includes: determining the basic attributes and real-time status of the identified interface elements based on real-time data; determining the preset conditions that are satisfied based on the identified interface elements and the basic attributes and / or real-time status of the identified interface elements; and determining the image template corresponding to the satisfied preset conditions as the target image template.

[0095] Optionally, the above preset conditions are used to at least limit: the target application scenario to which the image template is applicable; the above method also includes: determining the current application scenario corresponding to the application interface based on real-time data; and determining the image template applicable to the current application scenario as the target image template.

[0096] Optionally, the above steps for generating target visual elements based on target interface elements and initial visual elements include: determining the target attribute parameters corresponding to the initial visual elements; and generating target visual elements based on the parameter values ​​of the target attribute parameters of the target interface elements and the initial visual elements.

[0097] Optionally, the aforementioned target image template has corresponding text prompts; the step of generating the target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements includes: generating text content based on the text prompts and target interface elements using a large language model; and generating the target image corresponding to the screenshot command based on the application interface, the target image template, the target visual elements, and the text content.

[0098] Optionally, the aforementioned target image templates include multiple ones; the step of generating the target image corresponding to the screenshot command based on the application interface, the target image templates, and the target visual elements includes: for each target image template, generating a candidate image corresponding to the target image template based on the application interface, the target image template, and the target visual elements corresponding to the target image template; displaying the candidate images corresponding to multiple target image templates; and in response to a selection command for a first image among the multiple candidate images, determining the first image as the target image corresponding to the screenshot command.

[0099] Optionally, the steps of generating the target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements include: adding the target visual elements to the application interface based on the display method corresponding to the initial visual elements to generate an initial image; the target visual elements in the initial image have editable attributes; in response to the editing command for the target visual elements in the initial image, updating the initial image, and determining the updated initial image as the target image.

[0100] See Figure 5 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-described screenshot generation method.

[0101] Furthermore, Figure 5 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.

[0102] The memory 101 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0103] Processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 100 or by instructions in software form. Processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101, and the processor 100 reads the information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.

[0104] This embodiment also provides a machine-readable storage medium that stores machine-executable instructions. When the machine-executable instructions are called and executed by the processor, the machine-executable instructions cause the processor to implement the above-described screenshot generation method.

[0105] The screenshot generation method, apparatus, and electronic device provided in this invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. Specifically: In response to a screenshot command, the target interface element in the application interface is determined, and a target image template is determined. The target image template includes initial visual elements and limits the display method of the initial visual elements. The initial visual elements correspond to at least one of the following: the basic attributes of the target interface element and the real-time state of the target interface element in the current application scenario corresponding to the application interface. Based on the target interface element and the initial visual element, a target visual element is generated. Based on the application interface, the target image template, and the target visual element, a target image corresponding to the screenshot command is generated.

[0106] After a user triggers a screenshot, the above method can automatically determine the target interface element and target image template in the current application interface, and then generate the target visual element. The target visual element is then added to the application interface to generate a target image that highlights the specified attributes of the target interface element. This simplifies the user's operations for highlighting, beautifying, and other processing of the screenshot content, and improves the user experience.

[0107] Optionally, the above steps for determining the target interface element in the application interface include: responding to an interface position selection instruction for the interface area corresponding to the screenshot instruction, and determining the interface element at the target position corresponding to the interface position selection instruction as the target interface element.

[0108] Optionally, the steps of determining the target interface element in the application interface and determining the target image template include: determining the target interface area corresponding to the screenshot command and the real-time data corresponding to the application interface; identifying the interface elements in the target interface area; and determining the target image template from a set of preset image templates based on the identified interface elements and the real-time data.

[0109] Optionally, each of the above image templates has corresponding preset conditions; the preset conditions are used to limit at least one of the following: the type, quantity, basic attributes, and real-time status of the interface elements corresponding to the image template; the step of determining the target image template from the preset multiple image templates based on the identified interface elements and real-time data includes: determining the basic attributes and real-time status of the identified interface elements based on real-time data; determining the preset conditions that are satisfied based on the identified interface elements and the basic attributes and / or real-time status of the identified interface elements; and determining the image template corresponding to the satisfied preset conditions as the target image template.

[0110] Optionally, the above preset conditions are used to at least limit: the target application scenario to which the image template is applicable; the above method also includes: determining the current application scenario corresponding to the application interface based on real-time data; and determining the image template applicable to the current application scenario as the target image template.

[0111] Optionally, the above steps for generating target visual elements based on target interface elements and initial visual elements include: determining the target attribute parameters corresponding to the initial visual elements; and generating target visual elements based on the parameter values ​​of the target attribute parameters of the target interface elements and the initial visual elements.

[0112] Optionally, the aforementioned target image template has corresponding text prompts; the step of generating the target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements includes: generating text content based on the text prompts and target interface elements using a large language model; and generating the target image corresponding to the screenshot command based on the application interface, the target image template, the target visual elements, and the text content.

[0113] Optionally, the aforementioned target image templates include multiple ones; the step of generating the target image corresponding to the screenshot command based on the application interface, the target image templates, and the target visual elements includes: for each target image template, generating a candidate image corresponding to the target image template based on the application interface, the target image template, and the target visual elements corresponding to the target image template; displaying the candidate images corresponding to multiple target image templates; and in response to a selection command for a first image among the multiple candidate images, determining the first image as the target image corresponding to the screenshot command.

[0114] Optionally, the steps of generating the target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements include: adding the target visual elements to the application interface based on the display method corresponding to the initial visual elements to generate an initial image; the target visual elements in the initial image have editable attributes; in response to the editing command for the target visual elements in the initial image, updating the initial image, and determining the updated initial image as the target image.

[0115] See Figure 5 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-described screenshot generation method.

[0116] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0117] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.

[0118] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0119] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0120] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A screenshot generation method, characterized in that, The method involves running an application on a terminal device to display the application interface corresponding to the application; the method includes: In response to a screenshot command, a target interface element in the application interface is determined, and a target image template is determined; the target image template includes an initial visual element and defines the display method of the initial visual element; the initial visual element corresponds to at least one of the following: the basic attributes of the target interface element and the real-time state of the target interface element in the current application scenario corresponding to the application interface; Based on the target interface elements and the initial visual elements, generate target visual elements; Based on the application interface, the target image template, and the target visual elements, the target image corresponding to the screenshot command is generated.

2. The method according to claim 1, characterized in that, The steps for determining the target interface element in the application interface include: In response to the interface location selection instruction for the interface area corresponding to the screenshot instruction, the interface element at the target location corresponding to the interface location selection instruction is determined as the target interface element.

3. The method according to claim 1, characterized in that, The steps of determining the target interface element in the application interface and determining the target image template include: Determine the target interface area corresponding to the screenshot command, and the real-time data corresponding to the application interface; Identify the interface elements in the target interface area; Based on the identified interface elements and the real-time data, a target image template is determined from a set of preset image templates.

4. The method according to claim 3, characterized in that, Each image template has corresponding preset conditions; the preset conditions are used to limit at least one of the following: the type, quantity, basic attributes, and real-time status of the interface elements corresponding to the image template; The step of determining a target image template from a set of preset image templates based on the identified interface elements and the real-time data includes: Based on the real-time data, the basic attributes and real-time status of the identified interface elements are determined. Based on the identified interface elements and their basic attributes and / or real-time status, the preset conditions that must be met are determined. The image template corresponding to the preset conditions that are met is determined as the target image template.

5. The method according to claim 4, characterized in that, The preset conditions are used to at least limit the target application scenarios to which the image template is applicable; The method further includes: Based on the real-time data, the current application scenario corresponding to the application interface is determined; The image template applicable to the current application scenario is determined as the target image template.

6. The method according to claim 1, characterized in that, The step of generating target visual elements based on the target interface elements and the initial visual elements includes: Determine the target attribute parameters corresponding to the initial visual element; Based on the parameter values ​​of the target attribute parameters of the target interface element and the initial visual element, a target visual element is generated.

7. The method according to claim 1, characterized in that, The target image template has corresponding text prompts; The step of generating the target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements includes: The text content is generated based on the text prompt words and the target interface elements using a large language model; Based on the application interface, the target image template, the target visual elements, and the text content, the target image corresponding to the screenshot command is generated.

8. The method according to claim 1, characterized in that, The target image template includes multiple templates; The step of generating the target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements includes: For each target image template, a candidate image corresponding to the target image template is generated based on the application interface, the target image template, and the target visual elements corresponding to the target image template. Display multiple candidate images corresponding to the target image template; In response to a selection instruction for a first image among a plurality of candidate images, the first image is determined as the target image corresponding to the screenshot instruction.

9. The method according to claim 1, characterized in that, The step of generating the target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements includes: Based on the display method corresponding to the initial visual element, the target visual element is added to the application interface to generate an initial image; the target visual element in the initial image has editable attributes. In response to an editing instruction for a target visual element in the initial image, the initial image is updated, and the updated initial image is determined as the target image.

10. A screenshot generation device, characterized in that, The device includes: running an application via a terminal device to display the application interface corresponding to the application; the device includes: The template determination module is used to respond to a screenshot command, determine the target interface element in the application interface, and determine the target image template; the target image template includes initial visual elements and defines the display mode of the initial visual elements; the initial visual elements correspond to at least one of the following: the basic attributes of the target interface element and the real-time state of the target interface element in the current application scenario corresponding to the application interface; A visual element generation template is used to generate target visual elements based on the target interface elements and the initial visual elements; The target image generation module is used to generate the target image corresponding to the screenshot command based on the application interface, the target image template, and the target visual elements.

11. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the screenshot generation method according to any one of claims 1-9.

12. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the screenshot generation method according to any one of claims 1-9.