Picture preview method and device based on virtual special effect template, equipment and medium

By displaying multiple special effects attributes on the shooting page, users can choose to generate and adjust virtual special effects templates themselves. This solves the problem that templates in traditional applications cannot meet user needs, achieves an efficient preview and adjustment process, and improves the user experience.

CN118842992BActive Publication Date: 2025-11-04BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410832357.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2025-11-04
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

The virtual effects templates provided in traditional camera applications cannot meet the diverse and personalized needs of users, and users find it difficult to intuitively and efficiently view the application effects of virtual effects templates.

Method used

A method for previewing images based on virtual special effects templates is provided. By displaying multiple dimensions of special effects attributes on the shooting page, users can select special effects attribute values ​​to generate virtual special effects templates and display a preview image after applying the template on the terminal. The template can be adjusted and confirmed.

Benefits of technology

Users can intuitively and efficiently view the application effects of custom virtual special effects templates, improving human-computer interaction efficiency and user experience, and meeting the diverse and personalized needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118842992B_ABST
    Figure CN118842992B_ABST
Patent Text Reader

Abstract

The present disclosure provides a picture preview method and device based on a virtual special effect template, equipment and medium, belonging to the field of multimedia technology. In the method, the preview picture and the special effect attribute value are displayed in the terminal, the user generates the virtual special effect template by selecting the special effect attribute value by himself, and the application effect of the virtual special effect template is indicated by displaying the preview picture after applying the virtual special effect template in the terminal, so as to facilitate the user to confirm whether the customized virtual special effect template meets the own demand, so as to adjust the virtual special effect template in time to finally obtain the virtual special effect template meeting the own demand. In the present scheme, the user can intuitively and efficiently view the application effect of the customized virtual special effect template, improve the human-computer interaction efficiency and use experience, and be beneficial to meet the diversified needs and individual needs of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of multimedia technology, and in particular to a method, apparatus, device and medium for previewing images based on virtual special effects templates. Background Technology

[0002] With the development of internet technology, the functions of various applications have become increasingly rich. Users can apply a variety of virtual effects templates in camera applications to capture videos or images. For example, users can add sunglasses to faces in videos using virtual effects templates, or they can perform artificial intelligence processing on original images using virtual effects templates. However, the virtual effects templates provided by traditional camera applications may not meet users' expectations and cannot satisfy their diverse and personalized needs. Therefore, how to intuitively and efficiently view the application effects of virtual effects templates is a problem that needs to be solved. Summary of the Invention

[0003] This disclosure provides a method, apparatus, device, and medium for previewing images based on virtual special effects templates. This solution allows users to intuitively and efficiently view the application effects of customized virtual special effects templates, improving human-computer interaction efficiency and user experience, and helping to meet diverse and personalized user needs. The technical solution of this disclosure is as follows:

[0004] According to one aspect of the embodiments of this disclosure, a method for previewing a screen based on a virtual special effects template is provided, the method comprising:

[0005] The shooting page displays the first preview image and multiple dimensions of special effects attributes, with each dimension of special effects attributes including at least one special effects attribute value;

[0006] In response to the template generation operation, a virtual effect template including the selected at least one effect attribute value is generated based on the selected at least one effect attribute value.

[0007] A second preview screen is displayed, which is obtained based on the first preview screen and the virtual effects template.

[0008] According to another aspect of the embodiments of this disclosure, a screen preview device based on a virtual special effects template is provided, the device comprising:

[0009] The first display unit is configured to display a first preview image and multiple dimensions of special effects attributes on the shooting page, each dimension including at least one special effects attribute value;

[0010] The generation unit is configured to generate a virtual effect template including the selected at least one effect attribute value based on the template generation operation, in response to the template generation operation.

[0011] The second display unit is configured to display a second preview screen, which is obtained based on the first preview screen and the virtual effects template.

[0012] In some embodiments, the first display unit is configured to display a first preview screen and a first control on the shooting page, wherein the first control is used to display the multi-dimensional special effects attributes after being triggered; in response to the triggering operation of the first control, the multi-dimensional special effects attributes are displayed in the shooting page in the form of a floating window.

[0013] In some embodiments, the first display unit is further configured to, in response to a selection operation on any effect attribute value of the type dimension, determine effect attribute values ​​of a plurality of style dimensions and effect attribute values ​​of a plurality of element dimensions associated with the effect attribute value of the type dimension; replace the effect attribute value in the effect attribute of the style dimension displayed on the shooting page with the effect attribute values ​​of the plurality of style dimensions, and replace the effect attribute value in the effect attribute of the element dimension displayed on the shooting page with the effect attribute values ​​of the plurality of element dimensions.

[0014] In some embodiments, the first display unit is further configured to, in response to a selection operation on any effect attribute value of the style dimension, determine effect attribute values ​​of a plurality of element dimensions associated with the effect attribute value of the style dimension; and replace the effect attribute values ​​in the effect attributes of the element dimensions displayed on the shooting page with the effect attribute values ​​of the plurality of element dimensions.

[0015] In some embodiments, the first display unit is further configured to display a first preset image in the first preview screen in response to a selection operation of a first effect attribute value of a type dimension, wherein the first effect attribute value indicates artificial intelligence processing of the image and the first preset image contains a default virtual object; and to determine the first effect attribute value as the at least one effect attribute value that has been selected in response to a confirmation operation of the first preset image.

[0016] In some embodiments, the first display unit is further configured to, in response to a selection operation of any effect attribute value of the style dimension, obtain a style parameter associated with the effect attribute value; process the first preset image based on the style parameter to obtain a processed first preset image, wherein the processed first preset image displays a processed virtual object, and the processed virtual object has a different style from the default virtual object.

[0017] In some embodiments, the first display unit is further configured to, in response to a selection operation on any effect attribute value of an element dimension, determine a first virtual element stored in a virtual element database that is associated with the effect attribute value, the virtual element database being used to store effect attribute values ​​of multiple element dimensions and virtual elements associated with the effect attribute values ​​of each element dimension, each virtual element being associated with position information indicating the default display position of the virtual element; and display the first virtual element at the corresponding position in the current preview screen based on the position information of the first virtual element.

[0018] In some embodiments, the first display unit is further configured to, in response to a creation operation of any effect attribute value of an element dimension, acquire a plurality of reference virtual elements, wherein the plurality of reference virtual elements are a plurality of virtual elements generated based on the effect attribute value; display the plurality of reference virtual elements in the current preview screen according to the matching parameters of the plurality of reference virtual elements, wherein the matching parameters of any reference virtual element are used to indicate the degree of correlation between the reference virtual element and the effect attribute value; and, in response to a determination operation of any reference virtual element, cancel the display of other reference virtual elements among the plurality of reference virtual elements, and determine the effect attribute value as the at least one selected effect attribute value.

[0019] In some embodiments, the second preview screen displays a second virtual element;

[0020] The second display unit is further configured to, in response to a trigger operation on the second virtual element, display adjustment options for the second virtual element, the adjustment options being used to adjust at least one of the position, size, angle, and quantity of the second virtual element; and in response to a trigger operation on the adjustment options, display a third preview screen, the third preview screen being a screen obtained after adjusting the second virtual element in the second preview screen.

[0021] In some embodiments, the second preview screen is displayed on a template adjustment page, which is used to adjust the virtual effects template.

[0022] The device further includes:

[0023] The generation unit is further configured to generate an adjusted virtual effect template in response to a triggering operation on a second control in the template adjustment page, provided that the virtual effect template has been adjusted.

[0024] The storage unit is configured to store the adjusted virtual effects template.

[0025] In some embodiments, the second preview screen is displayed on a shooting page, and the shooting page displays the virtual special effects template;

[0026] The first display unit is further configured to, in response to a triggering operation of the virtual effect template, display a first floating window page on the shooting page. The first floating window page is used to display the multiple virtual effect templates, including a first type of virtual effect template, which is a historically generated virtual effect template. The first type of virtual effect template includes the virtual effect template. In response to a confirmation operation of using any first type of virtual effect template on the first floating window page, the first floating window page is canceled, and a preview image obtained based on the first type of virtual effect template is displayed on the shooting page.

[0027] In some embodiments, the second preview screen is displayed on a template adjustment page, which is used to adjust the virtual effects template.

[0028] The device further includes:

[0029] The generation unit is further configured to generate an adjusted virtual effect template in response to a triggering operation on a third control in the template adjustment page, provided that the virtual effect template has been adjusted.

[0030] The switching unit is configured to switch the template adjustment page to the shooting page, wherein the shooting page displays a preview image obtained based on the adjusted virtual effects template and the adjusted virtual effects template.

[0031] In some embodiments, the first display unit is further configured to, in response to a triggering operation on the adjusted virtual effect template, display a first floating window page on the shooting page. The first floating window page is used to display the multiple virtual effect templates, including a first type of virtual effect template, which is a historically generated virtual effect template, and includes the adjusted virtual effect template. In response to a confirmation operation on any first type of virtual effect template in the first floating window page, the first floating window page is de-displayed, and a preview image obtained based on the first type of virtual effect template is displayed on the shooting page.

[0032] In some embodiments, the first display unit is further configured to display a first entry point on the shooting page, the first entry point being used to select multiple virtual effect templates upon triggering; in response to the triggering operation of the first entry point, a first floating window page is displayed on the shooting page, the first floating window page being used to display the multiple virtual effect templates, the multiple virtual effect templates including a first type of virtual effect template, the first type of virtual effect template being a historically generated virtual effect template; in response to the confirmation of use of any first type of virtual effect template on the first floating window page, the first floating window page is de-displayed, and a preview screen processed based on the first type of virtual effect template is displayed on the shooting page.

[0033] In some embodiments, the first display unit is further configured to, in response to a selection operation of any first type of virtual special effects template in the first floating window page, display a fourth control in the shooting page, the fourth control being used to adjust the first type of virtual special effects template upon triggering; and in response to a triggering operation of the fourth control, switch the shooting page to a template adjustment page, the template adjustment page being used to adjust the first type of virtual special effects template.

[0034] In some embodiments, the first display unit is further configured to, in response to a selection operation of any first type of virtual special effects template in the first floating window page, display a fifth control in the shooting page, the fifth control being used to share the first type of virtual special effects template upon triggering; in response to a triggering operation of the fifth control, display multiple virtual accounts associated with the current account; and in response to a selection operation of any virtual account, send the first type of virtual special effects template to the virtual account.

[0035] In some embodiments, a second entry is displayed in the first floating window page, and the second entry is used to create a virtual special effects template after being triggered.

[0036] The first display unit is also configured to switch the first floating window page to a second floating window page in the shooting page in response to a trigger operation on the second entry point. The second floating window page is used to display the special effects attributes of the multiple dimensions.

[0037] According to another aspect of the embodiments of this disclosure, an electronic device is provided, the electronic device comprising:

[0038] One or more processors;

[0039] Memory used to store the executable program code of the processor;

[0040] The processor is configured to execute the program code to implement the aforementioned screen preview method based on virtual effects templates.

[0041] According to another aspect of the present disclosure, a computer-readable storage medium is provided, which, when the program code in the computer-readable storage medium is executed by the processor of an electronic device, enables the electronic device to perform the above-described screen preview method based on virtual special effects templates.

[0042] According to another aspect of the present disclosure, a computer program product is provided, including a computer program / instruction that, when executed by a processor, implements the above-described screen preview method based on a virtual effects template.

[0043] This disclosure provides a method for previewing images based on virtual effect templates. By displaying a preview image and effect attribute values ​​on a terminal, users can generate virtual effect templates by selecting the attribute values. The method then displays a preview image after applying the virtual effect template to indicate its effect, allowing users to confirm whether the customized template meets their needs and make timely adjustments to ultimately obtain a template that satisfies their requirements. This solution enables users to intuitively and efficiently view the application effect of their customized virtual effect templates, improving human-computer interaction efficiency and user experience, and better meeting diverse and personalized user needs.

[0044] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0045] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0046] Figure 1 This is a schematic diagram illustrating the implementation environment of a screen preview method based on a virtual special effects template, according to an exemplary embodiment.

[0047] Figure 2 This is a flowchart illustrating a screen preview method based on a virtual effects template, according to an exemplary embodiment.

[0048] Figure 3 This is a flowchart illustrating another screen preview method based on a virtual effects template, according to an exemplary embodiment.

[0049] Figure 4 This is a schematic diagram illustrating a first floating window page according to an exemplary embodiment.

[0050] Figure 5 This is a schematic diagram illustrating a camera capture page according to an exemplary embodiment.

[0051] Figure 6 This is a schematic diagram illustrating a second floating window page according to an exemplary embodiment.

[0052] Figure 7 This is a schematic diagram illustrating a template adjustment page according to an exemplary embodiment.

[0053] Figure 8 This is a schematic diagram illustrating another shooting page according to an exemplary embodiment.

[0054] Figure 9 This is a schematic diagram illustrating a third floating window page according to an exemplary embodiment.

[0055] Figure 10 This is a schematic diagram illustrating the overall process according to an exemplary embodiment.

[0056] Figure 11 This is a schematic diagram illustrating data transmission according to an exemplary embodiment.

[0057] Figure 12 This is a block diagram illustrating a screen preview device based on a virtual effects template, according to an exemplary embodiment.

[0058] Figure 13 This is a block diagram illustrating another screen preview device based on a virtual effects template, according to an exemplary embodiment.

[0059] Figure 14 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation

[0060] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0061] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0062] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the preview images involved in this disclosure were obtained with full authorization.

[0063] Figure 1 This is a schematic diagram illustrating an implementation environment for a screen preview method based on a virtual effects template, according to an exemplary embodiment. See also... Figure 1 The implementation environment specifically includes: terminal 101 and server 102. Terminal 101 can be connected to server 102 via wireless network or wired network.

[0064] Terminal 101 can be at least one of the following devices: smartphone, smartwatch, desktop computer, laptop, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), and laptop computer. An application can be installed and run on terminal 101. This application can display preview images and effect attribute values, allowing users to generate virtual effect templates by selecting effect attribute values. It then displays a preview image after applying the virtual effect template to indicate its effect, enabling users to confirm whether the customized virtual effect template meets their needs. This application is associated with server 102, which provides background services to terminal 101.

[0065] Terminal 101 can refer to one of a plurality of terminals, and this embodiment uses terminal 101 as an example. Those skilled in the art will know that the number of terminals can be more or less. For example, there can be several terminals, or dozens or hundreds of terminals, or more. This embodiment does not limit the number of terminals or the type of devices.

[0066] Server 102 can be at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Optionally, the number of servers may be more or fewer, and this disclosure does not limit this. Of course, server 102 may also include other functional servers to provide more comprehensive and diversified services. In some embodiments, server 102 undertakes the main computing work, and terminal 101 undertakes the secondary computing work; or, server 102 undertakes the secondary computing work, and terminal 101 undertakes the main computing work; or, server 102 and terminal 101 collaborate on computing using a distributed computing architecture. Server 102 can be connected to terminal 101 and other terminals via a wireless network or a wired network. Optionally, the number of servers may be more or fewer, and this disclosure does not limit this.

[0067] Figure 2 This is a flowchart illustrating a screen preview method based on a virtual effects template, according to an exemplary embodiment. Figure 2 As shown, this method is executed by the terminal and includes the following steps:

[0068] In step S201, a first preview screen and multiple dimensions of special effects attributes are displayed on the shooting page, and each dimension of special effects attributes includes at least one special effects attribute value.

[0069] In this embodiment, the shooting page typically displays various functions associated with taking photos or videos for the user to use. The user can obtain a real-time preview on the shooting page. The first preview refers to the image directly captured by the camera. Special effect attributes are used to indicate the parameters or characteristics of the special effect. Special effect attributes can be divided into multiple dimensions, such as type-level, style-level, and element-level special effect attributes. Each dimension of the special effect attribute includes at least one special effect attribute value. Adjusting the special effect attribute value can change the application effect presented by the special effect. The user selects a special effect attribute value in each dimension to meet their own needs.

[0070] In step S202, in response to the template generation operation, a virtual effect template including at least one selected effect attribute value is generated based on at least one selected effect attribute value.

[0071] In this embodiment of the disclosure, when a user adjusts the effect attribute values ​​to initially meet their needs, the user can perform a template generation operation. At this time, the terminal will generate a corresponding virtual effect template. For example, if the user selects the effect attribute value as "makeup" for the type dimension, "fresh" for the style dimension, and "butterfly" for the element dimension, the user can then perform a template generation operation. Based on the image attribute values ​​of the aforementioned multiple dimensions, the terminal will generate a fresh-style makeup effect template containing butterfly elements.

[0072] In step S203, a second preview screen is displayed, which is obtained based on the first preview screen and the virtual effects template.

[0073] In this embodiment, to facilitate users' viewing of the application effect of the currently customized virtual effects template, the terminal displays a processed image of the currently captured camera based on the virtual effects template. For ease of description, the image directly captured by the camera before processing is referred to as the first preview image, and the processed image is referred to as the second preview image. Optionally, if the user is still not satisfied with the application effect of the virtual effects template, they can adjust the virtual effects template according to the second preview image to obtain a virtual effects template that ultimately meets their needs, facilitating subsequent direct application of the virtual effects template for shooting or sharing with other accounts.

[0074] This disclosure provides a method for previewing images based on virtual effect templates. By displaying a preview image and effect attribute values ​​on a terminal, users can generate virtual effect templates by selecting the attribute values. The method then displays a preview image after applying the virtual effect template to indicate its effect, allowing users to confirm whether the customized template meets their needs and make timely adjustments to ultimately obtain a template that satisfies their requirements. This solution enables users to intuitively and efficiently view the application effect of their customized virtual effect templates, improving human-computer interaction efficiency and user experience, and better meeting diverse and personalized user needs.

[0075] In some embodiments, displaying a first preview image and multiple dimensions of special effects attributes on the shooting page includes:

[0076] The first preview screen and the first control are displayed on the shooting page. The first control is used to display multiple dimensions of special effects attributes after being triggered.

[0077] In response to the triggering operation of the first control, multiple dimensions of special effects attributes are displayed in the form of a floating window on the shooting page.

[0078] In this embodiment of the disclosure, the terminal directly displays the control on the shooting page in the above manner, which makes it convenient for users to open the floating window page displaying the special effects attributes by directly triggering the control, and select the special effects attribute value in the floating window page. This shortens the overall path, improves the efficiency of human-computer interaction and the user experience, and makes it convenient for users to meet diverse and personalized needs by selecting the special effects attribute value.

[0079] In some embodiments, before generating a virtual effect template including at least one selected effect attribute value based on the template generation operation, the method further includes:

[0080] In response to a selection operation on any effect attribute value in the type dimension, determine the effect attribute values ​​of multiple style dimensions and multiple element dimensions associated with the effect attribute value in the type dimension;

[0081] Replace the effect attribute values ​​in the style dimension of the effect attributes displayed on the shooting page with effect attribute values ​​in multiple style dimensions, and replace the effect attribute values ​​in the element dimension of the effect attributes displayed on the shooting page with effect attribute values ​​in multiple element dimensions.

[0082] In this embodiment of the disclosure, by means of the above method, when a user selects a certain type of effect attribute value, the terminal automatically updates the low-dimensional style dimension effect attribute values ​​and element dimension effect attribute values ​​displayed on the shooting page. This avoids the step of the user manually selecting and adjusting the low-dimensional effect attribute values, which not only simplifies the operation process and reduces the difficulty of operation for the user, but also improves the efficiency of human-computer interaction and the user's experience. It also provides users with more choices and combinations, enhances diversity and flexibility, and helps users to conveniently and quickly obtain virtual effect templates that meet their own needs.

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

[0084] In response to a selection operation on any effect attribute value in the style dimension, determine the effect attribute values ​​of multiple element dimensions associated with the effect attribute value in the style dimension;

[0085] Replace the effect attribute values ​​in the element dimension effect attributes displayed on the shooting page with effect attribute values ​​for multiple element dimensions.

[0086] In this embodiment of the disclosure, by means of the above method, when a user selects a special effect attribute value of a certain style dimension, the terminal automatically updates the special effect attribute values ​​of the low-dimensional element dimension displayed on the shooting page, avoiding the steps of the user manually selecting and adjusting the low-dimensional special effect attribute values. This not only simplifies the operation process, reduces the difficulty of operation for users, and improves the efficiency of human-computer interaction and the user's experience, but also provides users with more choices and combinations, enhances diversity and flexibility, and helps users conveniently and quickly obtain virtual special effect templates that meet their own needs.

[0087] In some embodiments, before generating a virtual effect template including at least one selected effect attribute value based on the template generation operation, the method further includes:

[0088] In response to the selection operation of the first effect attribute value of the type dimension, the first preset image is displayed in the first preview screen. The first effect attribute value indicates that the image is processed by artificial intelligence. The first preset image contains a default virtual object.

[0089] In response to the confirmation operation of the first preset image, the first effect attribute value is determined as at least one selected effect attribute value.

[0090] In this embodiment of the disclosure, when a user selects to perform artificial intelligence processing on the screen, the terminal will display a first preset image to allow the user to preview the effect of the artificial intelligence processing, thereby determining whether it meets their own needs. This improves the efficiency of human-computer interaction and the user's user experience, and helps users to conveniently and quickly obtain virtual special effects templates that meet their own needs.

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

[0092] In response to a selection operation on any effect attribute value in the style dimension, retrieve the style parameters associated with the effect attribute value;

[0093] The first preset image is processed based on style parameters to obtain the processed first preset image. The processed first preset image displays the processed virtual object, which has a different style from the default virtual object.

[0094] In this embodiment of the disclosure, the terminal can process the first preset image in real time and display the processed result through the above method, so that the user can immediately understand the impact of the selected special effect attribute value on the style of the virtual object, thereby determining whether it meets their own needs, improving the efficiency of human-computer interaction and the user's user experience, and helping the user to conveniently and quickly obtain virtual special effect templates that meet their own needs.

[0095] In some embodiments, before generating a virtual effect template including at least one selected effect attribute value based on the template generation operation, the method further includes:

[0096] In response to a selection operation on any effect attribute value of an element dimension, the first virtual element associated with the effect attribute value stored in the virtual element database is determined. The virtual element database is used to store effect attribute values ​​of multiple element dimensions and virtual elements associated with the effect attribute values ​​of each element dimension. Each virtual element is associated with position information indicating the default display position of the virtual element.

[0097] Based on the position information of the first virtual element, the first virtual element is displayed at the corresponding position in the current preview screen.

[0098] In this embodiment of the disclosure, after the user selects the effect attribute value of the element dimension, the terminal can immediately display the virtual element associated with the effect attribute value in the current preview screen. This instant feedback allows the user to observe the effect intuitively, improves the user experience, and helps the user to obtain a virtual effect template that meets their own needs by combining multiple effect attribute values.

[0099] In some embodiments, before generating a virtual effect template including at least one selected effect attribute value based on the template generation operation, the method further includes:

[0100] In response to the creation operation of any effect attribute value of the element dimension, multiple reference virtual elements are obtained, which are multiple virtual elements generated based on the effect attribute value;

[0101] Based on the matching parameters of multiple reference virtual elements, multiple reference virtual elements are displayed in the current preview screen. The matching parameters of any reference virtual element are used to indicate the degree of correlation between the reference virtual element and the effect attribute value.

[0102] In response to the confirmation operation on any reference virtual element, the display of other reference virtual elements among multiple reference virtual elements is canceled, and the effect attribute value is determined to be at least one of the selected effect attribute values.

[0103] In this embodiment, the terminal automatically generates multiple reference virtual elements based on the user-created effect attribute values ​​and displays them in the preview screen, enhancing user-system interactivity. This also helps users understand the practical effects of the effect attribute values, enabling them to more accurately select the values ​​that best suit their needs. Furthermore, by using matching parameters to indicate the correlation between the reference virtual elements and the effect attribute values, users can not only select reference virtual elements according to their preferences and needs but also quickly identify the virtual element that best matches the effect attribute value, enhancing user experience and satisfaction, and improving selection efficiency.

[0104] In some embodiments, a second virtual element is displayed in the second preview screen;

[0105] The method also includes:

[0106] In response to a triggering operation on the second virtual element, adjustment options for the second virtual element are displayed. These adjustment options are used to adjust at least one of the following: position, size, angle, and quantity of the second virtual element.

[0107] In response to the triggering of the adjustment option, a third preview screen is displayed, which is the screen obtained after adjusting the second virtual element in the second preview screen.

[0108] In this embodiment of the disclosure, users can directly make various adjustments to the virtual elements in the virtual effects template to obtain a virtual effects template that better suits their needs, without having to go back and regenerate the virtual effects template, thus improving the efficiency of human-computer interaction and the user experience.

[0109] In some embodiments, the second preview screen is displayed on the template adjustment page, which is used to adjust the virtual effects template.

[0110] The method also includes:

[0111] If the virtual effects template has been adjusted, the adjusted virtual effects template is generated in response to the triggering operation of the second control on the template adjustment page.

[0112] Store the adjusted virtual effects template.

[0113] In this embodiment of the disclosure, the terminal displays controls on the template adjustment page in the manner described above, which makes it convenient and quick for users to save the virtual effect template after adjusting it to meet their own needs. This improves the efficiency of human-computer interaction and the user experience, provides users with a more flexible and personalized shooting experience, and meets the diverse and personalized needs of users.

[0114] In some embodiments, the second preview screen is displayed on the shooting page, and the shooting page displays a virtual special effects template;

[0115] The method also includes:

[0116] In response to the triggering operation of the virtual special effects template, the first floating window page is displayed on the shooting page. The first floating window page is used to display a variety of virtual special effects templates, including a first type of virtual special effects template. The first type of virtual special effects template is a historically generated virtual special effects template. The first type of virtual special effects template includes virtual special effects templates.

[0117] In response to the confirmation of use of any first-type virtual special effects template in the first floating window page, the first floating window page is canceled, and a preview image based on the first-type virtual special effects template is displayed on the shooting page.

[0118] In this embodiment, the user can quickly access the floating window page of the virtual effects template without leaving the shooting page, greatly reducing the time spent switching between different pages and improving operational efficiency. Simultaneously, the user can quickly confirm and use any of the first type of virtual effects templates in the first floating window page, and the terminal will immediately update to a preview screen based on the selected virtual effects template. This instant feedback allows the user to quickly switch and try different virtual effects templates, enhancing the user experience.

[0119] In some embodiments, the second preview screen is displayed on the template adjustment page, which is used to adjust the virtual effects template.

[0120] The method also includes:

[0121] If the virtual effects template has been adjusted, the adjusted virtual effects template is generated in response to the triggering operation of the third control on the template adjustment page.

[0122] Switch the template adjustment page to the shooting page. The shooting page displays a preview of the virtual effects template based on the adjusted virtual effects template, as well as the adjusted virtual effects template itself.

[0123] In this embodiment of the disclosure, the terminal displays controls on the template adjustment page in the manner described above, which makes it convenient and quick for users to directly use the virtual effect template to shoot after adjusting it to meet their own needs. This improves the efficiency of human-computer interaction and the user experience, provides users with a more flexible and personalized shooting experience, and meets the diverse and personalized needs of users.

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

[0125] In response to the triggering operation of the adjusted virtual effect template, the first floating window page is displayed on the shooting page. The first floating window page is used to display a variety of virtual effect templates, including the first type of virtual effect templates. The first type of virtual effect templates are historically generated virtual effect templates, and the first type of virtual templates include the adjusted virtual effect templates.

[0126] In response to the confirmation of use of any first-type virtual special effects template in the first floating window page, the first floating window page is canceled, and a preview image based on the first-type virtual special effects template is displayed on the shooting page.

[0127] In this embodiment, the user-adjusted virtual effect template is updated in real time to the first type of virtual effect templates, allowing the user to not only see the currently adjusted template but also review previously generated ones, providing great convenience. Simultaneously, the user can quickly confirm and use any first type of virtual effect template in the first floating window, and the terminal immediately updates to a preview based on the selected template. This instant feedback allows users to quickly switch between and try different virtual effect templates, enhancing the user experience.

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

[0129] The first entry point is displayed on the shooting page, and it is used to select various virtual effect templates after triggering the action.

[0130] In response to the triggering operation of the first entry point, the first floating window page is displayed on the shooting page. The first floating window page is used to display a variety of virtual special effects templates, including the first type of virtual special effects template, which is the historically generated virtual special effects template.

[0131] In response to the confirmation of use of any first-type virtual special effects template in the first floating window page, the first floating window page is canceled, and a preview screen processed based on the first-type virtual special effects template is displayed on the shooting page.

[0132] In this embodiment, the terminal displays an entry point for virtual effects templates on the shooting page using the above method. After the user triggers this entry point, a floating window page is displayed, showcasing various virtual effects templates for the user to choose from. The terminal displays historically generated virtual effects templates on this floating window page. When the user selects a virtual effects template, they can directly use it for shooting, thereby improving human-computer interaction efficiency and user experience, and providing a more convenient and faster shooting experience.

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

[0134] In response to the selection of any first-type virtual effect template in the first floating window page, a fourth control is displayed on the shooting page. The fourth control is used to adjust the first-type virtual effect template after being triggered.

[0135] In response to the trigger operation of the fourth control, the shooting page is switched to the template adjustment page, which is used to adjust the first type of virtual special effects template.

[0136] In this embodiment, through the above method, after a user selects a historically generated virtual effects template, the terminal displays a control on the shooting page, allowing the user to conveniently and quickly jump to the template adjustment page of that virtual effects template by directly triggering the control. The terminal provides a convenient and quick path for users to adjust historically generated virtual effects templates, improving human-computer interaction efficiency and user experience, and helping users obtain virtual effects templates that meet their needs, thereby satisfying diverse and personalized requirements.

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

[0138] In response to the selection of any first-class virtual special effects template in the first floating window page, a fifth control is displayed on the shooting page. The fifth control is used to share the first-class virtual special effects template after triggering.

[0139] In response to a trigger action on the fifth control, multiple virtual accounts associated with the current account are displayed;

[0140] In response to the selection of any virtual account, the first type of virtual effect template is sent to the virtual account.

[0141] In this embodiment of the disclosure, users can share historically generated virtual effect templates with their friends' virtual accounts through the above method, which helps users showcase or obtain personalized creative works, improves human-computer interaction efficiency and user experience.

[0142] In some embodiments, a second entry is displayed in the first floating window page, which is used to create a virtual special effects template after being triggered.

[0143] The method also includes:

[0144] In response to the triggering operation of the second entry point, the first floating window page is switched to the second floating window page on the shooting page. The second floating window page is used to display special effects attributes in multiple dimensions.

[0145] In this embodiment of the disclosure, the terminal provides a floating window page that displays special effect attribute values ​​through the above method, which improves the efficiency of users obtaining information, enriches the types of information that users can obtain on the shooting page, facilitates users to select special effect attribute values ​​on the floating window page, improves human-computer interaction efficiency, enhances user experience, and facilitates meeting diverse and personalized needs of users.

[0146] The above Figure 2 The diagram shown is a flowchart of a screen preview method based on a virtual special effects template according to this disclosure. The screen preview scheme based on a virtual special effects template provided by this disclosure will be further described below. Figure 3 This is a flowchart illustrating another screen preview method based on a virtual effects template, according to an exemplary embodiment. See also... Figure 3 This method is executed by the terminal and includes the following steps:

[0147] In step S301, a first preview screen and a first entry point are displayed on the shooting page. The first entry point is used to select multiple virtual special effects templates after triggering.

[0148] In this embodiment, the shooting page typically displays various functions associated with taking photos or videos for the user to use. For example, the user can rotate the camera angle, adjust the image frame, or confirm the start of shooting on the shooting page. It should be noted that the user can obtain a real-time preview on the shooting page. The first preview refers to the image directly captured by the camera. Optionally, the first entry point can display prompt information in the form of icons and / or text, facilitating the user to open the display page of various virtual effect templates by triggering the first entry point. A virtual effect template refers to a template containing multiple effect attribute values, allowing the user to obtain an image with multiple effect attribute values ​​by applying the virtual effect template. For example, a virtual effect template could be a fresh-style beauty effect template with butterfly elements, or a comic-style quirky effect template with sunglasses elements.

[0149] In step S302, in response to the triggering operation of the first entry point, a first floating window page is displayed on the shooting page. The first floating window page is used to display a variety of virtual special effects templates. A second entry point is displayed on the first floating window page. The second entry point is used to create virtual special effects templates after being triggered.

[0150] In this embodiment, to facilitate users viewing both the preview screen and multiple virtual effect templates simultaneously, the terminal typically displays these templates in a floating window format, with the transparency of this floating window reduced to below 100%. By simultaneously displaying the first preview screen and the first floating window on the shooting page, the terminal improves the efficiency of information acquisition for users, enriches the types of information available to users on the shooting page, and enhances the user experience. Users can select any virtual effect template on the first floating window and directly use that template for shooting, improving human-computer interaction efficiency and providing a more convenient and faster shooting experience.

[0151] To better meet users' personalized needs, the terminal provides a second entry point within the first floating window. This second entry point typically displays a prompt message in the form of an icon and / or text, guiding users to open the virtual effects template creation page by triggering this entry point, thereby enabling them to customize the virtual effects template.

[0152] For easier description of the first floating window displayed on the shooting page, see [link to description]. Figure 4 As shown, Figure 4 This is a schematic diagram illustrating a first floating window page according to an exemplary embodiment. 401 is a first preview screen displaying the image currently captured by the camera. 402 is the first floating window page, 403 is a second entry point, and 404 is an exemplary virtual effect template. The first floating window page displays the second entry point and various virtual effect templates. Optionally, the first type of virtual effect template is a user-defined, historically generated virtual effect template, and the second type of virtual effect template is a virtual effect template provided by the application.

[0153] In some embodiments, the terminal directly displays a control on the shooting page, allowing users to directly trigger the control to open a floating window page displaying special effects attributes. Correspondingly, the terminal displays a first preview screen and a first control on the shooting page. The first control, when triggered, displays multiple dimensions of special effects attributes. In response to the triggering operation of the first control, the terminal displays the multiple dimensions of special effects attributes in the form of a floating window page on the shooting page. Optionally, this floating window page is a second floating window page. Through this method, the terminal shortens the overall path for displaying special effects attributes, improves human-computer interaction efficiency and user experience, and allows users to meet diverse and personalized needs by selecting special effects attribute values.

[0154] For easier description of the first control displayed on the shooting page, see [link to documentation]. Figure 5 As shown, Figure 5This is a schematic diagram of a shooting page according to an exemplary embodiment. 501 is a first preview screen, displaying the image captured by the current camera. 502 is a first control. Optionally, the first control may display words such as "Custom" and "DIY" to prompt the user to open the virtual effects template creation page by triggering the first control, thereby enabling customization of the virtual effects template.

[0155] In step S303, in response to the triggering operation of the second entry, the first floating window page is switched to the second floating window page in the shooting page. The second floating window page is used to display special effect attributes in multiple dimensions, and each dimension of special effect attributes includes at least one special effect attribute value.

[0156] In this embodiment, special effects attributes are typically divided into multiple dimensions. Optionally, special effects attributes include type-dimensional special effects attributes, style-dimensional special effects attributes, and element-dimensional special effects attributes. Each dimension of special effects attributes includes at least one special effects attribute value. Generally, different type-dimensional special effects attribute values ​​correspond to different style-dimensional special effects attribute values ​​and different element-dimensional special effects attribute values. Optionally, style-dimensional special effects attribute values ​​are used to define the style of the image, and element-dimensional special effects attribute values ​​are used to define text, stickers, and animation effects appearing in the image.

[0157] For example, a type-dimensional effect attribute value might be named "Makeup," indicating adjustments to the makeup of objects in the image. In this case, multiple style-dimensional effect attribute values ​​might be named "Retro," "Western," and "Fresh," describing the makeup style. Similarly, multiple element-dimensional effect attribute values ​​might be named "Lipstick," "Eyelashes," and "Butterfly," describing the virtual elements associated with the makeup. Users can create a fresh-style makeup effect template with butterfly elements.

[0158] Alternatively, another type of effect attribute value could be named "Cute Face," which indicates the adjustment of the face of an object in the image. In this case, the effect attribute values ​​for multiple style dimensions could be named "Anime," "Realistic," "Comic Book Style," etc., describing the style of the face adjustment; and the effect attribute values ​​for multiple element dimensions could be named "Sunglasses," "Bow," and "Cat Hair Clip," describing the virtual elements associated with the face. Users can create a cute face effect template with a comic book style and sunglasses.

[0159] To facilitate users viewing the preview and multiple effect attribute values ​​simultaneously, the terminal typically uses a floating window to display these values, with the transparency of this floating window reduced to below 100%. Optionally, the terminal simultaneously displays the first preview and the second floating window on the shooting page, improving the efficiency of information acquisition, enriching the types of information available to users on the shooting page, and enhancing the user experience. In the second floating window, users can select various dimensions of effect attribute values ​​to customize virtual effect templates, improving human-computer interaction efficiency and facilitating the creation of virtual effect templates that meet their specific needs.

[0160] For a clearer description of the second floating window displayed on the shooting page, see [link to description]. Figure 6 As shown, Figure 6 This is a schematic diagram illustrating a second floating window page according to an exemplary embodiment. See also... Figure 6 As shown in (a), 601 is the first preview screen, displaying the image currently captured by the camera. Area 602 displays effect attribute values ​​for the type dimension, area 603 displays effect attribute values ​​for the style dimension, and area 604 displays effect attribute values ​​for the element dimension. It should be noted that the above multiple dimensions are merely illustrative examples, and this disclosure does not impose any limitations on them.

[0161] Optionally, for the effect attribute values ​​in the type and style dimensions, prompts can be displayed using a combination of icons and text to indicate the differences between different effect attribute values. For the element dimension, effect attribute values ​​use keywords to distinguish between different virtual elements. Different keywords are associated with different virtual elements. The terminal supports user-defined keywords. When a user selects a keyword already displayed on the terminal, the terminal directly checks the corresponding virtual element in the virtual element database and displays it. When a user defines a keyword, the terminal first matches it in the virtual element database. If a virtual element matches the defined keyword, the terminal displays that virtual element directly; if no matching virtual element exists, the terminal displays a virtual element generated in real-time using artificial intelligence technology. These methods are used to meet the diverse needs of users.

[0162] It should be noted that users can also create their own virtual gameplay in the second floating window. For example, this virtual gameplay could involve displaying an animation effect when a certain gesture appears on the screen. Optionally, users can also perform traditional gameplay such as character customization in the second floating window, which will not be elaborated upon in this embodiment.

[0163] In some embodiments, during the user's selection of effect attribute values, when the user adjusts a higher-dimensional effect attribute value, the terminal automatically updates the lower-dimensional effect attribute values. Here, the type dimension is the higher dimension, while the style dimension and element dimension are lower dimensions. Correspondingly, in response to the selection operation of any effect attribute value in the type dimension, the terminal determines multiple style dimension effect attribute values ​​and multiple element dimension effect attribute values ​​associated with the type dimension effect attribute value; the terminal replaces the effect attribute values ​​in the style dimension effect attributes displayed on the shooting page with the multiple style dimension effect attribute values, and replaces the effect attribute values ​​in the element dimension effect attributes displayed on the shooting page with the multiple element dimension effect attribute values. In this way, when a user selects a certain type of effect attribute value, the terminal automatically updates the low-dimensional style dimension effect attribute values ​​and element dimension effect attribute values ​​displayed on the shooting page. This avoids the step of the user manually selecting and adjusting the low-dimensional effect attribute values, which not only simplifies the operation process, reduces the difficulty of operation for users, improves human-computer interaction efficiency and user experience, but also provides users with more choices and combinations, enhances diversity and flexibility, and helps users conveniently and quickly obtain virtual effect templates that meet their own needs.

[0164] In some embodiments, during the user's selection of effect attribute values, when the user adjusts a higher-dimensional effect attribute value, the terminal automatically updates the lower-dimensional effect attribute values. Here, the style dimension is the higher dimension, and the element dimension is the lower dimension. Correspondingly, in response to the selection of any effect attribute value in the style dimension, the terminal determines multiple element-dimensional effect attribute values ​​associated with the style dimension's effect attribute value; the terminal replaces the effect attribute values ​​in the element-dimensional effect attributes displayed on the shooting page with these multiple element-dimensional effect attribute values. Through this method, when a user selects an effect attribute value in a style dimension, the terminal automatically updates the lower-dimensional element-dimensional effect attribute values ​​displayed on the shooting page, avoiding the step of manually selecting and adjusting lower-dimensional effect attribute values. This not only simplifies the operation process, reduces the user's operational difficulty, and improves human-computer interaction efficiency and user experience, but also provides users with more choices and combinations, enhancing diversity and flexibility, and helping users conveniently and quickly obtain virtual effect templates that meet their needs.

[0165] In step S304, in response to the template generation operation, a virtual effect template including at least one selected effect attribute value is generated based on at least one selected effect attribute value.

[0166] In this embodiment of the disclosure, when a user adjusts the special effects attribute values ​​to initially meet their needs, the user can perform a template generation operation, for example, see [link to relevant documentation]. Figure 6As shown, the user triggers the template generation control 609. At this time, the terminal will generate a corresponding virtual special effects template. For example, if the user selects the special effects attribute value of "makeup" for the type dimension, "fresh" for the style dimension, and "butterfly" for the element dimension, then the user executes the template generation operation, and the terminal generates a fresh-style makeup special effects template containing butterfly elements based on the above multiple dimensions of image attribute values.

[0167] In step 305, a second preview screen is displayed, which is based on the first preview screen and the virtual effects template.

[0168] In this embodiment, to facilitate users' viewing of the application effect of the currently customized virtual effects template, the terminal displays a processed image of the currently captured camera based on the virtual effects template. For ease of description, the image directly captured by the camera before processing is referred to as the first preview image, and the processed image is referred to as the second preview image. Optionally, if the user is still not satisfied with the application effect of the virtual effects template, they can adjust the virtual effects template according to the second preview image to obtain a virtual effects template that ultimately meets their needs, facilitating subsequent direct application of the virtual effects template for shooting or sharing with other accounts.

[0169] In some embodiments, before the user performs the template generation operation, that is, during the process of the user selecting the effect attribute value, the terminal responds to each user's selection of the effect attribute value by displaying the image processing effect on the preview screen in real time on the shooting page. In other words, in addition to displaying the second preview screen on the template adjustment page, the terminal can also display the second preview screen on the shooting page so that the user can view the image processing effect corresponding to the effect attribute value in real time. This disclosure does not limit this aspect.

[0170] For a clearer description of the image processing effects displayed in the preview on the shooting page, please refer to... Figure 6 As shown, Figure 6 This is a schematic diagram illustrating a second floating window page according to an exemplary embodiment. See also... Figure 6 As shown in (b), after the user selects the effect attribute value 605 for the type dimension, the effect attribute value 606 for the style dimension, and the effect attribute value 607 for the element dimension, the terminal can display a second preview screen 608 on the shooting page. At this time, the virtual element "star hair clip" indicated by the effect attribute value 607 for the element dimension is displayed in the second preview screen. Optionally, the terminal displays the virtual element in the default position.

[0171] In some embodiments, during the user's selection of effect attribute values, the terminal displays a first preset image for the user to preview the effect of artificial intelligence processing. Correspondingly, in response to the selection operation of the first effect attribute value in the type dimension, the terminal displays the first preset image in a first preview screen. The first effect attribute value indicates that artificial intelligence processing will be applied to the image, and the first preset image contains a default virtual object. In response to the confirmation operation of the first preset image, the terminal confirms the first effect attribute value as at least one selected effect attribute value. Through this method, when a user selects to apply artificial intelligence processing to the image, the terminal displays the first preset image for the user to preview the effect of the artificial intelligence processing, thereby determining whether it meets their needs. This improves human-computer interaction efficiency and user experience, and helps users conveniently and quickly obtain virtual effect templates that meet their needs.

[0172] In some embodiments, during the user's selection of effect attribute values, the terminal processes a first preset image in real time and displays the processed result. Correspondingly, in response to the selection of any effect attribute value in the style dimension, the terminal obtains the style parameters associated with the effect attribute value; the terminal processes the first preset image based on the style parameters to obtain a processed first preset image, which displays a processed virtual object. The processed virtual object has a different style from the default virtual object. Through this method, the terminal can process the first preset image in real time and display the processed result, allowing users to immediately understand the impact of the selected effect attribute value on the style of the virtual object, thereby determining whether it meets their needs. This improves human-computer interaction efficiency and user experience, and helps users conveniently and quickly obtain virtual effect templates that meet their requirements.

[0173] Optionally, the artificial intelligence processing refers to AIGC (Artificial Intelligence Generated Content) services. It should be noted that when users all select the first effect attribute value and the same keyword, even if the images captured by the camera are different, the terminal will always display the same first preset image. In other words, the first preset image refers to a reference image that reflects the image processing effect under the given effect attribute value, and is unrelated to the image currently captured by the camera. Optionally, the terminal will only display the image after the user believes that the first preset image meets their needs and confirms the start of shooting. Typically, when a user applies the virtual effect template corresponding to the first effect attribute value to take a picture, the terminal will display a gradual transformation of the user-confirmed original image into the AI-processed image; this will not be elaborated upon in this embodiment.

[0174] For example, when a user selects the effect attribute values ​​for the type dimension named "AIGC," the style dimension named "comic book style," and the keywords "windmill" and "grass," the terminal will display a first preset image. This first preset image has an overall comic book style and includes windmill and grass elements. The terminal can determine whether the virtual effect template meets its needs by viewing this first preset image.

[0175] In some embodiments, during the user's selection of an effect attribute value, the terminal displays a virtual element associated with the selected effect attribute value in the current preview screen. Correspondingly, in response to the selection of any effect attribute value in the element dimension, the terminal determines the first virtual element associated with the effect attribute value stored in the virtual element database. The virtual element database stores effect attribute values ​​for multiple element dimensions and the virtual elements associated with each effect attribute value. Each virtual element is associated with position information indicating its default display position. Based on the position information of the first virtual element, the terminal displays the first virtual element at the corresponding position in the current preview screen. It should be noted that different effect attribute values ​​under the element dimension correspond to different virtual elements. In other words, different keywords are associated with different virtual elements. Through this method, after the user selects an effect attribute value in the element dimension, the terminal can immediately display the virtual element associated with that effect attribute value in the current preview screen. This instant feedback allows the user to intuitively observe the effect, improving the user experience and helping users obtain virtual effect templates that meet their needs by combining multiple effect attribute values.

[0176] In some embodiments, during the user's selection of effect attribute values, the terminal automatically generates multiple reference virtual elements based on the user-created effect attribute values ​​and displays them in the preview screen. Correspondingly, in response to the creation operation of any effect attribute value in the element dimension, the terminal obtains multiple reference virtual elements, which are virtual elements generated based on the effect attribute values. The terminal displays these multiple reference virtual elements in the current preview screen according to their matching parameters, where the matching parameters of any reference virtual element indicate the degree of relevance between the reference virtual element and the effect attribute value. In response to the confirmation operation of any reference virtual element, the terminal cancels the display of other reference virtual elements among the multiple reference virtual elements, confirming the effect attribute value as at least one selected effect attribute value. Through this method, the terminal automatically generates multiple reference virtual elements based on the user-created effect attribute values ​​and displays them in the preview screen, enhancing the interactivity between the user and the system. This also helps users understand the effects of effect attribute values ​​in practical applications, enabling them to more accurately select effect attribute values ​​that meet their needs. Meanwhile, by matching parameters to indicate the degree of correlation between reference virtual elements and special effect attribute values, users can not only select reference virtual elements according to their own preferences and needs, but also quickly identify the virtual elements that best match the special effect attribute values, thereby enhancing user experience and satisfaction and improving selection efficiency.

[0177] In this way, users can select multiple special effect attribute values ​​on the same page, which helps improve human-computer interaction efficiency and user experience. At the same time, by selecting different combinations of special effect attribute values, different virtual special effect templates can be obtained, which helps to meet users' personalized needs.

[0178] In step S306, in response to the adjustment operation of the virtual special effects template, a third preview screen is displayed. The third preview screen is the screen obtained after processing based on the adjusted virtual special effects template.

[0179] In this embodiment, the user can adjust the virtual effects template based on the application effect shown in the second preview screen. Optionally, the user can adjust existing virtual elements or add virtual elements such as stickers, text, and decorations; this embodiment does not limit this. After the user makes the adjustment, the terminal displays the processed screen based on the adjusted virtual effects template in real time, helping the user to conveniently and quickly obtain a virtual effects template that meets their needs.

[0180] In some embodiments, users can adjust existing virtual elements. Correspondingly, a second preview screen is displayed on a template adjustment page, used to adjust the virtual effects template. In response to a trigger operation on the second virtual element, the terminal displays adjustment options for the second virtual element, allowing adjustment of at least one of its position, size, angle, and quantity. In response to a trigger operation on the adjustment options, the terminal displays a third preview screen, which is the screen obtained after adjusting the second virtual element in the second preview screen. Through this method, users can directly make various adjustments to the virtual elements in the virtual effects template to obtain a virtual effects template that better suits their needs, without having to return and regenerate the template, thus improving human-computer interaction efficiency and user experience.

[0181] In some embodiments, the second preview screen is displayed on the template adjustment page, which is used to adjust the virtual effects template. For a clearer description of the template adjustment page, see [link to relevant documentation]. Figure 7 As shown, Figure 7 This is a schematic diagram illustrating a template-adjusted page according to an exemplary embodiment. See also... Figure 7 As shown in (a), 701 is the second preview screen, which can display the image processing effect after applying a custom virtual effect template. 702 is the virtual element in the default position. Optionally, the user can drag the virtual element to another position, adjust the size of the virtual element using a two-finger zoom operation, adjust the angle of the virtual element by triggering the angle adjustment option, and delete or add the virtual element by triggering the quantity adjustment option. It should be noted that the above is only an example of adjusting virtual elements, and this disclosure does not limit the scope of the embodiments. See also Figure 7 As shown in (b), 703 is the third preview screen, which displays the image processing effect after applying the adjusted virtual effects template. 704 shows the virtual elements after their positions have been adjusted. Optionally, users can add virtual elements such as decorations, stickers, and text to enrich the materials in the virtual effects template.

[0182] In step S307, if the virtual effect template has been adjusted, the adjusted virtual effect template is generated and stored in response to the triggering operation of the second control on the template adjustment page.

[0183] In this embodiment of the disclosure, after the user performs a confirmation and storage operation (triggers the second control), the terminal regenerates the adjusted virtual effect template. At this time, the terminal can store the adjusted virtual effect template in local storage space, or the terminal can simultaneously store the adjusted virtual effect template in the server; this embodiment of the disclosure does not impose any limitations on this.

[0184] In some embodiments, users can quickly access the floating window page of the virtual effects template without leaving the shooting page. Correspondingly, a second preview screen is displayed on the shooting page, which displays the virtual effects template. In response to a trigger operation on the virtual effects template, the terminal displays a first floating window page on the shooting page. This first floating window page displays various virtual effects templates, including a first type of virtual effects template, which is a historically generated virtual effects template. In response to a confirmation operation on any first type of virtual effects template in the first floating window page, the terminal cancels the display of the first floating window page and displays a preview screen based on the first type of virtual effects template on the shooting page. Through this method, users can quickly access the floating window page of the virtual effects template without leaving the shooting page, significantly reducing the time spent switching between different pages and improving operational efficiency. Meanwhile, users can quickly confirm and use any of the first-class virtual effect templates in the first floating window page. The terminal will immediately update to a preview screen based on the selected virtual effect template. This instant feedback allows users to quickly switch and try different virtual effect templates, enhancing the user experience.

[0185] In some embodiments, users can switch the template adjustment page to the shooting page and directly use the virtual effects template for shooting. Correspondingly, a second preview screen is displayed on the template adjustment page, which is used to adjust the virtual effects template. When the virtual effects template has been adjusted, the terminal responds to a trigger operation on the third control on the template adjustment page to generate the adjusted virtual effects template; the terminal then switches the template adjustment page to the shooting page, which displays a preview screen based on the adjusted virtual effects template and the adjusted virtual effects template itself. Through this method, the terminal displays controls on the template adjustment page, allowing users to easily and quickly use the virtual effects template directly for shooting after adjusting it to meet their needs. This improves human-computer interaction efficiency and user experience, providing users with a more flexible and personalized shooting experience and meeting diverse and personalized user needs.

[0186] It should be noted that when a user performs a shooting operation without confirming the storage operation (triggers the third control but not the second control), the terminal can temporarily store the adjusted virtual effect template. In other words, the terminal stores the adjusted virtual effect template and adds a mark to it, then deletes the virtual effect template after a period of time based on the time information indicated by the mark. During this process, if the user performs a confirming storage operation on the adjusted virtual effect template, the mark is deleted. Alternatively, when a user performs a shooting operation without confirming the storage operation (triggers the third control but not the second control), the terminal can store the adjusted virtual effect template in a temporary storage repository. During this process, if the user performs a confirming storage operation on the adjusted virtual effect template, the terminal transfers the adjusted virtual effect template to the permanent storage repository. This disclosure does not impose any limitations on this aspect.

[0187] For a clearer description of the various controls mentioned above, please refer to [link / reference]. Figure 7 As shown, Figure 7 This is a schematic diagram illustrating a template adjustment page according to an exemplary embodiment. 705 is a second control displaying text prompts such as "Save Virtual Effects Template". 706 is a third control displaying text prompts such as "Shoot Work".

[0188] In some embodiments, the terminal updates the adjusted virtual effect template to the first type of virtual effect template in real time. Correspondingly, in response to a trigger operation on the adjusted virtual effect template, the terminal displays a first floating window on the shooting page. The first floating window displays various virtual effect templates, including the first type of virtual effect template, which consists of historically generated virtual effect templates and includes the adjusted virtual effect template. In response to a confirmation operation on any first type of virtual effect template in the first floating window, the terminal cancels the display of the first floating window and displays a preview image based on the first type of virtual effect template on the shooting page. Through this method, the user's adjusted virtual effect template is updated to the first type of virtual effect template in real time, allowing the user to not only see the currently adjusted virtual effect template but also review previously generated virtual effect templates, providing great convenience. Meanwhile, users can quickly confirm and use any of the first-class virtual effect templates in the first floating window page. The terminal will immediately update to a preview screen based on the selected virtual effect template. This instant feedback allows users to quickly switch and try different virtual effect templates, enhancing the user experience.

[0189] In some embodiments, the terminal always displays a first entry point on the shooting page, allowing the user to open a first floating window page. Accordingly, the terminal displays the first entry point on the shooting page, which is used to select from various virtual effect templates upon triggering. In response to triggering the first entry point, the terminal displays the first floating window page on the shooting page, which displays various virtual effect templates, including a first type of virtual effect template. This first type of virtual effect template is a historically generated virtual effect template, and includes the adjusted virtual effect template. In response to confirming the use of any first type of virtual effect template on the first floating window page, the terminal cancels the display of the first floating window page and displays a preview image processed based on the first type of virtual effect template on the shooting page. Through this method, the terminal displays historically generated virtual effect templates in the floating window page of the shooting page. When the user selects a virtual effect template, they can directly use that template for shooting, thereby improving human-computer interaction efficiency and user experience, providing a more convenient and faster shooting experience.

[0190] For a clearer description of the shooting page using this adjusted virtual effects template, please refer to [link / reference]. Figure 8 As shown, Figure 8 This is a schematic diagram of another shooting page according to an exemplary embodiment. For ease of description, the adjusted virtual effect template described above is referred to as virtual effect template M. At this time, the terminal displays a preview screen 801 on the shooting page after image processing using virtual effect template M. Optionally, the terminal displays a prompt message 802 on the shooting page. The prompt message 802 displays text prompts such as "Virtual effect template M has been saved and applied" and "Cancel use". The user can cancel the use of virtual effect template M by triggering the "Cancel use" option. At this time, the terminal displays a first entry point 803 on the shooting page. When the user triggers the first entry point 803, the terminal displays a first floating window page 804 on the shooting page. At this time, the first floating window page 804 displays multiple first-type virtual effect templates, which are historically generated virtual effect templates, including virtual effect template M. 805 is the virtual effect template M displayed on the first floating window page.

[0191] In some embodiments, users can switch the shooting page to a template adjustment page. Correspondingly, in response to the selection of any first-type virtual effect template in the first floating window page, the terminal displays a fourth control on the shooting page. This fourth control is used to adjust the first-type virtual effect template upon triggering. In response to triggering the fourth control, the terminal switches the shooting page to the template adjustment page, which is used to adjust the first-type virtual effect template. Through this method, when a user selects a historically generated virtual effect template, the terminal displays a control on the shooting page, allowing the user to conveniently and quickly jump to the template adjustment page of that virtual effect template by directly triggering the control. The terminal provides a convenient and quick path for users to adjust historically generated virtual effect templates, improving human-computer interaction efficiency and user experience, and helping users obtain virtual effect templates that meet their needs, thereby satisfying diverse and personalized requirements.

[0192] For example, see Figure 8 As shown in (b), the user selects 805, which indicates the virtual effects template M, in the first floating window page 804. At this time, the terminal displays multiple controls, with 806 being the fourth control, which displays the word "Edit". When the user triggers the fourth control 806, the terminal switches the current shooting page to the template adjustment page, see [link to documentation]. Figure 7 As shown in (b).

[0193] In some embodiments, users can share custom virtual effect templates with other accounts. Correspondingly, in response to the selection of any first-type virtual effect template in the first floating window page, the terminal displays a fifth control on the shooting page. This fifth control is used to share the first-type virtual effect template upon triggering. In response to triggering the fifth control, the terminal displays multiple virtual accounts associated with the current account. In response to selecting any virtual account, the terminal sends the first-type virtual effect template to that virtual account. Optionally, the terminal displays multiple virtual accounts associated with the current account in the form of a floating window page. Optionally, the association between the current account and these multiple accounts is a friend relationship. For ease of description, this floating window page is referred to as the third floating window page. Through the above method, users can share historically generated virtual effect templates with their friends' virtual accounts, which helps users showcase or obtain personalized creative works, improving human-computer interaction efficiency and user experience.

[0194] For example, see Figure 8 As shown in (b), when the user selects 805, which indicates the virtual effects template M, in the first floating window page 804, the terminal displays multiple controls. 807 is the fifth control, which displays the word "Share". When the user triggers the fifth control 807, the terminal displays the third floating window page. See also... Figure 9 As shown, Figure 9This is a schematic diagram illustrating a third floating window page according to an exemplary embodiment. 901 represents the third floating window page, which displays avatars, names, and sharing controls 902 for multiple virtual accounts. When a user triggers the sharing control 902 corresponding to any account, the virtual effect template M is shared with that account.

[0195] For a clearer description of the process of users customizing, applying, and sharing virtual effects templates, see [link to documentation]. Figure 10 As shown, Figure 10 This is a schematic diagram illustrating the overall process according to an exemplary embodiment. For ease of description, the page used by the terminal to display the preview screen before the user starts shooting is called the shooting page, and the page used by the terminal to perform real-time shooting after the user starts shooting is called the recording page. Users can customize, apply, and share virtual special effects templates by operating on the shooting page, recording page, and template adjustment page.

[0196] First, users can access the second floating window page through different paths on the shooting page. Optionally, users can directly click the first control on the shooting page to launch the second floating window page; users can also click the first entry point on the shooting page to open the first floating window page, and then select the second entry point within the first floating window page to launch the second floating window page. Optionally, the first control can be a "custom" control in the sidebar of the shooting page, see [link to relevant documentation]. Figure 5 As shown; the second entry point can be the entry point for custom virtual effects templates, see [link / reference]. Figure 4 As shown. Then, on the second floating window page, users can select effect attribute values ​​for the type dimension, effect attribute values ​​for style elements, and confirm effect attribute values ​​for the element dimension by selecting or entering keywords. See [link to relevant documentation]. Figure 6 As shown. After the user clicks to generate a virtual effects template, the user can preview the generated virtual effects template on the template adjustment page, and further edit the virtual effects template by adjusting various materials within the template. See [link to template]. Figure 7 As shown. It should be noted that these various materials include existing virtual elements and other virtual elements. After the user confirms the captured image, they can preview the image processing effects of the virtual effects template on the shooting page. See [link / reference]. Figure 8 As shown. When a user starts recording, the terminal displays an option to use the virtual effects template. When the user confirms sharing the virtual effects template, the terminal displays a third floating window page, allowing the user to confirm their account and send the virtual effects template to that account via private message. See [link to relevant documentation]. Figure 9 As shown.

[0197] For a clearer description of the data interactions between the various parts of the overall process, see [link to documentation]. Figure 11 As shown, Figure 11This is a schematic diagram illustrating data transmission according to an exemplary embodiment. The client refers to a camera-like application on the terminal. The media backend refers to the part of the server used to store virtual media. Virtual media includes virtual elements. The effects SDK (Software Development Kit) refers to the part of the terminal used to render media. An SDK is a collection of development tools used to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc. The server refers to the part of the server used for data uploading and downloading. The media middleware refers to the part of the server used to store virtual effects templates. Virtual effects templates can be referred to as media packages composed of various virtual media. In other words, the client and effects SDK reside on the terminal, while the media backend, media middleware, and server all reside on the server.

[0198] For ease of description, user-defined virtual effects templates will be referred to as user-defined effects packages. When a user needs to customize an effects package, the user does so through various paths in the client (see...). Figure 4 and Figure 5(As shown) Enter the second floating window page. Alternatively, the user can select the "Custom" control in the operation area of ​​the shooting page to open the second floating window page; or, the user can first open the first floating window page and then open the second floating window page through operations within the first floating window page. Users can select effect attribute values ​​in the second floating window page. While the user is selecting effect attribute values, the terminal will execute request delivery logic based on each selection operation. That is, the client downloads the corresponding virtual materials from the material backend on the server to the terminal. These virtual materials include various types such as 2D stickers, 3D accessories, beautification features, and makeup. The effects SDK also stores various types of virtual materials such as foreground stickers, face stickers, beautification algorithms, 2D makeup, and 3DMM (3D facial deformation statistical model). Users can assemble effects by selecting different virtual materials. It should be noted that the terminal can request AIGC services. The server is configured with various basic models for AIGC services. For example, basic models include ancient style, watercolor, Ghibli, realistic style, and expanded images. At this point, the image displayed on the terminal is a preset image, not an image obtained through real-time processing of the base model. Then, after the user confirms the generation of the effects package on the second floating window page, the terminal displays the effects assembled in the previous step on the template adjustment page, while simultaneously performing temporary storage and effects rendering on the terminal. Typically, the terminal uploads the generated effects package to the resource platform on the server for storage. This allows the client to retrieve historically generated effects packages or client-provided effects packages stored in the resource platform when the user opens the first floating window page later, and create associated buttons for display. At this time, the user can still adjust the virtual materials on the template adjustment page, such as dragging sticker positions or rotating and scaling them. When the user adjusts the virtual materials, the corresponding data changes are transmitted from the client to the effects SDK via signaling, and then to the effects script layer for data modification. The effects script layer manages the virtual materials on the terminal. Finally, when the user confirms the generation of the effects package on the template adjustment page, the terminal generates the final effects package and uploads it to the resource platform. At this point, users can directly use the resource pack to take photos, or choose to share the resource pack with friends to take photos.

[0199] This disclosure provides a method for previewing images based on virtual effect templates. By displaying a preview image and effect attribute values ​​on a terminal, users can generate virtual effect templates by selecting the attribute values. The method then displays a preview image after applying the virtual effect template to indicate its effect, allowing users to confirm whether the customized template meets their needs and make timely adjustments to ultimately obtain a template that satisfies their requirements. This solution enables users to intuitively and efficiently view the application effect of their customized virtual effect templates, improving human-computer interaction efficiency and user experience, and better meeting diverse and personalized user needs.

[0200] All of the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of this disclosure, and will not be described in detail here.

[0201] Figure 12 This is a block diagram illustrating a screen preview device based on a virtual effects template, according to an exemplary embodiment. Figure 12 As shown, the device includes: a first display unit 1201, a generation unit 1202, and a second display unit 1203.

[0202] The first display unit 1201 is configured to display a first preview screen and multiple dimensions of special effects attributes on the shooting page, each dimension including at least one special effects attribute value;

[0203] The generation unit 1202 is configured to generate a virtual effect template including the selected at least one effect attribute value based on the template generation operation, in response to the template generation operation.

[0204] The second display unit 1203 is configured to display a second preview screen, which is obtained based on the first preview screen and a virtual effects template.

[0205] In some embodiments, the first display unit 1201 is configured to display a first preview screen and a first control on the shooting page, wherein the first control is used to display multi-dimensional special effects attributes after being triggered; in response to the triggering operation of the first control, the multi-dimensional special effects attributes are displayed in the shooting page in the form of a floating window.

[0206] In some embodiments, the first display unit 1201 is further configured to, in response to a selection operation on any effect attribute value of the type dimension, determine effect attribute values ​​of multiple style dimensions and multiple effect attribute values ​​of multiple element dimensions associated with the effect attribute value of the type dimension; replace the effect attribute value in the effect attribute of the style dimension displayed on the shooting page with the effect attribute values ​​of the multiple style dimensions, and replace the effect attribute value in the effect attribute of the element dimension displayed on the shooting page with the effect attribute values ​​of the multiple element dimensions.

[0207] In some embodiments, the first display unit 1201 is further configured to, in response to a selection operation on any effect attribute value of the style dimension, determine effect attribute values ​​of multiple element dimensions associated with the effect attribute value of the style dimension; and replace the effect attribute values ​​in the effect attributes of the element dimensions displayed on the shooting page with the effect attribute values ​​of the multiple element dimensions.

[0208] In some embodiments, the first display unit 1201 is further configured to display a first preset image in a first preview screen in response to a selection operation of a first effect attribute value of a type dimension, wherein the first effect attribute value indicates artificial intelligence processing of the screen and the first preset image contains a default virtual object; and to determine the first effect attribute value as at least one selected effect attribute value in response to a confirmation operation of the first preset image.

[0209] In some embodiments, the first display unit 1201 is further configured to, in response to a selection operation of any effect attribute value of the style dimension, obtain a style parameter associated with the effect attribute value; process a first preset image based on the style parameter to obtain a processed first preset image, wherein the processed first preset image displays a processed virtual object, and the processed virtual object has a different style from the default virtual object.

[0210] In some embodiments, the first display unit 1201 is further configured to, in response to a selection operation on any effect attribute value of an element dimension, determine a first virtual element stored in a virtual element database that is associated with an effect attribute value. The virtual element database is used to store effect attribute values ​​of multiple element dimensions and virtual elements associated with the effect attribute values ​​of each element dimension. Each virtual element is associated with position information indicating the default display position of the virtual element. Based on the position information of the first virtual element, the first virtual element is displayed at the corresponding position in the current preview screen.

[0211] In some embodiments, the first display unit 1201 is further configured to, in response to a creation operation of any effect attribute value of an element dimension, acquire a plurality of reference virtual elements, wherein the plurality of reference virtual elements are a plurality of virtual elements generated based on the effect attribute value; display the plurality of reference virtual elements in the current preview screen according to the matching parameters of the plurality of reference virtual elements, wherein the matching parameters of any reference virtual element are used to indicate the degree of correlation between the reference virtual element and the effect attribute value; and, in response to a determination operation of any reference virtual element, cancel the display of other reference virtual elements among the plurality of reference virtual elements, and determine the effect attribute value as at least one selected effect attribute value.

[0212] In some embodiments, a second virtual element is displayed in the second preview screen;

[0213] The second display unit 1203 is further configured to, in response to a trigger operation on the second virtual element, display adjustment options for the second virtual element, the adjustment options being used to adjust at least one of the position, size, angle, and quantity of the second virtual element; and in response to a trigger operation on the adjustment options, display a third preview screen, the third preview screen being the screen obtained after adjusting the second virtual element in the second preview screen.

[0214] In some embodiments, Figure 13 This is a block diagram illustrating another screen preview device based on a virtual effects template, according to an exemplary embodiment, such as... Figure 13 As shown, the second preview screen is displayed on the template adjustment page, which is used to adjust the virtual effects template;

[0215] The device also includes:

[0216] The generation unit 1202 is also configured to generate the adjusted virtual effects template in response to a triggering operation of the second control on the template adjustment page, provided that the virtual effects template has been adjusted.

[0217] Storage unit 1301 is configured to store the adjusted virtual effects template.

[0218] In some embodiments, the second preview screen is displayed on the shooting page, and the shooting page displays a virtual special effects template;

[0219] The first display unit 1201 is further configured to, in response to a triggering operation on a virtual effect template, display a first floating window page on the shooting page. The first floating window page is used to display multiple virtual effect templates, including a first type of virtual effect template, which is a historically generated virtual effect template. The first type of virtual effect template includes virtual effect templates. In response to a confirmation operation on any first type of virtual effect template in the first floating window page, the first floating window page is canceled from display, and a preview image obtained based on the first type of virtual effect template is displayed on the shooting page.

[0220] In some embodiments, the second preview screen is displayed on the template adjustment page, which is used to adjust the virtual effects template.

[0221] The device also includes:

[0222] The generation unit 1202 is also configured to generate the adjusted virtual effects template in response to a triggering operation of a third control on the template adjustment page, provided that the virtual effects template has been adjusted.

[0223] Switching unit 1302 is configured to switch the template adjustment page to a shooting page, where a preview image based on the adjusted virtual effects template and the adjusted virtual effects template are displayed on the shooting page.

[0224] In some embodiments, the first display unit 1201 is further configured to, in response to a triggering operation on an adjusted virtual effect template, display a first floating window page on the shooting page. The first floating window page is used to display multiple virtual effect templates, including a first type of virtual effect template, which is a historically generated virtual effect template and includes an adjusted virtual effect template. In response to a confirmation operation on any first type of virtual effect template in the first floating window page, the first floating window page is de-displayed, and a preview image obtained based on the first type of virtual effect template is displayed on the shooting page.

[0225] In some embodiments, the first display unit 1201 is further configured to display a first entry point on the shooting page, the first entry point being used to select multiple virtual effect templates after triggering; in response to the triggering operation of the first entry point, a first floating window page is displayed on the shooting page, the first floating window page being used to display multiple virtual effect templates, the multiple virtual effect templates including a first type of virtual effect template, the first type of virtual effect template being a historically generated virtual effect template; in response to the confirmation of use of any first type of virtual effect template on the first floating window page, the first floating window page is canceled from display, and a preview screen processed based on the first type of virtual effect template is displayed on the shooting page.

[0226] In some embodiments, the first display unit 1201 is further configured to, in response to a selection operation of any first type of virtual special effects template in the first floating window page, display a fourth control on the shooting page, the fourth control being used to adjust the first type of virtual special effects template after being triggered; and in response to a trigger operation of the fourth control, switch the shooting page to a template adjustment page, the template adjustment page being used to adjust the first type of virtual special effects template.

[0227] In some embodiments, the first display unit 1201 is further configured to, in response to a selection operation of any first type of virtual special effects template in the first floating window page, display a fifth control on the shooting page, the fifth control being used to share the first type of virtual special effects template after triggering; in response to a triggering operation of the fifth control, display multiple virtual accounts associated with the current account; and in response to a selection operation of any virtual account, send the first type of virtual special effects template to the virtual account.

[0228] In some embodiments, a second entry is displayed in the first floating window page, which is used to create a virtual special effects template after being triggered.

[0229] The first display unit 1201 is also configured to switch the first floating window page to the second floating window page in response to the trigger operation of the second entry point. The second floating window page is used to display special effects attributes in multiple dimensions.

[0230] This disclosure provides a preview device based on a virtual effects template. By displaying a preview image and effects attribute values ​​on a terminal, users can generate virtual effects templates by selecting the desired attribute values. The device displays a preview image after applying the virtual effects template to indicate its effect, allowing users to confirm whether the customized template meets their needs and make timely adjustments to ultimately obtain a template that satisfies their requirements. This solution enables users to intuitively and efficiently view the application effect of their customized virtual effects templates, improving human-computer interaction efficiency and user experience, and better meeting diverse and personalized user needs.

[0231] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure.

[0232] It should be noted that the image preview device based on virtual effect templates provided in the above embodiments is only an example of the division of the above functional units. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the electronic device can be divided into different functional units to complete all or part of the functions described above. In addition, the image preview device based on virtual effect templates provided in the above embodiments and the image preview method embodiments based on virtual effect templates belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0233] Regarding the screen preview device based on virtual special effects templates in the above embodiments, the specific methods by which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0234] Figure 14 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Typically, the electronic device 1400 includes a processor 1401 and a memory 1402.

[0235] Processor 1401 may include one or more processing cores, such as a 4-core processor, a 14-core processor, etc. Processor 1401 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1401 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1401 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1401 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0236] The memory 1402 may include one or more computer-readable storage media, which may be non-transitory. The memory 1402 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1402 are used to store at least one program code, which is executed by the processor 1401 to implement the screen preview method based on virtual effects templates provided in the method embodiments of this disclosure.

[0237] In some embodiments, the electronic device 1400 may optionally include a peripheral device interface 1403 and at least one peripheral device. The processor 1401, memory 1402, and peripheral device interface 1403 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1404, a display screen 1405, a camera assembly 1406, an audio circuit 1407, and a power supply 1408.

[0238] Peripheral interface 1403 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1401 and memory 1402. In some embodiments, processor 1401, memory 1402 and peripheral interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1401, memory 1402 and peripheral interface 1403 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0239] The radio frequency (RF) circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1404 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1404 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1404 can communicate with other electronic devices through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1404 may also include circuitry related to NFC (Near Field Communication), which is not limited in this disclosure.

[0240] Display screen 1405 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1405 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1401 for processing. In this case, display screen 1405 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1405, which serves as the front panel of electronic device 1400; in other embodiments, there may be at least two display screens, respectively disposed on different surfaces of electronic device 1400 or in a folded design; in still other embodiments, display screen 1405 may be a flexible display screen, disposed on a curved or folded surface of electronic device 1400. Furthermore, display screen 1405 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 1405 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0241] The camera assembly 1406 is used to acquire images or videos. Optionally, the camera assembly 1406 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the electronic device, and the rear-facing camera is located on the back of the electronic device. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1406 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cool light flash, which can be used for light compensation at different color temperatures.

[0242] The audio circuit 1407 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting them into electrical signals that are input to the processor 1401 for processing, or to the radio frequency circuit 1404 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located at a different part of the electronic device 1400. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1401 or the radio frequency circuit 1404 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1407 may also include a headphone jack.

[0243] Power supply 1408 is used to power various components in electronic device 1400. Power supply 1408 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 1408 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0244] Those skilled in the art will understand that Figure 14 The structure shown does not constitute a limitation on the electronic device 1400, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0245] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1402 including instructions, which can be executed by a processor 1401 of an electronic device 1400 to complete the above-described screen preview method based on a virtual effects template. Optionally, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc.

[0246] A computer program product includes a computer program that, when executed by a processor, implements the above-described screen preview method based on a virtual effects template.

[0247] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0248] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for previewing images based on virtual special effects templates, characterized in that, Applied to a terminal, the method includes: The shooting page displays a first preview screen and multiple dimensions of special effects attributes. The first preview screen is the screen captured in real time by the camera in the terminal. The multiple dimensions of special effects attributes include special effects attributes of type dimension, special effects attributes of style dimension, and special effects attributes of element dimension. Each dimension of special effects attributes includes at least one special effects attribute value. In response to the selection operation of the first effect attribute value of the type dimension, a first preset image is displayed in the first preview screen, the first effect attribute value indicates that the image is processed by artificial intelligence, and the first preset image contains a default virtual object; In response to a selection operation on any effect attribute value in the style dimension, obtain the style parameter associated with the effect attribute value; The first preset image is processed based on the style parameters to obtain a processed first preset image. The processed first preset image displays a processed virtual object, and the processed virtual object has a different style from the default virtual object. In response to the template generation operation, a virtual effect template including the selected at least one effect attribute value is generated based on the selected at least one effect attribute value. The template adjustment page displays a second preview screen, which is based on the first preview screen and the virtual effect template. The template adjustment page is used to adjust the virtual effect template. On the template adjustment page, in response to the adjustment operation of the virtual special effects template, a third preview screen is displayed. The third preview screen is the screen obtained after processing based on the adjusted virtual special effects template. With the virtual effects template already adjusted, in response to a trigger operation on the third control in the template adjustment page, an adjusted virtual effects template is generated; the template adjustment page is switched to the shooting page, where a preview image based on the adjusted virtual effects template and the adjusted virtual effects template are displayed.

2. The image preview method based on virtual special effects templates according to claim 1, characterized in that, The shooting page displays a first preview image and multiple dimensions of special effects attributes, including: The first preview screen and the first control are displayed on the shooting page. The first control is used to display the special effects attributes of the multiple dimensions. In response to the triggering operation of the first control, the multi-dimensional special effects attributes are displayed in the form of a floating window on the shooting page.

3. The image preview method based on virtual special effects templates according to claim 1, characterized in that, The method further includes: In response to a selection operation on any effect attribute value of the type dimension, determine the effect attribute values ​​of multiple style dimensions and multiple element dimensions associated with the effect attribute value of the type dimension; Replace the effect attribute values ​​in the style dimension effect attributes displayed on the shooting page with the effect attribute values ​​of the multiple style dimensions, and replace the effect attribute values ​​in the element dimension effect attributes displayed on the shooting page with the effect attribute values ​​of the multiple element dimensions.

4. The image preview method based on virtual special effects templates according to claim 3, characterized in that, The method further includes: In response to a selection operation on any effect attribute value of the style dimension, determine the effect attribute values ​​of multiple element dimensions associated with the effect attribute value of the style dimension; Replace the effect attribute values ​​in the element dimension effect attributes displayed on the shooting page with the effect attribute values ​​of multiple element dimensions associated with the style dimension effect attribute values.

5. The image preview method based on virtual special effects templates according to claim 1, characterized in that, Before generating a virtual effect template including the at least one selected effect attribute value based on the template generation operation, the method further includes: In response to a selection operation on any effect attribute value of an element dimension, a first virtual element associated with the effect attribute value is determined from the virtual element database. The virtual element database is used to store effect attribute values ​​of multiple element dimensions and virtual elements associated with the effect attribute values ​​of each element dimension. Each virtual element is associated with position information indicating the default display position of the virtual element. Based on the position information of the first virtual element, the first virtual element is displayed at the corresponding position in the current preview screen.

6. The image preview method based on virtual special effects templates according to claim 1, characterized in that, Before generating a virtual effect template including the at least one selected effect attribute value based on the template generation operation, the method further includes: In response to the creation operation of any effect attribute value of the element dimension, multiple reference virtual elements are obtained, wherein the multiple reference virtual elements are multiple virtual elements generated based on the effect attribute value; According to the matching parameters of the multiple reference virtual elements, the multiple reference virtual elements are displayed in the current preview screen. The matching parameters of any reference virtual element are used to indicate the degree of correlation between the reference virtual element and the effect attribute value. In response to the determination operation of any reference virtual element, the display of other reference virtual elements among the plurality of reference virtual elements is canceled, and the effect attribute value is determined as at least one of the selected effect attribute values.

7. The image preview method based on virtual special effects templates according to claim 1, characterized in that, The second preview screen displays a second virtual element; In response to the adjustment operation of the virtual special effects template, a third preview screen is displayed on the template adjustment page, including: In response to a triggering operation on the second virtual element, adjustment options for the second virtual element are displayed, the adjustment options being used to adjust at least one of the position, size, angle, and quantity of the second virtual element; In response to the triggering operation of the adjustment option, the third preview screen is displayed, which is the screen obtained after adjusting the second virtual element in the second preview screen.

8. The image preview method based on virtual special effects templates according to claim 1, characterized in that, The method further includes: If the virtual effect template has been adjusted, in response to the triggering operation of the second control in the template adjustment page, the adjusted virtual effect template is generated and stored.

9. The image preview method based on virtual special effects templates according to claim 1, characterized in that, The method further includes: In response to the triggering operation of the adjusted virtual special effects template, a first floating window page is displayed on the shooting page. The first floating window page displays a first type of virtual special effects template. The first type of virtual special effects template is a historically generated virtual special effects template. The first type of virtual special effects template includes the adjusted virtual special effects template. In response to the confirmation of use of any first type of virtual special effects template in the first floating window page, the first floating window page is canceled and a preview image obtained based on the first type of virtual special effects template is displayed on the shooting page.

10. The image preview method based on virtual special effects templates according to claim 1, characterized in that, The method further includes: The first entry point is displayed on the shooting page, and the first entry point is used to select a variety of virtual special effects templates after triggering the action. In response to the triggering operation of the first entry point, a first floating window page is displayed on the shooting page. The first floating window page displays a first type of virtual special effects template, which is a historically generated virtual special effects template. In response to the confirmation of use of any first type of virtual special effects template in the first floating window page, the first floating window page is canceled and a preview image obtained based on the first type of virtual special effects template is displayed on the shooting page.

11. The image preview method based on a virtual special effects template according to claim 9 or 10, characterized in that, The method further includes: In response to the selection operation of any first type of virtual special effects template in the first floating window page, a fourth control is displayed on the shooting page, the fourth control being used to adjust the first type of virtual special effects template; In response to the triggering operation of the fourth control in the first floating window page, the shooting page is switched to the template adjustment page, which is used to adjust the first type of virtual special effects template.

12. The image preview method based on a virtual special effects template according to claim 9 or 10, characterized in that, The method further includes: In response to the selection operation of any first type of virtual special effects template in the first floating window page, a fifth control is displayed on the shooting page, the fifth control being used to share the first type of virtual special effects template; In response to a trigger operation on the fifth control, multiple virtual accounts associated with the current account are displayed; In response to the selection of any virtual account, the first type of virtual effect template is sent to the virtual account.

13. The image preview method based on a virtual special effects template according to claim 9 or 10, characterized in that, The first floating window page displays a second entry point, which is used to create a virtual special effects template after being triggered; The method further includes: In response to the triggering operation of the second entry point, the first floating window page is switched to the second floating window page in the shooting page, and the second floating window page is used to display the special effects attributes of the multiple dimensions.

14. A screen preview device based on a virtual special effects template, characterized in that, Configured in a terminal, the device includes: The first display unit is configured to execute on the shooting page to display a first preview screen and multiple dimensions of special effects attributes. The first preview screen is a screen captured in real time by the camera in the terminal. The multiple dimensions of special effects attributes include special effects attributes of type dimension, special effects attributes of style dimension, and special effects attributes of element dimension. Each dimension includes at least one special effects attribute value. The first display unit is further configured to perform a first preset image in the first preview screen in response to a selection operation of a first effect attribute value in the type dimension, wherein the first effect attribute value indicates artificial intelligence processing of the image and the first preset image contains a default virtual object; in response to a selection operation of any effect attribute value in the style dimension, to obtain a style parameter associated with the effect attribute value; and to process the first preset image based on the style parameter to obtain a processed first preset image, wherein the processed first preset image displays a processed virtual object, and the processed virtual object has a different style from the default virtual object; The generation unit is configured to perform a virtual effect template including the selected at least one effect attribute value in response to the template generation operation. The second display unit is configured to display a second preview screen on the template adjustment page. The second preview screen is obtained based on the first preview screen and the virtual effect template. The template adjustment page is used to adjust the virtual effect template. In the template adjustment page, in response to the adjustment operation of the virtual effect template, a third preview screen is displayed. The third preview screen is a screen obtained after processing based on the adjusted virtual effect template. The generation unit is further configured to generate an adjusted virtual effect template in response to a triggering operation on a third control in the template adjustment page, provided that the virtual effect template has been adjusted. The switching unit is configured to switch the template adjustment page to the shooting page, wherein the shooting page displays a preview image obtained based on the adjusted virtual effects template and the adjusted virtual effects template.

15. An electronic device, characterized in that, The electronic device includes: One or more processors; Memory used to store the executable program code of the processor; The processor is configured to execute the program code to implement the screen preview method based on virtual special effects templates as described in any one of claims 1 to 13.

16. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is able to perform the screen preview method based on a virtual effects template as described in any one of claims 1 to 13.

17. A computer program product comprising a computer program that, when executed by a processor, implements the screen preview method based on a virtual special effects template as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Special effect data packet generation method and device, image processing method and device, equipment and storage medium

    CN113709549A

  • Special effect processing method and device, electronic equipment and storage medium

    CN115904193A